@ptsecurity/mosaic 11.5.0 → 12.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (630) hide show
  1. package/_theming.scss +409 -100
  2. package/_visual.scss +66 -23
  3. package/autocomplete/autocomplete-origin.directive.d.ts +3 -0
  4. package/autocomplete/autocomplete-trigger.directive.d.ts +3 -0
  5. package/autocomplete/autocomplete.component.d.ts +3 -0
  6. package/autocomplete/autocomplete.module.d.ts +10 -0
  7. package/autocomplete/package.json +0 -1
  8. package/autocomplete/ptsecurity-mosaic-autocomplete.d.ts +1 -0
  9. package/bundles/ptsecurity-mosaic-autocomplete.umd.js +178 -114
  10. package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +1 -1
  11. package/bundles/ptsecurity-mosaic-button-toggle.umd.js +107 -71
  12. package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +1 -1
  13. package/bundles/ptsecurity-mosaic-button.umd.js +106 -77
  14. package/bundles/ptsecurity-mosaic-button.umd.js.map +1 -1
  15. package/bundles/ptsecurity-mosaic-card.umd.js +74 -43
  16. package/bundles/ptsecurity-mosaic-card.umd.js.map +1 -1
  17. package/bundles/ptsecurity-mosaic-checkbox.umd.js +114 -69
  18. package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +1 -1
  19. package/bundles/ptsecurity-mosaic-core.umd.js +804 -256
  20. package/bundles/ptsecurity-mosaic-core.umd.js.map +1 -1
  21. package/bundles/ptsecurity-mosaic-datepicker.umd.js +601 -421
  22. package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +1 -1
  23. package/bundles/ptsecurity-mosaic-design-tokens.umd.js +108 -26
  24. package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +1 -1
  25. package/bundles/ptsecurity-mosaic-divider.umd.js +55 -28
  26. package/bundles/ptsecurity-mosaic-divider.umd.js.map +1 -1
  27. package/bundles/ptsecurity-mosaic-dropdown.umd.js +263 -187
  28. package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +1 -1
  29. package/bundles/ptsecurity-mosaic-form-field.umd.js +200 -125
  30. package/bundles/ptsecurity-mosaic-form-field.umd.js.map +1 -1
  31. package/bundles/ptsecurity-mosaic-icon.umd.js +79 -41
  32. package/bundles/ptsecurity-mosaic-icon.umd.js.map +1 -1
  33. package/bundles/ptsecurity-mosaic-input.umd.js +222 -124
  34. package/bundles/ptsecurity-mosaic-input.umd.js.map +1 -1
  35. package/bundles/ptsecurity-mosaic-link.umd.js +76 -45
  36. package/bundles/ptsecurity-mosaic-link.umd.js.map +1 -1
  37. package/bundles/ptsecurity-mosaic-list.umd.js +354 -202
  38. package/bundles/ptsecurity-mosaic-list.umd.js.map +1 -1
  39. package/bundles/ptsecurity-mosaic-modal.umd.js +324 -220
  40. package/bundles/ptsecurity-mosaic-modal.umd.js.map +1 -1
  41. package/bundles/ptsecurity-mosaic-navbar.umd.js +289 -208
  42. package/bundles/ptsecurity-mosaic-navbar.umd.js.map +1 -1
  43. package/bundles/ptsecurity-mosaic-popover.umd.js +346 -640
  44. package/bundles/ptsecurity-mosaic-popover.umd.js.map +1 -1
  45. package/bundles/ptsecurity-mosaic-progress-bar.umd.js +69 -40
  46. package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +1 -1
  47. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +69 -40
  48. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +1 -1
  49. package/bundles/ptsecurity-mosaic-radio.umd.js +126 -81
  50. package/bundles/ptsecurity-mosaic-radio.umd.js.map +1 -1
  51. package/bundles/ptsecurity-mosaic-select.umd.js +276 -154
  52. package/bundles/ptsecurity-mosaic-select.umd.js.map +1 -1
  53. package/bundles/ptsecurity-mosaic-sidebar.umd.js +105 -68
  54. package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +1 -1
  55. package/bundles/ptsecurity-mosaic-sidepanel.umd.js +236 -158
  56. package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +1 -1
  57. package/bundles/ptsecurity-mosaic-splitter.umd.js +112 -83
  58. package/bundles/ptsecurity-mosaic-splitter.umd.js.map +1 -1
  59. package/bundles/ptsecurity-mosaic-table.umd.js +77 -44
  60. package/bundles/ptsecurity-mosaic-table.umd.js.map +1 -1
  61. package/bundles/ptsecurity-mosaic-tabs.umd.js +894 -687
  62. package/bundles/ptsecurity-mosaic-tabs.umd.js.map +1 -1
  63. package/bundles/ptsecurity-mosaic-tags.umd.js +313 -209
  64. package/bundles/ptsecurity-mosaic-tags.umd.js.map +1 -1
  65. package/bundles/ptsecurity-mosaic-textarea.umd.js +107 -53
  66. package/bundles/ptsecurity-mosaic-textarea.umd.js.map +1 -1
  67. package/bundles/ptsecurity-mosaic-timepicker.umd.js +117 -72
  68. package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +1 -1
  69. package/bundles/ptsecurity-mosaic-toggle.umd.js +97 -58
  70. package/bundles/ptsecurity-mosaic-toggle.umd.js.map +1 -1
  71. package/bundles/ptsecurity-mosaic-tooltip.umd.js +347 -615
  72. package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +1 -1
  73. package/bundles/ptsecurity-mosaic-tree-select.umd.js +223 -118
  74. package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +1 -1
  75. package/bundles/ptsecurity-mosaic-tree.umd.js +1162 -344
  76. package/bundles/ptsecurity-mosaic-tree.umd.js.map +1 -1
  77. package/bundles/ptsecurity-mosaic.umd.js +2 -2
  78. package/button/button.component.d.ts +7 -0
  79. package/button/button.module.d.ts +8 -0
  80. package/button/package.json +0 -1
  81. package/button/ptsecurity-mosaic-button.d.ts +1 -0
  82. package/button-toggle/button-toggle.component.d.ts +5 -0
  83. package/button-toggle/button-toggle.module.d.ts +7 -0
  84. package/button-toggle/package.json +0 -1
  85. package/button-toggle/ptsecurity-mosaic-button-toggle.d.ts +1 -0
  86. package/card/card.component.d.ts +3 -0
  87. package/card/card.module.d.ts +8 -0
  88. package/card/package.json +0 -1
  89. package/card/ptsecurity-mosaic-card.d.ts +1 -0
  90. package/checkbox/checkbox-module.d.ts +7 -0
  91. package/checkbox/checkbox-required-validator.d.ts +3 -0
  92. package/checkbox/checkbox.d.ts +3 -0
  93. package/checkbox/package.json +0 -1
  94. package/checkbox/ptsecurity-mosaic-checkbox.d.ts +1 -0
  95. package/core/common-behaviors/color.d.ts +3 -3
  96. package/core/common-behaviors/common-module.d.ts +5 -0
  97. package/core/common-behaviors/disabled.d.ts +4 -3
  98. package/core/common-behaviors/tabindex.d.ts +2 -1
  99. package/core/error/error-options.d.ts +5 -0
  100. package/core/formatters/date/formatter.d.ts +3 -0
  101. package/core/formatters/index.d.ts +5 -0
  102. package/core/formatters/number/formatter.d.ts +4 -0
  103. package/core/forms/forms-module.d.ts +5 -0
  104. package/core/forms/forms.directive.d.ts +5 -0
  105. package/core/highlight/highlight.pipe.d.ts +3 -0
  106. package/core/highlight/index.d.ts +6 -0
  107. package/core/line/line.d.ts +6 -0
  108. package/core/option/action.d.ts +42 -0
  109. package/core/option/index.d.ts +1 -0
  110. package/core/option/optgroup.d.ts +3 -0
  111. package/core/option/option-module.d.ts +9 -0
  112. package/core/option/option.d.ts +3 -0
  113. package/core/overlay/overlay-position-map.d.ts +0 -4
  114. package/core/package.json +0 -1
  115. package/core/pop-up/constants.d.ts +29 -0
  116. package/core/pop-up/index.d.ts +3 -0
  117. package/core/pop-up/pop-up-trigger.d.ts +70 -0
  118. package/core/pop-up/pop-up.d.ts +35 -0
  119. package/core/ptsecurity-mosaic-core.d.ts +1 -1
  120. package/core/public-api.d.ts +1 -0
  121. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -0
  122. package/core/selection/pseudo-checkbox/pseudo-checkbox.module.d.ts +6 -0
  123. package/core/services/measure-scrollbar.service.d.ts +3 -0
  124. package/datepicker/calendar-body.component.d.ts +5 -6
  125. package/datepicker/calendar.component.d.ts +5 -0
  126. package/datepicker/datepicker-input.directive.d.ts +6 -2
  127. package/datepicker/datepicker-intl.d.ts +3 -0
  128. package/datepicker/datepicker-module.d.ts +18 -0
  129. package/datepicker/datepicker-toggle.component.d.ts +5 -0
  130. package/datepicker/datepicker.component.d.ts +5 -0
  131. package/datepicker/month-view.component.d.ts +3 -0
  132. package/datepicker/multi-year-view.component.d.ts +3 -0
  133. package/datepicker/package.json +0 -1
  134. package/datepicker/ptsecurity-mosaic-datepicker.d.ts +1 -0
  135. package/datepicker/year-view.component.d.ts +3 -0
  136. package/design-tokens/package.json +0 -1
  137. package/design-tokens/ptsecurity-mosaic-design-tokens.d.ts +1 -0
  138. package/design-tokens/tokens/components/list.json5 +0 -4
  139. package/design-tokens/tokens/components/popover.json5 +32 -4
  140. package/design-tokens/tokens/components/tooltip.json5 +49 -3
  141. package/design-tokens/tokens/components/tree.json5 +3 -3
  142. package/design-tokens/tokens/properties/globals.json5 +1 -1
  143. package/design-tokens/tokens.d.ts +56 -15
  144. package/divider/divider.component.d.ts +3 -0
  145. package/divider/divider.module.d.ts +6 -0
  146. package/divider/package.json +0 -1
  147. package/divider/ptsecurity-mosaic-divider.d.ts +1 -0
  148. package/dropdown/dropdown-content.directive.d.ts +3 -0
  149. package/dropdown/dropdown-item.component.d.ts +3 -0
  150. package/dropdown/dropdown-trigger.directive.d.ts +6 -8
  151. package/dropdown/dropdown.component.d.ts +5 -1
  152. package/dropdown/dropdown.module.d.ts +11 -0
  153. package/dropdown/package.json +0 -1
  154. package/dropdown/ptsecurity-mosaic-dropdown.d.ts +1 -0
  155. package/esm2015/autocomplete/autocomplete-origin.directive.js +11 -11
  156. package/esm2015/autocomplete/autocomplete-trigger.directive.js +53 -38
  157. package/esm2015/autocomplete/autocomplete.component.js +56 -37
  158. package/esm2015/autocomplete/autocomplete.module.js +25 -15
  159. package/esm2015/button/button.component.js +52 -56
  160. package/esm2015/button/button.module.js +35 -20
  161. package/esm2015/button-toggle/button-toggle.component.js +76 -55
  162. package/esm2015/button-toggle/button-toggle.module.js +13 -8
  163. package/esm2015/card/card.component.js +32 -30
  164. package/esm2015/card/card.module.js +23 -12
  165. package/esm2015/checkbox/checkbox-module.js +13 -8
  166. package/esm2015/checkbox/checkbox-required-validator.js +12 -8
  167. package/esm2015/checkbox/checkbox.js +61 -44
  168. package/esm2015/core/common-behaviors/color.js +2 -5
  169. package/esm2015/core/common-behaviors/common-module.js +17 -11
  170. package/esm2015/core/common-behaviors/disabled.js +1 -1
  171. package/esm2015/core/common-behaviors/tabindex.js +4 -13
  172. package/esm2015/core/error/error-options.js +12 -8
  173. package/esm2015/core/formatters/date/formatter.js +13 -10
  174. package/esm2015/core/formatters/index.js +13 -8
  175. package/esm2015/core/formatters/number/formatter.js +16 -10
  176. package/esm2015/core/forms/forms-module.js +20 -13
  177. package/esm2015/core/forms/forms.directive.js +32 -29
  178. package/esm2015/core/highlight/highlight.pipe.js +8 -4
  179. package/esm2015/core/highlight/index.js +13 -8
  180. package/esm2015/core/line/line.js +22 -14
  181. package/esm2015/core/option/action.js +131 -0
  182. package/esm2015/core/option/index.js +2 -1
  183. package/esm2015/core/option/optgroup.js +22 -19
  184. package/esm2015/core/option/option-module.js +14 -8
  185. package/esm2015/core/option/option.js +44 -35
  186. package/esm2015/core/overlay/overlay-position-map.js +16 -18
  187. package/esm2015/core/pop-up/constants.js +34 -0
  188. package/esm2015/core/pop-up/index.js +4 -0
  189. package/esm2015/core/pop-up/pop-up-trigger.js +241 -0
  190. package/esm2015/core/pop-up/pop-up.js +87 -0
  191. package/esm2015/core/ptsecurity-mosaic-core.js +1 -2
  192. package/esm2015/core/public-api.js +2 -1
  193. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +25 -21
  194. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +13 -8
  195. package/esm2015/core/services/measure-scrollbar.service.js +12 -12
  196. package/esm2015/datepicker/calendar-body.component.js +39 -32
  197. package/esm2015/datepicker/calendar.component.js +92 -58
  198. package/esm2015/datepicker/datepicker-input.directive.js +94 -62
  199. package/esm2015/datepicker/datepicker-intl.js +7 -5
  200. package/esm2015/datepicker/datepicker-module.js +89 -48
  201. package/esm2015/datepicker/datepicker-toggle.component.js +44 -32
  202. package/esm2015/datepicker/datepicker.component.js +88 -63
  203. package/esm2015/datepicker/month-view.component.js +48 -29
  204. package/esm2015/datepicker/multi-year-view.component.js +40 -27
  205. package/esm2015/datepicker/year-view.component.js +45 -28
  206. package/esm2015/design-tokens/tokens.js +57 -16
  207. package/esm2015/divider/divider.component.js +24 -20
  208. package/esm2015/divider/divider.module.js +13 -8
  209. package/esm2015/dropdown/dropdown-content.directive.js +13 -15
  210. package/esm2015/dropdown/dropdown-item.component.js +40 -30
  211. package/esm2015/dropdown/dropdown-trigger.directive.js +75 -67
  212. package/esm2015/dropdown/dropdown.component.js +63 -38
  213. package/esm2015/dropdown/dropdown.module.js +40 -23
  214. package/esm2015/form-field/cleaner.js +20 -11
  215. package/esm2015/form-field/form-field.js +77 -53
  216. package/esm2015/form-field/form-field.module.js +41 -24
  217. package/esm2015/form-field/hint.js +16 -13
  218. package/esm2015/form-field/prefix.js +10 -6
  219. package/esm2015/form-field/stepper.js +22 -11
  220. package/esm2015/form-field/suffix.js +10 -6
  221. package/esm2015/icon/icon.component.js +27 -22
  222. package/esm2015/icon/icon.module.js +31 -18
  223. package/esm2015/input/input-number-validators.js +48 -29
  224. package/esm2015/input/input-number.js +42 -28
  225. package/esm2015/input/input.js +94 -52
  226. package/esm2015/input/input.module.js +13 -8
  227. package/esm2015/link/link.component.js +38 -34
  228. package/esm2015/link/link.module.js +20 -11
  229. package/esm2015/list/list-selection.component.js +234 -124
  230. package/esm2015/list/list.component.js +35 -32
  231. package/esm2015/list/list.module.js +47 -25
  232. package/esm2015/modal/css-unit.pipe.js +10 -6
  233. package/esm2015/modal/modal-control.service.js +11 -8
  234. package/esm2015/modal/modal.component.js +107 -61
  235. package/esm2015/modal/modal.directive.js +43 -30
  236. package/esm2015/modal/modal.module.js +59 -31
  237. package/esm2015/modal/modal.service.js +9 -9
  238. package/esm2015/modal/ptsecurity-mosaic-modal.js +1 -3
  239. package/esm2015/navbar/navbar-item.component.js +111 -95
  240. package/esm2015/navbar/navbar.component.js +40 -30
  241. package/esm2015/navbar/navbar.module.js +66 -35
  242. package/esm2015/navbar/ptsecurity-mosaic-navbar.js +1 -2
  243. package/esm2015/navbar/vertical-navbar.component.js +68 -46
  244. package/esm2015/popover/popover-confirm.component.js +115 -0
  245. package/esm2015/popover/popover.component.js +180 -587
  246. package/esm2015/popover/popover.module.js +18 -12
  247. package/esm2015/popover/public-api.js +2 -1
  248. package/esm2015/progress-bar/progress-bar.component.js +26 -24
  249. package/esm2015/progress-bar/progress-bar.module.js +24 -15
  250. package/esm2015/progress-spinner/progress-spinner.component.js +26 -24
  251. package/esm2015/progress-spinner/progress-spinner.module.js +24 -15
  252. package/esm2015/radio/radio.component.js +87 -67
  253. package/esm2015/radio/radio.module.js +13 -8
  254. package/esm2015/select/select.component.js +181 -105
  255. package/esm2015/select/select.module.js +54 -28
  256. package/esm2015/sidebar/ptsecurity-mosaic-sidebar.js +1 -2
  257. package/esm2015/sidebar/sidebar.component.js +61 -50
  258. package/esm2015/sidebar/sidebar.module.js +25 -16
  259. package/esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js +1 -2
  260. package/esm2015/sidepanel/sidepanel-container.component.js +46 -40
  261. package/esm2015/sidepanel/sidepanel-directives.js +87 -57
  262. package/esm2015/sidepanel/sidepanel.module.js +63 -30
  263. package/esm2015/sidepanel/sidepanel.service.js +20 -12
  264. package/esm2015/splitter/splitter.component.js +62 -64
  265. package/esm2015/splitter/splitter.module.js +32 -19
  266. package/esm2015/table/table.component.js +13 -9
  267. package/esm2015/table/table.module.js +23 -12
  268. package/esm2015/tabs/paginated-tab-header.js +20 -18
  269. package/esm2015/tabs/ptsecurity-mosaic-tabs.js +1 -6
  270. package/esm2015/tabs/tab-body.component.js +52 -42
  271. package/esm2015/tabs/tab-content.directive.js +8 -8
  272. package/esm2015/tabs/tab-group.component.js +145 -74
  273. package/esm2015/tabs/tab-header.component.js +50 -36
  274. package/esm2015/tabs/tab-label-wrapper.directive.js +30 -16
  275. package/esm2015/tabs/tab-label.directive.js +11 -7
  276. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +46 -46
  277. package/esm2015/tabs/tab.component.js +67 -33
  278. package/esm2015/tabs/tabs.module.js +87 -45
  279. package/esm2015/tags/tag-input.js +48 -34
  280. package/esm2015/tags/tag-list.component.js +93 -56
  281. package/esm2015/tags/tag.component.js +90 -73
  282. package/esm2015/tags/tag.module.js +46 -29
  283. package/esm2015/textarea/textarea.component.js +70 -41
  284. package/esm2015/textarea/textarea.module.js +13 -8
  285. package/esm2015/timepicker/timepicker.directive.js +66 -54
  286. package/esm2015/timepicker/timepicker.module.js +26 -13
  287. package/esm2015/toggle/toggle.component.js +65 -47
  288. package/esm2015/toggle/toggle.module.js +13 -8
  289. package/esm2015/tooltip/tooltip.animations.js +19 -0
  290. package/esm2015/tooltip/tooltip.component.js +239 -555
  291. package/esm2015/tooltip/tooltip.module.js +38 -11
  292. package/esm2015/tree/control/base-tree-control.js +60 -0
  293. package/esm2015/tree/control/flat-tree-control.js +123 -0
  294. package/esm2015/tree/control/nested-tree-control.js +41 -0
  295. package/esm2015/tree/control/tree-control.js +2 -0
  296. package/esm2015/tree/data-source/flat-data-source.js +1 -1
  297. package/esm2015/tree/node.js +31 -0
  298. package/esm2015/tree/outlet.js +15 -0
  299. package/esm2015/tree/padding.directive.js +98 -25
  300. package/esm2015/tree/public-api.js +9 -2
  301. package/esm2015/tree/toggle.js +65 -70
  302. package/esm2015/tree/tree-base.js +243 -0
  303. package/esm2015/tree/tree-errors.js +36 -0
  304. package/esm2015/tree/tree-option.component.js +102 -56
  305. package/esm2015/tree/tree-selection.component.js +180 -115
  306. package/esm2015/tree/tree.js +23 -0
  307. package/esm2015/tree/tree.module.js +38 -12
  308. package/esm2015/tree-select/tree-select.component.js +153 -85
  309. package/esm2015/tree-select/tree-select.module.js +33 -18
  310. package/fesm2015/ptsecurity-mosaic-autocomplete.js +140 -102
  311. package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +1 -1
  312. package/fesm2015/ptsecurity-mosaic-button-toggle.js +87 -63
  313. package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +1 -1
  314. package/fesm2015/ptsecurity-mosaic-button.js +86 -76
  315. package/fesm2015/ptsecurity-mosaic-button.js.map +1 -1
  316. package/fesm2015/ptsecurity-mosaic-card.js +54 -42
  317. package/fesm2015/ptsecurity-mosaic-card.js.map +1 -1
  318. package/fesm2015/ptsecurity-mosaic-checkbox.js +82 -59
  319. package/fesm2015/ptsecurity-mosaic-checkbox.js.map +1 -1
  320. package/fesm2015/ptsecurity-mosaic-core.js +758 -239
  321. package/fesm2015/ptsecurity-mosaic-core.js.map +1 -1
  322. package/fesm2015/ptsecurity-mosaic-datepicker.js +546 -377
  323. package/fesm2015/ptsecurity-mosaic-datepicker.js.map +1 -1
  324. package/fesm2015/ptsecurity-mosaic-design-tokens.js +57 -16
  325. package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +1 -1
  326. package/fesm2015/ptsecurity-mosaic-divider.js +34 -26
  327. package/fesm2015/ptsecurity-mosaic-divider.js.map +1 -1
  328. package/fesm2015/ptsecurity-mosaic-dropdown.js +219 -171
  329. package/fesm2015/ptsecurity-mosaic-dropdown.js.map +1 -1
  330. package/fesm2015/ptsecurity-mosaic-form-field.js +184 -119
  331. package/fesm2015/ptsecurity-mosaic-form-field.js.map +1 -1
  332. package/fesm2015/ptsecurity-mosaic-icon.js +56 -39
  333. package/fesm2015/ptsecurity-mosaic-icon.js.map +1 -1
  334. package/fesm2015/ptsecurity-mosaic-input.js +191 -116
  335. package/fesm2015/ptsecurity-mosaic-input.js.map +1 -1
  336. package/fesm2015/ptsecurity-mosaic-link.js +57 -45
  337. package/fesm2015/ptsecurity-mosaic-link.js.map +1 -1
  338. package/fesm2015/ptsecurity-mosaic-list.js +311 -179
  339. package/fesm2015/ptsecurity-mosaic-list.js.map +1 -1
  340. package/fesm2015/ptsecurity-mosaic-modal.js +243 -159
  341. package/fesm2015/ptsecurity-mosaic-modal.js.map +1 -1
  342. package/fesm2015/ptsecurity-mosaic-navbar.js +280 -205
  343. package/fesm2015/ptsecurity-mosaic-navbar.js.map +1 -1
  344. package/fesm2015/ptsecurity-mosaic-popover.js +297 -597
  345. package/fesm2015/ptsecurity-mosaic-popover.js.map +1 -1
  346. package/fesm2015/ptsecurity-mosaic-progress-bar.js +48 -38
  347. package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +1 -1
  348. package/fesm2015/ptsecurity-mosaic-progress-spinner.js +48 -38
  349. package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +1 -1
  350. package/fesm2015/ptsecurity-mosaic-radio.js +99 -76
  351. package/fesm2015/ptsecurity-mosaic-radio.js.map +1 -1
  352. package/fesm2015/ptsecurity-mosaic-select.js +236 -136
  353. package/fesm2015/ptsecurity-mosaic-select.js.map +1 -1
  354. package/fesm2015/ptsecurity-mosaic-sidebar.js +85 -66
  355. package/fesm2015/ptsecurity-mosaic-sidebar.js.map +1 -1
  356. package/fesm2015/ptsecurity-mosaic-sidepanel.js +207 -139
  357. package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +1 -1
  358. package/fesm2015/ptsecurity-mosaic-splitter.js +92 -82
  359. package/fesm2015/ptsecurity-mosaic-splitter.js.map +1 -1
  360. package/fesm2015/ptsecurity-mosaic-table.js +33 -19
  361. package/fesm2015/ptsecurity-mosaic-table.js.map +1 -1
  362. package/fesm2015/ptsecurity-mosaic-tabs.js +557 -387
  363. package/fesm2015/ptsecurity-mosaic-tabs.js.map +1 -1
  364. package/fesm2015/ptsecurity-mosaic-tags.js +273 -192
  365. package/fesm2015/ptsecurity-mosaic-tags.js.map +1 -1
  366. package/fesm2015/ptsecurity-mosaic-textarea.js +83 -50
  367. package/fesm2015/ptsecurity-mosaic-textarea.js.map +1 -1
  368. package/fesm2015/ptsecurity-mosaic-timepicker.js +89 -66
  369. package/fesm2015/ptsecurity-mosaic-timepicker.js.map +1 -1
  370. package/fesm2015/ptsecurity-mosaic-toggle.js +77 -55
  371. package/fesm2015/ptsecurity-mosaic-toggle.js.map +1 -1
  372. package/fesm2015/ptsecurity-mosaic-tooltip.js +293 -566
  373. package/fesm2015/ptsecurity-mosaic-tooltip.js.map +1 -1
  374. package/fesm2015/ptsecurity-mosaic-tree-select.js +188 -106
  375. package/fesm2015/ptsecurity-mosaic-tree-select.js.map +1 -1
  376. package/fesm2015/ptsecurity-mosaic-tree.js +1001 -279
  377. package/fesm2015/ptsecurity-mosaic-tree.js.map +1 -1
  378. package/form-field/cleaner.d.ts +5 -0
  379. package/form-field/form-field.d.ts +5 -0
  380. package/form-field/form-field.module.d.ts +12 -0
  381. package/form-field/hint.d.ts +3 -0
  382. package/form-field/package.json +0 -1
  383. package/form-field/prefix.d.ts +3 -0
  384. package/form-field/ptsecurity-mosaic-form-field.d.ts +1 -0
  385. package/form-field/stepper.d.ts +3 -0
  386. package/form-field/suffix.d.ts +3 -0
  387. package/icon/icon.component.d.ts +5 -0
  388. package/icon/icon.module.d.ts +8 -0
  389. package/icon/package.json +0 -1
  390. package/icon/ptsecurity-mosaic-icon.d.ts +1 -0
  391. package/input/input-number-validators.d.ts +7 -2
  392. package/input/input-number.d.ts +3 -0
  393. package/input/input.d.ts +5 -0
  394. package/input/input.module.d.ts +11 -0
  395. package/input/package.json +0 -1
  396. package/input/ptsecurity-mosaic-input.d.ts +1 -0
  397. package/link/link.component.d.ts +3 -0
  398. package/link/link.module.d.ts +7 -0
  399. package/link/package.json +0 -1
  400. package/link/ptsecurity-mosaic-link.d.ts +1 -0
  401. package/list/list-selection.component.d.ts +30 -3
  402. package/list/list.component.d.ts +5 -0
  403. package/list/list.module.d.ts +9 -0
  404. package/list/package.json +0 -1
  405. package/list/ptsecurity-mosaic-list.d.ts +1 -0
  406. package/modal/css-unit.pipe.d.ts +3 -0
  407. package/modal/modal-control.service.d.ts +3 -0
  408. package/modal/modal.component.d.ts +5 -0
  409. package/modal/modal.directive.d.ts +9 -0
  410. package/modal/modal.module.d.ts +12 -0
  411. package/modal/modal.service.d.ts +3 -0
  412. package/modal/package.json +0 -1
  413. package/modal/ptsecurity-mosaic-modal.d.ts +1 -2
  414. package/navbar/navbar-item.component.d.ts +13 -0
  415. package/navbar/navbar.component.d.ts +5 -0
  416. package/navbar/navbar.module.d.ts +11 -0
  417. package/navbar/package.json +0 -1
  418. package/navbar/ptsecurity-mosaic-navbar.d.ts +1 -1
  419. package/navbar/vertical-navbar.component.d.ts +5 -0
  420. package/package.json +8 -9
  421. package/popover/package.json +0 -1
  422. package/popover/popover-confirm.component.d.ts +33 -0
  423. package/popover/popover.component.d.ts +50 -136
  424. package/popover/popover.module.d.ts +9 -0
  425. package/popover/ptsecurity-mosaic-popover.d.ts +1 -0
  426. package/popover/public-api.d.ts +1 -0
  427. package/prebuilt-themes/dark-theme.css +1 -1
  428. package/prebuilt-themes/default-theme.css +1 -1
  429. package/prebuilt-visual/default-visual.css +1 -1
  430. package/progress-bar/package.json +0 -1
  431. package/progress-bar/progress-bar.component.d.ts +3 -0
  432. package/progress-bar/progress-bar.module.d.ts +7 -0
  433. package/progress-bar/ptsecurity-mosaic-progress-bar.d.ts +1 -0
  434. package/progress-spinner/package.json +0 -1
  435. package/progress-spinner/progress-spinner.component.d.ts +3 -0
  436. package/progress-spinner/progress-spinner.module.d.ts +7 -0
  437. package/progress-spinner/ptsecurity-mosaic-progress-spinner.d.ts +1 -0
  438. package/ptsecurity-mosaic.d.ts +1 -0
  439. package/radio/package.json +0 -1
  440. package/radio/ptsecurity-mosaic-radio.d.ts +1 -0
  441. package/radio/radio.component.d.ts +5 -0
  442. package/radio/radio.module.d.ts +8 -0
  443. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +6 -3
  444. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
  445. package/select/package.json +0 -1
  446. package/select/ptsecurity-mosaic-select.d.ts +1 -0
  447. package/select/select.component.d.ts +11 -7
  448. package/select/select.module.d.ts +11 -0
  449. package/sidebar/package.json +0 -1
  450. package/sidebar/ptsecurity-mosaic-sidebar.d.ts +1 -1
  451. package/sidebar/sidebar.component.d.ts +7 -0
  452. package/sidebar/sidebar.module.d.ts +6 -0
  453. package/sidepanel/package.json +0 -1
  454. package/sidepanel/ptsecurity-mosaic-sidepanel.d.ts +1 -1
  455. package/sidepanel/sidepanel-container.component.d.ts +3 -0
  456. package/sidepanel/sidepanel-directives.d.ts +13 -0
  457. package/sidepanel/sidepanel.module.d.ts +13 -0
  458. package/sidepanel/sidepanel.service.d.ts +3 -0
  459. package/splitter/package.json +0 -1
  460. package/splitter/ptsecurity-mosaic-splitter.d.ts +1 -0
  461. package/splitter/splitter.component.d.ts +7 -0
  462. package/splitter/splitter.module.d.ts +7 -0
  463. package/table/package.json +0 -1
  464. package/table/ptsecurity-mosaic-table.d.ts +1 -0
  465. package/table/table.component.d.ts +3 -0
  466. package/table/table.module.d.ts +8 -0
  467. package/tabs/package.json +0 -1
  468. package/tabs/paginated-tab-header.d.ts +3 -0
  469. package/tabs/ptsecurity-mosaic-tabs.d.ts +1 -5
  470. package/tabs/tab-body.component.d.ts +5 -0
  471. package/tabs/tab-content.directive.d.ts +3 -0
  472. package/tabs/tab-group.component.d.ts +24 -4
  473. package/tabs/tab-header.component.d.ts +3 -0
  474. package/tabs/tab-label-wrapper.directive.d.ts +9 -0
  475. package/tabs/tab-label.directive.d.ts +3 -0
  476. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +5 -0
  477. package/tabs/tab.component.d.ts +12 -3
  478. package/tabs/tabs.module.d.ts +18 -0
  479. package/tags/package.json +0 -1
  480. package/tags/ptsecurity-mosaic-tags.d.ts +1 -0
  481. package/tags/tag-input.d.ts +3 -0
  482. package/tags/tag-list.component.d.ts +3 -0
  483. package/tags/tag.component.d.ts +9 -0
  484. package/tags/tag.module.d.ts +9 -0
  485. package/textarea/package.json +0 -1
  486. package/textarea/ptsecurity-mosaic-textarea.d.ts +1 -0
  487. package/textarea/textarea.component.d.ts +3 -0
  488. package/textarea/textarea.module.d.ts +9 -0
  489. package/timepicker/package.json +0 -1
  490. package/timepicker/ptsecurity-mosaic-timepicker.d.ts +1 -0
  491. package/timepicker/timepicker.directive.d.ts +5 -2
  492. package/timepicker/timepicker.module.d.ts +9 -0
  493. package/toggle/package.json +0 -1
  494. package/toggle/ptsecurity-mosaic-toggle.d.ts +1 -0
  495. package/toggle/toggle.component.d.ts +3 -0
  496. package/toggle/toggle.module.d.ts +8 -0
  497. package/tooltip/package.json +0 -1
  498. package/tooltip/ptsecurity-mosaic-tooltip.d.ts +1 -0
  499. package/tooltip/tooltip.animations.d.ts +8 -0
  500. package/tooltip/tooltip.component.d.ts +74 -134
  501. package/tooltip/tooltip.module.d.ts +7 -0
  502. package/tree/control/base-tree-control.d.ts +40 -0
  503. package/tree/control/flat-tree-control.d.ts +48 -0
  504. package/tree/control/nested-tree-control.d.ts +19 -0
  505. package/tree/control/tree-control.d.ts +44 -0
  506. package/tree/data-source/flat-data-source.d.ts +2 -1
  507. package/tree/node.d.ts +34 -0
  508. package/tree/outlet.d.ts +9 -0
  509. package/tree/package.json +0 -1
  510. package/tree/padding.directive.d.ts +36 -5
  511. package/tree/ptsecurity-mosaic-tree.d.ts +1 -0
  512. package/tree/public-api.d.ts +8 -1
  513. package/tree/toggle.d.ts +20 -15
  514. package/tree/tree-base.d.ts +97 -0
  515. package/tree/tree-errors.d.ts +25 -0
  516. package/tree/tree-option.component.d.ts +15 -4
  517. package/tree/tree-selection.component.d.ts +46 -24
  518. package/tree/tree.d.ts +6 -0
  519. package/tree/tree.module.d.ts +14 -0
  520. package/tree-select/package.json +0 -1
  521. package/tree-select/ptsecurity-mosaic-tree-select.d.ts +1 -0
  522. package/tree-select/tree-select.component.d.ts +8 -8
  523. package/tree-select/tree-select.module.d.ts +11 -0
  524. package/autocomplete/ptsecurity-mosaic-autocomplete.metadata.json +0 -1
  525. package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js +0 -2
  526. package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js.map +0 -1
  527. package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js +0 -16
  528. package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js.map +0 -1
  529. package/bundles/ptsecurity-mosaic-button.umd.min.js +0 -16
  530. package/bundles/ptsecurity-mosaic-button.umd.min.js.map +0 -1
  531. package/bundles/ptsecurity-mosaic-card.umd.min.js +0 -16
  532. package/bundles/ptsecurity-mosaic-card.umd.min.js.map +0 -1
  533. package/bundles/ptsecurity-mosaic-checkbox.umd.min.js +0 -16
  534. package/bundles/ptsecurity-mosaic-checkbox.umd.min.js.map +0 -1
  535. package/bundles/ptsecurity-mosaic-core.umd.min.js +0 -17
  536. package/bundles/ptsecurity-mosaic-core.umd.min.js.map +0 -1
  537. package/bundles/ptsecurity-mosaic-datepicker.umd.min.js +0 -2
  538. package/bundles/ptsecurity-mosaic-datepicker.umd.min.js.map +0 -1
  539. package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js +0 -2
  540. package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js.map +0 -1
  541. package/bundles/ptsecurity-mosaic-divider.umd.min.js +0 -2
  542. package/bundles/ptsecurity-mosaic-divider.umd.min.js.map +0 -1
  543. package/bundles/ptsecurity-mosaic-dropdown.umd.min.js +0 -17
  544. package/bundles/ptsecurity-mosaic-dropdown.umd.min.js.map +0 -1
  545. package/bundles/ptsecurity-mosaic-form-field.umd.min.js +0 -17
  546. package/bundles/ptsecurity-mosaic-form-field.umd.min.js.map +0 -1
  547. package/bundles/ptsecurity-mosaic-icon.umd.min.js +0 -16
  548. package/bundles/ptsecurity-mosaic-icon.umd.min.js.map +0 -1
  549. package/bundles/ptsecurity-mosaic-input.umd.min.js +0 -16
  550. package/bundles/ptsecurity-mosaic-input.umd.min.js.map +0 -1
  551. package/bundles/ptsecurity-mosaic-link.umd.min.js +0 -16
  552. package/bundles/ptsecurity-mosaic-link.umd.min.js.map +0 -1
  553. package/bundles/ptsecurity-mosaic-list.umd.min.js +0 -16
  554. package/bundles/ptsecurity-mosaic-list.umd.min.js.map +0 -1
  555. package/bundles/ptsecurity-mosaic-modal.umd.min.js +0 -16
  556. package/bundles/ptsecurity-mosaic-modal.umd.min.js.map +0 -1
  557. package/bundles/ptsecurity-mosaic-navbar.umd.min.js +0 -16
  558. package/bundles/ptsecurity-mosaic-navbar.umd.min.js.map +0 -1
  559. package/bundles/ptsecurity-mosaic-popover.umd.min.js +0 -16
  560. package/bundles/ptsecurity-mosaic-popover.umd.min.js.map +0 -1
  561. package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js +0 -16
  562. package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js.map +0 -1
  563. package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js +0 -16
  564. package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js.map +0 -1
  565. package/bundles/ptsecurity-mosaic-radio.umd.min.js +0 -16
  566. package/bundles/ptsecurity-mosaic-radio.umd.min.js.map +0 -1
  567. package/bundles/ptsecurity-mosaic-select.umd.min.js +0 -16
  568. package/bundles/ptsecurity-mosaic-select.umd.min.js.map +0 -1
  569. package/bundles/ptsecurity-mosaic-sidebar.umd.min.js +0 -2
  570. package/bundles/ptsecurity-mosaic-sidebar.umd.min.js.map +0 -1
  571. package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js +0 -2
  572. package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js.map +0 -1
  573. package/bundles/ptsecurity-mosaic-splitter.umd.min.js +0 -2
  574. package/bundles/ptsecurity-mosaic-splitter.umd.min.js.map +0 -1
  575. package/bundles/ptsecurity-mosaic-table.umd.min.js +0 -2
  576. package/bundles/ptsecurity-mosaic-table.umd.min.js.map +0 -1
  577. package/bundles/ptsecurity-mosaic-tabs.umd.min.js +0 -16
  578. package/bundles/ptsecurity-mosaic-tabs.umd.min.js.map +0 -1
  579. package/bundles/ptsecurity-mosaic-tags.umd.min.js +0 -16
  580. package/bundles/ptsecurity-mosaic-tags.umd.min.js.map +0 -1
  581. package/bundles/ptsecurity-mosaic-textarea.umd.min.js +0 -16
  582. package/bundles/ptsecurity-mosaic-textarea.umd.min.js.map +0 -1
  583. package/bundles/ptsecurity-mosaic-timepicker.umd.min.js +0 -2
  584. package/bundles/ptsecurity-mosaic-timepicker.umd.min.js.map +0 -1
  585. package/bundles/ptsecurity-mosaic-toggle.umd.min.js +0 -16
  586. package/bundles/ptsecurity-mosaic-toggle.umd.min.js.map +0 -1
  587. package/bundles/ptsecurity-mosaic-tooltip.umd.min.js +0 -16
  588. package/bundles/ptsecurity-mosaic-tooltip.umd.min.js.map +0 -1
  589. package/bundles/ptsecurity-mosaic-tree-select.umd.min.js +0 -16
  590. package/bundles/ptsecurity-mosaic-tree-select.umd.min.js.map +0 -1
  591. package/bundles/ptsecurity-mosaic-tree.umd.min.js +0 -16
  592. package/bundles/ptsecurity-mosaic-tree.umd.min.js.map +0 -1
  593. package/bundles/ptsecurity-mosaic.umd.min.js +0 -2
  594. package/bundles/ptsecurity-mosaic.umd.min.js.map +0 -1
  595. package/button/ptsecurity-mosaic-button.metadata.json +0 -1
  596. package/button-toggle/ptsecurity-mosaic-button-toggle.metadata.json +0 -1
  597. package/card/ptsecurity-mosaic-card.metadata.json +0 -1
  598. package/checkbox/ptsecurity-mosaic-checkbox.metadata.json +0 -1
  599. package/core/ptsecurity-mosaic-core.metadata.json +0 -1
  600. package/datepicker/ptsecurity-mosaic-datepicker.metadata.json +0 -1
  601. package/design-tokens/ptsecurity-mosaic-design-tokens.metadata.json +0 -1
  602. package/divider/ptsecurity-mosaic-divider.metadata.json +0 -1
  603. package/dropdown/ptsecurity-mosaic-dropdown.metadata.json +0 -1
  604. package/esm2015/tree/node.directive.js +0 -15
  605. package/form-field/ptsecurity-mosaic-form-field.metadata.json +0 -1
  606. package/icon/ptsecurity-mosaic-icon.metadata.json +0 -1
  607. package/input/ptsecurity-mosaic-input.metadata.json +0 -1
  608. package/link/ptsecurity-mosaic-link.metadata.json +0 -1
  609. package/list/ptsecurity-mosaic-list.metadata.json +0 -1
  610. package/modal/ptsecurity-mosaic-modal.metadata.json +0 -1
  611. package/navbar/ptsecurity-mosaic-navbar.metadata.json +0 -1
  612. package/popover/ptsecurity-mosaic-popover.metadata.json +0 -1
  613. package/progress-bar/ptsecurity-mosaic-progress-bar.metadata.json +0 -1
  614. package/progress-spinner/ptsecurity-mosaic-progress-spinner.metadata.json +0 -1
  615. package/ptsecurity-mosaic.metadata.json +0 -1
  616. package/radio/ptsecurity-mosaic-radio.metadata.json +0 -1
  617. package/select/ptsecurity-mosaic-select.metadata.json +0 -1
  618. package/sidebar/ptsecurity-mosaic-sidebar.metadata.json +0 -1
  619. package/sidepanel/ptsecurity-mosaic-sidepanel.metadata.json +0 -1
  620. package/splitter/ptsecurity-mosaic-splitter.metadata.json +0 -1
  621. package/table/ptsecurity-mosaic-table.metadata.json +0 -1
  622. package/tabs/ptsecurity-mosaic-tabs.metadata.json +0 -1
  623. package/tags/ptsecurity-mosaic-tags.metadata.json +0 -1
  624. package/textarea/ptsecurity-mosaic-textarea.metadata.json +0 -1
  625. package/timepicker/ptsecurity-mosaic-timepicker.metadata.json +0 -1
  626. package/toggle/ptsecurity-mosaic-toggle.metadata.json +0 -1
  627. package/tooltip/ptsecurity-mosaic-tooltip.metadata.json +0 -1
  628. package/tree/node.directive.d.ts +0 -4
  629. package/tree/ptsecurity-mosaic-tree.metadata.json +0 -1
  630. package/tree-select/ptsecurity-mosaic-tree-select.metadata.json +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../packages/mosaic/sidebar/sidebar-animations.ts","../../../packages/mosaic/sidebar/sidebar.component.ts","../../../packages/mosaic/sidebar/sidebar.module.ts"],"names":["McSidebarAnimationState","SidebarPositions","mcSidebarAnimations","sidebarState","trigger","state","style","minWidth","width","maxWidth","params","openedStateMinWidth","openedStateWidth","openedStateMaxWidth","closedStateWidth","transition","animate","Directive","args","selector","exportAs","Input","McSidebar","ngZone","elementRef","this","_opened","stateChanged","EventEmitter","internalState","Object","defineProperty","prototype","value","saveWidth","Opened","Closed","ngOnInit","position","Left","Right","registerKeydownListener","ngOnDestroy","unRegisterKeydownListener","toggle","opened","onAnimationStart","onAnimationDone","emit","ngAfterContentInit","openedContent","closedContent","_this","documentKeydownListener","event","isControl","isInput","isLeftBracket","isRightBracket","run","runOutsideAngular","document","addEventListener","removeEventListener","nativeElement","offsetWidth","Component","template","host","class","[@state]","(@state.start)","(@state.done)","animations","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","NgZone","ElementRef","Output","ContentChild","McSidebarOpened","static","McSidebarClosed","NgModule","imports","CommonModule","declarations","exports"],"mappings":"onBAGA,IAAYA,GAAZ,SAAYA,GACRA,EAAA,OAAA,SACAA,EAAA,OAAA,SAFJ,CAAYA,IAAAA,EAAuB,SCevBC,EDVCC,EAA2E,CACpFC,aAAcC,EAAAA,QAAQ,QAAS,CAC3BC,EAAAA,MACI,SACAC,EAAAA,MAAM,CACFC,SAAU,4BACVC,MAAO,yBACPC,SAAU,8BAEd,CAAEC,OAAQ,CAAEC,oBAAqB,GAAIC,iBAAkB,GAAIC,oBAAqB,MAEpFR,EAAAA,MACI,SACAC,EAAAA,MAAM,CACFC,SAAU,yBACVC,MAAO,yBACPC,SAAU,2BAEd,CAAEC,OAAQ,CAAEI,iBAAkB,MAElCC,EAAAA,WAAW,mBAAoB,CAACC,EAAAA,QAAQ,UACxCD,EAAAA,WAAW,mBAAoB,CAACC,EAAAA,QAAQ,aCXpCf,EAAAA,sBAAAA,GAAAA,EAAAA,EAAAA,mBAAAA,EAAAA,iBAAgB,KACxB,KAAA,OACAA,EAAA,MAAA,cAiBJ,iCAJCgB,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,sBACVC,SAAU,wDAGTC,EAAAA,qBACAA,EAAAA,wBACAA,EAAAA,eAOL,iCAJCJ,EAAA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B,cAAc3C,OAAS,SAI9Cc,EAAAU,UAAAS,wBAAA,WAAA,IAAAW,EAAA3B,KACJA,KAAK4B,wBAA0B,SAACC,GACxBC,EAAAA,UAAUD,IAAUE,EAAAA,QAAQF,KAG3BF,EAAKd,WAAarC,EAAAA,iBAAiBsC,MAAQkB,EAAAA,cAAcH,IACzDF,EAAKd,WAAarC,EAAAA,iBAAiBuC,OAASkB,EAAAA,eAAeJ,KAE5DF,EAAK7B,OAAOoC,KAAI,WAAM,OAAAP,EAAK1B,SAAW0B,EAAK1B,YAInDD,KAAKF,OAAOqC,mBAAkB,WAE1BC,SAASC,iBAAiB,WAAYV,EAAKC,yBAAyB,OAIpE/B,EAAAU,UAAAW,0BAAA,WAEJkB,SAASE,oBAAoB,WAAYtC,KAAK4B,yBAAyB,IAGnE/B,EAAAU,UAAAE,UAAA,WACJT,KAAKf,OAAOE,iBAAsBa,KAAKD,WAAWwC,cAAcC,YAAW,+BAzHlFC,EAAAA,UAAShD,KAAA,CAAC,CACPC,SAAU,aACVC,SAAU,YACV+C,SAAA,8TAEAC,KAAM,CACFC,MAAO,aACPC,WAAY,+EAIZC,iBAAkB,qBAClBC,gBAAiB,qBAErBC,WAAY,CAACvE,EAAoBC,cACjCuE,cAAeC,EAAAA,kBAAkBC,KACjCC,gBAAiBC,EAAAA,wBAAwBC,+KA5DzCC,EAAAA,cAHWC,EAAAA,8CAkEV5D,EAAAA,wBAcAA,EAAAA,4BAUA6D,EAAAA,8BAEAC,EAAAA,aAAYjE,KAAA,CAACkE,EAAiB,CAAEC,QAAQ,2BAExCF,EAAAA,aAAYjE,KAAA,CAACoE,EAAiB,CAAED,QAAQ,aChF7C,iCAbCE,EAAAA,SAAQrE,KAAA,CAAC,CACNsE,QAAS,CAACC,EAAAA,cACVC,aAAc,CACVJ,EACAF,EACA9D,GAEJqE,QAAS,CACLL,EACAF,EACA9D","sourcesContent":["import { animate, AnimationTriggerMetadata, state, style, transition, trigger } from '@angular/animations';\n\n\nexport enum McSidebarAnimationState {\n Opened = 'opened',\n Closed = 'closed'\n}\n\nexport const mcSidebarAnimations: { readonly sidebarState: AnimationTriggerMetadata } = {\n sidebarState: trigger('state', [\n state(\n 'opened',\n style({\n minWidth: '{{ openedStateMinWidth }}',\n width: '{{ openedStateWidth }}',\n maxWidth: '{{ openedStateMaxWidth }}'\n }),\n { params: { openedStateMinWidth: '', openedStateWidth: '', openedStateMaxWidth: '' }}\n ),\n state(\n 'closed',\n style({\n minWidth: '{{ closedStateWidth }}',\n width: '{{ closedStateWidth }}',\n maxWidth: '{{ closedStateWidth }}'\n }),\n { params: { closedStateWidth: '' }}\n ),\n transition('opened => closed', [animate('0.1s')]),\n transition('closed => opened', [animate('0.2s')])\n ])\n};\n","import {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n Directive, ElementRef,\n EventEmitter,\n Input,\n NgZone,\n OnDestroy, OnInit,\n Output,\n ViewEncapsulation\n} from '@angular/core';\nimport { isControl, isInput, isLeftBracket, isRightBracket } from '@ptsecurity/cdk/keycodes';\n\nimport { mcSidebarAnimations, McSidebarAnimationState } from './sidebar-animations';\n\n\nexport enum SidebarPositions {\n Left = 'left',\n Right = 'right'\n}\n\n// tslint:disable-next-line:naming-convention\ninterface McSidebarParams {\n openedStateMinWidth: string;\n openedStateWidth: string;\n openedStateMaxWidth: string;\n\n closedStateWidth: string;\n}\n\n\n@Directive({\n selector: '[mc-sidebar-opened]',\n exportAs: 'mcSidebarOpened'\n})\nexport class McSidebarOpened {\n @Input() minWidth: string;\n @Input() width: string;\n @Input() maxWidth: string;\n}\n\n@Directive({\n selector: '[mc-sidebar-closed]',\n exportAs: 'mcSidebarClosed'\n})\nexport class McSidebarClosed {\n @Input() width: string;\n}\n\n\n@Component({\n selector: 'mc-sidebar',\n exportAs: 'mcSidebar',\n templateUrl: 'sidebar.component.html',\n styleUrls: ['./sidebar.scss'],\n host: {\n class: 'mc-sidebar',\n '[@state]': `{\n value: animationState,\n params: params\n }`,\n '(@state.start)': 'onAnimationStart()',\n '(@state.done)': 'onAnimationDone()'\n },\n animations: [mcSidebarAnimations.sidebarState],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class McSidebar implements OnDestroy, OnInit, AfterContentInit {\n @Input()\n get opened(): boolean {\n return this._opened;\n }\n\n set opened(value: boolean) {\n if (this._opened) {\n this.saveWidth();\n }\n\n this._opened = value;\n }\n private _opened: boolean = true;\n\n @Input() position: SidebarPositions;\n\n params: McSidebarParams = {\n openedStateWidth: 'inherit',\n openedStateMinWidth: 'inherit',\n openedStateMaxWidth: 'inherit',\n\n closedStateWidth: '32px'\n };\n\n @Output() readonly stateChanged: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n @ContentChild(McSidebarOpened, { static: false }) openedContent: McSidebarOpened;\n\n @ContentChild(McSidebarClosed, { static: false }) closedContent: McSidebarClosed;\n\n get animationState(): McSidebarAnimationState {\n return this._opened ? McSidebarAnimationState.Opened : McSidebarAnimationState.Closed;\n }\n\n internalState: boolean = true;\n\n private documentKeydownListener: (event: KeyboardEvent) => void;\n\n constructor(private ngZone: NgZone, private elementRef: ElementRef) {}\n\n ngOnInit(): void {\n if (this.position === SidebarPositions.Left || this.position === SidebarPositions.Right) {\n this.registerKeydownListener();\n }\n }\n\n ngOnDestroy(): void {\n if (this.position === SidebarPositions.Left || this.position === SidebarPositions.Right) {\n this.unRegisterKeydownListener();\n }\n }\n\n toggle(): void {\n this.opened = !this.opened;\n }\n\n onAnimationStart() {\n if (this._opened) {\n this.internalState = this._opened;\n }\n }\n\n onAnimationDone() {\n this.internalState = this._opened;\n\n this.stateChanged.emit(this._opened);\n }\n\n ngAfterContentInit(): void {\n this.params = {\n openedStateWidth: this.openedContent.width || 'inherit',\n openedStateMinWidth: this.openedContent.minWidth || 'inherit',\n openedStateMaxWidth: this.openedContent.maxWidth || 'inherit',\n\n closedStateWidth: this.closedContent.width || '32px'\n };\n }\n\n private registerKeydownListener(): void {\n this.documentKeydownListener = (event) => {\n if (isControl(event) || isInput(event)) { return; }\n\n if (\n (this.position === SidebarPositions.Left && isLeftBracket(event)) ||\n (this.position === SidebarPositions.Right && isRightBracket(event))\n ) {\n this.ngZone.run(() => this._opened = !this._opened);\n }\n };\n\n this.ngZone.runOutsideAngular(() => {\n // tslint:disable-next-line: no-unbound-method\n document.addEventListener('keypress', this.documentKeydownListener, true);\n });\n }\n\n private unRegisterKeydownListener(): void {\n // tslint:disable-next-line: no-unbound-method\n document.removeEventListener('keypress', this.documentKeydownListener, true);\n }\n\n private saveWidth() {\n this.params.openedStateWidth = `${this.elementRef.nativeElement.offsetWidth}px`;\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { McSidebar, McSidebarClosed, McSidebarOpened } from './sidebar.component';\n\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n McSidebarClosed,\n McSidebarOpened,\n McSidebar\n ],\n exports: [\n McSidebarClosed,\n McSidebarOpened,\n McSidebar\n ]\n})\nexport class McSidebarModule {}\n"]}
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@ptsecurity/cdk/keycodes"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@ptsecurity/mosaic/core"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/common"),require("@ptsecurity/mosaic/icon")):"function"==typeof define&&define.amd?define("@ptsecurity/mosaic/sidepanel",["exports","@angular/core","@ptsecurity/cdk/keycodes","rxjs","rxjs/operators","@angular/animations","@ptsecurity/mosaic/core","@angular/cdk/overlay","@angular/cdk/portal","@angular/common","@ptsecurity/mosaic/icon"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).ptsecurity=e.ptsecurity||{},e.ptsecurity.mosaic=e.ptsecurity.mosaic||{},e.ptsecurity.mosaic.sidepanel={}),e.ng.core,e.mc.cdk.keycodes,e.rxjs,e.rxjs.operators,e.ng.animations,e.ptsecurity.mosaic.core,e.ng.cdk.overlay,e.ng.cdk.portal,e.ng.common,e.ptsecurity.mosaic.icon)}(this,(function(e,t,n,i,o,a,r,s,c,l,p){"use strict";var d,u=new t.InjectionToken("McSidepanelData");e.McSidepanelPosition=void 0,(d=e.McSidepanelPosition||(e.McSidepanelPosition={})).Right="right",d.Left="left",d.Top="top",d.Bottom="bottom";var m,f=function(){this.data=null,this.position=e.McSidepanelPosition.Right,this.hasBackdrop=!0,this.requiredBackdrop=!1,this.disableClose=!1,this.overlayPanelClass=""};!function(e){e.Void="void",e.Visible="visible",e.Hidden="hidden"}(m||(m={}));var h={right:{in:"translateX(100%)",out:"translateX(0%)"},left:{in:"translateX(-100%)",out:"translateX(0%)"},top:{in:"translateY(-100%)",out:"translateY(0%)"},bottom:{in:"translateY(100%)",out:"translateY(0%)"}},y={sidepanelState:a.trigger("state",[a.state("hidden",a.style({transform:"{{transformIn}}"}),{params:{transformIn:h[e.McSidepanelPosition.Right].in}}),a.state("visible",a.style({transform:"{{transformOut}}"}),{params:{transformOut:h[e.McSidepanelPosition.Right].out}}),a.transition("visible => void, visible => hidden",a.animate("200ms "+r.AnimationCurves.AccelerationCurve)),a.transition("void => visible",a.animate("200ms "+r.AnimationCurves.DecelerationCurve))])},g=0,v=function(){function e(e,t,a){var r=this;this.containerInstance=e,this.overlayRef=t,this.config=a,this.afterClosed$=new i.Subject,this.afterOpened$=new i.Subject,this.id=this.config.id||"mc-sidepanel-"+g++,this.containerInstance.id=this.id,e.animationStateChanged.pipe(o.filter((function(e){return"done"===e.phaseName&&e.toState===m.Visible})),o.take(1)).subscribe((function(){r.afterOpened$.next(),r.afterOpened$.complete()})),e.animationStateChanged.pipe(o.filter((function(e){return"done"===e.phaseName&&e.toState===m.Hidden})),o.take(1)).subscribe((function(){t.dispose(),r.afterClosed$.next(r.result),r.afterClosed$.complete()})),e.sidepanelConfig.disableClose||i.merge(t.backdropClick(),t.keydownEvents().pipe(o.filter((function(e){return e.keyCode===n.ESCAPE})))).subscribe((function(){return r.close()}))}return e.prototype.close=function(e){var t=this;this.afterClosed$.closed||(this.containerInstance.animationStateChanged.pipe(o.filter((function(e){return"done"===e.phaseName})),o.take(1)).subscribe((function(){return t.overlayRef.detachBackdrop()})),this.result=e,this.containerInstance.exit())},e.prototype.afterClosed=function(){return this.afterClosed$.asObservable()},e.prototype.afterOpened=function(){return this.afterOpened$.asObservable()},e}(),S=function(e,t){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}Object.create;var w=new t.InjectionToken("mc-sidepanel-with-indent"),C=new t.InjectionToken("mc-sidepanel-with-shadow"),x=function(e){function n(n,i,o,a,r){var s=e.call(this)||this;return s.elementRef=n,s.changeDetectorRef=i,s.sidepanelConfig=o,s.withIndent=a,s.withShadow=r,s.animationState=m.Void,s.animationStateChanged=new t.EventEmitter,s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.prototype.ngOnDestroy=function(){this.destroyed=!0},n.prototype.attachComponentPortal=function(e){return this.validatePortalAttached(),this.setAnimation(),this.setPanelClass(),this.portalOutlet.attachComponentPortal(e)},n.prototype.attachTemplatePortal=function(e){return this.validatePortalAttached(),this.setAnimation(),this.setPanelClass(),this.portalOutlet.attachTemplatePortal(e)},n.prototype.enter=function(){this.destroyed||(this.animationState=m.Visible,this.changeDetectorRef.detectChanges())},n.prototype.exit=function(){this.destroyed||(this.animationState=m.Hidden,this.changeDetectorRef.markForCheck())},n.prototype.onAnimation=function(e){this.animationStateChanged.emit(e)},n.prototype.setAnimation=function(){var e=this.sidepanelConfig.position;this.animationTransform={transformIn:h[e].in,transformOut:h[e].out}},n.prototype.setPanelClass=function(){var e=this.elementRef.nativeElement,t=this.sidepanelConfig.position;e.classList.add("mc-sidepanel-container_"+t)},n.prototype.validatePortalAttached=function(){if(this.portalOutlet.hasAttached())throw Error("Attempting to attach sidepanel content after content is already attached")},n}(c.BasePortalOutlet);x.decorators=[{type:t.Component,args:[{selector:"mc-sidepanel-container",template:'<div class="mc-sidepanel-wrapper">\n\n <div *ngIf="withIndent" class="mc-sidepanel-indent" (click)="exit()"></div>\n\n <div class="mc-sidepanel-content">\n <ng-template cdkPortalOutlet></ng-template>\n </div>\n</div>\n\n',changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,animations:[y.sidepanelState],host:{class:"mc-sidepanel-container","[class.mc-sidepanel_nested]":"withIndent","[class.mc-sidepanel-container_shadowed]":"withShadow",role:"dialog","aria-modal":"true","[attr.id]":"id","[attr.tabindex]":"-1","[@state]":"{\n value: animationState,\n params: animationTransform\n }","(@state.start)":"onAnimation($event)","(@state.done)":"onAnimation($event)"},styles:[".mc-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mc-sidepanel-container{outline:none;display:flex;flex:1;position:fixed;min-height:0}.mc-sidepanel-container .flex{min-height:0}.mc-sidepanel-container_left,.mc-sidepanel-container_right{width:33%;min-width:400px;height:100%;top:0}.mc-sidepanel-container_left .mc-sidepanel-indent,.mc-sidepanel-container_right .mc-sidepanel-indent{width:16px;height:100%}.mc-sidepanel-container_right{right:0;transform:translateX(100%)}.mc-sidepanel-container_right .mc-sidepanel-wrapper{flex-direction:row}.mc-sidepanel-container_left{left:0;transform:translateX(-100%)}.mc-sidepanel-container_left .mc-sidepanel-wrapper{flex-direction:row-reverse}.mc-sidepanel-container_bottom,.mc-sidepanel-container_top{flex-direction:column;height:33%;min-height:400px;width:100%;left:0}.mc-sidepanel-container_bottom .mc-sidepanel-indent,.mc-sidepanel-container_top .mc-sidepanel-indent{height:16px;width:100%}.mc-sidepanel-container_top{top:0;transform:translateY(-100%)}.mc-sidepanel-container_top .mc-sidepanel-wrapper{flex-direction:column-reverse}.mc-sidepanel-container_bottom{bottom:0;transform:translateY(100%)}.mc-sidepanel-container_bottom .mc-sidepanel-wrapper{flex-direction:column}.mc-sidepanel-wrapper{display:flex;flex:1;min-height:0;width:100%}.mc-sidepanel-indent{display:flex;flex:0 0 auto}.mc-sidepanel-indent .mc-sidepanel-close{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;background:transparent;padding:0}.mc-sidepanel-content{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}.mc-sidepanel-header{padding:var(--mc-sidepanel-header-size-padding,14px 16px);display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;flex:0 0 auto}.mc-sidepanel-header .mc-sidepanel-close{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;background:transparent;padding:var(--mc-sidepanel-header-size-close-padding,0 0 0 8px)}.mc-sidepanel-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mc-sidepanel-body{overflow-y:auto;display:flex;flex:1;flex-direction:column;min-height:0}.mc-sidepanel-footer{padding:var(--mc-sidepanel-footer-size-padding,16px);display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;flex:0 0 auto}.mc-sidepanel-footer .mc-sidepanel-actions{display:flex;align-items:center;flex-direction:row;flex:1}.mc-sidepanel-footer .mc-sidepanel-actions[align=left]{justify-content:start}.mc-sidepanel-footer .mc-sidepanel-actions[align=right]{justify-content:flex-end}.mc-sidepanel-footer button+button{margin-left:16px}"]}]}],x.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:f},{type:Boolean,decorators:[{type:t.Inject,args:[w]}]},{type:Boolean,decorators:[{type:t.Inject,args:[C]}]}]},x.propDecorators={portalOutlet:[{type:t.ViewChild,args:[c.CdkPortalOutlet,{static:!0}]}]};var k=new t.InjectionToken("mc-sidepanel-default-options"),O=function(){function e(e,t,n,i){this.overlay=e,this.injector=t,this.defaultOptions=n,this.parentSidepanelService=i,this.openedSidepanelsAtThisLevel=[]}return Object.defineProperty(e.prototype,"openedSidepanels",{get:function(){return this.parentSidepanelService?this.parentSidepanelService.openedSidepanels:this.openedSidepanelsAtThisLevel},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.closeSidepanels(this.openedSidepanelsAtThisLevel)},e.prototype.open=function(e,n){var i=this,o=Object.assign(Object.assign({},this.defaultOptions||new f),n);if(o.id&&this.getSidepanelById(o.id))throw Error('Sidepanel with id "'+o.id+'" exists already. The sidepanel id must be unique.');var a=this.createOverlay(o),r=this.attachContainer(a,o),s=new v(r,a,o);if(e instanceof t.TemplateRef)r.attachTemplatePortal(new c.TemplatePortal(e,null,{$implicit:o.data,sidepanelRef:s}));else{var l=this.createInjector(o,s,r),p=new c.ComponentPortal(e,void 0,l),d=r.attachComponentPortal(p);s.instance=d.instance}return this.openedSidepanels.push(s),s.afterClosed().subscribe((function(){return i.removeOpenSidepanel(s)})),r.enter(),s},e.prototype.closeAll=function(){this.closeSidepanels(this.openedSidepanels)},e.prototype.getSidepanelById=function(e){return this.openedSidepanels.find((function(t){return t.id===e}))},e.prototype.attachContainer=function(e,t){var n=this.getOpenedSidepanelsWithSamePosition(t),i=new c.PortalInjector(this.injector,new WeakMap([[f,t],[w,n.length>=1],[C,n.length<2]])),o=new c.ComponentPortal(x,void 0,i);return e.attach(o).instance},e.prototype.createInjector=function(e,t,n){var i=new WeakMap([[x,n],[u,e.data],[v,t]]);return new c.PortalInjector(this.injector,i)},e.prototype.createOverlay=function(e){var t=new s.OverlayConfig({hasBackdrop:e.hasBackdrop,backdropClass:this.getBackdropClass(e),maxWidth:"100%",panelClass:e.overlayPanelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global()});return this.overlay.create(t)},e.prototype.closeSidepanels=function(e){(function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e})(e.reverse()).forEach((function(e){e.close()}))},e.prototype.getBackdropClass=function(e){if(e.hasBackdrop&&e.backdropClass)return e.backdropClass;var t=this.openedSidepanels.some((function(e){return e.config.hasBackdrop}));return e.requiredBackdrop||!t?"cdk-overlay-dark-backdrop":"cdk-overlay-transparent-backdrop"},e.prototype.getOpenedSidepanelsWithSamePosition=function(e){return this.openedSidepanels.filter((function(t){return t.config.position===e.position}))},e.prototype.removeOpenSidepanel=function(e){var t=this.openedSidepanels.indexOf(e);t>-1&&this.openedSidepanels.splice(t,1)},e}();O.decorators=[{type:t.Injectable}],O.ctorParameters=function(){return[{type:s.Overlay},{type:t.Injector},{type:f,decorators:[{type:t.Optional},{type:t.Inject,args:[k]}]},{type:O,decorators:[{type:t.Optional},{type:t.SkipSelf}]}]};var P=function(){function e(e,t,n){this.sidepanelRef=e,this.elementRef=t,this.sidepanelService=n}return e.prototype.ngOnInit=function(){var e=this;this.sidepanelRef||setTimeout((function(){e.sidepanelRef=function(e,t){var n=e.nativeElement.parentElement;for(;n&&!n.classList.contains("mc-sidepanel-container");)n=n.parentElement;return n?t.find((function(e){return e.id===n.id})):null}(e.elementRef,e.sidepanelService.openedSidepanels)}))},e.prototype.ngOnChanges=function(e){var t=e.mcSidepanelClose||e.sidepanelResult;t&&(this.sidepanelResult=t.currentValue)},e}();P.decorators=[{type:t.Directive,args:[{selector:"button[mc-sidepanel-close], button[mcSidepanelClose]",host:{"(click)":"sidepanelRef.close(sidepanelResult)",class:"mc-sidepanel-close"}}]}],P.ctorParameters=function(){return[{type:v,decorators:[{type:t.Optional}]},{type:t.ElementRef},{type:O}]},P.propDecorators={sidepanelResult:[{type:t.Input,args:["mc-sidepanel-close"]}],mcSidepanelClose:[{type:t.Input,args:["mcSidepanelClose"]}]};var _=function(){};_.decorators=[{type:t.Component,args:[{selector:"mc-sidepanel-header",template:'\n <div class="mc-sidepanel-title">\n <ng-content></ng-content>\n </div>\n <button *ngIf="closeable" mc-sidepanel-close>\n <span class="mc-sidepanel-close-x">\n <i mc-icon="mc-close-L_16" class="mc-icon mc-icon_light" [color]="\'second\'"></i>\n </span>\n </button>\n ',host:{class:"mc-sidepanel-header"}}]}],_.propDecorators={closeable:[{type:t.Input}]};var I=function(){};I.decorators=[{type:t.Directive,args:[{selector:"mc-sidepanel-body, [mc-sidepanel-body], mcSidepanelBody",host:{class:"mc-sidepanel-body"}}]}];var j=function(){};j.decorators=[{type:t.Directive,args:[{selector:"mc-sidepanel-footer, [mc-sidepanel-footer], mcSidepanelFooter",host:{class:"mc-sidepanel-footer"}}]}];var M=function(){};M.decorators=[{type:t.Directive,args:[{selector:"mc-sidepanel-actions, [mc-sidepanel-actions], mcSidepanelActions",host:{class:"mc-sidepanel-actions"}}]}];var A=function(){};A.decorators=[{type:t.NgModule,args:[{imports:[l.CommonModule,s.OverlayModule,c.PortalModule,r.McCommonModule,p.McIconModule],providers:[O],declarations:[x,P,_,I,j,M],entryComponents:[x],exports:[x,P,_,I,j,M]}]}],e.MC_SIDEPANEL_DATA=u,e.MC_SIDEPANEL_DEFAULT_OPTIONS=k,e.MC_SIDEPANEL_WITH_INDENT=w,e.MC_SIDEPANEL_WITH_SHADOW=C,e.McSidepanelActions=M,e.McSidepanelBody=I,e.McSidepanelClose=P,e.McSidepanelConfig=f,e.McSidepanelContainerComponent=x,e.McSidepanelFooter=j,e.McSidepanelHeader=_,e.McSidepanelModule=A,e.McSidepanelRef=v,e.McSidepanelService=O,e.ɵa=h,e.ɵb=y,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=ptsecurity-mosaic-sidepanel.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../packages/mosaic/sidepanel/sidepanel-config.ts","../../../packages/mosaic/sidepanel/sidepanel-animations.ts","../../../packages/mosaic/sidepanel/sidepanel-ref.ts","../../../node_modules/tslib/tslib.es6.js","../../../packages/mosaic/sidepanel/sidepanel-container.component.ts","../../../packages/mosaic/sidepanel/sidepanel.service.ts","../../../packages/mosaic/sidepanel/sidepanel-directives.ts","../../../packages/mosaic/sidepanel/sidepanel.module.ts"],"names":["McSidepanelPosition","MC_SIDEPANEL_DATA","InjectionToken","McSidepanelAnimationState","this","data","position","Right","hasBackdrop","requiredBackdrop","disableClose","overlayPanelClass","mcSidepanelTransformAnimation","right","in","out","left","top","bottom","mcSidepanelAnimations","sidepanelState","trigger","state","style","transform","params","transformIn","transformOut","transition","animate","AnimationCurves","AccelerationCurve","DecelerationCurve","uniqueId","McSidepanelRef","containerInstance","overlayRef","config","_this","afterClosed$","Subject","afterOpened$","id","animationStateChanged","pipe","filter","event","phaseName","toState","Visible","take","subscribe","next","complete","Hidden","dispose","result","sidepanelConfig","merge","backdropClick","keydownEvents","keyCode","ESCAPE","close","prototype","closed","detachBackdrop","exit","afterClosed","asObservable","afterOpened","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","call","create","__read","o","n","m","Symbol","iterator","r","e","i","ar","done","push","value","error","MC_SIDEPANEL_WITH_INDENT","MC_SIDEPANEL_WITH_SHADOW","McSidepanelContainerComponent","elementRef","changeDetectorRef","withIndent","withShadow","_super","animationState","Void","EventEmitter","TypeError","String","__","constructor","__extends","ngOnDestroy","destroyed","attachComponentPortal","portal","validatePortalAttached","setAnimation","setPanelClass","portalOutlet","attachTemplatePortal","enter","detectChanges","markForCheck","onAnimation","emit","animationTransform","element","nativeElement","classList","add","hasAttached","Error","BasePortalOutlet","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","animations","host","class","[class.mc-sidepanel_nested]","[class.mc-sidepanel-container_shadowed]","role","aria-modal","[attr.id]","[attr.tabindex]","[@state]","(@state.start)","(@state.done)","ElementRef","ChangeDetectorRef","McSidepanelConfig","Inject","ViewChild","CdkPortalOutlet","static","MC_SIDEPANEL_DEFAULT_OPTIONS","McSidepanelService","overlay","injector","defaultOptions","parentSidepanelService","openedSidepanelsAtThisLevel","defineProperty","openedSidepanels","closeSidepanels","open","componentOrTemplateRef","fullConfig","assign","getSidepanelById","createOverlay","container","attachContainer","ref","TemplateRef","TemplatePortal","$implicit","sidepanelRef","createInjector","ComponentPortal","undefined","contentRef","instance","removeOpenSidepanel","closeAll","find","sidepanel","openedSidepanelsWithSamePosition","getOpenedSidepanelsWithSamePosition","PortalInjector","WeakMap","length","containerPortal","attach","sidepanelContainer","injectionTokens","overlayConfig","OverlayConfig","backdropClass","getBackdropClass","maxWidth","panelClass","scrollStrategy","scrollStrategies","block","positionStrategy","global","sidepanels","arguments","concat","__spread","reverse","forEach","hasOpenedSidepanelWithBackdrop","some","index","indexOf","splice","Injectable","Overlay","Injector","decorators","type","Optional","SkipSelf","McSidepanelClose","sidepanelService","ngOnInit","setTimeout","openSidepanels","parent","parentElement","contains","getClosestSidepanel","ngOnChanges","changes","proxiedChange","mcSidepanelClose","sidepanelResult","currentValue","Directive","(click)","Input","NgModule","imports","CommonModule","OverlayModule","PortalModule","McCommonModule","McIconModule","providers","declarations","McSidepanelHeader","McSidepanelBody","McSidepanelFooter","McSidepanelActions","entryComponents","exports"],"mappings":"2hCAMYA,EAFCC,EAAoB,IAAIC,EAAAA,eAAoB,mBAE7CF,EAAAA,yBAAAA,GAAAA,EAAAA,EAAAA,sBAAAA,EAAAA,oBAAmB,KAC3B,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,OAAA,aCJQG,IDOZ,WAKIC,KAAAC,KAAkB,KAElBD,KAAAE,SAAiCN,EAAAA,oBAAoBO,MAGrDH,KAAAI,aAAwB,EAKxBJ,KAAAK,kBAA6B,EAG7BL,KAAAM,cAAyB,EAGzBN,KAAAO,kBAAwC,K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ASD,EAAe5C,MAAK,SAACC,GAAc,OAAAA,EAAUxJ,KAAOoM,EAAQpM,MAAM,KAlFlDuM,CAAoB3M,EAAK6D,WAAY7D,EAAKoM,iBAAiB/D,sBAK3F8D,EAAAzK,UAAAkL,YAAA,SAAYC,GACR,IAAMC,EAAgBD,EAAQE,kBAAoBF,EAAQG,gBAEtDF,IACAhP,KAAKkP,gBAAkBF,EAAcG,wCApChDC,EAAAA,UAASjH,KAAA,CAAC,CACPC,SAAU,uDACVS,KAAM,CACFwG,UAAW,sCACXvG,MAAO,mEAXNhH,EAAcmM,WAAA,CAAA,CAAAC,KAoBdC,EAAAA,kBAtBsB3E,EAAAA,kBAGtBQ,8CAcJsF,EAAAA,MAAKnH,KAAA,CAAC,gDAENmH,EAAAA,MAAKnH,KAAA,CAAC,6BAkDX,iCAhBCD,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,sBACVC,SAAU,8VAUVQ,KAAM,CACFC,MAAO,8DAIVwG,EAAAA,eAYL,iCANCF,EAAAA,UAASjH,KAAA,CAAC,CACPC,SAAU,0DACVS,KAAM,CACFC,MAAO,+BAcf,iCANCsG,EAAAA,UAASjH,KAAA,CAAC,CACPC,SAAU,gEACVS,KAAM,CACFC,MAAO,iCAcf,iCANCsG,EAAAA,UAASjH,KAAA,CAAC,CACPC,SAAU,mEACVS,KAAM,CACFC,MAAO,kCCxDf,iCA3BCyG,EAAAA,SAAQpH,KAAA,CAAC,CACNqH,QAAS,CACLC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,aACAC,EAAAA,eACAC,EAAAA,cAEJC,UAAW,CAAC9F,GACZ+F,aAAc,CACVjK,EACAuI,EACA2B,EACAC,EACAC,EACAC,GAEJC,gBAAiB,CAACtK,GAClBuK,QAAS,CACLvK,EACAuI,EACA2B,EACAC,EACAC,EACAC","sourcesContent":["import { InjectionToken } from '@angular/core';\n\n\n/** Injection token that can be used to access the data that was passed in to a sidepanel. */\nexport const MC_SIDEPANEL_DATA = new InjectionToken<any>('McSidepanelData');\n\nexport enum McSidepanelPosition {\n Right = 'right',\n Left = 'left',\n Top = 'top',\n Bottom = 'bottom'\n}\n\nexport class McSidepanelConfig<D = any> {\n /** ID for the sidepanel. If omitted, a unique one will be generated. */\n id?: string;\n\n /** Data being injected into the child component. */\n data?: D | null = null;\n\n position?: McSidepanelPosition = McSidepanelPosition.Right;\n\n /** Whether the sidepanel has a backdrop. */\n hasBackdrop?: boolean = true;\n\n backdropClass?: string;\n\n /** When we open multiple sidepanels, backdrop appears only once, except cases then this flag is true. */\n requiredBackdrop?: boolean = false;\n\n /** Whether the user can use escape or clicking outside to close the sidepanel. */\n disableClose?: boolean = false;\n\n /** Custom class for the overlay pane. */\n overlayPanelClass?: string | string[] = '';\n}\n","import { animate, AnimationTriggerMetadata, state, style, transition, trigger } from '@angular/animations';\nimport { AnimationCurves } from '@ptsecurity/mosaic/core';\n\nimport { McSidepanelPosition } from './sidepanel-config';\n\n\nexport enum McSidepanelAnimationState {\n Void = 'void',\n Visible = 'visible',\n Hidden = 'hidden'\n}\n\n// TODO Find a way to use dynamic keys and avoid error \"Expression form not supported.\"\n// tslint:disable-next-line\nexport const mcSidepanelTransformAnimation: Record<McSidepanelPosition, { in: string; out: string }> = {\n right: { in: 'translateX(100%)', out: 'translateX(0%)' },\n left: { in: 'translateX(-100%)', out: 'translateX(0%)' },\n top: { in: 'translateY(-100%)', out: 'translateY(0%)' },\n bottom: { in: 'translateY(100%)', out: 'translateY(0%)' }\n};\n\nexport const mcSidepanelAnimations: { readonly sidepanelState: AnimationTriggerMetadata } = {\n sidepanelState: trigger('state', [\n state(\n 'hidden',\n style({ transform: '{{transformIn}}' }),\n { params: { transformIn: mcSidepanelTransformAnimation[McSidepanelPosition.Right].in }}\n ),\n state(\n 'visible',\n style({ transform: '{{transformOut}}' }),\n { params: { transformOut: mcSidepanelTransformAnimation[McSidepanelPosition.Right].out }}\n ),\n transition(\n 'visible => void, visible => hidden',\n animate(`200ms ${AnimationCurves.AccelerationCurve}`)\n ),\n transition(\n 'void => visible',\n animate(`200ms ${AnimationCurves.DecelerationCurve}`)\n )\n ])\n};\n","import { OverlayRef } from '@angular/cdk/overlay';\nimport { ESCAPE } from '@ptsecurity/cdk/keycodes';\nimport { merge, Observable, Subject } from 'rxjs';\nimport { filter, take } from 'rxjs/operators';\n\nimport { McSidepanelAnimationState } from './sidepanel-animations';\nimport { McSidepanelConfig } from './sidepanel-config';\nimport { McSidepanelContainerComponent } from './sidepanel-container.component';\n\n\n// Counter for unique sidepanel ids.\nlet uniqueId = 0;\n\nexport class McSidepanelRef<T = any, R = any> {\n readonly id: string;\n\n /** Instance of the component making up the content of the sidepanel. */\n instance: T;\n\n /** Subject for notifying the user that the sidepanel has been closed and dismissed. */\n private readonly afterClosed$ = new Subject<R | undefined>();\n\n /** Subject for notifying the user that the sidepanel has opened and appeared. */\n private readonly afterOpened$ = new Subject<void>();\n\n /** Result to be passed down to the `afterDismissed` stream. */\n private result: R | undefined;\n\n constructor(\n public containerInstance: McSidepanelContainerComponent,\n private overlayRef: OverlayRef,\n public config: McSidepanelConfig) {\n\n this.id = this.config.id || `mc-sidepanel-${uniqueId++}`;\n this.containerInstance.id = this.id;\n\n // Emit when opening animation completes\n containerInstance.animationStateChanged.pipe(\n filter(\n (event) => event.phaseName === 'done' && event.toState === McSidepanelAnimationState.Visible\n ),\n take(1)\n ).subscribe(() => {\n this.afterOpened$.next();\n this.afterOpened$.complete();\n });\n\n // Dispose overlay when closing animation is complete\n containerInstance.animationStateChanged.pipe(\n filter(\n (event) => event.phaseName === 'done' && event.toState === McSidepanelAnimationState.Hidden\n ),\n take(1)\n ).subscribe(() => {\n overlayRef.dispose();\n this.afterClosed$.next(this.result);\n this.afterClosed$.complete();\n });\n\n if (!containerInstance.sidepanelConfig.disableClose) {\n merge(\n overlayRef.backdropClick(),\n overlayRef.keydownEvents().pipe(\n // tslint:disable:deprecation\n // keyCode is deprecated, but IE11 and Edge don't support code property, which we need use instead\n filter((event) => event.keyCode === ESCAPE)\n )\n ).subscribe(() => this.close());\n }\n }\n\n close(result?: R): void {\n if (!this.afterClosed$.closed) {\n // Transition the backdrop in parallel to the sidepanel.\n this.containerInstance.animationStateChanged.pipe(\n filter((event) => event.phaseName === 'done'),\n take(1)\n ).subscribe(() => this.overlayRef.detachBackdrop());\n\n this.result = result;\n this.containerInstance.exit();\n }\n }\n\n /** Gets an observable that is notified when the sidepanel is finished closing. */\n afterClosed(): Observable<R | undefined> {\n return this.afterClosed$.asObservable();\n }\n\n /** Gets an observable that is notified when the sidepanel has opened and appeared. */\n afterOpened(): Observable<void> {\n return this.afterOpened$.asObservable();\n }\n}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import { AnimationEvent } from '@angular/animations';\nimport { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ComponentRef,\n ElementRef,\n EmbeddedViewRef,\n EventEmitter,\n Inject,\n InjectionToken,\n OnDestroy,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {\n mcSidepanelAnimations,\n McSidepanelAnimationState,\n mcSidepanelTransformAnimation\n} from './sidepanel-animations';\nimport { McSidepanelConfig, McSidepanelPosition } from './sidepanel-config';\n\n\nexport const MC_SIDEPANEL_WITH_INDENT =\n new InjectionToken<boolean>('mc-sidepanel-with-indent');\n\nexport const MC_SIDEPANEL_WITH_SHADOW =\n new InjectionToken<boolean>('mc-sidepanel-with-shadow');\n\n@Component({\n selector: 'mc-sidepanel-container',\n templateUrl: './sidepanel-container.component.html',\n styleUrls: ['./sidepanel.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n animations: [mcSidepanelAnimations.sidepanelState],\n host: {\n class: 'mc-sidepanel-container',\n '[class.mc-sidepanel_nested]': 'withIndent',\n '[class.mc-sidepanel-container_shadowed]': 'withShadow',\n role: 'dialog',\n 'aria-modal': 'true',\n '[attr.id]': 'id',\n '[attr.tabindex]': '-1',\n '[@state]': `{\n value: animationState,\n params: animationTransform\n }`,\n '(@state.start)': 'onAnimation($event)',\n '(@state.done)': 'onAnimation($event)'\n }\n})\nexport class McSidepanelContainerComponent extends BasePortalOutlet implements OnDestroy {\n /** ID for the container DOM element. */\n id: string;\n\n /** The portal outlet inside of this container into which the content will be loaded. */\n @ViewChild(CdkPortalOutlet, {static: true}) portalOutlet: CdkPortalOutlet;\n\n /** The state of the sidepanel animations. */\n animationState: McSidepanelAnimationState = McSidepanelAnimationState.Void;\n\n animationTransform: { transformIn: string; transformOut: string };\n\n /** Emits whenever the state of the animation changes. */\n animationStateChanged = new EventEmitter<AnimationEvent>();\n\n /** Whether the component has been destroyed. */\n private destroyed: boolean;\n\n constructor(\n private elementRef: ElementRef<HTMLElement>,\n private changeDetectorRef: ChangeDetectorRef,\n public sidepanelConfig: McSidepanelConfig,\n @Inject(MC_SIDEPANEL_WITH_INDENT) public withIndent: boolean,\n @Inject(MC_SIDEPANEL_WITH_SHADOW) public withShadow: boolean\n ) {\n super();\n }\n\n ngOnDestroy(): void {\n this.destroyed = true;\n }\n\n /** Attach a component portal as content to this sidepanel container. */\n attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T> {\n this.validatePortalAttached();\n this.setAnimation();\n this.setPanelClass();\n\n return this.portalOutlet.attachComponentPortal(portal);\n }\n\n /** Attach a template portal as content to this sidepanel container. */\n attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C> {\n this.validatePortalAttached();\n this.setAnimation();\n this.setPanelClass();\n\n return this.portalOutlet.attachTemplatePortal(portal);\n }\n\n /** Begin animation of the sidepanel entrance into view. */\n enter(): void {\n if (!this.destroyed) {\n this.animationState = McSidepanelAnimationState.Visible;\n this.changeDetectorRef.detectChanges();\n }\n }\n\n /** Begin animation of the sidepanel exiting from view. */\n exit(): void {\n if (!this.destroyed) {\n this.animationState = McSidepanelAnimationState.Hidden;\n this.changeDetectorRef.markForCheck();\n }\n }\n\n onAnimation(event: AnimationEvent) {\n this.animationStateChanged.emit(event);\n }\n\n private setAnimation() {\n const position: McSidepanelPosition = this.sidepanelConfig.position!;\n\n this.animationTransform = {\n transformIn: mcSidepanelTransformAnimation[position].in,\n transformOut: mcSidepanelTransformAnimation[position].out\n };\n }\n\n private setPanelClass() {\n const element: HTMLElement = this.elementRef.nativeElement;\n const position: McSidepanelPosition = this.sidepanelConfig.position!;\n\n element.classList.add(`mc-sidepanel-container_${position}`);\n }\n\n private validatePortalAttached() {\n if (this.portalOutlet.hasAttached()) {\n throw Error('Attempting to attach sidepanel content after content is already attached');\n }\n }\n}\n","import { Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal, ComponentType, PortalInjector, TemplatePortal } from '@angular/cdk/portal';\nimport {\n ComponentRef,\n Inject,\n Injectable,\n InjectionToken,\n Injector, OnDestroy,\n Optional,\n SkipSelf,\n TemplateRef\n} from '@angular/core';\n\nimport { MC_SIDEPANEL_DATA, McSidepanelConfig } from './sidepanel-config';\nimport {\n McSidepanelContainerComponent,\n MC_SIDEPANEL_WITH_INDENT,\n MC_SIDEPANEL_WITH_SHADOW\n} from './sidepanel-container.component';\nimport { McSidepanelRef } from './sidepanel-ref';\n\n\n/** Injection token that can be used to specify default sidepanel options. */\nexport const MC_SIDEPANEL_DEFAULT_OPTIONS =\n new InjectionToken<McSidepanelConfig>('mc-sidepanel-default-options');\n\n@Injectable()\nexport class McSidepanelService implements OnDestroy {\n private openedSidepanelsAtThisLevel: McSidepanelRef[] = [];\n\n /** Keeps track of the currently-open sidepanels. */\n get openedSidepanels(): McSidepanelRef[] {\n return this.parentSidepanelService ? this.parentSidepanelService.openedSidepanels :\n this.openedSidepanelsAtThisLevel;\n }\n\n constructor(\n private overlay: Overlay,\n private injector: Injector,\n @Optional() @Inject(MC_SIDEPANEL_DEFAULT_OPTIONS) private defaultOptions: McSidepanelConfig,\n @Optional() @SkipSelf() private parentSidepanelService: McSidepanelService) {\n }\n\n ngOnDestroy() {\n // Only close the sidepanels at this level on destroy\n // since the parent service may still be active.\n this.closeSidepanels(this.openedSidepanelsAtThisLevel);\n }\n\n open<T, D = any>(\n componentOrTemplateRef: ComponentType<T> | TemplateRef<T>,\n config?: McSidepanelConfig<D>\n ): McSidepanelRef<T> {\n const fullConfig = {\n ...(this.defaultOptions || new McSidepanelConfig()),\n ...config\n };\n\n if (fullConfig.id && this.getSidepanelById(fullConfig.id)) {\n throw Error(`Sidepanel with id \"${fullConfig.id}\" exists already. The sidepanel id must be unique.`);\n }\n\n const overlayRef = this.createOverlay(fullConfig);\n const container = this.attachContainer(overlayRef, fullConfig);\n const ref = new McSidepanelRef(container, overlayRef, fullConfig);\n\n if (componentOrTemplateRef instanceof TemplateRef) {\n container.attachTemplatePortal(new TemplatePortal<T>(componentOrTemplateRef, null!, {\n $implicit: fullConfig.data,\n sidepanelRef: ref\n } as any));\n } else {\n const injector = this.createInjector(fullConfig, ref, container);\n const portal = new ComponentPortal(componentOrTemplateRef, undefined, injector);\n const contentRef = container.attachComponentPortal(portal);\n\n ref.instance = contentRef.instance;\n }\n\n this.openedSidepanels.push(ref);\n ref.afterClosed().subscribe(() => this.removeOpenSidepanel(ref));\n container.enter();\n\n return ref;\n }\n\n /**\n * Closes all of the currently-open sidepanels.\n */\n closeAll(): void {\n this.closeSidepanels(this.openedSidepanels);\n }\n\n /**\n * Finds an open sidepanel by its id.\n * @param id ID to use when looking up the sidepanel.\n */\n getSidepanelById(id: string): McSidepanelRef | undefined {\n return this.openedSidepanels.find((sidepanel) => sidepanel.id === id);\n }\n\n /**\n * Attaches the sidepanel container component to the overlay.\n */\n private attachContainer(overlayRef: OverlayRef, config: McSidepanelConfig): McSidepanelContainerComponent {\n const openedSidepanelsWithSamePosition = this.getOpenedSidepanelsWithSamePosition(config);\n\n // tslint:disable-next-line:deprecation\n const injector = new PortalInjector(this.injector, new WeakMap<any>([\n [McSidepanelConfig, config],\n [MC_SIDEPANEL_WITH_INDENT, openedSidepanelsWithSamePosition.length >= 1],\n [MC_SIDEPANEL_WITH_SHADOW, openedSidepanelsWithSamePosition.length < 2] // tslint:disable-line\n ]));\n\n const containerPortal = new ComponentPortal(McSidepanelContainerComponent, undefined, injector);\n const containerRef: ComponentRef<McSidepanelContainerComponent> = overlayRef.attach(containerPortal);\n\n return containerRef.instance;\n }\n\n /**\n * Creates a custom injector to be used inside the sidepanel. This allows a component loaded inside\n * of a sidepanel to close itself and, optionally, to return a value.\n * @param config Config object that is used to construct the sidepanel.\n * @param sidepanelRef Reference to the sidepanel.\n * @param sidepanelContainer Sidepanel container element that wraps all of the contents.\n * @returns The custom injector that can be used inside the sidepanel.\n */\n private createInjector<T>(\n config: McSidepanelConfig,\n sidepanelRef: McSidepanelRef<T>,\n // tslint:disable-next-line:deprecation\n sidepanelContainer: McSidepanelContainerComponent): PortalInjector {\n\n // The McSidepanelContainerComponent is injected in the portal as the McSidepanelContainerComponent and\n // the sidepanel's content are created out of the same ViewContainerRef and as such, are siblings for injector\n // purposes. To allow the hierarchy that is expected, the McSidepanelContainerComponent is explicitly\n // added to the injection tokens.\n const injectionTokens = new WeakMap<any>([\n [McSidepanelContainerComponent, sidepanelContainer],\n [MC_SIDEPANEL_DATA, config.data],\n [McSidepanelRef, sidepanelRef]\n ]);\n\n // tslint:disable-next-line:deprecation\n return new PortalInjector(this.injector, injectionTokens);\n }\n\n /**\n * Creates a new overlay and places it in the correct location.\n * @param config The user-specified sidepanel config.\n */\n private createOverlay(config: McSidepanelConfig): OverlayRef {\n const overlayConfig = new OverlayConfig({\n hasBackdrop: config.hasBackdrop,\n backdropClass: this.getBackdropClass(config),\n maxWidth: '100%',\n panelClass: config.overlayPanelClass,\n scrollStrategy: this.overlay.scrollStrategies.block(),\n positionStrategy: this.overlay.position().global()\n });\n\n return this.overlay.create(overlayConfig);\n }\n\n private closeSidepanels(sidepanels: McSidepanelRef[]) {\n const reversedOpenedSidepanels = [...sidepanels.reverse()];\n\n reversedOpenedSidepanels.forEach((sidepanelRef: McSidepanelRef) => {\n sidepanelRef.close();\n });\n }\n\n private getBackdropClass(config: McSidepanelConfig): string {\n if (config.hasBackdrop && config.backdropClass) {\n return config.backdropClass;\n }\n\n const hasOpenedSidepanelWithBackdrop =\n this.openedSidepanels.some((sidepanelRef) => sidepanelRef.config.hasBackdrop!);\n\n return config.requiredBackdrop || !hasOpenedSidepanelWithBackdrop ? 'cdk-overlay-dark-backdrop' :\n 'cdk-overlay-transparent-backdrop';\n }\n\n private getOpenedSidepanelsWithSamePosition(config: McSidepanelConfig): McSidepanelRef[] {\n return this.openedSidepanels.filter((sidepanelRef) => sidepanelRef.config.position === config.position);\n }\n\n /**\n * Removes a sidepanel from the array of open sidepanels.\n * @param sidepanelRef Sidepanel to be removed.\n */\n private removeOpenSidepanel(sidepanelRef: McSidepanelRef) {\n const index = this.openedSidepanels.indexOf(sidepanelRef);\n\n if (index > -1) {\n this.openedSidepanels.splice(index, 1);\n }\n }\n}\n","import { Component, Directive, ElementRef, Input, OnChanges, OnInit, Optional, SimpleChanges } from '@angular/core';\n\nimport { McSidepanelRef } from './sidepanel-ref';\nimport { McSidepanelService } from './sidepanel.service';\n\n\n/**\n * Button that will close the current sidepanel.\n */\n@Directive({\n selector: 'button[mc-sidepanel-close], button[mcSidepanelClose]',\n host: {\n '(click)': 'sidepanelRef.close(sidepanelResult)',\n class: 'mc-sidepanel-close'\n }\n})\nexport class McSidepanelClose implements OnInit, OnChanges {\n @Input('mc-sidepanel-close') sidepanelResult: any;\n\n @Input('mcSidepanelClose') mcSidepanelClose: any;\n\n constructor(\n @Optional() public sidepanelRef: McSidepanelRef,\n private elementRef: ElementRef<HTMLElement>,\n private sidepanelService: McSidepanelService\n ) {}\n\n ngOnInit() {\n if (!this.sidepanelRef) {\n // When this directive is included in a sidepanel via TemplateRef (rather than being\n // in a Component), the SidepanelRef isn't available via injection because embedded\n // views cannot be given a custom injector. Instead, we look up the SidepanelRef by\n // ID.\n // This must occur in `onInit`, as the ID binding for the sidepanel container won't\n // be resolved at constructor time. We use setTimeout by same reason.\n setTimeout(() => {\n this.sidepanelRef = getClosestSidepanel(this.elementRef, this.sidepanelService.openedSidepanels)!;\n });\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n const proxiedChange = changes.mcSidepanelClose || changes.sidepanelResult;\n\n if (proxiedChange) {\n this.sidepanelResult = proxiedChange.currentValue;\n }\n }\n}\n\n/**\n * Header of a sidepanel.\n */\n@Component({\n selector: 'mc-sidepanel-header',\n template: `\n <div class=\"mc-sidepanel-title\">\n <ng-content></ng-content>\n </div>\n <button *ngIf=\"closeable\" mc-sidepanel-close>\n <span class=\"mc-sidepanel-close-x\">\n <i mc-icon=\"mc-close-L_16\" class=\"mc-icon mc-icon_light\" [color]=\"'second'\"></i>\n </span>\n </button>\n `,\n host: {\n class: 'mc-sidepanel-header'\n }\n})\nexport class McSidepanelHeader {\n @Input() closeable: boolean;\n}\n\n/**\n * Scrollable content container of a sidepanel.\n */\n@Directive({\n selector: 'mc-sidepanel-body, [mc-sidepanel-body], mcSidepanelBody',\n host: {\n class: 'mc-sidepanel-body'\n }\n})\nexport class McSidepanelBody {}\n\n/**\n * Footer of a sidepanel.\n */\n@Directive({\n selector: 'mc-sidepanel-footer, [mc-sidepanel-footer], mcSidepanelFooter',\n host: {\n class: 'mc-sidepanel-footer'\n }\n})\nexport class McSidepanelFooter {}\n\n/**\n * Actions block of a sidepanel footer.\n */\n@Directive({\n selector: 'mc-sidepanel-actions, [mc-sidepanel-actions], mcSidepanelActions',\n host: {\n class: 'mc-sidepanel-actions'\n }\n})\nexport class McSidepanelActions {}\n\n/**\n * Finds the closest McSidepanelRef to an element by looking at the DOM.\n * @param element Element relative to which to look for a sidepanel.\n * @param openSidepanels References to the currently-open sidepanels.\n */\nfunction getClosestSidepanel(element: ElementRef<HTMLElement>, openSidepanels: McSidepanelRef[]) {\n let parent: HTMLElement | null = element.nativeElement.parentElement;\n\n while (parent && !parent.classList.contains('mc-sidepanel-container')) {\n parent = parent.parentElement;\n }\n\n return parent ? openSidepanels.find((sidepanel) => sidepanel.id === parent!.id) : null;\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { McCommonModule } from '@ptsecurity/mosaic/core';\nimport { McIconModule } from '@ptsecurity/mosaic/icon';\n\nimport { McSidepanelContainerComponent } from './sidepanel-container.component';\nimport {\n McSidepanelActions,\n McSidepanelBody,\n McSidepanelClose,\n McSidepanelFooter,\n McSidepanelHeader\n} from './sidepanel-directives';\nimport { McSidepanelService } from './sidepanel.service';\n\n\n@NgModule({\n imports: [\n CommonModule,\n OverlayModule,\n PortalModule,\n McCommonModule,\n McIconModule\n ],\n providers: [McSidepanelService],\n declarations: [\n McSidepanelContainerComponent,\n McSidepanelClose,\n McSidepanelHeader,\n McSidepanelBody,\n McSidepanelFooter,\n McSidepanelActions\n ],\n entryComponents: [McSidepanelContainerComponent],\n exports: [\n McSidepanelContainerComponent,\n McSidepanelClose,\n McSidepanelHeader,\n McSidepanelBody,\n McSidepanelFooter,\n McSidepanelActions\n ]\n})\nexport class McSidepanelModule {}\n"]}
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("@angular/core"),require("@ptsecurity/mosaic/icon"),require("@angular/cdk/coercion")):"function"==typeof define&&define.amd?define("@ptsecurity/mosaic/splitter",["exports","@angular/common","@angular/core","@ptsecurity/mosaic/icon","@angular/cdk/coercion"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).ptsecurity=e.ptsecurity||{},e.ptsecurity.mosaic=e.ptsecurity.mosaic||{},e.ptsecurity.mosaic.splitter={}),e.ng.common,e.ng.core,e.ptsecurity.mosaic.icon,e.ng.cdk.coercion)}(this,(function(e,t,i,r,n){"use strict";var o;e.Direction=void 0,(o=e.Direction||(e.Direction={})).Horizontal="horizontal",o.Vertical="vertical";var s=function(){function t(t,i){this.elementRef=t,this.renderer=i,this._direction=e.Direction.Vertical,this._order=0,this._size=6,this.dragged=!1}return Object.defineProperty(t.prototype,"direction",{get:function(){return this._direction},set:function(e){this._direction=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"order",{get:function(){return this._order},set:function(e){this._order=n.coerceNumberProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this._size=n.coerceNumberProperty(e)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.setStyle("flex-basis",n.coerceCssPixelValue(this.size)),this.setStyle(this.isVertical()?"height":"width",n.coerceCssPixelValue(this.size)),this.setStyle("order",this.order),this.isVertical()||this.setStyle("height","100%"),this.setStyle("flex-direction",this.isVertical()?"row":"column")},t.prototype.isVertical=function(){return this.direction===e.Direction.Vertical},t.prototype.setStyle=function(e,t){this.renderer.setStyle(this.elementRef.nativeElement,e,t)},t}();s.decorators=[{type:i.Directive,args:[{selector:"mc-gutter",host:{class:"mc-gutter","[class.mc-gutter_vertical]":"isVertical()","[class.mc-gutter_dragged]":"dragged","(mousedown)":"dragged = true"}}]}],s.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2}]},s.propDecorators={direction:[{type:i.Input}],order:[{type:i.Input}],size:[{type:i.Input}]};var c=function(){function t(e,t,i,r){this.elementRef=e,this.changeDetectorRef=t,this.ngZone=i,this.renderer=r,this.areas=[],this.isDragging=!1,this.areaPositionDivider=2,this.listeners=[],this._hideGutters=!1,this._disabled=!1,this._gutterSize=6}return Object.defineProperty(t.prototype,"hideGutters",{get:function(){return this._hideGutters},set:function(e){this._hideGutters=n.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return this._direction},set:function(e){this._direction=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=n.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gutterSize",{get:function(){return this._gutterSize},set:function(e){var t=n.coerceNumberProperty(e);this._gutterSize=t>0?t:this.gutterSize},enumerable:!1,configurable:!0}),t.prototype.addArea=function(e){var t=this.areas.length,i=t*this.areaPositionDivider,r=e.getSize();e.setOrder(i),this.areas.push({area:e,index:t,order:i,initialSize:r})},t.prototype.ngOnInit=function(){this.direction||(this.direction=e.Direction.Horizontal),this.setStyle("flex-direction",this.isVertical()?"column":"row")},t.prototype.onMouseDown=function(e,t,i){var r=this;if(!this.disabled){e.preventDefault();var n=this.areas[t],o=this.areas[i],s={x:e.screenX,y:e.screenY};n.initialSize=n.area.getSize(),o.initialSize=o.area.getSize(),this.areas.forEach((function(e){var t=e.area.getSize();e.area.disableFlex(),e.area.setSize(t)})),this.ngZone.runOutsideAngular((function(){r.listeners.push(r.renderer.listen("document","mouseup",(function(){return r.onMouseUp()})))})),this.ngZone.runOutsideAngular((function(){r.listeners.push(r.renderer.listen("document","mousemove",(function(e){return r.onMouseMove(e,s,n,o)})))})),this.isDragging=!0}},t.prototype.removeArea=function(e){var t=-1;this.areas.some((function(i,r){return i.area===e&&(t=r,!0)})),-1!==t&&this.areas.splice(t,1)},t.prototype.isVertical=function(){return this.direction===e.Direction.Vertical},t.prototype.updateGutter=function(){var e=this;this.gutters.forEach((function(t){t.dragged&&(t.dragged=!1,e.changeDetectorRef.detectChanges())}))},t.prototype.onMouseMove=function(e,t,i,r){if(this.isDragging&&!this.disabled){var n=e.screenX,o=e.screenY,s=this.isVertical()?t.y-o:t.x-n,c=i.initialSize-s,a=r.initialSize+s,l=i.area.getMinSize(),u=r.area.getMinSize();c<=l||a<=u||(c<=0?(i.area.setSize(0),r.area.setSize(r.initialSize+i.initialSize)):a<=0?(i.area.setSize(r.initialSize+i.initialSize),r.area.setSize(0)):(i.area.setSize(c),r.area.setSize(a)))}},t.prototype.onMouseUp=function(){for(;this.listeners.length>0;){var e=this.listeners.pop();e&&e()}this.isDragging=!1,this.updateGutter()},t.prototype.setStyle=function(e,t){this.renderer.setStyle(this.elementRef.nativeElement,e,t)},t}();c.decorators=[{type:i.Component,args:[{selector:"mc-splitter",exportAs:"mcSplitter",host:{class:"mc-splitter"},preserveWhitespaces:!1,template:'<ng-content></ng-content>\n\n<ng-template ngFor let-area [ngForOf]="areas" let-index="index" let-last="last">\n <mc-gutter *ngIf="last === false"\n [direction]="direction"\n [attr.disabled]="disabled || null"\n [style.display]="hideGutters ? \'none\' : \'flex\'"\n [size]="gutterSize"\n [order]="index * 2 + 1"\n (mousedown)="onMouseDown($event, index, index + 1)">\n </mc-gutter>\n</ng-template>\n',encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[".mc-splitter{display:flex;flex-wrap:nowrap;align-items:stretch}.mc-gutter,.mc-splitter,.mc-splitter .mc-splitter-area{overflow:hidden}.mc-gutter{display:flex;flex-grow:0;flex-shrink:0;justify-content:center;align-items:center}.mc-gutter.mc-gutter_vertical>.mc-icon{transform:rotate(90deg)}"]}]}],c.ctorParameters=function(){return[{type:i.ElementRef},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:i.Renderer2}]},c.propDecorators={gutters:[{type:i.ViewChildren,args:[s]}],hideGutters:[{type:i.Input}],direction:[{type:i.Input}],disabled:[{type:i.Input}],gutterSize:[{type:i.Input}]};var a=function(){function t(e,t,i){this.elementRef=e,this.renderer=t,this.splitter=i}return t.prototype.disableFlex=function(){this.renderer.removeStyle(this.elementRef.nativeElement,"flex")},t.prototype.ngOnInit=function(){this.splitter.addArea(this),this.removeStyle("max-width"),this.splitter.direction===e.Direction.Vertical?(this.setStyle("width","100%"),this.removeStyle("height")):(this.setStyle("height","100%"),this.removeStyle("width"))},t.prototype.ngOnDestroy=function(){this.splitter.removeArea(this)},t.prototype.setOrder=function(e){this.setStyle("order",e)},t.prototype.setSize=function(e){if(e){var t=n.coerceNumberProperty(e);this.setStyle(this.getSizeProperty(),n.coerceCssPixelValue(t))}},t.prototype.getSize=function(){return this.elementRef.nativeElement[this.getOffsetSizeProperty()]},t.prototype.getMinSize=function(){var e=getComputedStyle(this.elementRef.nativeElement);return parseFloat(e[this.getMinSizeProperty()])},t.prototype.isVertical=function(){return this.splitter.direction===e.Direction.Vertical},t.prototype.getMinSizeProperty=function(){return this.isVertical()?"min-height":"minWidth"},t.prototype.getOffsetSizeProperty=function(){return this.isVertical()?"offsetHeight":"offsetWidth"},t.prototype.getSizeProperty=function(){return this.isVertical()?"height":"width"},t.prototype.setStyle=function(e,t){this.renderer.setStyle(this.elementRef.nativeElement,e,t)},t.prototype.removeStyle=function(e){this.renderer.removeStyle(this.elementRef.nativeElement,e)},t}();a.decorators=[{type:i.Directive,args:[{selector:"[mc-splitter-area]",host:{class:"mc-splitter-area"}}]}],a.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2},{type:c}]};var l=function(){};l.decorators=[{type:i.NgModule,args:[{imports:[t.CommonModule,r.McIconModule],exports:[s,a,c],declarations:[s,a,c]}]}],e.McGutterDirective=s,e.McSplitterAreaDirective=a,e.McSplitterComponent=c,e.McSplitterModule=l,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=ptsecurity-mosaic-splitter.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../packages/mosaic/splitter/splitter.component.ts","../../../packages/mosaic/splitter/splitter.module.ts"],"names":["Direction","McGutterDirective","elementRef","renderer","this","_direction","Vertical","_order","_size","dragged","Object","defineProperty","prototype","direction","order","coerceNumberProperty","size","ngOnInit","setStyle","coerceCssPixelValue","isVertical","property","value","nativeElement","Directive","args","selector","host","class","[class.mc-gutter_vertical]","[class.mc-gutter_dragged]","(mousedown)","ElementRef","Renderer2","Input","McSplitterComponent","changeDetectorRef","ngZone","areas","isDragging","areaPositionDivider","listeners","_hideGutters","_disabled","_gutterSize","coerceBooleanProperty","disabled","gutterSize","addArea","area","index","length","getSize","setOrder","push","initialSize","Horizontal","onMouseDown","event","leftAreaIndex","rightAreaIndex","_this","preventDefault","leftArea","rightArea","startPoint","x","screenX","y","screenY","forEach","item","disableFlex","setSize","runOutsideAngular","listen","onMouseUp","e","onMouseMove","removeArea","indexToRemove","some","splice","updateGutter","gutters","gutter","detectChanges","endPoint","offset","newLeftAreaSize","newRightAreaSize","minLeftAreaSize","getMinSize","minRightAreaSize","unsubscribe","pop","Component","exportAs","preserveWhitespaces","template","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","ChangeDetectorRef","NgZone","ViewChildren","McSplitterAreaDirective","splitter","removeStyle","ngOnDestroy","sz","getSizeProperty","getOffsetSizeProperty","styles","getComputedStyle","parseFloat","getMinSizeProperty","style","NgModule","imports","CommonModule","McIconModule","exports","declarations"],"mappings":"ioBA4CA,IAAYA,EAAAA,EAAAA,eAAAA,GAAAA,EAAAA,EAAAA,YAAA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AASsG,EAAsBlG,GACnClB,KAAKD,SAASe,SAASd,KAAKF,WAAWqB,cAAeiG,EAAOlG,IAGzDuF,EAAAjG,UAAAmG,YAAA,SAAYS,GAChBpH,KAAKD,SAAS4G,YAAY3G,KAAKF,WAAWqB,cAAeiG,6BAnFhEhG,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,qBACVC,KAAM,CACFC,MAAO,iEA5VXI,EAAAA,kBAMAC,EAAAA,iBA6VsBE,WClV1B,iCAhBCsF,EAAAA,SAAQhG,KAAA,CAAC,CACNiG,QAAS,CACLC,EAAAA,aACAC,EAAAA,cAEJC,QAAS,CACL5H,EACA4G,EACA1E,GAEJ2F,aAAc,CACV7H,EACA4G,EACA1E","sourcesContent":["import { coerceBooleanProperty, coerceCssPixelValue, coerceNumberProperty } from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n ElementRef,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n QueryList,\n Renderer2,\n ViewChildren,\n ViewEncapsulation\n} from '@angular/core';\n\n\ninterface IArea {\n area: McSplitterAreaDirective;\n index: number;\n order: number;\n initialSize: number;\n}\n\ninterface IPoint {\n x: number;\n y: number;\n}\n\nconst enum StyleProperty {\n Flex = 'flex',\n FlexBasis = 'flex-basis',\n FlexDirection = 'flex-direction',\n Height = 'height',\n MaxWidth = 'max-width',\n MinHeight = 'min-height',\n MinWidth = 'minWidth',\n OffsetHeight = 'offsetHeight',\n OffsetWidth = 'offsetWidth',\n Order = 'order',\n Width = 'width'\n}\n\nexport enum Direction {\n Horizontal = 'horizontal',\n Vertical = 'vertical'\n}\n\n\n@Directive({\n selector: 'mc-gutter',\n host: {\n class: 'mc-gutter',\n '[class.mc-gutter_vertical]': 'isVertical()',\n '[class.mc-gutter_dragged]': 'dragged',\n '(mousedown)': 'dragged = true'\n }\n})\nexport class McGutterDirective implements OnInit {\n get direction(): Direction {\n return this._direction;\n }\n\n @Input()\n set direction(direction: Direction) {\n this._direction = direction;\n }\n\n private _direction: Direction = Direction.Vertical;\n\n get order(): number {\n return this._order;\n }\n\n @Input()\n set order(order: number) {\n this._order = coerceNumberProperty(order);\n }\n\n private _order: number = 0;\n\n get size(): number {\n return this._size;\n }\n\n @Input()\n set size(size: number) {\n this._size = coerceNumberProperty(size);\n }\n\n private _size: number = 6;\n\n dragged: boolean = false;\n\n constructor(\n private elementRef: ElementRef,\n private renderer: Renderer2\n ) {}\n\n ngOnInit(): void {\n this.setStyle(StyleProperty.FlexBasis, coerceCssPixelValue(this.size));\n this.setStyle(this.isVertical() ? StyleProperty.Height : StyleProperty.Width, coerceCssPixelValue(this.size));\n this.setStyle(StyleProperty.Order, this.order);\n\n if (!this.isVertical()) {\n this.setStyle(StyleProperty.Height, '100%');\n }\n\n // fix IE issue with gutter icon. flex-direction is requied for flex alignment options\n this.setStyle(StyleProperty.FlexDirection, this.isVertical() ? 'row' : 'column');\n }\n\n isVertical(): boolean {\n return this.direction === Direction.Vertical;\n }\n\n private setStyle(property: StyleProperty, value: string | number) {\n this.renderer.setStyle(this.elementRef.nativeElement, property, value);\n }\n}\n\n\n@Component({\n selector: 'mc-splitter',\n exportAs: 'mcSplitter',\n host: {\n class: 'mc-splitter'\n },\n preserveWhitespaces: false,\n styleUrls: ['splitter.scss'],\n templateUrl: './splitter.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class McSplitterComponent implements OnInit {\n readonly areas: IArea[] = [];\n\n @ViewChildren(McGutterDirective) gutters: QueryList<McGutterDirective>;\n\n private isDragging: boolean = false;\n\n private readonly areaPositionDivider: number = 2;\n private readonly listeners: (() => void)[] = [];\n\n get hideGutters(): boolean {\n return this._hideGutters;\n }\n\n @Input()\n set hideGutters(value: boolean) {\n this._hideGutters = coerceBooleanProperty(value);\n }\n\n private _hideGutters: boolean = false;\n\n get direction(): Direction {\n return this._direction;\n }\n\n @Input()\n set direction(direction: Direction) {\n this._direction = direction;\n }\n\n private _direction: Direction;\n\n get disabled(): boolean {\n return this._disabled;\n }\n\n @Input()\n set disabled(disabled: boolean) {\n this._disabled = coerceBooleanProperty(disabled);\n }\n\n private _disabled: boolean = false;\n\n get gutterSize(): number {\n return this._gutterSize;\n }\n\n @Input()\n set gutterSize(gutterSize: number) {\n const size = coerceNumberProperty(gutterSize);\n this._gutterSize = size > 0 ? size : this.gutterSize;\n }\n\n private _gutterSize: number = 6;\n\n constructor(\n public elementRef: ElementRef,\n public changeDetectorRef: ChangeDetectorRef,\n private ngZone: NgZone,\n private renderer: Renderer2\n ) {}\n\n addArea(area: McSplitterAreaDirective): void {\n const index: number = this.areas.length;\n const order: number = index * this.areaPositionDivider;\n const size: number = area.getSize();\n\n area.setOrder(order);\n\n this.areas.push({\n area,\n index,\n order,\n initialSize: size\n });\n }\n\n ngOnInit(): void {\n if (!this.direction) {\n this.direction = Direction.Horizontal;\n }\n\n this.setStyle(StyleProperty.FlexDirection, this.isVertical() ? 'column' : 'row');\n }\n\n onMouseDown(event: MouseEvent, leftAreaIndex: number, rightAreaIndex: number) {\n if (this.disabled) { return; }\n\n event.preventDefault();\n\n const leftArea = this.areas[leftAreaIndex];\n const rightArea = this.areas[rightAreaIndex];\n\n const startPoint: IPoint = {\n x: event.screenX,\n y: event.screenY\n };\n\n leftArea.initialSize = leftArea.area.getSize();\n rightArea.initialSize = rightArea.area.getSize();\n\n this.areas.forEach((item) => {\n const size = item.area.getSize();\n item.area.disableFlex();\n item.area.setSize(size);\n });\n\n this.ngZone.runOutsideAngular(() => {\n this.listeners.push(\n this.renderer.listen(\n 'document',\n 'mouseup',\n () => this.onMouseUp()\n )\n );\n });\n\n this.ngZone.runOutsideAngular(() => {\n this.listeners.push(\n this.renderer.listen(\n 'document',\n 'mousemove',\n (e: MouseEvent) => this.onMouseMove(e, startPoint, leftArea, rightArea)\n )\n );\n });\n\n this.isDragging = true;\n }\n\n removeArea(area: McSplitterAreaDirective): void {\n let indexToRemove: number = -1;\n\n this.areas.some((item, index) => {\n if (item.area === area) {\n indexToRemove = index;\n\n return true;\n }\n\n return false;\n });\n\n if (indexToRemove === -1) {\n return;\n }\n\n this.areas.splice(indexToRemove, 1);\n }\n\n isVertical(): boolean {\n return this.direction === Direction.Vertical;\n }\n\n private updateGutter(): void {\n this.gutters.forEach((gutter) => {\n if (gutter.dragged) {\n gutter.dragged = false;\n\n this.changeDetectorRef.detectChanges();\n }\n });\n\n }\n\n private onMouseMove(event: MouseEvent, startPoint: IPoint, leftArea: IArea, rightArea: IArea) {\n if (!this.isDragging || this.disabled) { return; }\n\n const endPoint: IPoint = {\n x: event.screenX,\n y: event.screenY\n };\n\n const offset = this.isVertical()\n ? startPoint.y - endPoint.y\n : startPoint.x - endPoint.x;\n\n const newLeftAreaSize = leftArea.initialSize - offset;\n const newRightAreaSize = rightArea.initialSize + offset;\n\n const minLeftAreaSize = leftArea.area.getMinSize();\n const minRightAreaSize = rightArea.area.getMinSize();\n\n if (newLeftAreaSize <= minLeftAreaSize || newRightAreaSize <= minRightAreaSize) {\n return;\n } else if (newLeftAreaSize <= 0) {\n leftArea.area.setSize(0);\n rightArea.area.setSize(rightArea.initialSize + leftArea.initialSize);\n } else if (newRightAreaSize <= 0) {\n leftArea.area.setSize(rightArea.initialSize + leftArea.initialSize);\n rightArea.area.setSize(0);\n } else {\n leftArea.area.setSize(newLeftAreaSize);\n rightArea.area.setSize(newRightAreaSize);\n }\n }\n\n private onMouseUp() {\n while (this.listeners.length > 0) {\n const unsubscribe = this.listeners.pop();\n\n if (unsubscribe) {\n unsubscribe();\n }\n }\n\n this.isDragging = false;\n\n this.updateGutter();\n }\n\n private setStyle(property: StyleProperty, value: string | number) {\n this.renderer.setStyle(this.elementRef.nativeElement, property, value);\n }\n}\n\n@Directive({\n selector: '[mc-splitter-area]',\n host: {\n class: 'mc-splitter-area'\n }\n})\nexport class McSplitterAreaDirective implements OnInit, OnDestroy {\n constructor(\n private elementRef: ElementRef,\n private renderer: Renderer2,\n private splitter: McSplitterComponent\n ) {}\n\n disableFlex(): void {\n this.renderer.removeStyle(this.elementRef.nativeElement, 'flex');\n }\n\n ngOnInit(): void {\n this.splitter.addArea(this);\n\n this.removeStyle(StyleProperty.MaxWidth);\n\n if (this.splitter.direction === Direction.Vertical) {\n this.setStyle(StyleProperty.Width, '100%');\n this.removeStyle(StyleProperty.Height);\n } else {\n this.setStyle(StyleProperty.Height, '100%');\n this.removeStyle(StyleProperty.Width);\n }\n }\n\n ngOnDestroy(): void {\n this.splitter.removeArea(this);\n }\n\n setOrder(order: number): void {\n this.setStyle(StyleProperty.Order, order);\n }\n\n setSize(size: number): void {\n if (size) {\n const sz = coerceNumberProperty(size);\n this.setStyle(this.getSizeProperty(), coerceCssPixelValue(sz));\n }\n }\n\n getSize(): number {\n return this.elementRef.nativeElement[this.getOffsetSizeProperty()];\n }\n\n getMinSize(): number {\n const styles = getComputedStyle(this.elementRef.nativeElement);\n\n return parseFloat(styles[this.getMinSizeProperty()]);\n }\n\n private isVertical(): boolean {\n return this.splitter.direction === Direction.Vertical;\n }\n\n private getMinSizeProperty(): StyleProperty {\n return this.isVertical()\n ? StyleProperty.MinHeight\n : StyleProperty.MinWidth;\n }\n\n private getOffsetSizeProperty(): StyleProperty {\n return this.isVertical()\n ? StyleProperty.OffsetHeight\n : StyleProperty.OffsetWidth;\n }\n\n private getSizeProperty(): StyleProperty {\n return this.isVertical()\n ? StyleProperty.Height\n : StyleProperty.Width;\n }\n\n private setStyle(style: StyleProperty, value: string | number) {\n this.renderer.setStyle(this.elementRef.nativeElement, style, value);\n }\n\n private removeStyle(style: StyleProperty) {\n this.renderer.removeStyle(this.elementRef.nativeElement, style);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { McIconModule } from '@ptsecurity/mosaic/icon';\n\nimport { McGutterDirective, McSplitterAreaDirective, McSplitterComponent } from './splitter.component';\n\n\n@NgModule({\n imports: [\n CommonModule,\n McIconModule\n ],\n exports: [\n McGutterDirective,\n McSplitterAreaDirective,\n McSplitterComponent\n ],\n declarations: [\n McGutterDirective,\n McSplitterAreaDirective,\n McSplitterComponent\n ]\n})\nexport class McSplitterModule {\n}\n"]}
@@ -1,2 +0,0 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/cdk/a11y"),require("@angular/cdk/platform"),require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ptsecurity/mosaic/table",["exports","@angular/cdk/a11y","@angular/cdk/platform","@angular/common","@angular/core"],o):o(((e="undefined"!=typeof globalThis?globalThis:e||self).ptsecurity=e.ptsecurity||{},e.ptsecurity.mosaic=e.ptsecurity.mosaic||{},e.ptsecurity.mosaic.table={}),e.ng.cdk.a11y,e.ng.cdk.platform,e.ng.common,e.ng.core)}(this,(function(e,o,t,r,a){"use strict";var c=function(){};c.decorators=[{type:a.Directive,args:[{selector:"table[mc-table]",host:{class:"mc-table"}}]}];var l=function(){};l.decorators=[{type:a.NgModule,args:[{imports:[r.CommonModule,o.A11yModule,t.PlatformModule],exports:[c],declarations:[c]}]}],e.McTable=c,e.McTableModule=l,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=ptsecurity-mosaic-table.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../packages/mosaic/table/table.component.ts","../../../packages/mosaic/table/table.module.ts"],"names":["Directive","args","selector","host","class","NgModule","imports","CommonModule","A11yModule","PlatformModule","exports","McTable","declarations"],"mappings":"0mBASA,iCANCA,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,kBACVC,KAAM,CACFC,MAAO,sBCWf,iCATCC,EAAAA,SAAQJ,KAAA,CAAC,CACNK,QAAS,CACLC,EAAAA,aACAC,EAAAA,WACAC,EAAAA,gBAEJC,QAAS,CAACC,GACVC,aAAc,CAACD","sourcesContent":["import { Directive } from '@angular/core';\n\n\n@Directive({\n selector: 'table[mc-table]',\n host: {\n class: 'mc-table'\n }\n})\nexport class McTable {}\n\n","import { A11yModule } from '@angular/cdk/a11y';\nimport { PlatformModule } from '@angular/cdk/platform';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { McTable } from './table.component';\n\n\n@NgModule({\n imports: [\n CommonModule,\n A11yModule,\n PlatformModule\n ],\n exports: [McTable],\n declarations: [McTable]\n})\nexport class McTableModule {}\n"]}
@@ -1,16 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/cdk/a11y"),require("@angular/cdk/portal"),require("@angular/common"),require("@angular/core"),require("@ptsecurity/mosaic/core"),require("@ptsecurity/mosaic/icon"),require("@ptsecurity/mosaic/tooltip"),require("@angular/cdk/bidi"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@angular/cdk/coercion"),require("@angular/cdk/platform"),require("@angular/cdk/scrolling"),require("@angular/platform-browser/animations"),require("@angular/cdk/keycodes"),require("@ptsecurity/cdk/keycodes")):"function"==typeof define&&define.amd?define("@ptsecurity/mosaic/tabs",["exports","@angular/cdk/a11y","@angular/cdk/portal","@angular/common","@angular/core","@ptsecurity/mosaic/core","@ptsecurity/mosaic/icon","@ptsecurity/mosaic/tooltip","@angular/cdk/bidi","rxjs","rxjs/operators","@angular/animations","@angular/cdk/coercion","@angular/cdk/platform","@angular/cdk/scrolling","@angular/platform-browser/animations","@angular/cdk/keycodes","@ptsecurity/cdk/keycodes"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ptsecurity=t.ptsecurity||{},t.ptsecurity.mosaic=t.ptsecurity.mosaic||{},t.ptsecurity.mosaic.tabs={}),t.ng.cdk.a11y,t.ng.cdk.portal,t.ng.common,t.ng.core,t.ptsecurity.mosaic.core,t.ptsecurity.mosaic.icon,t.ptsecurity.mosaic.tooltip,t.ng.cdk.bidi,t.rxjs,t.rxjs.operators,t.ng.animations,t.ng.cdk.coercion,t.ng.cdk.platform,t.ng.cdk.scrolling,t.ng.platformBrowser.animations,t.ng.cdk.keycodes,t.mc.cdk.keycodes)}(this,(function(t,e,n,i,a,r,o,s,c,l,d,b,p,h,u,m,g,f){"use strict";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var y=function(t,e){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function x(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,a,r=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}Object.create;var _={translateTab:b.trigger("translateTab",[b.state("center, void, left-origin-center, right-origin-center",b.style({transform:"none"})),b.state("left",b.style({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),b.state("right",b.style({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),b.transition("* => left, * => right, left => center, right => center",b.animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),b.transition("void => left-origin-center",[b.style({transform:"translate3d(-100%, 0, 0)"}),b.animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),b.transition("void => right-origin-center",[b.style({transform:"translate3d(100%, 0, 0)"}),b.animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},C=function(){function t(t,e,n){var i=this;this.elementRef=t,this.dir=e,this.onCentering=new a.EventEmitter,this.beforeCentering=new a.EventEmitter,this.afterLeavingCenter=new a.EventEmitter,this.onCentered=new a.EventEmitter(!0),this.animationDuration="0ms",this.dirChangeSubscription=l.Subscription.EMPTY,this.dir&&n&&(this.dirChangeSubscription=this.dir.change.subscribe((function(t){i.computePositionAnimationState(t),n.markForCheck()})))}return Object.defineProperty(t.prototype,"position",{set:function(t){this.positionIndex=t,this.computePositionAnimationState()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){"center"===this.bodyPosition&&null!=this.origin&&(this.bodyPosition=this.computePositionFromOrigin())},t.prototype.ngOnDestroy=function(){this.dirChangeSubscription.unsubscribe()},t.prototype.onTranslateTabStarted=function(t){var e=this.isCenterPosition(t.toState);this.beforeCentering.emit(e),e&&this.onCentering.emit(this.elementRef.nativeElement.clientHeight)},t.prototype.onTranslateTabComplete=function(t){this.isCenterPosition(t.toState)&&this.isCenterPosition(this.bodyPosition)&&this.onCentered.emit(),this.isCenterPosition(t.fromState)&&!this.isCenterPosition(this.bodyPosition)&&this.afterLeavingCenter.emit()},t.prototype.getLayoutDirection=function(){return this.dir&&"rtl"===this.dir.value?"rtl":"ltr"},t.prototype.isCenterPosition=function(t){return"center"===t||"left-origin-center"===t||"right-origin-center"===t},t.prototype.computePositionAnimationState=function(t){void 0===t&&(t=this.getLayoutDirection()),this.positionIndex<0?this.bodyPosition="ltr"===t?"left":"right":this.positionIndex>0?this.bodyPosition="ltr"===t?"right":"left":this.bodyPosition="center"},t.prototype.computePositionFromOrigin=function(){var t=this.getLayoutDirection();return"ltr"===t&&this.origin<=0||"rtl"===t&&this.origin>0?"left-origin-center":"right-origin-center"},t}();C.decorators=[{type:a.Component,args:[{selector:"mc-tab-body",template:'<div class="mc-tab-body__content"\n #content\n [@translateTab]="{\n value: bodyPosition,\n params: {animationDuration: animationDuration}\n }"\n (@translateTab.start)="onTranslateTabStarted($event)"\n (@translateTab.done)="onTranslateTabComplete($event)">\n <ng-template mcTabBodyHost></ng-template>\n</div>\n',encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.OnPush,animations:[_.translateTab],host:{class:"mc-tab-body"},styles:[".mc-tab-body__content{height:100%;overflow:auto}.mc-tab-body__content .mc-tab-group_dynamic-height{overflow:hidden}"]}]}],C.ctorParameters=function(){return[{type:a.ElementRef},{type:c.Directionality,decorators:[{type:a.Optional}]},{type:a.ChangeDetectorRef}]},C.propDecorators={position:[{type:a.Input}],onCentering:[{type:a.Output}],beforeCentering:[{type:a.Output}],afterLeavingCenter:[{type:a.Output}],onCentered:[{type:a.Output}],portalHost:[{type:a.ViewChild,args:[n.CdkPortalOutlet,{static:!1}]}],content:[{type:a.Input,args:["content"]}],origin:[{type:a.Input}],animationDuration:[{type:a.Input}]};var k=function(t){function e(e,n,i){var a=t.call(this,e,n)||this;return a.host=i,a.centeringSub=l.Subscription.EMPTY,a.leavingSub=l.Subscription.EMPTY,a}return v(e,t),e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this.centeringSub=this.host.beforeCentering.pipe(d.startWith(this.host.isCenterPosition(this.host.bodyPosition))).subscribe((function(t){t&&!e.hasAttached()&&e.attach(e.host.content)})),this.leavingSub=this.host.afterLeavingCenter.subscribe((function(){e.detach()}))},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this.centeringSub.unsubscribe(),this.leavingSub.unsubscribe()},e}(n.CdkPortalOutlet);k.decorators=[{type:a.Directive,args:[{selector:"[mcTabBodyHost]"}]}],k.ctorParameters=function(){return[{type:a.ComponentFactoryResolver},{type:a.ViewContainerRef},{type:C,decorators:[{type:a.Inject,args:[a.forwardRef((function(){return C}))]}]}]};var I=function(t){this.template=t};I.decorators=[{type:a.Directive,args:[{selector:"[mcTabContent]"}]}],I.ctorParameters=function(){return[{type:a.TemplateRef}]};var T=new a.InjectionToken("McTabLabel"),P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e}(n.CdkPortal);P.decorators=[{type:a.Directive,args:[{selector:"[mc-tab-label], [mcTabLabel]",providers:[{provide:T,useExisting:P}]}]}];var w=function(){},D=r.mixinDisabled(w),S=function(t){function e(e){var n=t.call(this)||this;return n.viewContainerRef=e,n.textLabel="",n.empty=!1,n.tooltipTitle="",n.tooltipPlacement="",n.stateChanges=new l.Subject,n.position=null,n.origin=null,n.isActive=!1,n.contentPortal=null,n}return v(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this.contentPortal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"templateLabel",{get:function(){return this._templateLabel},set:function(t){this.setTemplateLabelInput(t)},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete()},e.prototype.ngOnInit=function(){this.contentPortal=new n.TemplatePortal(this.explicitContent||this.implicitContent,this.viewContainerRef)},e.prototype.setTemplateLabelInput=function(t){t&&(this._templateLabel=t)},e}(D);S.decorators=[{type:a.Component,args:[{selector:"mc-tab",exportAs:"mcTab",template:"<ng-template><ng-content></ng-content></ng-template>",inputs:["disabled"],changeDetection:a.ChangeDetectionStrategy.OnPush,encapsulation:a.ViewEncapsulation.None}]}],S.ctorParameters=function(){return[{type:a.ViewContainerRef}]},S.propDecorators={templateLabel:[{type:a.ContentChild,args:[T]}],explicitContent:[{type:a.ContentChild,args:[I,{read:a.TemplateRef,static:!0}]}],implicitContent:[{type:a.ViewChild,args:[a.TemplateRef,{static:!0}]}],textLabel:[{type:a.Input,args:["label"]}],empty:[{type:a.Input}],tooltipTitle:[{type:a.Input}],tooltipPlacement:[{type:a.Input}],tabId:[{type:a.Input,args:["tabId"]}]};var E=function(){};E.decorators=[{type:a.Directive,args:[{selector:"mc-tab-group[mc-old-tabs]",host:{class:"mc-tab-group_old"}}]}];var M=function(){};M.decorators=[{type:a.Directive,args:[{selector:"mc-tab-group[mc-align-tabs-center], [mc-tab-nav-bar][mc-align-tabs-center]",host:{class:"mc-tab-group_align-labels-center"}}]}];var O=function(){};O.decorators=[{type:a.Directive,args:[{selector:"mc-tab-group[mc-align-tabs-end], [mc-tab-nav-bar][mc-align-tabs-end]",host:{class:"mc-tab-group_align-labels-end"}}]}];var L=function(){};L.decorators=[{type:a.Directive,args:[{selector:"mc-tab-group[mc-stretch-tabs], [mc-tab-nav-bar][mc-stretch-tabs]",host:{class:"mc-tab-group_stretch-labels"}}]}];var R=function(){};R.decorators=[{type:a.Directive,args:[{selector:"mc-tab-group[vertical], [mc-tab-nav-bar][vertical]",host:{class:"mc-tab-group_vertical"}}]}];var z=0,A=function(){},W=new a.InjectionToken("MC_TABS_CONFIG"),j=function(t){this._elementRef=t},F=r.mixinDisabled(j),H=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.changeDetectorRef=n,s.headerPosition="above",s.selectedIndexChange=new a.EventEmitter,s.focusChange=new a.EventEmitter,s.animationDone=new a.EventEmitter,s.selectedTabChange=new a.EventEmitter(!0),s.indexToSelect=0,s.tabBodyWrapperHeight=0,s.tabsSubscription=l.Subscription.EMPTY,s.tabLabelSubscription=l.Subscription.EMPTY,s._dynamicHeight=!1,s._selectedIndex=null,s.oldTab=p.coerceBooleanProperty(i),s.vertical=p.coerceBooleanProperty(r),s.groupId=z++,s.animationDuration=(null==o?void 0:o.animationDuration)||"0ms",s}return v(e,t),Object.defineProperty(e.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=p.coerceBooleanProperty(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this.indexToSelect=p.coerceNumberProperty(t,null)},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentChecked=function(){var t=this,e=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this._selectedIndex!==e){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this.createChangeEvent(e)),Promise.resolve().then((function(){t.tabs.forEach((function(t,n){return t.isActive=n===e})),n||t.selectedIndexChange.emit(e)}))}this.tabs.forEach((function(n,i){n.position=i-e,null==t._selectedIndex||0!==n.position||n.origin||(n.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this.changeDetectorRef.markForCheck())},e.prototype.ngAfterContentInit=function(){var t=this;this.subscribeToTabLabels(),this.tabsSubscription=this.tabs.changes.subscribe((function(){if(t.clampTabIndex(t.indexToSelect)===t._selectedIndex)for(var e=t.tabs.toArray(),n=0;n<e.length;n++)if(e[n].isActive){t.indexToSelect=t._selectedIndex=n;break}t.subscribeToTabLabels(),t.changeDetectorRef.markForCheck()}))},e.prototype.ngOnDestroy=function(){this.tabsSubscription.unsubscribe(),this.tabLabelSubscription.unsubscribe()},e.prototype.focusChanged=function(t){this.focusChange.emit(this.createChangeEvent(t))},e.prototype.getTabLabelId=function(t){return"mc-tab-label-"+this.groupId+"-"+t},e.prototype.getTabContentId=function(t){return"mc-tab-content-"+this.groupId+"-"+t},e.prototype.setTabBodyWrapperHeight=function(t){if(this._dynamicHeight&&this.tabBodyWrapperHeight){var e=this.tabBodyWrapper.nativeElement;e.style.height=this.tabBodyWrapperHeight+"px",this.tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}},e.prototype.removeTabBodyWrapperHeight=function(){this.tabBodyWrapperHeight=this.tabBodyWrapper.nativeElement.clientHeight,this.tabBodyWrapper.nativeElement.style.height="",this.animationDone.emit()},e.prototype.handleClick=function(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)},e.prototype.getTabIndex=function(t,e){return t.disabled?null:this.selectedIndex===e?0:-1},e.prototype.createChangeEvent=function(t){var e=new A;return e.index=t,this.tabs&&this.tabs.length&&(e.tab=this.tabs.toArray()[t]),e},e.prototype.subscribeToTabLabels=function(){var t=this;this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=l.merge.apply(void 0,function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(x(arguments[e]));return t}(this.tabs.map((function(t){return t.stateChanges})))).subscribe((function(){return t.changeDetectorRef.markForCheck()}))},e.prototype.clampTabIndex=function(t){return Math.min(this.tabs.length-1,Math.max(t||0,0))},e}(F);H.decorators=[{type:a.Component,args:[{selector:"mc-tab-group",exportAs:"mcTabGroup",template:'<mc-tab-header\n #tabHeader\n [vertical]="vertical"\n [selectedIndex]="selectedIndex"\n (indexFocused)="focusChanged($event)"\n (selectFocusedIndex)="selectedIndex = $event">\n\n <div class="mc-tab-label"\n mcTabLabelWrapper\n cdkMonitorElementFocus\n [attr.tabindex]="getTabIndex(tab, i)"\n [class.mc-tab-label_old]="oldTab"\n [class.mc-tab-label_horizontal]="!vertical && !oldTab"\n [class.mc-tab-label_vertical]="vertical && !oldTab"\n [class.mc-tab-label_empty]="tab.empty"\n [class.mc-active]="selectedIndex == i"\n *ngFor="let tab of tabs; let i = index"\n [id]="getTabLabelId(i)"\n [disabled]="tab.disabled"\n (click)="handleClick(tab, tabHeader, i)"\n\n [mcTooltip]="tab.tooltipTitle"\n [mcTooltipDisabled]="!tab.empty"\n [mcTrigger]="\'hover, focus\'"\n [mcPlacement]="tab.tooltipPlacement">\n\n <div class="mc-tab-label__content"\n [class.mc-tab-label__template]="tab.templateLabel">\n \x3c!-- If there is a label template, use it. --\x3e\n <ng-template [ngIf]="tab.templateLabel">\n <ng-template [cdkPortalOutlet]="tab.templateLabel"></ng-template>\n </ng-template>\n\n \x3c!-- If there is not a label template, fall back to the text label. --\x3e\n <ng-template [ngIf]="!tab.templateLabel">{{ tab.textLabel }}</ng-template>\n </div>\n\n <div class="mc-tab-overlay"></div>\n </div>\n</mc-tab-header>\n\n<div class="mc-tab-body__wrapper" #tabBodyWrapper>\n <mc-tab-body\n *ngFor="let tab of tabs; let i = index"\n [id]="getTabContentId(i)"\n [class.mc-tab-body__active]="selectedIndex == i"\n [content]="tab.content"\n [position]="tab.position"\n [origin]="tab.origin"\n [animationDuration]="animationDuration"\n (onCentered)="removeTabBodyWrapperHeight()"\n (onCentering)="setTabBodyWrapperHeight($event)">\n </mc-tab-body>\n</div>\n',encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mc-tab-group","[class.mc-tab-group_dynamic-height]":"dynamicHeight","[class.mc-tab-group_inverted-header]":'headerPosition === "below"'},styles:[".mc-tab-group{display:flex;flex-direction:column;box-sizing:border-box;text-align:center;white-space:nowrap}.mc-tab-group.mc-tab-group_inverted-header{flex-direction:column-reverse}.mc-tab-group_vertical{flex-direction:row}.mc-tab-group_vertical .mc-tab-header__content{overflow-y:auto;padding-top:8px;padding-bottom:1px;border-right-width:var(--mc-tabs-size-border-width,1px);border-right-style:solid}.mc-tab-body__wrapper{display:flex;overflow:hidden;position:relative}.mc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mc-tab-body.mc-tab-body__active{overflow-x:hidden;overflow-y:auto;position:relative;z-index:1;flex-grow:1}.mc-tab-group.mc-tab-group_dynamic-height .mc-tab-body.mc-tab-body__active{overflow-y:hidden}"]}]}],H.ctorParameters=function(){return[{type:a.ElementRef},{type:a.ChangeDetectorRef},{type:String,decorators:[{type:a.Attribute,args:["mc-old-tabs"]}]},{type:String,decorators:[{type:a.Attribute,args:["vertical"]}]},{type:void 0,decorators:[{type:a.Inject,args:[W]},{type:a.Optional}]}]},H.propDecorators={tabs:[{type:a.ContentChildren,args:[S]}],tabBodyWrapper:[{type:a.ViewChild,args:["tabBodyWrapper",{static:!1}]}],tabHeader:[{type:a.ViewChild,args:["tabHeader",{static:!1}]}],dynamicHeight:[{type:a.Input}],selectedIndex:[{type:a.Input}],headerPosition:[{type:a.Input}],animationDuration:[{type:a.Input}],selectedIndexChange:[{type:a.Output}],focusChange:[{type:a.Output}],animationDone:[{type:a.Output}],selectedTabChange:[{type:a.Output}]};var B=h.normalizePassiveListenerOptions({passive:!0}),N=function(){function t(t,e,n,i,r,o,s){var c=this;this.elementRef=t,this.changeDetectorRef=e,this.viewportRuler=n,this.ngZone=i,this.platform=r,this.dir=o,this.animationMode=s,this._selectedIndex=0,this._scrollDistance=0,this.selectFocusedIndex=new a.EventEmitter,this.indexFocused=new a.EventEmitter,this.showPaginationControls=!1,this.disableScrollAfter=!0,this.disableScrollBefore=!0,this.disablePagination=!1,this.destroyed=new l.Subject,this.vertical=!1,this.stopScrolling=new l.Subject,this.selectedIndexChanged=!1,i.runOutsideAngular((function(){l.fromEvent(t.nativeElement,"mouseleave").pipe(d.takeUntil(c.destroyed)).subscribe((function(){return c.stopInterval()}))}))}return Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){var e,n=p.coerceNumberProperty(t);this.selectedIndexChanged=this._selectedIndex!==n,this._selectedIndex=n,null===(e=this.keyManager)||void 0===e||e.updateActiveItem(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusIndex",{get:function(){return this.keyManager?this.keyManager.activeItemIndex:0},set:function(t){this.isValidIndex(t)&&this.focusIndex!==t&&this.keyManager&&this.keyManager.setActiveItem(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(t){this._scrollDistance=Math.max(0,Math.min(this.getMaxScrollDistance(),t)),this.scrollDistanceChanged=!0,this.checkScrollingControls()},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;l.fromEvent(this.previousPaginator.nativeElement,"touchstart",B).pipe(d.takeUntil(this.destroyed)).subscribe((function(){return t.handlePaginatorPress("before")})),l.fromEvent(this.nextPaginator.nativeElement,"touchstart",B).pipe(d.takeUntil(this.destroyed)).subscribe((function(){return t.handlePaginatorPress("after")}))},t.prototype.ngAfterContentInit=function(){var t=this,n=this.dir?this.dir.change:l.of("ltr"),i=this.viewportRuler.change(150),a=function(){t.updatePagination()};this.keyManager=new e.FocusKeyManager(this.items).withHorizontalOrientation(this.getLayoutDirection()),this.keyManager.updateActiveItem(this._selectedIndex),void 0!==typeof requestAnimationFrame?requestAnimationFrame(a):a(),l.merge(n,i,this.items.changes).pipe(d.takeUntil(this.destroyed)).subscribe((function(){t.ngZone.run((function(){return Promise.resolve().then(a)})),t.keyManager.withHorizontalOrientation(t.getLayoutDirection())})),this.keyManager.change.pipe(d.takeUntil(this.destroyed)).subscribe((function(e){t.indexFocused.emit(e),t.setTabFocus(e)}))},t.prototype.ngAfterContentChecked=function(){this.tabLabelCount!==this.items.length&&(this.updatePagination(),this.tabLabelCount=this.items.length,this.changeDetectorRef.markForCheck()),this.selectedIndexChanged&&(this.scrollToLabel(this._selectedIndex),this.checkScrollingControls(),this.selectedIndexChanged=!1,this.changeDetectorRef.markForCheck()),this.scrollDistanceChanged&&(this.updateTabScrollPosition(),this.scrollDistanceChanged=!1,this.changeDetectorRef.markForCheck())},t.prototype.ngOnDestroy=function(){this.destroyed.next(),this.destroyed.complete(),this.stopScrolling.complete()},t.prototype.handleKeydown=function(t){if(!g.hasModifierKey(t)){var e=t.keyCode;e===f.HOME?this.keyManager.setFirstItemActive():e===f.END?this.keyManager.setLastItemActive():e===f.UP_ARROW&&this.vertical?this.keyManager.setPreviousItemActive():e===f.DOWN_ARROW&&this.vertical?this.keyManager.setNextItemActive():e!==f.RIGHT_ARROW||this.vertical?e!==f.LEFT_ARROW||this.vertical?[g.ENTER,g.SPACE].includes(e)&&this.selectFocusedIndex.emit(this.focusIndex):this.keyManager.setPreviousItemActive():this.keyManager.setNextItemActive(),[f.HOME,f.END,f.UP_ARROW,f.DOWN_ARROW,f.RIGHT_ARROW,f.LEFT_ARROW,g.SPACE,g.ENTER].includes(e)&&t.preventDefault()}},t.prototype.onContentChanges=function(){var t=this,e=this.elementRef.nativeElement.textContent;e!==this.currentTextContent&&(this.currentTextContent=e||"",this.ngZone.run((function(){t.updatePagination(),t.changeDetectorRef.markForCheck()})))},t.prototype.updatePagination=function(){this.checkPaginationEnabled(),this.checkScrollingControls(),this.updateTabScrollPosition()},t.prototype.isValidIndex=function(t){if(!this.items)return!0;var e=this.items?this.items.toArray()[t]:null;return!!e&&!e.disabled},t.prototype.setTabFocus=function(t){var e;if(this.showPaginationControls&&this.scrollToLabel(t),null===(e=this.items)||void 0===e?void 0:e.length){this.items.toArray()[t].focus();var n=this.tabListContainer.nativeElement,i=this.getLayoutDirection();n.scrollLeft="ltr"===i?0:n.scrollWidth-n.offsetWidth}},t.prototype.getLayoutDirection=function(){var t;return"rtl"===(null===(t=this.dir)||void 0===t?void 0:t.value)?"rtl":"ltr"},t.prototype.updateTabScrollPosition=function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this.getLayoutDirection()?-t:t;this.tabList.nativeElement.style.transform="translateX("+Math.round(e)+"px)",(this.platform.TRIDENT||this.platform.EDGE)&&(this.tabListContainer.nativeElement.scrollLeft=0)}},t.prototype.scrollHeader=function(t){var e=("before"===t?-1:1)*this.tabListContainer.nativeElement.offsetWidth*.8;return this.scrollTo(this.scrollDistance+e)},t.prototype.handlePaginatorClick=function(t){this.stopInterval(),this.scrollHeader(t)},t.prototype.scrollToLabel=function(t){if(!this.disablePagination){var e=this.items?this.items.toArray()[t]:null;if(e){var n,i,a=this.tabListContainer.nativeElement.offsetWidth,r=e.elementRef.nativeElement,o=r.offsetLeft,s=r.offsetWidth;"ltr"===this.getLayoutDirection()?i=(n=o)+s:n=(i=this.tabList.nativeElement.offsetWidth-o)-s;var c=this.scrollDistance,l=this.scrollDistance+a;n<c?this.scrollDistance-=c-n+60:i>l&&(this.scrollDistance+=i-l+60)}}},t.prototype.checkPaginationEnabled=function(){if(this.disablePagination)this.showPaginationControls=!1;else{var t=this.tabList.nativeElement.scrollWidth>this.elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this.showPaginationControls&&this.changeDetectorRef.markForCheck(),this.showPaginationControls=t}},t.prototype.checkScrollingControls=function(){this.disablePagination?this.disableScrollAfter=this.disableScrollBefore=!0:(this.disableScrollBefore=0===this.scrollDistance,this.disableScrollAfter=this.scrollDistance===this.getMaxScrollDistance(),this.changeDetectorRef.markForCheck())},t.prototype.getMaxScrollDistance=function(){return this.tabList.nativeElement.scrollWidth-this.tabListContainer.nativeElement.offsetWidth||0},t.prototype.stopInterval=function(){this.stopScrolling.next()},t.prototype.handlePaginatorPress=function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this.stopInterval(),l.timer(650,100).pipe(d.takeUntil(l.merge(this.stopScrolling,this.destroyed))).subscribe((function(){var e=n.scrollHeader(t),i=e.maxScrollDistance,a=e.distance;(0===a||a>=i)&&n.stopInterval()})))},t.prototype.scrollTo=function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this.getMaxScrollDistance();return this.scrollDistance=Math.max(0,Math.min(e,t)),this.scrollDistanceChanged=!0,this.checkScrollingControls(),{maxScrollDistance:e,distance:this.scrollDistance}},t}();N.decorators=[{type:a.Directive}],N.ctorParameters=function(){return[{type:a.ElementRef},{type:a.ChangeDetectorRef},{type:u.ViewportRuler},{type:a.NgZone},{type:h.Platform},{type:c.Directionality,decorators:[{type:a.Optional}]},{type:String,decorators:[{type:a.Optional},{type:a.Inject,args:[m.ANIMATION_MODULE_TYPE]}]}]},N.propDecorators={disablePagination:[{type:a.Input}]};var V=function(){},q=r.mixinDisabled(V),U=function(t){function e(e,n){var i=t.call(this)||this;return i.elementRef=e,i.renderer=n,i}return v(e,t),e.prototype.ngAfterViewInit=function(){this.addClassModifierForIcons(Array.from(this.elementRef.nativeElement.querySelectorAll(".mc-icon")))},e.prototype.focus=function(){this.elementRef.nativeElement.focus()},e.prototype.getOffsetLeft=function(){return this.elementRef.nativeElement.offsetLeft},e.prototype.getOffsetWidth=function(){return this.elementRef.nativeElement.offsetWidth},e.prototype.addClassModifierForIcons=function(t){var e=x(t,2),n=e[0],i=e[1];if(1===t.length){n.nextSibling&&8!==n.nextSibling.nodeType&&this.renderer.addClass(n,"mc-icon_left"),n.previousSibling&&8!==n.previousSibling.nodeType&&this.renderer.addClass(n,"mc-icon_right")}else 2===t.length&&(this.renderer.addClass(n,"mc-icon_left"),this.renderer.addClass(i,"mc-icon_right"))},e}(q);U.decorators=[{type:a.Directive,args:[{selector:"[mcTabLabelWrapper]",inputs:["disabled"],host:{"[attr.disabled]":"disabled || null"}}]}],U.ctorParameters=function(){return[{type:a.ElementRef},{type:a.Renderer2}]};var G=function(t){function e(e,n,i,a,r,o,s){var c=t.call(this,e,n,i,a,r,o,s)||this;return c.elementRef=e,c.changeDetectorRef=n,c.vertical=!1,c}return v(e,t),e.prototype.itemSelected=function(t){t.preventDefault()},e}(N);G.decorators=[{type:a.Component,args:[{selector:"mc-tab-header",template:'<div class="mc-tab-header__pagination mc-tab-header__pagination_before mc-elevation-z4"\n #previousPaginator\n [class.mc-disabled]="disableScrollBefore"\n (click)="handlePaginatorClick(\'before\')"\n (mousedown)="handlePaginatorPress(\'before\', $event)"\n (touchend)="stopInterval()">\n\n <i mc-icon="mc-angle-left-M_16"></i>\n</div>\n\n<div class="mc-tab-header__content"\n #tabListContainer\n (keydown)="handleKeydown($event)">\n\n <div class="mc-tab-list"\n #tabList\n (cdkObserveContent)="onContentChanges()">\n <div class="mc-tab-list__content">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<div class="mc-tab-header__pagination mc-tab-header__pagination_after mc-elevation-z4"\n #nextPaginator\n [class.mc-disabled]="disableScrollAfter"\n (mousedown)="handlePaginatorPress(\'after\', $event)"\n (click)="handlePaginatorClick(\'after\')"\n (touchend)="stopInterval()">\n\n <i mc-icon="mc-angle-right-M_16"></i>\n</div>\n',inputs:["selectedIndex"],outputs:["selectFocusedIndex","indexFocused"],encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.Default,host:{class:"mc-tab-header","[class.mc-tab-header_vertical]":"vertical","[class.mc-tab-header__pagination-controls_enabled]":"showPaginationControls","[class.mc-tab-header_rtl]":"getLayoutDirection() == 'rtl'"},styles:['.mc-tab-label.cdk-keyboard-focused:after{display:block;content:"";position:absolute;top:0;right:calc(-1 * var(--mc-tabs-size-border-width, 1px));bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:calc(-1 * var(--mc-tabs-size-border-width, 1px))}.mc-tab-label_horizontal.cdk-keyboard-focused:after,.mc-tab-label_old.cdk-keyboard-focused:after{border-style:solid;border-top-left-radius:var(--mc-tabs-size-border-radius,3px);border-top-right-radius:var(--mc-tabs-size-border-radius,3px);border-bottom:solid transparent;border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2)}.mc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mc-tab-list__content{display:flex}.mc-tab-group_align-labels-center .mc-tab-list__content{justify-content:center}.mc-tab-group_align-labels-end .mc-tab-list__content{justify-content:flex-end}.mc-tab-header_vertical .mc-tab-list__content{flex-direction:column}.mc-tab-header__pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;padding-left:12px;padding-right:12px;border-bottom-style:solid;border-bottom-width:var(--mc-tabs-size-border-width,1px)}.mc-tab-header__pagination.mc-tab-header__pagination_before{border-right-style:solid;border-right-width:var(--mc-tabs-size-border-width,1px)}.mc-tab-header__pagination.mc-tab-header__pagination_after{border-left-style:solid;border-left-width:var(--mc-tabs-size-border-width,1px)}.mc-tab-header__pagination-controls_enabled .mc-tab-header__pagination{display:flex}.mc-tab-header__content{display:flex;flex-grow:1;z-index:1;overflow:hidden}.mc-tab-list{flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mc-tab-label{position:relative;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;height:var(--mc-tabs-size-height,40px);text-align:center;white-space:nowrap;cursor:pointer;padding-right:var(--mc-tabs-size-padding-horizontal,16px);padding-left:var(--mc-tabs-size-padding-horizontal,16px);outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mc-tab-label .mc-tab-overlay{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.mc-tab-label.mc-active{cursor:default}.mc-tab-label.mc-active:before{display:block;content:"";position:absolute}.mc-tab-label.mc-active[disabled] .mc-tab-overlay{bottom:-1px}.mc-tab-label.cdk-keyboard-focused{z-index:1}.mc-tab-label:first-child.cdk-keyboard-focused:after{left:0}.mc-tab-label:last-child.cdk-keyboard-focused:after{right:0}.mc-tab-label[disabled]{pointer-events:none}.mc-tab-label .mc-tab-label__template{display:flex;flex-direction:row;align-items:baseline}.mc-tab-label .mc-tab-label__template>.mc-icon.mc-icon_left{margin-right:var(--mc-tabs-size-label-icon-margin,8px)}.mc-tab-label .mc-tab-label__template>.mc-icon.mc-icon_right{margin-left:var(--mc-tabs-size-label-icon-margin,8px)}.mc-tab-label_old{border-bottom-width:var(--mc-tabs-size-border-width,1px);border-top-width:var(--mc-tabs-size-border-width,1px);border-bottom-style:solid;border-top-style:solid;border-top-left-radius:var(--mc-tabs-size-border-radius,3px);border-top-right-radius:var(--mc-tabs-size-border-radius,3px);border-left:transparent;border-right:transparent}.mc-tab-label_old.mc-active{border-width:var(--mc-tabs-size-border-width,1px);border-style:solid;padding-right:calc(var(--mc-tabs-size-padding-horizontal, 16px) - var(--mc-tabs-size-border-width, 1px));padding-left:calc(var(--mc-tabs-size-padding-horizontal, 16px) - var(--mc-tabs-size-border-width, 1px))}.mc-tab-label_old.mc-active.cdk-keyboard-focused:after{right:calc(-2 * var(--mc-tabs-size-border-width, 1px));left:calc(-2 * var(--mc-tabs-size-border-width, 1px))}.mc-tab-label_old.cdk-keyboard-focused:after{top:-1px}.mc-tab-label_old .mc-tab-overlay{top:-1px;border-top-left-radius:var(--mc-tabs-size-border-radius,3px);border-top-right-radius:var(--mc-tabs-size-border-radius,3px)}.mc-tab-label_horizontal{border-bottom-width:var(--mc-tabs-size-border-width,1px);border-bottom-style:solid}.mc-tab-label_horizontal.mc-active:before{bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:0;right:0;height:var(--mc-tabs-size-highlight-height,4px)}.mc-tab-label_vertical{justify-content:flex-start}.mc-tab-label_vertical.mc-active:before{top:0;bottom:0;left:calc(-1 * var(--mc-tabs-size-border-width, 1px));width:var(--mc-tabs-size-highlight-height,5px)}.mc-tab-label_vertical.cdk-keyboard-focused:after{right:0;left:0;border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2);border-style:solid}.mc-tab-group_stretch-labels .mc-tab-label,.mc-tab-group_stretch-labels .mc-tab-label_old{flex-basis:0;flex-grow:1}']}]}],G.ctorParameters=function(){return[{type:a.ElementRef},{type:a.ChangeDetectorRef},{type:u.ViewportRuler},{type:a.NgZone},{type:h.Platform},{type:c.Directionality,decorators:[{type:a.Optional}]},{type:String,decorators:[{type:a.Optional},{type:a.Inject,args:[m.ANIMATION_MODULE_TYPE]}]}]},G.propDecorators={vertical:[{type:a.Input}],items:[{type:a.ContentChildren,args:[U,{descendants:!1}]}],tabListContainer:[{type:a.ViewChild,args:["tabListContainer",{static:!0}]}],tabList:[{type:a.ViewChild,args:["tabList",{static:!0}]}],nextPaginator:[{type:a.ViewChild,args:["nextPaginator"]}],previousPaginator:[{type:a.ViewChild,args:["previousPaginator"]}]};var $=function(){},Y=r.mixinTabIndex(r.mixinDisabled($)),Z=function(t){function e(e,n,i){var a=t.call(this)||this;return a.elementRef=e,a.focusMonitor=n,a.renderer=i,a.vertical=!1,a.isActive=!1,a.focusMonitor.monitor(a.elementRef.nativeElement),a}return v(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return this.isActive},set:function(t){t!==this.isActive&&(this.isActive=t)},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.addClassModifierForIcons(Array.from(this.elementRef.nativeElement.querySelectorAll(".mc-icon")))},e.prototype.ngOnDestroy=function(){this.focusMonitor.stopMonitoring(this.elementRef.nativeElement)},e.prototype.addClassModifierForIcons=function(t){var e=x(t,2),n=e[0],i=e[1];if(1===t.length){n.nextSibling&&8!==n.nextSibling.nodeType&&this.renderer.addClass(n,"mc-icon_left"),n.previousSibling&&8!==n.previousSibling.nodeType&&this.renderer.addClass(n,"mc-icon_right")}else 2===t.length&&(this.renderer.addClass(n,"mc-icon_left"),this.renderer.addClass(i,"mc-icon_right"))},e}(Y);Z.decorators=[{type:a.Component,args:[{selector:"a[mc-tab-link], a[mcTabLink]",exportAs:"mcTabLink",template:'<ng-content></ng-content><div class="mc-tab-overlay"></div>',inputs:["disabled","tabIndex"],host:{class:"mc-tab-link","[class.mc-active]":"active","[class.mc-tab-label_vertical]":"vertical","[class.mc-tab-label_horizontal]":"!vertical","[attr.tabindex]":"tabIndex","[attr.disabled]":"disabled || null"}}]}],Z.ctorParameters=function(){return[{type:a.ElementRef},{type:e.FocusMonitor},{type:a.Renderer2}]},Z.propDecorators={active:[{type:a.Input}]};var K=function(){function t(t){this.vertical=!1,this.vertical=p.coerceBooleanProperty(t)}return t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.pipe(d.delay(0)).subscribe((function(e){return e.forEach((function(e){return e.vertical=t.vertical}))})),this.links.notifyOnChanges()},t}();K.decorators=[{type:a.Component,args:[{selector:"[mc-tab-nav-bar]",exportAs:"mcTabNavBar, mcTabNav",template:"<ng-content></ng-content>",host:{class:"mc-tab-nav-bar"},encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.OnPush,styles:['.mc-tab-link.cdk-keyboard-focused:after{display:block;content:"";position:absolute;top:0;right:calc(-1 * var(--mc-tabs-size-border-width, 1px));bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:calc(-1 * var(--mc-tabs-size-border-width, 1px))}.mc-tab-link{vertical-align:top;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;height:var(--mc-tabs-size-height,40px);text-align:center;white-space:nowrap;cursor:pointer;padding-right:var(--mc-tabs-size-padding-horizontal,16px);padding-left:var(--mc-tabs-size-padding-horizontal,16px);outline:none}.mc-tab-link .mc-tab-overlay{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.mc-tab-link.mc-active{cursor:default}.mc-tab-link.mc-active:before{display:block;content:"";position:absolute}.mc-tab-link.mc-active[disabled] .mc-tab-overlay{bottom:-1px}.mc-tab-link.cdk-keyboard-focused{z-index:1}.mc-tab-link:first-child.cdk-keyboard-focused:after{left:0}.mc-tab-link:last-child.cdk-keyboard-focused:after{right:0}.mc-tab-link[disabled]{pointer-events:none}.mc-tab-link .mc-tab-label__template{display:flex;flex-direction:row;align-items:baseline}.mc-tab-link .mc-tab-label__template>.mc-icon.mc-icon_left{margin-right:var(--mc-tabs-size-label-icon-margin,8px)}.mc-tab-link .mc-tab-label__template>.mc-icon.mc-icon_right{margin-left:var(--mc-tabs-size-label-icon-margin,8px)}.mc-tab-link .mc-tab-group_stretch-labels .mc-tab-link{flex-basis:0;flex-grow:1}.mc-tab-link>.mc-icon.mc-icon_left{margin-right:var(--mc-tabs-size-label-icon-margin,8px)}.mc-tab-link>.mc-icon.mc-icon_right{margin-left:var(--mc-tabs-size-label-icon-margin,8px)}.mc-tab-nav-bar{display:flex;flex-grow:1;position:relative;padding:1px 1px 0}.mc-tab-nav-bar .mc-tab-group_align-labels-center{justify-content:center}.mc-tab-nav-bar .mc-tab-group_align-labels-end{justify-content:flex-end}.mc-tab-nav-bar.mc-tab-group_vertical{flex-direction:column;flex-grow:0}']}]}],K.ctorParameters=function(){return[{type:String,decorators:[{type:a.Attribute,args:["vertical"]}]}]},K.propDecorators={links:[{type:a.ContentChildren,args:[Z]}]};var X=function(){};X.decorators=[{type:a.NgModule,args:[{imports:[i.CommonModule,n.PortalModule,e.A11yModule,r.McCommonModule,o.McIconModule,s.McToolTipModule],exports:[r.McCommonModule,H,P,S,K,Z,I,E,M,O,L,R],declarations:[H,P,S,U,K,Z,C,k,G,I,E,M,O,L,R]}]}],t.MC_TABS_CONFIG=W,t.McAlignTabsCenterCssStyler=M,t.McAlignTabsEndCssStyler=O,t.McOldTabsCssStyler=E,t.McStretchTabsCssStyler=L,t.McTab=S,t.McTabBody=C,t.McTabBodyPortal=k,t.McTabChangeEvent=A,t.McTabContent=I,t.McTabGroup=H,t.McTabGroupBase=j,t.McTabGroupMixinBase=F,t.McTabHeader=G,t.McTabLabel=P,t.McTabLabelWrapper=U,t.McTabLink=Z,t.McTabNav=K,t.McTabsModule=X,t.McVerticalTabsCssStyler=R,t.mcTabsAnimations=_,t.ɵa=V,t.ɵb=q,t.ɵc=w,t.ɵd=D,t.ɵe=T,t.ɵf=$,t.ɵg=Y,t.ɵh=N,Object.defineProperty(t,"__esModule",{value:!0})}));
16
- //# sourceMappingURL=ptsecurity-mosaic-tabs.umd.min.js.map