@ptsecurity/mosaic 12.3.0 → 13.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (905) hide show
  1. package/_theming.scss +978 -781
  2. package/_visual.scss +848 -692
  3. package/autocomplete/README.md +0 -0
  4. package/autocomplete/package.json +5 -5
  5. package/button/README.md +0 -0
  6. package/button/button.component.d.ts +17 -14
  7. package/button/button.module.d.ts +1 -1
  8. package/button/package.json +5 -5
  9. package/button-toggle/README.md +0 -0
  10. package/button-toggle/package.json +5 -5
  11. package/card/README.md +0 -0
  12. package/card/package.json +5 -5
  13. package/checkbox/README.md +1 -0
  14. package/checkbox/package.json +5 -5
  15. package/core/formatters/date/formatter.d.ts +41 -17
  16. package/core/formatters/date/templates/en-US.d.ts +8 -8
  17. package/core/formatters/date/templates/ru-RU.d.ts +8 -8
  18. package/core/package.json +5 -5
  19. package/core/pop-up/pop-up.d.ts +1 -0
  20. package/core/public-api.d.ts +1 -0
  21. package/core/version.d.ts +2 -0
  22. package/datepicker/README.md +0 -0
  23. package/datepicker/package.json +5 -5
  24. package/design-tokens/{tokens → legacy-2017/tokens}/components/alert.json5 +0 -0
  25. package/design-tokens/{tokens → legacy-2017/tokens}/components/autocomplete.json5 +0 -0
  26. package/design-tokens/{tokens → legacy-2017/tokens}/components/badge.json5 +0 -0
  27. package/design-tokens/{tokens → legacy-2017/tokens}/components/button-toggle.json5 +0 -0
  28. package/design-tokens/{tokens → legacy-2017/tokens}/components/button.json5 +0 -0
  29. package/design-tokens/{tokens → legacy-2017/tokens}/components/card.json5 +0 -0
  30. package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +39 -0
  31. package/design-tokens/{tokens → legacy-2017/tokens}/components/datepicker.json5 +0 -0
  32. package/design-tokens/{tokens → legacy-2017/tokens}/components/divider.json5 +0 -0
  33. package/design-tokens/{tokens → legacy-2017/tokens}/components/dropdown.json5 +0 -0
  34. package/design-tokens/{tokens → legacy-2017/tokens}/components/form-field.json5 +0 -0
  35. package/design-tokens/{tokens → legacy-2017/tokens}/components/forms.json5 +0 -0
  36. package/design-tokens/{tokens → legacy-2017/tokens}/components/input.json5 +0 -0
  37. package/design-tokens/{tokens → legacy-2017/tokens}/components/link.json5 +0 -0
  38. package/design-tokens/{tokens → legacy-2017/tokens}/components/list.json5 +0 -0
  39. package/design-tokens/legacy-2017/tokens/components/modal.json5 +79 -0
  40. package/design-tokens/legacy-2017/tokens/components/navbar.json5 +69 -0
  41. package/design-tokens/{tokens → legacy-2017/tokens}/components/optgroup.json5 +0 -0
  42. package/design-tokens/{tokens → legacy-2017/tokens}/components/option.json5 +0 -0
  43. package/design-tokens/{tokens → legacy-2017/tokens}/components/popover.json5 +0 -0
  44. package/design-tokens/{tokens → legacy-2017/tokens}/components/popup.json5 +0 -0
  45. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-bar.json5 +0 -0
  46. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-spinner.json5 +0 -0
  47. package/design-tokens/legacy-2017/tokens/components/radio.json5 +44 -0
  48. package/design-tokens/{tokens → legacy-2017/tokens}/components/select.json5 +0 -0
  49. package/design-tokens/{tokens → legacy-2017/tokens}/components/sidepanel.json5 +0 -0
  50. package/design-tokens/{tokens → legacy-2017/tokens}/components/table.json5 +0 -0
  51. package/design-tokens/{tokens → legacy-2017/tokens}/components/tabs.json5 +0 -0
  52. package/design-tokens/legacy-2017/tokens/components/tags.json5 +132 -0
  53. package/design-tokens/{tokens → legacy-2017/tokens}/components/textarea.json5 +0 -0
  54. package/design-tokens/{tokens → legacy-2017/tokens}/components/timepicker.json5 +0 -0
  55. package/design-tokens/legacy-2017/tokens/components/toggle.json5 +79 -0
  56. package/design-tokens/{tokens → legacy-2017/tokens}/components/tooltip.json5 +0 -0
  57. package/design-tokens/{tokens → legacy-2017/tokens}/components/tree.json5 +0 -0
  58. package/design-tokens/{tokens → legacy-2017/tokens}/properties/aliases.json5 +0 -0
  59. package/design-tokens/{tokens → legacy-2017/tokens}/properties/colors.json5 +0 -0
  60. package/design-tokens/{tokens → legacy-2017/tokens}/properties/font.json5 +0 -0
  61. package/design-tokens/{tokens → legacy-2017/tokens}/properties/globals.json5 +0 -0
  62. package/design-tokens/{tokens → legacy-2017/tokens}/properties/padding.json5 +0 -0
  63. package/design-tokens/{tokens → legacy-2017/tokens}/properties/palette.json5 +0 -0
  64. package/design-tokens/{tokens → legacy-2017/tokens}/properties/typography.json5 +0 -0
  65. package/design-tokens/legacy-2017/tokens.d.ts +7659 -0
  66. package/design-tokens/package.json +5 -5
  67. package/design-tokens/pt-2022/tokens/components/alert.json5 +83 -0
  68. package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +11 -0
  69. package/design-tokens/pt-2022/tokens/components/badge.json5 +184 -0
  70. package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +10 -0
  71. package/design-tokens/pt-2022/tokens/components/button.json5 +143 -0
  72. package/design-tokens/pt-2022/tokens/components/card.json5 +51 -0
  73. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +39 -0
  74. package/design-tokens/pt-2022/tokens/components/datepicker.json5 +64 -0
  75. package/design-tokens/pt-2022/tokens/components/divider.json5 +8 -0
  76. package/design-tokens/pt-2022/tokens/components/dropdown.json5 +47 -0
  77. package/design-tokens/pt-2022/tokens/components/form-field.json5 +52 -0
  78. package/design-tokens/pt-2022/tokens/components/forms.json5 +52 -0
  79. package/design-tokens/pt-2022/tokens/components/input.json5 +13 -0
  80. package/design-tokens/pt-2022/tokens/components/link.json5 +56 -0
  81. package/design-tokens/pt-2022/tokens/components/list.json5 +15 -0
  82. package/design-tokens/pt-2022/tokens/components/modal.json5 +79 -0
  83. package/design-tokens/pt-2022/tokens/components/navbar.json5 +69 -0
  84. package/design-tokens/pt-2022/tokens/components/optgroup.json5 +10 -0
  85. package/design-tokens/pt-2022/tokens/components/option.json5 +12 -0
  86. package/design-tokens/pt-2022/tokens/components/popover.json5 +68 -0
  87. package/design-tokens/pt-2022/tokens/components/popup.json5 +18 -0
  88. package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +13 -0
  89. package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +7 -0
  90. package/design-tokens/pt-2022/tokens/components/radio.json5 +44 -0
  91. package/design-tokens/pt-2022/tokens/components/select.json5 +25 -0
  92. package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +30 -0
  93. package/design-tokens/pt-2022/tokens/components/table.json5 +15 -0
  94. package/design-tokens/pt-2022/tokens/components/tabs.json5 +25 -0
  95. package/design-tokens/pt-2022/tokens/components/tags.json5 +132 -0
  96. package/design-tokens/pt-2022/tokens/components/textarea.json5 +12 -0
  97. package/design-tokens/pt-2022/tokens/components/timepicker.json5 +7 -0
  98. package/design-tokens/pt-2022/tokens/components/toggle.json5 +79 -0
  99. package/design-tokens/pt-2022/tokens/components/tooltip.json5 +83 -0
  100. package/design-tokens/pt-2022/tokens/components/tree.json5 +12 -0
  101. package/design-tokens/pt-2022/tokens/properties/aliases.json5 +3 -0
  102. package/design-tokens/pt-2022/tokens/properties/colors.json5 +112 -0
  103. package/design-tokens/pt-2022/tokens/properties/font.json5 +15 -0
  104. package/design-tokens/pt-2022/tokens/properties/globals.json5 +30 -0
  105. package/design-tokens/pt-2022/tokens/properties/padding.json5 +3 -0
  106. package/design-tokens/pt-2022/tokens/properties/palette.json5 +226 -0
  107. package/design-tokens/pt-2022/tokens/properties/typography.json5 +140 -0
  108. package/design-tokens/pt-2022/tokens.d.ts +8696 -0
  109. package/design-tokens/public-api.d.ts +3 -1
  110. package/divider/README.md +0 -0
  111. package/divider/package.json +5 -5
  112. package/dropdown/package.json +5 -5
  113. package/esm2020/autocomplete/autocomplete-origin.directive.mjs +21 -0
  114. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +555 -0
  115. package/esm2020/autocomplete/autocomplete.component.mjs +154 -0
  116. package/esm2020/autocomplete/autocomplete.module.mjs +34 -0
  117. package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
  118. package/{esm2015/autocomplete/ptsecurity-mosaic-autocomplete.js → esm2020/autocomplete/ptsecurity-mosaic-autocomplete.mjs} +0 -0
  119. package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
  120. package/esm2020/button/button.component.mjs +129 -0
  121. package/esm2020/button/button.module.mjs +38 -0
  122. package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
  123. package/{esm2015/button/ptsecurity-mosaic-button.js → esm2020/button/ptsecurity-mosaic-button.mjs} +0 -0
  124. package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
  125. package/esm2020/button-toggle/button-toggle.component.mjs +362 -0
  126. package/esm2020/button-toggle/button-toggle.module.mjs +19 -0
  127. package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
  128. package/{esm2015/button-toggle/ptsecurity-mosaic-button-toggle.js → esm2020/button-toggle/ptsecurity-mosaic-button-toggle.mjs} +0 -0
  129. package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
  130. package/esm2020/card/card.component.mjs +80 -0
  131. package/esm2020/card/card.module.mjs +30 -0
  132. package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
  133. package/{esm2015/card/ptsecurity-mosaic-card.js → esm2020/card/ptsecurity-mosaic-card.mjs} +0 -0
  134. package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
  135. package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
  136. package/esm2020/checkbox/checkbox-module.mjs +19 -0
  137. package/esm2020/checkbox/checkbox-required-validator.mjs +27 -0
  138. package/esm2020/checkbox/checkbox.mjs +315 -0
  139. package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
  140. package/{esm2015/checkbox/ptsecurity-mosaic-checkbox.js → esm2020/checkbox/ptsecurity-mosaic-checkbox.mjs} +0 -0
  141. package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
  142. package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
  143. package/{esm2015/core/animation/fade-animations.js → esm2020/core/animation/fade-animations.mjs} +0 -0
  144. package/{esm2015/core/animation/index.js → esm2020/core/animation/index.mjs} +0 -0
  145. package/{esm2015/core/animation/select-animations.js → esm2020/core/animation/select-animations.mjs} +0 -0
  146. package/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -0
  147. package/esm2020/core/common-behaviors/common-module.mjs +83 -0
  148. package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
  149. package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
  150. package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
  151. package/{esm2015/core/common-behaviors/index.js → esm2020/core/common-behaviors/index.mjs} +0 -0
  152. package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -0
  153. package/esm2020/core/error/error-options.mjs +26 -0
  154. package/esm2020/core/formatters/date/formatter.mjs +359 -0
  155. package/esm2020/core/formatters/date/templates/en-US.mjs +281 -0
  156. package/esm2020/core/formatters/date/templates/ru-RU.mjs +281 -0
  157. package/esm2020/core/formatters/index.mjs +20 -0
  158. package/esm2020/core/formatters/number/formatter.mjs +105 -0
  159. package/esm2020/core/forms/forms-module.mjs +24 -0
  160. package/esm2020/core/forms/forms.directive.mjs +66 -0
  161. package/{esm2015/core/forms/index.js → esm2020/core/forms/index.mjs} +0 -0
  162. package/esm2020/core/highlight/highlight.pipe.mjs +17 -0
  163. package/esm2020/core/highlight/index.mjs +19 -0
  164. package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
  165. package/{esm2015/core/label/label-options.js → esm2020/core/label/label-options.mjs} +0 -0
  166. package/esm2020/core/line/line.mjs +70 -0
  167. package/esm2020/core/option/action.mjs +121 -0
  168. package/{esm2015/core/option/index.js → esm2020/core/option/index.mjs} +0 -0
  169. package/esm2020/core/option/optgroup.mjs +31 -0
  170. package/esm2020/core/option/option-module.mjs +21 -0
  171. package/esm2020/core/option/option.mjs +254 -0
  172. package/{esm2015/core/overlay/overlay-position-map.js → esm2020/core/overlay/overlay-position-map.mjs} +0 -0
  173. package/{esm2015/core/pop-up/constants.js → esm2020/core/pop-up/constants.mjs} +0 -0
  174. package/{esm2015/core/pop-up/index.js → esm2020/core/pop-up/index.mjs} +0 -0
  175. package/esm2020/core/pop-up/pop-up-trigger.mjs +239 -0
  176. package/esm2020/core/pop-up/pop-up.mjs +94 -0
  177. package/{esm2015/core/ptsecurity-mosaic-core.js → esm2020/core/ptsecurity-mosaic-core.mjs} +0 -0
  178. package/esm2020/core/public-api.mjs +18 -0
  179. package/{esm2015/core/select/constants.js → esm2020/core/select/constants.mjs} +0 -0
  180. package/{esm2015/core/select/errors.js → esm2020/core/select/errors.mjs} +0 -0
  181. package/{esm2015/core/select/events.js → esm2020/core/select/events.mjs} +0 -0
  182. package/{esm2015/core/select/index.js → esm2020/core/select/index.mjs} +0 -0
  183. package/{esm2015/core/selection/constants.js → esm2020/core/selection/constants.mjs} +0 -0
  184. package/{esm2015/core/selection/index.js → esm2020/core/selection/index.mjs} +0 -0
  185. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +37 -0
  186. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +18 -0
  187. package/esm2020/core/services/measure-scrollbar.service.mjs +48 -0
  188. package/{esm2015/core/utils/index.js → esm2020/core/utils/index.mjs} +0 -0
  189. package/{esm2015/core/utils/public-api.js → esm2020/core/utils/public-api.mjs} +0 -0
  190. package/{esm2015/core/utils/utils.js → esm2020/core/utils/utils.mjs} +0 -0
  191. package/{esm2015/core/validation/index.js → esm2020/core/validation/index.mjs} +0 -0
  192. package/{esm2015/core/validation/validation.js → esm2020/core/validation/validation.mjs} +0 -0
  193. package/esm2020/core/version.mjs +3 -0
  194. package/esm2020/datepicker/calendar-body.component.mjs +106 -0
  195. package/esm2020/datepicker/calendar.component.mjs +362 -0
  196. package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
  197. package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
  198. package/esm2020/datepicker/datepicker-input.directive.mjs +900 -0
  199. package/esm2020/datepicker/datepicker-intl.mjs +40 -0
  200. package/esm2020/datepicker/datepicker-module.mjs +107 -0
  201. package/esm2020/datepicker/datepicker-toggle.component.mjs +86 -0
  202. package/esm2020/datepicker/datepicker.component.mjs +408 -0
  203. package/{esm2015/datepicker/index.js → esm2020/datepicker/index.mjs} +0 -0
  204. package/esm2020/datepicker/month-view.component.mjs +257 -0
  205. package/esm2020/datepicker/multi-year-view.component.mjs +218 -0
  206. package/{esm2015/datepicker/ptsecurity-mosaic-datepicker.js → esm2020/datepicker/ptsecurity-mosaic-datepicker.mjs} +0 -0
  207. package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
  208. package/esm2020/datepicker/year-view.component.mjs +253 -0
  209. package/{esm2015/design-tokens/index.js → esm2020/design-tokens/index.mjs} +0 -0
  210. package/esm2020/design-tokens/legacy-2017/tokens.mjs +953 -0
  211. package/esm2020/design-tokens/pt-2022/tokens.mjs +1013 -0
  212. package/{esm2015/design-tokens/ptsecurity-mosaic-design-tokens.js → esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs} +0 -0
  213. package/esm2020/design-tokens/public-api.mjs +4 -0
  214. package/esm2020/divider/divider.component.mjs +39 -0
  215. package/esm2020/divider/divider.module.mjs +18 -0
  216. package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
  217. package/{esm2015/divider/ptsecurity-mosaic-divider.js → esm2020/divider/ptsecurity-mosaic-divider.mjs} +0 -0
  218. package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
  219. package/{esm2015/dropdown/dropdown-animations.js → esm2020/dropdown/dropdown-animations.mjs} +0 -0
  220. package/esm2020/dropdown/dropdown-content.directive.mjs +64 -0
  221. package/{esm2015/dropdown/dropdown-errors.js → esm2020/dropdown/dropdown-errors.mjs} +0 -0
  222. package/esm2020/dropdown/dropdown-item.component.mjs +139 -0
  223. package/esm2020/dropdown/dropdown-trigger.directive.mjs +485 -0
  224. package/esm2020/dropdown/dropdown.component.mjs +292 -0
  225. package/esm2020/dropdown/dropdown.module.mjs +50 -0
  226. package/{esm2015/dropdown/dropdown.types.js → esm2020/dropdown/dropdown.types.mjs} +0 -0
  227. package/{esm2015/dropdown/index.js → esm2020/dropdown/index.mjs} +0 -0
  228. package/{esm2015/dropdown/ptsecurity-mosaic-dropdown.js → esm2020/dropdown/ptsecurity-mosaic-dropdown.mjs} +0 -0
  229. package/{esm2015/dropdown/public-api.js → esm2020/dropdown/public-api.mjs} +0 -0
  230. package/esm2020/form-field/cleaner.mjs +23 -0
  231. package/{esm2015/form-field/form-field-control.js → esm2020/form-field/form-field-control.mjs} +0 -0
  232. package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
  233. package/esm2020/form-field/form-field.mjs +205 -0
  234. package/esm2020/form-field/form-field.module.mjs +52 -0
  235. package/esm2020/form-field/hint.mjs +23 -0
  236. package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
  237. package/esm2020/form-field/prefix.mjs +13 -0
  238. package/{esm2015/form-field/ptsecurity-mosaic-form-field.js → esm2020/form-field/ptsecurity-mosaic-form-field.mjs} +0 -0
  239. package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
  240. package/esm2020/form-field/stepper.mjs +55 -0
  241. package/esm2020/form-field/suffix.mjs +13 -0
  242. package/esm2020/icon/icon.component.mjs +44 -0
  243. package/esm2020/icon/icon.module.mjs +38 -0
  244. package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
  245. package/{esm2015/icon/ptsecurity-mosaic-icon.js → esm2020/icon/ptsecurity-mosaic-icon.mjs} +0 -0
  246. package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
  247. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  248. package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
  249. package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
  250. package/esm2020/input/input-number-validators.mjs +92 -0
  251. package/esm2020/input/input-number.mjs +163 -0
  252. package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
  253. package/esm2020/input/input.mjs +333 -0
  254. package/esm2020/input/input.module.mjs +23 -0
  255. package/{esm2015/input/ptsecurity-mosaic-input.js → esm2020/input/ptsecurity-mosaic-input.mjs} +0 -0
  256. package/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -0
  257. package/{esm2015/link/index.js → esm2020/link/index.mjs} +0 -0
  258. package/esm2020/link/link.component.mjs +107 -0
  259. package/esm2020/link/link.module.mjs +26 -0
  260. package/{esm2015/link/ptsecurity-mosaic-link.js → esm2020/link/ptsecurity-mosaic-link.mjs} +0 -0
  261. package/{esm2015/link/public-api.js → esm2020/link/public-api.mjs} +0 -0
  262. package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
  263. package/esm2020/list/list-selection.component.mjs +687 -0
  264. package/esm2020/list/list.component.mjs +44 -0
  265. package/esm2020/list/list.module.mjs +55 -0
  266. package/{esm2015/list/ptsecurity-mosaic-list.js → esm2020/list/ptsecurity-mosaic-list.mjs} +0 -0
  267. package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
  268. package/esm2020/modal/css-unit.pipe.mjs +17 -0
  269. package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
  270. package/esm2020/modal/modal-control.service.mjs +85 -0
  271. package/{esm2015/modal/modal-ref.class.js → esm2020/modal/modal-ref.class.mjs} +0 -0
  272. package/{esm2015/modal/modal-util.js → esm2020/modal/modal-util.mjs} +0 -0
  273. package/esm2020/modal/modal.component.mjs +501 -0
  274. package/esm2020/modal/modal.directive.mjs +52 -0
  275. package/esm2020/modal/modal.module.mjs +72 -0
  276. package/esm2020/modal/modal.service.mjs +124 -0
  277. package/{esm2015/modal/modal.type.js → esm2020/modal/modal.type.mjs} +0 -0
  278. package/{esm2015/modal/ptsecurity-mosaic-modal.js → esm2020/modal/ptsecurity-mosaic-modal.mjs} +0 -0
  279. package/{esm2015/modal/public-api.js → esm2020/modal/public-api.mjs} +0 -0
  280. package/{esm2015/navbar/index.js → esm2020/navbar/index.mjs} +0 -0
  281. package/esm2020/navbar/navbar-item.component.mjs +583 -0
  282. package/esm2020/navbar/navbar.component.mjs +237 -0
  283. package/esm2020/navbar/navbar.module.mjs +92 -0
  284. package/{esm2015/navbar/ptsecurity-mosaic-navbar.js → esm2020/navbar/ptsecurity-mosaic-navbar.mjs} +0 -0
  285. package/{esm2015/navbar/public-api.js → esm2020/navbar/public-api.mjs} +0 -0
  286. package/esm2020/navbar/vertical-navbar.animation.mjs +10 -0
  287. package/esm2020/navbar/vertical-navbar.component.mjs +114 -0
  288. package/{esm2015/popover/index.js → esm2020/popover/index.mjs} +0 -0
  289. package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
  290. package/esm2020/popover/popover-confirm.component.mjs +108 -0
  291. package/esm2020/popover/popover.component.mjs +253 -0
  292. package/esm2020/popover/popover.module.mjs +24 -0
  293. package/{esm2015/popover/ptsecurity-mosaic-popover.js → esm2020/popover/ptsecurity-mosaic-popover.mjs} +0 -0
  294. package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +0 -0
  295. package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
  296. package/esm2020/progress-bar/progress-bar.component.mjs +42 -0
  297. package/esm2020/progress-bar/progress-bar.module.mjs +30 -0
  298. package/{esm2015/progress-bar/ptsecurity-mosaic-progress-bar.js → esm2020/progress-bar/ptsecurity-mosaic-progress-bar.mjs} +0 -0
  299. package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
  300. package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
  301. package/esm2020/progress-spinner/progress-spinner.component.mjs +46 -0
  302. package/esm2020/progress-spinner/progress-spinner.module.mjs +30 -0
  303. package/{esm2015/progress-spinner/ptsecurity-mosaic-progress-spinner.js → esm2020/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs} +0 -0
  304. package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
  305. package/{esm2015/ptsecurity-mosaic.js → esm2020/ptsecurity-mosaic.mjs} +0 -0
  306. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  307. package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
  308. package/{esm2015/radio/ptsecurity-mosaic-radio.js → esm2020/radio/ptsecurity-mosaic-radio.mjs} +0 -0
  309. package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
  310. package/esm2020/radio/radio.component.mjs +458 -0
  311. package/esm2020/radio/radio.module.mjs +20 -0
  312. package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
  313. package/{esm2015/select/ptsecurity-mosaic-select.js → esm2020/select/ptsecurity-mosaic-select.mjs} +0 -0
  314. package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
  315. package/esm2020/select/select.component.mjs +1110 -0
  316. package/esm2020/select/select.module.mjs +64 -0
  317. package/{esm2015/sidebar/index.js → esm2020/sidebar/index.mjs} +0 -0
  318. package/{esm2015/sidebar/ptsecurity-mosaic-sidebar.js → esm2020/sidebar/ptsecurity-mosaic-sidebar.mjs} +0 -0
  319. package/{esm2015/sidebar/public-api.js → esm2020/sidebar/public-api.mjs} +0 -0
  320. package/{esm2015/sidebar/sidebar-animations.js → esm2020/sidebar/sidebar-animations.mjs} +0 -0
  321. package/esm2020/sidebar/sidebar.component.mjs +146 -0
  322. package/esm2020/sidebar/sidebar.module.mjs +30 -0
  323. package/{esm2015/sidepanel/index.js → esm2020/sidepanel/index.mjs} +0 -0
  324. package/{esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js → esm2020/sidepanel/ptsecurity-mosaic-sidepanel.mjs} +0 -0
  325. package/{esm2015/sidepanel/public-api.js → esm2020/sidepanel/public-api.mjs} +0 -0
  326. package/{esm2015/sidepanel/sidepanel-animations.js → esm2020/sidepanel/sidepanel-animations.mjs} +0 -0
  327. package/{esm2015/sidepanel/sidepanel-config.js → esm2020/sidepanel/sidepanel-config.mjs} +0 -0
  328. package/esm2020/sidepanel/sidepanel-container.component.mjs +106 -0
  329. package/esm2020/sidepanel/sidepanel-directives.mjs +159 -0
  330. package/{esm2015/sidepanel/sidepanel-ref.js → esm2020/sidepanel/sidepanel-ref.mjs} +0 -0
  331. package/esm2020/sidepanel/sidepanel.module.mjs +74 -0
  332. package/esm2020/sidepanel/sidepanel.service.mjs +167 -0
  333. package/{esm2015/splitter/index.js → esm2020/splitter/index.mjs} +0 -0
  334. package/{esm2015/splitter/ptsecurity-mosaic-splitter.js → esm2020/splitter/ptsecurity-mosaic-splitter.mjs} +0 -0
  335. package/{esm2015/splitter/public-api.js → esm2020/splitter/public-api.mjs} +0 -0
  336. package/esm2020/splitter/splitter.component.mjs +482 -0
  337. package/esm2020/splitter/splitter.module.mjs +40 -0
  338. package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  339. package/{esm2015/table/ptsecurity-mosaic-table.js → esm2020/table/ptsecurity-mosaic-table.mjs} +0 -0
  340. package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
  341. package/esm2020/table/table.component.mjs +16 -0
  342. package/esm2020/table/table.module.mjs +30 -0
  343. package/{esm2015/tabs/index.js → esm2020/tabs/index.mjs} +0 -0
  344. package/esm2020/tabs/paginated-tab-header.mjs +479 -0
  345. package/{esm2015/tabs/ptsecurity-mosaic-tabs.js → esm2020/tabs/ptsecurity-mosaic-tabs.mjs} +0 -0
  346. package/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -0
  347. package/esm2020/tabs/tab-body.component.mjs +178 -0
  348. package/esm2020/tabs/tab-content.directive.mjs +15 -0
  349. package/esm2020/tabs/tab-group.component.mjs +350 -0
  350. package/esm2020/tabs/tab-header.component.mjs +67 -0
  351. package/esm2020/tabs/tab-label-wrapper.directive.mjs +78 -0
  352. package/esm2020/tabs/tab-label.directive.mjs +17 -0
  353. package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
  354. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +110 -0
  355. package/esm2020/tabs/tab.component.mjs +133 -0
  356. package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
  357. package/esm2020/tabs/tabs.module.mjs +104 -0
  358. package/{esm2015/tags/index.js → esm2020/tags/index.mjs} +0 -0
  359. package/{esm2015/tags/ptsecurity-mosaic-tags.js → esm2020/tags/ptsecurity-mosaic-tags.mjs} +0 -0
  360. package/{esm2015/tags/public-api.js → esm2020/tags/public-api.mjs} +0 -0
  361. package/{esm2015/tags/tag-default-options.js → esm2020/tags/tag-default-options.mjs} +0 -0
  362. package/esm2020/tags/tag-input.mjs +229 -0
  363. package/esm2020/tags/tag-list.component.mjs +722 -0
  364. package/{esm2015/tags/tag-text-control.js → esm2020/tags/tag-text-control.mjs} +0 -0
  365. package/esm2020/tags/tag.component.mjs +377 -0
  366. package/esm2020/tags/tag.module.mjs +56 -0
  367. package/{esm2015/textarea/index.js → esm2020/textarea/index.mjs} +0 -0
  368. package/{esm2015/textarea/ptsecurity-mosaic-textarea.js → esm2020/textarea/ptsecurity-mosaic-textarea.mjs} +0 -0
  369. package/{esm2015/textarea/public-api.js → esm2020/textarea/public-api.mjs} +0 -0
  370. package/esm2020/textarea/textarea.component.mjs +268 -0
  371. package/esm2020/textarea/textarea.module.mjs +21 -0
  372. package/{esm2015/timepicker/index.js → esm2020/timepicker/index.mjs} +0 -0
  373. package/{esm2015/timepicker/ptsecurity-mosaic-timepicker.js → esm2020/timepicker/ptsecurity-mosaic-timepicker.mjs} +0 -0
  374. package/{esm2015/timepicker/public-api.js → esm2020/timepicker/public-api.mjs} +0 -0
  375. package/{esm2015/timepicker/timepicker.constants.js → esm2020/timepicker/timepicker.constants.mjs} +0 -0
  376. package/esm2020/timepicker/timepicker.directive.mjs +653 -0
  377. package/esm2020/timepicker/timepicker.module.mjs +34 -0
  378. package/{esm2015/toggle/index.js → esm2020/toggle/index.mjs} +0 -0
  379. package/{esm2015/toggle/ptsecurity-mosaic-toggle.js → esm2020/toggle/ptsecurity-mosaic-toggle.mjs} +0 -0
  380. package/{esm2015/toggle/public-api.js → esm2020/toggle/public-api.mjs} +0 -0
  381. package/esm2020/toggle/toggle.component.mjs +158 -0
  382. package/esm2020/toggle/toggle.module.mjs +20 -0
  383. package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
  384. package/{esm2015/tooltip/ptsecurity-mosaic-tooltip.js → esm2020/tooltip/ptsecurity-mosaic-tooltip.mjs} +0 -0
  385. package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
  386. package/{esm2015/tooltip/tooltip.animations.js → esm2020/tooltip/tooltip.animations.mjs} +0 -0
  387. package/esm2020/tooltip/tooltip.component.mjs +294 -0
  388. package/esm2020/tooltip/tooltip.module.mjs +43 -0
  389. package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +0 -0
  390. package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +0 -0
  391. package/{esm2015/tree/control/nested-tree-control.js → esm2020/tree/control/nested-tree-control.mjs} +0 -0
  392. package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
  393. package/esm2020/tree/data-source/flat-data-source.mjs +162 -0
  394. package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
  395. package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
  396. package/esm2020/tree/node.mjs +31 -0
  397. package/esm2020/tree/outlet.mjs +15 -0
  398. package/esm2020/tree/padding.directive.mjs +110 -0
  399. package/{esm2015/tree/ptsecurity-mosaic-tree.js → esm2020/tree/ptsecurity-mosaic-tree.mjs} +0 -0
  400. package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
  401. package/esm2020/tree/toggle.mjs +80 -0
  402. package/esm2020/tree/tree-base.mjs +243 -0
  403. package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
  404. package/esm2020/tree/tree-option.component.mjs +234 -0
  405. package/esm2020/tree/tree-selection.component.mjs +533 -0
  406. package/esm2020/tree/tree.mjs +15 -0
  407. package/esm2020/tree/tree.module.mjs +53 -0
  408. package/{esm2015/tree-select/index.js → esm2020/tree-select/index.mjs} +0 -0
  409. package/{esm2015/tree-select/ptsecurity-mosaic-tree-select.js → esm2020/tree-select/ptsecurity-mosaic-tree-select.mjs} +0 -0
  410. package/{esm2015/tree-select/public-api.js → esm2020/tree-select/public-api.mjs} +0 -0
  411. package/esm2020/tree-select/tree-select.component.mjs +925 -0
  412. package/esm2020/tree-select/tree-select.module.mjs +47 -0
  413. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +756 -0
  414. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  415. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +385 -0
  416. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  417. package/fesm2015/ptsecurity-mosaic-button.mjs +170 -0
  418. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -0
  419. package/fesm2015/ptsecurity-mosaic-card.mjs +113 -0
  420. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -0
  421. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +366 -0
  422. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  423. package/fesm2015/ptsecurity-mosaic-core.mjs +2704 -0
  424. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -0
  425. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +2700 -0
  426. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  427. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +2925 -0
  428. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  429. package/fesm2015/ptsecurity-mosaic-divider.mjs +61 -0
  430. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -0
  431. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1106 -0
  432. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  433. package/fesm2015/ptsecurity-mosaic-form-field.mjs +378 -0
  434. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -0
  435. package/fesm2015/ptsecurity-mosaic-icon.mjs +88 -0
  436. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -0
  437. package/fesm2015/ptsecurity-mosaic-input.mjs +609 -0
  438. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -0
  439. package/fesm2015/ptsecurity-mosaic-link.mjs +137 -0
  440. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -0
  441. package/fesm2015/ptsecurity-mosaic-list.mjs +791 -0
  442. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -0
  443. package/fesm2015/ptsecurity-mosaic-modal.mjs +864 -0
  444. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -0
  445. package/fesm2015/ptsecurity-mosaic-navbar.mjs +1031 -0
  446. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -0
  447. package/fesm2015/ptsecurity-mosaic-popover.mjs +393 -0
  448. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -0
  449. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +76 -0
  450. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  451. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  452. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  453. package/fesm2015/ptsecurity-mosaic-radio.mjs +481 -0
  454. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -0
  455. package/fesm2015/ptsecurity-mosaic-select.mjs +1175 -0
  456. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -0
  457. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +202 -0
  458. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  459. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +592 -0
  460. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  461. package/fesm2015/ptsecurity-mosaic-splitter.mjs +526 -0
  462. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -0
  463. package/fesm2015/ptsecurity-mosaic-table.mjs +50 -0
  464. package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -0
  465. package/fesm2015/ptsecurity-mosaic-tabs.mjs +1511 -0
  466. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -0
  467. package/fesm2015/ptsecurity-mosaic-tags.mjs +1377 -0
  468. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -0
  469. package/fesm2015/ptsecurity-mosaic-textarea.mjs +293 -0
  470. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -0
  471. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +715 -0
  472. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  473. package/fesm2015/ptsecurity-mosaic-toggle.mjs +180 -0
  474. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -0
  475. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +365 -0
  476. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  477. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +972 -0
  478. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  479. package/fesm2015/ptsecurity-mosaic-tree.mjs +1718 -0
  480. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -0
  481. package/fesm2015/ptsecurity-mosaic.mjs +4 -0
  482. package/fesm2015/ptsecurity-mosaic.mjs.map +1 -0
  483. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +752 -0
  484. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  485. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +383 -0
  486. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  487. package/fesm2020/ptsecurity-mosaic-button.mjs +170 -0
  488. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -0
  489. package/fesm2020/ptsecurity-mosaic-card.mjs +113 -0
  490. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -0
  491. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +364 -0
  492. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  493. package/fesm2020/ptsecurity-mosaic-core.mjs +2733 -0
  494. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -0
  495. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +2687 -0
  496. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  497. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +2925 -0
  498. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  499. package/fesm2020/ptsecurity-mosaic-divider.mjs +61 -0
  500. package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -0
  501. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +1093 -0
  502. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  503. package/fesm2020/ptsecurity-mosaic-form-field.mjs +377 -0
  504. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -0
  505. package/fesm2020/ptsecurity-mosaic-icon.mjs +86 -0
  506. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -0
  507. package/fesm2020/ptsecurity-mosaic-input.mjs +605 -0
  508. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -0
  509. package/fesm2020/ptsecurity-mosaic-link.mjs +136 -0
  510. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -0
  511. package/fesm2020/ptsecurity-mosaic-list.mjs +784 -0
  512. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -0
  513. package/fesm2020/ptsecurity-mosaic-modal.mjs +860 -0
  514. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -0
  515. package/fesm2020/ptsecurity-mosaic-navbar.mjs +1015 -0
  516. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -0
  517. package/fesm2020/ptsecurity-mosaic-popover.mjs +389 -0
  518. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -0
  519. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +76 -0
  520. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  521. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  522. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  523. package/fesm2020/ptsecurity-mosaic-radio.mjs +479 -0
  524. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -0
  525. package/fesm2020/ptsecurity-mosaic-select.mjs +1173 -0
  526. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -0
  527. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +202 -0
  528. package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  529. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +589 -0
  530. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  531. package/fesm2020/ptsecurity-mosaic-splitter.mjs +526 -0
  532. package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -0
  533. package/fesm2020/ptsecurity-mosaic-table.mjs +50 -0
  534. package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -0
  535. package/fesm2020/ptsecurity-mosaic-tabs.mjs +1496 -0
  536. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -0
  537. package/fesm2020/ptsecurity-mosaic-tags.mjs +1370 -0
  538. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -0
  539. package/fesm2020/ptsecurity-mosaic-textarea.mjs +291 -0
  540. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -0
  541. package/fesm2020/ptsecurity-mosaic-timepicker.mjs +713 -0
  542. package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  543. package/fesm2020/ptsecurity-mosaic-toggle.mjs +180 -0
  544. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -0
  545. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +357 -0
  546. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  547. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +970 -0
  548. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  549. package/fesm2020/ptsecurity-mosaic-tree.mjs +1705 -0
  550. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -0
  551. package/fesm2020/ptsecurity-mosaic.mjs +4 -0
  552. package/fesm2020/ptsecurity-mosaic.mjs.map +1 -0
  553. package/form-field/README.md +0 -0
  554. package/form-field/package.json +5 -5
  555. package/icon/README.md +0 -0
  556. package/icon/package.json +5 -5
  557. package/input/package.json +5 -5
  558. package/link/README.md +0 -0
  559. package/link/package.json +5 -5
  560. package/list/README.md +0 -0
  561. package/list/package.json +5 -5
  562. package/modal/README.md +34 -0
  563. package/modal/modal-control.service.d.ts +1 -0
  564. package/modal/package.json +5 -5
  565. package/navbar/README.md +41 -0
  566. package/navbar/navbar-item.component.d.ts +123 -34
  567. package/navbar/navbar.component.d.ts +37 -9
  568. package/navbar/navbar.module.d.ts +2 -1
  569. package/navbar/package.json +5 -5
  570. package/navbar/vertical-navbar.component.d.ts +15 -26
  571. package/package.json +299 -14
  572. package/popover/README.md +32 -0
  573. package/popover/package.json +5 -5
  574. package/prebuilt-themes/dark-theme.css +1 -1
  575. package/prebuilt-themes/default-theme.css +1 -1
  576. package/prebuilt-visual/default-visual.css +1 -1
  577. package/progress-bar/README.md +0 -0
  578. package/progress-bar/package.json +5 -5
  579. package/progress-spinner/README.md +0 -0
  580. package/progress-spinner/package.json +5 -5
  581. package/radio/package.json +5 -5
  582. package/schematics/README.md +35 -0
  583. package/schematics/ng-update/data/index.d.ts +1 -0
  584. package/schematics/ng-update/data/index.js +10 -9
  585. package/schematics/ng-update/data/index.js.map +1 -1
  586. package/schematics/ng-update/data/symbol-removal.d.ts +2 -0
  587. package/schematics/ng-update/data/symbol-removal.js +5 -0
  588. package/schematics/ng-update/data/symbol-removal.js.map +1 -0
  589. package/schematics/ng-update/index.js +3 -3
  590. package/schematics/ng-update/index.js.map +1 -1
  591. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +1 -2
  592. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
  593. package/schematics/ng-update/upgrade-data.js +2 -1
  594. package/schematics/ng-update/upgrade-data.js.map +1 -1
  595. package/schematics/tsconfig.lib.json +2 -2
  596. package/select/README.md +0 -0
  597. package/select/package.json +5 -5
  598. package/sidebar/package.json +5 -5
  599. package/sidepanel/package.json +5 -5
  600. package/splitter/package.json +5 -5
  601. package/table/README.md +0 -0
  602. package/table/package.json +5 -5
  603. package/tabs/README.md +0 -0
  604. package/tabs/package.json +5 -5
  605. package/tags/README.md +0 -0
  606. package/tags/package.json +5 -5
  607. package/textarea/README.md +0 -0
  608. package/textarea/package.json +5 -5
  609. package/timepicker/README.md +0 -0
  610. package/timepicker/package.json +5 -5
  611. package/toggle/package.json +5 -5
  612. package/tooltip/package.json +5 -5
  613. package/tree/data-source/flat-data-source.d.ts +2 -2
  614. package/tree/package.json +5 -5
  615. package/tree/tree-option.component.d.ts +5 -3
  616. package/tree/tree-selection.component.d.ts +1 -0
  617. package/tree-select/README.md +0 -0
  618. package/tree-select/package.json +5 -5
  619. package/tree-select/tree-select.component.d.ts +9 -1
  620. package/tree-select/tree-select.module.d.ts +2 -1
  621. package/bundles/ptsecurity-mosaic-autocomplete.umd.js +0 -1160
  622. package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +0 -1
  623. package/bundles/ptsecurity-mosaic-button-toggle.umd.js +0 -755
  624. package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +0 -1
  625. package/bundles/ptsecurity-mosaic-button.umd.js +0 -533
  626. package/bundles/ptsecurity-mosaic-button.umd.js.map +0 -1
  627. package/bundles/ptsecurity-mosaic-card.umd.js +0 -479
  628. package/bundles/ptsecurity-mosaic-card.umd.js.map +0 -1
  629. package/bundles/ptsecurity-mosaic-checkbox.umd.js +0 -762
  630. package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +0 -1
  631. package/bundles/ptsecurity-mosaic-core.umd.js +0 -2841
  632. package/bundles/ptsecurity-mosaic-core.umd.js.map +0 -1
  633. package/bundles/ptsecurity-mosaic-datepicker.umd.js +0 -3362
  634. package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +0 -1
  635. package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1871
  636. package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +0 -1
  637. package/bundles/ptsecurity-mosaic-divider.umd.js +0 -106
  638. package/bundles/ptsecurity-mosaic-divider.umd.js.map +0 -1
  639. package/bundles/ptsecurity-mosaic-dropdown.umd.js +0 -1532
  640. package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +0 -1
  641. package/bundles/ptsecurity-mosaic-form-field.umd.js +0 -788
  642. package/bundles/ptsecurity-mosaic-form-field.umd.js.map +0 -1
  643. package/bundles/ptsecurity-mosaic-icon.umd.js +0 -450
  644. package/bundles/ptsecurity-mosaic-icon.umd.js.map +0 -1
  645. package/bundles/ptsecurity-mosaic-input.umd.js +0 -1008
  646. package/bundles/ptsecurity-mosaic-input.umd.js.map +0 -1
  647. package/bundles/ptsecurity-mosaic-link.umd.js +0 -515
  648. package/bundles/ptsecurity-mosaic-link.umd.js.map +0 -1
  649. package/bundles/ptsecurity-mosaic-list.umd.js +0 -1251
  650. package/bundles/ptsecurity-mosaic-list.umd.js.map +0 -1
  651. package/bundles/ptsecurity-mosaic-modal.umd.js +0 -1312
  652. package/bundles/ptsecurity-mosaic-modal.umd.js.map +0 -1
  653. package/bundles/ptsecurity-mosaic-navbar.umd.js +0 -930
  654. package/bundles/ptsecurity-mosaic-navbar.umd.js.map +0 -1
  655. package/bundles/ptsecurity-mosaic-popover.umd.js +0 -836
  656. package/bundles/ptsecurity-mosaic-popover.umd.js.map +0 -1
  657. package/bundles/ptsecurity-mosaic-progress-bar.umd.js +0 -440
  658. package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +0 -1
  659. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +0 -448
  660. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +0 -1
  661. package/bundles/ptsecurity-mosaic-radio.umd.js +0 -901
  662. package/bundles/ptsecurity-mosaic-radio.umd.js.map +0 -1
  663. package/bundles/ptsecurity-mosaic-select.umd.js +0 -1606
  664. package/bundles/ptsecurity-mosaic-select.umd.js.map +0 -1
  665. package/bundles/ptsecurity-mosaic-sidebar.umd.js +0 -254
  666. package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +0 -1
  667. package/bundles/ptsecurity-mosaic-sidepanel.umd.js +0 -954
  668. package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +0 -1
  669. package/bundles/ptsecurity-mosaic-splitter.umd.js +0 -635
  670. package/bundles/ptsecurity-mosaic-splitter.umd.js.map +0 -1
  671. package/bundles/ptsecurity-mosaic-table.umd.js +0 -81
  672. package/bundles/ptsecurity-mosaic-table.umd.js.map +0 -1
  673. package/bundles/ptsecurity-mosaic-tabs.umd.js +0 -2013
  674. package/bundles/ptsecurity-mosaic-tabs.umd.js.map +0 -1
  675. package/bundles/ptsecurity-mosaic-tags.umd.js +0 -1917
  676. package/bundles/ptsecurity-mosaic-tags.umd.js.map +0 -1
  677. package/bundles/ptsecurity-mosaic-textarea.umd.js +0 -664
  678. package/bundles/ptsecurity-mosaic-textarea.umd.js.map +0 -1
  679. package/bundles/ptsecurity-mosaic-timepicker.umd.js +0 -821
  680. package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +0 -1
  681. package/bundles/ptsecurity-mosaic-toggle.umd.js +0 -557
  682. package/bundles/ptsecurity-mosaic-toggle.umd.js.map +0 -1
  683. package/bundles/ptsecurity-mosaic-tooltip.umd.js +0 -777
  684. package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +0 -1
  685. package/bundles/ptsecurity-mosaic-tree-select.umd.js +0 -1369
  686. package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +0 -1
  687. package/bundles/ptsecurity-mosaic-tree.umd.js +0 -2301
  688. package/bundles/ptsecurity-mosaic-tree.umd.js.map +0 -1
  689. package/bundles/ptsecurity-mosaic.umd.js +0 -11
  690. package/bundles/ptsecurity-mosaic.umd.js.map +0 -1
  691. package/design-tokens/tokens/components/checkbox.json5 +0 -39
  692. package/design-tokens/tokens/components/modal.json5 +0 -67
  693. package/design-tokens/tokens/components/navbar.json5 +0 -64
  694. package/design-tokens/tokens/components/radio.json5 +0 -45
  695. package/design-tokens/tokens/components/tags.json5 +0 -126
  696. package/design-tokens/tokens/components/toggle.json5 +0 -55
  697. package/design-tokens/tokens.d.ts +0 -7636
  698. package/esm2015/autocomplete/autocomplete-origin.directive.js +0 -21
  699. package/esm2015/autocomplete/autocomplete-trigger.directive.js +0 -555
  700. package/esm2015/autocomplete/autocomplete.component.js +0 -163
  701. package/esm2015/autocomplete/autocomplete.module.js +0 -34
  702. package/esm2015/button/button.component.js +0 -129
  703. package/esm2015/button/button.module.js +0 -42
  704. package/esm2015/button-toggle/button-toggle.component.js +0 -370
  705. package/esm2015/button-toggle/button-toggle.module.js +0 -19
  706. package/esm2015/card/card.component.js +0 -88
  707. package/esm2015/card/card.module.js +0 -30
  708. package/esm2015/checkbox/checkbox-module.js +0 -19
  709. package/esm2015/checkbox/checkbox-required-validator.js +0 -27
  710. package/esm2015/checkbox/checkbox.js +0 -325
  711. package/esm2015/core/common-behaviors/common-module.js +0 -83
  712. package/esm2015/core/error/error-options.js +0 -26
  713. package/esm2015/core/formatters/date/formatter.js +0 -288
  714. package/esm2015/core/formatters/date/templates/en-US.js +0 -280
  715. package/esm2015/core/formatters/date/templates/ru-RU.js +0 -280
  716. package/esm2015/core/formatters/index.js +0 -20
  717. package/esm2015/core/formatters/number/formatter.js +0 -99
  718. package/esm2015/core/forms/forms-module.js +0 -24
  719. package/esm2015/core/forms/forms.directive.js +0 -66
  720. package/esm2015/core/highlight/highlight.pipe.js +0 -17
  721. package/esm2015/core/highlight/index.js +0 -19
  722. package/esm2015/core/line/line.js +0 -70
  723. package/esm2015/core/option/action.js +0 -131
  724. package/esm2015/core/option/optgroup.js +0 -40
  725. package/esm2015/core/option/option-module.js +0 -21
  726. package/esm2015/core/option/option.js +0 -262
  727. package/esm2015/core/pop-up/pop-up-trigger.js +0 -239
  728. package/esm2015/core/pop-up/pop-up.js +0 -87
  729. package/esm2015/core/public-api.js +0 -17
  730. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -45
  731. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +0 -18
  732. package/esm2015/core/services/measure-scrollbar.service.js +0 -48
  733. package/esm2015/datepicker/calendar-body.component.js +0 -114
  734. package/esm2015/datepicker/calendar.component.js +0 -377
  735. package/esm2015/datepicker/datepicker-input.directive.js +0 -892
  736. package/esm2015/datepicker/datepicker-intl.js +0 -40
  737. package/esm2015/datepicker/datepicker-module.js +0 -107
  738. package/esm2015/datepicker/datepicker-toggle.component.js +0 -94
  739. package/esm2015/datepicker/datepicker.component.js +0 -418
  740. package/esm2015/datepicker/month-view.component.js +0 -263
  741. package/esm2015/datepicker/multi-year-view.component.js +0 -224
  742. package/esm2015/datepicker/year-view.component.js +0 -259
  743. package/esm2015/design-tokens/public-api.js +0 -2
  744. package/esm2015/design-tokens/tokens.js +0 -930
  745. package/esm2015/divider/divider.component.js +0 -46
  746. package/esm2015/divider/divider.module.js +0 -18
  747. package/esm2015/dropdown/dropdown-content.directive.js +0 -66
  748. package/esm2015/dropdown/dropdown-item.component.js +0 -149
  749. package/esm2015/dropdown/dropdown-trigger.directive.js +0 -486
  750. package/esm2015/dropdown/dropdown.component.js +0 -302
  751. package/esm2015/dropdown/dropdown.module.js +0 -50
  752. package/esm2015/form-field/cleaner.js +0 -23
  753. package/esm2015/form-field/form-field.js +0 -224
  754. package/esm2015/form-field/form-field.module.js +0 -52
  755. package/esm2015/form-field/hint.js +0 -23
  756. package/esm2015/form-field/prefix.js +0 -13
  757. package/esm2015/form-field/stepper.js +0 -55
  758. package/esm2015/form-field/suffix.js +0 -13
  759. package/esm2015/icon/icon.component.js +0 -51
  760. package/esm2015/icon/icon.module.js +0 -38
  761. package/esm2015/input/input-number-validators.js +0 -92
  762. package/esm2015/input/input-number.js +0 -163
  763. package/esm2015/input/input.js +0 -333
  764. package/esm2015/input/input.module.js +0 -23
  765. package/esm2015/link/link.component.js +0 -108
  766. package/esm2015/link/link.module.js +0 -26
  767. package/esm2015/list/list-selection.component.js +0 -711
  768. package/esm2015/list/list.component.js +0 -58
  769. package/esm2015/list/list.module.js +0 -55
  770. package/esm2015/modal/css-unit.pipe.js +0 -17
  771. package/esm2015/modal/modal-control.service.js +0 -63
  772. package/esm2015/modal/modal.component.js +0 -508
  773. package/esm2015/modal/modal.directive.js +0 -52
  774. package/esm2015/modal/modal.module.js +0 -72
  775. package/esm2015/modal/modal.service.js +0 -124
  776. package/esm2015/navbar/navbar-item.component.js +0 -209
  777. package/esm2015/navbar/navbar.component.js +0 -118
  778. package/esm2015/navbar/navbar.module.js +0 -76
  779. package/esm2015/navbar/vertical-navbar.animation.js +0 -10
  780. package/esm2015/navbar/vertical-navbar.component.js +0 -140
  781. package/esm2015/popover/popover-confirm.component.js +0 -116
  782. package/esm2015/popover/popover.component.js +0 -262
  783. package/esm2015/popover/popover.module.js +0 -24
  784. package/esm2015/progress-bar/progress-bar.component.js +0 -50
  785. package/esm2015/progress-bar/progress-bar.module.js +0 -30
  786. package/esm2015/progress-spinner/progress-spinner.component.js +0 -54
  787. package/esm2015/progress-spinner/progress-spinner.module.js +0 -30
  788. package/esm2015/radio/radio.component.js +0 -467
  789. package/esm2015/radio/radio.module.js +0 -20
  790. package/esm2015/select/select.component.js +0 -1122
  791. package/esm2015/select/select.module.js +0 -64
  792. package/esm2015/sidebar/sidebar.component.js +0 -155
  793. package/esm2015/sidebar/sidebar.module.js +0 -30
  794. package/esm2015/sidepanel/sidepanel-container.component.js +0 -114
  795. package/esm2015/sidepanel/sidepanel-directives.js +0 -159
  796. package/esm2015/sidepanel/sidepanel.module.js +0 -74
  797. package/esm2015/sidepanel/sidepanel.service.js +0 -164
  798. package/esm2015/splitter/splitter.component.js +0 -489
  799. package/esm2015/splitter/splitter.module.js +0 -40
  800. package/esm2015/table/table.component.js +0 -16
  801. package/esm2015/table/table.module.js +0 -30
  802. package/esm2015/tabs/paginated-tab-header.js +0 -482
  803. package/esm2015/tabs/tab-body.component.js +0 -186
  804. package/esm2015/tabs/tab-content.directive.js +0 -15
  805. package/esm2015/tabs/tab-group.component.js +0 -359
  806. package/esm2015/tabs/tab-header.component.js +0 -76
  807. package/esm2015/tabs/tab-label-wrapper.directive.js +0 -78
  808. package/esm2015/tabs/tab-label.directive.js +0 -17
  809. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -118
  810. package/esm2015/tabs/tab.component.js +0 -133
  811. package/esm2015/tabs/tabs.module.js +0 -104
  812. package/esm2015/tags/tag-input.js +0 -229
  813. package/esm2015/tags/tag-list.component.js +0 -732
  814. package/esm2015/tags/tag.component.js +0 -386
  815. package/esm2015/tags/tag.module.js +0 -56
  816. package/esm2015/textarea/textarea.component.js +0 -268
  817. package/esm2015/textarea/textarea.module.js +0 -21
  818. package/esm2015/timepicker/timepicker.directive.js +0 -653
  819. package/esm2015/timepicker/timepicker.module.js +0 -34
  820. package/esm2015/toggle/toggle.component.js +0 -169
  821. package/esm2015/toggle/toggle.module.js +0 -20
  822. package/esm2015/tooltip/tooltip.component.js +0 -299
  823. package/esm2015/tooltip/tooltip.module.js +0 -43
  824. package/esm2015/tree/data-source/flat-data-source.js +0 -162
  825. package/esm2015/tree/node.js +0 -31
  826. package/esm2015/tree/outlet.js +0 -15
  827. package/esm2015/tree/padding.directive.js +0 -111
  828. package/esm2015/tree/toggle.js +0 -89
  829. package/esm2015/tree/tree-base.js +0 -243
  830. package/esm2015/tree/tree-option.component.js +0 -238
  831. package/esm2015/tree/tree-selection.component.js +0 -541
  832. package/esm2015/tree/tree.js +0 -23
  833. package/esm2015/tree/tree.module.js +0 -53
  834. package/esm2015/tree-select/tree-select.component.js +0 -901
  835. package/esm2015/tree-select/tree-select.module.js +0 -43
  836. package/fesm2015/ptsecurity-mosaic-autocomplete.js +0 -761
  837. package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +0 -1
  838. package/fesm2015/ptsecurity-mosaic-button-toggle.js +0 -391
  839. package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +0 -1
  840. package/fesm2015/ptsecurity-mosaic-button.js +0 -174
  841. package/fesm2015/ptsecurity-mosaic-button.js.map +0 -1
  842. package/fesm2015/ptsecurity-mosaic-card.js +0 -121
  843. package/fesm2015/ptsecurity-mosaic-card.js.map +0 -1
  844. package/fesm2015/ptsecurity-mosaic-checkbox.js +0 -374
  845. package/fesm2015/ptsecurity-mosaic-checkbox.js.map +0 -1
  846. package/fesm2015/ptsecurity-mosaic-core.js +0 -2680
  847. package/fesm2015/ptsecurity-mosaic-core.js.map +0 -1
  848. package/fesm2015/ptsecurity-mosaic-datepicker.js +0 -2738
  849. package/fesm2015/ptsecurity-mosaic-datepicker.js.map +0 -1
  850. package/fesm2015/ptsecurity-mosaic-design-tokens.js +0 -936
  851. package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +0 -1
  852. package/fesm2015/ptsecurity-mosaic-divider.js +0 -68
  853. package/fesm2015/ptsecurity-mosaic-divider.js.map +0 -1
  854. package/fesm2015/ptsecurity-mosaic-dropdown.js +0 -1116
  855. package/fesm2015/ptsecurity-mosaic-dropdown.js.map +0 -1
  856. package/fesm2015/ptsecurity-mosaic-form-field.js +0 -396
  857. package/fesm2015/ptsecurity-mosaic-form-field.js.map +0 -1
  858. package/fesm2015/ptsecurity-mosaic-icon.js +0 -93
  859. package/fesm2015/ptsecurity-mosaic-icon.js.map +0 -1
  860. package/fesm2015/ptsecurity-mosaic-input.js +0 -605
  861. package/fesm2015/ptsecurity-mosaic-input.js.map +0 -1
  862. package/fesm2015/ptsecurity-mosaic-link.js +0 -137
  863. package/fesm2015/ptsecurity-mosaic-link.js.map +0 -1
  864. package/fesm2015/ptsecurity-mosaic-list.js +0 -822
  865. package/fesm2015/ptsecurity-mosaic-list.js.map +0 -1
  866. package/fesm2015/ptsecurity-mosaic-modal.js +0 -845
  867. package/fesm2015/ptsecurity-mosaic-modal.js.map +0 -1
  868. package/fesm2015/ptsecurity-mosaic-navbar.js +0 -539
  869. package/fesm2015/ptsecurity-mosaic-navbar.js.map +0 -1
  870. package/fesm2015/ptsecurity-mosaic-popover.js +0 -406
  871. package/fesm2015/ptsecurity-mosaic-popover.js.map +0 -1
  872. package/fesm2015/ptsecurity-mosaic-progress-bar.js +0 -84
  873. package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +0 -1
  874. package/fesm2015/ptsecurity-mosaic-progress-spinner.js +0 -88
  875. package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +0 -1
  876. package/fesm2015/ptsecurity-mosaic-radio.js +0 -488
  877. package/fesm2015/ptsecurity-mosaic-radio.js.map +0 -1
  878. package/fesm2015/ptsecurity-mosaic-select.js +0 -1185
  879. package/fesm2015/ptsecurity-mosaic-select.js.map +0 -1
  880. package/fesm2015/ptsecurity-mosaic-sidebar.js +0 -211
  881. package/fesm2015/ptsecurity-mosaic-sidebar.js.map +0 -1
  882. package/fesm2015/ptsecurity-mosaic-sidepanel.js +0 -594
  883. package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +0 -1
  884. package/fesm2015/ptsecurity-mosaic-splitter.js +0 -533
  885. package/fesm2015/ptsecurity-mosaic-splitter.js.map +0 -1
  886. package/fesm2015/ptsecurity-mosaic-table.js +0 -50
  887. package/fesm2015/ptsecurity-mosaic-table.js.map +0 -1
  888. package/fesm2015/ptsecurity-mosaic-tabs.js +0 -1533
  889. package/fesm2015/ptsecurity-mosaic-tabs.js.map +0 -1
  890. package/fesm2015/ptsecurity-mosaic-tags.js +0 -1389
  891. package/fesm2015/ptsecurity-mosaic-tags.js.map +0 -1
  892. package/fesm2015/ptsecurity-mosaic-textarea.js +0 -291
  893. package/fesm2015/ptsecurity-mosaic-textarea.js.map +0 -1
  894. package/fesm2015/ptsecurity-mosaic-timepicker.js +0 -713
  895. package/fesm2015/ptsecurity-mosaic-timepicker.js.map +0 -1
  896. package/fesm2015/ptsecurity-mosaic-toggle.js +0 -191
  897. package/fesm2015/ptsecurity-mosaic-toggle.js.map +0 -1
  898. package/fesm2015/ptsecurity-mosaic-tooltip.js +0 -362
  899. package/fesm2015/ptsecurity-mosaic-tooltip.js.map +0 -1
  900. package/fesm2015/ptsecurity-mosaic-tree-select.js +0 -943
  901. package/fesm2015/ptsecurity-mosaic-tree-select.js.map +0 -1
  902. package/fesm2015/ptsecurity-mosaic-tree.js +0 -1735
  903. package/fesm2015/ptsecurity-mosaic-tree.js.map +0 -1
  904. package/fesm2015/ptsecurity-mosaic.js +0 -4
  905. package/fesm2015/ptsecurity-mosaic.js.map +0 -1
@@ -1,1735 +0,0 @@
1
- import * as i2$1 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
3
- import * as i0 from '@angular/core';
4
- import { Directive, Input, ViewChild, ContentChildren, forwardRef, Inject, Optional, Component, ViewEncapsulation, ChangeDetectionStrategy, InjectionToken, EventEmitter, ContentChild, Output, QueryList, Attribute, NgModule } from '@angular/core';
5
- import * as i1 from '@ptsecurity/mosaic/core';
6
- import { mixinDisabled, MC_OPTION_ACTION_PARENT, McOptionActionComponent, MultipleMode, getMcSelectNonArrayValueError, McPseudoCheckboxModule } from '@ptsecurity/mosaic/core';
7
- import * as i2 from '@angular/cdk/bidi';
8
- import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
9
- import { TreeSizePaddingLeft } from '@ptsecurity/mosaic/design-tokens';
10
- import { BehaviorSubject, Subject, Observable, of, merge } from 'rxjs';
11
- import { takeUntil, map, take, delay } from 'rxjs/operators';
12
- import { TAB, hasModifierKey, SPACE, LEFT_ARROW, RIGHT_ARROW, isVerticalMovement, isSelectAll, isCopy, DOWN_ARROW, UP_ARROW, ENTER, HOME, END, PAGE_UP, PAGE_DOWN } from '@ptsecurity/cdk/keycodes';
13
- import { McDropdownTrigger } from '@ptsecurity/mosaic/dropdown';
14
- import { McTooltipTrigger } from '@ptsecurity/mosaic/tooltip';
15
- import * as i1$1 from '@angular/cdk/clipboard';
16
- import { SelectionModel, DataSource } from '@angular/cdk/collections';
17
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
18
- import { FocusKeyManager } from '@ptsecurity/cdk/a11y';
19
-
20
- /** Context provided to the tree node component. */
21
- class McTreeNodeOutletContext {
22
- constructor(data) {
23
- this.$implicit = data;
24
- }
25
- }
26
- /**
27
- * Data node definition for the McTree.
28
- * Captures the node's template and a when predicate that describes when this node should be used.
29
- */
30
- class McTreeNodeDef {
31
- /** @docs-private */
32
- constructor(template) {
33
- this.template = template;
34
- }
35
- }
36
- /** @nocollapse */ McTreeNodeDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
37
- /** @nocollapse */ McTreeNodeDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTreeNodeDef, selector: "[mcTreeNodeDef]", inputs: { when: ["mcTreeNodeDefWhen", "when"], data: ["mcTreeNode", "data"] }, ngImport: i0 });
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeDef, decorators: [{
39
- type: Directive,
40
- args: [{
41
- selector: '[mcTreeNodeDef]',
42
- inputs: ['when: mcTreeNodeDefWhen']
43
- }]
44
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{
45
- type: Input,
46
- args: ['mcTreeNode']
47
- }] } });
48
-
49
- class McTreeNodeOutlet {
50
- constructor(viewContainer, changeDetectorRef) {
51
- this.viewContainer = viewContainer;
52
- this.changeDetectorRef = changeDetectorRef;
53
- }
54
- }
55
- /** @nocollapse */ McTreeNodeOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
56
- /** @nocollapse */ McTreeNodeOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTreeNodeOutlet, selector: "[mcTreeNodeOutlet]", ngImport: i0 });
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeOutlet, decorators: [{
58
- type: Directive,
59
- args: [{ selector: '[mcTreeNodeOutlet]' }]
60
- }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; } });
61
-
62
- /**
63
- * Returns an error to be thrown when there is no usable data.
64
- * @docs-private
65
- */
66
- function getTreeNoValidDataSourceError() {
67
- return Error(`A valid data source must be provided.`);
68
- }
69
- /**
70
- * Returns an error to be thrown when there are multiple nodes that are missing a when function.
71
- * @docs-private
72
- */
73
- function getTreeMultipleDefaultNodeDefsError() {
74
- return Error(`There can only be one default row without a when predicate function.`);
75
- }
76
- /**
77
- * Returns an error to be thrown when there are no matching node defs for a particular set of data.
78
- * @docs-private
79
- */
80
- function getTreeMissingMatchingNodeDefError() {
81
- return Error(`Could not find a matching node definition for the provided node data.`);
82
- }
83
- /**
84
- * Returns an error to be thrown when there are tree control.
85
- * @docs-private
86
- */
87
- function getTreeControlMissingError() {
88
- return Error(`Could not find a tree control for the tree.`);
89
- }
90
- /**
91
- * Returns an error to be thrown when tree control did not implement functions for flat/nested node.
92
- * @docs-private
93
- */
94
- function getTreeControlFunctionsMissingError() {
95
- return Error(`Could not find functions for nested/flat tree in tree control.`);
96
- }
97
-
98
- class McTreeBase {
99
- constructor(differs, changeDetectorRef) {
100
- this.differs = differs;
101
- this.changeDetectorRef = changeDetectorRef;
102
- // TODO(tinayuangao): Setup a listener for scrolling, emit the calculated view to viewChange.
103
- // Remove the MAX_VALUE in viewChange
104
- /**
105
- * Stream containing the latest information on what rows are being displayed on screen.
106
- * Can be used by the data source to as a heuristic of what data should be provided.
107
- */
108
- this.viewChange = new BehaviorSubject({ start: 0, end: Number.MAX_VALUE });
109
- /** Subject that emits when the component has been destroyed. */
110
- this.onDestroy = new Subject();
111
- /** Level of nodes */
112
- this.levels = new Map();
113
- }
114
- /**
115
- * Provides a stream containing the latest data array to render. Influenced by the tree's
116
- * stream of view window (what dataNodes are currently on screen).
117
- * Data source can be an observable of data array, or a dara array to render.
118
- */
119
- get dataSource() {
120
- return this._dataSource;
121
- }
122
- set dataSource(dataSource) {
123
- if (this._dataSource !== dataSource) {
124
- this.switchDataSource(dataSource);
125
- }
126
- }
127
- ngOnInit() {
128
- this.dataDiffer = this.differs.find([]).create(this.trackBy);
129
- if (!this.treeControl) {
130
- throw getTreeControlMissingError();
131
- }
132
- }
133
- ngOnDestroy() {
134
- this.nodeOutlet.viewContainer.clear();
135
- this.onDestroy.next();
136
- this.onDestroy.complete();
137
- // tslint:disable-next-line:no-unbound-method
138
- if (this._dataSource && typeof this.dataSource.disconnect === 'function') {
139
- this.dataSource.disconnect(this);
140
- }
141
- if (this.dataSubscription) {
142
- this.dataSubscription.unsubscribe();
143
- this.dataSubscription = null;
144
- }
145
- }
146
- ngAfterContentChecked() {
147
- const defaultNodeDefs = this.nodeDefs.filter((def) => !def.when);
148
- if (defaultNodeDefs.length > 1) {
149
- throw getTreeMultipleDefaultNodeDefsError();
150
- }
151
- this.defaultNodeDef = defaultNodeDefs[0];
152
- if (this.dataSource && this.nodeDefs && !this.dataSubscription) {
153
- this.observeRenderChanges();
154
- }
155
- }
156
- /** Check for changes made in the data and render each change (node added/removed/moved). */
157
- renderNodeChanges(data, dataDiffer = this.dataDiffer, viewContainer = this.nodeOutlet.viewContainer, parentData) {
158
- const changes = dataDiffer.diff(data);
159
- if (!changes) {
160
- return;
161
- }
162
- changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {
163
- if (item.previousIndex == null) {
164
- this.insertNode(data[currentIndex], currentIndex, viewContainer, parentData);
165
- }
166
- else if (currentIndex == null) {
167
- viewContainer.remove(adjustedPreviousIndex);
168
- this.levels.delete(item.item);
169
- }
170
- else {
171
- const view = viewContainer.get(adjustedPreviousIndex);
172
- viewContainer.move(view, currentIndex);
173
- }
174
- });
175
- this.changeDetectorRef.detectChanges();
176
- }
177
- /**
178
- * Finds the matching node definition that should be used for this node data. If there is only
179
- * one node definition, it is returned. Otherwise, find the node definition that has a when
180
- * predicate that returns true with the data. If none return true, return the default node
181
- * definition.
182
- */
183
- getNodeDef(data, i) {
184
- if (this.nodeDefs.length === 1) {
185
- return this.nodeDefs.first;
186
- }
187
- const nodeDef = this.nodeDefs.find((def) => def.when && def.when(i, data)) || this.defaultNodeDef;
188
- if (!nodeDef) {
189
- throw getTreeMissingMatchingNodeDefError();
190
- }
191
- return nodeDef;
192
- }
193
- /**
194
- * Create the embedded view for the data node template and place it in the correct index location
195
- * within the data node view container.
196
- */
197
- insertNode(nodeData, index, viewContainer, parentData) {
198
- const node = this.getNodeDef(nodeData, index);
199
- // Node context that will be provided to created embedded view
200
- const context = new McTreeNodeOutletContext(nodeData);
201
- // If the tree is flat tree, then use the `getLevel` function in flat tree control
202
- // Otherwise, use the level of parent node.
203
- if (this.treeControl.getLevel) {
204
- context.level = this.treeControl.getLevel(nodeData);
205
- /* tslint:disable-next-line:no-typeof-undefined */
206
- }
207
- else if (typeof parentData !== 'undefined' && this.levels.has(parentData)) {
208
- context.level = this.levels.get(parentData) + 1;
209
- }
210
- else {
211
- context.level = 0;
212
- }
213
- this.levels.set(nodeData, context.level);
214
- // Use default tree nodeOutlet, or nested node's nodeOutlet
215
- const container = viewContainer ? viewContainer : this.nodeOutlet.viewContainer;
216
- container.createEmbeddedView(node.template, context, index);
217
- // Set the data to just created `McTreeNode`.
218
- // The `McTreeNode` created from `createEmbeddedView` will be saved in static variable
219
- // `mostRecentTreeNode`. We get it from static variable and pass the node data to it.
220
- if (McTreeNode.mostRecentTreeNode) {
221
- McTreeNode.mostRecentTreeNode.data = nodeData;
222
- }
223
- }
224
- /** Set up a subscription for the data provided by the data source. */
225
- observeRenderChanges() {
226
- let dataStream;
227
- // Cannot use `instanceof DataSource` since the data source could be a literal with
228
- // `connect` function and may not extends DataSource.
229
- // tslint:disable-next-line:no-unbound-method
230
- if (typeof this._dataSource.connect === 'function') {
231
- dataStream = this._dataSource.connect(this);
232
- }
233
- else if (this._dataSource instanceof Observable) {
234
- dataStream = this._dataSource;
235
- }
236
- else if (Array.isArray(this._dataSource)) {
237
- dataStream = of(this._dataSource);
238
- }
239
- if (dataStream) {
240
- this.dataSubscription = dataStream
241
- .pipe(takeUntil(this.onDestroy))
242
- .subscribe((data) => this.renderNodeChanges(data));
243
- }
244
- else {
245
- throw getTreeNoValidDataSourceError();
246
- }
247
- }
248
- /**
249
- * Switch to the provided data source by resetting the data and unsubscribing from the current
250
- * render change subscription if one exists. If the data source is null, interpret this by
251
- * clearing the node outlet. Otherwise start listening for new data.
252
- */
253
- switchDataSource(dataSource) {
254
- // tslint:disable-next-line:no-unbound-method
255
- if (this._dataSource && typeof this._dataSource.disconnect === 'function') {
256
- this.dataSource.disconnect(this);
257
- }
258
- if (this.dataSubscription) {
259
- this.dataSubscription.unsubscribe();
260
- this.dataSubscription = null;
261
- }
262
- // Remove the all dataNodes if there is now no data source
263
- if (!dataSource) {
264
- this.nodeOutlet.viewContainer.clear();
265
- }
266
- this._dataSource = dataSource;
267
- if (this.nodeDefs) {
268
- this.observeRenderChanges();
269
- }
270
- }
271
- }
272
- /** @nocollapse */ McTreeBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeBase, deps: [{ token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
273
- /** @nocollapse */ McTreeBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTreeBase, inputs: { treeControl: "treeControl", trackBy: "trackBy", dataSource: "dataSource" }, queries: [{ propertyName: "nodeDefs", predicate: McTreeNodeDef }], viewQueries: [{ propertyName: "nodeOutlet", first: true, predicate: McTreeNodeOutlet, descendants: true, static: true }], ngImport: i0 });
274
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeBase, decorators: [{
275
- type: Directive
276
- }], ctorParameters: function () { return [{ type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { treeControl: [{
277
- type: Input
278
- }], trackBy: [{
279
- type: Input
280
- }], nodeOutlet: [{
281
- type: ViewChild,
282
- args: [McTreeNodeOutlet, { static: true }]
283
- }], nodeDefs: [{
284
- type: ContentChildren,
285
- args: [McTreeNodeDef]
286
- }], dataSource: [{
287
- type: Input
288
- }] } });
289
- class McTreeNode {
290
- constructor(elementRef, tree) {
291
- this.elementRef = elementRef;
292
- this.tree = tree;
293
- this.destroyed = new Subject();
294
- McTreeNode.mostRecentTreeNode = this;
295
- }
296
- get data() {
297
- return this._data;
298
- }
299
- set data(value) {
300
- this._data = value;
301
- }
302
- get isExpanded() {
303
- return this.tree.treeControl.isExpanded(this.data);
304
- }
305
- get level() {
306
- return this.tree.treeControl.getLevel ? this.tree.treeControl.getLevel(this._data) : 0;
307
- }
308
- ngOnDestroy() {
309
- this.destroyed.next();
310
- this.destroyed.complete();
311
- }
312
- focus() {
313
- this.elementRef.nativeElement.focus();
314
- }
315
- }
316
- /**
317
- * The most recently created `McTreeNode`. We save it in static variable so we can retrieve it
318
- * in `McTree` and set the data to it.
319
- */
320
- McTreeNode.mostRecentTreeNode = null;
321
- /** @nocollapse */ McTreeNode.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNode, deps: [{ token: i0.ElementRef }, { token: forwardRef(() => McTreeBase) }], target: i0.ɵɵFactoryTarget.Directive });
322
- /** @nocollapse */ McTreeNode.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTreeNode, selector: "mc-tree-node", exportAs: ["mcTreeNode"], ngImport: i0 });
323
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNode, decorators: [{
324
- type: Directive,
325
- args: [{
326
- selector: 'mc-tree-node',
327
- exportAs: 'mcTreeNode'
328
- }]
329
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: McTreeBase, decorators: [{
330
- type: Inject,
331
- args: [forwardRef(() => McTreeBase)]
332
- }] }]; } });
333
-
334
- /** Regex used to split a string on its CSS units. */
335
- const cssUnitPattern = /([A-Za-z%]+)$/;
336
- class McTreeNodePadding {
337
- constructor(treeNode, tree, renderer, element, dir) {
338
- var _a, _b;
339
- this.treeNode = treeNode;
340
- this.tree = tree;
341
- this.renderer = renderer;
342
- this.element = element;
343
- this.dir = dir;
344
- this._indent = 20;
345
- /** CSS units used for the indentation value. */
346
- this.indentUnits = 'px';
347
- this.baseLeftPadding = parseInt(TreeSizePaddingLeft);
348
- this.iconWidth = 24;
349
- this.destroyed = new Subject();
350
- (_b = (_a = this.dir) === null || _a === void 0 ? void 0 : _a.change) === null || _b === void 0 ? void 0 : _b.pipe(takeUntil(this.destroyed)).subscribe(() => this.setPadding());
351
- }
352
- get level() {
353
- return this._level;
354
- }
355
- set level(value) {
356
- this.setLevelInput(value);
357
- }
358
- get indent() {
359
- return this._indent;
360
- }
361
- set indent(indent) {
362
- this.setIndentInput(indent);
363
- }
364
- get leftPadding() {
365
- return (this.withIcon ? 0 : this.iconWidth) + this.baseLeftPadding;
366
- }
367
- ngOnInit() {
368
- this.withIcon = this.tree.treeControl.isExpandable(this.treeNode.data);
369
- this.setPadding();
370
- }
371
- ngOnDestroy() {
372
- this.destroyed.next();
373
- this.destroyed.complete();
374
- }
375
- paddingIndent() {
376
- const nodeLevel = (this.treeNode.data && this.tree.treeControl.getLevel)
377
- ? this.tree.treeControl.getLevel(this.treeNode.data)
378
- : 0;
379
- const level = this.level || nodeLevel;
380
- return level > 0 ? `${(level * this._indent) + this.leftPadding}px` : `${this.leftPadding}px`;
381
- }
382
- /**
383
- * This has been extracted to a util because of TS 4 and VE.
384
- * View Engine doesn't support property rename inheritance.
385
- * TS 4.0 doesn't allow properties to override accessors or vice-versa.
386
- * @docs-private
387
- */
388
- setLevelInput(value) {
389
- // Set to null as the fallback value so that _setPadding can fall back to the node level if the
390
- // consumer set the directive as `mcTreeNodePadding=""`. We still want to take this value if
391
- // they set 0 explicitly.
392
- this._level = coerceNumberProperty(value, null);
393
- this.setPadding();
394
- }
395
- /**
396
- * This has been extracted to a util because of TS 4 and VE.
397
- * View Engine doesn't support property rename inheritance.
398
- * TS 4.0 doesn't allow properties to override accessors or vice-versa.
399
- * @docs-private
400
- */
401
- setIndentInput(indent) {
402
- let value = indent;
403
- let units = 'px';
404
- if (typeof indent === 'string') {
405
- const parts = indent.split(cssUnitPattern);
406
- value = parts[0];
407
- units = parts[1] || units;
408
- }
409
- this.indentUnits = units;
410
- this._indent = coerceNumberProperty(value);
411
- this.setPadding();
412
- }
413
- setPadding() {
414
- var _a;
415
- const padding = this.paddingIndent();
416
- const paddingProp = ((_a = this.dir) === null || _a === void 0 ? void 0 : _a.value) === 'rtl' ? 'paddingRight' : 'paddingLeft';
417
- this.renderer.setStyle(this.element.nativeElement, paddingProp, padding);
418
- }
419
- }
420
- /** @nocollapse */ McTreeNodePadding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodePadding, deps: [{ token: McTreeNode }, { token: McTreeBase }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
421
- /** @nocollapse */ McTreeNodePadding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTreeNodePadding, selector: "[mcTreeNodePadding]", inputs: { indent: ["mcTreeNodePaddingIndent", "indent"] }, exportAs: ["mcTreeNodePadding"], ngImport: i0 });
422
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodePadding, decorators: [{
423
- type: Directive,
424
- args: [{
425
- selector: '[mcTreeNodePadding]',
426
- exportAs: 'mcTreeNodePadding'
427
- }]
428
- }], ctorParameters: function () { return [{ type: McTreeNode }, { type: McTreeBase }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i2.Directionality, decorators: [{
429
- type: Optional
430
- }] }]; }, propDecorators: { indent: [{
431
- type: Input,
432
- args: ['mcTreeNodePaddingIndent']
433
- }] } });
434
-
435
- class McTreeNodeToggleBase {
436
- }
437
- // tslint:disable-next-line:naming-convention
438
- const McTreeNodeToggleMixinBase = mixinDisabled(McTreeNodeToggleBase);
439
- /** @docs-private */
440
- class McTreeNodeToggleBaseDirective extends McTreeNodeToggleMixinBase {
441
- constructor(tree, treeNode) {
442
- super();
443
- this.tree = tree;
444
- this.treeNode = treeNode;
445
- this._recursive = false;
446
- this.tree.treeControl.filterValue
447
- .pipe(map((value) => (value === null || value === void 0 ? void 0 : value.length) > 0))
448
- .subscribe((state) => this.disabled = state);
449
- }
450
- get recursive() {
451
- return this._recursive;
452
- }
453
- set recursive(value) {
454
- this._recursive = coerceBooleanProperty(value);
455
- }
456
- get iconState() {
457
- return this.tree.treeControl.isExpanded(this.node);
458
- }
459
- toggle(event) {
460
- if (this.disabled) {
461
- return;
462
- }
463
- this.recursive
464
- ? this.tree.treeControl.toggleDescendants(this.treeNode.data)
465
- : this.tree.treeControl.toggle(this.treeNode.data);
466
- event.stopPropagation();
467
- }
468
- }
469
- /** @nocollapse */ McTreeNodeToggleBaseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeToggleBaseDirective, deps: [{ token: McTreeBase }, { token: McTreeNode }], target: i0.ɵɵFactoryTarget.Directive });
470
- /** @nocollapse */ McTreeNodeToggleBaseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTreeNodeToggleBaseDirective, inputs: { node: "node", recursive: ["mcTreeNodeToggleRecursive", "recursive"] }, usesInheritance: true, ngImport: i0 });
471
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeToggleBaseDirective, decorators: [{
472
- type: Directive
473
- }], ctorParameters: function () { return [{ type: McTreeBase }, { type: McTreeNode }]; }, propDecorators: { node: [{
474
- type: Input
475
- }], recursive: [{
476
- type: Input,
477
- args: ['mcTreeNodeToggleRecursive']
478
- }] } });
479
- class McTreeNodeToggleComponent extends McTreeNodeToggleBaseDirective {
480
- }
481
- /** @nocollapse */ McTreeNodeToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeToggleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
482
- /** @nocollapse */ McTreeNodeToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McTreeNodeToggleComponent, selector: "mc-tree-node-toggle", inputs: { disabled: "disabled" }, host: { listeners: { "click": "toggle($event)" }, properties: { "class.mc-opened": "iconState", "attr.disabled": "disabled || null" }, classAttribute: "mc-tree-node-toggle" }, exportAs: ["mcTreeNodeToggle"], usesInheritance: true, ngImport: i0, template: `<i class="mc mc-icon mc-angle-down-S_16"></i>`, isInline: true, styles: [".mc-tree-node-toggle{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:100%;cursor:pointer}.mc-tree-node-toggle .mc-icon{transform:rotate(-90deg)}.mc-tree-node-toggle.mc-opened .mc-icon{transform:rotate(0)}.mc-tree-node-toggle[disabled]{cursor:default}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
483
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeToggleComponent, decorators: [{
484
- type: Component,
485
- args: [{
486
- selector: 'mc-tree-node-toggle',
487
- exportAs: 'mcTreeNodeToggle',
488
- template: `<i class="mc mc-icon mc-angle-down-S_16"></i>`,
489
- styleUrls: ['./toggle.scss'],
490
- host: {
491
- class: 'mc-tree-node-toggle',
492
- '[class.mc-opened]': 'iconState',
493
- '[attr.disabled]': 'disabled || null',
494
- '(click)': 'toggle($event)'
495
- },
496
- inputs: ['disabled'],
497
- encapsulation: ViewEncapsulation.None,
498
- changeDetection: ChangeDetectionStrategy.OnPush
499
- }]
500
- }] });
501
- class McTreeNodeToggleDirective extends McTreeNodeToggleBaseDirective {
502
- }
503
- /** @nocollapse */ McTreeNodeToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeToggleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
504
- /** @nocollapse */ McTreeNodeToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McTreeNodeToggleDirective, selector: "[mc-tree-node-toggle], [mcTreeNodeToggle]", host: { listeners: { "click": "toggle($event)" }, properties: { "attr.disabled": "disabled || null" } }, exportAs: ["mcTreeNodeToggle"], usesInheritance: true, ngImport: i0 });
505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeNodeToggleDirective, decorators: [{
506
- type: Directive,
507
- args: [{
508
- selector: '[mc-tree-node-toggle], [mcTreeNodeToggle]',
509
- exportAs: 'mcTreeNodeToggle',
510
- host: {
511
- '[attr.disabled]': 'disabled || null',
512
- '(click)': 'toggle($event)'
513
- }
514
- }]
515
- }] });
516
-
517
- class McTree extends McTreeBase {
518
- }
519
- /** @nocollapse */ McTree.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTree, deps: null, target: i0.ɵɵFactoryTarget.Component });
520
- /** @nocollapse */ McTree.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McTree, selector: "mc-tree", host: { classAttribute: "mc-tree" }, exportAs: ["mcTree"], usesInheritance: true, ngImport: i0, template: `<ng-container mcTreeNodeOutlet></ng-container>`, isInline: true, styles: [".mc-tree{display:block}\n"], directives: [{ type: McTreeNodeOutlet, selector: "[mcTreeNodeOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
521
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTree, decorators: [{
522
- type: Component,
523
- args: [{
524
- selector: 'mc-tree',
525
- exportAs: 'mcTree',
526
- template: `<ng-container mcTreeNodeOutlet></ng-container>`,
527
- styleUrls: ['./tree.scss'],
528
- host: {
529
- class: 'mc-tree'
530
- },
531
- encapsulation: ViewEncapsulation.None,
532
- changeDetection: ChangeDetectionStrategy.OnPush
533
- }]
534
- }] });
535
-
536
- /**
537
- * Injection token used to provide the parent component to options.
538
- */
539
- const MC_TREE_OPTION_PARENT_COMPONENT = new InjectionToken('MC_TREE_OPTION_PARENT_COMPONENT');
540
- class McTreeOptionChange {
541
- constructor(source, isUserInput = false) {
542
- this.source = source;
543
- this.isUserInput = isUserInput;
544
- }
545
- }
546
- let uniqueIdCounter = 0;
547
- class McTreeOption extends McTreeNode {
548
- constructor(elementRef, changeDetectorRef, ngZone, tree) {
549
- super(elementRef, tree);
550
- this.changeDetectorRef = changeDetectorRef;
551
- this.ngZone = ngZone;
552
- this.tree = tree;
553
- this.onFocus = new Subject();
554
- this.onBlur = new Subject();
555
- this._disabled = false;
556
- this.onSelectionChange = new EventEmitter();
557
- this._selected = false;
558
- this._id = `mc-tree-option-${uniqueIdCounter++}`;
559
- this.hasFocus = false;
560
- }
561
- get value() {
562
- return this._value;
563
- }
564
- set value(value) {
565
- this._value = value;
566
- }
567
- get disabled() {
568
- return this._disabled || this.tree.disabled;
569
- }
570
- set disabled(value) {
571
- const newValue = coerceBooleanProperty(value);
572
- if (newValue !== this._disabled) {
573
- this._disabled = newValue;
574
- }
575
- }
576
- get showCheckbox() {
577
- return this._showCheckbox !== undefined ? this._showCheckbox : this.tree.showCheckbox;
578
- }
579
- set showCheckbox(value) {
580
- this._showCheckbox = coerceBooleanProperty(value);
581
- }
582
- get selected() {
583
- return this._selected;
584
- }
585
- set selected(value) {
586
- const isSelected = coerceBooleanProperty(value);
587
- if (isSelected !== this._selected) {
588
- this.setSelected(isSelected);
589
- }
590
- }
591
- get id() {
592
- return this._id;
593
- }
594
- get viewValue() {
595
- // TODO: Add input property alternative for node envs.
596
- return (this.getHostElement().textContent || '').trim();
597
- }
598
- get isExpandable() {
599
- var _a;
600
- return !((_a = this.toggleElement) === null || _a === void 0 ? void 0 : _a.disabled) && this.tree.treeControl.isExpandable(this.data);
601
- }
602
- ngAfterContentInit() {
603
- this.value = this.tree.treeControl.getValue(this.data);
604
- }
605
- toggle() {
606
- this.selected = !this.selected;
607
- }
608
- setSelected(selected) {
609
- if (this._selected === selected || !this.tree.selectionModel) {
610
- return;
611
- }
612
- this._selected = selected;
613
- if (selected) {
614
- this.tree.selectionModel.select(this.data);
615
- }
616
- else {
617
- this.tree.selectionModel.deselect(this.data);
618
- }
619
- this.changeDetectorRef.markForCheck();
620
- }
621
- focus(focusOrigin) {
622
- var _a;
623
- if (focusOrigin === 'program') {
624
- return;
625
- }
626
- if (this.disabled || this.hasFocus || ((_a = this.actionButton) === null || _a === void 0 ? void 0 : _a.hasFocus)) {
627
- return;
628
- }
629
- this.elementRef.nativeElement.focus();
630
- this.onFocus.next({ option: this });
631
- Promise.resolve().then(() => {
632
- this.hasFocus = true;
633
- this.changeDetectorRef.markForCheck();
634
- });
635
- }
636
- blur() {
637
- // When animations are enabled, Angular may end up removing the option from the DOM a little
638
- // earlier than usual, causing it to be blurred and throwing off the logic in the tree
639
- // that moves focus not the next item. To work around the issue, we defer marking the option
640
- // as not focused until the next time the zone stabilizes.
641
- this.ngZone.onStable
642
- .asObservable()
643
- .pipe(take(1))
644
- .subscribe(() => {
645
- this.ngZone.run(() => {
646
- var _a;
647
- this.hasFocus = false;
648
- if ((_a = this.actionButton) === null || _a === void 0 ? void 0 : _a.hasFocus) {
649
- return;
650
- }
651
- this.onBlur.next({ option: this });
652
- });
653
- });
654
- }
655
- getHeight() {
656
- const clientRects = this.elementRef.nativeElement.getClientRects();
657
- if (clientRects.length) {
658
- return clientRects[0].height;
659
- }
660
- return 0;
661
- }
662
- select() {
663
- if (this._selected) {
664
- return;
665
- }
666
- this._selected = true;
667
- this.changeDetectorRef.markForCheck();
668
- this.emitSelectionChangeEvent();
669
- }
670
- deselect() {
671
- if (!this._selected) {
672
- return;
673
- }
674
- this._selected = false;
675
- this.changeDetectorRef.markForCheck();
676
- }
677
- onKeydown($event) {
678
- if (!this.actionButton) {
679
- return;
680
- }
681
- if ($event.keyCode === TAB && !$event.shiftKey && !this.actionButton.hasFocus) {
682
- this.actionButton.focus();
683
- $event.preventDefault();
684
- }
685
- }
686
- selectViaInteraction($event) {
687
- if (this.disabled) {
688
- return;
689
- }
690
- this.changeDetectorRef.markForCheck();
691
- this.emitSelectionChangeEvent(true);
692
- const shiftKey = $event ? hasModifierKey($event, 'shiftKey') : false;
693
- const ctrlKey = $event ? hasModifierKey($event, 'ctrlKey') : false;
694
- this.tree.setSelectedOptionsByClick(this, shiftKey, ctrlKey);
695
- }
696
- emitSelectionChangeEvent(isUserInput = false) {
697
- this.onSelectionChange.emit(new McTreeOptionChange(this, isUserInput));
698
- }
699
- getHostElement() {
700
- return this.elementRef.nativeElement;
701
- }
702
- markForCheck() {
703
- this.changeDetectorRef.markForCheck();
704
- }
705
- }
706
- /** @nocollapse */ McTreeOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeOption, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: MC_TREE_OPTION_PARENT_COMPONENT }], target: i0.ɵɵFactoryTarget.Component });
707
- /** @nocollapse */ McTreeOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McTreeOption, selector: "mc-tree-option", inputs: { disabled: "disabled", showCheckbox: "showCheckbox" }, outputs: { onSelectionChange: "onSelectionChange" }, host: { listeners: { "focusin": "focus()", "blur": "blur()", "click": "selectViaInteraction($event)", "keydown": "onKeydown($event)" }, properties: { "class.mc-selected": "selected", "class.mc-focused": "hasFocus", "class.mc-action-button-focused": "actionButton?.active", "attr.id": "id", "attr.tabindex": "-1", "attr.disabled": "disabled || null" }, classAttribute: "mc-tree-option" }, providers: [
708
- { provide: McTreeNode, useExisting: McTreeOption },
709
- { provide: MC_OPTION_ACTION_PARENT, useExisting: McTreeOption }
710
- ], queries: [{ propertyName: "toggleElement", first: true, predicate: ["mcTreeNodeToggle"], descendants: true }, { propertyName: "actionButton", first: true, predicate: McOptionActionComponent, descendants: true }, { propertyName: "tooltipTrigger", first: true, predicate: McTooltipTrigger, descendants: true }, { propertyName: "dropdownTrigger", first: true, predicate: McDropdownTrigger, descendants: true }], exportAs: ["mcTreeOption"], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"mc-tree-node-toggle, [mc-tree-node-toggle], [mcTreeNodeToggle]\"></ng-content>\n\n<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<ng-content select=\"mc-checkbox\"></ng-content>\n\n<ng-content select=\"[mc-icon]\"></ng-content>\n\n<span class=\"mc-option-text mc-no-select\"><ng-content></ng-content></span>\n\n<ng-content select=\"mc-option-action\"></ng-content>\n\n<div class=\"mc-option-overlay\"></div>\n", styles: [".mc-tree-option{box-sizing:border-box;display:flex;align-items:center;height:32px;height:var(--mc-tree-size-node-height, 32px);word-wrap:break-word;border:2px solid transparent}.mc-tree-option .mc-option-text{display:inline-block;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:16px;margin-right:var(--mc-tree-size-padding-right, 16px)}.mc-tree-option>.mc-icon{margin-right:8px;cursor:pointer}.mc-tree-option:focus{outline:none}.mc-tree-option:not([disabled]){cursor:pointer}.mc-tree-option>.mc-pseudo-checkbox,.mc-tree-option>.mc-checkbox{margin-right:8px}.mc-tree-option .mc-option-action{display:none}.mc-tree-option:not([disabled]):hover .mc-option-action,.mc-tree-option:not([disabled]).mc-focused .mc-option-action,.mc-tree-option:not([disabled]).mc-action-button-focused .mc-option-action{display:flex}\n"], components: [{ type: i1.McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: ["state", "disabled"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
711
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeOption, decorators: [{
712
- type: Component,
713
- args: [{
714
- selector: 'mc-tree-option',
715
- exportAs: 'mcTreeOption',
716
- templateUrl: './tree-option.html',
717
- styleUrls: ['./tree-option.scss'],
718
- host: {
719
- class: 'mc-tree-option',
720
- '[class.mc-selected]': 'selected',
721
- '[class.mc-focused]': 'hasFocus',
722
- '[class.mc-action-button-focused]': 'actionButton?.active',
723
- '[attr.id]': 'id',
724
- '[attr.tabindex]': '-1',
725
- '[attr.disabled]': 'disabled || null',
726
- '(focusin)': 'focus()',
727
- '(blur)': 'blur()',
728
- '(click)': 'selectViaInteraction($event)',
729
- '(keydown)': 'onKeydown($event)'
730
- },
731
- changeDetection: ChangeDetectionStrategy.OnPush,
732
- encapsulation: ViewEncapsulation.None,
733
- providers: [
734
- { provide: McTreeNode, useExisting: McTreeOption },
735
- { provide: MC_OPTION_ACTION_PARENT, useExisting: McTreeOption }
736
- ]
737
- }]
738
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
739
- type: Inject,
740
- args: [MC_TREE_OPTION_PARENT_COMPONENT]
741
- }] }]; }, propDecorators: { toggleElement: [{
742
- type: ContentChild,
743
- args: ['mcTreeNodeToggle']
744
- }], actionButton: [{
745
- type: ContentChild,
746
- args: [McOptionActionComponent]
747
- }], tooltipTrigger: [{
748
- type: ContentChild,
749
- args: [McTooltipTrigger]
750
- }], dropdownTrigger: [{
751
- type: ContentChild,
752
- args: [McDropdownTrigger]
753
- }], disabled: [{
754
- type: Input
755
- }], showCheckbox: [{
756
- type: Input
757
- }], onSelectionChange: [{
758
- type: Output
759
- }] } });
760
-
761
- /** Base tree control. It has basic toggle/expand/collapse operations on a single data node. */
762
- /* tslint:disable-next-line:naming-convention */
763
- class BaseTreeControl {
764
- constructor() {
765
- /** A selection model with multi-selection to track expansion status. */
766
- this.expansionModel = new SelectionModel(true);
767
- this.filterModel = new SelectionModel(true);
768
- this.filterValue = new BehaviorSubject('');
769
- }
770
- /** Toggles one single data node's expanded/collapsed state. */
771
- toggle(dataNode) {
772
- if (this.filterValue.value) {
773
- return;
774
- }
775
- this.expansionModel.toggle(dataNode);
776
- }
777
- /** Expands one single data node. */
778
- expand(dataNode) {
779
- if (this.filterValue.value) {
780
- return;
781
- }
782
- this.expansionModel.select(dataNode);
783
- }
784
- /** Collapses one single data node. */
785
- collapse(dataNode) {
786
- if (this.filterValue.value) {
787
- return;
788
- }
789
- this.expansionModel.deselect(dataNode);
790
- }
791
- /** Whether a given data node is expanded or not. Returns true if the data node is expanded. */
792
- isExpanded(dataNode) {
793
- return this.expansionModel.isSelected(dataNode);
794
- }
795
- /** Toggles a subtree rooted at `node` recursively. */
796
- toggleDescendants(dataNode) {
797
- this.expansionModel.isSelected(dataNode)
798
- ? this.collapseDescendants(dataNode)
799
- : this.expandDescendants(dataNode);
800
- }
801
- /** Collapse all dataNodes in the tree. */
802
- collapseAll() {
803
- this.expansionModel.clear();
804
- }
805
- /** Expands a subtree rooted at given data node recursively. */
806
- expandDescendants(dataNode) {
807
- const toBeProcessed = [dataNode];
808
- toBeProcessed.push(...this.getDescendants(dataNode));
809
- this.expansionModel.select(...toBeProcessed);
810
- }
811
- /** Collapses a subtree rooted at given data node recursively. */
812
- collapseDescendants(dataNode) {
813
- const toBeProcessed = [dataNode];
814
- toBeProcessed.push(...this.getDescendants(dataNode));
815
- this.expansionModel.deselect(...toBeProcessed);
816
- }
817
- }
818
-
819
- function defaultCompareValues(firstValue, secondValue) {
820
- return firstValue === secondValue;
821
- }
822
- function defaultCompareViewValues(firstViewValue, secondViewValue) {
823
- return RegExp(secondViewValue, 'gi').test(firstViewValue);
824
- }
825
- /** Flat tree control. Able to expand/collapse a subtree recursively for flattened tree. */
826
- class FlatTreeControl extends BaseTreeControl {
827
- /** Construct with flat tree data node functions getLevel, isExpandable, getValue and getViewValue. */
828
- constructor(getLevel, isExpandable,
829
- /** getValue will be used to determine if the tree contains value or not. Used in method hasValue */
830
- getValue,
831
- /** getViewValue will be used for filter nodes. Returned value will be first argument in filterNodesFunction */
832
- getViewValue,
833
- /** compareValues will be used to comparing values. */
834
- compareValues = defaultCompareValues,
835
- /** compareValues will be used to comparing values. */
836
- compareViewValues = defaultCompareViewValues) {
837
- super();
838
- this.getLevel = getLevel;
839
- this.isExpandable = isExpandable;
840
- this.getValue = getValue;
841
- this.getViewValue = getViewValue;
842
- this.compareValues = compareValues;
843
- this.compareViewValues = compareViewValues;
844
- }
845
- /**
846
- * Gets a list of the data node's subtree of descendent data nodes.
847
- *
848
- * To make this working, the `dataNodes` of the TreeControl must be flattened tree nodes
849
- * with correct levels.
850
- */
851
- getDescendants(dataNode) {
852
- const startIndex = this.dataNodes.indexOf(dataNode);
853
- const results = [];
854
- // Goes through flattened tree nodes in the `dataNodes` array, and get all descendants.
855
- // The level of descendants of a tree node must be greater than the level of the given
856
- // tree node.
857
- // If we reach a node whose level is equal to the level of the tree node, we hit a sibling.
858
- // If we reach a node whose level is greater than the level of the tree node, we hit a
859
- // sibling of an ancestor.
860
- for (let i = startIndex + 1; i < this.dataNodes.length && this.getLevel(dataNode) < this.getLevel(this.dataNodes[i]); i++) {
861
- results.push(this.dataNodes[i]);
862
- }
863
- return results;
864
- }
865
- /**
866
- * Expands all data nodes in the tree.
867
- *
868
- * To make this working, the `dataNodes` variable of the TreeControl must be set to all flattened
869
- * data nodes of the tree.
870
- */
871
- expandAll() {
872
- this.expansionModel.select(...this.dataNodes);
873
- }
874
- getParents(node, result) {
875
- if (node.parent) {
876
- result.unshift(node.parent);
877
- return this.getParents(node.parent, result);
878
- }
879
- else {
880
- return result;
881
- }
882
- }
883
- hasValue(value) {
884
- return this.dataNodes.find((node) => this.compareValues(this.getValue(node), value));
885
- }
886
- filterNodes(value) {
887
- this.saveExpansionState();
888
- this.filterModel.clear();
889
- this.expansionModel.clear();
890
- const filteredNodes = this.dataNodes
891
- .filter((node) => this.compareViewValues(this.getViewValue(node), value));
892
- const filteredNodesWithTheirParents = new Set();
893
- filteredNodes.forEach((filteredNode) => {
894
- this.getParents(filteredNode, [])
895
- .forEach((node) => {
896
- filteredNodesWithTheirParents.add(node);
897
- this.expandDataNode(node);
898
- });
899
- filteredNodesWithTheirParents.add(filteredNode);
900
- this.expandDataNode(filteredNode);
901
- if (this.isExpandable(filteredNode)) {
902
- const childNodeLevel = this.getLevel(filteredNode) + 1;
903
- this.getDescendants(filteredNode)
904
- .filter((childNode) => this.getLevel(childNode) === childNodeLevel)
905
- .filter((childNode) => !this.isExpandable(childNode) || !this.hasFilteredDescendant(childNode, filteredNodes))
906
- .forEach((childNode) => {
907
- filteredNodesWithTheirParents.add(childNode);
908
- this.expandDataNode(childNode);
909
- });
910
- }
911
- });
912
- this.filterModel.select(...Array.from(filteredNodesWithTheirParents));
913
- this.filterValue.next(value);
914
- this.restoreExpansionState();
915
- }
916
- expandDataNode(dataNode) {
917
- if (this.isExpandable(dataNode)) {
918
- this.expansionModel.select(dataNode);
919
- }
920
- }
921
- saveExpansionState() {
922
- if (this.filterValue.value === '') {
923
- this.expandedItemsBeforeFiltration = this.expansionModel.selected;
924
- }
925
- }
926
- restoreExpansionState() {
927
- if (this.filterValue.value === '') {
928
- this.expansionModel.clear();
929
- this.expansionModel.select(...this.expandedItemsBeforeFiltration);
930
- }
931
- }
932
- hasFilteredDescendant(dataNode, filteredNodes) {
933
- const filteredViewValues = filteredNodes
934
- .map((node) => this.getViewValue(node));
935
- return this.getDescendants(dataNode)
936
- .filter((node) => filteredViewValues.includes(this.getViewValue(node)))
937
- .length > 0;
938
- }
939
- }
940
-
941
- /* tslint:disable:no-empty */
942
- const MC_SELECTION_TREE_VALUE_ACCESSOR = {
943
- provide: NG_VALUE_ACCESSOR,
944
- useExisting: forwardRef(() => McTreeSelection),
945
- multi: true
946
- };
947
- class McTreeSelectAllEvent {
948
- constructor(source, options) {
949
- this.source = source;
950
- this.options = options;
951
- }
952
- }
953
- class McTreeCopyEvent {
954
- constructor(source, option) {
955
- this.source = source;
956
- this.option = option;
957
- }
958
- }
959
- class McTreeNavigationChange {
960
- constructor(source, option) {
961
- this.source = source;
962
- this.option = option;
963
- }
964
- }
965
- class McTreeSelectionChange {
966
- constructor(source, option) {
967
- this.source = source;
968
- this.option = option;
969
- }
970
- }
971
- class McTreeSelection extends McTreeBase {
972
- constructor(elementRef, differs, changeDetectorRef, multiple, clipboard) {
973
- super(differs, changeDetectorRef);
974
- this.elementRef = elementRef;
975
- this.clipboard = clipboard;
976
- this.renderedOptions = new QueryList();
977
- this.resetFocusedItemOnBlur = true;
978
- this.multipleMode = null;
979
- this.userTabIndex = null;
980
- this.navigationChange = new EventEmitter();
981
- this.selectionChange = new EventEmitter();
982
- this.onSelectAll = new EventEmitter();
983
- this.onCopy = new EventEmitter();
984
- this.sortedNodes = [];
985
- this._autoSelect = true;
986
- this._noUnselectLast = true;
987
- this._disabled = false;
988
- this._tabIndex = 0;
989
- this.destroy = new Subject();
990
- /** `View -> model callback called when value changes` */
991
- this.onChange = () => { };
992
- /** `View -> model callback called when select has been touched` */
993
- this.onTouched = () => { };
994
- this.updateRenderedOptions = () => {
995
- const orderedOptions = [];
996
- this.sortedNodes.forEach((node) => {
997
- const found = this.unorderedOptions.find((option) => option.value === this.treeControl.getValue(node));
998
- if (found) {
999
- orderedOptions.push(found);
1000
- }
1001
- });
1002
- this.renderedOptions.reset(orderedOptions);
1003
- this.renderedOptions.notifyOnChanges();
1004
- this.updateScrollSize();
1005
- };
1006
- if (multiple === MultipleMode.CHECKBOX || multiple === MultipleMode.KEYBOARD) {
1007
- this.multipleMode = multiple;
1008
- }
1009
- else if (multiple !== null) {
1010
- this.multipleMode = MultipleMode.CHECKBOX;
1011
- }
1012
- if (this.multipleMode === MultipleMode.CHECKBOX) {
1013
- this.autoSelect = false;
1014
- this.noUnselectLast = false;
1015
- }
1016
- this.selectionModel = new SelectionModel(this.multiple);
1017
- }
1018
- get autoSelect() {
1019
- return this._autoSelect;
1020
- }
1021
- set autoSelect(value) {
1022
- this._autoSelect = coerceBooleanProperty(value);
1023
- }
1024
- get optionFocusChanges() {
1025
- return merge(...this.renderedOptions.map((option) => option.onFocus));
1026
- }
1027
- get optionBlurChanges() {
1028
- return merge(...this.renderedOptions.map((option) => option.onBlur));
1029
- }
1030
- get multiple() {
1031
- return !!this.multipleMode;
1032
- }
1033
- get noUnselectLast() {
1034
- return this._noUnselectLast;
1035
- }
1036
- set noUnselectLast(value) {
1037
- this._noUnselectLast = coerceBooleanProperty(value);
1038
- }
1039
- get disabled() {
1040
- return this._disabled;
1041
- }
1042
- set disabled(rawValue) {
1043
- const value = coerceBooleanProperty(rawValue);
1044
- if (this._disabled !== value) {
1045
- this._disabled = value;
1046
- this.markOptionsForCheck();
1047
- }
1048
- }
1049
- get tabIndex() {
1050
- return this.disabled ? -1 : this._tabIndex;
1051
- }
1052
- set tabIndex(value) {
1053
- this._tabIndex = value;
1054
- this.userTabIndex = value;
1055
- }
1056
- get showCheckbox() {
1057
- return this.multipleMode === MultipleMode.CHECKBOX;
1058
- }
1059
- ngAfterContentInit() {
1060
- this.unorderedOptions.changes
1061
- .subscribe(this.updateRenderedOptions);
1062
- this.keyManager = new FocusKeyManager(this.renderedOptions)
1063
- .withVerticalOrientation(true)
1064
- .withHorizontalOrientation(null);
1065
- this.keyManager.change
1066
- .pipe(takeUntil(this.destroy))
1067
- .subscribe(() => {
1068
- if (this.keyManager.activeItem) {
1069
- this.emitNavigationEvent(this.keyManager.activeItem);
1070
- // todo need check this logic
1071
- if (this.autoSelect && !this.keyManager.activeItem.disabled) {
1072
- this.updateOptionsFocus();
1073
- }
1074
- }
1075
- });
1076
- this.keyManager.tabOut
1077
- .pipe(takeUntil(this.destroy))
1078
- .subscribe(() => this.allowFocusEscape());
1079
- this.selectionModel.changed
1080
- .pipe(takeUntil(this.destroy))
1081
- .subscribe(() => {
1082
- this.onChange(this.getSelectedValues());
1083
- this.renderedOptions.notifyOnChanges();
1084
- });
1085
- this.renderedOptions.changes
1086
- .pipe(takeUntil(this.destroy), delay(0))
1087
- .subscribe((options) => {
1088
- this.resetOptions();
1089
- // Check to see if we need to update our tab index
1090
- this.updateTabIndex();
1091
- options.forEach((option) => {
1092
- if (this.getSelectedValues().includes(option.value)) {
1093
- option.select();
1094
- }
1095
- else {
1096
- option.deselect();
1097
- }
1098
- option.markForCheck();
1099
- });
1100
- });
1101
- }
1102
- ngOnDestroy() {
1103
- this.destroy.next();
1104
- this.destroy.complete();
1105
- }
1106
- focus($event) {
1107
- if (this.renderedOptions.length === 0 || this.isFocusReceivedFromNestedOption($event)) {
1108
- return;
1109
- }
1110
- this.keyManager.setFocusOrigin('keyboard');
1111
- this.keyManager.setFirstItemActive();
1112
- this.keyManager.setFocusOrigin('program');
1113
- }
1114
- blur() {
1115
- if (!this.hasFocusedOption() && this.resetFocusedItemOnBlur) {
1116
- this.keyManager.setActiveItem(-1);
1117
- }
1118
- this.onTouched();
1119
- this.changeDetectorRef.markForCheck();
1120
- }
1121
- onKeyDown(event) {
1122
- var _a, _b;
1123
- this.keyManager.setFocusOrigin('keyboard');
1124
- // tslint:disable-next-line: deprecation
1125
- const keyCode = event.keyCode;
1126
- if ([SPACE, LEFT_ARROW, RIGHT_ARROW].includes(keyCode) || isVerticalMovement(event)) {
1127
- event.preventDefault();
1128
- }
1129
- if (this.multiple && isSelectAll(event)) {
1130
- this.selectAllOptions();
1131
- return;
1132
- }
1133
- else if (isCopy(event)) {
1134
- this.copyActiveOption();
1135
- return;
1136
- }
1137
- else if (keyCode === TAB) {
1138
- this.keyManager.tabOut.next();
1139
- return;
1140
- }
1141
- else if (keyCode === LEFT_ARROW && ((_a = this.keyManager.activeItem) === null || _a === void 0 ? void 0 : _a.isExpandable)) {
1142
- this.treeControl.collapse(this.keyManager.activeItem.data);
1143
- return;
1144
- }
1145
- else if (keyCode === RIGHT_ARROW && ((_b = this.keyManager.activeItem) === null || _b === void 0 ? void 0 : _b.isExpandable)) {
1146
- this.treeControl.expand(this.keyManager.activeItem.data);
1147
- return;
1148
- }
1149
- else if (keyCode === DOWN_ARROW) {
1150
- this.keyManager.setNextItemActive();
1151
- }
1152
- else if (keyCode === UP_ARROW) {
1153
- this.keyManager.setPreviousItemActive();
1154
- }
1155
- else if ([SPACE, ENTER].includes(keyCode)) {
1156
- this.toggleFocusedOption();
1157
- return;
1158
- }
1159
- else if (keyCode === HOME) {
1160
- this.keyManager.setFirstItemActive();
1161
- }
1162
- else if (keyCode === END) {
1163
- this.keyManager.setLastItemActive();
1164
- }
1165
- else if (keyCode === PAGE_UP) {
1166
- this.keyManager.setPreviousPageItemActive();
1167
- }
1168
- else if (keyCode === PAGE_DOWN) {
1169
- this.keyManager.setNextPageItemActive();
1170
- }
1171
- if (this.keyManager.activeItem) {
1172
- this.setSelectedOptionsByKey(this.keyManager.activeItem, hasModifierKey(event, 'shiftKey'), hasModifierKey(event, 'ctrlKey'));
1173
- }
1174
- }
1175
- updateScrollSize() {
1176
- if (!this.renderedOptions.first) {
1177
- return;
1178
- }
1179
- this.keyManager.withScrollSize(Math.floor(this.getHeight() / this.renderedOptions.first.getHeight()));
1180
- }
1181
- setSelectedOptionsByKey(option, shiftKey, ctrlKey) {
1182
- if (shiftKey && this.multiple) {
1183
- this.setSelectedOptions(option);
1184
- this.emitChangeEvent(option);
1185
- }
1186
- else if (ctrlKey) {
1187
- if (!this.canDeselectLast(option)) {
1188
- return;
1189
- }
1190
- }
1191
- else if (this.autoSelect) {
1192
- this.selectionModel.clear();
1193
- this.selectionModel.toggle(option.data);
1194
- this.emitChangeEvent(option);
1195
- }
1196
- }
1197
- setSelectedOptionsByClick(option, shiftKey, ctrlKey) {
1198
- if (!shiftKey && !ctrlKey) {
1199
- this.keyManager.setActiveItem(option);
1200
- }
1201
- if (shiftKey && this.multiple) {
1202
- this.setSelectedOptions(option);
1203
- }
1204
- else if (ctrlKey) {
1205
- if (!this.canDeselectLast(option)) {
1206
- return;
1207
- }
1208
- this.selectionModel.toggle(option.data);
1209
- }
1210
- else if (this.autoSelect) {
1211
- this.selectionModel.clear();
1212
- this.selectionModel.toggle(option.data);
1213
- }
1214
- else {
1215
- this.selectionModel.toggle(option.data);
1216
- }
1217
- this.emitChangeEvent(option);
1218
- }
1219
- setSelectedOptions(option) {
1220
- const selectedOptionState = option.selected;
1221
- let fromIndex = this.keyManager.previousActiveItemIndex;
1222
- let toIndex = this.keyManager.previousActiveItemIndex = this.keyManager.activeItemIndex;
1223
- if (toIndex === fromIndex) {
1224
- return;
1225
- }
1226
- if (fromIndex > toIndex) {
1227
- [fromIndex, toIndex] = [toIndex, fromIndex];
1228
- }
1229
- this.renderedOptions
1230
- .toArray()
1231
- .slice(fromIndex, toIndex + 1)
1232
- .filter((item) => !item.disabled)
1233
- .forEach((renderedOption) => {
1234
- const isLastRenderedOption = renderedOption === this.keyManager.activeItem;
1235
- if (isLastRenderedOption && renderedOption.selected && this.noUnselectLast) {
1236
- return;
1237
- }
1238
- renderedOption.setSelected(!selectedOptionState);
1239
- });
1240
- }
1241
- setFocusedOption(option) {
1242
- this.keyManager.setActiveItem(option);
1243
- }
1244
- toggleFocusedOption() {
1245
- const focusedOption = this.keyManager.activeItem;
1246
- if (focusedOption && (!focusedOption.selected || this.canDeselectLast(focusedOption))) {
1247
- focusedOption.toggle();
1248
- this.emitChangeEvent(focusedOption);
1249
- }
1250
- }
1251
- renderNodeChanges(data, dataDiffer = this.dataDiffer, viewContainer = this.nodeOutlet.viewContainer, parentData) {
1252
- super.renderNodeChanges(data, dataDiffer, viewContainer, parentData);
1253
- this.sortedNodes = this.getSortedNodes(viewContainer);
1254
- this.nodeOutlet.changeDetectorRef.detectChanges();
1255
- }
1256
- emitNavigationEvent(option) {
1257
- this.navigationChange.emit(new McTreeNavigationChange(this, option));
1258
- }
1259
- emitChangeEvent(option) {
1260
- this.selectionChange.emit(new McTreeNavigationChange(this, option));
1261
- }
1262
- selectAllOptions() {
1263
- const optionsToSelect = this.renderedOptions
1264
- .filter((option) => !option.disabled);
1265
- optionsToSelect
1266
- .forEach((option) => option.setSelected(true));
1267
- this.onSelectAll.emit(new McTreeSelectAllEvent(this, optionsToSelect));
1268
- }
1269
- copyActiveOption() {
1270
- if (this.onCopy.observers.length) {
1271
- this.onCopy.emit(new McTreeCopyEvent(this, this.keyManager.activeItem));
1272
- }
1273
- else {
1274
- this.onCopyDefaultHandler();
1275
- }
1276
- }
1277
- writeValue(value) {
1278
- if (this.multiple && value && !Array.isArray(value)) {
1279
- throw getMcSelectNonArrayValueError();
1280
- }
1281
- if (value) {
1282
- this.setOptionsFromValues(this.multiple ? value : [value]);
1283
- }
1284
- else {
1285
- this.selectionModel.clear();
1286
- }
1287
- }
1288
- registerOnChange(fn) {
1289
- this.onChange = fn;
1290
- }
1291
- registerOnTouched(fn) {
1292
- this.onTouched = fn;
1293
- }
1294
- /**
1295
- * Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.
1296
- */
1297
- setDisabledState(isDisabled) {
1298
- this._disabled = isDisabled;
1299
- this.changeDetectorRef.markForCheck();
1300
- }
1301
- setOptionsFromValues(values) {
1302
- this.selectionModel.clear();
1303
- const valuesToSelect = values.reduce((result, value) => {
1304
- return this.treeControl.hasValue(value) ? [...result, this.treeControl.hasValue(value)] : [...result];
1305
- }, []);
1306
- this.selectionModel.select(...valuesToSelect);
1307
- }
1308
- getSelectedValues() {
1309
- return this.selectionModel.selected.map((selected) => this.treeControl.getValue(selected));
1310
- }
1311
- getItemHeight() {
1312
- return this.renderedOptions.first ? this.renderedOptions.first.getHeight() : 0;
1313
- }
1314
- onCopyDefaultHandler() {
1315
- var _a;
1316
- (_a = this.clipboard) === null || _a === void 0 ? void 0 : _a.copy(this.keyManager.activeItem.value);
1317
- }
1318
- getHeight() {
1319
- const clientRects = this.elementRef.nativeElement.getClientRects();
1320
- if (clientRects.length) {
1321
- return clientRects[0].height;
1322
- }
1323
- return 0;
1324
- }
1325
- updateTabIndex() {
1326
- this._tabIndex = this.renderedOptions.length === 0 ? -1 : 0;
1327
- }
1328
- getSortedNodes(viewContainer) {
1329
- const array = [];
1330
- for (let i = 0; i < viewContainer.length; i++) {
1331
- const viewRef = viewContainer.get(i);
1332
- array.push(viewRef.context.$implicit);
1333
- }
1334
- return array;
1335
- }
1336
- allowFocusEscape() {
1337
- if (this._tabIndex !== -1) {
1338
- this._tabIndex = -1;
1339
- setTimeout(() => {
1340
- this._tabIndex = this.userTabIndex || 0;
1341
- this.changeDetectorRef.markForCheck();
1342
- });
1343
- }
1344
- }
1345
- resetOptions() {
1346
- this.dropSubscriptions();
1347
- this.listenToOptionsFocus();
1348
- }
1349
- dropSubscriptions() {
1350
- if (this.optionFocusSubscription) {
1351
- this.optionFocusSubscription.unsubscribe();
1352
- this.optionFocusSubscription = null;
1353
- }
1354
- if (this.optionBlurSubscription) {
1355
- this.optionBlurSubscription.unsubscribe();
1356
- this.optionBlurSubscription = null;
1357
- }
1358
- }
1359
- listenToOptionsFocus() {
1360
- this.optionFocusSubscription = this.optionFocusChanges
1361
- .subscribe((event) => {
1362
- const index = this.renderedOptions.toArray().indexOf(event.option);
1363
- this.renderedOptions
1364
- .filter((option) => option.hasFocus)
1365
- .forEach((option) => option.hasFocus = false);
1366
- if (this.isValidIndex(index)) {
1367
- this.keyManager.updateActiveItem(index);
1368
- }
1369
- });
1370
- this.optionBlurSubscription = this.optionBlurChanges
1371
- .subscribe(() => this.blur());
1372
- }
1373
- /**
1374
- * Utility to ensure all indexes are valid.
1375
- * @param index The index to be checked.
1376
- * @returns True if the index is valid for our list of options.
1377
- */
1378
- isValidIndex(index) {
1379
- return index >= 0 && index < this.renderedOptions.length;
1380
- }
1381
- /** Checks whether any of the options is focused. */
1382
- hasFocusedOption() {
1383
- return this.renderedOptions.some((option) => option.hasFocus);
1384
- }
1385
- markOptionsForCheck() {
1386
- this.renderedOptions.forEach((option) => option.markForCheck());
1387
- }
1388
- updateOptionsFocus() {
1389
- this.renderedOptions
1390
- .filter((option) => option.hasFocus)
1391
- .forEach((option) => option.hasFocus = false);
1392
- }
1393
- canDeselectLast(option) {
1394
- return !(this.noUnselectLast && this.selectionModel.selected.length === 1 && option.selected);
1395
- }
1396
- isFocusReceivedFromNestedOption($event) {
1397
- if (!$event || !$event.relatedTarget) {
1398
- return false;
1399
- }
1400
- return $event.relatedTarget.classList.contains('mc-tree-option');
1401
- }
1402
- }
1403
- /** @nocollapse */ McTreeSelection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeSelection, deps: [{ token: i0.ElementRef }, { token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }, { token: 'multiple', attribute: true }, { token: i1$1.Clipboard, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1404
- /** @nocollapse */ McTreeSelection.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McTreeSelection, selector: "mc-tree-selection", inputs: { treeControl: "treeControl", autoSelect: "autoSelect", noUnselectLast: "noUnselectLast", disabled: "disabled", tabIndex: "tabIndex" }, outputs: { navigationChange: "navigationChange", selectionChange: "selectionChange", onSelectAll: "onSelectAll", onCopy: "onCopy" }, host: { listeners: { "blur": "blur()", "focus": "focus($event)", "keydown": "onKeyDown($event)", "window:resize": "updateScrollSize()" }, properties: { "attr.tabindex": "tabIndex", "attr.disabled": "disabled || null" }, classAttribute: "mc-tree-selection" }, providers: [
1405
- MC_SELECTION_TREE_VALUE_ACCESSOR,
1406
- { provide: MC_TREE_OPTION_PARENT_COMPONENT, useExisting: McTreeSelection },
1407
- { provide: McTreeBase, useExisting: McTreeSelection }
1408
- ], queries: [{ propertyName: "unorderedOptions", predicate: McTreeOption }], viewQueries: [{ propertyName: "nodeOutlet", first: true, predicate: McTreeNodeOutlet, descendants: true, static: true }], exportAs: ["mcTreeSelection"], usesInheritance: true, ngImport: i0, template: '<ng-container mcTreeNodeOutlet></ng-container>', isInline: true, styles: [".mc-tree-selection{display:block}\n"], directives: [{ type: McTreeNodeOutlet, selector: "[mcTreeNodeOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1409
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeSelection, decorators: [{
1410
- type: Component,
1411
- args: [{
1412
- selector: 'mc-tree-selection',
1413
- exportAs: 'mcTreeSelection',
1414
- template: '<ng-container mcTreeNodeOutlet></ng-container>',
1415
- styleUrls: ['./tree-selection.scss'],
1416
- host: {
1417
- class: 'mc-tree-selection',
1418
- '[attr.tabindex]': 'tabIndex',
1419
- '[attr.disabled]': 'disabled || null',
1420
- '(blur)': 'blur()',
1421
- '(focus)': 'focus($event)',
1422
- '(keydown)': 'onKeyDown($event)',
1423
- '(window:resize)': 'updateScrollSize()'
1424
- },
1425
- encapsulation: ViewEncapsulation.None,
1426
- changeDetection: ChangeDetectionStrategy.OnPush,
1427
- providers: [
1428
- MC_SELECTION_TREE_VALUE_ACCESSOR,
1429
- { provide: MC_TREE_OPTION_PARENT_COMPONENT, useExisting: McTreeSelection },
1430
- { provide: McTreeBase, useExisting: McTreeSelection }
1431
- ]
1432
- }]
1433
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }, { type: i1.MultipleMode, decorators: [{
1434
- type: Attribute,
1435
- args: ['multiple']
1436
- }] }, { type: i1$1.Clipboard, decorators: [{
1437
- type: Optional
1438
- }] }]; }, propDecorators: { nodeOutlet: [{
1439
- type: ViewChild,
1440
- args: [McTreeNodeOutlet, { static: true }]
1441
- }], unorderedOptions: [{
1442
- type: ContentChildren,
1443
- args: [McTreeOption]
1444
- }], treeControl: [{
1445
- type: Input
1446
- }], navigationChange: [{
1447
- type: Output
1448
- }], selectionChange: [{
1449
- type: Output
1450
- }], onSelectAll: [{
1451
- type: Output
1452
- }], onCopy: [{
1453
- type: Output
1454
- }], autoSelect: [{
1455
- type: Input
1456
- }], noUnselectLast: [{
1457
- type: Input
1458
- }], disabled: [{
1459
- type: Input
1460
- }], tabIndex: [{
1461
- type: Input
1462
- }] } });
1463
-
1464
- const MC_TREE_DIRECTIVES = [
1465
- McTreeNodeOutlet,
1466
- McTreeNodeDef,
1467
- McTreeNode,
1468
- McTreeNodePadding,
1469
- McTree,
1470
- McTreeSelection,
1471
- McTreeOption,
1472
- McTreeNodeToggleComponent,
1473
- McTreeNodeToggleDirective
1474
- ];
1475
- class McTreeModule {
1476
- }
1477
- /** @nocollapse */ McTreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1478
- /** @nocollapse */ McTreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeModule, declarations: [McTreeNodeOutlet,
1479
- McTreeNodeDef,
1480
- McTreeNode,
1481
- McTreeNodePadding,
1482
- McTree,
1483
- McTreeSelection,
1484
- McTreeOption,
1485
- McTreeNodeToggleComponent,
1486
- McTreeNodeToggleDirective], imports: [CommonModule, McPseudoCheckboxModule], exports: [McTreeNodeOutlet,
1487
- McTreeNodeDef,
1488
- McTreeNode,
1489
- McTreeNodePadding,
1490
- McTree,
1491
- McTreeSelection,
1492
- McTreeOption,
1493
- McTreeNodeToggleComponent,
1494
- McTreeNodeToggleDirective] });
1495
- /** @nocollapse */ McTreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeModule, imports: [[CommonModule, McPseudoCheckboxModule]] });
1496
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McTreeModule, decorators: [{
1497
- type: NgModule,
1498
- args: [{
1499
- imports: [CommonModule, McPseudoCheckboxModule],
1500
- exports: MC_TREE_DIRECTIVES,
1501
- declarations: MC_TREE_DIRECTIVES
1502
- }]
1503
- }] });
1504
-
1505
- /** Nested tree control. Able to expand/collapse a subtree recursively for NestedNode type. */
1506
- class NestedTreeControl extends BaseTreeControl {
1507
- /** Construct with nested tree function getChildren. */
1508
- constructor(getChildren) {
1509
- super();
1510
- this.getChildren = getChildren;
1511
- }
1512
- /**
1513
- * Expands all dataNodes in the tree.
1514
- *
1515
- * To make this working, the `dataNodes` variable of the TreeControl must be set to all root level
1516
- * data nodes of the tree.
1517
- */
1518
- expandAll() {
1519
- this.expansionModel.clear();
1520
- const allNodes = this.dataNodes.reduce((accumulator, dataNode) => [...accumulator, ...this.getDescendants(dataNode), dataNode], []);
1521
- this.expansionModel.select(...allNodes);
1522
- }
1523
- /** Gets a list of descendant dataNodes of a subtree rooted at given data node recursively. */
1524
- getDescendants(dataNode) {
1525
- const descendants = [];
1526
- this._getDescendants(descendants, dataNode);
1527
- return descendants.splice(1);
1528
- }
1529
- /** A helper function to get descendants recursively. */
1530
- // todo нужно придумать другое название и понять в чем отличие между getDescendants и _getDescendants
1531
- /* tslint:disable-next-line:naming-convention */
1532
- _getDescendants(descendants, dataNode) {
1533
- descendants.push(dataNode);
1534
- this.getChildren(dataNode)
1535
- .pipe(take(1))
1536
- .subscribe((children) => {
1537
- if (children && children.length > 0) {
1538
- children.forEach((child) => this._getDescendants(descendants, child));
1539
- }
1540
- });
1541
- }
1542
- }
1543
-
1544
- /**
1545
- * Tree flattener to convert a normal type of node to node with children & level information.
1546
- * Transform nested nodes of type `T` to flattened nodes of type `F`.
1547
- *
1548
- * For example, the input data of type `T` is nested, and contains its children data:
1549
- * SomeNode: {
1550
- * key: 'Fruits',
1551
- * children: [
1552
- * NodeOne: {
1553
- * key: 'Apple',
1554
- * },
1555
- * NodeTwo: {
1556
- * key: 'Pear',
1557
- * }
1558
- * ]
1559
- * }
1560
- * After flattener flatten the tree, the structure will become
1561
- * SomeNode: {
1562
- * key: 'Fruits',
1563
- * expandable: true,
1564
- * level: 1
1565
- * },
1566
- * NodeOne: {
1567
- * key: 'Apple',
1568
- * expandable: false,
1569
- * level: 2
1570
- * },
1571
- * NodeTwo: {
1572
- * key: 'Pear',
1573
- * expandable: false,
1574
- * level: 2
1575
- * }
1576
- * and the output flattened type is `F` with additional information.
1577
- */
1578
- class McTreeFlattener {
1579
- constructor(transformFunction, getLevel, isExpandable, getChildren) {
1580
- this.transformFunction = transformFunction;
1581
- this.getLevel = getLevel;
1582
- this.isExpandable = isExpandable;
1583
- this.getChildren = getChildren;
1584
- }
1585
- flattenNode(node, level, resultNodes, parent) {
1586
- const flatNode = this.transformFunction(node, level, parent);
1587
- resultNodes.push(flatNode);
1588
- if (this.isExpandable(flatNode)) {
1589
- const childrenNodes = this.getChildren(node);
1590
- if (childrenNodes) {
1591
- if (Array.isArray(childrenNodes)) {
1592
- this.flattenChildren(childrenNodes, level, resultNodes, flatNode);
1593
- }
1594
- else {
1595
- childrenNodes
1596
- .pipe(take(1))
1597
- .subscribe((children) => {
1598
- this.flattenChildren(children, level, resultNodes, flatNode);
1599
- });
1600
- }
1601
- }
1602
- }
1603
- return resultNodes;
1604
- }
1605
- flattenChildren(children, level, resultNodes, parent) {
1606
- children.forEach((child) => {
1607
- this.flattenNode(child, level + 1, resultNodes, parent);
1608
- });
1609
- }
1610
- /**
1611
- * Flatten a list of node type T to flattened version of node F.
1612
- * Please note that type T may be nested, and the length of `structuredData` may be different
1613
- * from that of returned list `F[]`.
1614
- */
1615
- flattenNodes(structuredData) {
1616
- const resultNodes = [];
1617
- structuredData.forEach((node) => this.flattenNode(node, 0, resultNodes, null));
1618
- return resultNodes;
1619
- }
1620
- /**
1621
- * Expand flattened node with current expansion status.
1622
- * The returned list may have different length.
1623
- */
1624
- expandFlattenedNodes(nodes, treeControl) {
1625
- const results = [];
1626
- const currentExpand = [];
1627
- currentExpand[0] = true;
1628
- nodes.forEach((node) => {
1629
- let expand = true;
1630
- for (let i = 0; i <= this.getLevel(node); i++) {
1631
- expand = expand && currentExpand[i];
1632
- }
1633
- if (expand) {
1634
- results.push(node);
1635
- }
1636
- if (this.isExpandable(node)) {
1637
- currentExpand[this.getLevel(node) + 1] = treeControl.isExpanded(node);
1638
- }
1639
- });
1640
- return results;
1641
- }
1642
- }
1643
- var McTreeDataSourceChangeTypes;
1644
- (function (McTreeDataSourceChangeTypes) {
1645
- McTreeDataSourceChangeTypes["Expansion"] = "expansion";
1646
- McTreeDataSourceChangeTypes["Filter"] = "filter";
1647
- })(McTreeDataSourceChangeTypes || (McTreeDataSourceChangeTypes = {}));
1648
- /**
1649
- * Data source for flat tree.
1650
- * The data source need to handle expansion/collapsion of the tree node and change the data feed
1651
- * to `McTree`.
1652
- * The nested tree nodes of type `T` are flattened through `MсTreeFlattener`, and converted
1653
- * to type `F` for `McTree` to consume.
1654
- */
1655
- class McTreeFlatDataSource extends DataSource {
1656
- constructor(treeControl, treeFlattener, initialData = []) {
1657
- super();
1658
- this.treeControl = treeControl;
1659
- this.treeFlattener = treeFlattener;
1660
- this.flattenedData = new BehaviorSubject([]);
1661
- this.expandedData = new BehaviorSubject([]);
1662
- this.filteredData = new BehaviorSubject([]);
1663
- this._data = new BehaviorSubject(initialData);
1664
- }
1665
- get data() {
1666
- return this._data.value;
1667
- }
1668
- set data(value) {
1669
- this._data.next(value);
1670
- this.flattenedData.next(this.treeFlattener.flattenNodes(this.data));
1671
- this.treeControl.dataNodes = this.flattenedData.value;
1672
- }
1673
- connect(collectionViewer) {
1674
- return merge(collectionViewer.viewChange, this.treeControl.expansionModel.changed
1675
- .pipe(map((value) => ({ type: McTreeDataSourceChangeTypes.Expansion, value }))), this.treeControl.filterValue
1676
- .pipe(map((value) => ({ type: McTreeDataSourceChangeTypes.Filter, value }))), this.flattenedData)
1677
- .pipe(map((changeObj) => {
1678
- if (changeObj.type === McTreeDataSourceChangeTypes.Filter) {
1679
- if (changeObj.value && changeObj.value.length > 0) {
1680
- return this.filterHandler();
1681
- }
1682
- else {
1683
- return this.expansionHandler();
1684
- }
1685
- }
1686
- return this.expansionHandler();
1687
- }));
1688
- }
1689
- filterHandler() {
1690
- this.filteredData.next(this.treeControl.filterModel.selected);
1691
- return this.filteredData.value;
1692
- }
1693
- expansionHandler() {
1694
- const expandedNodes = this.treeFlattener.expandFlattenedNodes(this.flattenedData.value, this.treeControl);
1695
- this.expandedData.next(expandedNodes);
1696
- return this.expandedData.value;
1697
- }
1698
- disconnect() {
1699
- // no op
1700
- }
1701
- }
1702
-
1703
- /**
1704
- * Data source for nested tree.
1705
- *
1706
- * The data source for nested tree doesn't have to consider node flattener, or the way to expand
1707
- * or collapse. The expansion/collapsion will be handled by TreeControl and each non-leaf node.
1708
- */
1709
- class McTreeNestedDataSource extends DataSource {
1710
- constructor() {
1711
- super(...arguments);
1712
- /* tslint:disable-next-line:naming-convention */
1713
- this._data = new BehaviorSubject([]);
1714
- }
1715
- get data() {
1716
- return this._data.value;
1717
- }
1718
- set data(value) {
1719
- this._data.next(value);
1720
- }
1721
- connect(collectionViewer) {
1722
- return merge(...[collectionViewer.viewChange, this._data])
1723
- .pipe(map(() => this.data));
1724
- }
1725
- disconnect() {
1726
- // no op
1727
- }
1728
- }
1729
-
1730
- /**
1731
- * Generated bundle index. Do not edit.
1732
- */
1733
-
1734
- export { BaseTreeControl, FlatTreeControl, MC_SELECTION_TREE_VALUE_ACCESSOR, MC_TREE_OPTION_PARENT_COMPONENT, McTree, McTreeBase, McTreeCopyEvent, McTreeFlatDataSource, McTreeFlattener, McTreeModule, McTreeNavigationChange, McTreeNestedDataSource, McTreeNode, McTreeNodeDef, McTreeNodeOutlet, McTreeNodeOutletContext, McTreeNodePadding, McTreeNodeToggleBase, McTreeNodeToggleBaseDirective, McTreeNodeToggleComponent, McTreeNodeToggleDirective, McTreeNodeToggleMixinBase, McTreeOption, McTreeOptionChange, McTreeSelectAllEvent, McTreeSelection, McTreeSelectionChange, NestedTreeControl, defaultCompareValues, defaultCompareViewValues };
1735
- //# sourceMappingURL=ptsecurity-mosaic-tree.js.map