@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,2843 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/bidi'), require('@angular/core'), require('@angular/cdk/coercion'), require('rxjs'), require('@messageformat/core'), require('@ptsecurity/cdk/datetime'), require('@angular/forms'), require('@angular/common'), require('@angular/cdk/overlay'), require('@angular/animations'), require('@ptsecurity/cdk/keycodes'), require('rxjs/operators'), require('@angular/cdk/a11y'), require('@angular/cdk/portal')) :
3
- typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/core', ['exports', '@angular/cdk/bidi', '@angular/core', '@angular/cdk/coercion', 'rxjs', '@messageformat/core', '@ptsecurity/cdk/datetime', '@angular/forms', '@angular/common', '@angular/cdk/overlay', '@angular/animations', '@ptsecurity/cdk/keycodes', 'rxjs/operators', '@angular/cdk/a11y', '@angular/cdk/portal'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.core = {}), global.ng.cdk.bidi, global.ng.core, global.ng.cdk.coercion, global.rxjs, global["@messageformat/core"], global.mc.cdk.datetime, global.ng.forms, global.ng.common, global.ng.cdk.overlay, global.ng.animations, global.mc.cdk.keycodes, global.rxjs.operators, global.ng.cdk.a11y, global.ng.cdk.portal));
5
- })(this, (function (exports, i2, i0, coercion, rxjs, MessageFormat, i1, forms, i2$1, i1$1, animations, keycodes, operators, i1$2, portal) { 'use strict';
6
-
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
- function _interopNamespace(e) {
10
- if (e && e.__esModule) return e;
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n["default"] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
28
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
29
- var MessageFormat__default = /*#__PURE__*/_interopDefaultLegacy(MessageFormat);
30
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
31
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2$1);
32
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$1);
33
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
34
-
35
- function isBoolean(val) { return typeof val === 'boolean'; }
36
- function toBoolean(value) {
37
- return value != null && "" + value !== 'false';
38
- }
39
-
40
- // Injection token that configures whether the Mosaic sanity checks are enabled.
41
- var MC_SANITY_CHECKS = new i0.InjectionToken('mc-sanity-checks', {
42
- providedIn: 'root',
43
- factory: mcSanityChecksFactory
44
- });
45
- function mcSanityChecksFactory() {
46
- return true;
47
- }
48
- /**
49
- * Module that captures anything that should be loaded and/or run for *all* Mosaic
50
- * components. This includes Bidi, etc.
51
- *
52
- * This module should be imported to each top-level component module (e.g., McTabsModule).
53
- */
54
- var McCommonModule = /** @class */ (function () {
55
- function McCommonModule(_sanityChecksEnabled) {
56
- this._sanityChecksEnabled = _sanityChecksEnabled;
57
- // Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype).
58
- this.hasDoneGlobalChecks = false;
59
- // Reference to the global `document` object.
60
- // tslint:disable-next-line: orthodox-getter-and-setter
61
- this._document = typeof document === 'object' && document ? document : null;
62
- // Reference to the global 'window' object.
63
- // tslint:disable-next-line: orthodox-getter-and-setter
64
- this._window = typeof window === 'object' && window ? window : null;
65
- if (this.areChecksEnabled() && !this.hasDoneGlobalChecks) {
66
- this.checkDoctypeIsDefined();
67
- this.checkThemeIsPresent();
68
- this.hasDoneGlobalChecks = true;
69
- }
70
- }
71
- // Whether any sanity checks are enabled
72
- McCommonModule.prototype.areChecksEnabled = function () {
73
- return this._sanityChecksEnabled && i0.isDevMode() && !this.isTestEnv();
74
- };
75
- // Whether the code is running in tests.
76
- McCommonModule.prototype.isTestEnv = function () {
77
- // tslint:disable-next-line
78
- return this._window && (this._window['__karma__'] || this._window['jasmine']);
79
- };
80
- McCommonModule.prototype.checkDoctypeIsDefined = function () {
81
- if (this._document && !this._document.doctype) {
82
- console.warn('Current document does not have a doctype. This may cause ' +
83
- 'some Mosaic components not to behave as expected.');
84
- }
85
- };
86
- McCommonModule.prototype.checkThemeIsPresent = function () {
87
- if (this._document && typeof getComputedStyle === 'function') {
88
- var testElement = this._document.createElement('div');
89
- testElement.classList.add('mc-theme-loaded-marker');
90
- this._document.body.appendChild(testElement);
91
- var computedStyle = getComputedStyle(testElement);
92
- // In some situations, the computed style of the test element can be null. For example in
93
- // Firefox, the computed style is null if an application is running inside of a hidden iframe.
94
- // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397
95
- if (computedStyle && computedStyle.display !== 'none') {
96
- console.warn('Could not find Mosaic core theme. Most Mosaic ' +
97
- 'components may not work as expected. For more info refer ' +
98
- 'to the theming guide: link there');
99
- }
100
- this._document.body.removeChild(testElement);
101
- }
102
- };
103
- return McCommonModule;
104
- }());
105
- /** @nocollapse */ McCommonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCommonModule, deps: [{ token: MC_SANITY_CHECKS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
106
- /** @nocollapse */ McCommonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCommonModule, imports: [i2.BidiModule], exports: [i2.BidiModule] });
107
- /** @nocollapse */ McCommonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCommonModule, imports: [[i2.BidiModule], i2.BidiModule] });
108
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCommonModule, decorators: [{
109
- type: i0.NgModule,
110
- args: [{
111
- imports: [i2.BidiModule],
112
- exports: [i2.BidiModule]
113
- }]
114
- }], ctorParameters: function () {
115
- return [{ type: undefined, decorators: [{
116
- type: i0.Optional
117
- }, {
118
- type: i0.Inject,
119
- args: [MC_SANITY_CHECKS]
120
- }] }];
121
- } });
122
-
123
- /*! *****************************************************************************
124
- Copyright (c) Microsoft Corporation.
125
-
126
- Permission to use, copy, modify, and/or distribute this software for any
127
- purpose with or without fee is hereby granted.
128
-
129
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
130
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
131
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
132
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
133
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
134
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
135
- PERFORMANCE OF THIS SOFTWARE.
136
- ***************************************************************************** */
137
- /* global Reflect, Promise */
138
- var extendStatics = function (d, b) {
139
- extendStatics = Object.setPrototypeOf ||
140
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
141
- function (d, b) { for (var p in b)
142
- if (Object.prototype.hasOwnProperty.call(b, p))
143
- d[p] = b[p]; };
144
- return extendStatics(d, b);
145
- };
146
- function __extends(d, b) {
147
- if (typeof b !== "function" && b !== null)
148
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
149
- extendStatics(d, b);
150
- function __() { this.constructor = d; }
151
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
152
- }
153
- var __assign = function () {
154
- __assign = Object.assign || function __assign(t) {
155
- for (var s, i = 1, n = arguments.length; i < n; i++) {
156
- s = arguments[i];
157
- for (var p in s)
158
- if (Object.prototype.hasOwnProperty.call(s, p))
159
- t[p] = s[p];
160
- }
161
- return t;
162
- };
163
- return __assign.apply(this, arguments);
164
- };
165
- function __rest(s, e) {
166
- var t = {};
167
- for (var p in s)
168
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
169
- t[p] = s[p];
170
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
171
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
172
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
173
- t[p[i]] = s[p[i]];
174
- }
175
- return t;
176
- }
177
- function __decorate(decorators, target, key, desc) {
178
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
179
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
180
- r = Reflect.decorate(decorators, target, key, desc);
181
- else
182
- for (var i = decorators.length - 1; i >= 0; i--)
183
- if (d = decorators[i])
184
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
185
- return c > 3 && r && Object.defineProperty(target, key, r), r;
186
- }
187
- function __param(paramIndex, decorator) {
188
- return function (target, key) { decorator(target, key, paramIndex); };
189
- }
190
- function __metadata(metadataKey, metadataValue) {
191
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
192
- return Reflect.metadata(metadataKey, metadataValue);
193
- }
194
- function __awaiter(thisArg, _arguments, P, generator) {
195
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
196
- return new (P || (P = Promise))(function (resolve, reject) {
197
- function fulfilled(value) { try {
198
- step(generator.next(value));
199
- }
200
- catch (e) {
201
- reject(e);
202
- } }
203
- function rejected(value) { try {
204
- step(generator["throw"](value));
205
- }
206
- catch (e) {
207
- reject(e);
208
- } }
209
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
210
- step((generator = generator.apply(thisArg, _arguments || [])).next());
211
- });
212
- }
213
- function __generator(thisArg, body) {
214
- var _ = { label: 0, sent: function () { if (t[0] & 1)
215
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
216
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
217
- function verb(n) { return function (v) { return step([n, v]); }; }
218
- function step(op) {
219
- if (f)
220
- throw new TypeError("Generator is already executing.");
221
- while (_)
222
- try {
223
- 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)
224
- return t;
225
- if (y = 0, t)
226
- op = [op[0] & 2, t.value];
227
- switch (op[0]) {
228
- case 0:
229
- case 1:
230
- t = op;
231
- break;
232
- case 4:
233
- _.label++;
234
- return { value: op[1], done: false };
235
- case 5:
236
- _.label++;
237
- y = op[1];
238
- op = [0];
239
- continue;
240
- case 7:
241
- op = _.ops.pop();
242
- _.trys.pop();
243
- continue;
244
- default:
245
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
246
- _ = 0;
247
- continue;
248
- }
249
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
250
- _.label = op[1];
251
- break;
252
- }
253
- if (op[0] === 6 && _.label < t[1]) {
254
- _.label = t[1];
255
- t = op;
256
- break;
257
- }
258
- if (t && _.label < t[2]) {
259
- _.label = t[2];
260
- _.ops.push(op);
261
- break;
262
- }
263
- if (t[2])
264
- _.ops.pop();
265
- _.trys.pop();
266
- continue;
267
- }
268
- op = body.call(thisArg, _);
269
- }
270
- catch (e) {
271
- op = [6, e];
272
- y = 0;
273
- }
274
- finally {
275
- f = t = 0;
276
- }
277
- if (op[0] & 5)
278
- throw op[1];
279
- return { value: op[0] ? op[1] : void 0, done: true };
280
- }
281
- }
282
- var __createBinding = Object.create ? (function (o, m, k, k2) {
283
- if (k2 === undefined)
284
- k2 = k;
285
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
286
- }) : (function (o, m, k, k2) {
287
- if (k2 === undefined)
288
- k2 = k;
289
- o[k2] = m[k];
290
- });
291
- function __exportStar(m, o) {
292
- for (var p in m)
293
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
294
- __createBinding(o, m, p);
295
- }
296
- function __values(o) {
297
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
298
- if (m)
299
- return m.call(o);
300
- if (o && typeof o.length === "number")
301
- return {
302
- next: function () {
303
- if (o && i >= o.length)
304
- o = void 0;
305
- return { value: o && o[i++], done: !o };
306
- }
307
- };
308
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
309
- }
310
- function __read(o, n) {
311
- var m = typeof Symbol === "function" && o[Symbol.iterator];
312
- if (!m)
313
- return o;
314
- var i = m.call(o), r, ar = [], e;
315
- try {
316
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
317
- ar.push(r.value);
318
- }
319
- catch (error) {
320
- e = { error: error };
321
- }
322
- finally {
323
- try {
324
- if (r && !r.done && (m = i["return"]))
325
- m.call(i);
326
- }
327
- finally {
328
- if (e)
329
- throw e.error;
330
- }
331
- }
332
- return ar;
333
- }
334
- /** @deprecated */
335
- function __spread() {
336
- for (var ar = [], i = 0; i < arguments.length; i++)
337
- ar = ar.concat(__read(arguments[i]));
338
- return ar;
339
- }
340
- /** @deprecated */
341
- function __spreadArrays() {
342
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
343
- s += arguments[i].length;
344
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
345
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
346
- r[k] = a[j];
347
- return r;
348
- }
349
- function __spreadArray(to, from, pack) {
350
- if (pack || arguments.length === 2)
351
- for (var i = 0, l = from.length, ar; i < l; i++) {
352
- if (ar || !(i in from)) {
353
- if (!ar)
354
- ar = Array.prototype.slice.call(from, 0, i);
355
- ar[i] = from[i];
356
- }
357
- }
358
- return to.concat(ar || Array.prototype.slice.call(from));
359
- }
360
- function __await(v) {
361
- return this instanceof __await ? (this.v = v, this) : new __await(v);
362
- }
363
- function __asyncGenerator(thisArg, _arguments, generator) {
364
- if (!Symbol.asyncIterator)
365
- throw new TypeError("Symbol.asyncIterator is not defined.");
366
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
367
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
368
- function verb(n) { if (g[n])
369
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
370
- function resume(n, v) { try {
371
- step(g[n](v));
372
- }
373
- catch (e) {
374
- settle(q[0][3], e);
375
- } }
376
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
377
- function fulfill(value) { resume("next", value); }
378
- function reject(value) { resume("throw", value); }
379
- function settle(f, v) { if (f(v), q.shift(), q.length)
380
- resume(q[0][0], q[0][1]); }
381
- }
382
- function __asyncDelegator(o) {
383
- var i, p;
384
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
385
- 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; }
386
- }
387
- function __asyncValues(o) {
388
- if (!Symbol.asyncIterator)
389
- throw new TypeError("Symbol.asyncIterator is not defined.");
390
- var m = o[Symbol.asyncIterator], i;
391
- 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);
392
- 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); }); }; }
393
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
394
- }
395
- function __makeTemplateObject(cooked, raw) {
396
- if (Object.defineProperty) {
397
- Object.defineProperty(cooked, "raw", { value: raw });
398
- }
399
- else {
400
- cooked.raw = raw;
401
- }
402
- return cooked;
403
- }
404
- ;
405
- var __setModuleDefault = Object.create ? (function (o, v) {
406
- Object.defineProperty(o, "default", { enumerable: true, value: v });
407
- }) : function (o, v) {
408
- o["default"] = v;
409
- };
410
- function __importStar(mod) {
411
- if (mod && mod.__esModule)
412
- return mod;
413
- var result = {};
414
- if (mod != null)
415
- for (var k in mod)
416
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
417
- __createBinding(result, mod, k);
418
- __setModuleDefault(result, mod);
419
- return result;
420
- }
421
- function __importDefault(mod) {
422
- return (mod && mod.__esModule) ? mod : { default: mod };
423
- }
424
- function __classPrivateFieldGet(receiver, state, kind, f) {
425
- if (kind === "a" && !f)
426
- throw new TypeError("Private accessor was defined without a getter");
427
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
428
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
429
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
430
- }
431
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
432
- if (kind === "m")
433
- throw new TypeError("Private method is not writable");
434
- if (kind === "a" && !f)
435
- throw new TypeError("Private accessor was defined without a setter");
436
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
437
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
438
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
439
- }
440
-
441
- function mixinDisabled(base) {
442
- return /** @class */ (function (_super) {
443
- __extends(class_1, _super);
444
- function class_1() {
445
- var args = [];
446
- for (var _i = 0; _i < arguments.length; _i++) {
447
- args[_i] = arguments[_i];
448
- }
449
- var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
450
- _this._disabled = false;
451
- return _this;
452
- }
453
- Object.defineProperty(class_1.prototype, "disabled", {
454
- get: function () {
455
- return this._disabled;
456
- },
457
- set: function (value) {
458
- this._disabled = coercion.coerceBooleanProperty(value);
459
- },
460
- enumerable: false,
461
- configurable: true
462
- });
463
- return class_1;
464
- }(base));
465
- }
466
-
467
- exports.ThemePalette = void 0;
468
- (function (ThemePalette) {
469
- ThemePalette["Primary"] = "primary";
470
- ThemePalette["Second"] = "second";
471
- ThemePalette["Error"] = "error";
472
- ThemePalette["Default"] = "second";
473
- ThemePalette["Empty"] = "";
474
- })(exports.ThemePalette || (exports.ThemePalette = {}));
475
- function mixinColor(base, defaultColor) {
476
- if (defaultColor === void 0) { defaultColor = exports.ThemePalette.Default; }
477
- return /** @class */ (function (_super) {
478
- __extends(class_1, _super);
479
- function class_1() {
480
- var args = [];
481
- for (var _i = 0; _i < arguments.length; _i++) {
482
- args[_i] = arguments[_i];
483
- }
484
- var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
485
- _this.color = defaultColor;
486
- return _this;
487
- }
488
- Object.defineProperty(class_1.prototype, "color", {
489
- get: function () { return this._color; },
490
- set: function (value) {
491
- var colorPalette = value || defaultColor;
492
- if (colorPalette !== this._color) {
493
- if (this._color) {
494
- this._elementRef.nativeElement.classList.remove("mc-" + this._color);
495
- }
496
- if (colorPalette) {
497
- this._elementRef.nativeElement.classList.add("mc-" + colorPalette);
498
- }
499
- this._color = colorPalette;
500
- }
501
- },
502
- enumerable: false,
503
- configurable: true
504
- });
505
- return class_1;
506
- }(base));
507
- }
508
-
509
- function mixinTabIndex(base, defaultTabIndex) {
510
- if (defaultTabIndex === void 0) { defaultTabIndex = 0; }
511
- return /** @class */ (function (_super) {
512
- __extends(class_1, _super);
513
- function class_1() {
514
- var args = [];
515
- for (var _i = 0; _i < arguments.length; _i++) {
516
- args[_i] = arguments[_i];
517
- }
518
- var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
519
- _this.defaultTabIndex = defaultTabIndex;
520
- _this._tabIndex = defaultTabIndex;
521
- return _this;
522
- }
523
- Object.defineProperty(class_1.prototype, "tabIndex", {
524
- get: function () {
525
- return this.disabled ? -1 : this._tabIndex;
526
- },
527
- set: function (value) {
528
- // If the specified tabIndex value is null or undefined, fall back to the default value.
529
- this._tabIndex = value != null ? coercion.coerceNumberProperty(value) : this.defaultTabIndex;
530
- },
531
- enumerable: false,
532
- configurable: true
533
- });
534
- return class_1;
535
- }(base));
536
- }
537
-
538
- /**
539
- * Mixin to augment a directive with updateErrorState method.
540
- * For component with `errorState` and need to update `errorState`.
541
- */
542
- function mixinErrorState(base) {
543
- return /** @class */ (function (_super) {
544
- __extends(class_1, _super);
545
- function class_1() {
546
- var args = [];
547
- for (var _i = 0; _i < arguments.length; _i++) {
548
- args[_i] = arguments[_i];
549
- }
550
- var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
551
- /** Whether the component is in an error state. */
552
- _this.errorState = false;
553
- /**
554
- * Stream that emits whenever the state of the input changes such that the wrapping
555
- * `MatFormField` needs to run change detection.
556
- */
557
- _this.stateChanges = new rxjs.Subject();
558
- return _this;
559
- }
560
- class_1.prototype.updateErrorState = function () {
561
- var oldState = this.errorState;
562
- var parent = this.parentFormGroup || this.parentForm;
563
- var matcher = this.errorStateMatcher || this.defaultErrorStateMatcher;
564
- var control = this.ngControl ? this.ngControl.control : null;
565
- var newState = matcher.isErrorState(control, parent);
566
- if (newState !== oldState) {
567
- this.errorState = newState;
568
- this.stateChanges.next();
569
- }
570
- };
571
- return class_1;
572
- }(base));
573
- }
574
-
575
- /**
576
- * Shared directive to count lines inside a text area, such as a list item.
577
- * Line elements can be extracted with a @ContentChildren(McLine) query, then
578
- * counted by checking the query list's length.
579
- */
580
- var McLine = /** @class */ (function () {
581
- function McLine() {
582
- }
583
- return McLine;
584
- }());
585
- /** @nocollapse */ McLine.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLine, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
586
- /** @nocollapse */ McLine.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McLine, selector: "[mc-line], [mcLine]", host: { classAttribute: "mc-line" }, ngImport: i0__namespace });
587
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLine, decorators: [{
588
- type: i0.Directive,
589
- args: [{
590
- selector: '[mc-line], [mcLine]',
591
- host: { class: 'mc-line' }
592
- }]
593
- }] });
594
- /**
595
- * Helper that takes a query list of lines and sets the correct class on the host.
596
- * @docs-private
597
- */
598
- var McLineSetter = /** @class */ (function () {
599
- function McLineSetter(_lines, _element) {
600
- var _this = this;
601
- this._lines = _lines;
602
- this._element = _element;
603
- this.setLineClass(this._lines.length);
604
- this._lines.changes.subscribe(function () {
605
- _this.setLineClass(_this._lines.length);
606
- });
607
- }
608
- McLineSetter.prototype.setLineClass = function (count) {
609
- var minLineClassNumber = 2;
610
- var maxLineClassNumber = 3;
611
- this.resetClasses();
612
- if (count === minLineClassNumber || count === maxLineClassNumber) {
613
- this.setClass("mc-" + count + "-line", true);
614
- }
615
- else if (count > maxLineClassNumber) {
616
- this.setClass("mc-multi-line", true);
617
- }
618
- };
619
- McLineSetter.prototype.resetClasses = function () {
620
- this.setClass('mc-2-line', false);
621
- this.setClass('mc-3-line', false);
622
- this.setClass('mc-multi-line', false);
623
- };
624
- McLineSetter.prototype.setClass = function (className, isAdd) {
625
- if (isAdd) {
626
- this._element.nativeElement.classList.add(className);
627
- }
628
- else {
629
- this._element.nativeElement.classList.remove(className);
630
- }
631
- };
632
- return McLineSetter;
633
- }());
634
- var McLineModule = /** @class */ (function () {
635
- function McLineModule() {
636
- }
637
- return McLineModule;
638
- }());
639
- /** @nocollapse */ McLineModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLineModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
640
- /** @nocollapse */ McLineModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLineModule, declarations: [McLine], exports: [McLine] });
641
- /** @nocollapse */ McLineModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLineModule, imports: [[]] });
642
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLineModule, decorators: [{
643
- type: i0.NgModule,
644
- args: [{
645
- imports: [],
646
- exports: [McLine],
647
- declarations: [McLine]
648
- }]
649
- }] });
650
-
651
- /** Error state matcher that matches when a control is invalid and dirty. */
652
- var ShowOnDirtyErrorStateMatcher = /** @class */ (function () {
653
- function ShowOnDirtyErrorStateMatcher() {
654
- }
655
- ShowOnDirtyErrorStateMatcher.prototype.isErrorState = function (control, form) {
656
- return !!(control && control.invalid && (control.dirty || (form && form.submitted)));
657
- };
658
- return ShowOnDirtyErrorStateMatcher;
659
- }());
660
- /** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ShowOnDirtyErrorStateMatcher, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
661
- /** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ShowOnDirtyErrorStateMatcher });
662
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ShowOnDirtyErrorStateMatcher, decorators: [{
663
- type: i0.Injectable
664
- }] });
665
- /** Provider that defines how form controls behave with regards to displaying error messages. */
666
- var ErrorStateMatcher = /** @class */ (function () {
667
- function ErrorStateMatcher() {
668
- }
669
- ErrorStateMatcher.prototype.isErrorState = function (control, form) {
670
- return !!(control && control.invalid && (control.touched || (form && form.submitted)));
671
- };
672
- return ErrorStateMatcher;
673
- }());
674
- /** @nocollapse */ ErrorStateMatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ErrorStateMatcher, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
675
- /** @nocollapse */ ErrorStateMatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ErrorStateMatcher, providedIn: 'root' });
676
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ErrorStateMatcher, decorators: [{
677
- type: i0.Injectable,
678
- args: [{ providedIn: 'root' }]
679
- }] });
680
-
681
- var enUS = {
682
- relativeTemplates: {
683
- short: {
684
- SECONDS_AGO: 'Just now',
685
- MINUTES_AGO: '{MINUTES_PASSED}{NBSP}min ago',
686
- TODAY: '{TIME}',
687
- YESTERDAY: 'Yesterday, {TIME}',
688
- BEFORE_YESTERDAY: '{CURRENT_YEAR, select, yes{{SHORT_DATE}, {TIME}} other{{SHORT_DATE}, {YEAR}}}'
689
- },
690
- long: {
691
- SECONDS_AGO: 'Just now',
692
- MINUTES_AGO: '{MINUTES_PASSED, plural, =1{#{NBSP}minute} other{#{NBSP}minutes}} ago',
693
- TODAY: '{TIME}',
694
- YESTERDAY: 'Yesterday, {TIME}',
695
- BEFORE_YESTERDAY: '{CURRENT_YEAR, select, yes{{DATE}, {TIME}} other{{DATE}, {YEAR}}}'
696
- }
697
- },
698
- absoluteTemplates: {
699
- short: {
700
- DATE: '{CURRENT_YEAR, select, yes{{SHORT_DATE}} other{{SHORT_DATE}, {YEAR}}}',
701
- DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE}, {YEAR}, {TIME}}\n }{\n SHOW_MILLISECONDS,\n select,\n yes{:{SECONDS}{MILLISECONDS}}\n other{}\n }"
702
- },
703
- long: {
704
- DATE: '{CURRENT_YEAR, select, yes{{DATE}} other{{DATE}, {YEAR}}}',
705
- DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE}, {YEAR}, {TIME}}\n }{\n SHOW_MILLISECONDS,\n select,\n yes{:{SECONDS}{MILLISECONDS}}\n other{}\n }"
706
- }
707
- },
708
- rangeTemplates: {
709
- closedRange: {
710
- short: {
711
- START_DATE: '{CURRENT_YEAR, select, yes{{SHORT_DATE}} other{{SHORT_DATE}, {YEAR}}}',
712
- END_DATE: "{\n SAME_MONTH,\n select,\n yes{{DAY}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}}\n other{{SHORT_DATE}, {YEAR}}\n }}\n }",
713
- DATE: "{\n SAME_MONTH,\n select,\n yes{{START_DATE}{DASH}{END_DATE}}\n other{{START_DATE}{LONG_DASH}{END_DATE}}\n }",
714
- START_DATETIME: "{\n SAME_DAY,\n select,\n yes{{TIME}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE}, {YEAR}, {TIME}}\n }}\n }",
715
- END_DATETIME: "{\n SAME_DAY,\n select,\n yes{{\n CURRENT_YEAR,\n select,\n yes{{TIME}, {SHORT_DATE}}\n other{{TIME}, {SHORT_DATE}, {YEAR}}\n }}\n other{{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE}, {YEAR}, {TIME}}\n }}\n }",
716
- DATETIME: "{\n SAME_DAY,\n select,\n yes{{START_DATETIME}{DASH}{END_DATETIME}}\n other{{START_DATETIME}{LONG_DASH}{END_DATETIME}}\n }"
717
- },
718
- middle: {
719
- START_DATE: "{\n SAME_MONTH,\n select,\n yes{{DAY}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}}\n other{{DATE}, {YEAR}}\n }}\n }",
720
- END_DATE: '{CURRENT_YEAR, select, yes{{DATE}} other{{DATE}, {YEAR}}}',
721
- DATE: "{\n SAME_MONTH,\n select,\n yes{{START_DATE}{DASH}{END_DATE}}\n other{{START_DATE}{LONG_DASH}{END_DATE}}\n }",
722
- START_DATETIME: "{\n SAME_DAY,\n select,\n yes{{TIME}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE}, {YEAR}, {TIME}}\n }}\n }",
723
- END_DATETIME: "{\n SAME_DAY,\n select,\n yes{{\n CURRENT_YEAR,\n select,\n yes{{TIME}, {DATE}}\n other{{TIME}, {DATE}, {YEAR}}\n }}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE}, {YEAR}, {TIME}}\n }}\n }",
724
- DATETIME: "{\n SAME_DAY,\n select,\n yes{{START_DATETIME}{DASH}{END_DATETIME}}\n other{{START_DATETIME}{LONG_DASH}{END_DATETIME}}\n }"
725
- },
726
- long: {
727
- START_DATE: '{CURRENT_YEAR, select, yes{{DATE}} other{{DATE}, {YEAR}}}',
728
- END_DATE: "{\n SAME_MONTH,\n select,\n yes{{DAY}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}}\n other{{DATE}, {YEAR}}\n }}\n }",
729
- DATE: "{\n SAME_MONTH,\n select,\n yes{{START_DATE}{DASH}{END_DATE}}\n other{{START_DATE}{LONG_DASH}{END_DATE}}\n }",
730
- START_DATETIME: "{\n SAME_DAY,\n select,\n yes{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, from{NBSP}{TIME}}\n other{{DATE}, {YEAR}, from{NBSP}{TIME}}\n }}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE}, {YEAR}, {TIME}}\n }}\n }",
731
- END_DATETIME: "{\n SAME_DAY,\n select,\n yes{to{NBSP}{TIME}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE}, {YEAR}, {TIME}}\n }}\n }",
732
- DATETIME: "{\n SAME_DAY,\n select,\n yes{{START_DATETIME} {END_DATETIME}}\n other{From {START_DATETIME} to{NBSP}{END_DATETIME}}\n }"
733
- }
734
- },
735
- openedRange: {
736
- short: {
737
- START_DATE: "{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}}\n other{{SHORT_DATE} {YEAR}}\n }",
738
- END_DATE: '{CURRENT_YEAR, select, yes{{SHORT_DATE}} other{{SHORT_DATE} {YEAR}}}',
739
- DATE: "{\n RANGE_TYPE,\n select,\n onlyStart{From{NBSP}{START_DATE}}\n other{Until{NBSP}{END_DATE}}\n }",
740
- START_DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE} {YEAR}, {TIME}}\n }",
741
- END_DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE} {YEAR}, {TIME}}\n }",
742
- DATETIME: "{\n RANGE_TYPE,\n select,\n onlyStart{From{NBSP}{START_DATETIME}}\n other{Until{NBSP}{END_DATETIME}}\n }"
743
- },
744
- long: {
745
- START_DATE: "{\n CURRENT_YEAR,\n select,\n yes{{DATE}}\n other{{DATE} {YEAR}}\n }",
746
- END_DATE: '{CURRENT_YEAR, select, yes{{DATE}} other{{DATE} {YEAR}}}',
747
- DATE: "{\n RANGE_TYPE,\n select,\n onlyStart{From{NBSP}{START_DATE}}\n other{Until{NBSP}{END_DATE}}\n }",
748
- START_DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE} {YEAR}, {TIME}}\n }",
749
- END_DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE} {YEAR}, {TIME}}\n }",
750
- DATETIME: "{\n RANGE_TYPE,\n select,\n onlyStart{From{NBSP}{START_DATETIME}}\n other{Until{NBSP}{END_DATETIME}}\n }"
751
- }
752
- }
753
- }
754
- };
755
-
756
- var ruRU = {
757
- relativeTemplates: {
758
- short: {
759
- SECONDS_AGO: 'Только что',
760
- MINUTES_AGO: '{MINUTES_PASSED}{NBSP}мин назад',
761
- TODAY: '{TIME}',
762
- YESTERDAY: 'Вчера, {TIME}',
763
- BEFORE_YESTERDAY: '{CURRENT_YEAR, select, yes{{SHORT_DATE}, {TIME}} other{{SHORT_DATE} {YEAR}}}'
764
- },
765
- long: {
766
- SECONDS_AGO: 'Только что',
767
- MINUTES_AGO: '{MINUTES_PASSED, plural, =1{#{NBSP}минуту} =2{#{NBSP}минуты} other{#{NBSP}минут}} назад',
768
- TODAY: '{TIME}',
769
- YESTERDAY: 'Вчера, {TIME}',
770
- BEFORE_YESTERDAY: '{CURRENT_YEAR, select, yes{{DATE}, {TIME}} other{{DATE} {YEAR}}}'
771
- }
772
- },
773
- absoluteTemplates: {
774
- short: {
775
- DATE: '{CURRENT_YEAR, select, yes{{SHORT_DATE}} other{{SHORT_DATE} {YEAR}}}',
776
- DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE} {YEAR}, {TIME}}\n }{\n SHOW_MILLISECONDS,\n select,\n yes{:{SECONDS}{MILLISECONDS}}\n other{}\n }"
777
- },
778
- long: {
779
- DATE: '{CURRENT_YEAR, select, yes{{DATE}} other{{DATE} {YEAR}}}',
780
- DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE} {YEAR}, {TIME}}\n }{\n SHOW_MILLISECONDS,\n select,\n yes{:{SECONDS}{MILLISECONDS}}\n other{}\n }"
781
- }
782
- },
783
- rangeTemplates: {
784
- closedRange: {
785
- short: {
786
- START_DATE: "{\n SAME_MONTH,\n select,\n yes{{DAY}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}}\n other{{SHORT_DATE} {YEAR}}\n }}\n }",
787
- END_DATE: '{CURRENT_YEAR, select, yes{{SHORT_DATE}} other{{SHORT_DATE} {YEAR}}}',
788
- DATE: "{\n SAME_MONTH,\n select,\n yes{{START_DATE}{DASH}{END_DATE}}\n other{{START_DATE}{LONG_DASH}{END_DATE}}\n }",
789
- START_DATETIME: "{\n SAME_DAY,\n select,\n yes{{TIME}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE} {YEAR}, {TIME}}\n }}\n }",
790
- END_DATETIME: "{\n SAME_DAY,\n select,\n yes{{\n CURRENT_YEAR,\n select,\n yes{{TIME}, {SHORT_DATE}}\n other{{TIME}, {SHORT_DATE} {YEAR}}\n }}\n other{{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE} {YEAR}, {TIME}}\n }}\n }",
791
- DATETIME: "{\n SAME_DAY,\n select,\n yes{{START_DATETIME}{DASH}{END_DATETIME}}\n other{{START_DATETIME}{LONG_DASH}{END_DATETIME}}\n }"
792
- },
793
- middle: {
794
- START_DATE: "{\n SAME_MONTH,\n select,\n yes{{DAY}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}}\n other{{DATE} {YEAR}}\n }}\n }",
795
- END_DATE: '{CURRENT_YEAR, select, yes{{DATE}} other{{DATE} {YEAR}}}',
796
- DATE: "{\n SAME_MONTH,\n select,\n yes{{START_DATE}{DASH}{END_DATE}}\n other{{START_DATE}{LONG_DASH}{END_DATE}}\n }",
797
- START_DATETIME: "{\n SAME_DAY,\n select,\n yes{{TIME}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE} {YEAR}, {TIME}}\n }}\n }",
798
- END_DATETIME: "{\n SAME_DAY,\n select,\n yes{{\n CURRENT_YEAR,\n select,\n yes{{TIME}, {DATE}}\n other{{TIME}, {DATE} {YEAR}}\n }}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE} {YEAR}, {TIME}}\n }}\n }",
799
- DATETIME: "{\n SAME_DAY,\n select,\n yes{{START_DATETIME}{DASH}{END_DATETIME}}\n other{{START_DATETIME}{LONG_DASH}{END_DATETIME}}\n }"
800
- },
801
- long: {
802
- START_DATE: "{\n SAME_MONTH,\n select,\n yes{{DAY}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}}\n other{{DATE} {YEAR}}\n }}\n }",
803
- END_DATE: '{CURRENT_YEAR, select, yes{{DATE}} other{{DATE} {YEAR}}}',
804
- DATE: "{\n SAME_MONTH,\n select,\n yes{{START_DATE}{DASH}{END_DATE}}\n other{{START_DATE}{LONG_DASH}{END_DATE}}\n }",
805
- START_DATETIME: "{\n SAME_DAY,\n select,\n yes{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, \u0441{NBSP}{TIME}}\n other{{DATE} {YEAR}, \u0441{NBSP}{TIME}}\n }}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE} {YEAR}, {TIME}}\n }}\n }",
806
- END_DATETIME: "{\n SAME_DAY,\n select,\n yes{\u043F\u043E{NBSP}{TIME}}\n other{{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE} {YEAR}, {TIME}}\n }}\n }",
807
- DATETIME: "{\n SAME_DAY,\n select,\n yes{{START_DATETIME} {END_DATETIME}}\n other{\u0421{NBSP}{START_DATETIME} \u043F\u043E{NBSP}{END_DATETIME}}\n }"
808
- }
809
- },
810
- openedRange: {
811
- short: {
812
- START_DATE: "{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}}\n other{{SHORT_DATE} {YEAR}}\n }",
813
- END_DATE: '{CURRENT_YEAR, select, yes{{SHORT_DATE}} other{{SHORT_DATE} {YEAR}}}',
814
- DATE: "{\n RANGE_TYPE,\n select,\n onlyStart{\u0421{NBSP}{START_DATE}}\n other{\u041F\u043E{NBSP}{END_DATE}}\n }",
815
- START_DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE} {YEAR}, {TIME}}\n }",
816
- END_DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{SHORT_DATE}, {TIME}}\n other{{SHORT_DATE} {YEAR}, {TIME}}\n }",
817
- DATETIME: "{\n RANGE_TYPE,\n select,\n onlyStart{\u0421{NBSP}{START_DATETIME}}\n other{\u041F\u043E{NBSP}{END_DATETIME}}\n }"
818
- },
819
- long: {
820
- START_DATE: "{\n CURRENT_YEAR,\n select,\n yes{{DATE}}\n other{{DATE} {YEAR}}\n }",
821
- END_DATE: '{CURRENT_YEAR, select, yes{{DATE}} other{{DATE} {YEAR}}}',
822
- DATE: "{\n RANGE_TYPE,\n select,\n onlyStart{\u0421{NBSP}{START_DATE}}\n other{\u041F\u043E{NBSP}{END_DATE}}\n }",
823
- START_DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE} {YEAR}, {TIME}}\n }",
824
- END_DATETIME: "{\n CURRENT_YEAR,\n select,\n yes{{DATE}, {TIME}}\n other{{DATE} {YEAR}, {TIME}}\n }",
825
- DATETIME: "{\n RANGE_TYPE,\n select,\n onlyStart{\u0421{NBSP}{START_DATETIME}}\n other{\u041F\u043E{NBSP}{END_DATETIME}}\n }"
826
- }
827
- }
828
- }
829
- };
830
-
831
- // tslint:disable:no-magic-numbers
832
- var DateFormatter = /** @class */ (function () {
833
- function DateFormatter(adapter, locale) {
834
- this.adapter = adapter;
835
- this.invalidDateErrorText = 'Invalid date';
836
- this.config = locale === 'en' ? enUS : ruRU;
837
- this.messageFormat = new MessageFormat__default["default"](locale);
838
- }
839
- DateFormatter.prototype.setLocale = function (locale) {
840
- this.config = locale === 'en' ? enUS : ruRU;
841
- this.adapter.setLocale(locale);
842
- };
843
- /**
844
- * @param date - date
845
- * @param template - template
846
- * @returns relative date by template
847
- */
848
- DateFormatter.prototype.relativeDate = function (date, template) {
849
- if (!this.adapter.isDateInstance(date)) {
850
- throw new Error(this.invalidDateErrorText);
851
- }
852
- var totalSeconds = Math.abs(this.adapter.diffNow(date, 'seconds'));
853
- var totalMinutes = Math.floor(Math.abs(this.adapter.diffNow(date, 'minutes')));
854
- var isToday = this.adapter.hasSame(this.adapter.today(), date, 'days');
855
- var isYesterday = this.adapter.diffNow(date, 'days') <= -1 && this.adapter.diffNow(date, 'days') > -2;
856
- var templateVariables = Object.assign(Object.assign({}, this.adapter.config.variables), template.variables);
857
- var variables = this.compileVariables(date, templateVariables);
858
- var newTemplate;
859
- if (totalSeconds <= 59) { // seconds ago
860
- variables.SECONDS_PASSED = totalSeconds;
861
- newTemplate = template.SECONDS_AGO;
862
- }
863
- else if (totalMinutes <= 59) { // minutes ago
864
- variables.MINUTES_PASSED = totalMinutes;
865
- newTemplate = template.MINUTES_AGO;
866
- }
867
- else if (isToday) {
868
- newTemplate = template.TODAY;
869
- }
870
- else if (isYesterday) {
871
- newTemplate = template.YESTERDAY;
872
- }
873
- else { // before yesterday
874
- newTemplate = template.BEFORE_YESTERDAY;
875
- }
876
- return this.messageFormat.compile(newTemplate)(variables);
877
- };
878
- /**
879
- * @param date - date
880
- * @returns relative date in short format
881
- */
882
- DateFormatter.prototype.relativeShortDate = function (date) {
883
- return this.relativeDate(date, this.config.relativeTemplates.short);
884
- };
885
- /**
886
- * @param date - date
887
- * @returns relative date in long format
888
- */
889
- DateFormatter.prototype.relativeLongDate = function (date) {
890
- return this.relativeDate(date, this.config.relativeTemplates.long);
891
- };
892
- /**
893
- * @param date - date
894
- * @param params - parameters
895
- * @param datetime - should time be shown as well
896
- * @param milliseconds - should time with milliseconds be shown as well
897
- * @returns absolute date in common format
898
- */
899
- DateFormatter.prototype.absoluteDate = function (date, params, datetime, milliseconds) {
900
- if (datetime === void 0) { datetime = false; }
901
- if (milliseconds === void 0) { milliseconds = false; }
902
- if (!this.adapter.isDateInstance(date)) {
903
- throw new Error(this.invalidDateErrorText);
904
- }
905
- var variables = this.compileVariables(date, Object.assign(Object.assign({}, this.adapter.config.variables), params.variables));
906
- variables.SHOW_MILLISECONDS = milliseconds ? 'yes' : 'no';
907
- var template = datetime ? params.DATETIME : params.DATE;
908
- return this.messageFormat.compile(template)(variables);
909
- };
910
- /**
911
- * @param date - date
912
- * @returns absolute date in short format
913
- */
914
- DateFormatter.prototype.absoluteShortDate = function (date) {
915
- return this.absoluteDate(date, this.config.absoluteTemplates.short);
916
- };
917
- /**
918
- * @param date - date
919
- * @param options - AbsoluteDateTimeOptions
920
- * @returns absolute date in short format with time
921
- */
922
- DateFormatter.prototype.absoluteShortDateTime = function (date, options) {
923
- return this.absoluteDate(date, this.config.absoluteTemplates.short, true, options === null || options === void 0 ? void 0 : options.milliseconds);
924
- };
925
- /**
926
- * @param date - date
927
- * @returns absolute date in long format
928
- */
929
- DateFormatter.prototype.absoluteLongDate = function (date) {
930
- return this.absoluteDate(date, this.config.absoluteTemplates.long);
931
- };
932
- /**
933
- * @param date - date
934
- * @param options - AbsoluteDateTimeOptions
935
- * @returns absolute date in long format with time
936
- */
937
- DateFormatter.prototype.absoluteLongDateTime = function (date, options) {
938
- return this.absoluteDate(date, this.config.absoluteTemplates.long, true, options === null || options === void 0 ? void 0 : options.milliseconds);
939
- };
940
- /**
941
- * @param startDate - start date
942
- * @param endDate - end date
943
- * @param template - template
944
- * @returns opened date
945
- */
946
- DateFormatter.prototype.openedRangeDate = function (startDate, endDate, template) {
947
- if (!this.adapter.isDateInstance(startDate) && !this.adapter.isDateInstance(endDate)) {
948
- throw new Error(this.invalidDateErrorText);
949
- }
950
- var variables = Object.assign(Object.assign({}, this.adapter.config.variables), template.variables);
951
- var params = {};
952
- if (startDate) {
953
- var startDateVariables = this.compileVariables(startDate, variables);
954
- params = Object.assign(Object.assign({}, variables), { START_DATE: this.messageFormat.compile(template.START_DATE)(startDateVariables), RANGE_TYPE: 'onlyStart' });
955
- }
956
- else if (endDate) {
957
- var endDateVariables = this.compileVariables(endDate, variables);
958
- params = Object.assign(Object.assign({}, variables), { END_DATE: this.messageFormat.compile(template.END_DATE)(endDateVariables), RANGE_TYPE: 'onlyEnd' });
959
- }
960
- return this.messageFormat.compile(template.DATE)(params);
961
- };
962
- /**
963
- * @param startDate - start date
964
- * @param endDate - end date
965
- * @param template - template
966
- * @returns opened date
967
- */
968
- DateFormatter.prototype.openedRangeDateTime = function (startDate, endDate, template) {
969
- if (!this.adapter.isDateInstance(startDate) && !this.adapter.isDateInstance(endDate)) {
970
- throw new Error(this.invalidDateErrorText);
971
- }
972
- var variables = Object.assign(Object.assign({}, this.adapter.config.variables), template.variables);
973
- var params = {};
974
- if (startDate) {
975
- var startDateVariables = this.compileVariables(startDate, variables);
976
- params = Object.assign(Object.assign({}, variables), { START_DATETIME: this.messageFormat.compile(template.START_DATETIME)(startDateVariables), RANGE_TYPE: 'onlyStart' });
977
- }
978
- else if (endDate) {
979
- var endDateVariables = this.compileVariables(endDate, variables);
980
- params = Object.assign(Object.assign({}, variables), { END_DATETIME: this.messageFormat.compile(template.END_DATETIME)(endDateVariables), RANGE_TYPE: 'onlyEnd' });
981
- }
982
- return this.messageFormat.compile(template.DATETIME)(params);
983
- };
984
- /**
985
- * @param startDate - start date
986
- * @param endDate - end date
987
- * @param template - template
988
- * @returns range date in template format
989
- */
990
- DateFormatter.prototype.rangeDate = function (startDate, endDate, template) {
991
- if (!this.adapter.isDateInstance(startDate) || !this.adapter.isDateInstance(endDate)) {
992
- throw new Error(this.invalidDateErrorText);
993
- }
994
- var variables = Object.assign(Object.assign({}, this.adapter.config.variables), template.variables);
995
- var sameMonth = this.hasSame(startDate, endDate, 'month');
996
- var startDateVariables = this.compileVariables(startDate, variables);
997
- startDateVariables.SAME_MONTH = sameMonth;
998
- var endDateVariables = this.compileVariables(endDate, variables);
999
- endDateVariables.SAME_MONTH = sameMonth;
1000
- var bothCurrentYear = startDateVariables.CURRENT_YEAR === 'yes' && endDateVariables.CURRENT_YEAR === 'yes';
1001
- startDateVariables.CURRENT_YEAR = bothCurrentYear ? 'yes' : 'no';
1002
- endDateVariables.CURRENT_YEAR = bothCurrentYear ? 'yes' : 'no';
1003
- var params = Object.assign(Object.assign({}, variables), { START_DATE: this.messageFormat.compile(template.START_DATE)(startDateVariables), END_DATE: this.messageFormat.compile(template.END_DATE)(endDateVariables), SAME_MONTH: sameMonth });
1004
- return this.messageFormat.compile(template.DATE)(params);
1005
- };
1006
- /**
1007
- * @param startDate - start date
1008
- * @param endDate - end date
1009
- * @param template - template
1010
- * @returns range date in template format with time
1011
- */
1012
- DateFormatter.prototype.rangeDateTime = function (startDate, endDate, template) {
1013
- if (!this.adapter.isDateInstance(startDate) || !this.adapter.isDateInstance(endDate)) {
1014
- throw new Error(this.invalidDateErrorText);
1015
- }
1016
- var variables = Object.assign(Object.assign({}, this.adapter.config.variables), template.variables);
1017
- var sameMonth = this.hasSame(startDate, endDate, 'month');
1018
- var sameDay = this.hasSame(startDate, endDate, 'day');
1019
- var startDateVariables = this.compileVariables(startDate, variables);
1020
- startDateVariables.SAME_MONTH = sameMonth;
1021
- startDateVariables.SAME_DAY = sameDay;
1022
- var endDateVariables = this.compileVariables(endDate, variables);
1023
- endDateVariables.SAME_MONTH = sameMonth;
1024
- endDateVariables.SAME_DAY = sameDay;
1025
- var bothCurrentYear = startDateVariables.CURRENT_YEAR === 'yes' && endDateVariables.CURRENT_YEAR === 'yes';
1026
- startDateVariables.CURRENT_YEAR = bothCurrentYear ? 'yes' : 'no';
1027
- endDateVariables.CURRENT_YEAR = bothCurrentYear ? 'yes' : 'no';
1028
- var params = Object.assign(Object.assign({}, variables), { START_DATETIME: this.messageFormat.compile(template.START_DATETIME)(startDateVariables), END_DATETIME: this.messageFormat.compile(template.END_DATETIME)(endDateVariables), SAME_MONTH: sameMonth, SAME_DAY: sameDay });
1029
- return this.messageFormat.compile(template.DATETIME)(params);
1030
- };
1031
- /**
1032
- * @param startDate - start date
1033
- * @param endDate - end date
1034
- * @returns range date in short format
1035
- */
1036
- DateFormatter.prototype.rangeShortDate = function (startDate, endDate) {
1037
- var rangeTemplates = this.config.rangeTemplates;
1038
- if (startDate && endDate) {
1039
- return this.rangeDate(startDate, endDate, rangeTemplates.closedRange.short);
1040
- }
1041
- return this.openedRangeDate(startDate, endDate || null, rangeTemplates.openedRange.short);
1042
- };
1043
- /**
1044
- * @param startDate - start date
1045
- * @param endDate - end date
1046
- * @returns range date in short format with time
1047
- */
1048
- DateFormatter.prototype.rangeShortDateTime = function (startDate, endDate) {
1049
- var rangeTemplates = this.config.rangeTemplates;
1050
- if (startDate && endDate) {
1051
- return this.rangeDateTime(startDate, endDate, rangeTemplates.closedRange.short);
1052
- }
1053
- return this.openedRangeDateTime(startDate, endDate || null, rangeTemplates.openedRange.short);
1054
- };
1055
- /**
1056
- * @param startDate - start date
1057
- * @param endDate - end date
1058
- * @returns range date in long format
1059
- */
1060
- DateFormatter.prototype.rangeLongDate = function (startDate, endDate) {
1061
- var rangeTemplates = this.config.rangeTemplates;
1062
- if (startDate && endDate) {
1063
- return this.rangeDate(startDate, endDate, rangeTemplates.closedRange.long);
1064
- }
1065
- return this.openedRangeDate(startDate, endDate || null, rangeTemplates.openedRange.long);
1066
- };
1067
- /**
1068
- * @param startDate - start date
1069
- * @param endDate - end date
1070
- * @returns range date in long format with time
1071
- */
1072
- DateFormatter.prototype.rangeLongDateTime = function (startDate, endDate) {
1073
- var rangeTemplates = this.config.rangeTemplates;
1074
- if (startDate && endDate) {
1075
- return this.rangeDateTime(startDate, endDate, rangeTemplates.closedRange.long);
1076
- }
1077
- return this.openedRangeDateTime(startDate, endDate || null, rangeTemplates.openedRange.long);
1078
- };
1079
- /**
1080
- * @param startDate - start date
1081
- * @param endDate - end date
1082
- * @returns range middle date with time
1083
- */
1084
- DateFormatter.prototype.rangeMiddleDateTime = function (startDate, endDate) {
1085
- return this.rangeDateTime(startDate, endDate, this.config.rangeTemplates.closedRange.middle);
1086
- };
1087
- DateFormatter.prototype.compileVariables = function (date, variables) {
1088
- var compiledVariables = {};
1089
- // tslint:disable-next-line:no-for-in
1090
- for (var key in variables) {
1091
- if (!variables.hasOwnProperty(key)) {
1092
- continue;
1093
- }
1094
- var value = variables[key];
1095
- compiledVariables[key] = this.adapter.format(date, value);
1096
- }
1097
- compiledVariables.CURRENT_YEAR = this.hasSame(date, this.adapter.today(), 'year');
1098
- return compiledVariables;
1099
- };
1100
- DateFormatter.prototype.hasSame = function (startDate, endDate, unit) {
1101
- return this.adapter.hasSame(startDate, endDate, unit) ? 'yes' : 'no';
1102
- };
1103
- return DateFormatter;
1104
- }());
1105
- /** @nocollapse */ DateFormatter.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DateFormatter, deps: [{ token: i1__namespace.DateAdapter }, { token: i1.MC_DATE_LOCALE }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1106
- /** @nocollapse */ DateFormatter.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DateFormatter });
1107
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DateFormatter, decorators: [{
1108
- type: i0.Injectable
1109
- }], ctorParameters: function () {
1110
- return [{ type: i1__namespace.DateAdapter }, { type: undefined, decorators: [{
1111
- type: i0.Inject,
1112
- args: [i1.MC_DATE_LOCALE]
1113
- }] }];
1114
- } });
1115
-
1116
- /* tslint:disable:naming-convention */
1117
- var MC_LOCALE_ID = new i0.InjectionToken('McLocaleId');
1118
- var DEFAULT_MC_LOCALE_ID = 'ru';
1119
- function isEmpty(value) {
1120
- return value == null || value === '' || value !== value;
1121
- }
1122
- function strToNumber(value) {
1123
- if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {
1124
- return Number(value);
1125
- }
1126
- if (typeof value !== 'number') {
1127
- throw new Error(value + " is not a number");
1128
- }
1129
- return value;
1130
- }
1131
- var NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?)?$/;
1132
- var minIntGroupPosition = 1;
1133
- var minFractionGroupPosition = 3;
1134
- var maxFractionGroupPosition = 5;
1135
- var ParsedDigitsInfo = /** @class */ (function () {
1136
- function ParsedDigitsInfo() {
1137
- }
1138
- return ParsedDigitsInfo;
1139
- }());
1140
- function parseDigitsInfo(digitsInfo) {
1141
- var parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);
1142
- if (parts === null) {
1143
- throw new Error(digitsInfo + " is not a valid digit info");
1144
- }
1145
- var minIntPart = parts[minIntGroupPosition];
1146
- var minFractionPart = parts[minFractionGroupPosition];
1147
- var maxFractionPart = parts[maxFractionGroupPosition];
1148
- var result = new ParsedDigitsInfo();
1149
- if (minIntPart != null) {
1150
- result.minimumIntegerDigits = parseInt(minIntPart);
1151
- }
1152
- if (minFractionPart != null) {
1153
- result.minimumFractionDigits = parseInt(minFractionPart);
1154
- }
1155
- if (maxFractionPart != null) {
1156
- result.maximumFractionDigits = parseInt(maxFractionPart);
1157
- }
1158
- else if (minFractionPart != null && result.minimumFractionDigits > result.maximumFractionDigits) {
1159
- result.maximumFractionDigits = result.minimumFractionDigits;
1160
- }
1161
- return result;
1162
- }
1163
- var McDecimalPipe = /** @class */ (function () {
1164
- function McDecimalPipe(_locale) {
1165
- this._locale = _locale;
1166
- }
1167
- /**
1168
- * @param value The number to be formatted.
1169
- * @param digitsInfo Decimal representation options, specified by a string
1170
- * in the following format:<br>
1171
- * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
1172
- * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
1173
- * Default is `1`.
1174
- * - `minFractionDigits`: The minimum number of digits after the decimal point.
1175
- * Default is `0`.
1176
- * - `maxFractionDigits`: The maximum number of digits after the decimal point.
1177
- * Default is `3`.
1178
- * @param locale A locale code for the locale format rules to use.
1179
- * When not supplied, uses the value of `MC_LOCALE_ID`, which is `ru` by default.
1180
- */
1181
- McDecimalPipe.prototype.transform = function (value, digitsInfo, locale) {
1182
- if (isEmpty(value)) {
1183
- return null;
1184
- }
1185
- var currentLocale = locale || this._locale || DEFAULT_MC_LOCALE_ID;
1186
- var parsedDigitsInfo;
1187
- if (digitsInfo) {
1188
- parsedDigitsInfo = parseDigitsInfo(digitsInfo);
1189
- }
1190
- var options = Object.assign({ useGrouping: true, minimumIntegerDigits: 1, minimumFractionDigits: 0, maximumFractionDigits: 3 }, parsedDigitsInfo);
1191
- try {
1192
- var num = strToNumber(value);
1193
- return Intl.NumberFormat.call(this, currentLocale, options).format(num);
1194
- }
1195
- catch (error) {
1196
- throw Error("InvalidPipeArgument: McDecimalPipe for pipe '" + JSON.stringify(error.message) + "'");
1197
- }
1198
- };
1199
- return McDecimalPipe;
1200
- }());
1201
- /** @nocollapse */ McDecimalPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDecimalPipe, deps: [{ token: MC_LOCALE_ID, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1202
- /** @nocollapse */ McDecimalPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDecimalPipe, name: "mcNumber" });
1203
- /** @nocollapse */ McDecimalPipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDecimalPipe, providedIn: 'root' });
1204
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDecimalPipe, decorators: [{
1205
- type: i0.Injectable,
1206
- args: [{ providedIn: 'root' }]
1207
- }, {
1208
- type: i0.Pipe,
1209
- args: [{ name: 'mcNumber' }]
1210
- }], ctorParameters: function () {
1211
- return [{ type: undefined, decorators: [{
1212
- type: i0.Optional
1213
- }, {
1214
- type: i0.Inject,
1215
- args: [MC_LOCALE_ID]
1216
- }] }];
1217
- } });
1218
-
1219
- var McFormattersModule = /** @class */ (function () {
1220
- function McFormattersModule() {
1221
- }
1222
- return McFormattersModule;
1223
- }());
1224
- /** @nocollapse */ McFormattersModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormattersModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1225
- /** @nocollapse */ McFormattersModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormattersModule, declarations: [McDecimalPipe], exports: [McDecimalPipe] });
1226
- /** @nocollapse */ McFormattersModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormattersModule, providers: [DateFormatter] });
1227
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormattersModule, decorators: [{
1228
- type: i0.NgModule,
1229
- args: [{
1230
- exports: [McDecimalPipe],
1231
- declarations: [McDecimalPipe],
1232
- providers: [DateFormatter]
1233
- }]
1234
- }] });
1235
-
1236
- var validationTooltipShowDelay = 10;
1237
- var validationTooltipHideDelay = 3000;
1238
- var MC_VALIDATION = new i0.InjectionToken('McUseValidation', { factory: function () { return ({ useValidation: true }); } });
1239
- function setValidState(control, validator) {
1240
- if (!control) {
1241
- return;
1242
- }
1243
- control.clearValidators();
1244
- control.updateValueAndValidity({ emitEvent: false });
1245
- control.setValidators(validator);
1246
- }
1247
- /** This function do next:
1248
- * - run validation on submitting parent form
1249
- * - prevent validation in required validator if form doesn't submitted
1250
- * - if control has focus validation will be prevented
1251
- */
1252
- function setMosaicValidation(component) {
1253
- var ngControl = component.ngControl;
1254
- if (!ngControl) {
1255
- return;
1256
- }
1257
- var parentForm = component.parentForm || component.parentFormGroup;
1258
- if (parentForm) {
1259
- parentForm.ngSubmit.subscribe(function () {
1260
- // tslint:disable-next-line: no-unnecessary-type-assertion
1261
- ngControl.control.updateValueAndValidity({ emitEvent: false });
1262
- });
1263
- }
1264
- if (component.ngModel) {
1265
- setMosaicValidationForModelControl(component, component.rawValidators, parentForm);
1266
- }
1267
- else if (component.formControlName || component.ngControl) {
1268
- setMosaicValidationForFormControl(component, parentForm, ngControl);
1269
- }
1270
- }
1271
- function setMosaicValidationForModelControl(component, validators, parentForm) {
1272
- if (!validators) {
1273
- return;
1274
- }
1275
- validators.forEach(function (validator) {
1276
- // tslint:disable-next-line: no-unbound-method
1277
- var originalValidate = validator.validate;
1278
- if (validator instanceof forms.RequiredValidator) {
1279
- // changed required validation logic
1280
- validator.validate = function (control) {
1281
- if (parentForm && !parentForm.submitted) {
1282
- return null;
1283
- }
1284
- return originalValidate.call(validator, control);
1285
- };
1286
- }
1287
- else {
1288
- // changed all other validation logic
1289
- validator.validate = function (control) {
1290
- if (component.focused) {
1291
- return null;
1292
- }
1293
- return originalValidate.call(validator, control);
1294
- };
1295
- }
1296
- });
1297
- }
1298
- function setMosaicValidationForFormControl(component, parentForm, ngControl) {
1299
- var originalValidator = ngControl.control.validator;
1300
- // changed required validation logic after initialization
1301
- if (ngControl.invalid && ngControl.errors.required) {
1302
- Promise.resolve().then(function () { return setValidState(ngControl.control, originalValidator); });
1303
- }
1304
- // check dynamic updates
1305
- ngControl.statusChanges
1306
- .subscribe(function () {
1307
- // changed required validation logic
1308
- if (ngControl.invalid && (parentForm && !parentForm.submitted) && ngControl.errors.required) {
1309
- setValidState(ngControl.control, originalValidator);
1310
- }
1311
- // changed all other validation logic
1312
- if (ngControl.invalid && component.focused) {
1313
- setValidState(ngControl.control, originalValidator);
1314
- }
1315
- });
1316
- }
1317
-
1318
- var McHighlightPipe = /** @class */ (function () {
1319
- function McHighlightPipe() {
1320
- }
1321
- McHighlightPipe.prototype.transform = function (value, args) {
1322
- if (!args) {
1323
- return value;
1324
- }
1325
- return value.replace(new RegExp("(" + args + ")", 'gi'), '<mark class="mc-highlight">$1</mark>');
1326
- };
1327
- return McHighlightPipe;
1328
- }());
1329
- /** @nocollapse */ McHighlightPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1330
- /** @nocollapse */ McHighlightPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightPipe, name: "mcHighlight" });
1331
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightPipe, decorators: [{
1332
- type: i0.Pipe,
1333
- args: [{ name: 'mcHighlight' }]
1334
- }] });
1335
-
1336
- var McHighlightModule = /** @class */ (function () {
1337
- function McHighlightModule() {
1338
- }
1339
- return McHighlightModule;
1340
- }());
1341
- /** @nocollapse */ McHighlightModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1342
- /** @nocollapse */ McHighlightModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightModule, declarations: [McHighlightPipe], imports: [i2$1.CommonModule], exports: [McHighlightPipe] });
1343
- /** @nocollapse */ McHighlightModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightModule, imports: [[i2$1.CommonModule]] });
1344
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightModule, decorators: [{
1345
- type: i0.NgModule,
1346
- args: [{
1347
- imports: [i2$1.CommonModule],
1348
- exports: [McHighlightPipe],
1349
- declarations: [McHighlightPipe]
1350
- }]
1351
- }] });
1352
-
1353
- var selectEvents = 'selectEvents';
1354
-
1355
- /**
1356
- * Returns an exception to be thrown when attempting to change a select's `multiple` option
1357
- * after initialization.
1358
- * @docs-private
1359
- */
1360
- function getMcSelectDynamicMultipleError() {
1361
- return Error('Cannot change `multiple` mode of select after initialization.');
1362
- }
1363
- /**
1364
- * Returns an exception to be thrown when attempting to assign a non-array value to a select
1365
- * in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for
1366
- * resetting the value.
1367
- * @docs-private
1368
- */
1369
- function getMcSelectNonArrayValueError() {
1370
- return Error('Value must be an array in multiple-selection mode.');
1371
- }
1372
- /**
1373
- * Returns an exception to be thrown when assigning a non-function value to the comparator
1374
- * used to determine if a value corresponds to an option. Note that whether the function
1375
- * actually takes two values and returns a boolean is not checked.
1376
- */
1377
- function getMcSelectNonFunctionValueError() {
1378
- return Error('`compareWith` must be a function.');
1379
- }
1380
-
1381
- /** The max height of the select's overlay panel */
1382
- var SELECT_PANEL_MAX_HEIGHT = 224;
1383
- /** The panel's padding on the x-axis */
1384
- var SELECT_PANEL_PADDING_X = 1;
1385
- /** The panel's x axis padding if it is indented (e.g. there is an option group). */
1386
- /* tslint:disable-next-line:no-magic-numbers */
1387
- var SELECT_PANEL_INDENT_PADDING_X = SELECT_PANEL_PADDING_X * 2;
1388
- /**
1389
- * The select panel will only "fit" inside the viewport if it is positioned at
1390
- * this value or more away from the viewport boundary.
1391
- */
1392
- var SELECT_PANEL_VIEWPORT_PADDING = 8;
1393
- /** Injection token that determines the scroll handling while a select is open. */
1394
- var MC_SELECT_SCROLL_STRATEGY = new i0.InjectionToken('mc-select-scroll-strategy');
1395
- /** @docs-private */
1396
- function mcSelectScrollStrategyProviderFactory(overlay) {
1397
- return function () { return overlay.scrollStrategies.reposition(); };
1398
- }
1399
- /** @docs-private */
1400
- var MC_SELECT_SCROLL_STRATEGY_PROVIDER = {
1401
- provide: MC_SELECT_SCROLL_STRATEGY,
1402
- deps: [i1$1.Overlay],
1403
- useFactory: mcSelectScrollStrategyProviderFactory
1404
- };
1405
-
1406
- var POSITION_MAP = {
1407
- top: {
1408
- originX: 'center',
1409
- originY: 'top',
1410
- overlayX: 'center',
1411
- overlayY: 'bottom'
1412
- },
1413
- topCenter: {
1414
- originX: 'center',
1415
- originY: 'top',
1416
- overlayX: 'center',
1417
- overlayY: 'bottom'
1418
- },
1419
- topLeft: {
1420
- originX: 'start',
1421
- originY: 'top',
1422
- overlayX: 'start',
1423
- overlayY: 'bottom'
1424
- },
1425
- topRight: {
1426
- originX: 'end',
1427
- originY: 'top',
1428
- overlayX: 'end',
1429
- overlayY: 'bottom'
1430
- },
1431
- right: {
1432
- originX: 'end',
1433
- originY: 'center',
1434
- overlayX: 'start',
1435
- overlayY: 'center'
1436
- },
1437
- rightTop: {
1438
- originX: 'end',
1439
- originY: 'top',
1440
- overlayX: 'start',
1441
- overlayY: 'top'
1442
- },
1443
- rightBottom: {
1444
- originX: 'end',
1445
- originY: 'bottom',
1446
- overlayX: 'start',
1447
- overlayY: 'bottom'
1448
- },
1449
- bottom: {
1450
- originX: 'center',
1451
- originY: 'bottom',
1452
- overlayX: 'center',
1453
- overlayY: 'top'
1454
- },
1455
- bottomCenter: {
1456
- originX: 'center',
1457
- originY: 'bottom',
1458
- overlayX: 'center',
1459
- overlayY: 'top'
1460
- },
1461
- bottomLeft: {
1462
- originX: 'start',
1463
- originY: 'bottom',
1464
- overlayX: 'start',
1465
- overlayY: 'top'
1466
- },
1467
- bottomRight: {
1468
- originX: 'end',
1469
- originY: 'bottom',
1470
- overlayX: 'end',
1471
- overlayY: 'top'
1472
- },
1473
- left: {
1474
- originX: 'start',
1475
- originY: 'center',
1476
- overlayX: 'end',
1477
- overlayY: 'center'
1478
- },
1479
- leftTop: {
1480
- originX: 'start',
1481
- originY: 'top',
1482
- overlayX: 'end',
1483
- overlayY: 'top'
1484
- },
1485
- leftBottom: {
1486
- originX: 'start',
1487
- originY: 'bottom',
1488
- overlayX: 'end',
1489
- overlayY: 'bottom'
1490
- }
1491
- };
1492
- var EXTENDED_OVERLAY_POSITIONS = objectValues([
1493
- POSITION_MAP.top,
1494
- POSITION_MAP.topLeft,
1495
- POSITION_MAP.topRight,
1496
- POSITION_MAP.right,
1497
- POSITION_MAP.rightTop,
1498
- POSITION_MAP.rightBottom,
1499
- POSITION_MAP.bottom,
1500
- POSITION_MAP.bottomLeft,
1501
- POSITION_MAP.bottomRight,
1502
- POSITION_MAP.left,
1503
- POSITION_MAP.leftTop,
1504
- POSITION_MAP.leftBottom
1505
- ]);
1506
- var TOP_POSITION_PRIORITY = objectValues([
1507
- POSITION_MAP.top,
1508
- POSITION_MAP.bottom,
1509
- POSITION_MAP.rightBottom,
1510
- POSITION_MAP.leftBottom,
1511
- POSITION_MAP.bottomLeft,
1512
- POSITION_MAP.bottomRight
1513
- ]);
1514
- var BOTTOM_POSITION_PRIORITY = objectValues([
1515
- POSITION_MAP.bottom,
1516
- POSITION_MAP.top,
1517
- POSITION_MAP.topLeft,
1518
- POSITION_MAP.topRight,
1519
- POSITION_MAP.rightBottom,
1520
- POSITION_MAP.leftBottom
1521
- ]);
1522
- var RIGHT_POSITION_PRIORITY = objectValues([
1523
- POSITION_MAP.right,
1524
- POSITION_MAP.left,
1525
- POSITION_MAP.leftTop,
1526
- POSITION_MAP.leftBottom,
1527
- POSITION_MAP.top,
1528
- POSITION_MAP.bottom
1529
- ]);
1530
- var LEFT_POSITION_PRIORITY = objectValues([
1531
- POSITION_MAP.left,
1532
- POSITION_MAP.right,
1533
- POSITION_MAP.rightTop,
1534
- POSITION_MAP.rightBottom,
1535
- POSITION_MAP.top,
1536
- POSITION_MAP.bottom
1537
- ]);
1538
- var RIGHT_TOP_POSITION_PRIORITY = objectValues([
1539
- POSITION_MAP.rightTop,
1540
- POSITION_MAP.leftTop,
1541
- POSITION_MAP.left,
1542
- POSITION_MAP.leftBottom,
1543
- POSITION_MAP.topLeft,
1544
- POSITION_MAP.bottomLeft
1545
- ]);
1546
- var RIGHT_BOTTOM_POSITION_PRIORITY = objectValues([
1547
- POSITION_MAP.rightBottom,
1548
- POSITION_MAP.leftBottom,
1549
- POSITION_MAP.left,
1550
- POSITION_MAP.leftTop,
1551
- POSITION_MAP.topLeft,
1552
- POSITION_MAP.bottomLeft
1553
- ]);
1554
- var LEFT_TOP_POSITION_PRIORITY = objectValues([
1555
- POSITION_MAP.leftTop,
1556
- POSITION_MAP.rightTop,
1557
- POSITION_MAP.right,
1558
- POSITION_MAP.rightBottom,
1559
- POSITION_MAP.topRight,
1560
- POSITION_MAP.bottomRight
1561
- ]);
1562
- var LEFT_BOTTOM_POSITION_PRIORITY = objectValues([
1563
- POSITION_MAP.leftBottom,
1564
- POSITION_MAP.rightBottom,
1565
- POSITION_MAP.right,
1566
- POSITION_MAP.rightTop,
1567
- POSITION_MAP.topRight,
1568
- POSITION_MAP.bottomRight
1569
- ]);
1570
- var TOP_LEFT_POSITION_PRIORITY = objectValues([
1571
- POSITION_MAP.topLeft,
1572
- POSITION_MAP.topRight,
1573
- POSITION_MAP.bottomLeft,
1574
- POSITION_MAP.bottom,
1575
- POSITION_MAP.bottomRight,
1576
- POSITION_MAP.leftBottom,
1577
- POSITION_MAP.rightBottom
1578
- ]);
1579
- var TOP_RIGHT_POSITION_PRIORITY = objectValues([
1580
- POSITION_MAP.topRight,
1581
- POSITION_MAP.topLeft,
1582
- POSITION_MAP.bottomRight,
1583
- POSITION_MAP.bottom,
1584
- POSITION_MAP.bottomLeft,
1585
- POSITION_MAP.leftBottom,
1586
- POSITION_MAP.rightBottom
1587
- ]);
1588
- var BOTTOM_RIGHT_POSITION_PRIORITY = objectValues([
1589
- POSITION_MAP.bottomRight,
1590
- POSITION_MAP.bottomLeft,
1591
- POSITION_MAP.topRight,
1592
- POSITION_MAP.top,
1593
- POSITION_MAP.topLeft,
1594
- POSITION_MAP.leftTop,
1595
- POSITION_MAP.rightTop
1596
- ]);
1597
- var BOTTOM_LEFT_POSITION_PRIORITY = objectValues([
1598
- POSITION_MAP.bottomLeft,
1599
- POSITION_MAP.bottomRight,
1600
- POSITION_MAP.topLeft,
1601
- POSITION_MAP.top,
1602
- POSITION_MAP.topRight,
1603
- POSITION_MAP.rightTop,
1604
- POSITION_MAP.leftTop
1605
- ]);
1606
- var POSITION_PRIORITY_STRATEGY = {
1607
- top: TOP_POSITION_PRIORITY,
1608
- topLeft: TOP_LEFT_POSITION_PRIORITY,
1609
- topRight: TOP_RIGHT_POSITION_PRIORITY,
1610
- bottom: BOTTOM_POSITION_PRIORITY,
1611
- bottomLeft: BOTTOM_LEFT_POSITION_PRIORITY,
1612
- bottomRight: BOTTOM_RIGHT_POSITION_PRIORITY,
1613
- left: LEFT_POSITION_PRIORITY,
1614
- leftTop: LEFT_TOP_POSITION_PRIORITY,
1615
- leftBottom: LEFT_BOTTOM_POSITION_PRIORITY,
1616
- right: RIGHT_POSITION_PRIORITY,
1617
- rightTop: RIGHT_TOP_POSITION_PRIORITY,
1618
- rightBottom: RIGHT_BOTTOM_POSITION_PRIORITY
1619
- };
1620
- var POSITION_TO_CSS_MAP = {
1621
- top: 'top',
1622
- topLeft: 'top-left',
1623
- topRight: 'top-right',
1624
- right: 'right',
1625
- rightTop: 'right-top',
1626
- rightBottom: 'right-bottom',
1627
- left: 'left',
1628
- leftTop: 'left-top',
1629
- leftBottom: 'left-bottom',
1630
- bottom: 'bottom',
1631
- bottomLeft: 'bottom-left',
1632
- bottomRight: 'bottom-right'
1633
- };
1634
- function arrayMap(array, iteratee) {
1635
- var index = -1;
1636
- var length = array === null ? 0 : array.length;
1637
- var result = Array(length);
1638
- while (++index < length) {
1639
- result[index] = iteratee(array[index], index, array);
1640
- }
1641
- return result;
1642
- }
1643
- function baseValues(object, props) {
1644
- return arrayMap(props, function (key) { return object[key]; });
1645
- }
1646
- function objectValues(object) {
1647
- return object === null ? [] : baseValues(object, Object.keys(object));
1648
- }
1649
-
1650
- var fadeAnimation = animations.trigger('fadeAnimation', [
1651
- animations.state('void', animations.style({ opacity: 0 })),
1652
- animations.state('true', animations.style({ opacity: 1 })),
1653
- animations.state('false', animations.style({ opacity: 0 })),
1654
- animations.transition('* => true', animations.animate('150ms cubic-bezier(0.0, 0.0, 0.2, 1)')),
1655
- animations.transition('* => void', animations.animate('150ms cubic-bezier(0.4, 0.0, 1, 1)'))
1656
- ]);
1657
-
1658
- exports.AnimationCurves = void 0;
1659
- (function (AnimationCurves) {
1660
- AnimationCurves["StandardCurve"] = "cubic-bezier(0.4,0.0,0.2,1)";
1661
- AnimationCurves["DecelerationCurve"] = "cubic-bezier(0.0,0.0,0.2,1)";
1662
- AnimationCurves["AccelerationCurve"] = "cubic-bezier(0.4,0.0,1,1)";
1663
- AnimationCurves["SharpCurve"] = "cubic-bezier(0.4,0.0,0.6,1)";
1664
- })(exports.AnimationCurves || (exports.AnimationCurves = {}));
1665
-
1666
- /**
1667
- * The following are all the animations for the mc-select component, with each
1668
- * const containing the metadata for one animation.
1669
- *
1670
- */
1671
- var mcSelectAnimations = {
1672
- /**
1673
- * This animation transforms the select's overlay panel on and off the page.
1674
- *
1675
- * When the panel is attached to the DOM, it expands its width by the amount of padding, scales it
1676
- * up to 100% on the Y axis, fades in its border, and translates slightly up and to the
1677
- * side to ensure the option text correctly overlaps the trigger text.
1678
- *
1679
- * When the panel is removed from the DOM, it simply fades out linearly.
1680
- */
1681
- transformPanel: animations.trigger('transformPanel', [
1682
- animations.state('void', animations.style({
1683
- transform: 'scaleY(0)',
1684
- minWidth: '100%',
1685
- opacity: 0
1686
- })),
1687
- animations.transition('void => *', animations.group([
1688
- animations.animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
1689
- ])),
1690
- animations.transition('* => void', [
1691
- animations.animate('250ms 100ms linear', animations.style({ opacity: 0 }))
1692
- ])
1693
- ]),
1694
- /**
1695
- * This animation fades in the background color and text content of the
1696
- * select's options. It is time delayed to occur 100ms after the overlay
1697
- * panel has transformed in.
1698
- */
1699
- fadeInContent: animations.trigger('fadeInContent', [
1700
- animations.state('showing', animations.style({ opacity: 1 })),
1701
- animations.transition('void => showing', [
1702
- animations.style({ opacity: 0 }),
1703
- animations.animate('150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)')
1704
- ])
1705
- ])
1706
- };
1707
- var transformPanel = mcSelectAnimations.transformPanel;
1708
- var fadeInContent = mcSelectAnimations.fadeInContent;
1709
-
1710
- /** InjectionToken that can be used to specify the global label options. */
1711
- var MC_LABEL_GLOBAL_OPTIONS = new i0.InjectionToken('mc-label-global-options');
1712
-
1713
- exports.MultipleMode = void 0;
1714
- (function (MultipleMode) {
1715
- MultipleMode["CHECKBOX"] = "checkbox";
1716
- MultipleMode["KEYBOARD"] = "keyboard";
1717
- })(exports.MultipleMode || (exports.MultipleMode = {}));
1718
-
1719
- /**
1720
- * Component that shows a simplified checkbox without including any kind of "real" checkbox.
1721
- * Meant to be used when the checkbox is purely decorative and a large number of them will be
1722
- * included, such as for the options in a multi-select. Uses no SVGs or complex animations.
1723
- * Note that theming is meant to be handled by the parent element, e.g.
1724
- * `mc-primary .mc-pseudo-checkbox`.
1725
- *
1726
- * Note that this component will be completely invisible to screen-reader users. This is *not*
1727
- * interchangeable with `<mc-checkbox>` and should *not* be used if the user would directly
1728
- * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail
1729
- * of more complex components that appropriately handle selected / checked state.
1730
- * @docs-private
1731
- */
1732
- var McPseudoCheckbox = /** @class */ (function () {
1733
- function McPseudoCheckbox() {
1734
- this.state = 'unchecked';
1735
- this.disabled = false;
1736
- }
1737
- return McPseudoCheckbox;
1738
- }());
1739
- /** @nocollapse */ McPseudoCheckbox.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckbox, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1740
- /** @nocollapse */ McPseudoCheckbox.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: { state: "state", disabled: "disabled" }, host: { properties: { "class.mc-indeterminate": "state === \"indeterminate\"", "class.mc-checked": "state === \"checked\"", "class.mc-disabled": "disabled" }, classAttribute: "mc-pseudo-checkbox" }, ngImport: i0__namespace, template: "<i class=\"mc-checkbox-checkmark mc mc-check_16\"></i>\n<i class=\"mc-checkbox-mixedmark mc mc-minus_16\"></i>\n", styles: [".mc-pseudo-checkbox{position:relative;display:inline-block;box-sizing:border-box;width:16px;width:var(--mc-checkbox-size-width, 16px);height:16px;height:var(--mc-checkbox-size-width, 16px);border-radius:3px;border-width:1px;border-width:var(--mc-checkbox-size-border-width, 1px);border-style:solid;cursor:pointer;vertical-align:middle;flex-shrink:0}.mc-pseudo-checkbox .mc-checkbox-checkmark,.mc-pseudo-checkbox .mc-checkbox-mixedmark{display:none;position:absolute;top:calc(-1 * 1px);top:calc(-1 * var(--mc-checkbox-size-border-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mc-checkbox-size-border-width, 1px))}.mc-pseudo-checkbox.mc-pseudo-checkbox-checked,.mc-pseudo-checkbox.mc-pseudo-checkbox-indeterminate{border-color:transparent}.mc-pseudo-checkbox.mc-checked .mc-checkbox-checkmark{display:inline-block}.mc-pseudo-checkbox.mc-indeterminate .mc-checkbox-mixedmark{display:inline-block}.mc-pseudo-checkbox.mc-disabled{cursor:default}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1741
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckbox, decorators: [{
1742
- type: i0.Component,
1743
- args: [{
1744
- selector: 'mc-pseudo-checkbox',
1745
- templateUrl: 'pseudo-checkbox.partial.html',
1746
- styleUrls: ['pseudo-checkbox.scss'],
1747
- host: {
1748
- class: 'mc-pseudo-checkbox',
1749
- '[class.mc-indeterminate]': 'state === "indeterminate"',
1750
- '[class.mc-checked]': 'state === "checked"',
1751
- '[class.mc-disabled]': 'disabled'
1752
- },
1753
- preserveWhitespaces: false,
1754
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1755
- encapsulation: i0.ViewEncapsulation.None
1756
- }]
1757
- }], propDecorators: { state: [{
1758
- type: i0.Input
1759
- }], disabled: [{
1760
- type: i0.Input
1761
- }] } });
1762
-
1763
- var McPseudoCheckboxModule = /** @class */ (function () {
1764
- function McPseudoCheckboxModule() {
1765
- }
1766
- return McPseudoCheckboxModule;
1767
- }());
1768
- /** @nocollapse */ McPseudoCheckboxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckboxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1769
- /** @nocollapse */ McPseudoCheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckboxModule, declarations: [McPseudoCheckbox], imports: [i2$1.CommonModule], exports: [McPseudoCheckbox] });
1770
- /** @nocollapse */ McPseudoCheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckboxModule, imports: [[i2$1.CommonModule]] });
1771
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckboxModule, decorators: [{
1772
- type: i0.NgModule,
1773
- args: [{
1774
- imports: [i2$1.CommonModule],
1775
- exports: [McPseudoCheckbox],
1776
- declarations: [McPseudoCheckbox]
1777
- }]
1778
- }] });
1779
-
1780
- var McMeasureScrollbarService = /** @class */ (function () {
1781
- function McMeasureScrollbarService(document) {
1782
- this.document = document;
1783
- this.scrollbarMeasure = {
1784
- position: 'absolute',
1785
- top: '-9999px',
1786
- width: '50px',
1787
- height: '50px',
1788
- overflow: 'scroll'
1789
- };
1790
- this.initScrollBarWidth();
1791
- }
1792
- Object.defineProperty(McMeasureScrollbarService.prototype, "scrollBarWidth", {
1793
- get: function () {
1794
- if (this._scrollBarWidth) {
1795
- return this._scrollBarWidth;
1796
- }
1797
- this.initScrollBarWidth();
1798
- return this._scrollBarWidth;
1799
- },
1800
- enumerable: false,
1801
- configurable: true
1802
- });
1803
- McMeasureScrollbarService.prototype.initScrollBarWidth = function () {
1804
- var scrollDiv = this.document.createElement('div');
1805
- // tslint:disable-next-line
1806
- for (var scrollProp in this.scrollbarMeasure) {
1807
- if (this.scrollbarMeasure.hasOwnProperty(scrollProp)) {
1808
- scrollDiv.style[scrollProp] = this.scrollbarMeasure[scrollProp];
1809
- }
1810
- }
1811
- this.document.body.appendChild(scrollDiv);
1812
- var width = scrollDiv.offsetWidth - scrollDiv.clientWidth;
1813
- this.document.body.removeChild(scrollDiv);
1814
- this._scrollBarWidth = width;
1815
- };
1816
- return McMeasureScrollbarService;
1817
- }());
1818
- /** @nocollapse */ McMeasureScrollbarService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMeasureScrollbarService, deps: [{ token: i2$1.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1819
- /** @nocollapse */ McMeasureScrollbarService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMeasureScrollbarService, providedIn: 'root' });
1820
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMeasureScrollbarService, decorators: [{
1821
- type: i0.Injectable,
1822
- args: [{
1823
- providedIn: 'root'
1824
- }]
1825
- }], ctorParameters: function () {
1826
- return [{ type: undefined, decorators: [{
1827
- type: i0.Inject,
1828
- args: [i2$1.DOCUMENT]
1829
- }] }];
1830
- } });
1831
-
1832
- /** @docs-private */
1833
- var McOptgroupBase = /** @class */ (function () {
1834
- function McOptgroupBase() {
1835
- }
1836
- return McOptgroupBase;
1837
- }());
1838
- // tslint:disable-next-line: naming-convention
1839
- var McOptgroupMixinBase = mixinDisabled(McOptgroupBase);
1840
- var uniqueOptgroupIdCounter = 0;
1841
- /**
1842
- * Component that is used to group instances of `mc-option`.
1843
- */
1844
- var McOptgroup = /** @class */ (function (_super) {
1845
- __extends(McOptgroup, _super);
1846
- function McOptgroup() {
1847
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1848
- /** Unique id for the underlying label. */
1849
- _this.labelId = "mc-optgroup-label-" + uniqueOptgroupIdCounter++;
1850
- return _this;
1851
- }
1852
- return McOptgroup;
1853
- }(McOptgroupMixinBase));
1854
- /** @nocollapse */ McOptgroup.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptgroup, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1855
- /** @nocollapse */ McOptgroup.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McOptgroup, selector: "mc-optgroup", inputs: { disabled: "disabled", label: "label" }, host: { properties: { "class.mc-disabled": "disabled" }, classAttribute: "mc-optgroup" }, exportAs: ["mcOptgroup"], usesInheritance: true, ngImport: i0__namespace, template: "<label class=\"mc-optgroup-label\" [id]=\"labelId\">{{ label }}</label>\n<ng-content select=\"mc-option, mc-list-option, ng-container\"></ng-content>\n", styles: [".mc-optgroup-label{padding-left:17px;padding-left:var(--mc-optgroup-size-padding-left, 17px);-webkit-user-select:none;user-select:none;cursor:default}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1856
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptgroup, decorators: [{
1857
- type: i0.Component,
1858
- args: [{
1859
- selector: 'mc-optgroup',
1860
- exportAs: 'mcOptgroup',
1861
- templateUrl: 'optgroup.html',
1862
- styleUrls: ['./optgroup.scss'],
1863
- encapsulation: i0.ViewEncapsulation.None,
1864
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1865
- inputs: ['disabled'],
1866
- host: {
1867
- class: 'mc-optgroup',
1868
- '[class.mc-disabled]': 'disabled'
1869
- }
1870
- }]
1871
- }], propDecorators: { label: [{
1872
- type: i0.Input
1873
- }] } });
1874
-
1875
- /**
1876
- * Option IDs need to be unique across components, so this counter exists outside of
1877
- * the component definition.
1878
- */
1879
- var uniqueIdCounter = 0;
1880
- /** Event object emitted by McOption when selected or deselected. */
1881
- var McOptionSelectionChange = /** @class */ (function () {
1882
- function McOptionSelectionChange(source, isUserInput) {
1883
- if (isUserInput === void 0) { isUserInput = false; }
1884
- this.source = source;
1885
- this.isUserInput = isUserInput;
1886
- }
1887
- return McOptionSelectionChange;
1888
- }());
1889
- /**
1890
- * Injection token used to provide the parent component to options.
1891
- */
1892
- var MC_OPTION_PARENT_COMPONENT = new i0.InjectionToken('MC_OPTION_PARENT_COMPONENT');
1893
- /**
1894
- * Single option inside of a `<mc-select>` element.
1895
- */
1896
- var McOption = /** @class */ (function () {
1897
- function McOption(element, changeDetectorRef, parent, group) {
1898
- this.element = element;
1899
- this.changeDetectorRef = changeDetectorRef;
1900
- this.parent = parent;
1901
- this.group = group;
1902
- /** Event emitted when the option is selected or deselected. */
1903
- // tslint:disable-next-line:no-output-on-prefix
1904
- this.onSelectionChange = new i0.EventEmitter();
1905
- /** Emits when the state of the option changes and any parents have to be notified. */
1906
- this.stateChanges = new rxjs.Subject();
1907
- this._id = "mc-option-" + uniqueIdCounter++;
1908
- this._selected = false;
1909
- this._disabled = false;
1910
- this._active = false;
1911
- this.mostRecentViewValue = '';
1912
- }
1913
- Object.defineProperty(McOption.prototype, "showCheckbox", {
1914
- get: function () {
1915
- return this._showCheckbox === undefined ? this.multiple : this._showCheckbox;
1916
- },
1917
- set: function (value) {
1918
- this._showCheckbox = coercion.coerceBooleanProperty(value);
1919
- },
1920
- enumerable: false,
1921
- configurable: true
1922
- });
1923
- Object.defineProperty(McOption.prototype, "viewValue", {
1924
- /**
1925
- * The displayed value of the option. It is necessary to show the selected option in the
1926
- * select's trigger.
1927
- */
1928
- get: function () {
1929
- // TODO: Add input property alternative for node envs.
1930
- return (this.getHostElement().textContent || '').trim();
1931
- },
1932
- enumerable: false,
1933
- configurable: true
1934
- });
1935
- Object.defineProperty(McOption.prototype, "multiple", {
1936
- /** Whether the wrapping component is in multiple selection mode. */
1937
- get: function () {
1938
- return this.parent && this.parent.multiple;
1939
- },
1940
- enumerable: false,
1941
- configurable: true
1942
- });
1943
- Object.defineProperty(McOption.prototype, "id", {
1944
- get: function () {
1945
- return this._id;
1946
- },
1947
- enumerable: false,
1948
- configurable: true
1949
- });
1950
- Object.defineProperty(McOption.prototype, "selected", {
1951
- get: function () {
1952
- return this._selected;
1953
- },
1954
- enumerable: false,
1955
- configurable: true
1956
- });
1957
- Object.defineProperty(McOption.prototype, "disabled", {
1958
- get: function () {
1959
- return (this.group && this.group.disabled) || this._disabled;
1960
- },
1961
- set: function (value) {
1962
- this._disabled = coercion.coerceBooleanProperty(value);
1963
- },
1964
- enumerable: false,
1965
- configurable: true
1966
- });
1967
- Object.defineProperty(McOption.prototype, "active", {
1968
- /**
1969
- * Whether or not the option is currently active and ready to be selected.
1970
- * An active option displays styles as if it is focused, but the
1971
- * focus is actually retained somewhere else. This comes in handy
1972
- * for components like autocomplete where focus must remain on the input.
1973
- */
1974
- get: function () {
1975
- return this._active;
1976
- },
1977
- enumerable: false,
1978
- configurable: true
1979
- });
1980
- McOption.prototype.ngAfterViewChecked = function () {
1981
- // Since parent components could be using the option's label to display the selected values
1982
- // (e.g. `mc-select`) and they don't have a way of knowing if the option's label has changed
1983
- // we have to check for changes in the DOM ourselves and dispatch an event. These checks are
1984
- // relatively cheap, however we still limit them only to selected options in order to avoid
1985
- // hitting the DOM too often.
1986
- if (this._selected) {
1987
- var viewValue = this.viewValue;
1988
- if (viewValue !== this.mostRecentViewValue) {
1989
- this.mostRecentViewValue = viewValue;
1990
- this.stateChanges.next();
1991
- }
1992
- }
1993
- };
1994
- McOption.prototype.ngOnDestroy = function () {
1995
- this.stateChanges.complete();
1996
- };
1997
- McOption.prototype.getHeight = function () {
1998
- // tslint:disable-next-line:naming-convention
1999
- var DOMRect = this.element.nativeElement.getClientRects()[0];
2000
- return DOMRect ? DOMRect.height : 0;
2001
- };
2002
- McOption.prototype.select = function () {
2003
- if (!this._selected) {
2004
- this._selected = true;
2005
- this.changeDetectorRef.markForCheck();
2006
- this.emitSelectionChangeEvent();
2007
- }
2008
- };
2009
- McOption.prototype.deselect = function () {
2010
- if (this._selected) {
2011
- this._selected = false;
2012
- this.changeDetectorRef.markForCheck();
2013
- this.emitSelectionChangeEvent();
2014
- }
2015
- };
2016
- McOption.prototype.focus = function () {
2017
- var element = this.getHostElement();
2018
- if (typeof element.focus === 'function') {
2019
- element.focus();
2020
- }
2021
- };
2022
- /**
2023
- * This method sets display styles on the option to make it appear
2024
- * active. This is used by the ActiveDescendantKeyManager so key
2025
- * events will display the proper options as active on arrow key events.
2026
- */
2027
- McOption.prototype.setActiveStyles = function () {
2028
- if (!this._active) {
2029
- this._active = true;
2030
- this.changeDetectorRef.markForCheck();
2031
- }
2032
- };
2033
- /**
2034
- * This method removes display styles on the option that made it appear
2035
- * active. This is used by the ActiveDescendantKeyManager so key
2036
- * events will display the proper options as active on arrow key events.
2037
- */
2038
- McOption.prototype.setInactiveStyles = function () {
2039
- if (this._active) {
2040
- this._active = false;
2041
- this.changeDetectorRef.markForCheck();
2042
- }
2043
- };
2044
- /** Gets the label to be used when determining whether the option should be focused. */
2045
- McOption.prototype.getLabel = function () {
2046
- return this.viewValue;
2047
- };
2048
- /** Ensures the option is selected when activated from the keyboard. */
2049
- McOption.prototype.handleKeydown = function (event) {
2050
- // tslint:disable-next-line
2051
- if (event.keyCode === keycodes.ENTER || event.keyCode === keycodes.SPACE) {
2052
- this.selectViaInteraction();
2053
- // Prevent the page from scrolling down and form submits.
2054
- event.preventDefault();
2055
- }
2056
- };
2057
- /**
2058
- * `Selects the option while indicating the selection came from the user. Used to
2059
- * determine if the select's view -> model callback should be invoked.`
2060
- */
2061
- McOption.prototype.selectViaInteraction = function () {
2062
- if (!this.disabled) {
2063
- this._selected = this.multiple ? !this._selected : true;
2064
- this.changeDetectorRef.markForCheck();
2065
- this.emitSelectionChangeEvent(true);
2066
- }
2067
- };
2068
- McOption.prototype.getTabIndex = function () {
2069
- return this.disabled ? '-1' : '0';
2070
- };
2071
- McOption.prototype.getHostElement = function () {
2072
- return this.element.nativeElement;
2073
- };
2074
- /** Emits the selection change event. */
2075
- McOption.prototype.emitSelectionChangeEvent = function (isUserInput) {
2076
- if (isUserInput === void 0) { isUserInput = false; }
2077
- this.onSelectionChange.emit(new McOptionSelectionChange(this, isUserInput));
2078
- };
2079
- return McOption;
2080
- }());
2081
- /** @nocollapse */ McOption.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOption, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: MC_OPTION_PARENT_COMPONENT, optional: true }, { token: McOptgroup, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
2082
- /** @nocollapse */ McOption.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McOption, selector: "mc-option", inputs: { value: "value", showCheckbox: "showCheckbox", disabled: "disabled" }, outputs: { onSelectionChange: "onSelectionChange" }, host: { listeners: { "click": "selectViaInteraction()", "keydown": "handleKeydown($event)" }, properties: { "attr.tabindex": "getTabIndex()", "class.mc-selected": "selected", "class.mc-option-multiple": "multiple", "class.mc-active": "active", "class.mc-disabled": "disabled", "id": "id" }, classAttribute: "mc-option" }, exportAs: ["mcOption"], ngImport: i0__namespace, template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<span class=\"mc-option-text\"><ng-content></ng-content></span>\n\n<div class=\"mc-option-overlay\"></div>\n", styles: [".mc-option{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;position:relative;max-width:100%;height:32px;height:var(--mc-option-size-height, 32px);border:2px solid transparent;border:var(--mc-option-size-border-width, 2px) solid transparent;cursor:pointer;outline:none;padding-left:16px;padding-left:var(--mc-option-size-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mc-option-size-horizontal-padding, 16px);-webkit-tap-highlight-color:transparent}.mc-option.mc-disabled{cursor:default}.mc-option .mc-pseudo-checkbox{margin-right:8px}.mc-option .mc-option-overlay{position:absolute;top:calc(-1 * 2px);top:calc(-1 * var(--mc-option-size-border-width, 2px));left:calc(-1 * 2px);left:calc(-1 * var(--mc-option-size-border-width, 2px));right:calc(-1 * 2px);right:calc(-1 * var(--mc-option-size-border-width, 2px));bottom:calc(-1 * 2px);bottom:calc(-1 * var(--mc-option-size-border-width, 2px));pointer-events:none;border-radius:inherit}.mc-option-text{display:inline-block;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], components: [{ type: McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: ["state", "disabled"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
2083
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOption, decorators: [{
2084
- type: i0.Component,
2085
- args: [{
2086
- selector: 'mc-option',
2087
- exportAs: 'mcOption',
2088
- host: {
2089
- '[attr.tabindex]': 'getTabIndex()',
2090
- class: 'mc-option',
2091
- '[class.mc-selected]': 'selected',
2092
- '[class.mc-option-multiple]': 'multiple',
2093
- '[class.mc-active]': 'active',
2094
- '[class.mc-disabled]': 'disabled',
2095
- '[id]': 'id',
2096
- '(click)': 'selectViaInteraction()',
2097
- '(keydown)': 'handleKeydown($event)'
2098
- },
2099
- styleUrls: ['option.scss'],
2100
- templateUrl: 'option.html',
2101
- encapsulation: i0.ViewEncapsulation.None,
2102
- changeDetection: i0.ChangeDetectionStrategy.OnPush
2103
- }]
2104
- }], ctorParameters: function () {
2105
- return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: undefined, decorators: [{
2106
- type: i0.Optional
2107
- }, {
2108
- type: i0.Inject,
2109
- args: [MC_OPTION_PARENT_COMPONENT]
2110
- }] }, { type: McOptgroup, decorators: [{
2111
- type: i0.Optional
2112
- }] }];
2113
- }, propDecorators: { value: [{
2114
- type: i0.Input
2115
- }], showCheckbox: [{
2116
- type: i0.Input
2117
- }], onSelectionChange: [{
2118
- type: i0.Output
2119
- }], disabled: [{
2120
- type: i0.Input
2121
- }] } });
2122
- /**
2123
- * Counts the amount of option group labels that precede the specified option.
2124
- * @param optionIndex Index of the option at which to start counting.
2125
- * @param options Flat list of all of the options.
2126
- * @param optionGroups Flat list of all of the option groups.
2127
- * @docs-private
2128
- */
2129
- function countGroupLabelsBeforeOption(optionIndex, options, optionGroups) {
2130
- if (optionGroups.length) {
2131
- var optionsArray = options.toArray();
2132
- var groups = optionGroups.toArray();
2133
- var groupCounter = 0;
2134
- for (var i = 0; i < optionIndex + 1; i++) {
2135
- if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {
2136
- groupCounter++;
2137
- }
2138
- }
2139
- return groupCounter;
2140
- }
2141
- return 0;
2142
- }
2143
- /**
2144
- * Determines the position to which to scroll a panel in order for an option to be into view.
2145
- * @param optionIndex Index of the option to be scrolled into the view.
2146
- * @param optionHeight Height of the options.
2147
- * @param currentScrollPosition Current scroll position of the panel.
2148
- * @param panelHeight Height of the panel.
2149
- * @docs-private
2150
- */
2151
- function getOptionScrollPosition(optionIndex, optionHeight, currentScrollPosition, panelHeight) {
2152
- var optionOffset = optionIndex * optionHeight;
2153
- if (optionOffset < currentScrollPosition) {
2154
- return optionOffset;
2155
- }
2156
- if (optionOffset + optionHeight > currentScrollPosition + panelHeight) {
2157
- return Math.max(0, optionOffset - panelHeight + optionHeight);
2158
- }
2159
- return currentScrollPosition;
2160
- }
2161
-
2162
- var MC_OPTION_ACTION_PARENT = new i0.InjectionToken('MC_OPTION_ACTION_PARENT');
2163
- var McOptionActionBase = /** @class */ (function () {
2164
- function McOptionActionBase() {
2165
- }
2166
- return McOptionActionBase;
2167
- }());
2168
- // tslint:disable-next-line:naming-convention
2169
- var McOptionActionMixinBase = mixinTabIndex(mixinDisabled(McOptionActionBase));
2170
- var McOptionActionComponent = /** @class */ (function (_super) {
2171
- __extends(McOptionActionComponent, _super);
2172
- function McOptionActionComponent(elementRef, focusMonitor, option) {
2173
- var _this = _super.call(this) || this;
2174
- _this.elementRef = elementRef;
2175
- _this.focusMonitor = focusMonitor;
2176
- _this.option = option;
2177
- _this.hasFocus = false;
2178
- _this.destroy = new rxjs.Subject();
2179
- _this.focusMonitor.monitor(_this.elementRef.nativeElement);
2180
- return _this;
2181
- }
2182
- Object.defineProperty(McOptionActionComponent.prototype, "active", {
2183
- get: function () {
2184
- var _a;
2185
- return this.hasFocus || !!((_a = this.option.dropdownTrigger) === null || _a === void 0 ? void 0 : _a.opened);
2186
- },
2187
- enumerable: false,
2188
- configurable: true
2189
- });
2190
- McOptionActionComponent.prototype.ngAfterViewInit = function () {
2191
- var _this = this;
2192
- if (!this.option.dropdownTrigger) {
2193
- return;
2194
- }
2195
- this.option.dropdownTrigger.restoreFocus = false;
2196
- this.option.dropdownTrigger.dropdownClosed
2197
- .pipe(operators.takeUntil(this.destroy))
2198
- .subscribe(function () {
2199
- _this.preventShowingTooltip();
2200
- var destroyReason = _this.option.dropdownTrigger.lastDestroyReason === 'keydown' ?
2201
- 'keyboard' :
2202
- 'program';
2203
- _this.focus(destroyReason);
2204
- });
2205
- };
2206
- McOptionActionComponent.prototype.ngOnDestroy = function () {
2207
- this.destroy.next();
2208
- this.destroy.complete();
2209
- this.focusMonitor.stopMonitoring(this.elementRef.nativeElement);
2210
- };
2211
- McOptionActionComponent.prototype.focus = function (origin, options) {
2212
- if (this.focusMonitor && origin) {
2213
- this.focusMonitor.focusVia(this.elementRef.nativeElement, origin, options);
2214
- }
2215
- else {
2216
- this.elementRef.nativeElement.focus();
2217
- }
2218
- this.hasFocus = true;
2219
- };
2220
- McOptionActionComponent.prototype.onFocus = function ($event) {
2221
- $event.stopPropagation();
2222
- this.hasFocus = true;
2223
- };
2224
- McOptionActionComponent.prototype.onBlur = function () {
2225
- this.hasFocus = false;
2226
- };
2227
- McOptionActionComponent.prototype.onClick = function ($event) {
2228
- $event.stopPropagation();
2229
- };
2230
- McOptionActionComponent.prototype.onKeyDown = function ($event) {
2231
- if ([keycodes.SPACE, keycodes.ENTER].includes($event.keyCode) && this.option.dropdownTrigger) {
2232
- this.option.dropdownTrigger.openedBy = 'keyboard';
2233
- this.option.dropdownTrigger.toggle();
2234
- }
2235
- else if ($event.shiftKey && $event.keyCode === keycodes.TAB) {
2236
- this.hasFocus = false;
2237
- this.option.focus();
2238
- }
2239
- else if ($event.keyCode === keycodes.TAB) {
2240
- return;
2241
- }
2242
- $event.preventDefault();
2243
- $event.stopPropagation();
2244
- };
2245
- McOptionActionComponent.prototype.preventShowingTooltip = function () {
2246
- var _this = this;
2247
- if (!this.option.tooltipTrigger) {
2248
- return;
2249
- }
2250
- this.option.tooltipTrigger.disabled = true;
2251
- setTimeout(function () { return _this.option.tooltipTrigger.disabled = false; });
2252
- };
2253
- return McOptionActionComponent;
2254
- }(McOptionActionMixinBase));
2255
- /** @nocollapse */ McOptionActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionActionComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$1.FocusMonitor }, { token: MC_OPTION_ACTION_PARENT }], target: i0__namespace.ɵɵFactoryTarget.Component });
2256
- /** @nocollapse */ McOptionActionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McOptionActionComponent, selector: "mc-option-action", inputs: { disabled: "disabled" }, host: { listeners: { "focus": "onFocus($event)", "blur": "onBlur()", "click": "onClick($event)", "keydown": "onKeyDown($event)" }, properties: { "class.mc-opened": "false", "attr.disabled": "disabled || null", "attr.tabIndex": "-1" }, classAttribute: "mc-option-action" }, queries: [{ propertyName: "customIcon", first: true, predicate: ["customIcon"], descendants: true }], exportAs: ["mcOptionAction"], usesInheritance: true, ngImport: i0__namespace, template: "\n <ng-container [ngSwitch]=\"!!customIcon\">\n <i class=\"mc mc-icon mc-ellipsis_16\" *ngSwitchCase=\"false\"></i>\n <ng-content select=\"[mc-icon]\" *ngSwitchCase=\"true\"></ng-content>\n </ng-container>\n ", isInline: true, styles: [".mc-option-action{box-sizing:unset;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:-2px;width:28px;height:100%;cursor:pointer;outline:none;border:2px solid transparent;background:transparent}.mc-option-action[disabled]{cursor:default}\n"], directives: [{ type: i2__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
2257
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionActionComponent, decorators: [{
2258
- type: i0.Component,
2259
- args: [{
2260
- selector: 'mc-option-action',
2261
- exportAs: 'mcOptionAction',
2262
- template: "\n <ng-container [ngSwitch]=\"!!customIcon\">\n <i class=\"mc mc-icon mc-ellipsis_16\" *ngSwitchCase=\"false\"></i>\n <ng-content select=\"[mc-icon]\" *ngSwitchCase=\"true\"></ng-content>\n </ng-container>\n ",
2263
- styleUrls: ['./action.scss'],
2264
- host: {
2265
- class: 'mc-option-action',
2266
- '[class.mc-opened]': 'false',
2267
- '[attr.disabled]': 'disabled || null',
2268
- '[attr.tabIndex]': '-1',
2269
- '(focus)': 'onFocus($event)',
2270
- '(blur)': 'onBlur()',
2271
- '(click)': 'onClick($event)',
2272
- '(keydown)': 'onKeyDown($event)'
2273
- },
2274
- inputs: ['disabled'],
2275
- encapsulation: i0.ViewEncapsulation.None,
2276
- changeDetection: i0.ChangeDetectionStrategy.OnPush
2277
- }]
2278
- }], ctorParameters: function () {
2279
- return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.FocusMonitor }, { type: undefined, decorators: [{
2280
- type: i0.Inject,
2281
- args: [MC_OPTION_ACTION_PARENT]
2282
- }] }];
2283
- }, propDecorators: { customIcon: [{
2284
- type: i0.ContentChild,
2285
- args: ['customIcon']
2286
- }] } });
2287
-
2288
- var McOptionModule = /** @class */ (function () {
2289
- function McOptionModule() {
2290
- }
2291
- return McOptionModule;
2292
- }());
2293
- /** @nocollapse */ McOptionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2294
- /** @nocollapse */ McOptionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionModule, declarations: [McOption, McOptgroup, McOptionActionComponent], imports: [i2$1.CommonModule, McPseudoCheckboxModule], exports: [McOption, McOptgroup, McOptionActionComponent] });
2295
- /** @nocollapse */ McOptionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionModule, imports: [[i2$1.CommonModule, McPseudoCheckboxModule]] });
2296
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionModule, decorators: [{
2297
- type: i0.NgModule,
2298
- args: [{
2299
- imports: [i2$1.CommonModule, McPseudoCheckboxModule],
2300
- declarations: [McOption, McOptgroup, McOptionActionComponent],
2301
- exports: [McOption, McOptgroup, McOptionActionComponent]
2302
- }]
2303
- }] });
2304
-
2305
- var McFormElement = /** @class */ (function () {
2306
- function McFormElement(element) {
2307
- this.element = element;
2308
- this.margin = false;
2309
- this.isRow = false;
2310
- this.isFieldSet = false;
2311
- this.hasLegend = false;
2312
- this.isHorizontal = false;
2313
- }
2314
- McFormElement.prototype.ngAfterContentInit = function () {
2315
- var classList = this.element.nativeElement.classList;
2316
- this.isRow = classList.contains('mc-form__row');
2317
- this.isHorizontal = classList.contains('mc-horizontal');
2318
- this.isFieldSet = classList.contains('mc-form__fieldset');
2319
- if (this.isFieldSet && this.element.nativeElement.firstElementChild) {
2320
- this.hasLegend = this.element.nativeElement.firstElementChild.classList.contains('mc-form__legend');
2321
- }
2322
- };
2323
- return McFormElement;
2324
- }());
2325
- /** @nocollapse */ McFormElement.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormElement, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2326
- /** @nocollapse */ McFormElement.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McFormElement, selector: ".mc-form__row, .mc-form__fieldset, .mc-form__legend", host: { properties: { "class.mc-form-row_margin": "margin" } }, queries: [{ propertyName: "elements", predicate: McFormElement }], exportAs: ["mcFormElement"], ngImport: i0__namespace });
2327
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormElement, decorators: [{
2328
- type: i0.Directive,
2329
- args: [{
2330
- selector: '.mc-form__row, .mc-form__fieldset, .mc-form__legend',
2331
- exportAs: 'mcFormElement',
2332
- host: {
2333
- '[class.mc-form-row_margin]': 'margin'
2334
- }
2335
- }]
2336
- }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { elements: [{
2337
- type: i0.ContentChildren,
2338
- args: [McFormElement]
2339
- }] } });
2340
- var McForm = /** @class */ (function () {
2341
- function McForm() {
2342
- }
2343
- McForm.prototype.ngAfterContentInit = function () {
2344
- this.handleElements(this.elements);
2345
- };
2346
- McForm.prototype.handleElements = function (elements) {
2347
- var _this = this;
2348
- elements.forEach(function (element, index) {
2349
- var nextElement = elements.get(index + 1);
2350
- if (element.isFieldSet && !element.isHorizontal) {
2351
- _this.handleElements(element.elements);
2352
- }
2353
- element.margin = !!(nextElement && !nextElement.hasLegend);
2354
- });
2355
- };
2356
- return McForm;
2357
- }());
2358
- /** @nocollapse */ McForm.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McForm, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
2359
- /** @nocollapse */ McForm.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McForm, selector: ".mc-form-vertical, .mc-form-horizontal", host: { classAttribute: "mc-form" }, queries: [{ propertyName: "elements", predicate: McFormElement }], exportAs: ["mcForm"], ngImport: i0__namespace });
2360
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McForm, decorators: [{
2361
- type: i0.Directive,
2362
- args: [{
2363
- selector: '.mc-form-vertical, .mc-form-horizontal',
2364
- exportAs: 'mcForm',
2365
- host: {
2366
- class: 'mc-form'
2367
- }
2368
- }]
2369
- }], propDecorators: { elements: [{
2370
- type: i0.ContentChildren,
2371
- args: [McFormElement]
2372
- }] } });
2373
-
2374
- var McFormsModule = /** @class */ (function () {
2375
- function McFormsModule() {
2376
- }
2377
- return McFormsModule;
2378
- }());
2379
- /** @nocollapse */ McFormsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2380
- /** @nocollapse */ McFormsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormsModule, declarations: [McForm,
2381
- McFormElement], exports: [McForm,
2382
- McFormElement] });
2383
- /** @nocollapse */ McFormsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormsModule });
2384
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormsModule, decorators: [{
2385
- type: i0.NgModule,
2386
- args: [{
2387
- exports: [
2388
- McForm,
2389
- McFormElement
2390
- ],
2391
- declarations: [
2392
- McForm,
2393
- McFormElement
2394
- ]
2395
- }]
2396
- }] });
2397
-
2398
- exports.PopUpPlacements = void 0;
2399
- (function (PopUpPlacements) {
2400
- PopUpPlacements["Top"] = "top";
2401
- PopUpPlacements["TopLeft"] = "topLeft";
2402
- PopUpPlacements["TopRight"] = "topRight";
2403
- PopUpPlacements["Right"] = "right";
2404
- PopUpPlacements["RightTop"] = "rightTop";
2405
- PopUpPlacements["RightBottom"] = "rightBottom";
2406
- PopUpPlacements["Left"] = "left";
2407
- PopUpPlacements["LeftTop"] = "leftTop";
2408
- PopUpPlacements["LeftBottom"] = "leftBottom";
2409
- PopUpPlacements["Bottom"] = "bottom";
2410
- PopUpPlacements["BottomLeft"] = "bottomLeft";
2411
- PopUpPlacements["BottomRight"] = "bottomRight";
2412
- })(exports.PopUpPlacements || (exports.PopUpPlacements = {}));
2413
- exports.PopUpVisibility = void 0;
2414
- (function (PopUpVisibility) {
2415
- PopUpVisibility["Initial"] = "initial";
2416
- PopUpVisibility["Visible"] = "visible";
2417
- PopUpVisibility["Hidden"] = "hidden";
2418
- })(exports.PopUpVisibility || (exports.PopUpVisibility = {}));
2419
- exports.PopUpTriggers = void 0;
2420
- (function (PopUpTriggers) {
2421
- PopUpTriggers["Click"] = "click";
2422
- PopUpTriggers["Focus"] = "focus";
2423
- PopUpTriggers["Hover"] = "hover";
2424
- })(exports.PopUpTriggers || (exports.PopUpTriggers = {}));
2425
- exports.PopUpSizes = void 0;
2426
- (function (PopUpSizes) {
2427
- PopUpSizes["Small"] = "small";
2428
- PopUpSizes["Normal"] = "normal";
2429
- PopUpSizes["Large"] = "large";
2430
- })(exports.PopUpSizes || (exports.PopUpSizes = {}));
2431
-
2432
- // tslint:disable-next-line:naming-convention
2433
- var McPopUp = /** @class */ (function () {
2434
- function McPopUp(changeDetectorRef) {
2435
- this.changeDetectorRef = changeDetectorRef;
2436
- this.classMap = {};
2437
- this.visibility = exports.PopUpVisibility.Initial;
2438
- this.visibleChange = new i0.EventEmitter();
2439
- /** Subject for notifying that the tooltip has been hidden from the view */
2440
- this.onHideSubject = new rxjs.Subject();
2441
- this.closeOnInteraction = false;
2442
- }
2443
- McPopUp.prototype.ngOnDestroy = function () {
2444
- clearTimeout(this.showTimeoutId);
2445
- clearTimeout(this.hideTimeoutId);
2446
- this.onHideSubject.complete();
2447
- };
2448
- McPopUp.prototype.isTemplateRef = function (value) {
2449
- return value instanceof i0.TemplateRef;
2450
- };
2451
- McPopUp.prototype.show = function (delay) {
2452
- var _this = this;
2453
- if (this.hideTimeoutId) {
2454
- clearTimeout(this.hideTimeoutId);
2455
- }
2456
- this.closeOnInteraction = true;
2457
- this.showTimeoutId = setTimeout(function () {
2458
- _this.showTimeoutId = undefined;
2459
- _this.visibility = exports.PopUpVisibility.Visible;
2460
- _this.visibleChange.emit(true);
2461
- // Mark for check so if any parent component has set the
2462
- // ChangeDetectionStrategy to OnPush it will be checked anyways
2463
- _this.markForCheck();
2464
- }, delay);
2465
- };
2466
- McPopUp.prototype.hide = function (delay) {
2467
- var _this = this;
2468
- if (this.showTimeoutId) {
2469
- clearTimeout(this.showTimeoutId);
2470
- }
2471
- this.hideTimeoutId = setTimeout(function () {
2472
- _this.hideTimeoutId = undefined;
2473
- _this.visibility = exports.PopUpVisibility.Hidden;
2474
- _this.visibleChange.emit(false);
2475
- _this.onHideSubject.next();
2476
- // Mark for check so if any parent component has set the
2477
- // ChangeDetectionStrategy to OnPush it will be checked anyways
2478
- _this.markForCheck();
2479
- }, delay);
2480
- };
2481
- McPopUp.prototype.isVisible = function () {
2482
- return this.visibility === exports.PopUpVisibility.Visible;
2483
- };
2484
- McPopUp.prototype.updateClassMap = function (placement, customClass, classMap) {
2485
- var _a;
2486
- this.classMap = Object.assign((_a = {}, _a[this.prefix + "_placement-" + placement] = true, _a[customClass] = !!customClass, _a), classMap);
2487
- };
2488
- /** Returns an observable that notifies when the tooltip has been hidden from view. */
2489
- McPopUp.prototype.afterHidden = function () {
2490
- return this.onHideSubject.asObservable();
2491
- };
2492
- McPopUp.prototype.markForCheck = function () {
2493
- this.changeDetectorRef.markForCheck();
2494
- };
2495
- McPopUp.prototype.animationStart = function () {
2496
- this.closeOnInteraction = false;
2497
- };
2498
- McPopUp.prototype.animationDone = function (_a) {
2499
- var toState = _a.toState;
2500
- if (toState === exports.PopUpVisibility.Hidden && !this.isVisible()) {
2501
- this.onHideSubject.next();
2502
- }
2503
- if (toState === exports.PopUpVisibility.Visible || toState === exports.PopUpVisibility.Hidden) {
2504
- this.closeOnInteraction = true;
2505
- }
2506
- };
2507
- McPopUp.prototype.handleBodyInteraction = function () {
2508
- if (this.closeOnInteraction) {
2509
- this.hide(0);
2510
- }
2511
- };
2512
- return McPopUp;
2513
- }());
2514
- /** @nocollapse */ McPopUp.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPopUp, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2515
- /** @nocollapse */ McPopUp.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McPopUp, ngImport: i0__namespace });
2516
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPopUp, decorators: [{
2517
- type: i0.Directive
2518
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; } });
2519
-
2520
- var VIEWPORT_MARGIN = 8;
2521
- // tslint:disable-next-line:naming-convention
2522
- var McPopUpTrigger = /** @class */ (function () {
2523
- function McPopUpTrigger(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) {
2524
- var _this = this;
2525
- this.overlay = overlay;
2526
- this.elementRef = elementRef;
2527
- this.ngZone = ngZone;
2528
- this.scrollDispatcher = scrollDispatcher;
2529
- this.hostView = hostView;
2530
- this.scrollStrategy = scrollStrategy;
2531
- this.direction = direction;
2532
- this.isOpen = false;
2533
- this.enterDelay = 0;
2534
- this.leaveDelay = 0;
2535
- this.placement = exports.PopUpPlacements.Top;
2536
- this.placementPriority = null;
2537
- this.visible = false;
2538
- // tslint:disable-next-line:naming-convention orthodox-getter-and-setter
2539
- this._disabled = false;
2540
- this.listeners = new Map();
2541
- this.destroyed = new rxjs.Subject();
2542
- this.detach = function () {
2543
- if (_this.overlayRef && _this.overlayRef.hasAttached()) {
2544
- _this.overlayRef.detach();
2545
- }
2546
- _this.instance = null;
2547
- };
2548
- this.onPositionChange = function ($event) {
2549
- if (!_this.instance) {
2550
- return;
2551
- }
2552
- var newPlacement = _this.placement;
2553
- var _a = $event.connectionPair, originX = _a.originX, originY = _a.originY, overlayX = _a.overlayX, overlayY = _a.overlayY;
2554
- Object.keys(_this.availablePositions).some(function (key) {
2555
- if (originX === _this.availablePositions[key].originX && originY === _this.availablePositions[key].originY &&
2556
- overlayX === _this.availablePositions[key].overlayX && overlayY === _this.availablePositions[key].overlayY) {
2557
- newPlacement = key;
2558
- return true;
2559
- }
2560
- return false;
2561
- });
2562
- _this.placementChange.emit(newPlacement);
2563
- _this.updateClassMap(newPlacement);
2564
- if ($event.scrollableViewProperties.isOverlayClipped && _this.instance.isVisible()) {
2565
- // After position changes occur and the overlay is clipped by
2566
- // a parent scrollable then close the tooltip.
2567
- _this.ngZone.run(function () { return _this.hide(); });
2568
- }
2569
- };
2570
- this.addEventListener = function (listener, event) {
2571
- _this.elementRef.nativeElement.addEventListener(event, listener);
2572
- };
2573
- this.removeEventListener = function (listener, event) {
2574
- _this.elementRef.nativeElement.removeEventListener(event, listener);
2575
- };
2576
- this.availablePositions = POSITION_MAP;
2577
- }
2578
- McPopUpTrigger.prototype.ngOnInit = function () {
2579
- this.initListeners();
2580
- };
2581
- McPopUpTrigger.prototype.ngOnDestroy = function () {
2582
- if (this.overlayRef) {
2583
- this.overlayRef.dispose();
2584
- }
2585
- this.listeners.forEach(this.removeEventListener);
2586
- this.listeners.clear();
2587
- this.destroyed.next();
2588
- this.destroyed.complete();
2589
- };
2590
- McPopUpTrigger.prototype.updatePlacement = function (value) {
2591
- if (POSITION_TO_CSS_MAP[value]) {
2592
- this.placement = value;
2593
- this.updateClassMap();
2594
- }
2595
- else {
2596
- this.placement = exports.PopUpPlacements.Top;
2597
- console.warn("Unknown position: " + value + ". Will used default position: " + this.placement);
2598
- }
2599
- if (this.visible) {
2600
- this.updatePosition();
2601
- }
2602
- };
2603
- McPopUpTrigger.prototype.updatePlacementPriority = function (value) {
2604
- if (value && value.length > 0) {
2605
- this.placementPriority = value;
2606
- }
2607
- else {
2608
- this.placementPriority = null;
2609
- }
2610
- };
2611
- McPopUpTrigger.prototype.updateVisible = function (externalValue) {
2612
- var value = coercion.coerceBooleanProperty(externalValue);
2613
- if (this.visible !== value) {
2614
- this.visible = value;
2615
- if (value) {
2616
- this.show();
2617
- }
2618
- else {
2619
- this.hide();
2620
- }
2621
- }
2622
- };
2623
- McPopUpTrigger.prototype.handleKeydown = function (event) {
2624
- if (this.isOpen && event.keyCode === keycodes.ESCAPE) { // tslint:disable-line
2625
- this.hide();
2626
- }
2627
- };
2628
- McPopUpTrigger.prototype.handleTouchend = function () {
2629
- this.hide();
2630
- };
2631
- McPopUpTrigger.prototype.show = function (delay) {
2632
- var _this = this;
2633
- if (delay === void 0) { delay = this.enterDelay; }
2634
- if (this.disabled || this.instance) {
2635
- return;
2636
- }
2637
- this.overlayRef = this.createOverlay();
2638
- this.detach();
2639
- this.portal = this.portal || new portal.ComponentPortal(this.getOverlayHandleComponentType(), this.hostView);
2640
- this.instance = this.overlayRef.attach(this.portal).instance;
2641
- this.instance.afterHidden()
2642
- .pipe(operators.takeUntil(this.destroyed))
2643
- .subscribe(this.detach);
2644
- this.updateClassMap();
2645
- this.updateData();
2646
- this.instance.visibleChange
2647
- .pipe(operators.takeUntil(this.destroyed), operators.distinctUntilChanged())
2648
- .subscribe(function (value) {
2649
- _this.visible = value;
2650
- _this.visibleChange.emit(value);
2651
- _this.isOpen = value;
2652
- });
2653
- this.updatePosition();
2654
- this.instance.show(delay);
2655
- };
2656
- McPopUpTrigger.prototype.hide = function (delay) {
2657
- if (delay === void 0) { delay = this.leaveDelay; }
2658
- if (this.instance) {
2659
- this.instance.hide(delay);
2660
- }
2661
- };
2662
- /** Create the overlay config and position strategy */
2663
- McPopUpTrigger.prototype.createOverlay = function () {
2664
- var _this = this;
2665
- if (this.overlayRef) {
2666
- return this.overlayRef;
2667
- }
2668
- // Create connected position strategy that listens for scroll events to reposition.
2669
- var strategy = this.overlay.position()
2670
- .flexibleConnectedTo(this.elementRef)
2671
- .withTransformOriginOn(this.originSelector)
2672
- .withFlexibleDimensions(false)
2673
- .withViewportMargin(VIEWPORT_MARGIN)
2674
- .withPositions(__spreadArray([], __read(EXTENDED_OVERLAY_POSITIONS)))
2675
- .withScrollableContainers(this.scrollDispatcher.getAncestorScrollContainers(this.elementRef));
2676
- strategy.positionChanges
2677
- .pipe(operators.takeUntil(this.destroyed))
2678
- .subscribe(this.onPositionChange);
2679
- this.overlayRef = this.overlay.create(Object.assign(Object.assign({}, this.overlayConfig), { direction: this.direction, positionStrategy: strategy, scrollStrategy: this.scrollStrategy() }));
2680
- this.closingActions()
2681
- .pipe(operators.takeUntil(this.destroyed))
2682
- .pipe(operators.delay(0))
2683
- .subscribe(function () { return _this.hide(); });
2684
- this.overlayRef.outsidePointerEvents()
2685
- .subscribe(function () { return _this.instance.handleBodyInteraction(); });
2686
- this.overlayRef.detachments()
2687
- .pipe(operators.takeUntil(this.destroyed))
2688
- .subscribe(this.detach);
2689
- return this.overlayRef;
2690
- };
2691
- McPopUpTrigger.prototype.initListeners = function () {
2692
- var _this = this;
2693
- this.clearListeners();
2694
- if (this.trigger.includes(exports.PopUpTriggers.Click)) {
2695
- this.listeners
2696
- .set('click', function () { return _this.show(); })
2697
- .forEach(this.addEventListener);
2698
- }
2699
- if (this.trigger.includes(exports.PopUpTriggers.Hover)) {
2700
- this.listeners
2701
- .set('mouseenter', function () { return _this.show(); })
2702
- .set('mouseleave', function () { return _this.hide(); })
2703
- .forEach(this.addEventListener);
2704
- }
2705
- if (this.trigger.includes(exports.PopUpTriggers.Focus)) {
2706
- this.listeners
2707
- .set('focus', function () { return _this.show(); })
2708
- .set('blur', function () { return _this.hide(); })
2709
- .forEach(this.addEventListener);
2710
- }
2711
- };
2712
- /** Updates the position of the current popover. */
2713
- McPopUpTrigger.prototype.updatePosition = function (reapplyPosition) {
2714
- if (reapplyPosition === void 0) { reapplyPosition = false; }
2715
- this.overlayRef = this.createOverlay();
2716
- var position = this.overlayRef.getConfig().positionStrategy
2717
- .withPositions(this.getPrioritizedPositions())
2718
- .withPush(true);
2719
- if (reapplyPosition) {
2720
- setTimeout(function () { return position.reapplyLastPosition(); });
2721
- }
2722
- };
2723
- McPopUpTrigger.prototype.getPriorityPlacementStrategy = function (value) {
2724
- var _this = this;
2725
- var result = [];
2726
- var possiblePositions = Object.keys(this.availablePositions);
2727
- if (Array.isArray(value)) {
2728
- value.forEach(function (position) {
2729
- if (possiblePositions.includes(position)) {
2730
- result.push(_this.availablePositions[position]);
2731
- }
2732
- });
2733
- }
2734
- else if (possiblePositions.includes(value)) {
2735
- result.push(this.availablePositions[value]);
2736
- }
2737
- return result;
2738
- };
2739
- McPopUpTrigger.prototype.getPrioritizedPositions = function () {
2740
- if (this.placementPriority) {
2741
- return this.getPriorityPlacementStrategy(this.placementPriority);
2742
- }
2743
- return POSITION_PRIORITY_STRATEGY[this.placement];
2744
- };
2745
- McPopUpTrigger.prototype.clearListeners = function () {
2746
- this.listeners.forEach(this.removeEventListener);
2747
- this.listeners.clear();
2748
- };
2749
- return McPopUpTrigger;
2750
- }());
2751
- /** @nocollapse */ McPopUpTrigger.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPopUpTrigger, deps: "invalid", target: i0__namespace.ɵɵFactoryTarget.Directive });
2752
- /** @nocollapse */ McPopUpTrigger.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McPopUpTrigger, ngImport: i0__namespace });
2753
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPopUpTrigger, decorators: [{
2754
- type: i0.Directive
2755
- }], ctorParameters: function () { return [{ type: i1__namespace$2.Overlay }, { type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }, { type: i1__namespace$2.ScrollDispatcher }, { type: i0__namespace.ViewContainerRef }, { type: undefined }, { type: i2__namespace$1.Directionality }]; } });
2756
-
2757
- /**
2758
- * Generated bundle index. Do not edit.
2759
- */
2760
-
2761
- exports.BOTTOM_LEFT_POSITION_PRIORITY = BOTTOM_LEFT_POSITION_PRIORITY;
2762
- exports.BOTTOM_POSITION_PRIORITY = BOTTOM_POSITION_PRIORITY;
2763
- exports.BOTTOM_RIGHT_POSITION_PRIORITY = BOTTOM_RIGHT_POSITION_PRIORITY;
2764
- exports.DEFAULT_MC_LOCALE_ID = DEFAULT_MC_LOCALE_ID;
2765
- exports.DateFormatter = DateFormatter;
2766
- exports.EXTENDED_OVERLAY_POSITIONS = EXTENDED_OVERLAY_POSITIONS;
2767
- exports.ErrorStateMatcher = ErrorStateMatcher;
2768
- exports.LEFT_BOTTOM_POSITION_PRIORITY = LEFT_BOTTOM_POSITION_PRIORITY;
2769
- exports.LEFT_POSITION_PRIORITY = LEFT_POSITION_PRIORITY;
2770
- exports.LEFT_TOP_POSITION_PRIORITY = LEFT_TOP_POSITION_PRIORITY;
2771
- exports.MC_LABEL_GLOBAL_OPTIONS = MC_LABEL_GLOBAL_OPTIONS;
2772
- exports.MC_LOCALE_ID = MC_LOCALE_ID;
2773
- exports.MC_OPTION_ACTION_PARENT = MC_OPTION_ACTION_PARENT;
2774
- exports.MC_OPTION_PARENT_COMPONENT = MC_OPTION_PARENT_COMPONENT;
2775
- exports.MC_SANITY_CHECKS = MC_SANITY_CHECKS;
2776
- exports.MC_SELECT_SCROLL_STRATEGY = MC_SELECT_SCROLL_STRATEGY;
2777
- exports.MC_SELECT_SCROLL_STRATEGY_PROVIDER = MC_SELECT_SCROLL_STRATEGY_PROVIDER;
2778
- exports.MC_VALIDATION = MC_VALIDATION;
2779
- exports.McCommonModule = McCommonModule;
2780
- exports.McDecimalPipe = McDecimalPipe;
2781
- exports.McForm = McForm;
2782
- exports.McFormElement = McFormElement;
2783
- exports.McFormattersModule = McFormattersModule;
2784
- exports.McFormsModule = McFormsModule;
2785
- exports.McHighlightModule = McHighlightModule;
2786
- exports.McHighlightPipe = McHighlightPipe;
2787
- exports.McLine = McLine;
2788
- exports.McLineModule = McLineModule;
2789
- exports.McLineSetter = McLineSetter;
2790
- exports.McMeasureScrollbarService = McMeasureScrollbarService;
2791
- exports.McOptgroup = McOptgroup;
2792
- exports.McOptgroupBase = McOptgroupBase;
2793
- exports.McOptgroupMixinBase = McOptgroupMixinBase;
2794
- exports.McOption = McOption;
2795
- exports.McOptionActionBase = McOptionActionBase;
2796
- exports.McOptionActionComponent = McOptionActionComponent;
2797
- exports.McOptionActionMixinBase = McOptionActionMixinBase;
2798
- exports.McOptionModule = McOptionModule;
2799
- exports.McOptionSelectionChange = McOptionSelectionChange;
2800
- exports.McPopUp = McPopUp;
2801
- exports.McPopUpTrigger = McPopUpTrigger;
2802
- exports.McPseudoCheckbox = McPseudoCheckbox;
2803
- exports.McPseudoCheckboxModule = McPseudoCheckboxModule;
2804
- exports.NUMBER_FORMAT_REGEXP = NUMBER_FORMAT_REGEXP;
2805
- exports.POSITION_MAP = POSITION_MAP;
2806
- exports.POSITION_PRIORITY_STRATEGY = POSITION_PRIORITY_STRATEGY;
2807
- exports.POSITION_TO_CSS_MAP = POSITION_TO_CSS_MAP;
2808
- exports.RIGHT_BOTTOM_POSITION_PRIORITY = RIGHT_BOTTOM_POSITION_PRIORITY;
2809
- exports.RIGHT_POSITION_PRIORITY = RIGHT_POSITION_PRIORITY;
2810
- exports.RIGHT_TOP_POSITION_PRIORITY = RIGHT_TOP_POSITION_PRIORITY;
2811
- exports.SELECT_PANEL_INDENT_PADDING_X = SELECT_PANEL_INDENT_PADDING_X;
2812
- exports.SELECT_PANEL_MAX_HEIGHT = SELECT_PANEL_MAX_HEIGHT;
2813
- exports.SELECT_PANEL_PADDING_X = SELECT_PANEL_PADDING_X;
2814
- exports.SELECT_PANEL_VIEWPORT_PADDING = SELECT_PANEL_VIEWPORT_PADDING;
2815
- exports.ShowOnDirtyErrorStateMatcher = ShowOnDirtyErrorStateMatcher;
2816
- exports.TOP_LEFT_POSITION_PRIORITY = TOP_LEFT_POSITION_PRIORITY;
2817
- exports.TOP_POSITION_PRIORITY = TOP_POSITION_PRIORITY;
2818
- exports.TOP_RIGHT_POSITION_PRIORITY = TOP_RIGHT_POSITION_PRIORITY;
2819
- exports.countGroupLabelsBeforeOption = countGroupLabelsBeforeOption;
2820
- exports.fadeAnimation = fadeAnimation;
2821
- exports.getMcSelectDynamicMultipleError = getMcSelectDynamicMultipleError;
2822
- exports.getMcSelectNonArrayValueError = getMcSelectNonArrayValueError;
2823
- exports.getMcSelectNonFunctionValueError = getMcSelectNonFunctionValueError;
2824
- exports.getOptionScrollPosition = getOptionScrollPosition;
2825
- exports.isBoolean = isBoolean;
2826
- exports.mcSelectAnimations = mcSelectAnimations;
2827
- exports.mcSelectScrollStrategyProviderFactory = mcSelectScrollStrategyProviderFactory;
2828
- exports.mixinColor = mixinColor;
2829
- exports.mixinDisabled = mixinDisabled;
2830
- exports.mixinErrorState = mixinErrorState;
2831
- exports.mixinTabIndex = mixinTabIndex;
2832
- exports.selectEvents = selectEvents;
2833
- exports.setMosaicValidation = setMosaicValidation;
2834
- exports.setMosaicValidationForFormControl = setMosaicValidationForFormControl;
2835
- exports.setMosaicValidationForModelControl = setMosaicValidationForModelControl;
2836
- exports.toBoolean = toBoolean;
2837
- exports.validationTooltipHideDelay = validationTooltipHideDelay;
2838
- exports.validationTooltipShowDelay = validationTooltipShowDelay;
2839
-
2840
- Object.defineProperty(exports, '__esModule', { value: true });
2841
-
2842
- }));
2843
- //# sourceMappingURL=ptsecurity-mosaic-core.umd.js.map