@koobiq/components 17.0.0-rc.10 → 17.0.0-rc.11

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 (495) hide show
  1. package/alert/public-api.d.ts +1 -1
  2. package/autocomplete/public-api.d.ts +2 -2
  3. package/badge/public-api.d.ts +1 -1
  4. package/button/button.component.d.ts +2 -2
  5. package/button/public-api.d.ts +1 -1
  6. package/button-toggle/public-api.d.ts +1 -1
  7. package/card/card.component.d.ts +1 -1
  8. package/card/public-api.d.ts +1 -1
  9. package/code-block/code-block.component.d.ts +2 -2
  10. package/code-block/public-api.d.ts +1 -1
  11. package/core/animation/index.d.ts +1 -1
  12. package/core/common-behaviors/index.d.ts +3 -3
  13. package/core/datetime/index.d.ts +1 -1
  14. package/core/formatters/index.d.ts +1 -1
  15. package/core/forms/index.d.ts +1 -1
  16. package/core/locales/index.d.ts +1 -1
  17. package/core/option/index.d.ts +2 -2
  18. package/core/option/optgroup.scss +2 -2
  19. package/core/pop-up/pop-up-trigger.d.ts +1 -1
  20. package/core/public-api.d.ts +3 -3
  21. package/core/select/constants.d.ts +1 -1
  22. package/core/select/index.d.ts +3 -3
  23. package/core/styles/common/_list.scss +23 -62
  24. package/core/styles/theming/_components-theming.scss +331 -331
  25. package/core/styles/theming/_theming.scss +3 -3
  26. package/core/styles/typography/_typography.scss +7 -7
  27. package/core/styles/visual/_layout.scss +1 -1
  28. package/core/utils/data-size/index.d.ts +1 -1
  29. package/core/utils/public-api.d.ts +1 -1
  30. package/datepicker/datepicker-input.directive.d.ts +1 -0
  31. package/datepicker/public-api.d.ts +4 -4
  32. package/dl/public-api.d.ts +1 -1
  33. package/dropdown/_dropdown-theme.scss +4 -1
  34. package/dropdown/dropdown-content.directive.d.ts +1 -1
  35. package/dropdown/dropdown-item.component.d.ts +1 -1
  36. package/dropdown/dropdown-item.scss +9 -6
  37. package/dropdown/dropdown.component.d.ts +1 -1
  38. package/dropdown/public-api.d.ts +5 -5
  39. package/ellipsis-center/ellipsis-center.directive.d.ts +1 -1
  40. package/empty-state/public-api.d.ts +1 -1
  41. package/esm2022/alert/alert.component.mjs +3 -3
  42. package/esm2022/alert/alert.module.mjs +1 -1
  43. package/esm2022/alert/public-api.mjs +2 -2
  44. package/esm2022/autocomplete/autocomplete-origin.directive.mjs +1 -1
  45. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +23 -31
  46. package/esm2022/autocomplete/autocomplete.component.mjs +14 -9
  47. package/esm2022/autocomplete/autocomplete.module.mjs +3 -3
  48. package/esm2022/autocomplete/public-api.mjs +3 -3
  49. package/esm2022/badge/badge.component.mjs +6 -4
  50. package/esm2022/badge/badge.module.mjs +1 -1
  51. package/esm2022/badge/public-api.mjs +2 -2
  52. package/esm2022/button/button.component.mjs +12 -9
  53. package/esm2022/button/button.module.mjs +1 -1
  54. package/esm2022/button/public-api.mjs +2 -2
  55. package/esm2022/button-toggle/button-toggle.component.mjs +22 -14
  56. package/esm2022/button-toggle/button-toggle.module.mjs +1 -1
  57. package/esm2022/button-toggle/public-api.mjs +2 -2
  58. package/esm2022/card/card.component.mjs +2 -2
  59. package/esm2022/card/card.module.mjs +1 -1
  60. package/esm2022/card/public-api.mjs +2 -2
  61. package/esm2022/checkbox/checkbox-config.mjs +1 -1
  62. package/esm2022/checkbox/checkbox-module.mjs +1 -1
  63. package/esm2022/checkbox/checkbox-required-validator.mjs +1 -1
  64. package/esm2022/checkbox/checkbox.mjs +6 -6
  65. package/esm2022/checkbox/public-api.mjs +1 -1
  66. package/esm2022/code-block/actionbar.component.mjs +4 -6
  67. package/esm2022/code-block/code-block.component.mjs +16 -13
  68. package/esm2022/code-block/code-block.module.mjs +9 -5
  69. package/esm2022/code-block/public-api.mjs +2 -2
  70. package/esm2022/core/animation/fade-animations.mjs +1 -1
  71. package/esm2022/core/animation/index.mjs +2 -2
  72. package/esm2022/core/animation/select-animations.mjs +2 -2
  73. package/esm2022/core/common-behaviors/color.mjs +4 -2
  74. package/esm2022/core/common-behaviors/common-module.mjs +2 -2
  75. package/esm2022/core/common-behaviors/constructor.mjs +1 -1
  76. package/esm2022/core/common-behaviors/disabled.mjs +1 -1
  77. package/esm2022/core/common-behaviors/error-state.mjs +1 -1
  78. package/esm2022/core/common-behaviors/index.mjs +4 -4
  79. package/esm2022/core/common-behaviors/tabindex.mjs +1 -1
  80. package/esm2022/core/datetime/date-adapter.mjs +1 -1
  81. package/esm2022/core/datetime/date-formats.mjs +1 -1
  82. package/esm2022/core/datetime/index.mjs +2 -2
  83. package/esm2022/core/error/error-options.mjs +1 -1
  84. package/esm2022/core/form-field/form-field-ref.mjs +1 -1
  85. package/esm2022/core/formatters/date/formatter.mjs +1 -1
  86. package/esm2022/core/formatters/date/formatter.pipe.mjs +1 -1
  87. package/esm2022/core/formatters/index.mjs +2 -2
  88. package/esm2022/core/formatters/number/formatter.mjs +19 -20
  89. package/esm2022/core/forms/forms-module.mjs +1 -1
  90. package/esm2022/core/forms/forms.directive.mjs +1 -1
  91. package/esm2022/core/forms/index.mjs +2 -2
  92. package/esm2022/core/highlight/highlight.pipe.mjs +1 -1
  93. package/esm2022/core/highlight/index.mjs +1 -1
  94. package/esm2022/core/label/label-options.mjs +1 -1
  95. package/esm2022/core/line/line.mjs +2 -2
  96. package/esm2022/core/locales/en-US.mjs +1 -1
  97. package/esm2022/core/locales/es-LA.mjs +1 -1
  98. package/esm2022/core/locales/fa-IR.mjs +1 -1
  99. package/esm2022/core/locales/index.mjs +2 -2
  100. package/esm2022/core/locales/locale-service.mjs +8 -5
  101. package/esm2022/core/locales/locale-service.module.mjs +1 -1
  102. package/esm2022/core/locales/pt-BR.mjs +1 -1
  103. package/esm2022/core/locales/ru-RU.mjs +3 -3
  104. package/esm2022/core/locales/zh-CN.mjs +1 -1
  105. package/esm2022/core/option/action.mjs +20 -12
  106. package/esm2022/core/option/index.mjs +3 -3
  107. package/esm2022/core/option/optgroup.mjs +4 -4
  108. package/esm2022/core/option/option-module.mjs +1 -1
  109. package/esm2022/core/option/option.mjs +13 -7
  110. package/esm2022/core/overlay/overlay-position-map.mjs +1 -1
  111. package/esm2022/core/pop-up/pop-up-trigger.mjs +15 -23
  112. package/esm2022/core/pop-up/pop-up.mjs +1 -1
  113. package/esm2022/core/public-api.mjs +4 -4
  114. package/esm2022/core/select/common.mjs +2 -2
  115. package/esm2022/core/select/constants.mjs +1 -1
  116. package/esm2022/core/select/index.mjs +4 -4
  117. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  118. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +1 -1
  119. package/esm2022/core/services/measure-scrollbar.service.mjs +1 -1
  120. package/esm2022/core/services/theme.service.mjs +2 -4
  121. package/esm2022/core/title/title-text-ref.mjs +1 -1
  122. package/esm2022/core/utils/data-size/config.mjs +1 -1
  123. package/esm2022/core/utils/data-size/data-size.pipe.mjs +2 -3
  124. package/esm2022/core/utils/data-size/index.mjs +2 -2
  125. package/esm2022/core/utils/data-size/size.mjs +3 -6
  126. package/esm2022/core/utils/public-api.mjs +2 -2
  127. package/esm2022/core/utils/utils.mjs +4 -2
  128. package/esm2022/core/validation/validation.mjs +4 -2
  129. package/esm2022/core/version.mjs +2 -2
  130. package/esm2022/datepicker/calendar-body.component.mjs +3 -3
  131. package/esm2022/datepicker/calendar-header.component.mjs +8 -7
  132. package/esm2022/datepicker/calendar.component.mjs +6 -6
  133. package/esm2022/datepicker/datepicker-animations.mjs +1 -1
  134. package/esm2022/datepicker/datepicker-errors.mjs +1 -1
  135. package/esm2022/datepicker/datepicker-input.directive.mjs +42 -34
  136. package/esm2022/datepicker/datepicker-intl.mjs +1 -1
  137. package/esm2022/datepicker/datepicker-module.mjs +2 -2
  138. package/esm2022/datepicker/datepicker-toggle.component.mjs +11 -10
  139. package/esm2022/datepicker/datepicker.component.mjs +15 -15
  140. package/esm2022/datepicker/month-view.component.mjs +14 -13
  141. package/esm2022/datepicker/public-api.mjs +5 -5
  142. package/esm2022/divider/divider.component.mjs +1 -1
  143. package/esm2022/divider/divider.module.mjs +1 -1
  144. package/esm2022/dl/dl.component.mjs +1 -1
  145. package/esm2022/dl/dl.module.mjs +2 -2
  146. package/esm2022/dl/public-api.mjs +2 -2
  147. package/esm2022/dropdown/dropdown-animations.mjs +2 -2
  148. package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
  149. package/esm2022/dropdown/dropdown-item.component.mjs +5 -5
  150. package/esm2022/dropdown/dropdown-trigger.directive.mjs +22 -28
  151. package/esm2022/dropdown/dropdown.component.mjs +10 -18
  152. package/esm2022/dropdown/dropdown.module.mjs +1 -1
  153. package/esm2022/dropdown/dropdown.types.mjs +1 -1
  154. package/esm2022/dropdown/public-api.mjs +6 -6
  155. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +3 -3
  156. package/esm2022/empty-state/empty-state.component.mjs +1 -1
  157. package/esm2022/empty-state/empty-state.module.mjs +2 -2
  158. package/esm2022/empty-state/public-api.mjs +2 -2
  159. package/esm2022/file-upload/file-drop.mjs +2 -2
  160. package/esm2022/file-upload/file-upload.mjs +1 -1
  161. package/esm2022/file-upload/file-upload.module.mjs +2 -2
  162. package/esm2022/file-upload/index.mjs +1 -1
  163. package/esm2022/file-upload/multiple-file-upload.component.mjs +16 -12
  164. package/esm2022/file-upload/public-api.mjs +2 -2
  165. package/esm2022/file-upload/single-file-upload.component.mjs +14 -10
  166. package/esm2022/form-field/cleaner.mjs +13 -3
  167. package/esm2022/form-field/form-field-control.mjs +1 -1
  168. package/esm2022/form-field/form-field-errors.mjs +1 -1
  169. package/esm2022/form-field/form-field.mjs +8 -13
  170. package/esm2022/form-field/form-field.module.mjs +1 -1
  171. package/esm2022/form-field/hint.mjs +2 -2
  172. package/esm2022/form-field/password-hint.mjs +13 -13
  173. package/esm2022/form-field/password-toggle.mjs +4 -7
  174. package/esm2022/form-field/prefix.mjs +1 -1
  175. package/esm2022/form-field/public-api.mjs +4 -4
  176. package/esm2022/form-field/stepper.mjs +33 -29
  177. package/esm2022/form-field/suffix.mjs +1 -1
  178. package/esm2022/form-field/validate.directive.mjs +6 -5
  179. package/esm2022/icon/icon-button.component.mjs +2 -2
  180. package/esm2022/icon/icon-item.component.mjs +1 -1
  181. package/esm2022/icon/icon.component.mjs +3 -4
  182. package/esm2022/icon/icon.module.mjs +1 -1
  183. package/esm2022/icon/public-api.mjs +3 -3
  184. package/esm2022/input/input-number-validators.mjs +1 -1
  185. package/esm2022/input/input-number.mjs +34 -35
  186. package/esm2022/input/input-password.mjs +13 -7
  187. package/esm2022/input/input-value-accessor.mjs +1 -1
  188. package/esm2022/input/input.mjs +13 -7
  189. package/esm2022/input/input.module.mjs +1 -1
  190. package/esm2022/input/public-api.mjs +3 -3
  191. package/esm2022/link/link.component.mjs +2 -2
  192. package/esm2022/link/link.module.mjs +1 -1
  193. package/esm2022/link/public-api.mjs +2 -2
  194. package/esm2022/list/list-selection.component.mjs +34 -36
  195. package/esm2022/list/list.component.mjs +3 -3
  196. package/esm2022/list/list.module.mjs +2 -2
  197. package/esm2022/list/public-api.mjs +3 -3
  198. package/esm2022/loader-overlay/loader-overlay.component.mjs +3 -3
  199. package/esm2022/loader-overlay/loader-overlay.module.mjs +1 -1
  200. package/esm2022/loader-overlay/public-api.mjs +2 -2
  201. package/esm2022/markdown/markdown.component.mjs +20 -6
  202. package/esm2022/markdown/markdown.module.mjs +1 -1
  203. package/esm2022/markdown/markdown.service.mjs +1 -1
  204. package/esm2022/modal/css-unit.pipe.mjs +1 -1
  205. package/esm2022/modal/modal-control.service.mjs +3 -2
  206. package/esm2022/modal/modal-ref.class.mjs +1 -1
  207. package/esm2022/modal/modal-util.mjs +1 -1
  208. package/esm2022/modal/modal.component.mjs +50 -27
  209. package/esm2022/modal/modal.directive.mjs +27 -11
  210. package/esm2022/modal/modal.module.mjs +2 -2
  211. package/esm2022/modal/modal.service.mjs +3 -2
  212. package/esm2022/modal/modal.type.mjs +1 -1
  213. package/esm2022/modal/public-api.mjs +3 -3
  214. package/esm2022/navbar/index.mjs +1 -1
  215. package/esm2022/navbar/navbar-item.component.mjs +37 -28
  216. package/esm2022/navbar/navbar.component.mjs +19 -28
  217. package/esm2022/navbar/navbar.module.mjs +2 -2
  218. package/esm2022/navbar/public-api.mjs +3 -3
  219. package/esm2022/navbar/vertical-navbar.component.mjs +17 -18
  220. package/esm2022/popover/popover-animations.mjs +1 -1
  221. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  222. package/esm2022/popover/popover.component.mjs +5 -5
  223. package/esm2022/popover/popover.module.mjs +1 -1
  224. package/esm2022/popover/public-api.mjs +3 -3
  225. package/esm2022/progress-bar/progress-bar.component.mjs +4 -4
  226. package/esm2022/progress-bar/progress-bar.module.mjs +2 -2
  227. package/esm2022/progress-bar/public-api.mjs +2 -2
  228. package/esm2022/progress-spinner/progress-spinner.component.mjs +4 -4
  229. package/esm2022/progress-spinner/progress-spinner.module.mjs +1 -1
  230. package/esm2022/progress-spinner/public-api.mjs +2 -2
  231. package/esm2022/radio/public-api.mjs +2 -2
  232. package/esm2022/radio/radio.component.mjs +9 -10
  233. package/esm2022/radio/radio.module.mjs +1 -1
  234. package/esm2022/risk-level/public-api.mjs +2 -2
  235. package/esm2022/risk-level/risk-level.component.mjs +1 -1
  236. package/esm2022/risk-level/risk-level.module.mjs +1 -1
  237. package/esm2022/scrollbar/public-api.mjs +2 -2
  238. package/esm2022/scrollbar/scrollbar.component.mjs +13 -11
  239. package/esm2022/scrollbar/scrollbar.directive.mjs +3 -3
  240. package/esm2022/scrollbar/scrollbar.module.mjs +2 -2
  241. package/esm2022/scrollbar/scrollbar.types.mjs +3 -2
  242. package/esm2022/select/public-api.mjs +3 -3
  243. package/esm2022/select/select-option.directive.mjs +8 -5
  244. package/esm2022/select/select.component.mjs +41 -64
  245. package/esm2022/select/select.module.mjs +1 -1
  246. package/esm2022/sidebar/public-api.mjs +2 -2
  247. package/esm2022/sidebar/sidebar-animations.mjs +1 -1
  248. package/esm2022/sidebar/sidebar.component.mjs +3 -3
  249. package/esm2022/sidebar/sidebar.module.mjs +1 -1
  250. package/esm2022/sidepanel/public-api.mjs +4 -4
  251. package/esm2022/sidepanel/sidepanel-animations.mjs +7 -3
  252. package/esm2022/sidepanel/sidepanel-config.mjs +1 -1
  253. package/esm2022/sidepanel/sidepanel-container.component.mjs +4 -4
  254. package/esm2022/sidepanel/sidepanel-directives.mjs +30 -16
  255. package/esm2022/sidepanel/sidepanel-ref.mjs +10 -4
  256. package/esm2022/sidepanel/sidepanel.module.mjs +1 -1
  257. package/esm2022/sidepanel/sidepanel.service.mjs +11 -14
  258. package/esm2022/splitter/public-api.mjs +2 -2
  259. package/esm2022/splitter/splitter.component.mjs +13 -23
  260. package/esm2022/splitter/splitter.module.mjs +1 -1
  261. package/esm2022/table/public-api.mjs +2 -2
  262. package/esm2022/table/table.component.mjs +1 -1
  263. package/esm2022/table/table.module.mjs +1 -1
  264. package/esm2022/tabs/paginated-tab-header.mjs +8 -11
  265. package/esm2022/tabs/public-api.mjs +6 -6
  266. package/esm2022/tabs/tab-body.component.mjs +9 -9
  267. package/esm2022/tabs/tab-content.directive.mjs +1 -1
  268. package/esm2022/tabs/tab-group.component.mjs +11 -13
  269. package/esm2022/tabs/tab-header.component.mjs +4 -4
  270. package/esm2022/tabs/tab-label-wrapper.directive.mjs +1 -1
  271. package/esm2022/tabs/tab-label.directive.mjs +1 -1
  272. package/esm2022/tabs/tab-nav-bar/index.mjs +1 -1
  273. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  274. package/esm2022/tabs/tab.component.mjs +4 -6
  275. package/esm2022/tabs/tabs-animations.mjs +1 -1
  276. package/esm2022/tabs/tabs.module.mjs +2 -2
  277. package/esm2022/tags/public-api.mjs +5 -5
  278. package/esm2022/tags/tag-default-options.mjs +1 -1
  279. package/esm2022/tags/tag-input.mjs +12 -14
  280. package/esm2022/tags/tag-list.component.mjs +14 -20
  281. package/esm2022/tags/tag-text-control.mjs +1 -1
  282. package/esm2022/tags/tag.component.mjs +5 -7
  283. package/esm2022/tags/tag.module.mjs +9 -5
  284. package/esm2022/textarea/index.mjs +1 -1
  285. package/esm2022/textarea/textarea.component.mjs +4 -6
  286. package/esm2022/textarea/textarea.module.mjs +1 -1
  287. package/esm2022/timepicker/public-api.mjs +2 -2
  288. package/esm2022/timepicker/timepicker.constants.mjs +6 -1
  289. package/esm2022/timepicker/timepicker.directive.mjs +62 -26
  290. package/esm2022/timepicker/timepicker.module.mjs +1 -1
  291. package/esm2022/timezone/cities-by-filter.pipe.mjs +1 -1
  292. package/esm2022/timezone/timezone-option.component.mjs +12 -11
  293. package/esm2022/timezone/timezone-option.directive.mjs +3 -3
  294. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  295. package/esm2022/timezone/timezone.module.mjs +1 -1
  296. package/esm2022/timezone/timezone.utils.mjs +5 -9
  297. package/esm2022/timezone/utc-offset.pipe.mjs +1 -1
  298. package/esm2022/title/public-api.mjs +2 -2
  299. package/esm2022/title/title.directive.mjs +9 -5
  300. package/esm2022/title/title.module.mjs +1 -1
  301. package/esm2022/toast/public-api.mjs +4 -4
  302. package/esm2022/toast/toast-animations.mjs +2 -2
  303. package/esm2022/toast/toast-container.component.mjs +3 -4
  304. package/esm2022/toast/toast.component.mjs +5 -5
  305. package/esm2022/toast/toast.module.mjs +1 -1
  306. package/esm2022/toast/toast.service.mjs +14 -30
  307. package/esm2022/toast/toast.type.mjs +1 -1
  308. package/esm2022/toggle/public-api.mjs +2 -2
  309. package/esm2022/toggle/toggle.component.mjs +17 -9
  310. package/esm2022/toggle/toggle.module.mjs +1 -1
  311. package/esm2022/tooltip/public-api.mjs +2 -2
  312. package/esm2022/tooltip/tooltip.animations.mjs +1 -1
  313. package/esm2022/tooltip/tooltip.component.mjs +7 -5
  314. package/esm2022/tooltip/tooltip.module.mjs +2 -2
  315. package/esm2022/tree/control/base-tree-control.mjs +1 -1
  316. package/esm2022/tree/control/flat-tree-control.filters.mjs +4 -7
  317. package/esm2022/tree/control/flat-tree-control.mjs +4 -7
  318. package/esm2022/tree/control/nested-tree-control.mjs +1 -1
  319. package/esm2022/tree/control/tree-control.mjs +1 -1
  320. package/esm2022/tree/data-source/flat-data-source.mjs +3 -8
  321. package/esm2022/tree/data-source/nested-data-source.mjs +2 -3
  322. package/esm2022/tree/node.mjs +1 -1
  323. package/esm2022/tree/outlet.mjs +1 -1
  324. package/esm2022/tree/padding.directive.mjs +4 -5
  325. package/esm2022/tree/public-api.mjs +11 -11
  326. package/esm2022/tree/toggle.mjs +8 -5
  327. package/esm2022/tree/tree-base.mjs +3 -3
  328. package/esm2022/tree/tree-errors.mjs +1 -1
  329. package/esm2022/tree/tree-option.component.mjs +9 -13
  330. package/esm2022/tree/tree-selection.component.mjs +17 -36
  331. package/esm2022/tree/tree.mjs +7 -3
  332. package/esm2022/tree/tree.module.mjs +4 -4
  333. package/esm2022/tree-select/public-api.mjs +2 -2
  334. package/esm2022/tree-select/tree-select.component.mjs +54 -64
  335. package/esm2022/tree-select/tree-select.module.mjs +1 -1
  336. package/fesm2022/koobiq-components-alert.mjs +6 -6
  337. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  338. package/fesm2022/koobiq-components-autocomplete.mjs +58 -61
  339. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  340. package/fesm2022/koobiq-components-badge.mjs +8 -6
  341. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  342. package/fesm2022/koobiq-components-button-toggle.mjs +26 -18
  343. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  344. package/fesm2022/koobiq-components-button.mjs +14 -11
  345. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  346. package/fesm2022/koobiq-components-card.mjs +2 -2
  347. package/fesm2022/koobiq-components-card.mjs.map +1 -1
  348. package/fesm2022/koobiq-components-checkbox.mjs +3 -3
  349. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  350. package/fesm2022/koobiq-components-code-block.mjs +33 -28
  351. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  352. package/fesm2022/koobiq-components-core.mjs +323 -315
  353. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  354. package/fesm2022/koobiq-components-datepicker.mjs +100 -89
  355. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  356. package/fesm2022/koobiq-components-divider.mjs.map +1 -1
  357. package/fesm2022/koobiq-components-dl.mjs +3 -3
  358. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  359. package/fesm2022/koobiq-components-dropdown.mjs +124 -138
  360. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  361. package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
  362. package/fesm2022/koobiq-components-empty-state.mjs +3 -3
  363. package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
  364. package/fesm2022/koobiq-components-file-upload.mjs +45 -37
  365. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  366. package/fesm2022/koobiq-components-form-field.mjs +69 -62
  367. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  368. package/fesm2022/koobiq-components-icon.mjs +3 -4
  369. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  370. package/fesm2022/koobiq-components-input.mjs +61 -50
  371. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  372. package/fesm2022/koobiq-components-link.mjs +1 -1
  373. package/fesm2022/koobiq-components-link.mjs.map +1 -1
  374. package/fesm2022/koobiq-components-list.mjs +39 -41
  375. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  376. package/fesm2022/koobiq-components-loader-overlay.mjs +6 -6
  377. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  378. package/fesm2022/koobiq-components-markdown.mjs +18 -4
  379. package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
  380. package/fesm2022/koobiq-components-modal.mjs +84 -44
  381. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  382. package/fesm2022/koobiq-components-navbar.mjs +74 -75
  383. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  384. package/fesm2022/koobiq-components-popover.mjs +12 -12
  385. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  386. package/fesm2022/koobiq-components-progress-bar.mjs +5 -5
  387. package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
  388. package/fesm2022/koobiq-components-progress-spinner.mjs +5 -5
  389. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  390. package/fesm2022/koobiq-components-radio.mjs +11 -12
  391. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  392. package/fesm2022/koobiq-components-risk-level.mjs +2 -2
  393. package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
  394. package/fesm2022/koobiq-components-scrollbar.mjs +15 -12
  395. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  396. package/fesm2022/koobiq-components-select.mjs +52 -72
  397. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  398. package/fesm2022/koobiq-components-sidebar.mjs +3 -3
  399. package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
  400. package/fesm2022/koobiq-components-sidepanel.mjs +108 -87
  401. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  402. package/fesm2022/koobiq-components-splitter.mjs +15 -25
  403. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  404. package/fesm2022/koobiq-components-table.mjs +3 -3
  405. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  406. package/fesm2022/koobiq-components-tabs.mjs +36 -43
  407. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  408. package/fesm2022/koobiq-components-tags.mjs +38 -44
  409. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  410. package/fesm2022/koobiq-components-textarea.mjs +2 -4
  411. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  412. package/fesm2022/koobiq-components-timepicker.mjs +69 -28
  413. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  414. package/fesm2022/koobiq-components-timezone.mjs +16 -19
  415. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  416. package/fesm2022/koobiq-components-title.mjs +11 -7
  417. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  418. package/fesm2022/koobiq-components-toast.mjs +69 -86
  419. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  420. package/fesm2022/koobiq-components-toggle.mjs +17 -9
  421. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  422. package/fesm2022/koobiq-components-tooltip.mjs +10 -8
  423. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  424. package/fesm2022/koobiq-components-tree-select.mjs +63 -73
  425. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  426. package/fesm2022/koobiq-components-tree.mjs +506 -535
  427. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  428. package/file-upload/multiple-file-upload.component.d.ts +2 -2
  429. package/file-upload/public-api.d.ts +1 -1
  430. package/file-upload/single-file-upload.component.d.ts +2 -2
  431. package/form-field/public-api.d.ts +3 -3
  432. package/icon/public-api.d.ts +2 -2
  433. package/input/public-api.d.ts +2 -2
  434. package/link/_link-theme.scss +2 -0
  435. package/link/link.component.d.ts +1 -1
  436. package/link/public-api.d.ts +1 -1
  437. package/list/list-selection.component.d.ts +2 -2
  438. package/list/list.scss +1 -1
  439. package/list/public-api.d.ts +2 -2
  440. package/loader-overlay/public-api.d.ts +1 -1
  441. package/modal/README.md +1 -1
  442. package/modal/modal.directive.d.ts +3 -3
  443. package/modal/modal.type.d.ts +2 -2
  444. package/modal/public-api.d.ts +2 -2
  445. package/navbar/_navbar-item_horizontal.scss +31 -23
  446. package/navbar/_navbar-item_vertical.scss +0 -2
  447. package/navbar/navbar-item.scss +7 -0
  448. package/navbar/public-api.d.ts +2 -2
  449. package/package.json +4 -4
  450. package/popover/popover.component.d.ts +1 -1
  451. package/popover/public-api.d.ts +2 -2
  452. package/prebuilt-themes/dark-theme.css +1 -1
  453. package/prebuilt-themes/light-theme.css +1 -1
  454. package/progress-bar/public-api.d.ts +1 -1
  455. package/progress-spinner/public-api.d.ts +1 -1
  456. package/radio/_radio-theme.scss +1 -0
  457. package/radio/public-api.d.ts +1 -1
  458. package/radio/radio.scss +12 -2
  459. package/risk-level/public-api.d.ts +1 -1
  460. package/schematics/ng-add/index.js +2 -2
  461. package/scrollbar/public-api.d.ts +1 -1
  462. package/scrollbar/scrollbar.directive.d.ts +1 -1
  463. package/scrollbar/scrollbar.types.d.ts +1 -1
  464. package/select/public-api.d.ts +2 -2
  465. package/select/select.component.d.ts +1 -1
  466. package/sidebar/public-api.d.ts +1 -1
  467. package/sidepanel/public-api.d.ts +3 -3
  468. package/sidepanel/sidepanel.scss +1 -1
  469. package/splitter/public-api.d.ts +1 -1
  470. package/table/public-api.d.ts +1 -1
  471. package/tabs/paginated-tab-header.d.ts +1 -1
  472. package/tabs/public-api.d.ts +5 -5
  473. package/tabs/tab-body.component.d.ts +3 -3
  474. package/tabs/tab-group.component.d.ts +1 -1
  475. package/tags/public-api.d.ts +4 -4
  476. package/tags/tag-input.d.ts +1 -1
  477. package/textarea/textarea.component.d.ts +1 -1
  478. package/timepicker/public-api.d.ts +1 -1
  479. package/timepicker/timepicker.constants.d.ts +2 -0
  480. package/timepicker/timepicker.directive.d.ts +10 -3
  481. package/timezone/timezone-option.directive.d.ts +1 -1
  482. package/timezone/timezone.utils.d.ts +1 -1
  483. package/title/public-api.d.ts +1 -1
  484. package/toast/public-api.d.ts +3 -3
  485. package/toast/toast.service.d.ts +2 -2
  486. package/toast/toast.type.d.ts +1 -1
  487. package/toggle/public-api.d.ts +1 -1
  488. package/tooltip/public-api.d.ts +1 -1
  489. package/tooltip/tooltip.component.d.ts +2 -2
  490. package/tree/public-api.d.ts +10 -10
  491. package/tree/tree-base.d.ts +1 -1
  492. package/tree/tree-option.component.d.ts +1 -1
  493. package/tree/tree-selection.component.d.ts +1 -1
  494. package/tree-select/public-api.d.ts +1 -1
  495. package/tree-select/tree-select.component.d.ts +6 -4
@@ -1,18 +1,18 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, ViewChild, TemplateRef, Injector, Injectable, Optional, SkipSelf, Directive, Input, NgModule } from '@angular/core';
3
- import { ESCAPE } from '@koobiq/cdk/keycodes';
4
- import { Subject, merge } from 'rxjs';
5
- import { filter, take } from 'rxjs/operators';
6
- import { trigger, state, style, transition, animate } from '@angular/animations';
7
- import { AnimationCurves, KbqCommonModule } from '@koobiq/components/core';
8
- import * as i1 from '@angular/cdk/overlay';
9
- import { OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
10
3
  import * as i3 from '@angular/cdk/portal';
11
4
  import { BasePortalOutlet, CdkPortalOutlet, TemplatePortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
5
+ import { trigger, state, style, transition, animate } from '@angular/animations';
6
+ import { AnimationCurves, KbqCommonModule } from '@koobiq/components/core';
12
7
  import * as i2 from '@angular/common';
13
8
  import { CommonModule } from '@angular/common';
14
9
  import * as i4 from '@angular/cdk/a11y';
15
10
  import { A11yModule, FocusTrapFactory, ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
11
+ import { ESCAPE } from '@koobiq/cdk/keycodes';
12
+ import { Subject, merge } from 'rxjs';
13
+ import { filter, take } from 'rxjs/operators';
14
+ import * as i1 from '@angular/cdk/overlay';
15
+ import { OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
16
16
  import * as i4$1 from '@koobiq/components/button';
17
17
  import { KbqButtonModule } from '@koobiq/components/button';
18
18
  import * as i5 from '@koobiq/components/icon';
@@ -68,62 +68,17 @@ const kbqSidepanelTransformAnimation = {
68
68
  };
69
69
  const kbqSidepanelAnimations = {
70
70
  sidepanelState: trigger('state', [
71
- state('hidden', style({ transform: '{{transformIn}}' }), { params: { transformIn: kbqSidepanelTransformAnimation[KbqSidepanelPosition.Right].in } }),
72
- state('visible', style({ transform: '{{transformOut}}' }), { params: { transformOut: kbqSidepanelTransformAnimation[KbqSidepanelPosition.Right].out } }),
71
+ state('hidden', style({ transform: '{{transformIn}}' }), {
72
+ params: { transformIn: kbqSidepanelTransformAnimation[KbqSidepanelPosition.Right].in }
73
+ }),
74
+ state('visible', style({ transform: '{{transformOut}}' }), {
75
+ params: { transformOut: kbqSidepanelTransformAnimation[KbqSidepanelPosition.Right].out }
76
+ }),
73
77
  transition('visible => void, visible => hidden', animate(`200ms ${AnimationCurves.AccelerationCurve}`)),
74
78
  transition('void => visible', animate(`200ms ${AnimationCurves.DecelerationCurve}`))
75
79
  ])
76
80
  };
77
81
 
78
- // Counter for unique sidepanel ids.
79
- let uniqueId = 0;
80
- class KbqSidepanelRef {
81
- constructor(containerInstance, overlayRef, config) {
82
- this.containerInstance = containerInstance;
83
- this.overlayRef = overlayRef;
84
- this.config = config;
85
- /** Subject for notifying the user that the sidepanel has been closed and dismissed. */
86
- this.afterClosed$ = new Subject();
87
- /** Subject for notifying the user that the sidepanel has opened and appeared. */
88
- this.afterOpened$ = new Subject();
89
- this.id = this.config.id || `kbq-sidepanel-${uniqueId++}`;
90
- this.containerInstance.id = this.id;
91
- // Emit when opening animation completes
92
- containerInstance.animationStateChanged.pipe(filter((event) => event.phaseName === 'done' && event.toState === KbqSidepanelAnimationState.Visible), take(1)).subscribe(() => {
93
- this.afterOpened$.next();
94
- this.afterOpened$.complete();
95
- });
96
- // Dispose overlay when closing animation is complete
97
- containerInstance.animationStateChanged.pipe(filter((event) => event.phaseName === 'done' && event.toState === KbqSidepanelAnimationState.Hidden), take(1)).subscribe(() => {
98
- overlayRef.dispose();
99
- this.afterClosed$.next(this.result);
100
- this.afterClosed$.complete();
101
- });
102
- if (!containerInstance.sidepanelConfig.disableClose) {
103
- merge(overlayRef.backdropClick(), overlayRef.keydownEvents().pipe(
104
- // tslint:disable:deprecation
105
- // keyCode is deprecated, but IE11 and Edge don't support code property, which we need use instead
106
- filter((event) => event.keyCode === ESCAPE))).subscribe(() => this.close());
107
- }
108
- }
109
- close(result) {
110
- if (!this.afterClosed$.closed) {
111
- // Transition the backdrop in parallel to the sidepanel.
112
- this.containerInstance.animationStateChanged.pipe(filter((event) => event.phaseName === 'done'), take(1)).subscribe(() => this.overlayRef.detachBackdrop());
113
- this.result = result;
114
- this.containerInstance.exit();
115
- }
116
- }
117
- /** Gets an observable that is notified when the sidepanel is finished closing. */
118
- afterClosed() {
119
- return this.afterClosed$.asObservable();
120
- }
121
- /** Gets an observable that is notified when the sidepanel has opened and appeared. */
122
- afterOpened() {
123
- return this.afterOpened$.asObservable();
124
- }
125
- }
126
-
127
82
  const KBQ_SIDEPANEL_WITH_INDENT = new InjectionToken('kbq-sidepanel-with-indent');
128
83
  const KBQ_SIDEPANEL_WITH_SHADOW = new InjectionToken('kbq-sidepanel-with-shadow');
129
84
  class KbqSidepanelContainerComponent extends BasePortalOutlet {
@@ -196,7 +151,7 @@ class KbqSidepanelContainerComponent extends BasePortalOutlet {
196
151
  }
197
152
  }
198
153
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqSidepanelContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: KbqSidepanelConfig }, { token: KBQ_SIDEPANEL_WITH_INDENT }, { token: KBQ_SIDEPANEL_WITH_SHADOW }], target: i0.ɵɵFactoryTarget.Component }); }
199
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqSidepanelContainerComponent, selector: "kbq-sidepanel-container", host: { listeners: { "@state.start": "onAnimation($event)", "@state.done": "onAnimation($event)" }, properties: { "class": "size", "class.kbq-sidepanel_nested": "withIndent", "class.kbq-sidepanel-container_shadowed": "withShadow", "attr.id": "id", "attr.tabindex": "-1", "@state": "{\n value: animationState,\n params: animationTransform\n }" }, classAttribute: "kbq-sidepanel-container" }, viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"kbq-sidepanel-wrapper\">\n\n <div *ngIf=\"withIndent\" class=\"kbq-sidepanel-indent\" (click)=\"exit()\"></div>\n\n <div class=\"kbq-sidepanel-content\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <ng-template cdkPortalOutlet></ng-template>\n </div>\n</div>\n", styles: ["@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 10px,#ffffff0a 10px 20px,#0000000a 20px 30px,#ffffff0a 31px) repeat;background-size:32px 32px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-sidepanel-container_top,.kbq-sidepanel-container_bottom{flex-direction:column;height:33%;min-height:400px;width:100%;left:0}.kbq-sidepanel-container_top .kbq-sidepanel-indent,.kbq-sidepanel-container_bottom .kbq-sidepanel-indent{height:16px;width:100%}.kbq-sidepanel-container{outline:none;display:flex;flex:1;position:fixed;min-height:0}.kbq-sidepanel-container .flex{min-height:0}.kbq-sidepanel-container.kbq-sidepanel-container_left,.kbq-sidepanel-container.kbq-sidepanel-container_right{height:100%;top:0}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_small,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_small{width:var(--kbq-sidepanel-size-small-width, 400px);max-width:var(--kbq-sidepanel-size-small-width, 400px)}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_medium,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_medium{width:var(--kbq-sidepanel-size-medium-width, 640px);max-width:var(--kbq-sidepanel-size-medium-width, 640px)}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_large,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_large{width:var(--kbq-sidepanel-size-large-width, 960px);max-width:var(--kbq-sidepanel-size-large-width, 960px)}.kbq-sidepanel-container.kbq-sidepanel-container_left .kbq-sidepanel-indent,.kbq-sidepanel-container.kbq-sidepanel-container_right .kbq-sidepanel-indent{width:16px;height:100%}.kbq-sidepanel-container_right{right:0;transform:translate(100%)}.kbq-sidepanel-container_right .kbq-sidepanel-wrapper{flex-direction:row}.kbq-sidepanel-container_left{left:0;transform:translate(-100%)}.kbq-sidepanel-container_left .kbq-sidepanel-wrapper{flex-direction:row-reverse}.kbq-sidepanel-container_top{top:0;transform:translateY(-100%)}.kbq-sidepanel-container_top .kbq-sidepanel-wrapper{flex-direction:column-reverse}.kbq-sidepanel-container_bottom{bottom:0;transform:translateY(100%)}.kbq-sidepanel-container_bottom .kbq-sidepanel-wrapper{flex-direction:column}.kbq-sidepanel-wrapper{display:flex;flex:1;min-height:0;width:100%}.kbq-sidepanel-indent{display:flex;flex:0 0 auto}.kbq-sidepanel-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%}.kbq-sidepanel-header{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;flex:0 0 auto;padding:var(--kbq-sidepanel-size-header-padding-vertical, 16px) var(--kbq-sidepanel-size-header-padding-right, 12px) var(--kbq-sidepanel-size-header-padding-vertical, 16px) var(--kbq-sidepanel-size-header-padding-left, 32px)}.kbq-sidepanel-header .kbq-sidepanel-close{margin-left:var(--kbq-sidepanel-size-close-button-margin-left, 8px)}.kbq-sidepanel-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-sidepanel-body{overflow-y:auto;display:flex;flex:1;flex-direction:column;min-height:0;padding-right:var(--kbq-sidepanel-size-content-padding-horizontal, 32px);padding-left:var(--kbq-sidepanel-size-content-padding-horizontal, 32px);padding-bottom:var(--kbq-sidepanel-size-content-padding-bottom, 24px)}.kbq-sidepanel-footer{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;flex:0 0 auto;padding:var(--kbq-sidepanel-size-footer-padding-top, 8px) var(--kbq-sidepanel-size-footer-padding-horizontal, 32px) var(--kbq-sidepanel-size-footer-padding-bottom, 32px)}.kbq-sidepanel-footer .kbq-sidepanel-actions{display:flex;align-items:center;flex-direction:row;flex:1;gap:var(--kbq-sidepanel-size-footer-content-gap-horizontal, 16px)}.kbq-sidepanel-footer .kbq-sidepanel-actions[align=left]{justify-content:start}.kbq-sidepanel-footer .kbq-sidepanel-actions[align=right]{justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: i4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [kbqSidepanelAnimations.sidepanelState], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
154
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqSidepanelContainerComponent, selector: "kbq-sidepanel-container", host: { listeners: { "@state.start": "onAnimation($event)", "@state.done": "onAnimation($event)" }, properties: { "class": "size", "class.kbq-sidepanel_nested": "withIndent", "class.kbq-sidepanel-container_shadowed": "withShadow", "attr.id": "id", "attr.tabindex": "-1", "@state": "{\n value: animationState,\n params: animationTransform\n }" }, classAttribute: "kbq-sidepanel-container" }, viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"kbq-sidepanel-wrapper\">\n <div\n *ngIf=\"withIndent\"\n class=\"kbq-sidepanel-indent\"\n (click)=\"exit()\"\n ></div>\n\n <div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n class=\"kbq-sidepanel-content\"\n >\n <ng-template cdkPortalOutlet></ng-template>\n </div>\n</div>\n", styles: ["@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 10px,#ffffff0a 10px 20px,#0000000a 20px 30px,#ffffff0a 31px) repeat;background-size:32px 32px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-sidepanel-container_top,.kbq-sidepanel-container_bottom{flex-direction:column;height:33%;min-height:400px;width:100%;left:0}.kbq-sidepanel-container_top .kbq-sidepanel-indent,.kbq-sidepanel-container_bottom .kbq-sidepanel-indent{height:16px;width:100%}.kbq-sidepanel-container{outline:none;display:flex;flex:1;position:fixed;min-height:0}.kbq-sidepanel-container .flex{min-height:0}.kbq-sidepanel-container.kbq-sidepanel-container_left,.kbq-sidepanel-container.kbq-sidepanel-container_right{height:100%;top:0;max-width:100%}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_small,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_small{width:var(--kbq-sidepanel-size-small-width, 400px);max-width:var(--kbq-sidepanel-size-small-width, 400px)}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_medium,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_medium{width:var(--kbq-sidepanel-size-medium-width, 640px);max-width:var(--kbq-sidepanel-size-medium-width, 640px)}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_large,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_large{width:var(--kbq-sidepanel-size-large-width, 960px)}.kbq-sidepanel-container.kbq-sidepanel-container_left .kbq-sidepanel-indent,.kbq-sidepanel-container.kbq-sidepanel-container_right .kbq-sidepanel-indent{width:16px;height:100%}.kbq-sidepanel-container_right{right:0;transform:translate(100%)}.kbq-sidepanel-container_right .kbq-sidepanel-wrapper{flex-direction:row}.kbq-sidepanel-container_left{left:0;transform:translate(-100%)}.kbq-sidepanel-container_left .kbq-sidepanel-wrapper{flex-direction:row-reverse}.kbq-sidepanel-container_top{top:0;transform:translateY(-100%)}.kbq-sidepanel-container_top .kbq-sidepanel-wrapper{flex-direction:column-reverse}.kbq-sidepanel-container_bottom{bottom:0;transform:translateY(100%)}.kbq-sidepanel-container_bottom .kbq-sidepanel-wrapper{flex-direction:column}.kbq-sidepanel-wrapper{display:flex;flex:1;min-height:0;width:100%}.kbq-sidepanel-indent{display:flex;flex:0 0 auto}.kbq-sidepanel-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%}.kbq-sidepanel-header{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;flex:0 0 auto;padding:var(--kbq-sidepanel-size-header-padding-vertical, 16px) var(--kbq-sidepanel-size-header-padding-right, 12px) var(--kbq-sidepanel-size-header-padding-vertical, 16px) var(--kbq-sidepanel-size-header-padding-left, 32px)}.kbq-sidepanel-header .kbq-sidepanel-close{margin-left:var(--kbq-sidepanel-size-close-button-margin-left, 8px)}.kbq-sidepanel-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-sidepanel-body{overflow-y:auto;display:flex;flex:1;flex-direction:column;min-height:0;padding-right:var(--kbq-sidepanel-size-content-padding-horizontal, 32px);padding-left:var(--kbq-sidepanel-size-content-padding-horizontal, 32px);padding-bottom:var(--kbq-sidepanel-size-content-padding-bottom, 24px)}.kbq-sidepanel-footer{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;flex:0 0 auto;padding:var(--kbq-sidepanel-size-footer-padding-top, 8px) var(--kbq-sidepanel-size-footer-padding-horizontal, 32px) var(--kbq-sidepanel-size-footer-padding-bottom, 32px)}.kbq-sidepanel-footer .kbq-sidepanel-actions{display:flex;align-items:center;flex-direction:row;flex:1;gap:var(--kbq-sidepanel-size-footer-content-gap-horizontal, 16px)}.kbq-sidepanel-footer .kbq-sidepanel-actions[align=left]{justify-content:start}.kbq-sidepanel-footer .kbq-sidepanel-actions[align=right]{justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: i4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [kbqSidepanelAnimations.sidepanelState], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
200
155
  }
201
156
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqSidepanelContainerComponent, decorators: [{
202
157
  type: Component,
@@ -213,7 +168,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
213
168
  }`,
214
169
  '(@state.start)': 'onAnimation($event)',
215
170
  '(@state.done)': 'onAnimation($event)'
216
- }, template: "<div class=\"kbq-sidepanel-wrapper\">\n\n <div *ngIf=\"withIndent\" class=\"kbq-sidepanel-indent\" (click)=\"exit()\"></div>\n\n <div class=\"kbq-sidepanel-content\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <ng-template cdkPortalOutlet></ng-template>\n </div>\n</div>\n", styles: ["@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 10px,#ffffff0a 10px 20px,#0000000a 20px 30px,#ffffff0a 31px) repeat;background-size:32px 32px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-sidepanel-container_top,.kbq-sidepanel-container_bottom{flex-direction:column;height:33%;min-height:400px;width:100%;left:0}.kbq-sidepanel-container_top .kbq-sidepanel-indent,.kbq-sidepanel-container_bottom .kbq-sidepanel-indent{height:16px;width:100%}.kbq-sidepanel-container{outline:none;display:flex;flex:1;position:fixed;min-height:0}.kbq-sidepanel-container .flex{min-height:0}.kbq-sidepanel-container.kbq-sidepanel-container_left,.kbq-sidepanel-container.kbq-sidepanel-container_right{height:100%;top:0}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_small,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_small{width:var(--kbq-sidepanel-size-small-width, 400px);max-width:var(--kbq-sidepanel-size-small-width, 400px)}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_medium,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_medium{width:var(--kbq-sidepanel-size-medium-width, 640px);max-width:var(--kbq-sidepanel-size-medium-width, 640px)}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_large,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_large{width:var(--kbq-sidepanel-size-large-width, 960px);max-width:var(--kbq-sidepanel-size-large-width, 960px)}.kbq-sidepanel-container.kbq-sidepanel-container_left .kbq-sidepanel-indent,.kbq-sidepanel-container.kbq-sidepanel-container_right .kbq-sidepanel-indent{width:16px;height:100%}.kbq-sidepanel-container_right{right:0;transform:translate(100%)}.kbq-sidepanel-container_right .kbq-sidepanel-wrapper{flex-direction:row}.kbq-sidepanel-container_left{left:0;transform:translate(-100%)}.kbq-sidepanel-container_left .kbq-sidepanel-wrapper{flex-direction:row-reverse}.kbq-sidepanel-container_top{top:0;transform:translateY(-100%)}.kbq-sidepanel-container_top .kbq-sidepanel-wrapper{flex-direction:column-reverse}.kbq-sidepanel-container_bottom{bottom:0;transform:translateY(100%)}.kbq-sidepanel-container_bottom .kbq-sidepanel-wrapper{flex-direction:column}.kbq-sidepanel-wrapper{display:flex;flex:1;min-height:0;width:100%}.kbq-sidepanel-indent{display:flex;flex:0 0 auto}.kbq-sidepanel-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%}.kbq-sidepanel-header{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;flex:0 0 auto;padding:var(--kbq-sidepanel-size-header-padding-vertical, 16px) var(--kbq-sidepanel-size-header-padding-right, 12px) var(--kbq-sidepanel-size-header-padding-vertical, 16px) var(--kbq-sidepanel-size-header-padding-left, 32px)}.kbq-sidepanel-header .kbq-sidepanel-close{margin-left:var(--kbq-sidepanel-size-close-button-margin-left, 8px)}.kbq-sidepanel-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-sidepanel-body{overflow-y:auto;display:flex;flex:1;flex-direction:column;min-height:0;padding-right:var(--kbq-sidepanel-size-content-padding-horizontal, 32px);padding-left:var(--kbq-sidepanel-size-content-padding-horizontal, 32px);padding-bottom:var(--kbq-sidepanel-size-content-padding-bottom, 24px)}.kbq-sidepanel-footer{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;flex:0 0 auto;padding:var(--kbq-sidepanel-size-footer-padding-top, 8px) var(--kbq-sidepanel-size-footer-padding-horizontal, 32px) var(--kbq-sidepanel-size-footer-padding-bottom, 32px)}.kbq-sidepanel-footer .kbq-sidepanel-actions{display:flex;align-items:center;flex-direction:row;flex:1;gap:var(--kbq-sidepanel-size-footer-content-gap-horizontal, 16px)}.kbq-sidepanel-footer .kbq-sidepanel-actions[align=left]{justify-content:start}.kbq-sidepanel-footer .kbq-sidepanel-actions[align=right]{justify-content:flex-end}\n"] }]
171
+ }, template: "<div class=\"kbq-sidepanel-wrapper\">\n <div\n *ngIf=\"withIndent\"\n class=\"kbq-sidepanel-indent\"\n (click)=\"exit()\"\n ></div>\n\n <div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n class=\"kbq-sidepanel-content\"\n >\n <ng-template cdkPortalOutlet></ng-template>\n </div>\n</div>\n", styles: ["@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 10px,#ffffff0a 10px 20px,#0000000a 20px 30px,#ffffff0a 31px) repeat;background-size:32px 32px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-sidepanel-container_top,.kbq-sidepanel-container_bottom{flex-direction:column;height:33%;min-height:400px;width:100%;left:0}.kbq-sidepanel-container_top .kbq-sidepanel-indent,.kbq-sidepanel-container_bottom .kbq-sidepanel-indent{height:16px;width:100%}.kbq-sidepanel-container{outline:none;display:flex;flex:1;position:fixed;min-height:0}.kbq-sidepanel-container .flex{min-height:0}.kbq-sidepanel-container.kbq-sidepanel-container_left,.kbq-sidepanel-container.kbq-sidepanel-container_right{height:100%;top:0;max-width:100%}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_small,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_small{width:var(--kbq-sidepanel-size-small-width, 400px);max-width:var(--kbq-sidepanel-size-small-width, 400px)}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_medium,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_medium{width:var(--kbq-sidepanel-size-medium-width, 640px);max-width:var(--kbq-sidepanel-size-medium-width, 640px)}.kbq-sidepanel-container.kbq-sidepanel-container_left.kbq-sidepanel_large,.kbq-sidepanel-container.kbq-sidepanel-container_right.kbq-sidepanel_large{width:var(--kbq-sidepanel-size-large-width, 960px)}.kbq-sidepanel-container.kbq-sidepanel-container_left .kbq-sidepanel-indent,.kbq-sidepanel-container.kbq-sidepanel-container_right .kbq-sidepanel-indent{width:16px;height:100%}.kbq-sidepanel-container_right{right:0;transform:translate(100%)}.kbq-sidepanel-container_right .kbq-sidepanel-wrapper{flex-direction:row}.kbq-sidepanel-container_left{left:0;transform:translate(-100%)}.kbq-sidepanel-container_left .kbq-sidepanel-wrapper{flex-direction:row-reverse}.kbq-sidepanel-container_top{top:0;transform:translateY(-100%)}.kbq-sidepanel-container_top .kbq-sidepanel-wrapper{flex-direction:column-reverse}.kbq-sidepanel-container_bottom{bottom:0;transform:translateY(100%)}.kbq-sidepanel-container_bottom .kbq-sidepanel-wrapper{flex-direction:column}.kbq-sidepanel-wrapper{display:flex;flex:1;min-height:0;width:100%}.kbq-sidepanel-indent{display:flex;flex:0 0 auto}.kbq-sidepanel-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%}.kbq-sidepanel-header{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;flex:0 0 auto;padding:var(--kbq-sidepanel-size-header-padding-vertical, 16px) var(--kbq-sidepanel-size-header-padding-right, 12px) var(--kbq-sidepanel-size-header-padding-vertical, 16px) var(--kbq-sidepanel-size-header-padding-left, 32px)}.kbq-sidepanel-header .kbq-sidepanel-close{margin-left:var(--kbq-sidepanel-size-close-button-margin-left, 8px)}.kbq-sidepanel-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-sidepanel-body{overflow-y:auto;display:flex;flex:1;flex-direction:column;min-height:0;padding-right:var(--kbq-sidepanel-size-content-padding-horizontal, 32px);padding-left:var(--kbq-sidepanel-size-content-padding-horizontal, 32px);padding-bottom:var(--kbq-sidepanel-size-content-padding-bottom, 24px)}.kbq-sidepanel-footer{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;flex:0 0 auto;padding:var(--kbq-sidepanel-size-footer-padding-top, 8px) var(--kbq-sidepanel-size-footer-padding-horizontal, 32px) var(--kbq-sidepanel-size-footer-padding-bottom, 32px)}.kbq-sidepanel-footer .kbq-sidepanel-actions{display:flex;align-items:center;flex-direction:row;flex:1;gap:var(--kbq-sidepanel-size-footer-content-gap-horizontal, 16px)}.kbq-sidepanel-footer .kbq-sidepanel-actions[align=left]{justify-content:start}.kbq-sidepanel-footer .kbq-sidepanel-actions[align=right]{justify-content:flex-end}\n"] }]
217
172
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: KbqSidepanelConfig }, { type: undefined, decorators: [{
218
173
  type: Inject,
219
174
  args: [KBQ_SIDEPANEL_WITH_INDENT]
@@ -225,14 +180,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
225
180
  args: [CdkPortalOutlet, { static: true }]
226
181
  }] } });
227
182
 
183
+ // Counter for unique sidepanel ids.
184
+ let uniqueId = 0;
185
+ class KbqSidepanelRef {
186
+ constructor(containerInstance, overlayRef, config) {
187
+ this.containerInstance = containerInstance;
188
+ this.overlayRef = overlayRef;
189
+ this.config = config;
190
+ /** Subject for notifying the user that the sidepanel has been closed and dismissed. */
191
+ this.afterClosed$ = new Subject();
192
+ /** Subject for notifying the user that the sidepanel has opened and appeared. */
193
+ this.afterOpened$ = new Subject();
194
+ this.id = this.config.id || `kbq-sidepanel-${uniqueId++}`;
195
+ this.containerInstance.id = this.id;
196
+ // Emit when opening animation completes
197
+ containerInstance.animationStateChanged
198
+ .pipe(filter((event) => event.phaseName === 'done' && event.toState === KbqSidepanelAnimationState.Visible), take(1))
199
+ .subscribe(() => {
200
+ this.afterOpened$.next();
201
+ this.afterOpened$.complete();
202
+ });
203
+ // Dispose overlay when closing animation is complete
204
+ containerInstance.animationStateChanged
205
+ .pipe(filter((event) => event.phaseName === 'done' && event.toState === KbqSidepanelAnimationState.Hidden), take(1))
206
+ .subscribe(() => {
207
+ overlayRef.dispose();
208
+ this.afterClosed$.next(this.result);
209
+ this.afterClosed$.complete();
210
+ });
211
+ if (!containerInstance.sidepanelConfig.disableClose) {
212
+ merge(overlayRef.backdropClick(), overlayRef.keydownEvents().pipe(
213
+ // tslint:disable:deprecation
214
+ // keyCode is deprecated, but IE11 and Edge don't support code property, which we need use instead
215
+ filter((event) => event.keyCode === ESCAPE))).subscribe(() => this.close());
216
+ }
217
+ }
218
+ close(result) {
219
+ if (!this.afterClosed$.closed) {
220
+ // Transition the backdrop in parallel to the sidepanel.
221
+ this.containerInstance.animationStateChanged
222
+ .pipe(filter((event) => event.phaseName === 'done'), take(1))
223
+ .subscribe(() => this.overlayRef.detachBackdrop());
224
+ this.result = result;
225
+ this.containerInstance.exit();
226
+ }
227
+ }
228
+ /** Gets an observable that is notified when the sidepanel is finished closing. */
229
+ afterClosed() {
230
+ return this.afterClosed$.asObservable();
231
+ }
232
+ /** Gets an observable that is notified when the sidepanel has opened and appeared. */
233
+ afterOpened() {
234
+ return this.afterOpened$.asObservable();
235
+ }
236
+ }
237
+
228
238
  /** Injection token that can be used to specify default sidepanel options. */
229
239
  const KBQ_SIDEPANEL_DEFAULT_OPTIONS = new InjectionToken('kbq-sidepanel-default-options');
230
240
  class KbqSidepanelService {
231
241
  /** Keeps track of the currently-open sidepanels. */
232
242
  get openedSidepanels() {
233
- return this.parentSidepanelService ?
234
- this.parentSidepanelService.openedSidepanels :
235
- this.openedSidepanelsAtThisLevel;
243
+ return this.parentSidepanelService
244
+ ? this.parentSidepanelService.openedSidepanels
245
+ : this.openedSidepanelsAtThisLevel;
236
246
  }
237
247
  constructor(overlay, injector, defaultOptions, parentSidepanelService) {
238
248
  this.overlay = overlay;
@@ -270,8 +280,7 @@ class KbqSidepanelService {
270
280
  ref.instance = contentRef.instance;
271
281
  }
272
282
  this.openedSidepanels.push(ref);
273
- ref.afterClosed()
274
- .subscribe(() => this.removeOpenSidepanel(ref));
283
+ ref.afterClosed().subscribe(() => this.removeOpenSidepanel(ref));
275
284
  container.enter();
276
285
  return ref;
277
286
  }
@@ -345,18 +354,16 @@ class KbqSidepanelService {
345
354
  }
346
355
  closeSidepanels(sidepanels) {
347
356
  const reversedOpenedSidepanels = [...sidepanels.reverse()];
348
- reversedOpenedSidepanels
349
- .forEach((sidepanelRef) => sidepanelRef.close());
357
+ reversedOpenedSidepanels.forEach((sidepanelRef) => sidepanelRef.close());
350
358
  }
351
359
  getBackdropClass(config) {
352
360
  if (config.hasBackdrop && config.backdropClass) {
353
361
  return config.backdropClass;
354
362
  }
355
- const hasOpenedSidepanelWithBackdrop = this.openedSidepanels
356
- .some((sidepanelRef) => sidepanelRef.config.hasBackdrop);
357
- return config.requiredBackdrop || !hasOpenedSidepanelWithBackdrop ?
358
- 'cdk-overlay-dark-backdrop' :
359
- 'cdk-overlay-transparent-backdrop';
363
+ const hasOpenedSidepanelWithBackdrop = this.openedSidepanels.some((sidepanelRef) => sidepanelRef.config.hasBackdrop);
364
+ return config.requiredBackdrop || !hasOpenedSidepanelWithBackdrop
365
+ ? 'cdk-overlay-dark-backdrop'
366
+ : 'cdk-overlay-transparent-backdrop';
360
367
  }
361
368
  getOpenedSidepanelsWithSamePosition(config) {
362
369
  return this.openedSidepanels.filter((sidepanelRef) => sidepanelRef.config.position === config.position);
@@ -442,16 +449,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
442
449
  class KbqSidepanelHeader {
443
450
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqSidepanelHeader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
444
451
  /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqSidepanelHeader, selector: "kbq-sidepanel-header", inputs: { closeable: "closeable" }, host: { classAttribute: "kbq-sidepanel-header" }, ngImport: i0, template: `
445
- <div class="kbq-sidepanel-title" kbq-title>
452
+ <div
453
+ class="kbq-sidepanel-title"
454
+ kbq-title
455
+ >
446
456
  <ng-content></ng-content>
447
457
  </div>
448
458
 
449
- <button *ngIf="closeable"
450
- kbq-button
451
- kbq-sidepanel-close
459
+ <button
460
+ *ngIf="closeable"
461
+ [color]="'contrast'"
462
+ [kbqStyle]="'transparent'"
463
+ kbq-button
464
+ kbq-sidepanel-close
465
+ >
466
+ <i
452
467
  [color]="'contrast'"
453
- [kbqStyle]="'transparent'">
454
- <i kbq-icon="mc-close-L_16" [color]="'contrast'"></i>
468
+ kbq-icon="mc-close-L_16"
469
+ ></i>
455
470
  </button>
456
471
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.KbqButton, selector: "[kbq-button]", inputs: ["color", "tabIndex", "kbqStyle", "disabled"] }, { kind: "directive", type: i4$1.KbqButtonCssStyler, selector: "[kbq-button]" }, { kind: "component", type: i5.KbqIcon, selector: "[kbq-icon]", inputs: ["color", "small", "autoColor"] }, { kind: "directive", type: i6.KbqTitleDirective, selector: "[kbq-title]", exportAs: ["kbqTitle"] }, { kind: "directive", type: KbqSidepanelClose, selector: "button[kbq-sidepanel-close], button[kbqSidepanelClose]", inputs: ["kbq-sidepanel-close", "kbqSidepanelClose"] }] }); }
457
472
  }
@@ -460,16 +475,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
460
475
  args: [{
461
476
  selector: 'kbq-sidepanel-header',
462
477
  template: `
463
- <div class="kbq-sidepanel-title" kbq-title>
478
+ <div
479
+ class="kbq-sidepanel-title"
480
+ kbq-title
481
+ >
464
482
  <ng-content></ng-content>
465
483
  </div>
466
484
 
467
- <button *ngIf="closeable"
468
- kbq-button
469
- kbq-sidepanel-close
485
+ <button
486
+ *ngIf="closeable"
487
+ [color]="'contrast'"
488
+ [kbqStyle]="'transparent'"
489
+ kbq-button
490
+ kbq-sidepanel-close
491
+ >
492
+ <i
470
493
  [color]="'contrast'"
471
- [kbqStyle]="'transparent'">
472
- <i kbq-icon="mc-close-L_16" [color]="'contrast'"></i>
494
+ kbq-icon="mc-close-L_16"
495
+ ></i>
473
496
  </button>
474
497
  `,
475
498
  host: {
@@ -537,9 +560,7 @@ function getClosestSidepanel(element, openSidepanels) {
537
560
  while (parent && !parent.classList.contains('kbq-sidepanel-container')) {
538
561
  parent = parent.parentElement;
539
562
  }
540
- return parent ?
541
- openSidepanels.find((sidepanel) => sidepanel.id === parent.id) :
542
- null;
563
+ return parent ? openSidepanels.find((sidepanel) => sidepanel.id === parent.id) : null;
543
564
  }
544
565
 
545
566
  class KbqSidepanelModule {
@@ -1 +1 @@
1
- {"version":3,"file":"koobiq-components-sidepanel.mjs","sources":["../../../packages/components/sidepanel/sidepanel-config.ts","../../../packages/components/sidepanel/sidepanel-animations.ts","../../../packages/components/sidepanel/sidepanel-ref.ts","../../../packages/components/sidepanel/sidepanel-container.component.ts","../../../packages/components/sidepanel/sidepanel-container.component.html","../../../packages/components/sidepanel/sidepanel.service.ts","../../../packages/components/sidepanel/sidepanel-directives.ts","../../../packages/components/sidepanel/sidepanel.module.ts","../../../packages/components/sidepanel/koobiq-components-sidepanel.ts"],"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 KBQ_SIDEPANEL_DATA = new InjectionToken<any>('KbqSidepanelData');\n\nexport enum KbqSidepanelPosition {\n Right = 'right',\n Left = 'left',\n Top = 'top',\n Bottom = 'bottom'\n}\n\nexport enum KbqSidepanelSize {\n Small = 'small',\n Medium = 'medium',\n Large = 'large'\n}\n\nexport class KbqSidepanelConfig<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?: KbqSidepanelPosition = KbqSidepanelPosition.Right;\n\n size?: KbqSidepanelSize = KbqSidepanelSize.Medium;\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 '@koobiq/components/core';\n\nimport { KbqSidepanelPosition } from './sidepanel-config';\n\n\nexport enum KbqSidepanelAnimationState {\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 kbqSidepanelTransformAnimation: Record<KbqSidepanelPosition, { 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 kbqSidepanelAnimations: { readonly sidepanelState: AnimationTriggerMetadata } = {\n sidepanelState: trigger('state', [\n state(\n 'hidden',\n style({ transform: '{{transformIn}}' }),\n { params: { transformIn: kbqSidepanelTransformAnimation[KbqSidepanelPosition.Right].in }}\n ),\n state(\n 'visible',\n style({ transform: '{{transformOut}}' }),\n { params: { transformOut: kbqSidepanelTransformAnimation[KbqSidepanelPosition.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 '@koobiq/cdk/keycodes';\nimport { merge, Observable, Subject } from 'rxjs';\nimport { filter, take } from 'rxjs/operators';\n\nimport { KbqSidepanelAnimationState } from './sidepanel-animations';\nimport { KbqSidepanelConfig } from './sidepanel-config';\nimport { KbqSidepanelContainerComponent } from './sidepanel-container.component';\n\n\n// Counter for unique sidepanel ids.\nlet uniqueId = 0;\n\nexport class KbqSidepanelRef<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: KbqSidepanelContainerComponent,\n private overlayRef: OverlayRef,\n public config: KbqSidepanelConfig) {\n\n this.id = this.config.id || `kbq-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 === KbqSidepanelAnimationState.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 === KbqSidepanelAnimationState.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","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 kbqSidepanelAnimations,\n KbqSidepanelAnimationState,\n kbqSidepanelTransformAnimation\n} from './sidepanel-animations';\nimport { KbqSidepanelConfig, KbqSidepanelPosition } from './sidepanel-config';\n\n\nexport const KBQ_SIDEPANEL_WITH_INDENT = new InjectionToken<boolean>('kbq-sidepanel-with-indent');\n\nexport const KBQ_SIDEPANEL_WITH_SHADOW = new InjectionToken<boolean>('kbq-sidepanel-with-shadow');\n\n@Component({\n selector: 'kbq-sidepanel-container',\n templateUrl: './sidepanel-container.component.html',\n styleUrls: ['./sidepanel.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n animations: [kbqSidepanelAnimations.sidepanelState],\n host: {\n class: 'kbq-sidepanel-container',\n '[class]': 'size',\n '[class.kbq-sidepanel_nested]': 'withIndent',\n '[class.kbq-sidepanel-container_shadowed]': 'withShadow',\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 KbqSidepanelContainerComponent 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: KbqSidepanelAnimationState = KbqSidepanelAnimationState.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 get size(): string {\n return `kbq-sidepanel_${this.sidepanelConfig.size}`;\n }\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: KbqSidepanelConfig,\n @Inject(KBQ_SIDEPANEL_WITH_INDENT) public withIndent: boolean,\n @Inject(KBQ_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) { return; }\n\n this.animationState = KbqSidepanelAnimationState.Visible;\n this.changeDetectorRef.detectChanges();\n }\n\n /** Begin animation of the sidepanel exiting from view. */\n exit(): void {\n if (this.destroyed) { return; }\n\n this.animationState = KbqSidepanelAnimationState.Hidden;\n this.changeDetectorRef.markForCheck();\n }\n\n onAnimation(event: AnimationEvent) {\n this.animationStateChanged.emit(event);\n }\n\n private setAnimation() {\n const position: KbqSidepanelPosition = this.sidepanelConfig.position!;\n\n this.animationTransform = {\n transformIn: kbqSidepanelTransformAnimation[position].in,\n transformOut: kbqSidepanelTransformAnimation[position].out\n };\n }\n\n private setPanelClass() {\n const element: HTMLElement = this.elementRef.nativeElement;\n const position: KbqSidepanelPosition = this.sidepanelConfig.position!;\n\n element.classList.add(`kbq-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","<div class=\"kbq-sidepanel-wrapper\">\n\n <div *ngIf=\"withIndent\" class=\"kbq-sidepanel-indent\" (click)=\"exit()\"></div>\n\n <div class=\"kbq-sidepanel-content\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <ng-template cdkPortalOutlet></ng-template>\n </div>\n</div>\n","import { Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal, ComponentType, TemplatePortal } from '@angular/cdk/portal';\nimport {\n ComponentRef,\n Inject,\n Injectable,\n InjectionToken,\n Injector,\n OnDestroy,\n Optional,\n SkipSelf,\n TemplateRef\n} from '@angular/core';\n\nimport { KBQ_SIDEPANEL_DATA, KbqSidepanelConfig } from './sidepanel-config';\nimport {\n KbqSidepanelContainerComponent,\n KBQ_SIDEPANEL_WITH_INDENT,\n KBQ_SIDEPANEL_WITH_SHADOW\n} from './sidepanel-container.component';\nimport { KbqSidepanelRef } from './sidepanel-ref';\n\n\n/** Injection token that can be used to specify default sidepanel options. */\nexport const KBQ_SIDEPANEL_DEFAULT_OPTIONS = new InjectionToken<KbqSidepanelConfig>('kbq-sidepanel-default-options');\n\n@Injectable()\nexport class KbqSidepanelService implements OnDestroy {\n private openedSidepanelsAtThisLevel: KbqSidepanelRef[] = [];\n\n /** Keeps track of the currently-open sidepanels. */\n get openedSidepanels(): KbqSidepanelRef[] {\n return this.parentSidepanelService ?\n this.parentSidepanelService.openedSidepanels :\n this.openedSidepanelsAtThisLevel;\n }\n\n constructor(\n private overlay: Overlay,\n private injector: Injector,\n @Optional() @Inject(KBQ_SIDEPANEL_DEFAULT_OPTIONS) private defaultOptions: KbqSidepanelConfig,\n @Optional() @SkipSelf() private parentSidepanelService: KbqSidepanelService\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>, config?: KbqSidepanelConfig<D>\n ): KbqSidepanelRef<T> {\n const fullConfig = {\n ...(this.defaultOptions || new KbqSidepanelConfig()),\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 overlayRef.hostElement.classList.add('kbq-sidepanel-overlay');\n const container = this.attachContainer(overlayRef, fullConfig);\n const ref = new KbqSidepanelRef(container, overlayRef, fullConfig);\n\n if (componentOrTemplateRef instanceof TemplateRef) {\n container.attachTemplatePortal(\n new TemplatePortal<T>(\n componentOrTemplateRef,\n null!,\n {\n $implicit: fullConfig.data,\n sidepanelRef: ref\n } as any\n )\n );\n } else {\n const portal = new ComponentPortal(\n componentOrTemplateRef,\n undefined,\n this.createInjector(fullConfig, ref, container)\n );\n const contentRef = container.attachComponentPortal(portal);\n\n ref.instance = contentRef.instance;\n }\n\n this.openedSidepanels.push(ref);\n ref.afterClosed()\n .subscribe(() => this.removeOpenSidepanel(ref));\n\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): KbqSidepanelRef | 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: KbqSidepanelConfig): KbqSidepanelContainerComponent {\n const openedSidepanelsWithSamePosition = this.getOpenedSidepanelsWithSamePosition(config);\n\n const injector = Injector.create({\n parent: this.injector,\n providers: [\n { provide: KbqSidepanelConfig, useValue: config },\n { provide: KBQ_SIDEPANEL_WITH_INDENT, useValue: openedSidepanelsWithSamePosition.length >= 1 },\n // tslint:disable-next-line:no-magic-numbers\n { provide: KBQ_SIDEPANEL_WITH_SHADOW, useValue: openedSidepanelsWithSamePosition.length < 2 }\n ]\n });\n\n const containerPortal = new ComponentPortal(KbqSidepanelContainerComponent, undefined, injector);\n const containerRef: ComponentRef<KbqSidepanelContainerComponent> = 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: KbqSidepanelConfig,\n sidepanelRef: KbqSidepanelRef<T>,\n sidepanelContainer: KbqSidepanelContainerComponent\n ): Injector {\n\n // The KbqSidepanelContainerComponent is injected in the portal as the KbqSidepanelContainerComponent 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 KbqSidepanelContainerComponent is explicitly\n // added to the injection tokens.\n\n return Injector.create({\n parent: this.injector,\n providers: [\n { provide: KbqSidepanelContainerComponent, useValue: sidepanelContainer },\n { provide: KBQ_SIDEPANEL_DATA, useValue: config.data },\n { provide: KbqSidepanelRef, useValue: sidepanelRef }\n ]\n });\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: KbqSidepanelConfig): 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: KbqSidepanelRef[]) {\n const reversedOpenedSidepanels = [...sidepanels.reverse()];\n\n reversedOpenedSidepanels\n .forEach((sidepanelRef: KbqSidepanelRef) => sidepanelRef.close());\n }\n\n private getBackdropClass(config: KbqSidepanelConfig): string {\n if (config.hasBackdrop && config.backdropClass) {\n return config.backdropClass;\n }\n\n const hasOpenedSidepanelWithBackdrop = this.openedSidepanels\n .some((sidepanelRef) => sidepanelRef.config.hasBackdrop!);\n\n return config.requiredBackdrop || !hasOpenedSidepanelWithBackdrop ?\n 'cdk-overlay-dark-backdrop' :\n 'cdk-overlay-transparent-backdrop';\n }\n\n private getOpenedSidepanelsWithSamePosition(config: KbqSidepanelConfig): KbqSidepanelRef[] {\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: KbqSidepanelRef) {\n const index = this.openedSidepanels.indexOf(sidepanelRef);\n\n if (index > -1) {\n this.openedSidepanels.splice(index, 1);\n }\n }\n}\n","import {\n Component,\n Directive,\n ElementRef,\n Input,\n OnChanges,\n OnInit,\n Optional,\n SimpleChanges\n} from '@angular/core';\n\nimport { KbqSidepanelRef } from './sidepanel-ref';\nimport { KbqSidepanelService } from './sidepanel.service';\n\n\n/**\n * Button that will close the current sidepanel.\n */\n@Directive({\n selector: 'button[kbq-sidepanel-close], button[kbqSidepanelClose]',\n host: {\n '(click)': 'sidepanelRef.close(sidepanelResult)',\n class: 'kbq-sidepanel-close'\n }\n})\nexport class KbqSidepanelClose implements OnInit, OnChanges {\n @Input('kbq-sidepanel-close') sidepanelResult: any;\n\n @Input('kbqSidepanelClose') kbqSidepanelClose: any;\n\n constructor(\n @Optional() public sidepanelRef: KbqSidepanelRef,\n private elementRef: ElementRef<HTMLElement>,\n private sidepanelService: KbqSidepanelService\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.kbqSidepanelClose || 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: 'kbq-sidepanel-header',\n template: `\n <div class=\"kbq-sidepanel-title\" kbq-title>\n <ng-content></ng-content>\n </div>\n\n <button *ngIf=\"closeable\"\n kbq-button\n kbq-sidepanel-close\n [color]=\"'contrast'\"\n [kbqStyle]=\"'transparent'\">\n <i kbq-icon=\"mc-close-L_16\" [color]=\"'contrast'\"></i>\n </button>\n `,\n host: {\n class: 'kbq-sidepanel-header'\n }\n})\nexport class KbqSidepanelHeader {\n @Input() closeable: boolean;\n}\n\n/**\n * Scrollable content container of a sidepanel.\n */\n@Directive({\n selector: 'kbq-sidepanel-body, [kbq-sidepanel-body], kbqSidepanelBody',\n host: {\n class: 'kbq-sidepanel-body kbq-scrollbar'\n }\n})\nexport class KbqSidepanelBody {}\n\n/**\n * Footer of a sidepanel.\n */\n@Directive({\n selector: 'kbq-sidepanel-footer, [kbq-sidepanel-footer], kbqSidepanelFooter',\n host: {\n class: 'kbq-sidepanel-footer'\n }\n})\nexport class KbqSidepanelFooter {}\n\n/**\n * Actions block of a sidepanel footer.\n */\n@Directive({\n selector: 'kbq-sidepanel-actions, [kbq-sidepanel-actions], kbqSidepanelActions',\n host: {\n class: 'kbq-sidepanel-actions'\n }\n})\nexport class KbqSidepanelActions {}\n\n/**\n * Finds the closest KbqSidepanelRef 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: KbqSidepanelRef[]) {\n let parent: HTMLElement | null = element.nativeElement.parentElement;\n\n while (parent && !parent.classList.contains('kbq-sidepanel-container')) {\n parent = parent.parentElement;\n }\n\n return parent ?\n openSidepanels.find((sidepanel) => sidepanel.id === parent!.id) :\n null;\n}\n","import { A11yModule, ConfigurableFocusTrapFactory, FocusTrapFactory } from '@angular/cdk/a11y';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { KbqButtonModule } from '@koobiq/components/button';\r\nimport { KbqCommonModule } from '@koobiq/components/core';\r\nimport { KbqIconModule } from '@koobiq/components/icon';\r\nimport { KbqTitleModule } from '@koobiq/components/title';\r\n\r\nimport { KbqSidepanelContainerComponent } from './sidepanel-container.component';\r\nimport {\r\n KbqSidepanelActions,\r\n KbqSidepanelBody,\r\n KbqSidepanelClose,\r\n KbqSidepanelFooter,\r\n KbqSidepanelHeader\r\n} from './sidepanel-directives';\r\nimport { KbqSidepanelService } from './sidepanel.service';\r\n\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n OverlayModule,\r\n PortalModule,\r\n KbqCommonModule,\r\n KbqButtonModule,\r\n KbqIconModule,\r\n KbqTitleModule,\r\n A11yModule\r\n ],\r\n providers: [\r\n KbqSidepanelService,\r\n { provide: FocusTrapFactory, useClass: ConfigurableFocusTrapFactory }\r\n ],\r\n declarations: [\r\n KbqSidepanelContainerComponent,\r\n KbqSidepanelClose,\r\n KbqSidepanelHeader,\r\n KbqSidepanelBody,\r\n KbqSidepanelFooter,\r\n KbqSidepanelActions\r\n ],\r\n exports: [\r\n KbqSidepanelContainerComponent,\r\n KbqSidepanelClose,\r\n KbqSidepanelHeader,\r\n KbqSidepanelBody,\r\n KbqSidepanelFooter,\r\n KbqSidepanelActions\r\n ]\r\n})\r\nexport class KbqSidepanelModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.KbqSidepanelConfig","i1.KbqSidepanelRef","i2.KbqSidepanelService","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA;MACa,kBAAkB,GAAG,IAAI,cAAc,CAAM,kBAAkB,EAAE;IAElE,qBAKX;AALD,CAAA,UAAY,oBAAoB,EAAA;AAC5B,IAAA,oBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,oBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACrB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,GAK/B,EAAA,CAAA,CAAA,CAAA;IAEW,iBAIX;AAJD,CAAA,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ACf,aAAa;wBACb,cAAc;wBACd,UAAU;AACb,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACP,mBAAmB;AACnB,wBAAA,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,4BAA4B,EAAE;AACxE,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,8BAA8B;wBAC9B,iBAAiB;wBACjB,kBAAkB;wBAClB,gBAAgB;wBAChB,kBAAkB;wBAClB,mBAAmB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,8BAA8B;wBAC9B,iBAAiB;wBACjB,kBAAkB;wBAClB,gBAAgB;wBAChB,kBAAkB;wBAClB,mBAAmB;AACtB,qBAAA;AACJ,iBAAA,CAAA;;;ACpDD;;AAEG;;;;"}
1
+ {"version":3,"file":"koobiq-components-sidepanel.mjs","sources":["../../../packages/components/sidepanel/sidepanel-config.ts","../../../packages/components/sidepanel/sidepanel-animations.ts","../../../packages/components/sidepanel/sidepanel-container.component.ts","../../../packages/components/sidepanel/sidepanel-container.component.html","../../../packages/components/sidepanel/sidepanel-ref.ts","../../../packages/components/sidepanel/sidepanel.service.ts","../../../packages/components/sidepanel/sidepanel-directives.ts","../../../packages/components/sidepanel/sidepanel.module.ts","../../../packages/components/sidepanel/koobiq-components-sidepanel.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/** Injection token that can be used to access the data that was passed in to a sidepanel. */\nexport const KBQ_SIDEPANEL_DATA = new InjectionToken<any>('KbqSidepanelData');\n\nexport enum KbqSidepanelPosition {\n Right = 'right',\n Left = 'left',\n Top = 'top',\n Bottom = 'bottom'\n}\n\nexport enum KbqSidepanelSize {\n Small = 'small',\n Medium = 'medium',\n Large = 'large'\n}\n\nexport class KbqSidepanelConfig<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?: KbqSidepanelPosition = KbqSidepanelPosition.Right;\n\n size?: KbqSidepanelSize = KbqSidepanelSize.Medium;\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 '@koobiq/components/core';\nimport { KbqSidepanelPosition } from './sidepanel-config';\n\nexport enum KbqSidepanelAnimationState {\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 kbqSidepanelTransformAnimation: Record<KbqSidepanelPosition, { 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 kbqSidepanelAnimations: { readonly sidepanelState: AnimationTriggerMetadata } = {\n sidepanelState: trigger('state', [\n state('hidden', style({ transform: '{{transformIn}}' }), {\n params: { transformIn: kbqSidepanelTransformAnimation[KbqSidepanelPosition.Right].in }\n }),\n state('visible', style({ transform: '{{transformOut}}' }), {\n params: { transformOut: kbqSidepanelTransformAnimation[KbqSidepanelPosition.Right].out }\n }),\n transition('visible => void, visible => hidden', animate(`200ms ${AnimationCurves.AccelerationCurve}`)),\n transition('void => visible', animate(`200ms ${AnimationCurves.DecelerationCurve}`))\n ])\n};\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';\nimport {\n KbqSidepanelAnimationState,\n kbqSidepanelAnimations,\n kbqSidepanelTransformAnimation\n} from './sidepanel-animations';\nimport { KbqSidepanelConfig, KbqSidepanelPosition } from './sidepanel-config';\n\nexport const KBQ_SIDEPANEL_WITH_INDENT = new InjectionToken<boolean>('kbq-sidepanel-with-indent');\n\nexport const KBQ_SIDEPANEL_WITH_SHADOW = new InjectionToken<boolean>('kbq-sidepanel-with-shadow');\n\n@Component({\n selector: 'kbq-sidepanel-container',\n templateUrl: './sidepanel-container.component.html',\n styleUrls: ['./sidepanel.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n animations: [kbqSidepanelAnimations.sidepanelState],\n host: {\n class: 'kbq-sidepanel-container',\n '[class]': 'size',\n '[class.kbq-sidepanel_nested]': 'withIndent',\n '[class.kbq-sidepanel-container_shadowed]': 'withShadow',\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 KbqSidepanelContainerComponent 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: KbqSidepanelAnimationState = KbqSidepanelAnimationState.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 get size(): string {\n return `kbq-sidepanel_${this.sidepanelConfig.size}`;\n }\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: KbqSidepanelConfig,\n @Inject(KBQ_SIDEPANEL_WITH_INDENT) public withIndent: boolean,\n @Inject(KBQ_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 return;\n }\n\n this.animationState = KbqSidepanelAnimationState.Visible;\n this.changeDetectorRef.detectChanges();\n }\n\n /** Begin animation of the sidepanel exiting from view. */\n exit(): void {\n if (this.destroyed) {\n return;\n }\n\n this.animationState = KbqSidepanelAnimationState.Hidden;\n this.changeDetectorRef.markForCheck();\n }\n\n onAnimation(event: AnimationEvent) {\n this.animationStateChanged.emit(event);\n }\n\n private setAnimation() {\n const position: KbqSidepanelPosition = this.sidepanelConfig.position!;\n\n this.animationTransform = {\n transformIn: kbqSidepanelTransformAnimation[position].in,\n transformOut: kbqSidepanelTransformAnimation[position].out\n };\n }\n\n private setPanelClass() {\n const element: HTMLElement = this.elementRef.nativeElement;\n const position: KbqSidepanelPosition = this.sidepanelConfig.position!;\n\n element.classList.add(`kbq-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","<div class=\"kbq-sidepanel-wrapper\">\n <div\n *ngIf=\"withIndent\"\n class=\"kbq-sidepanel-indent\"\n (click)=\"exit()\"\n ></div>\n\n <div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n class=\"kbq-sidepanel-content\"\n >\n <ng-template cdkPortalOutlet></ng-template>\n </div>\n</div>\n","import { OverlayRef } from '@angular/cdk/overlay';\nimport { ESCAPE } from '@koobiq/cdk/keycodes';\nimport { merge, Observable, Subject } from 'rxjs';\nimport { filter, take } from 'rxjs/operators';\nimport { KbqSidepanelAnimationState } from './sidepanel-animations';\nimport { KbqSidepanelConfig } from './sidepanel-config';\nimport { KbqSidepanelContainerComponent } from './sidepanel-container.component';\n\n// Counter for unique sidepanel ids.\nlet uniqueId = 0;\n\nexport class KbqSidepanelRef<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: KbqSidepanelContainerComponent,\n private overlayRef: OverlayRef,\n public config: KbqSidepanelConfig\n ) {\n this.id = this.config.id || `kbq-sidepanel-${uniqueId++}`;\n this.containerInstance.id = this.id;\n\n // Emit when opening animation completes\n containerInstance.animationStateChanged\n .pipe(\n filter((event) => event.phaseName === 'done' && event.toState === KbqSidepanelAnimationState.Visible),\n take(1)\n )\n .subscribe(() => {\n this.afterOpened$.next();\n this.afterOpened$.complete();\n });\n\n // Dispose overlay when closing animation is complete\n containerInstance.animationStateChanged\n .pipe(\n filter((event) => event.phaseName === 'done' && event.toState === KbqSidepanelAnimationState.Hidden),\n take(1)\n )\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\n .pipe(\n filter((event) => event.phaseName === 'done'),\n take(1)\n )\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","import { Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal, ComponentType, TemplatePortal } from '@angular/cdk/portal';\nimport {\n ComponentRef,\n Inject,\n Injectable,\n InjectionToken,\n Injector,\n OnDestroy,\n Optional,\n SkipSelf,\n TemplateRef\n} from '@angular/core';\nimport { KBQ_SIDEPANEL_DATA, KbqSidepanelConfig } from './sidepanel-config';\nimport {\n KBQ_SIDEPANEL_WITH_INDENT,\n KBQ_SIDEPANEL_WITH_SHADOW,\n KbqSidepanelContainerComponent\n} from './sidepanel-container.component';\nimport { KbqSidepanelRef } from './sidepanel-ref';\n\n/** Injection token that can be used to specify default sidepanel options. */\nexport const KBQ_SIDEPANEL_DEFAULT_OPTIONS = new InjectionToken<KbqSidepanelConfig>('kbq-sidepanel-default-options');\n\n@Injectable()\nexport class KbqSidepanelService implements OnDestroy {\n private openedSidepanelsAtThisLevel: KbqSidepanelRef[] = [];\n\n /** Keeps track of the currently-open sidepanels. */\n get openedSidepanels(): KbqSidepanelRef[] {\n return this.parentSidepanelService\n ? this.parentSidepanelService.openedSidepanels\n : this.openedSidepanelsAtThisLevel;\n }\n\n constructor(\n private overlay: Overlay,\n private injector: Injector,\n @Optional() @Inject(KBQ_SIDEPANEL_DEFAULT_OPTIONS) private defaultOptions: KbqSidepanelConfig,\n @Optional() @SkipSelf() private parentSidepanelService: KbqSidepanelService\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?: KbqSidepanelConfig<D>\n ): KbqSidepanelRef<T> {\n const fullConfig = {\n ...(this.defaultOptions || new KbqSidepanelConfig()),\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 overlayRef.hostElement.classList.add('kbq-sidepanel-overlay');\n const container = this.attachContainer(overlayRef, fullConfig);\n const ref = new KbqSidepanelRef(container, overlayRef, fullConfig);\n\n if (componentOrTemplateRef instanceof TemplateRef) {\n container.attachTemplatePortal(\n new TemplatePortal<T>(componentOrTemplateRef, null!, {\n $implicit: fullConfig.data,\n sidepanelRef: ref\n } as any)\n );\n } else {\n const portal = new ComponentPortal(\n componentOrTemplateRef,\n undefined,\n this.createInjector(fullConfig, ref, container)\n );\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\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): KbqSidepanelRef | 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: KbqSidepanelConfig): KbqSidepanelContainerComponent {\n const openedSidepanelsWithSamePosition = this.getOpenedSidepanelsWithSamePosition(config);\n\n const injector = Injector.create({\n parent: this.injector,\n providers: [\n { provide: KbqSidepanelConfig, useValue: config },\n { provide: KBQ_SIDEPANEL_WITH_INDENT, useValue: openedSidepanelsWithSamePosition.length >= 1 },\n // tslint:disable-next-line:no-magic-numbers\n { provide: KBQ_SIDEPANEL_WITH_SHADOW, useValue: openedSidepanelsWithSamePosition.length < 2 }\n ]\n });\n\n const containerPortal = new ComponentPortal(KbqSidepanelContainerComponent, undefined, injector);\n const containerRef: ComponentRef<KbqSidepanelContainerComponent> = 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: KbqSidepanelConfig,\n sidepanelRef: KbqSidepanelRef<T>,\n sidepanelContainer: KbqSidepanelContainerComponent\n ): Injector {\n // The KbqSidepanelContainerComponent is injected in the portal as the KbqSidepanelContainerComponent 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 KbqSidepanelContainerComponent is explicitly\n // added to the injection tokens.\n\n return Injector.create({\n parent: this.injector,\n providers: [\n { provide: KbqSidepanelContainerComponent, useValue: sidepanelContainer },\n { provide: KBQ_SIDEPANEL_DATA, useValue: config.data },\n { provide: KbqSidepanelRef, useValue: sidepanelRef }\n ]\n });\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: KbqSidepanelConfig): 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: KbqSidepanelRef[]) {\n const reversedOpenedSidepanels = [...sidepanels.reverse()];\n\n reversedOpenedSidepanels.forEach((sidepanelRef: KbqSidepanelRef) => sidepanelRef.close());\n }\n\n private getBackdropClass(config: KbqSidepanelConfig): string {\n if (config.hasBackdrop && config.backdropClass) {\n return config.backdropClass;\n }\n\n const hasOpenedSidepanelWithBackdrop = this.openedSidepanels.some(\n (sidepanelRef) => sidepanelRef.config.hasBackdrop!\n );\n\n return config.requiredBackdrop || !hasOpenedSidepanelWithBackdrop\n ? 'cdk-overlay-dark-backdrop'\n : 'cdk-overlay-transparent-backdrop';\n }\n\n private getOpenedSidepanelsWithSamePosition(config: KbqSidepanelConfig): KbqSidepanelRef[] {\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: KbqSidepanelRef) {\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';\nimport { KbqSidepanelRef } from './sidepanel-ref';\nimport { KbqSidepanelService } from './sidepanel.service';\n\n/**\n * Button that will close the current sidepanel.\n */\n@Directive({\n selector: 'button[kbq-sidepanel-close], button[kbqSidepanelClose]',\n host: {\n '(click)': 'sidepanelRef.close(sidepanelResult)',\n class: 'kbq-sidepanel-close'\n }\n})\nexport class KbqSidepanelClose implements OnInit, OnChanges {\n @Input('kbq-sidepanel-close') sidepanelResult: any;\n\n @Input('kbqSidepanelClose') kbqSidepanelClose: any;\n\n constructor(\n @Optional() public sidepanelRef: KbqSidepanelRef,\n private elementRef: ElementRef<HTMLElement>,\n private sidepanelService: KbqSidepanelService\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.kbqSidepanelClose || 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: 'kbq-sidepanel-header',\n template: `\n <div\n class=\"kbq-sidepanel-title\"\n kbq-title\n >\n <ng-content></ng-content>\n </div>\n\n <button\n *ngIf=\"closeable\"\n [color]=\"'contrast'\"\n [kbqStyle]=\"'transparent'\"\n kbq-button\n kbq-sidepanel-close\n >\n <i\n [color]=\"'contrast'\"\n kbq-icon=\"mc-close-L_16\"\n ></i>\n </button>\n `,\n host: {\n class: 'kbq-sidepanel-header'\n }\n})\nexport class KbqSidepanelHeader {\n @Input() closeable: boolean;\n}\n\n/**\n * Scrollable content container of a sidepanel.\n */\n@Directive({\n selector: 'kbq-sidepanel-body, [kbq-sidepanel-body], kbqSidepanelBody',\n host: {\n class: 'kbq-sidepanel-body kbq-scrollbar'\n }\n})\nexport class KbqSidepanelBody {}\n\n/**\n * Footer of a sidepanel.\n */\n@Directive({\n selector: 'kbq-sidepanel-footer, [kbq-sidepanel-footer], kbqSidepanelFooter',\n host: {\n class: 'kbq-sidepanel-footer'\n }\n})\nexport class KbqSidepanelFooter {}\n\n/**\n * Actions block of a sidepanel footer.\n */\n@Directive({\n selector: 'kbq-sidepanel-actions, [kbq-sidepanel-actions], kbqSidepanelActions',\n host: {\n class: 'kbq-sidepanel-actions'\n }\n})\nexport class KbqSidepanelActions {}\n\n/**\n * Finds the closest KbqSidepanelRef 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: KbqSidepanelRef[]) {\n let parent: HTMLElement | null = element.nativeElement.parentElement;\n\n while (parent && !parent.classList.contains('kbq-sidepanel-container')) {\n parent = parent.parentElement;\n }\n\n return parent ? openSidepanels.find((sidepanel) => sidepanel.id === parent!.id) : null;\n}\n","import { A11yModule, ConfigurableFocusTrapFactory, FocusTrapFactory } from '@angular/cdk/a11y';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { KbqButtonModule } from '@koobiq/components/button';\nimport { KbqCommonModule } from '@koobiq/components/core';\nimport { KbqIconModule } from '@koobiq/components/icon';\nimport { KbqTitleModule } from '@koobiq/components/title';\nimport { KbqSidepanelContainerComponent } from './sidepanel-container.component';\nimport {\n KbqSidepanelActions,\n KbqSidepanelBody,\n KbqSidepanelClose,\n KbqSidepanelFooter,\n KbqSidepanelHeader\n} from './sidepanel-directives';\nimport { KbqSidepanelService } from './sidepanel.service';\n\n@NgModule({\n imports: [\n CommonModule,\n OverlayModule,\n PortalModule,\n KbqCommonModule,\n KbqButtonModule,\n KbqIconModule,\n KbqTitleModule,\n A11yModule\n ],\n providers: [\n KbqSidepanelService,\n { provide: FocusTrapFactory, useClass: ConfigurableFocusTrapFactory }],\n declarations: [\n KbqSidepanelContainerComponent,\n KbqSidepanelClose,\n KbqSidepanelHeader,\n KbqSidepanelBody,\n KbqSidepanelFooter,\n KbqSidepanelActions\n ],\n exports: [\n KbqSidepanelContainerComponent,\n KbqSidepanelClose,\n KbqSidepanelHeader,\n KbqSidepanelBody,\n KbqSidepanelFooter,\n KbqSidepanelActions\n ]\n})\nexport class KbqSidepanelModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.KbqSidepanelConfig","i1.KbqSidepanelRef","i2.KbqSidepanelService","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA;MACa,kBAAkB,GAAG,IAAI,cAAc,CAAM,kBAAkB,EAAE;IAElE,qBAKX;AALD,CAAA,UAAY,oBAAoB,EAAA;AAC5B,IAAA,oBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,oBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACrB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,GAK/B,EAAA,CAAA,CAAA,CAAA;IAEW,iBAIX;AAJD,CAAA,UAAY,gBAAgB,EAAA;AACxB,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACnB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,GAI3B,EAAA,CAAA,CAAA,CAAA;MAEY,kBAAkB,CAAA;AAA/B,IAAA,WAAA,GAAA;;QAKI,IAAI,CAAA,IAAA,GAAc,IAAI,CAAC;AAEvB,QAAA,IAAA,CAAA,QAAQ,GAA0B,oBAAoB,CAAC,KAAK,CAAC;AAE7D,QAAA,IAAA,CAAA,IAAI,GAAsB,gBAAgB,CAAC,MAAM,CAAC;;QAGlD,IAAW,CAAA,WAAA,GAAa,IAAI,CAAC;;QAK7B,IAAgB,CAAA,gBAAA,GAAa,KAAK,CAAC;;QAGnC,IAAY,CAAA,YAAA,GAAa,KAAK,CAAC;;QAG/B,IAAiB,CAAA,iBAAA,GAAuB,EAAE,CAAC;KAC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