@ptsecurity/mosaic 12.2.2 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (702) hide show
  1. package/_theming.scss +78 -48
  2. package/_visual.scss +11 -8
  3. package/autocomplete/README.md +0 -0
  4. package/autocomplete/package.json +5 -5
  5. package/button/README.md +0 -0
  6. package/button/button.component.d.ts +17 -14
  7. package/button/button.module.d.ts +1 -1
  8. package/button/package.json +5 -5
  9. package/button-toggle/README.md +0 -0
  10. package/button-toggle/package.json +5 -5
  11. package/card/README.md +0 -0
  12. package/card/package.json +5 -5
  13. package/checkbox/README.md +1 -0
  14. package/checkbox/package.json +5 -5
  15. package/core/formatters/date/formatter.d.ts +4 -4
  16. package/core/formatters/date/templates/en-US.d.ts +8 -8
  17. package/core/formatters/date/templates/ru-RU.d.ts +8 -8
  18. package/core/package.json +5 -5
  19. package/datepicker/README.md +0 -0
  20. package/datepicker/package.json +5 -5
  21. package/design-tokens/package.json +5 -5
  22. package/design-tokens/tokens/components/navbar.json5 +12 -9
  23. package/design-tokens/tokens.d.ts +11 -8
  24. package/divider/README.md +0 -0
  25. package/divider/package.json +5 -5
  26. package/dropdown/package.json +5 -5
  27. package/{esm2015/autocomplete/autocomplete-origin.directive.js → esm2020/autocomplete/autocomplete-origin.directive.mjs} +4 -4
  28. package/{esm2015/autocomplete/autocomplete-trigger.directive.js → esm2020/autocomplete/autocomplete-trigger.directive.mjs} +4 -4
  29. package/esm2020/autocomplete/autocomplete.component.mjs +154 -0
  30. package/{esm2015/autocomplete/autocomplete.module.js → esm2020/autocomplete/autocomplete.module.mjs} +5 -5
  31. package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
  32. package/{esm2015/autocomplete/ptsecurity-mosaic-autocomplete.js → esm2020/autocomplete/ptsecurity-mosaic-autocomplete.mjs} +0 -0
  33. package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
  34. package/esm2020/button/button.component.mjs +129 -0
  35. package/esm2020/button/button.module.mjs +38 -0
  36. package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
  37. package/{esm2015/button/ptsecurity-mosaic-button.js → esm2020/button/ptsecurity-mosaic-button.mjs} +0 -0
  38. package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
  39. package/esm2020/button-toggle/button-toggle.component.mjs +362 -0
  40. package/{esm2015/button-toggle/button-toggle.module.js → esm2020/button-toggle/button-toggle.module.mjs} +5 -5
  41. package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
  42. package/{esm2015/button-toggle/ptsecurity-mosaic-button-toggle.js → esm2020/button-toggle/ptsecurity-mosaic-button-toggle.mjs} +0 -0
  43. package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
  44. package/esm2020/card/card.component.mjs +80 -0
  45. package/{esm2015/card/card.module.js → esm2020/card/card.module.mjs} +5 -5
  46. package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
  47. package/{esm2015/card/ptsecurity-mosaic-card.js → esm2020/card/ptsecurity-mosaic-card.mjs} +0 -0
  48. package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
  49. package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
  50. package/{esm2015/checkbox/checkbox-module.js → esm2020/checkbox/checkbox-module.mjs} +5 -5
  51. package/{esm2015/checkbox/checkbox-required-validator.js → esm2020/checkbox/checkbox-required-validator.mjs} +4 -4
  52. package/esm2020/checkbox/checkbox.mjs +315 -0
  53. package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
  54. package/{esm2015/checkbox/ptsecurity-mosaic-checkbox.js → esm2020/checkbox/ptsecurity-mosaic-checkbox.mjs} +0 -0
  55. package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
  56. package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
  57. package/{esm2015/core/animation/fade-animations.js → esm2020/core/animation/fade-animations.mjs} +0 -0
  58. package/{esm2015/core/animation/index.js → esm2020/core/animation/index.mjs} +0 -0
  59. package/{esm2015/core/animation/select-animations.js → esm2020/core/animation/select-animations.mjs} +0 -0
  60. package/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -0
  61. package/{esm2015/core/common-behaviors/common-module.js → esm2020/core/common-behaviors/common-module.mjs} +5 -5
  62. package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
  63. package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
  64. package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
  65. package/{esm2015/core/common-behaviors/index.js → esm2020/core/common-behaviors/index.mjs} +0 -0
  66. package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -0
  67. package/{esm2015/core/error/error-options.js → esm2020/core/error/error-options.mjs} +7 -7
  68. package/esm2020/core/formatters/date/formatter.mjs +314 -0
  69. package/esm2020/core/formatters/date/templates/en-US.mjs +280 -0
  70. package/esm2020/core/formatters/date/templates/ru-RU.mjs +280 -0
  71. package/{esm2015/core/formatters/index.js → esm2020/core/formatters/index.mjs} +5 -5
  72. package/esm2020/core/formatters/number/formatter.mjs +105 -0
  73. package/{esm2015/core/forms/forms-module.js → esm2020/core/forms/forms-module.mjs} +5 -5
  74. package/{esm2015/core/forms/forms.directive.js → esm2020/core/forms/forms.directive.mjs} +7 -7
  75. package/{esm2015/core/forms/index.js → esm2020/core/forms/index.mjs} +0 -0
  76. package/{esm2015/core/highlight/highlight.pipe.js → esm2020/core/highlight/highlight.pipe.mjs} +4 -4
  77. package/{esm2015/core/highlight/index.js → esm2020/core/highlight/index.mjs} +5 -5
  78. package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
  79. package/{esm2015/core/label/label-options.js → esm2020/core/label/label-options.mjs} +0 -0
  80. package/{esm2015/core/line/line.js → esm2020/core/line/line.mjs} +8 -8
  81. package/esm2020/core/option/action.mjs +121 -0
  82. package/{esm2015/core/option/index.js → esm2020/core/option/index.mjs} +0 -0
  83. package/esm2020/core/option/optgroup.mjs +31 -0
  84. package/{esm2015/core/option/option-module.js → esm2020/core/option/option-module.mjs} +5 -5
  85. package/esm2020/core/option/option.mjs +254 -0
  86. package/{esm2015/core/overlay/overlay-position-map.js → esm2020/core/overlay/overlay-position-map.mjs} +0 -0
  87. package/{esm2015/core/pop-up/constants.js → esm2020/core/pop-up/constants.mjs} +0 -0
  88. package/{esm2015/core/pop-up/index.js → esm2020/core/pop-up/index.mjs} +0 -0
  89. package/esm2020/core/pop-up/pop-up-trigger.mjs +246 -0
  90. package/esm2020/core/pop-up/pop-up.mjs +91 -0
  91. package/{esm2015/core/ptsecurity-mosaic-core.js → esm2020/core/ptsecurity-mosaic-core.mjs} +0 -0
  92. package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +0 -0
  93. package/{esm2015/core/select/constants.js → esm2020/core/select/constants.mjs} +0 -0
  94. package/{esm2015/core/select/errors.js → esm2020/core/select/errors.mjs} +0 -0
  95. package/{esm2015/core/select/events.js → esm2020/core/select/events.mjs} +0 -0
  96. package/{esm2015/core/select/index.js → esm2020/core/select/index.mjs} +0 -0
  97. package/{esm2015/core/selection/constants.js → esm2020/core/selection/constants.mjs} +0 -0
  98. package/{esm2015/core/selection/index.js → esm2020/core/selection/index.mjs} +0 -0
  99. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +37 -0
  100. package/{esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js → esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs} +5 -5
  101. package/{esm2015/core/services/measure-scrollbar.service.js → esm2020/core/services/measure-scrollbar.service.mjs} +4 -4
  102. package/{esm2015/core/utils/index.js → esm2020/core/utils/index.mjs} +0 -0
  103. package/{esm2015/core/utils/public-api.js → esm2020/core/utils/public-api.mjs} +0 -0
  104. package/{esm2015/core/utils/utils.js → esm2020/core/utils/utils.mjs} +0 -0
  105. package/{esm2015/core/validation/index.js → esm2020/core/validation/index.mjs} +0 -0
  106. package/{esm2015/core/validation/validation.js → esm2020/core/validation/validation.mjs} +0 -0
  107. package/esm2020/datepicker/calendar-body.component.mjs +106 -0
  108. package/esm2020/datepicker/calendar.component.mjs +362 -0
  109. package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
  110. package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
  111. package/esm2020/datepicker/datepicker-input.directive.mjs +900 -0
  112. package/{esm2015/datepicker/datepicker-intl.js → esm2020/datepicker/datepicker-intl.mjs} +4 -4
  113. package/{esm2015/datepicker/datepicker-module.js → esm2020/datepicker/datepicker-module.mjs} +5 -5
  114. package/esm2020/datepicker/datepicker-toggle.component.mjs +86 -0
  115. package/esm2020/datepicker/datepicker.component.mjs +408 -0
  116. package/{esm2015/datepicker/index.js → esm2020/datepicker/index.mjs} +0 -0
  117. package/{esm2015/datepicker/month-view.component.js → esm2020/datepicker/month-view.component.mjs} +5 -11
  118. package/{esm2015/datepicker/multi-year-view.component.js → esm2020/datepicker/multi-year-view.component.mjs} +5 -11
  119. package/{esm2015/datepicker/ptsecurity-mosaic-datepicker.js → esm2020/datepicker/ptsecurity-mosaic-datepicker.mjs} +0 -0
  120. package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
  121. package/{esm2015/datepicker/year-view.component.js → esm2020/datepicker/year-view.component.mjs} +5 -11
  122. package/{esm2015/design-tokens/index.js → esm2020/design-tokens/index.mjs} +0 -0
  123. package/{esm2015/design-tokens/ptsecurity-mosaic-design-tokens.js → esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs} +0 -0
  124. package/{esm2015/design-tokens/public-api.js → esm2020/design-tokens/public-api.mjs} +0 -0
  125. package/{esm2015/design-tokens/tokens.js → esm2020/design-tokens/tokens.mjs} +12 -9
  126. package/{esm2015/divider/divider.component.js → esm2020/divider/divider.component.mjs} +6 -13
  127. package/{esm2015/divider/divider.module.js → esm2020/divider/divider.module.mjs} +5 -5
  128. package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
  129. package/{esm2015/divider/ptsecurity-mosaic-divider.js → esm2020/divider/ptsecurity-mosaic-divider.mjs} +0 -0
  130. package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
  131. package/{esm2015/dropdown/dropdown-animations.js → esm2020/dropdown/dropdown-animations.mjs} +0 -0
  132. package/{esm2015/dropdown/dropdown-content.directive.js → esm2020/dropdown/dropdown-content.directive.mjs} +6 -8
  133. package/{esm2015/dropdown/dropdown-errors.js → esm2020/dropdown/dropdown-errors.mjs} +0 -0
  134. package/esm2020/dropdown/dropdown-item.component.mjs +139 -0
  135. package/esm2020/dropdown/dropdown-trigger.directive.mjs +485 -0
  136. package/esm2020/dropdown/dropdown.component.mjs +292 -0
  137. package/{esm2015/dropdown/dropdown.module.js → esm2020/dropdown/dropdown.module.mjs} +5 -5
  138. package/{esm2015/dropdown/dropdown.types.js → esm2020/dropdown/dropdown.types.mjs} +0 -0
  139. package/{esm2015/dropdown/index.js → esm2020/dropdown/index.mjs} +0 -0
  140. package/{esm2015/dropdown/ptsecurity-mosaic-dropdown.js → esm2020/dropdown/ptsecurity-mosaic-dropdown.mjs} +0 -0
  141. package/{esm2015/dropdown/public-api.js → esm2020/dropdown/public-api.mjs} +0 -0
  142. package/{esm2015/form-field/cleaner.js → esm2020/form-field/cleaner.mjs} +4 -4
  143. package/{esm2015/form-field/form-field-control.js → esm2020/form-field/form-field-control.mjs} +0 -0
  144. package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
  145. package/esm2020/form-field/form-field.mjs +205 -0
  146. package/{esm2015/form-field/form-field.module.js → esm2020/form-field/form-field.module.mjs} +5 -5
  147. package/{esm2015/form-field/hint.js → esm2020/form-field/hint.mjs} +4 -4
  148. package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
  149. package/{esm2015/form-field/prefix.js → esm2020/form-field/prefix.mjs} +4 -4
  150. package/{esm2015/form-field/ptsecurity-mosaic-form-field.js → esm2020/form-field/ptsecurity-mosaic-form-field.mjs} +0 -0
  151. package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
  152. package/{esm2015/form-field/stepper.js → esm2020/form-field/stepper.mjs} +4 -4
  153. package/{esm2015/form-field/suffix.js → esm2020/form-field/suffix.mjs} +4 -4
  154. package/esm2020/icon/icon.component.mjs +44 -0
  155. package/{esm2015/icon/icon.module.js → esm2020/icon/icon.module.mjs} +5 -5
  156. package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
  157. package/{esm2015/icon/ptsecurity-mosaic-icon.js → esm2020/icon/ptsecurity-mosaic-icon.mjs} +0 -0
  158. package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
  159. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  160. package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
  161. package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
  162. package/{esm2015/input/input-number-validators.js → esm2020/input/input-number-validators.mjs} +7 -7
  163. package/{esm2015/input/input-number.js → esm2020/input/input-number.mjs} +4 -4
  164. package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
  165. package/{esm2015/input/input.js → esm2020/input/input.mjs} +7 -7
  166. package/{esm2015/input/input.module.js → esm2020/input/input.module.mjs} +5 -5
  167. package/{esm2015/input/ptsecurity-mosaic-input.js → esm2020/input/ptsecurity-mosaic-input.mjs} +0 -0
  168. package/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -0
  169. package/{esm2015/link/index.js → esm2020/link/index.mjs} +0 -0
  170. package/esm2020/link/link.component.mjs +107 -0
  171. package/{esm2015/link/link.module.js → esm2020/link/link.module.mjs} +5 -5
  172. package/{esm2015/link/ptsecurity-mosaic-link.js → esm2020/link/ptsecurity-mosaic-link.mjs} +0 -0
  173. package/{esm2015/link/public-api.js → esm2020/link/public-api.mjs} +0 -0
  174. package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
  175. package/esm2020/list/list-selection.component.mjs +693 -0
  176. package/esm2020/list/list.component.mjs +44 -0
  177. package/{esm2015/list/list.module.js → esm2020/list/list.module.mjs} +5 -5
  178. package/{esm2015/list/ptsecurity-mosaic-list.js → esm2020/list/ptsecurity-mosaic-list.mjs} +0 -0
  179. package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
  180. package/{esm2015/modal/css-unit.pipe.js → esm2020/modal/css-unit.pipe.mjs} +4 -4
  181. package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
  182. package/{esm2015/modal/modal-control.service.js → esm2020/modal/modal-control.service.mjs} +4 -4
  183. package/{esm2015/modal/modal-ref.class.js → esm2020/modal/modal-ref.class.mjs} +0 -0
  184. package/{esm2015/modal/modal-util.js → esm2020/modal/modal-util.mjs} +0 -0
  185. package/esm2020/modal/modal.component.mjs +501 -0
  186. package/{esm2015/modal/modal.directive.js → esm2020/modal/modal.directive.mjs} +13 -13
  187. package/{esm2015/modal/modal.module.js → esm2020/modal/modal.module.mjs} +5 -5
  188. package/{esm2015/modal/modal.service.js → esm2020/modal/modal.service.mjs} +4 -4
  189. package/{esm2015/modal/modal.type.js → esm2020/modal/modal.type.mjs} +0 -0
  190. package/{esm2015/modal/ptsecurity-mosaic-modal.js → esm2020/modal/ptsecurity-mosaic-modal.mjs} +0 -0
  191. package/{esm2015/modal/public-api.js → esm2020/modal/public-api.mjs} +0 -0
  192. package/{esm2015/navbar/index.js → esm2020/navbar/index.mjs} +0 -0
  193. package/esm2020/navbar/navbar-item.component.mjs +577 -0
  194. package/esm2020/navbar/navbar.component.mjs +237 -0
  195. package/esm2020/navbar/navbar.module.mjs +92 -0
  196. package/{esm2015/navbar/ptsecurity-mosaic-navbar.js → esm2020/navbar/ptsecurity-mosaic-navbar.mjs} +0 -0
  197. package/{esm2015/navbar/public-api.js → esm2020/navbar/public-api.mjs} +0 -0
  198. package/{esm2015/navbar/vertical-navbar.animation.js → esm2020/navbar/vertical-navbar.animation.mjs} +2 -2
  199. package/esm2020/navbar/vertical-navbar.component.mjs +114 -0
  200. package/{esm2015/popover/index.js → esm2020/popover/index.mjs} +0 -0
  201. package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
  202. package/esm2020/popover/popover-confirm.component.mjs +108 -0
  203. package/esm2020/popover/popover.component.mjs +253 -0
  204. package/{esm2015/popover/popover.module.js → esm2020/popover/popover.module.mjs} +5 -5
  205. package/{esm2015/popover/ptsecurity-mosaic-popover.js → esm2020/popover/ptsecurity-mosaic-popover.mjs} +0 -0
  206. package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +0 -0
  207. package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
  208. package/esm2020/progress-bar/progress-bar.component.mjs +42 -0
  209. package/{esm2015/progress-bar/progress-bar.module.js → esm2020/progress-bar/progress-bar.module.mjs} +5 -5
  210. package/{esm2015/progress-bar/ptsecurity-mosaic-progress-bar.js → esm2020/progress-bar/ptsecurity-mosaic-progress-bar.mjs} +0 -0
  211. package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
  212. package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
  213. package/esm2020/progress-spinner/progress-spinner.component.mjs +46 -0
  214. package/{esm2015/progress-spinner/progress-spinner.module.js → esm2020/progress-spinner/progress-spinner.module.mjs} +5 -5
  215. package/{esm2015/progress-spinner/ptsecurity-mosaic-progress-spinner.js → esm2020/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs} +0 -0
  216. package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
  217. package/{esm2015/ptsecurity-mosaic.js → esm2020/ptsecurity-mosaic.mjs} +0 -0
  218. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  219. package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
  220. package/{esm2015/radio/ptsecurity-mosaic-radio.js → esm2020/radio/ptsecurity-mosaic-radio.mjs} +0 -0
  221. package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
  222. package/esm2020/radio/radio.component.mjs +458 -0
  223. package/{esm2015/radio/radio.module.js → esm2020/radio/radio.module.mjs} +5 -5
  224. package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
  225. package/{esm2015/select/ptsecurity-mosaic-select.js → esm2020/select/ptsecurity-mosaic-select.mjs} +0 -0
  226. package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
  227. package/esm2020/select/select.component.mjs +1110 -0
  228. package/{esm2015/select/select.module.js → esm2020/select/select.module.mjs} +5 -5
  229. package/{esm2015/sidebar/index.js → esm2020/sidebar/index.mjs} +0 -0
  230. package/{esm2015/sidebar/ptsecurity-mosaic-sidebar.js → esm2020/sidebar/ptsecurity-mosaic-sidebar.mjs} +0 -0
  231. package/{esm2015/sidebar/public-api.js → esm2020/sidebar/public-api.mjs} +0 -0
  232. package/{esm2015/sidebar/sidebar-animations.js → esm2020/sidebar/sidebar-animations.mjs} +0 -0
  233. package/esm2020/sidebar/sidebar.component.mjs +146 -0
  234. package/{esm2015/sidebar/sidebar.module.js → esm2020/sidebar/sidebar.module.mjs} +5 -5
  235. package/{esm2015/sidepanel/index.js → esm2020/sidepanel/index.mjs} +0 -0
  236. package/{esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js → esm2020/sidepanel/ptsecurity-mosaic-sidepanel.mjs} +0 -0
  237. package/{esm2015/sidepanel/public-api.js → esm2020/sidepanel/public-api.mjs} +0 -0
  238. package/{esm2015/sidepanel/sidepanel-animations.js → esm2020/sidepanel/sidepanel-animations.mjs} +0 -0
  239. package/{esm2015/sidepanel/sidepanel-config.js → esm2020/sidepanel/sidepanel-config.mjs} +0 -0
  240. package/esm2020/sidepanel/sidepanel-container.component.mjs +106 -0
  241. package/{esm2015/sidepanel/sidepanel-directives.js → esm2020/sidepanel/sidepanel-directives.mjs} +16 -16
  242. package/{esm2015/sidepanel/sidepanel-ref.js → esm2020/sidepanel/sidepanel-ref.mjs} +0 -0
  243. package/{esm2015/sidepanel/sidepanel.module.js → esm2020/sidepanel/sidepanel.module.mjs} +5 -5
  244. package/esm2020/sidepanel/sidepanel.service.mjs +167 -0
  245. package/{esm2015/splitter/index.js → esm2020/splitter/index.mjs} +0 -0
  246. package/{esm2015/splitter/ptsecurity-mosaic-splitter.js → esm2020/splitter/ptsecurity-mosaic-splitter.mjs} +0 -0
  247. package/{esm2015/splitter/public-api.js → esm2020/splitter/public-api.mjs} +0 -0
  248. package/esm2020/splitter/splitter.component.mjs +480 -0
  249. package/esm2020/splitter/splitter.module.mjs +40 -0
  250. package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  251. package/{esm2015/table/ptsecurity-mosaic-table.js → esm2020/table/ptsecurity-mosaic-table.mjs} +0 -0
  252. package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
  253. package/{esm2015/table/table.component.js → esm2020/table/table.component.mjs} +4 -4
  254. package/{esm2015/table/table.module.js → esm2020/table/table.module.mjs} +5 -5
  255. package/{esm2015/tabs/index.js → esm2020/tabs/index.mjs} +0 -0
  256. package/esm2020/tabs/paginated-tab-header.mjs +479 -0
  257. package/{esm2015/tabs/ptsecurity-mosaic-tabs.js → esm2020/tabs/ptsecurity-mosaic-tabs.mjs} +0 -0
  258. package/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -0
  259. package/esm2020/tabs/tab-body.component.mjs +178 -0
  260. package/{esm2015/tabs/tab-content.directive.js → esm2020/tabs/tab-content.directive.mjs} +4 -4
  261. package/esm2020/tabs/tab-group.component.mjs +350 -0
  262. package/esm2020/tabs/tab-header.component.mjs +67 -0
  263. package/{esm2015/tabs/tab-label-wrapper.directive.js → esm2020/tabs/tab-label-wrapper.directive.mjs} +4 -4
  264. package/{esm2015/tabs/tab-label.directive.js → esm2020/tabs/tab-label.directive.mjs} +4 -4
  265. package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
  266. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +110 -0
  267. package/{esm2015/tabs/tab.component.js → esm2020/tabs/tab.component.mjs} +4 -4
  268. package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
  269. package/{esm2015/tabs/tabs.module.js → esm2020/tabs/tabs.module.mjs} +5 -5
  270. package/{esm2015/tags/index.js → esm2020/tags/index.mjs} +0 -0
  271. package/{esm2015/tags/ptsecurity-mosaic-tags.js → esm2020/tags/ptsecurity-mosaic-tags.mjs} +0 -0
  272. package/{esm2015/tags/public-api.js → esm2020/tags/public-api.mjs} +0 -0
  273. package/{esm2015/tags/tag-default-options.js → esm2020/tags/tag-default-options.mjs} +0 -0
  274. package/{esm2015/tags/tag-input.js → esm2020/tags/tag-input.mjs} +4 -4
  275. package/esm2020/tags/tag-list.component.mjs +722 -0
  276. package/{esm2015/tags/tag-text-control.js → esm2020/tags/tag-text-control.mjs} +0 -0
  277. package/esm2020/tags/tag.component.mjs +374 -0
  278. package/{esm2015/tags/tag.module.js → esm2020/tags/tag.module.mjs} +5 -5
  279. package/{esm2015/textarea/index.js → esm2020/textarea/index.mjs} +0 -0
  280. package/{esm2015/textarea/ptsecurity-mosaic-textarea.js → esm2020/textarea/ptsecurity-mosaic-textarea.mjs} +0 -0
  281. package/{esm2015/textarea/public-api.js → esm2020/textarea/public-api.mjs} +0 -0
  282. package/{esm2015/textarea/textarea.component.js → esm2020/textarea/textarea.component.mjs} +4 -4
  283. package/{esm2015/textarea/textarea.module.js → esm2020/textarea/textarea.module.mjs} +5 -5
  284. package/{esm2015/timepicker/index.js → esm2020/timepicker/index.mjs} +0 -0
  285. package/{esm2015/timepicker/ptsecurity-mosaic-timepicker.js → esm2020/timepicker/ptsecurity-mosaic-timepicker.mjs} +0 -0
  286. package/{esm2015/timepicker/public-api.js → esm2020/timepicker/public-api.mjs} +0 -0
  287. package/{esm2015/timepicker/timepicker.constants.js → esm2020/timepicker/timepicker.constants.mjs} +0 -0
  288. package/esm2020/timepicker/timepicker.directive.mjs +653 -0
  289. package/{esm2015/timepicker/timepicker.module.js → esm2020/timepicker/timepicker.module.mjs} +5 -5
  290. package/{esm2015/toggle/index.js → esm2020/toggle/index.mjs} +0 -0
  291. package/{esm2015/toggle/ptsecurity-mosaic-toggle.js → esm2020/toggle/ptsecurity-mosaic-toggle.mjs} +0 -0
  292. package/{esm2015/toggle/public-api.js → esm2020/toggle/public-api.mjs} +0 -0
  293. package/esm2020/toggle/toggle.component.mjs +158 -0
  294. package/{esm2015/toggle/toggle.module.js → esm2020/toggle/toggle.module.mjs} +5 -5
  295. package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
  296. package/{esm2015/tooltip/ptsecurity-mosaic-tooltip.js → esm2020/tooltip/ptsecurity-mosaic-tooltip.mjs} +0 -0
  297. package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
  298. package/{esm2015/tooltip/tooltip.animations.js → esm2020/tooltip/tooltip.animations.mjs} +0 -0
  299. package/esm2020/tooltip/tooltip.component.mjs +291 -0
  300. package/{esm2015/tooltip/tooltip.module.js → esm2020/tooltip/tooltip.module.mjs} +5 -5
  301. package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +0 -0
  302. package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +0 -0
  303. package/{esm2015/tree/control/nested-tree-control.js → esm2020/tree/control/nested-tree-control.mjs} +0 -0
  304. package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
  305. package/{esm2015/tree/data-source/flat-data-source.js → esm2020/tree/data-source/flat-data-source.mjs} +0 -0
  306. package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
  307. package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
  308. package/{esm2015/tree/node.js → esm2020/tree/node.mjs} +4 -4
  309. package/{esm2015/tree/outlet.js → esm2020/tree/outlet.mjs} +4 -4
  310. package/esm2020/tree/padding.directive.mjs +110 -0
  311. package/{esm2015/tree/ptsecurity-mosaic-tree.js → esm2020/tree/ptsecurity-mosaic-tree.mjs} +0 -0
  312. package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
  313. package/esm2020/tree/toggle.mjs +80 -0
  314. package/{esm2015/tree/tree-base.js → esm2020/tree/tree-base.mjs} +7 -7
  315. package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
  316. package/esm2020/tree/tree-option.component.mjs +226 -0
  317. package/esm2020/tree/tree-selection.component.mjs +530 -0
  318. package/esm2020/tree/tree.mjs +15 -0
  319. package/{esm2015/tree/tree.module.js → esm2020/tree/tree.module.mjs} +5 -5
  320. package/{esm2015/tree-select/index.js → esm2020/tree-select/index.mjs} +0 -0
  321. package/{esm2015/tree-select/ptsecurity-mosaic-tree-select.js → esm2020/tree-select/ptsecurity-mosaic-tree-select.mjs} +0 -0
  322. package/{esm2015/tree-select/public-api.js → esm2020/tree-select/public-api.mjs} +0 -0
  323. package/{esm2015/tree-select/tree-select.component.js → esm2020/tree-select/tree-select.component.mjs} +12 -23
  324. package/{esm2015/tree-select/tree-select.module.js → esm2020/tree-select/tree-select.module.mjs} +5 -5
  325. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +756 -0
  326. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  327. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +385 -0
  328. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  329. package/fesm2015/ptsecurity-mosaic-button.mjs +170 -0
  330. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -0
  331. package/fesm2015/{ptsecurity-mosaic-card.js → ptsecurity-mosaic-card.mjs} +10 -18
  332. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -0
  333. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +366 -0
  334. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  335. package/fesm2015/{ptsecurity-mosaic-core.js → ptsecurity-mosaic-core.mjs} +158 -181
  336. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -0
  337. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +2700 -0
  338. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  339. package/fesm2015/{ptsecurity-mosaic-design-tokens.js → ptsecurity-mosaic-design-tokens.mjs} +13 -10
  340. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  341. package/fesm2015/ptsecurity-mosaic-divider.mjs +61 -0
  342. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -0
  343. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1106 -0
  344. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  345. package/fesm2015/ptsecurity-mosaic-form-field.mjs +378 -0
  346. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -0
  347. package/fesm2015/ptsecurity-mosaic-icon.mjs +88 -0
  348. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -0
  349. package/fesm2015/ptsecurity-mosaic-input.mjs +609 -0
  350. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -0
  351. package/fesm2015/{ptsecurity-mosaic-link.js → ptsecurity-mosaic-link.mjs} +8 -8
  352. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -0
  353. package/fesm2015/ptsecurity-mosaic-list.mjs +796 -0
  354. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -0
  355. package/fesm2015/ptsecurity-mosaic-modal.mjs +842 -0
  356. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -0
  357. package/fesm2015/ptsecurity-mosaic-navbar.mjs +1025 -0
  358. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -0
  359. package/fesm2015/ptsecurity-mosaic-popover.mjs +393 -0
  360. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -0
  361. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +76 -0
  362. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  363. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  364. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  365. package/fesm2015/ptsecurity-mosaic-radio.mjs +481 -0
  366. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -0
  367. package/fesm2015/ptsecurity-mosaic-select.mjs +1175 -0
  368. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -0
  369. package/fesm2015/{ptsecurity-mosaic-sidebar.js → ptsecurity-mosaic-sidebar.mjs} +16 -25
  370. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  371. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +592 -0
  372. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  373. package/fesm2015/ptsecurity-mosaic-splitter.mjs +524 -0
  374. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -0
  375. package/fesm2015/{ptsecurity-mosaic-table.js → ptsecurity-mosaic-table.mjs} +8 -8
  376. package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -0
  377. package/fesm2015/ptsecurity-mosaic-tabs.mjs +1511 -0
  378. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -0
  379. package/fesm2015/ptsecurity-mosaic-tags.mjs +1372 -0
  380. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -0
  381. package/fesm2015/ptsecurity-mosaic-textarea.mjs +293 -0
  382. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -0
  383. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +715 -0
  384. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  385. package/fesm2015/{ptsecurity-mosaic-toggle.js → ptsecurity-mosaic-toggle.mjs} +12 -23
  386. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -0
  387. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +362 -0
  388. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  389. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +932 -0
  390. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  391. package/fesm2015/ptsecurity-mosaic-tree.mjs +1707 -0
  392. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -0
  393. package/fesm2015/{ptsecurity-mosaic.js → ptsecurity-mosaic.mjs} +1 -1
  394. package/fesm2015/ptsecurity-mosaic.mjs.map +1 -0
  395. package/{fesm2015/ptsecurity-mosaic-autocomplete.js → fesm2020/ptsecurity-mosaic-autocomplete.mjs} +17 -26
  396. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  397. package/{fesm2015/ptsecurity-mosaic-button-toggle.js → fesm2020/ptsecurity-mosaic-button-toggle.mjs} +15 -23
  398. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  399. package/fesm2020/ptsecurity-mosaic-button.mjs +170 -0
  400. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -0
  401. package/fesm2020/ptsecurity-mosaic-card.mjs +113 -0
  402. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -0
  403. package/{fesm2015/ptsecurity-mosaic-checkbox.js → fesm2020/ptsecurity-mosaic-checkbox.mjs} +13 -23
  404. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  405. package/fesm2020/ptsecurity-mosaic-core.mjs +2688 -0
  406. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -0
  407. package/{fesm2015/ptsecurity-mosaic-datepicker.js → fesm2020/ptsecurity-mosaic-datepicker.mjs} +77 -121
  408. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  409. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +939 -0
  410. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  411. package/fesm2020/ptsecurity-mosaic-divider.mjs +61 -0
  412. package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -0
  413. package/{fesm2015/ptsecurity-mosaic-dropdown.js → fesm2020/ptsecurity-mosaic-dropdown.mjs} +29 -52
  414. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  415. package/fesm2020/ptsecurity-mosaic-form-field.mjs +377 -0
  416. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -0
  417. package/fesm2020/ptsecurity-mosaic-icon.mjs +86 -0
  418. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -0
  419. package/{fesm2015/ptsecurity-mosaic-input.js → fesm2020/ptsecurity-mosaic-input.mjs} +20 -20
  420. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -0
  421. package/fesm2020/ptsecurity-mosaic-link.mjs +136 -0
  422. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -0
  423. package/{fesm2015/ptsecurity-mosaic-list.js → fesm2020/ptsecurity-mosaic-list.mjs} +30 -67
  424. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -0
  425. package/{fesm2015/ptsecurity-mosaic-modal.js → fesm2020/ptsecurity-mosaic-modal.mjs} +45 -52
  426. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -0
  427. package/fesm2020/ptsecurity-mosaic-navbar.mjs +1009 -0
  428. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -0
  429. package/fesm2020/ptsecurity-mosaic-popover.mjs +389 -0
  430. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -0
  431. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +76 -0
  432. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  433. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  434. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  435. package/{fesm2015/ptsecurity-mosaic-radio.js → fesm2020/ptsecurity-mosaic-radio.mjs} +13 -22
  436. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -0
  437. package/{fesm2015/ptsecurity-mosaic-select.js → fesm2020/ptsecurity-mosaic-select.mjs} +23 -35
  438. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -0
  439. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +202 -0
  440. package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  441. package/{fesm2015/ptsecurity-mosaic-sidepanel.js → fesm2020/ptsecurity-mosaic-sidepanel.mjs} +32 -37
  442. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  443. package/fesm2020/ptsecurity-mosaic-splitter.mjs +524 -0
  444. package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -0
  445. package/fesm2020/ptsecurity-mosaic-table.mjs +50 -0
  446. package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -0
  447. package/{fesm2015/ptsecurity-mosaic-tabs.js → fesm2020/ptsecurity-mosaic-tabs.mjs} +65 -102
  448. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -0
  449. package/{fesm2015/ptsecurity-mosaic-tags.js → fesm2020/ptsecurity-mosaic-tags.mjs} +28 -47
  450. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -0
  451. package/{fesm2015/ptsecurity-mosaic-textarea.js → fesm2020/ptsecurity-mosaic-textarea.mjs} +8 -8
  452. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -0
  453. package/{fesm2015/ptsecurity-mosaic-timepicker.js → fesm2020/ptsecurity-mosaic-timepicker.mjs} +12 -12
  454. package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  455. package/fesm2020/ptsecurity-mosaic-toggle.mjs +180 -0
  456. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -0
  457. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +354 -0
  458. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  459. package/{fesm2015/ptsecurity-mosaic-tree-select.js → fesm2020/ptsecurity-mosaic-tree-select.mjs} +16 -27
  460. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  461. package/{fesm2015/ptsecurity-mosaic-tree.js → fesm2020/ptsecurity-mosaic-tree.mjs} +59 -100
  462. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -0
  463. package/fesm2020/ptsecurity-mosaic.mjs +4 -0
  464. package/fesm2020/ptsecurity-mosaic.mjs.map +1 -0
  465. package/form-field/README.md +0 -0
  466. package/form-field/package.json +5 -5
  467. package/icon/README.md +0 -0
  468. package/icon/package.json +5 -5
  469. package/input/package.json +5 -5
  470. package/link/README.md +0 -0
  471. package/link/package.json +5 -5
  472. package/list/README.md +0 -0
  473. package/list/package.json +5 -5
  474. package/modal/README.md +34 -0
  475. package/modal/package.json +5 -5
  476. package/navbar/README.md +41 -0
  477. package/navbar/navbar-item.component.d.ts +122 -34
  478. package/navbar/navbar.component.d.ts +37 -9
  479. package/navbar/navbar.module.d.ts +2 -1
  480. package/navbar/package.json +5 -5
  481. package/navbar/vertical-navbar.component.d.ts +15 -26
  482. package/package.json +299 -14
  483. package/popover/README.md +32 -0
  484. package/popover/package.json +5 -5
  485. package/prebuilt-themes/dark-theme.css +1 -1
  486. package/prebuilt-themes/default-theme.css +1 -1
  487. package/progress-bar/README.md +0 -0
  488. package/progress-bar/package.json +5 -5
  489. package/progress-spinner/README.md +0 -0
  490. package/progress-spinner/package.json +5 -5
  491. package/radio/package.json +5 -5
  492. package/schematics/README.md +35 -0
  493. package/schematics/ng-update/data/index.d.ts +1 -0
  494. package/schematics/ng-update/data/index.js +10 -9
  495. package/schematics/ng-update/data/index.js.map +1 -1
  496. package/schematics/ng-update/data/symbol-removal.d.ts +2 -0
  497. package/schematics/ng-update/data/symbol-removal.js +5 -0
  498. package/schematics/ng-update/data/symbol-removal.js.map +1 -0
  499. package/schematics/ng-update/index.js +3 -3
  500. package/schematics/ng-update/index.js.map +1 -1
  501. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +1 -2
  502. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
  503. package/schematics/ng-update/upgrade-data.js +2 -1
  504. package/schematics/ng-update/upgrade-data.js.map +1 -1
  505. package/schematics/tsconfig.lib.json +2 -2
  506. package/select/README.md +0 -0
  507. package/select/package.json +5 -5
  508. package/sidebar/package.json +5 -5
  509. package/sidepanel/package.json +5 -5
  510. package/splitter/package.json +5 -5
  511. package/splitter/splitter.component.d.ts +41 -3
  512. package/splitter/splitter.module.d.ts +1 -1
  513. package/table/README.md +0 -0
  514. package/table/package.json +5 -5
  515. package/tabs/README.md +0 -0
  516. package/tabs/package.json +5 -5
  517. package/tags/README.md +0 -0
  518. package/tags/package.json +5 -5
  519. package/textarea/README.md +0 -0
  520. package/textarea/package.json +5 -5
  521. package/timepicker/README.md +0 -0
  522. package/timepicker/package.json +5 -5
  523. package/toggle/package.json +5 -5
  524. package/tooltip/package.json +5 -5
  525. package/tree/package.json +5 -5
  526. package/tree-select/README.md +0 -0
  527. package/tree-select/package.json +5 -5
  528. package/bundles/ptsecurity-mosaic-autocomplete.umd.js +0 -1160
  529. package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +0 -1
  530. package/bundles/ptsecurity-mosaic-button-toggle.umd.js +0 -755
  531. package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +0 -1
  532. package/bundles/ptsecurity-mosaic-button.umd.js +0 -533
  533. package/bundles/ptsecurity-mosaic-button.umd.js.map +0 -1
  534. package/bundles/ptsecurity-mosaic-card.umd.js +0 -479
  535. package/bundles/ptsecurity-mosaic-card.umd.js.map +0 -1
  536. package/bundles/ptsecurity-mosaic-checkbox.umd.js +0 -762
  537. package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +0 -1
  538. package/bundles/ptsecurity-mosaic-core.umd.js +0 -2843
  539. package/bundles/ptsecurity-mosaic-core.umd.js.map +0 -1
  540. package/bundles/ptsecurity-mosaic-datepicker.umd.js +0 -3355
  541. package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +0 -1
  542. package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1871
  543. package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +0 -1
  544. package/bundles/ptsecurity-mosaic-divider.umd.js +0 -106
  545. package/bundles/ptsecurity-mosaic-divider.umd.js.map +0 -1
  546. package/bundles/ptsecurity-mosaic-dropdown.umd.js +0 -1532
  547. package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +0 -1
  548. package/bundles/ptsecurity-mosaic-form-field.umd.js +0 -788
  549. package/bundles/ptsecurity-mosaic-form-field.umd.js.map +0 -1
  550. package/bundles/ptsecurity-mosaic-icon.umd.js +0 -450
  551. package/bundles/ptsecurity-mosaic-icon.umd.js.map +0 -1
  552. package/bundles/ptsecurity-mosaic-input.umd.js +0 -1008
  553. package/bundles/ptsecurity-mosaic-input.umd.js.map +0 -1
  554. package/bundles/ptsecurity-mosaic-link.umd.js +0 -515
  555. package/bundles/ptsecurity-mosaic-link.umd.js.map +0 -1
  556. package/bundles/ptsecurity-mosaic-list.umd.js +0 -1256
  557. package/bundles/ptsecurity-mosaic-list.umd.js.map +0 -1
  558. package/bundles/ptsecurity-mosaic-modal.umd.js +0 -1312
  559. package/bundles/ptsecurity-mosaic-modal.umd.js.map +0 -1
  560. package/bundles/ptsecurity-mosaic-navbar.umd.js +0 -930
  561. package/bundles/ptsecurity-mosaic-navbar.umd.js.map +0 -1
  562. package/bundles/ptsecurity-mosaic-popover.umd.js +0 -836
  563. package/bundles/ptsecurity-mosaic-popover.umd.js.map +0 -1
  564. package/bundles/ptsecurity-mosaic-progress-bar.umd.js +0 -440
  565. package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +0 -1
  566. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +0 -448
  567. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +0 -1
  568. package/bundles/ptsecurity-mosaic-radio.umd.js +0 -901
  569. package/bundles/ptsecurity-mosaic-radio.umd.js.map +0 -1
  570. package/bundles/ptsecurity-mosaic-select.umd.js +0 -1606
  571. package/bundles/ptsecurity-mosaic-select.umd.js.map +0 -1
  572. package/bundles/ptsecurity-mosaic-sidebar.umd.js +0 -254
  573. package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +0 -1
  574. package/bundles/ptsecurity-mosaic-sidepanel.umd.js +0 -954
  575. package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +0 -1
  576. package/bundles/ptsecurity-mosaic-splitter.umd.js +0 -448
  577. package/bundles/ptsecurity-mosaic-splitter.umd.js.map +0 -1
  578. package/bundles/ptsecurity-mosaic-table.umd.js +0 -81
  579. package/bundles/ptsecurity-mosaic-table.umd.js.map +0 -1
  580. package/bundles/ptsecurity-mosaic-tabs.umd.js +0 -2013
  581. package/bundles/ptsecurity-mosaic-tabs.umd.js.map +0 -1
  582. package/bundles/ptsecurity-mosaic-tags.umd.js +0 -1912
  583. package/bundles/ptsecurity-mosaic-tags.umd.js.map +0 -1
  584. package/bundles/ptsecurity-mosaic-textarea.umd.js +0 -664
  585. package/bundles/ptsecurity-mosaic-textarea.umd.js.map +0 -1
  586. package/bundles/ptsecurity-mosaic-timepicker.umd.js +0 -821
  587. package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +0 -1
  588. package/bundles/ptsecurity-mosaic-toggle.umd.js +0 -557
  589. package/bundles/ptsecurity-mosaic-toggle.umd.js.map +0 -1
  590. package/bundles/ptsecurity-mosaic-tooltip.umd.js +0 -777
  591. package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +0 -1
  592. package/bundles/ptsecurity-mosaic-tree-select.umd.js +0 -1368
  593. package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +0 -1
  594. package/bundles/ptsecurity-mosaic-tree.umd.js +0 -2301
  595. package/bundles/ptsecurity-mosaic-tree.umd.js.map +0 -1
  596. package/bundles/ptsecurity-mosaic.umd.js +0 -11
  597. package/bundles/ptsecurity-mosaic.umd.js.map +0 -1
  598. package/esm2015/autocomplete/autocomplete.component.js +0 -163
  599. package/esm2015/button/button.component.js +0 -129
  600. package/esm2015/button/button.module.js +0 -42
  601. package/esm2015/button-toggle/button-toggle.component.js +0 -370
  602. package/esm2015/card/card.component.js +0 -88
  603. package/esm2015/checkbox/checkbox.js +0 -325
  604. package/esm2015/core/formatters/date/formatter.js +0 -288
  605. package/esm2015/core/formatters/date/templates/en-US.js +0 -280
  606. package/esm2015/core/formatters/date/templates/ru-RU.js +0 -280
  607. package/esm2015/core/formatters/number/formatter.js +0 -99
  608. package/esm2015/core/option/action.js +0 -131
  609. package/esm2015/core/option/optgroup.js +0 -40
  610. package/esm2015/core/option/option.js +0 -262
  611. package/esm2015/core/pop-up/pop-up-trigger.js +0 -241
  612. package/esm2015/core/pop-up/pop-up.js +0 -87
  613. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -45
  614. package/esm2015/datepicker/calendar-body.component.js +0 -114
  615. package/esm2015/datepicker/calendar.component.js +0 -377
  616. package/esm2015/datepicker/datepicker-input.directive.js +0 -885
  617. package/esm2015/datepicker/datepicker-toggle.component.js +0 -94
  618. package/esm2015/datepicker/datepicker.component.js +0 -418
  619. package/esm2015/dropdown/dropdown-item.component.js +0 -149
  620. package/esm2015/dropdown/dropdown-trigger.directive.js +0 -486
  621. package/esm2015/dropdown/dropdown.component.js +0 -302
  622. package/esm2015/form-field/form-field.js +0 -224
  623. package/esm2015/icon/icon.component.js +0 -51
  624. package/esm2015/link/link.component.js +0 -108
  625. package/esm2015/list/list-selection.component.js +0 -716
  626. package/esm2015/list/list.component.js +0 -58
  627. package/esm2015/modal/modal.component.js +0 -508
  628. package/esm2015/navbar/navbar-item.component.js +0 -209
  629. package/esm2015/navbar/navbar.component.js +0 -118
  630. package/esm2015/navbar/navbar.module.js +0 -76
  631. package/esm2015/navbar/vertical-navbar.component.js +0 -140
  632. package/esm2015/popover/popover-confirm.component.js +0 -116
  633. package/esm2015/popover/popover.component.js +0 -262
  634. package/esm2015/progress-bar/progress-bar.component.js +0 -50
  635. package/esm2015/progress-spinner/progress-spinner.component.js +0 -54
  636. package/esm2015/radio/radio.component.js +0 -467
  637. package/esm2015/select/select.component.js +0 -1122
  638. package/esm2015/sidebar/sidebar.component.js +0 -155
  639. package/esm2015/sidepanel/sidepanel-container.component.js +0 -114
  640. package/esm2015/sidepanel/sidepanel.service.js +0 -164
  641. package/esm2015/splitter/splitter.component.js +0 -342
  642. package/esm2015/splitter/splitter.module.js +0 -38
  643. package/esm2015/tabs/paginated-tab-header.js +0 -482
  644. package/esm2015/tabs/tab-body.component.js +0 -186
  645. package/esm2015/tabs/tab-group.component.js +0 -359
  646. package/esm2015/tabs/tab-header.component.js +0 -76
  647. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -118
  648. package/esm2015/tags/tag-list.component.js +0 -732
  649. package/esm2015/tags/tag.component.js +0 -383
  650. package/esm2015/timepicker/timepicker.directive.js +0 -653
  651. package/esm2015/toggle/toggle.component.js +0 -169
  652. package/esm2015/tooltip/tooltip.component.js +0 -299
  653. package/esm2015/tree/padding.directive.js +0 -111
  654. package/esm2015/tree/toggle.js +0 -89
  655. package/esm2015/tree/tree-option.component.js +0 -238
  656. package/esm2015/tree/tree-selection.component.js +0 -541
  657. package/esm2015/tree/tree.js +0 -23
  658. package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +0 -1
  659. package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +0 -1
  660. package/fesm2015/ptsecurity-mosaic-button.js +0 -174
  661. package/fesm2015/ptsecurity-mosaic-button.js.map +0 -1
  662. package/fesm2015/ptsecurity-mosaic-card.js.map +0 -1
  663. package/fesm2015/ptsecurity-mosaic-checkbox.js.map +0 -1
  664. package/fesm2015/ptsecurity-mosaic-core.js.map +0 -1
  665. package/fesm2015/ptsecurity-mosaic-datepicker.js.map +0 -1
  666. package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +0 -1
  667. package/fesm2015/ptsecurity-mosaic-divider.js +0 -68
  668. package/fesm2015/ptsecurity-mosaic-divider.js.map +0 -1
  669. package/fesm2015/ptsecurity-mosaic-dropdown.js.map +0 -1
  670. package/fesm2015/ptsecurity-mosaic-form-field.js +0 -396
  671. package/fesm2015/ptsecurity-mosaic-form-field.js.map +0 -1
  672. package/fesm2015/ptsecurity-mosaic-icon.js +0 -93
  673. package/fesm2015/ptsecurity-mosaic-icon.js.map +0 -1
  674. package/fesm2015/ptsecurity-mosaic-input.js.map +0 -1
  675. package/fesm2015/ptsecurity-mosaic-link.js.map +0 -1
  676. package/fesm2015/ptsecurity-mosaic-list.js.map +0 -1
  677. package/fesm2015/ptsecurity-mosaic-modal.js.map +0 -1
  678. package/fesm2015/ptsecurity-mosaic-navbar.js +0 -539
  679. package/fesm2015/ptsecurity-mosaic-navbar.js.map +0 -1
  680. package/fesm2015/ptsecurity-mosaic-popover.js +0 -406
  681. package/fesm2015/ptsecurity-mosaic-popover.js.map +0 -1
  682. package/fesm2015/ptsecurity-mosaic-progress-bar.js +0 -84
  683. package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +0 -1
  684. package/fesm2015/ptsecurity-mosaic-progress-spinner.js +0 -88
  685. package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +0 -1
  686. package/fesm2015/ptsecurity-mosaic-radio.js.map +0 -1
  687. package/fesm2015/ptsecurity-mosaic-select.js.map +0 -1
  688. package/fesm2015/ptsecurity-mosaic-sidebar.js.map +0 -1
  689. package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +0 -1
  690. package/fesm2015/ptsecurity-mosaic-splitter.js +0 -384
  691. package/fesm2015/ptsecurity-mosaic-splitter.js.map +0 -1
  692. package/fesm2015/ptsecurity-mosaic-table.js.map +0 -1
  693. package/fesm2015/ptsecurity-mosaic-tabs.js.map +0 -1
  694. package/fesm2015/ptsecurity-mosaic-tags.js.map +0 -1
  695. package/fesm2015/ptsecurity-mosaic-textarea.js.map +0 -1
  696. package/fesm2015/ptsecurity-mosaic-timepicker.js.map +0 -1
  697. package/fesm2015/ptsecurity-mosaic-toggle.js.map +0 -1
  698. package/fesm2015/ptsecurity-mosaic-tooltip.js +0 -362
  699. package/fesm2015/ptsecurity-mosaic-tooltip.js.map +0 -1
  700. package/fesm2015/ptsecurity-mosaic-tree-select.js.map +0 -1
  701. package/fesm2015/ptsecurity-mosaic-tree.js.map +0 -1
  702. package/fesm2015/ptsecurity-mosaic.js.map +0 -1
@@ -1,1368 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/common'), require('@angular/core'), require('@ptsecurity/mosaic/core'), require('@ptsecurity/mosaic/icon'), require('@ptsecurity/mosaic/tags'), require('@ptsecurity/mosaic/tree'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/forms'), require('@ptsecurity/cdk/keycodes'), require('@ptsecurity/mosaic/form-field'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/bidi')) :
3
- typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/tree-select', ['exports', '@angular/cdk/overlay', '@angular/common', '@angular/core', '@ptsecurity/mosaic/core', '@ptsecurity/mosaic/icon', '@ptsecurity/mosaic/tags', '@ptsecurity/mosaic/tree', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/forms', '@ptsecurity/cdk/keycodes', '@ptsecurity/mosaic/form-field', 'rxjs', 'rxjs/operators', '@angular/cdk/bidi'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic["tree-select"] = {}), global.ng.cdk.overlay, global.ng.common, global.ng.core, global.ptsecurity.mosaic.core, global.ptsecurity.mosaic.icon, global.ptsecurity.mosaic.tags, global.ptsecurity.mosaic.tree, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.forms, global.mc.cdk.keycodes, global.ptsecurity.mosaic["form-field"], global.rxjs, global.rxjs.operators, global.ng.cdk.bidi));
5
- })(this, (function (exports, i1, i8, i0, i2, i7, i6, tree, coercion, collections, i4, keycodes, i5, rxjs, operators, i3) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
26
- var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
27
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
30
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
31
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
33
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
34
-
35
- /*! *****************************************************************************
36
- Copyright (c) Microsoft Corporation.
37
-
38
- Permission to use, copy, modify, and/or distribute this software for any
39
- purpose with or without fee is hereby granted.
40
-
41
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
42
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
- PERFORMANCE OF THIS SOFTWARE.
48
- ***************************************************************************** */
49
- /* global Reflect, Promise */
50
- var extendStatics = function (d, b) {
51
- extendStatics = Object.setPrototypeOf ||
52
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53
- function (d, b) { for (var p in b)
54
- if (Object.prototype.hasOwnProperty.call(b, p))
55
- d[p] = b[p]; };
56
- return extendStatics(d, b);
57
- };
58
- function __extends(d, b) {
59
- if (typeof b !== "function" && b !== null)
60
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61
- extendStatics(d, b);
62
- function __() { this.constructor = d; }
63
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
64
- }
65
- var __assign = function () {
66
- __assign = Object.assign || function __assign(t) {
67
- for (var s, i = 1, n = arguments.length; i < n; i++) {
68
- s = arguments[i];
69
- for (var p in s)
70
- if (Object.prototype.hasOwnProperty.call(s, p))
71
- t[p] = s[p];
72
- }
73
- return t;
74
- };
75
- return __assign.apply(this, arguments);
76
- };
77
- function __rest(s, e) {
78
- var t = {};
79
- for (var p in s)
80
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
81
- t[p] = s[p];
82
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
83
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
85
- t[p[i]] = s[p[i]];
86
- }
87
- return t;
88
- }
89
- function __decorate(decorators, target, key, desc) {
90
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
92
- r = Reflect.decorate(decorators, target, key, desc);
93
- else
94
- for (var i = decorators.length - 1; i >= 0; i--)
95
- if (d = decorators[i])
96
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
97
- return c > 3 && r && Object.defineProperty(target, key, r), r;
98
- }
99
- function __param(paramIndex, decorator) {
100
- return function (target, key) { decorator(target, key, paramIndex); };
101
- }
102
- function __metadata(metadataKey, metadataValue) {
103
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
104
- return Reflect.metadata(metadataKey, metadataValue);
105
- }
106
- function __awaiter(thisArg, _arguments, P, generator) {
107
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
108
- return new (P || (P = Promise))(function (resolve, reject) {
109
- function fulfilled(value) { try {
110
- step(generator.next(value));
111
- }
112
- catch (e) {
113
- reject(e);
114
- } }
115
- function rejected(value) { try {
116
- step(generator["throw"](value));
117
- }
118
- catch (e) {
119
- reject(e);
120
- } }
121
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
122
- step((generator = generator.apply(thisArg, _arguments || [])).next());
123
- });
124
- }
125
- function __generator(thisArg, body) {
126
- var _ = { label: 0, sent: function () { if (t[0] & 1)
127
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
128
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
129
- function verb(n) { return function (v) { return step([n, v]); }; }
130
- function step(op) {
131
- if (f)
132
- throw new TypeError("Generator is already executing.");
133
- while (_)
134
- try {
135
- 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)
136
- return t;
137
- if (y = 0, t)
138
- op = [op[0] & 2, t.value];
139
- switch (op[0]) {
140
- case 0:
141
- case 1:
142
- t = op;
143
- break;
144
- case 4:
145
- _.label++;
146
- return { value: op[1], done: false };
147
- case 5:
148
- _.label++;
149
- y = op[1];
150
- op = [0];
151
- continue;
152
- case 7:
153
- op = _.ops.pop();
154
- _.trys.pop();
155
- continue;
156
- default:
157
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
158
- _ = 0;
159
- continue;
160
- }
161
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
162
- _.label = op[1];
163
- break;
164
- }
165
- if (op[0] === 6 && _.label < t[1]) {
166
- _.label = t[1];
167
- t = op;
168
- break;
169
- }
170
- if (t && _.label < t[2]) {
171
- _.label = t[2];
172
- _.ops.push(op);
173
- break;
174
- }
175
- if (t[2])
176
- _.ops.pop();
177
- _.trys.pop();
178
- continue;
179
- }
180
- op = body.call(thisArg, _);
181
- }
182
- catch (e) {
183
- op = [6, e];
184
- y = 0;
185
- }
186
- finally {
187
- f = t = 0;
188
- }
189
- if (op[0] & 5)
190
- throw op[1];
191
- return { value: op[0] ? op[1] : void 0, done: true };
192
- }
193
- }
194
- var __createBinding = Object.create ? (function (o, m, k, k2) {
195
- if (k2 === undefined)
196
- k2 = k;
197
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
198
- }) : (function (o, m, k, k2) {
199
- if (k2 === undefined)
200
- k2 = k;
201
- o[k2] = m[k];
202
- });
203
- function __exportStar(m, o) {
204
- for (var p in m)
205
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
206
- __createBinding(o, m, p);
207
- }
208
- function __values(o) {
209
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
210
- if (m)
211
- return m.call(o);
212
- if (o && typeof o.length === "number")
213
- return {
214
- next: function () {
215
- if (o && i >= o.length)
216
- o = void 0;
217
- return { value: o && o[i++], done: !o };
218
- }
219
- };
220
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
221
- }
222
- function __read(o, n) {
223
- var m = typeof Symbol === "function" && o[Symbol.iterator];
224
- if (!m)
225
- return o;
226
- var i = m.call(o), r, ar = [], e;
227
- try {
228
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
229
- ar.push(r.value);
230
- }
231
- catch (error) {
232
- e = { error: error };
233
- }
234
- finally {
235
- try {
236
- if (r && !r.done && (m = i["return"]))
237
- m.call(i);
238
- }
239
- finally {
240
- if (e)
241
- throw e.error;
242
- }
243
- }
244
- return ar;
245
- }
246
- /** @deprecated */
247
- function __spread() {
248
- for (var ar = [], i = 0; i < arguments.length; i++)
249
- ar = ar.concat(__read(arguments[i]));
250
- return ar;
251
- }
252
- /** @deprecated */
253
- function __spreadArrays() {
254
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
255
- s += arguments[i].length;
256
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
257
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
258
- r[k] = a[j];
259
- return r;
260
- }
261
- function __spreadArray(to, from, pack) {
262
- if (pack || arguments.length === 2)
263
- for (var i = 0, l = from.length, ar; i < l; i++) {
264
- if (ar || !(i in from)) {
265
- if (!ar)
266
- ar = Array.prototype.slice.call(from, 0, i);
267
- ar[i] = from[i];
268
- }
269
- }
270
- return to.concat(ar || Array.prototype.slice.call(from));
271
- }
272
- function __await(v) {
273
- return this instanceof __await ? (this.v = v, this) : new __await(v);
274
- }
275
- function __asyncGenerator(thisArg, _arguments, generator) {
276
- if (!Symbol.asyncIterator)
277
- throw new TypeError("Symbol.asyncIterator is not defined.");
278
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
279
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
280
- function verb(n) { if (g[n])
281
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
282
- function resume(n, v) { try {
283
- step(g[n](v));
284
- }
285
- catch (e) {
286
- settle(q[0][3], e);
287
- } }
288
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
289
- function fulfill(value) { resume("next", value); }
290
- function reject(value) { resume("throw", value); }
291
- function settle(f, v) { if (f(v), q.shift(), q.length)
292
- resume(q[0][0], q[0][1]); }
293
- }
294
- function __asyncDelegator(o) {
295
- var i, p;
296
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
297
- 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; }
298
- }
299
- function __asyncValues(o) {
300
- if (!Symbol.asyncIterator)
301
- throw new TypeError("Symbol.asyncIterator is not defined.");
302
- var m = o[Symbol.asyncIterator], i;
303
- 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);
304
- 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); }); }; }
305
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
306
- }
307
- function __makeTemplateObject(cooked, raw) {
308
- if (Object.defineProperty) {
309
- Object.defineProperty(cooked, "raw", { value: raw });
310
- }
311
- else {
312
- cooked.raw = raw;
313
- }
314
- return cooked;
315
- }
316
- ;
317
- var __setModuleDefault = Object.create ? (function (o, v) {
318
- Object.defineProperty(o, "default", { enumerable: true, value: v });
319
- }) : function (o, v) {
320
- o["default"] = v;
321
- };
322
- function __importStar(mod) {
323
- if (mod && mod.__esModule)
324
- return mod;
325
- var result = {};
326
- if (mod != null)
327
- for (var k in mod)
328
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
329
- __createBinding(result, mod, k);
330
- __setModuleDefault(result, mod);
331
- return result;
332
- }
333
- function __importDefault(mod) {
334
- return (mod && mod.__esModule) ? mod : { default: mod };
335
- }
336
- function __classPrivateFieldGet(receiver, state, kind, f) {
337
- if (kind === "a" && !f)
338
- throw new TypeError("Private accessor was defined without a getter");
339
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
340
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
341
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
342
- }
343
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
344
- if (kind === "m")
345
- throw new TypeError("Private method is not writable");
346
- if (kind === "a" && !f)
347
- throw new TypeError("Private accessor was defined without a setter");
348
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
349
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
350
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
351
- }
352
-
353
- var nextUniqueId = 0;
354
- /** Change event object that is emitted when the select value has changed. */
355
- var McTreeSelectChange = /** @class */ (function () {
356
- function McTreeSelectChange(source, value, isUserInput) {
357
- if (isUserInput === void 0) { isUserInput = false; }
358
- this.source = source;
359
- this.value = value;
360
- this.isUserInput = isUserInput;
361
- }
362
- return McTreeSelectChange;
363
- }());
364
- var McTreeSelectTrigger = /** @class */ (function () {
365
- function McTreeSelectTrigger() {
366
- }
367
- return McTreeSelectTrigger;
368
- }());
369
- /** @nocollapse */ McTreeSelectTrigger.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTreeSelectTrigger, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
370
- /** @nocollapse */ McTreeSelectTrigger.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTreeSelectTrigger, selector: "mc-tree-select-trigger", ngImport: i0__namespace });
371
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTreeSelectTrigger, decorators: [{
372
- type: i0.Directive,
373
- args: [{ selector: 'mc-tree-select-trigger' }]
374
- }] });
375
- var McTreeSelectBase = /** @class */ (function () {
376
- function McTreeSelectBase(elementRef, defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
377
- this.elementRef = elementRef;
378
- this.defaultErrorStateMatcher = defaultErrorStateMatcher;
379
- this.parentForm = parentForm;
380
- this.parentFormGroup = parentFormGroup;
381
- this.ngControl = ngControl;
382
- }
383
- return McTreeSelectBase;
384
- }());
385
- // tslint:disable-next-line:naming-convention
386
- var McTreeSelectMixinBase = i2.mixinTabIndex(i2.mixinDisabled(i2.mixinErrorState(McTreeSelectBase)));
387
- var McTreeSelect = /** @class */ (function (_super) {
388
- __extends(McTreeSelect, _super);
389
- function McTreeSelect(elementRef, changeDetectorRef, viewportRuler, ngZone, renderer, defaultErrorStateMatcher, scrollStrategyFactory, rawValidators, mcValidation, dir, parentForm, parentFormGroup, parentFormField, ngControl, ngModel, formControlName) {
390
- var _this = _super.call(this, elementRef, defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) || this;
391
- _this.changeDetectorRef = changeDetectorRef;
392
- _this.viewportRuler = viewportRuler;
393
- _this.ngZone = ngZone;
394
- _this.renderer = renderer;
395
- _this.scrollStrategyFactory = scrollStrategyFactory;
396
- _this.rawValidators = rawValidators;
397
- _this.mcValidation = mcValidation;
398
- _this.dir = dir;
399
- _this.parentFormField = parentFormField;
400
- _this.ngModel = ngModel;
401
- _this.formControlName = formControlName;
402
- /** A name for this control that can be used by `mc-form-field`. */
403
- _this.controlType = 'select';
404
- _this.hiddenItems = 0;
405
- /** The cached font-size of the trigger element. */
406
- _this.triggerFontSize = 0;
407
- /** The value of the select panel's transform-origin property. */
408
- _this.transformOrigin = 'top';
409
- /** Emits when the panel element is finished transforming in. */
410
- _this.panelDoneAnimatingStream = new rxjs.Subject();
411
- /** Strategy that will be used to handle scrolling while the select panel is open. */
412
- _this.scrollStrategy = _this.scrollStrategyFactory();
413
- /**
414
- * The y-offset of the overlay panel in relation to the trigger's top start corner.
415
- * This must be adjusted to align the selected option text over the trigger text.
416
- * when the panel opens. Will change based on the y-position of the selected option.
417
- */
418
- _this.offsetY = 0;
419
- /**
420
- * This position config ensures that the top "start" corner of the overlay
421
- * is aligned with with the top "start" of the origin by default (overlapping
422
- * the trigger completely). If the panel cannot fit below the trigger, it
423
- * will fall back to a position above the trigger.
424
- */
425
- _this.positions = [
426
- {
427
- originX: 'start',
428
- originY: 'bottom',
429
- overlayX: 'start',
430
- overlayY: 'top'
431
- },
432
- {
433
- originX: 'start',
434
- originY: 'top',
435
- overlayX: 'start',
436
- overlayY: 'bottom'
437
- }
438
- ];
439
- _this.hiddenItemsText = '...ещё';
440
- /** Event emitted when the select panel has been toggled. */
441
- _this.openedChange = new i0.EventEmitter();
442
- /** Event emitted when the select has been opened. */
443
- _this.openedStream = _this.openedChange.pipe(operators.filter(function (o) { return o; }), operators.map(function () { }));
444
- /** Event emitted when the select has been closed. */
445
- _this.closedStream = _this.openedChange.pipe(operators.filter(function (o) { return !o; }), operators.map(function () { }));
446
- /** Event emitted when the selected value has been changed by the user. */
447
- _this.selectionChange = new i0.EventEmitter();
448
- /**
449
- * Event that emits whenever the raw value of the select changes. This is here primarily
450
- * to facilitate the two-way binding for the `value` input.
451
- * @docs-private
452
- */
453
- _this.valueChange = new i0.EventEmitter();
454
- _this.backdropClass = 'cdk-overlay-transparent-backdrop';
455
- /** Combined stream of all of the child options' change events. */
456
- _this.optionSelectionChanges = rxjs.defer(function () {
457
- if (_this.options) {
458
- return _this.options.changes.pipe(operators.startWith(_this.options), operators.switchMap(function () { return rxjs.merge.apply(void 0, __spreadArray([], __read(_this.options.map(function (option) { return option.onSelectionChange; })))); }));
459
- }
460
- return _this.ngZone.onStable
461
- .asObservable()
462
- .pipe(operators.take(1), operators.switchMap(function () { return _this.optionSelectionChanges; }));
463
- });
464
- _this._required = false;
465
- _this._multiple = false;
466
- _this._autoSelect = true;
467
- _this._value = null;
468
- _this._hasBackdrop = false;
469
- _this._focused = false;
470
- _this.closeSubscription = rxjs.Subscription.EMPTY;
471
- _this._panelOpen = false;
472
- /** The scroll position of the overlay panel, calculated to center the selected option. */
473
- _this.scrollTop = 0;
474
- /** Unique id for this input. */
475
- _this.uid = "mc-select-" + nextUniqueId++;
476
- /** Emits whenever the component is destroyed. */
477
- _this.destroy = new rxjs.Subject();
478
- /** `View -> model callback called when value changes` */
479
- _this.onChange = function () { };
480
- /** `View -> model callback called when select has been touched` */
481
- _this.onTouched = function () { };
482
- /** Comparison function to specify which option is displayed. Defaults to object equality. */
483
- _this._compareWith = function (o1, o2) { return o1 === o2; };
484
- if (_this.ngControl) {
485
- // Note: we provide the value accessor through here, instead of
486
- // the `providers` to avoid running into a circular import.
487
- _this.ngControl.valueAccessor = _this;
488
- }
489
- // Force setter to be called in case id was not specified.
490
- _this.id = _this.id;
491
- return _this;
492
- }
493
- Object.defineProperty(McTreeSelect.prototype, "placeholder", {
494
- get: function () {
495
- return this._placeholder;
496
- },
497
- set: function (value) {
498
- this._placeholder = value;
499
- this.stateChanges.next();
500
- },
501
- enumerable: false,
502
- configurable: true
503
- });
504
- Object.defineProperty(McTreeSelect.prototype, "required", {
505
- get: function () {
506
- return this._required;
507
- },
508
- set: function (value) {
509
- this._required = coercion.coerceBooleanProperty(value);
510
- this.stateChanges.next();
511
- },
512
- enumerable: false,
513
- configurable: true
514
- });
515
- Object.defineProperty(McTreeSelect.prototype, "multiple", {
516
- get: function () {
517
- return this._multiple;
518
- },
519
- set: function (value) {
520
- if (this.selectionModel) {
521
- throw i2.getMcSelectDynamicMultipleError();
522
- }
523
- this._multiple = coercion.coerceBooleanProperty(value);
524
- },
525
- enumerable: false,
526
- configurable: true
527
- });
528
- Object.defineProperty(McTreeSelect.prototype, "autoSelect", {
529
- get: function () {
530
- if (this.multiple) {
531
- return false;
532
- }
533
- return this._autoSelect;
534
- },
535
- set: function (value) {
536
- this._autoSelect = coercion.coerceBooleanProperty(value);
537
- },
538
- enumerable: false,
539
- configurable: true
540
- });
541
- Object.defineProperty(McTreeSelect.prototype, "compareWith", {
542
- /**
543
- * Function to compare the option values with the selected values. The first argument
544
- * is a value from an option. The second is a value from the selection. A boolean
545
- * should be returned.
546
- */
547
- get: function () {
548
- return this._compareWith;
549
- },
550
- set: function (fn) {
551
- /* tslint:disable-next-line:strict-type-predicates */
552
- if (typeof fn !== 'function') {
553
- throw i2.getMcSelectNonFunctionValueError();
554
- }
555
- this._compareWith = fn;
556
- if (this.selectionModel) {
557
- // A different comparator means the selection could change.
558
- this.initializeSelection();
559
- }
560
- },
561
- enumerable: false,
562
- configurable: true
563
- });
564
- Object.defineProperty(McTreeSelect.prototype, "value", {
565
- get: function () {
566
- return this.multiple ? this.tree.getSelectedValues() : this.tree.getSelectedValues()[0];
567
- },
568
- enumerable: false,
569
- configurable: true
570
- });
571
- Object.defineProperty(McTreeSelect.prototype, "id", {
572
- get: function () {
573
- return this._id;
574
- },
575
- set: function (value) {
576
- this._id = value || this.uid;
577
- this.stateChanges.next();
578
- },
579
- enumerable: false,
580
- configurable: true
581
- });
582
- Object.defineProperty(McTreeSelect.prototype, "hasBackdrop", {
583
- get: function () {
584
- return this._hasBackdrop;
585
- },
586
- set: function (value) {
587
- this._hasBackdrop = coercion.coerceBooleanProperty(value);
588
- },
589
- enumerable: false,
590
- configurable: true
591
- });
592
- Object.defineProperty(McTreeSelect.prototype, "focused", {
593
- /** Whether the select is focused. */
594
- get: function () {
595
- return this._focused || this._panelOpen;
596
- },
597
- set: function (value) {
598
- this._focused = value;
599
- },
600
- enumerable: false,
601
- configurable: true
602
- });
603
- Object.defineProperty(McTreeSelect.prototype, "panelOpen", {
604
- get: function () {
605
- return this._panelOpen;
606
- },
607
- enumerable: false,
608
- configurable: true
609
- });
610
- Object.defineProperty(McTreeSelect.prototype, "canShowCleaner", {
611
- get: function () {
612
- return this.cleaner && this.selectionModel.hasValue();
613
- },
614
- enumerable: false,
615
- configurable: true
616
- });
617
- McTreeSelect.prototype.ngOnInit = function () {
618
- var _this = this;
619
- this.stateChanges.next();
620
- // We need `distinctUntilChanged` here, because some browsers will
621
- // fire the animation end event twice for the same animation. See:
622
- // https://github.com/angular/angular/issues/24084
623
- this.panelDoneAnimatingStream
624
- .pipe(operators.distinctUntilChanged(), operators.takeUntil(this.destroy))
625
- .subscribe(function () {
626
- if (_this.panelOpen) {
627
- _this.scrollTop = 0;
628
- _this.openedChange.emit(true);
629
- }
630
- else {
631
- _this.openedChange.emit(false);
632
- _this.overlayDir.offsetX = 0;
633
- _this.changeDetectorRef.markForCheck();
634
- }
635
- });
636
- };
637
- McTreeSelect.prototype.ngAfterContentInit = function () {
638
- var _this = this;
639
- if (!this.tree) {
640
- return;
641
- }
642
- if (this.mcValidation.useValidation) {
643
- i2.setMosaicValidation(this);
644
- }
645
- this.tree.resetFocusedItemOnBlur = false;
646
- this.selectionModel = this.tree.selectionModel = new collections.SelectionModel(this.multiple);
647
- this.tree.ngAfterContentInit();
648
- this.initKeyManager();
649
- this.options = this.tree.renderedOptions;
650
- this.tree.autoSelect = this.autoSelect;
651
- if (this.tree.multipleMode === null) {
652
- this.tree.multipleMode = this.multiple ? i2.MultipleMode.CHECKBOX : null;
653
- }
654
- if (this.multiple) {
655
- this.tree.noUnselectLast = false;
656
- }
657
- if (this.tempValues) {
658
- this.setSelectionByValue(this.tempValues);
659
- this.tempValues = null;
660
- }
661
- this.optionSelectionChanges
662
- .pipe(operators.takeUntil(this.destroy))
663
- .subscribe(function (event) {
664
- if (!_this.multiple && _this.panelOpen && event.isUserInput) {
665
- _this.close();
666
- }
667
- });
668
- this.tree.selectionChange
669
- .pipe(operators.takeUntil(this.destroy))
670
- .subscribe(function (event) {
671
- _this.onChange(_this.selectedValues);
672
- _this.selectionChange.emit(new McTreeSelectChange(_this, event.option));
673
- });
674
- this.selectionModel.changed
675
- .pipe(operators.takeUntil(this.destroy))
676
- .subscribe(function (event) {
677
- if (event.added.length) {
678
- _this.tree.keyManager.setFocusOrigin('program');
679
- _this.tree.keyManager.setActiveItem(_this.options.find(function (option) { return option.data === event.added[0]; }));
680
- }
681
- });
682
- };
683
- McTreeSelect.prototype.ngAfterViewInit = function () {
684
- var _this = this;
685
- if (!this.tree) {
686
- return;
687
- }
688
- this.tags.changes
689
- .subscribe(function () {
690
- setTimeout(function () { return _this.calculateHiddenItems(); }, 0);
691
- });
692
- setTimeout(function () { return _this.calculateHiddenItems(); }, 0);
693
- };
694
- McTreeSelect.prototype.ngDoCheck = function () {
695
- if (this.ngControl) {
696
- this.updateErrorState();
697
- }
698
- };
699
- McTreeSelect.prototype.ngOnChanges = function (changes) {
700
- // Updating the disabled state is handled by `mixinDisabled`, but we need to additionally let
701
- // the parent form field know to run change detection when the disabled state changes.
702
- if (changes.disabled) {
703
- this.stateChanges.next();
704
- }
705
- };
706
- McTreeSelect.prototype.ngOnDestroy = function () {
707
- this.destroy.next();
708
- this.destroy.complete();
709
- this.stateChanges.complete();
710
- this.closeSubscription.unsubscribe();
711
- };
712
- McTreeSelect.prototype.hiddenItemsTextFormatter = function (hiddenItemsText, hiddenItems) {
713
- return hiddenItemsText + " " + hiddenItems;
714
- };
715
- McTreeSelect.prototype.clearValue = function ($event) {
716
- $event.stopPropagation();
717
- this.selectionModel.clear();
718
- this.tree.keyManager.setActiveItem(-1);
719
- this.setSelectionByValue([]);
720
- this.onChange(this.selectedValues);
721
- };
722
- McTreeSelect.prototype.toggle = function () {
723
- if (this.panelOpen) {
724
- this.close();
725
- }
726
- else {
727
- this.open();
728
- }
729
- };
730
- McTreeSelect.prototype.open = function () {
731
- var _this = this;
732
- if (this.disabled || !this.options || !this.options.length || this._panelOpen) {
733
- return;
734
- }
735
- this.triggerRect = this.trigger.nativeElement.getBoundingClientRect();
736
- // Note: The computed font-size will be a string pixel value (e.g. "16px").
737
- // `parseInt` ignores the trailing 'px' and converts this to a number.
738
- this.triggerFontSize = parseInt(getComputedStyle(this.trigger.nativeElement)['font-size']);
739
- this._panelOpen = true;
740
- setTimeout(function () { return _this.highlightCorrectOption(); });
741
- this.changeDetectorRef.markForCheck();
742
- // Set the font size on the panel element once it exists.
743
- this.ngZone.onStable.asObservable()
744
- .pipe(operators.take(1))
745
- .subscribe(function () {
746
- if (_this.triggerFontSize && _this.overlayDir.overlayRef && _this.overlayDir.overlayRef.overlayElement) {
747
- _this.overlayDir.overlayRef.overlayElement.style.fontSize = _this.triggerFontSize + "px";
748
- }
749
- });
750
- };
751
- /** Closes the overlay panel and focuses the host element. */
752
- McTreeSelect.prototype.close = function () {
753
- var _this = this;
754
- if (!this._panelOpen) {
755
- return;
756
- }
757
- this._panelOpen = false;
758
- this.changeDetectorRef.markForCheck();
759
- this.onTouched();
760
- setTimeout(function () { return _this.focus(); }, 0);
761
- };
762
- /**
763
- * Sets the select's value. Part of the ControlValueAccessor interface
764
- * required to integrate with Angular's core forms API.
765
- *
766
- * @param value New value to be written to the model.
767
- */
768
- McTreeSelect.prototype.writeValue = function (value) {
769
- if (this.tree) {
770
- this.setSelectionByValue(value);
771
- }
772
- else {
773
- this.tempValues = value;
774
- }
775
- };
776
- /**
777
- * Saves a callback function to be invoked when the select's value
778
- * changes from user input. Part of the ControlValueAccessor interface
779
- * required to integrate with Angular's core forms API.
780
- *
781
- * @param fn Callback to be triggered when the value changes.
782
- */
783
- McTreeSelect.prototype.registerOnChange = function (fn) {
784
- this.onChange = fn;
785
- };
786
- /**
787
- * Saves a callback function to be invoked when the select is blurred
788
- * by the user. Part of the ControlValueAccessor interface required
789
- * to integrate with Angular's core forms API.
790
- *
791
- * @param fn Callback to be triggered when the component has been touched.
792
- */
793
- McTreeSelect.prototype.registerOnTouched = function (fn) {
794
- this.onTouched = fn;
795
- };
796
- /**
797
- * Disables the select. Part of the ControlValueAccessor interface required
798
- * to integrate with Angular's core forms API.
799
- *
800
- * @param isDisabled Sets whether the component is disabled.
801
- */
802
- McTreeSelect.prototype.setDisabledState = function (isDisabled) {
803
- this.disabled = isDisabled;
804
- this.changeDetectorRef.markForCheck();
805
- this.stateChanges.next();
806
- };
807
- Object.defineProperty(McTreeSelect.prototype, "selected", {
808
- get: function () {
809
- return this.multiple ? this.selectionModel.selected : this.selectionModel.selected[0];
810
- },
811
- enumerable: false,
812
- configurable: true
813
- });
814
- Object.defineProperty(McTreeSelect.prototype, "selectedValues", {
815
- get: function () {
816
- var _this = this;
817
- var selectedValues = this.selectionModel.selected.map(function (value) { return _this.tree.treeControl.getValue(value); });
818
- return this.multiple ? selectedValues : selectedValues[0];
819
- },
820
- enumerable: false,
821
- configurable: true
822
- });
823
- Object.defineProperty(McTreeSelect.prototype, "triggerValue", {
824
- get: function () {
825
- if (this.empty) {
826
- return '';
827
- }
828
- return this.tree.treeControl.getViewValue(this.selected);
829
- },
830
- enumerable: false,
831
- configurable: true
832
- });
833
- Object.defineProperty(McTreeSelect.prototype, "triggerValues", {
834
- get: function () {
835
- var _this = this;
836
- if (this.empty) {
837
- return [];
838
- }
839
- return this.selectedValues
840
- .map(function (value) { return _this.tree.renderedOptions.find(function (option) { return option.value === value; }); })
841
- .filter(function (option) { return option; });
842
- },
843
- enumerable: false,
844
- configurable: true
845
- });
846
- Object.defineProperty(McTreeSelect.prototype, "empty", {
847
- get: function () {
848
- return !this.selectionModel || this.selectionModel.isEmpty();
849
- },
850
- enumerable: false,
851
- configurable: true
852
- });
853
- McTreeSelect.prototype.isRtl = function () {
854
- return this.dir ? this.dir.value === 'rtl' : false;
855
- };
856
- McTreeSelect.prototype.handleKeydown = function (event) {
857
- if (!this.disabled) {
858
- if (this.panelOpen) {
859
- this.handleOpenKeydown(event);
860
- }
861
- else {
862
- this.handleClosedKeydown(event);
863
- }
864
- }
865
- };
866
- McTreeSelect.prototype.onFocus = function () {
867
- if (!this.disabled) {
868
- this._focused = true;
869
- this.stateChanges.next();
870
- }
871
- };
872
- /**
873
- * Calls the touched callback only if the panel is closed. Otherwise, the trigger will
874
- * "blur" to the panel when it opens, causing a false positive.
875
- */
876
- McTreeSelect.prototype.onBlur = function () {
877
- this._focused = false;
878
- if (!this.disabled && !this.panelOpen) {
879
- this.onTouched();
880
- this.changeDetectorRef.markForCheck();
881
- this.stateChanges.next();
882
- }
883
- };
884
- /** Callback that is invoked when the overlay panel has been attached. */
885
- McTreeSelect.prototype.onAttached = function () {
886
- var _this = this;
887
- this.overlayDir.positionChange
888
- .pipe(operators.take(1))
889
- .subscribe(function () {
890
- _this.changeDetectorRef.detectChanges();
891
- _this.calculateOverlayOffsetX();
892
- _this.panel.nativeElement.scrollTop = _this.scrollTop;
893
- _this.tree.updateScrollSize();
894
- });
895
- this.closeSubscription = this.closingActions()
896
- .subscribe(function () { return _this.close(); });
897
- };
898
- /** Returns the theme to be used on the panel. */
899
- McTreeSelect.prototype.getPanelTheme = function () {
900
- return this.parentFormField ? "mc-" + this.parentFormField.color : '';
901
- };
902
- McTreeSelect.prototype.focus = function () {
903
- this.elementRef.nativeElement.focus();
904
- };
905
- /**
906
- * Implemented as part of McFormFieldControl.
907
- * @docs-private
908
- */
909
- McTreeSelect.prototype.onContainerClick = function () {
910
- this.focus();
911
- };
912
- /** Invoked when an option is clicked. */
913
- McTreeSelect.prototype.onRemoveSelectedOption = function (selectedOption, $event) {
914
- var _this = this;
915
- $event.stopPropagation();
916
- this.selectionModel
917
- .deselect(this.selected.find(function (value) { return _this.tree.treeControl.getValue(value) === selectedOption.value; }));
918
- this.onChange(this.selectedValues);
919
- };
920
- McTreeSelect.prototype.calculateHiddenItems = function () {
921
- var _this = this;
922
- if (this.customTrigger || this.empty || !this.multiple) {
923
- return;
924
- }
925
- var visibleItems = 0;
926
- var totalItemsWidth = this.getTotalItemsWidthInMatcher();
927
- var totalVisibleItemsWidth = 0;
928
- this.tags.forEach(function (tag) {
929
- if (tag.nativeElement.offsetTop < tag.nativeElement.offsetHeight) {
930
- totalVisibleItemsWidth += _this.getItemWidth(tag.nativeElement);
931
- visibleItems++;
932
- }
933
- });
934
- this.hiddenItems = this.selectionModel.selected.length - visibleItems;
935
- if (this.hiddenItems) {
936
- var itemsCounter = this.trigger.nativeElement.querySelector('.mc-tree-select__match-hidden-text');
937
- var matcherList = this.trigger.nativeElement.querySelector('.mc-tree-select__match-list');
938
- var itemsCounterShowed = itemsCounter.offsetTop < itemsCounter.offsetHeight;
939
- // const itemsCounterWidth: number = itemsCounter.getBoundingClientRect().width;
940
- var itemsCounterWidth = 86;
941
- var matcherListWidth = matcherList.getBoundingClientRect().width;
942
- var matcherWidth = matcherListWidth + itemsCounterWidth;
943
- if (itemsCounterShowed && (totalItemsWidth < matcherWidth)) {
944
- this.hiddenItems = 0;
945
- }
946
- if (totalVisibleItemsWidth === matcherListWidth ||
947
- (totalVisibleItemsWidth + itemsCounterWidth) < matcherListWidth) {
948
- this.changeDetectorRef.markForCheck();
949
- return;
950
- }
951
- else if (!itemsCounterShowed && (totalItemsWidth + itemsCounterWidth) > matcherWidth) {
952
- this.hiddenItems++;
953
- }
954
- }
955
- this.changeDetectorRef.markForCheck();
956
- };
957
- McTreeSelect.prototype.closingActions = function () {
958
- var backdrop = this.overlayDir.overlayRef.backdropClick();
959
- var outsidePointerEvents = this.overlayDir.overlayRef.outsidePointerEvents();
960
- var detachments = this.overlayDir.overlayRef.detachments();
961
- return rxjs.merge(backdrop, outsidePointerEvents, detachments);
962
- };
963
- McTreeSelect.prototype.getTotalItemsWidthInMatcher = function () {
964
- var _this = this;
965
- var triggerClone = this.trigger.nativeElement.cloneNode(true);
966
- triggerClone.querySelector('.mc-tree-select__match-hidden-text').remove();
967
- this.renderer.setStyle(triggerClone, 'position', 'absolute');
968
- this.renderer.setStyle(triggerClone, 'visibility', 'hidden');
969
- this.renderer.setStyle(triggerClone, 'top', '-100%');
970
- this.renderer.setStyle(triggerClone, 'left', '0');
971
- this.renderer.appendChild(this.trigger.nativeElement, triggerClone);
972
- var totalItemsWidth = 0;
973
- triggerClone.querySelectorAll('mc-tag').forEach(function (item) {
974
- totalItemsWidth += _this.getItemWidth(item);
975
- });
976
- triggerClone.remove();
977
- return totalItemsWidth;
978
- };
979
- McTreeSelect.prototype.getItemWidth = function (element) {
980
- var computedStyle = window.getComputedStyle(element);
981
- var width = parseInt(computedStyle.width);
982
- var marginLeft = parseInt(computedStyle.marginLeft);
983
- var marginRight = parseInt(computedStyle.marginRight);
984
- return width + marginLeft + marginRight;
985
- };
986
- McTreeSelect.prototype.handleClosedKeydown = function (event) {
987
- // tslint:disable-next-line: deprecation
988
- var keyCode = event.keyCode;
989
- var isArrowKey = keyCode === keycodes.DOWN_ARROW || keyCode === keycodes.UP_ARROW ||
990
- keyCode === keycodes.LEFT_ARROW || keyCode === keycodes.RIGHT_ARROW;
991
- var isOpenKey = keyCode === keycodes.ENTER || keyCode === keycodes.SPACE;
992
- // Open the select on ALT + arrow key to match the native <select>
993
- if (isOpenKey || ((this.multiple || event.altKey) && isArrowKey)) {
994
- // prevents the page from scrolling down when pressing space
995
- event.preventDefault();
996
- this.open();
997
- }
998
- else if (!this.multiple && this.tree.keyManager && this.tree.keyManager.onKeydown) {
999
- this.tree.keyManager.onKeydown(event);
1000
- }
1001
- };
1002
- McTreeSelect.prototype.handleOpenKeydown = function (event) {
1003
- /* tslint:disable-next-line */
1004
- var keyCode = event.keyCode;
1005
- var isArrowKey = keyCode === keycodes.DOWN_ARROW || keyCode === keycodes.UP_ARROW;
1006
- if (isArrowKey && event.altKey) {
1007
- // Close the select on ALT + arrow key to match the native <select>
1008
- event.preventDefault();
1009
- this.close();
1010
- }
1011
- else if (keyCode === keycodes.LEFT_ARROW || keyCode === keycodes.RIGHT_ARROW) {
1012
- return this.originalOnKeyDown.call(this.tree, event);
1013
- }
1014
- else if (keyCode === keycodes.HOME) {
1015
- event.preventDefault();
1016
- this.tree.keyManager.setFirstItemActive();
1017
- }
1018
- else if (keyCode === keycodes.END) {
1019
- event.preventDefault();
1020
- this.tree.keyManager.setLastItemActive();
1021
- }
1022
- else if (keyCode === keycodes.PAGE_UP) {
1023
- event.preventDefault();
1024
- this.tree.keyManager.setPreviousPageItemActive();
1025
- }
1026
- else if (keyCode === keycodes.PAGE_DOWN) {
1027
- event.preventDefault();
1028
- this.tree.keyManager.setNextPageItemActive();
1029
- }
1030
- else if ((keyCode === keycodes.ENTER || keyCode === keycodes.SPACE) && this.tree.keyManager.activeItem) {
1031
- event.preventDefault();
1032
- if (!this.autoSelect) {
1033
- this.selectionModel.toggle(this.tree.keyManager.activeItem.data);
1034
- }
1035
- else {
1036
- this.close();
1037
- }
1038
- }
1039
- else if (this.multiple && keyCode === keycodes.A && event.ctrlKey) {
1040
- event.preventDefault();
1041
- var hasDeselectedOptions_1 = this.options.some(function (option) { return !option.selected; });
1042
- this.options.forEach(function (option) {
1043
- if (hasDeselectedOptions_1 && !option.disabled) {
1044
- option.select();
1045
- }
1046
- else {
1047
- option.deselect();
1048
- }
1049
- });
1050
- }
1051
- else {
1052
- var previouslyFocusedIndex = this.tree.keyManager.activeItemIndex;
1053
- this.tree.keyManager.setFocusOrigin('keyboard');
1054
- this.tree.keyManager.onKeydown(event);
1055
- if (this.multiple && isArrowKey && event.shiftKey && this.tree.keyManager.activeItem &&
1056
- this.tree.keyManager.activeItemIndex !== previouslyFocusedIndex) {
1057
- this.tree.keyManager.activeItem.selectViaInteraction(event);
1058
- }
1059
- if (this.autoSelect && this.tree.keyManager.activeItem) {
1060
- this.tree.setSelectedOptionsByKey(this.tree.keyManager.activeItem, keycodes.hasModifierKey(event, 'shiftKey'), keycodes.hasModifierKey(event, 'ctrlKey'));
1061
- }
1062
- }
1063
- };
1064
- McTreeSelect.prototype.initializeSelection = function () {
1065
- var _this = this;
1066
- // Defer setting the value in order to avoid the "Expression
1067
- // has changed after it was checked" errors from Angular.
1068
- Promise.resolve().then(function () {
1069
- _this.setSelectionByValue(_this.ngControl ? _this.ngControl.value : _this._value);
1070
- });
1071
- };
1072
- /**
1073
- * Sets the selected option based on a value. If no option can be
1074
- * found with the designated value, the select trigger is cleared.
1075
- */
1076
- McTreeSelect.prototype.setSelectionByValue = function (value) {
1077
- if (this.multiple && value) {
1078
- if (!Array.isArray(value)) {
1079
- throw i2.getMcSelectNonArrayValueError();
1080
- }
1081
- this.tree.setOptionsFromValues(value);
1082
- this.sortValues();
1083
- }
1084
- else {
1085
- this.tree.setOptionsFromValues([value]);
1086
- }
1087
- this.changeDetectorRef.detectChanges();
1088
- };
1089
- McTreeSelect.prototype.initKeyManager = function () {
1090
- var _this = this;
1091
- this.originalOnKeyDown = this.tree.onKeyDown;
1092
- this.tree.onKeyDown = function () { };
1093
- this.tree.keyManager.tabOut
1094
- .pipe(operators.takeUntil(this.destroy))
1095
- .subscribe(function () {
1096
- // Restore focus to the trigger before closing. Ensures that the focus
1097
- // position won't be lost if the user got focus into the overlay.
1098
- _this.focus();
1099
- _this.close();
1100
- });
1101
- this.tree.keyManager.change
1102
- .pipe(operators.takeUntil(this.destroy))
1103
- .subscribe(function () {
1104
- if (_this._panelOpen && _this.panel) {
1105
- _this.scrollActiveOptionIntoView();
1106
- }
1107
- else if (!_this._panelOpen && !_this.multiple && _this.tree.keyManager.activeItem) {
1108
- _this.tree.keyManager.activeItem.selectViaInteraction();
1109
- }
1110
- });
1111
- };
1112
- /** Sorts the selected values in the selected based on their order in the panel. */
1113
- McTreeSelect.prototype.sortValues = function () {
1114
- var _this = this;
1115
- if (this.multiple) {
1116
- var options_1 = this.options.toArray();
1117
- this.selectionModel.sort(function (a, b) {
1118
- return _this.sortComparator ? _this.sortComparator(a, b, options_1) :
1119
- options_1.indexOf(a) - options_1.indexOf(b);
1120
- });
1121
- this.stateChanges.next();
1122
- }
1123
- };
1124
- /**
1125
- * Highlights the selected item. If no option is selected, it will highlight
1126
- * the first item instead.
1127
- */
1128
- McTreeSelect.prototype.highlightCorrectOption = function () {
1129
- if (this.empty || !this.tree.keyManager) {
1130
- return;
1131
- }
1132
- var firstSelectedValue = this.multiple ? this.selectedValues[0] : this.selectedValues;
1133
- var selectedOption = this.options.find(function (option) { return option.value === firstSelectedValue; });
1134
- if (selectedOption) {
1135
- this.tree.keyManager.setActiveItem(selectedOption);
1136
- }
1137
- };
1138
- /** Scrolls the active option into view. */
1139
- McTreeSelect.prototype.scrollActiveOptionIntoView = function () {
1140
- var activeOptionIndex = this.tree.keyManager.activeItemIndex || 0;
1141
- this.panel.nativeElement.scrollTop = i2.getOptionScrollPosition(activeOptionIndex, this.tree.getItemHeight(), this.panel.nativeElement.scrollTop, i2.SELECT_PANEL_MAX_HEIGHT);
1142
- };
1143
- /**
1144
- * Sets the x-offset of the overlay panel in relation to the trigger's top start corner.
1145
- * This must be adjusted to align the selected option text over the trigger text when
1146
- * the panel opens. Will change based on LTR or RTL text direction. Note that the offset
1147
- * can't be calculated until the panel has been attached, because we need to know the
1148
- * content width in order to constrain the panel within the viewport.
1149
- */
1150
- McTreeSelect.prototype.calculateOverlayOffsetX = function () {
1151
- var overlayRect = this.overlayDir.overlayRef.overlayElement.getBoundingClientRect();
1152
- var viewportSize = this.viewportRuler.getViewportSize();
1153
- var isRtl = this.isRtl();
1154
- /* tslint:disable-next-line:no-magic-numbers */
1155
- var paddingWidth = i2.SELECT_PANEL_PADDING_X * 2;
1156
- var offsetX = i2.SELECT_PANEL_PADDING_X;
1157
- // Invert the offset in LTR.
1158
- if (!isRtl) {
1159
- offsetX *= -1;
1160
- }
1161
- // Determine how much the select overflows on each side.
1162
- var leftOverflow = 0 - (overlayRect.left + offsetX - (isRtl ? paddingWidth : 0));
1163
- var rightOverflow = overlayRect.right + offsetX - viewportSize.width
1164
- + (isRtl ? 0 : paddingWidth);
1165
- // If the element overflows on either side, reduce the offset to allow it to fit.
1166
- if (leftOverflow > 0) {
1167
- offsetX += leftOverflow + i2.SELECT_PANEL_VIEWPORT_PADDING;
1168
- }
1169
- else if (rightOverflow > 0) {
1170
- offsetX -= rightOverflow + i2.SELECT_PANEL_VIEWPORT_PADDING;
1171
- }
1172
- // Set the offset directly in order to avoid having to go through change detection and
1173
- // potentially triggering "changed after it was checked" errors. Round the value to avoid
1174
- // blurry content in some browsers.
1175
- this.overlayDir.offsetX = Math.round(offsetX);
1176
- this.overlayDir.overlayRef.updatePosition();
1177
- };
1178
- return McTreeSelect;
1179
- }(McTreeSelectMixinBase));
1180
- /** @nocollapse */ McTreeSelect.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTreeSelect, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.ViewportRuler }, { token: i0__namespace.NgZone }, { token: i0__namespace.Renderer2 }, { token: i2__namespace.ErrorStateMatcher }, { token: i2.MC_SELECT_SCROLL_STRATEGY }, { token: i4.NG_VALIDATORS, optional: true }, { token: i2.MC_VALIDATION, optional: true }, { token: i3__namespace.Directionality, optional: true }, { token: i4__namespace.NgForm, optional: true }, { token: i4__namespace.FormGroupDirective, optional: true }, { token: i5__namespace.McFormField, optional: true }, { token: i4__namespace.NgControl, optional: true, self: true }, { token: i4__namespace.NgModel, optional: true, self: true }, { token: i4__namespace.FormControlName, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
1181
- /** @nocollapse */ McTreeSelect.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McTreeSelect, selector: "mc-tree-select", inputs: { disabled: "disabled", tabIndex: "tabIndex", hiddenItemsText: "hiddenItemsText", panelClass: "panelClass", backdropClass: "backdropClass", errorStateMatcher: "errorStateMatcher", sortComparator: "sortComparator", placeholder: "placeholder", required: "required", multiple: "multiple", autoSelect: "autoSelect", compareWith: "compareWith", id: "id", hasBackdrop: "hasBackdrop", hiddenItemsTextFormatter: "hiddenItemsTextFormatter" }, outputs: { openedChange: "openedChange", openedStream: "opened", closedStream: "closed", selectionChange: "selectionChange", valueChange: "valueChange" }, host: { listeners: { "click": "toggle()", "keydown": "handleKeydown($event)", "focus": "onFocus()", "blur": "onBlur()", "window:resize": "calculateHiddenItems()" }, properties: { "class.mc-disabled": "disabled", "class.mc-invalid": "errorState", "attr.id": "id", "attr.tabindex": "tabIndex", "attr.disabled": "disabled || null" }, classAttribute: "mc-tree-select" }, providers: [
1182
- { provide: i5.McFormFieldControl, useExisting: McTreeSelect },
1183
- { provide: tree.McTree, useExisting: McTreeSelect }
1184
- ], queries: [{ propertyName: "cleaner", first: true, predicate: ["mcSelectCleaner"], descendants: true, static: true }, { propertyName: "customTrigger", first: true, predicate: McTreeSelectTrigger, descendants: true }, { propertyName: "tree", first: true, predicate: tree.McTreeSelection, descendants: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true }, { propertyName: "overlayDir", first: true, predicate: i1.CdkConnectedOverlay, descendants: true }, { propertyName: "hiddenItemsCounter", first: true, predicate: ["hiddenItemsCounter"], descendants: true }, { propertyName: "tags", predicate: i6.McTag, descendants: true }], exportAs: ["mcTreeSelect"], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div cdk-overlay-origin\n class=\"mc-tree-select__trigger\"\n [class.mc-tree-select__trigger_multiple]=\"multiple\"\n #origin=\"cdkOverlayOrigin\"\n #trigger>\n <div class=\"mc-tree-select__matcher\" [ngSwitch]=\"empty\">\n <span class=\"mc-tree-select__placeholder\" *ngSwitchCase=\"true\">{{ placeholder || '\\u00A0' }}</span>\n <span *ngSwitchCase=\"false\" [ngSwitch]=\"!!customTrigger\">\n <div *ngSwitchDefault [ngSwitch]=\"multiple\" class=\"mc-tree-select__match-container\">\n <span *ngSwitchCase=\"false\" class=\"mc-tree-select__matcher-text\">{{ triggerValue }}</span>\n <div *ngSwitchCase=\"true\" class=\"mc-tree-select__multiple-matcher\">\n <div class=\"mc-tree-select__match-list\">\n <mc-tag *ngFor=\"let option of triggerValues\"\n [selectable]=\"false\"\n [disabled]=\"option.disabled || disabled\"\n [class.mc-error]=\"errorState\">\n\n {{ option.viewValue }}\n <i mc-icon=\"mc-close-S_16\"\n *ngIf=\"!option.disabled && !disabled\"\n (click)=\"onRemoveSelectedOption(option, $event)\">\n </i>\n </mc-tag>\n </div>\n <div class=\"mc-tree-select__match-hidden-text\"\n [style.display]=\"hiddenItems > 0 ? 'block' : 'none'\"\n #hiddenItemsCounter>\n {{ hiddenItemsTextFormatter(hiddenItemsText, hiddenItems) }}\n </div>\n </div>\n </div>\n <ng-content select=\"mc-tree-select-trigger\" *ngSwitchCase=\"true\"></ng-content>\n </span>\n </div>\n\n <div class=\"mc-select__cleaner\" *ngIf=\"canShowCleaner\" (click)=\"clearValue($event)\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n </div>\n\n <div class=\"mc-tree-select__arrow-wrapper\">\n <i class=\"mc-tree-select__arrow\" mc-icon=\"mc-angle-down-L_16\"></i>\n </div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n [cdkConnectedOverlayHasBackdrop]=\"hasBackdrop\"\n [cdkConnectedOverlayBackdropClass]=\"backdropClass\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"panelOpen\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"triggerRect?.width!\"\n [cdkConnectedOverlayOffsetY]=\"offsetY\"\n (backdropClick)=\"close()\"\n (attach)=\"onAttached()\"\n (detach)=\"close()\">\n\n <div #panel\n class=\"mc-tree-select__panel {{ getPanelTheme() }}\"\n [ngClass]=\"panelClass\"\n [style.transformOrigin]=\"transformOrigin\"\n [style.font-size.px]=\"triggerFontSize\"\n (keydown)=\"handleKeydown($event)\">\n\n <div #optionsContainer\n class=\"mc-tree-select__content\"\n [@fadeInContent]=\"'showing'\"\n (@fadeInContent.done)=\"panelDoneAnimatingStream.next($event.toState)\">\n <ng-content select=\"mc-tree-selection\"></ng-content>\n </div>\n </div>\n</ng-template>\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}.mc-tree-select{box-sizing:border-box;display:inline-block;width:100%;outline:none}.mc-tree-select.mc-disabled .mc-tree-select__trigger{-webkit-user-select:none;user-select:none;cursor:default}.mc-tree-select__trigger{display:flex;box-sizing:border-box;position:relative;height:30px;height:var(--mc-select-size-height, 30px);cursor:pointer;padding-left:calc(16px - 1px);padding-left:calc(var(--mc-select-size-left-padding, 16px) - var(--mc-form-field-size-border-width, 1px));padding-right:calc(8px - 1px);padding-right:calc(var(--mc-select-size-right-padding, 8px) - var(--mc-form-field-size-border-width, 1px))}.mc-tree-select__trigger.mc-tree-select__trigger_multiple{padding-left:calc(8px - 1px);padding-left:calc(var(--mc-select-size-left-padding-multiple, 8px) - var(--mc-form-field-size-border-width, 1px))}.mc-tree-select__trigger.mc-tree-select__trigger_multiple .mc-tree-select__placeholder{margin-left:8px}.mc-tree-select__trigger.mc-tree-select__trigger_multiple .mc-tag.mc-disabled .mc-tag__text{margin-right:7px}.mc-tree-select__matcher{display:flex;align-items:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-tree-select__matcher>span{width:100%}.mc-tree-select__multiple-matcher{display:flex;width:100%}.mc-tree-select__match-list{display:flex;flex-wrap:wrap;overflow:hidden;max-height:calc(30px - 1px);max-height:calc(var(--mc-select-size-height, 30px) - var(--mc-select-panel-size-border-width, 1px))}.mc-tree-select__match-list .mc-tag{margin-right:4px}.mc-tree-select__match-container{display:flex;flex-direction:row;justify-content:space-between;width:100%}.mc-tree-select__match-container .mc-tree-select__match-hidden-text{flex:0 0 70px;align-self:center;padding:0 8px;text-align:right}.mc-tree-select__match-item{display:flex;border:1px solid transparent;border-radius:3px;padding-left:7px;margin-right:4px;max-width:100%}.mc-tree-select__arrow-wrapper{align-self:center}.mc-form-field-appearance-fill .mc-tree-select__arrow-wrapper,.mc-form-field-appearance-standard .mc-tree-select__arrow-wrapper{transform:translateY(-50%)}.mc-form-field-appearance-outline .mc-tree-select__arrow-wrapper{transform:translateY(-25%)}.mc-tree-select__panel{max-height:232px;max-height:var(--mc-select-panel-size-max-height, 232px);min-width:100%;overflow:auto;border-width:1px;border-width:var(--mc-select-panel-size-border-width, 1px);border-style:solid;border-bottom-left-radius:3px;border-bottom-left-radius:var(--mc-select-panel-size-border-radius, 3px);border-bottom-right-radius:3px;border-bottom-right-radius:var(--mc-select-panel-size-border-radius, 3px);padding:4px 0}.mc-tree-select__panel .mc-optgroup-label,.mc-tree-select__panel .mc-tree-select-option{font-size:inherit;line-height:32px;line-height:var(--mc-option-size-height, 32px);height:32px;height:var(--mc-option-size-height, 32px)}.mc-tree-select__content{height:100%}.mc-tree-select__content .mc-tree-selection{height:100%}.mc-form-field-type-select:not(.mc-disabled) .mc-form-field-flex{cursor:pointer}\n"], components: [{ type: i6__namespace.McTag, selector: "mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]", inputs: ["color", "selected", "value", "selectable", "removable", "disabled"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["mcTag"] }, { type: i7__namespace.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i1__namespace.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { type: i8__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i8__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.McIconCSSStyler, selector: "[mc-icon]" }, { type: i1__namespace.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayPositions", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayTransformOriginOn"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { type: i8__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
1185
- i2.mcSelectAnimations.transformPanel,
1186
- i2.mcSelectAnimations.fadeInContent
1187
- ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1188
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTreeSelect, decorators: [{
1189
- type: i0.Component,
1190
- args: [{
1191
- selector: 'mc-tree-select',
1192
- exportAs: 'mcTreeSelect',
1193
- templateUrl: 'tree-select.html',
1194
- styleUrls: ['./tree-select.scss'],
1195
- inputs: ['disabled', 'tabIndex'],
1196
- encapsulation: i0.ViewEncapsulation.None,
1197
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1198
- host: {
1199
- class: 'mc-tree-select',
1200
- '[class.mc-disabled]': 'disabled',
1201
- '[class.mc-invalid]': 'errorState',
1202
- '[attr.id]': 'id',
1203
- '[attr.tabindex]': 'tabIndex',
1204
- '[attr.disabled]': 'disabled || null',
1205
- '(click)': 'toggle()',
1206
- '(keydown)': 'handleKeydown($event)',
1207
- '(focus)': 'onFocus()',
1208
- '(blur)': 'onBlur()',
1209
- '(window:resize)': 'calculateHiddenItems()'
1210
- },
1211
- animations: [
1212
- i2.mcSelectAnimations.transformPanel,
1213
- i2.mcSelectAnimations.fadeInContent
1214
- ],
1215
- providers: [
1216
- { provide: i5.McFormFieldControl, useExisting: McTreeSelect },
1217
- { provide: tree.McTree, useExisting: McTreeSelect }
1218
- ]
1219
- }]
1220
- }], ctorParameters: function () {
1221
- return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.ViewportRuler }, { type: i0__namespace.NgZone }, { type: i0__namespace.Renderer2 }, { type: i2__namespace.ErrorStateMatcher }, { type: undefined, decorators: [{
1222
- type: i0.Inject,
1223
- args: [i2.MC_SELECT_SCROLL_STRATEGY]
1224
- }] }, { type: undefined, decorators: [{
1225
- type: i0.Optional
1226
- }, {
1227
- type: i0.Inject,
1228
- args: [i4.NG_VALIDATORS]
1229
- }] }, { type: undefined, decorators: [{
1230
- type: i0.Optional
1231
- }, {
1232
- type: i0.Inject,
1233
- args: [i2.MC_VALIDATION]
1234
- }] }, { type: i3__namespace.Directionality, decorators: [{
1235
- type: i0.Optional
1236
- }] }, { type: i4__namespace.NgForm, decorators: [{
1237
- type: i0.Optional
1238
- }] }, { type: i4__namespace.FormGroupDirective, decorators: [{
1239
- type: i0.Optional
1240
- }] }, { type: i5__namespace.McFormField, decorators: [{
1241
- type: i0.Optional
1242
- }] }, { type: i4__namespace.NgControl, decorators: [{
1243
- type: i0.Optional
1244
- }, {
1245
- type: i0.Self
1246
- }] }, { type: i4__namespace.NgModel, decorators: [{
1247
- type: i0.Optional
1248
- }, {
1249
- type: i0.Self
1250
- }] }, { type: i4__namespace.FormControlName, decorators: [{
1251
- type: i0.Optional
1252
- }, {
1253
- type: i0.Self
1254
- }] }];
1255
- }, propDecorators: { trigger: [{
1256
- type: i0.ViewChild,
1257
- args: ['trigger', { static: false }]
1258
- }], panel: [{
1259
- type: i0.ViewChild,
1260
- args: ['panel', { static: false }]
1261
- }], overlayDir: [{
1262
- type: i0.ViewChild,
1263
- args: [i1.CdkConnectedOverlay, { static: false }]
1264
- }], hiddenItemsCounter: [{
1265
- type: i0.ViewChild,
1266
- args: ['hiddenItemsCounter', { static: false }]
1267
- }], tags: [{
1268
- type: i0.ViewChildren,
1269
- args: [i6.McTag]
1270
- }], cleaner: [{
1271
- type: i0.ContentChild,
1272
- args: ['mcSelectCleaner', { static: true }]
1273
- }], customTrigger: [{
1274
- type: i0.ContentChild,
1275
- args: [McTreeSelectTrigger, { static: false }]
1276
- }], tree: [{
1277
- type: i0.ContentChild,
1278
- args: [tree.McTreeSelection, { static: false }]
1279
- }], hiddenItemsText: [{
1280
- type: i0.Input
1281
- }], openedChange: [{
1282
- type: i0.Output
1283
- }], openedStream: [{
1284
- type: i0.Output,
1285
- args: ['opened']
1286
- }], closedStream: [{
1287
- type: i0.Output,
1288
- args: ['closed']
1289
- }], selectionChange: [{
1290
- type: i0.Output
1291
- }], valueChange: [{
1292
- type: i0.Output
1293
- }], panelClass: [{
1294
- type: i0.Input
1295
- }], backdropClass: [{
1296
- type: i0.Input
1297
- }], errorStateMatcher: [{
1298
- type: i0.Input
1299
- }], sortComparator: [{
1300
- type: i0.Input
1301
- }], placeholder: [{
1302
- type: i0.Input
1303
- }], required: [{
1304
- type: i0.Input
1305
- }], multiple: [{
1306
- type: i0.Input
1307
- }], autoSelect: [{
1308
- type: i0.Input
1309
- }], compareWith: [{
1310
- type: i0.Input
1311
- }], id: [{
1312
- type: i0.Input
1313
- }], hasBackdrop: [{
1314
- type: i0.Input
1315
- }], hiddenItemsTextFormatter: [{
1316
- type: i0.Input
1317
- }] } });
1318
-
1319
- var McTreeSelectModule = /** @class */ (function () {
1320
- function McTreeSelectModule() {
1321
- }
1322
- return McTreeSelectModule;
1323
- }());
1324
- /** @nocollapse */ McTreeSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTreeSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1325
- /** @nocollapse */ McTreeSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTreeSelectModule, declarations: [McTreeSelect, McTreeSelectTrigger], imports: [i8.CommonModule,
1326
- i1.OverlayModule,
1327
- tree.McTreeModule,
1328
- i7.McIconModule,
1329
- i6.McTagsModule,
1330
- i2.McPseudoCheckboxModule], exports: [McTreeSelect, McTreeSelectTrigger, i8.CommonModule] });
1331
- /** @nocollapse */ McTreeSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTreeSelectModule, providers: [i2.MC_SELECT_SCROLL_STRATEGY_PROVIDER], imports: [[
1332
- i8.CommonModule,
1333
- i1.OverlayModule,
1334
- tree.McTreeModule,
1335
- i7.McIconModule,
1336
- i6.McTagsModule,
1337
- i2.McPseudoCheckboxModule
1338
- ], i8.CommonModule] });
1339
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McTreeSelectModule, decorators: [{
1340
- type: i0.NgModule,
1341
- args: [{
1342
- imports: [
1343
- i8.CommonModule,
1344
- i1.OverlayModule,
1345
- tree.McTreeModule,
1346
- i7.McIconModule,
1347
- i6.McTagsModule,
1348
- i2.McPseudoCheckboxModule
1349
- ],
1350
- exports: [McTreeSelect, McTreeSelectTrigger, i8.CommonModule],
1351
- declarations: [McTreeSelect, McTreeSelectTrigger],
1352
- providers: [i2.MC_SELECT_SCROLL_STRATEGY_PROVIDER]
1353
- }]
1354
- }] });
1355
-
1356
- /**
1357
- * Generated bundle index. Do not edit.
1358
- */
1359
-
1360
- exports.McTreeSelect = McTreeSelect;
1361
- exports.McTreeSelectChange = McTreeSelectChange;
1362
- exports.McTreeSelectModule = McTreeSelectModule;
1363
- exports.McTreeSelectTrigger = McTreeSelectTrigger;
1364
-
1365
- Object.defineProperty(exports, '__esModule', { value: true });
1366
-
1367
- }));
1368
- //# sourceMappingURL=ptsecurity-mosaic-tree-select.umd.js.map