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

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 (498) 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/_animation.scss +8 -8
  24. package/core/styles/common/_list.scss +23 -62
  25. package/core/styles/theming/_components-theming.scss +331 -331
  26. package/core/styles/theming/_theming.scss +3 -3
  27. package/core/styles/typography/_typography-utils.scss +8 -1
  28. package/core/styles/typography/_typography.scss +7 -7
  29. package/core/styles/visual/_layout.scss +1 -1
  30. package/core/utils/data-size/index.d.ts +1 -1
  31. package/core/utils/public-api.d.ts +1 -1
  32. package/datepicker/datepicker-input.directive.d.ts +1 -0
  33. package/datepicker/public-api.d.ts +4 -4
  34. package/dl/public-api.d.ts +1 -1
  35. package/dropdown/_dropdown-theme.scss +4 -1
  36. package/dropdown/dropdown-content.directive.d.ts +1 -1
  37. package/dropdown/dropdown-item.component.d.ts +1 -1
  38. package/dropdown/dropdown-item.scss +9 -6
  39. package/dropdown/dropdown.component.d.ts +1 -1
  40. package/dropdown/public-api.d.ts +5 -5
  41. package/ellipsis-center/ellipsis-center.directive.d.ts +1 -1
  42. package/empty-state/public-api.d.ts +1 -1
  43. package/esm2022/alert/alert.component.mjs +3 -3
  44. package/esm2022/alert/alert.module.mjs +1 -1
  45. package/esm2022/alert/public-api.mjs +2 -2
  46. package/esm2022/autocomplete/autocomplete-origin.directive.mjs +1 -1
  47. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +23 -31
  48. package/esm2022/autocomplete/autocomplete.component.mjs +14 -9
  49. package/esm2022/autocomplete/autocomplete.module.mjs +3 -3
  50. package/esm2022/autocomplete/public-api.mjs +3 -3
  51. package/esm2022/badge/badge.component.mjs +6 -4
  52. package/esm2022/badge/badge.module.mjs +1 -1
  53. package/esm2022/badge/public-api.mjs +2 -2
  54. package/esm2022/button/button.component.mjs +12 -9
  55. package/esm2022/button/button.module.mjs +1 -1
  56. package/esm2022/button/public-api.mjs +2 -2
  57. package/esm2022/button-toggle/button-toggle.component.mjs +24 -16
  58. package/esm2022/button-toggle/button-toggle.module.mjs +1 -1
  59. package/esm2022/button-toggle/public-api.mjs +2 -2
  60. package/esm2022/card/card.component.mjs +2 -2
  61. package/esm2022/card/card.module.mjs +1 -1
  62. package/esm2022/card/public-api.mjs +2 -2
  63. package/esm2022/checkbox/checkbox-config.mjs +1 -1
  64. package/esm2022/checkbox/checkbox-module.mjs +1 -1
  65. package/esm2022/checkbox/checkbox-required-validator.mjs +1 -1
  66. package/esm2022/checkbox/checkbox.mjs +6 -6
  67. package/esm2022/checkbox/public-api.mjs +1 -1
  68. package/esm2022/code-block/actionbar.component.mjs +4 -6
  69. package/esm2022/code-block/code-block.component.mjs +16 -13
  70. package/esm2022/code-block/code-block.module.mjs +9 -5
  71. package/esm2022/code-block/public-api.mjs +2 -2
  72. package/esm2022/core/animation/fade-animations.mjs +1 -1
  73. package/esm2022/core/animation/index.mjs +2 -2
  74. package/esm2022/core/animation/select-animations.mjs +2 -2
  75. package/esm2022/core/common-behaviors/color.mjs +4 -2
  76. package/esm2022/core/common-behaviors/common-module.mjs +2 -2
  77. package/esm2022/core/common-behaviors/constructor.mjs +1 -1
  78. package/esm2022/core/common-behaviors/disabled.mjs +1 -1
  79. package/esm2022/core/common-behaviors/error-state.mjs +1 -1
  80. package/esm2022/core/common-behaviors/index.mjs +4 -4
  81. package/esm2022/core/common-behaviors/tabindex.mjs +1 -1
  82. package/esm2022/core/datetime/date-adapter.mjs +1 -1
  83. package/esm2022/core/datetime/date-formats.mjs +1 -1
  84. package/esm2022/core/datetime/index.mjs +2 -2
  85. package/esm2022/core/error/error-options.mjs +1 -1
  86. package/esm2022/core/form-field/form-field-ref.mjs +1 -1
  87. package/esm2022/core/formatters/date/formatter.mjs +1 -1
  88. package/esm2022/core/formatters/date/formatter.pipe.mjs +1 -1
  89. package/esm2022/core/formatters/index.mjs +2 -2
  90. package/esm2022/core/formatters/number/formatter.mjs +19 -20
  91. package/esm2022/core/forms/forms-module.mjs +1 -1
  92. package/esm2022/core/forms/forms.directive.mjs +1 -1
  93. package/esm2022/core/forms/index.mjs +2 -2
  94. package/esm2022/core/highlight/highlight.pipe.mjs +1 -1
  95. package/esm2022/core/highlight/index.mjs +1 -1
  96. package/esm2022/core/label/label-options.mjs +1 -1
  97. package/esm2022/core/line/line.mjs +2 -2
  98. package/esm2022/core/locales/en-US.mjs +1 -1
  99. package/esm2022/core/locales/es-LA.mjs +1 -1
  100. package/esm2022/core/locales/fa-IR.mjs +1 -1
  101. package/esm2022/core/locales/index.mjs +2 -2
  102. package/esm2022/core/locales/locale-service.mjs +8 -5
  103. package/esm2022/core/locales/locale-service.module.mjs +1 -1
  104. package/esm2022/core/locales/pt-BR.mjs +1 -1
  105. package/esm2022/core/locales/ru-RU.mjs +3 -3
  106. package/esm2022/core/locales/zh-CN.mjs +1 -1
  107. package/esm2022/core/option/action.mjs +20 -12
  108. package/esm2022/core/option/index.mjs +3 -3
  109. package/esm2022/core/option/optgroup.mjs +4 -4
  110. package/esm2022/core/option/option-module.mjs +1 -1
  111. package/esm2022/core/option/option.mjs +13 -7
  112. package/esm2022/core/overlay/overlay-position-map.mjs +1 -1
  113. package/esm2022/core/pop-up/pop-up-trigger.mjs +15 -23
  114. package/esm2022/core/pop-up/pop-up.mjs +1 -1
  115. package/esm2022/core/public-api.mjs +4 -4
  116. package/esm2022/core/select/common.mjs +2 -2
  117. package/esm2022/core/select/constants.mjs +1 -1
  118. package/esm2022/core/select/index.mjs +4 -4
  119. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  120. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +1 -1
  121. package/esm2022/core/services/measure-scrollbar.service.mjs +1 -1
  122. package/esm2022/core/services/theme.service.mjs +2 -4
  123. package/esm2022/core/title/title-text-ref.mjs +1 -1
  124. package/esm2022/core/utils/data-size/config.mjs +1 -1
  125. package/esm2022/core/utils/data-size/data-size.pipe.mjs +2 -3
  126. package/esm2022/core/utils/data-size/index.mjs +2 -2
  127. package/esm2022/core/utils/data-size/size.mjs +3 -6
  128. package/esm2022/core/utils/public-api.mjs +2 -2
  129. package/esm2022/core/utils/utils.mjs +4 -2
  130. package/esm2022/core/validation/validation.mjs +4 -2
  131. package/esm2022/core/version.mjs +2 -2
  132. package/esm2022/datepicker/calendar-body.component.mjs +3 -3
  133. package/esm2022/datepicker/calendar-header.component.mjs +8 -7
  134. package/esm2022/datepicker/calendar.component.mjs +6 -6
  135. package/esm2022/datepicker/datepicker-animations.mjs +1 -1
  136. package/esm2022/datepicker/datepicker-errors.mjs +1 -1
  137. package/esm2022/datepicker/datepicker-input.directive.mjs +42 -34
  138. package/esm2022/datepicker/datepicker-intl.mjs +1 -1
  139. package/esm2022/datepicker/datepicker-module.mjs +2 -2
  140. package/esm2022/datepicker/datepicker-toggle.component.mjs +11 -10
  141. package/esm2022/datepicker/datepicker.component.mjs +15 -15
  142. package/esm2022/datepicker/month-view.component.mjs +14 -13
  143. package/esm2022/datepicker/public-api.mjs +5 -5
  144. package/esm2022/divider/divider.component.mjs +1 -1
  145. package/esm2022/divider/divider.module.mjs +1 -1
  146. package/esm2022/dl/dl.component.mjs +1 -1
  147. package/esm2022/dl/dl.module.mjs +2 -2
  148. package/esm2022/dl/public-api.mjs +2 -2
  149. package/esm2022/dropdown/dropdown-animations.mjs +2 -2
  150. package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
  151. package/esm2022/dropdown/dropdown-item.component.mjs +5 -5
  152. package/esm2022/dropdown/dropdown-trigger.directive.mjs +22 -28
  153. package/esm2022/dropdown/dropdown.component.mjs +10 -18
  154. package/esm2022/dropdown/dropdown.module.mjs +1 -1
  155. package/esm2022/dropdown/dropdown.types.mjs +1 -1
  156. package/esm2022/dropdown/public-api.mjs +6 -6
  157. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +3 -3
  158. package/esm2022/empty-state/empty-state.component.mjs +1 -1
  159. package/esm2022/empty-state/empty-state.module.mjs +2 -2
  160. package/esm2022/empty-state/public-api.mjs +2 -2
  161. package/esm2022/file-upload/file-drop.mjs +2 -2
  162. package/esm2022/file-upload/file-upload.mjs +1 -1
  163. package/esm2022/file-upload/file-upload.module.mjs +2 -2
  164. package/esm2022/file-upload/index.mjs +1 -1
  165. package/esm2022/file-upload/multiple-file-upload.component.mjs +16 -12
  166. package/esm2022/file-upload/public-api.mjs +2 -2
  167. package/esm2022/file-upload/single-file-upload.component.mjs +14 -10
  168. package/esm2022/form-field/cleaner.mjs +13 -3
  169. package/esm2022/form-field/form-field-control.mjs +1 -1
  170. package/esm2022/form-field/form-field-errors.mjs +1 -1
  171. package/esm2022/form-field/form-field.mjs +8 -13
  172. package/esm2022/form-field/form-field.module.mjs +1 -1
  173. package/esm2022/form-field/hint.mjs +2 -2
  174. package/esm2022/form-field/password-hint.mjs +13 -13
  175. package/esm2022/form-field/password-toggle.mjs +4 -7
  176. package/esm2022/form-field/prefix.mjs +1 -1
  177. package/esm2022/form-field/public-api.mjs +4 -4
  178. package/esm2022/form-field/stepper.mjs +33 -29
  179. package/esm2022/form-field/suffix.mjs +1 -1
  180. package/esm2022/form-field/validate.directive.mjs +6 -5
  181. package/esm2022/icon/icon-button.component.mjs +2 -2
  182. package/esm2022/icon/icon-item.component.mjs +1 -1
  183. package/esm2022/icon/icon.component.mjs +3 -4
  184. package/esm2022/icon/icon.module.mjs +1 -1
  185. package/esm2022/icon/public-api.mjs +3 -3
  186. package/esm2022/input/input-number-validators.mjs +1 -1
  187. package/esm2022/input/input-number.mjs +34 -35
  188. package/esm2022/input/input-password.mjs +13 -7
  189. package/esm2022/input/input-value-accessor.mjs +1 -1
  190. package/esm2022/input/input.mjs +13 -7
  191. package/esm2022/input/input.module.mjs +1 -1
  192. package/esm2022/input/public-api.mjs +3 -3
  193. package/esm2022/link/link.component.mjs +2 -2
  194. package/esm2022/link/link.module.mjs +1 -1
  195. package/esm2022/link/public-api.mjs +2 -2
  196. package/esm2022/list/list-selection.component.mjs +34 -36
  197. package/esm2022/list/list.component.mjs +3 -3
  198. package/esm2022/list/list.module.mjs +2 -2
  199. package/esm2022/list/public-api.mjs +3 -3
  200. package/esm2022/loader-overlay/loader-overlay.component.mjs +3 -3
  201. package/esm2022/loader-overlay/loader-overlay.module.mjs +1 -1
  202. package/esm2022/loader-overlay/public-api.mjs +2 -2
  203. package/esm2022/markdown/markdown.component.mjs +20 -6
  204. package/esm2022/markdown/markdown.module.mjs +1 -1
  205. package/esm2022/markdown/markdown.service.mjs +1 -1
  206. package/esm2022/modal/css-unit.pipe.mjs +1 -1
  207. package/esm2022/modal/modal-control.service.mjs +3 -2
  208. package/esm2022/modal/modal-ref.class.mjs +1 -1
  209. package/esm2022/modal/modal-util.mjs +1 -1
  210. package/esm2022/modal/modal.component.mjs +50 -27
  211. package/esm2022/modal/modal.directive.mjs +27 -11
  212. package/esm2022/modal/modal.module.mjs +2 -2
  213. package/esm2022/modal/modal.service.mjs +3 -2
  214. package/esm2022/modal/modal.type.mjs +1 -1
  215. package/esm2022/modal/public-api.mjs +3 -3
  216. package/esm2022/navbar/index.mjs +1 -1
  217. package/esm2022/navbar/navbar-item.component.mjs +37 -28
  218. package/esm2022/navbar/navbar.component.mjs +19 -28
  219. package/esm2022/navbar/navbar.module.mjs +2 -2
  220. package/esm2022/navbar/public-api.mjs +3 -3
  221. package/esm2022/navbar/vertical-navbar.component.mjs +17 -18
  222. package/esm2022/popover/popover-animations.mjs +1 -1
  223. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  224. package/esm2022/popover/popover.component.mjs +5 -5
  225. package/esm2022/popover/popover.module.mjs +1 -1
  226. package/esm2022/popover/public-api.mjs +3 -3
  227. package/esm2022/progress-bar/progress-bar.component.mjs +4 -4
  228. package/esm2022/progress-bar/progress-bar.module.mjs +2 -2
  229. package/esm2022/progress-bar/public-api.mjs +2 -2
  230. package/esm2022/progress-spinner/progress-spinner.component.mjs +4 -4
  231. package/esm2022/progress-spinner/progress-spinner.module.mjs +1 -1
  232. package/esm2022/progress-spinner/public-api.mjs +2 -2
  233. package/esm2022/radio/public-api.mjs +2 -2
  234. package/esm2022/radio/radio.component.mjs +9 -10
  235. package/esm2022/radio/radio.module.mjs +1 -1
  236. package/esm2022/risk-level/public-api.mjs +2 -2
  237. package/esm2022/risk-level/risk-level.component.mjs +1 -1
  238. package/esm2022/risk-level/risk-level.module.mjs +1 -1
  239. package/esm2022/scrollbar/public-api.mjs +2 -2
  240. package/esm2022/scrollbar/scrollbar.component.mjs +13 -11
  241. package/esm2022/scrollbar/scrollbar.directive.mjs +3 -3
  242. package/esm2022/scrollbar/scrollbar.module.mjs +2 -2
  243. package/esm2022/scrollbar/scrollbar.types.mjs +3 -2
  244. package/esm2022/select/public-api.mjs +3 -3
  245. package/esm2022/select/select-option.directive.mjs +8 -5
  246. package/esm2022/select/select.component.mjs +41 -64
  247. package/esm2022/select/select.module.mjs +1 -1
  248. package/esm2022/sidebar/public-api.mjs +2 -2
  249. package/esm2022/sidebar/sidebar-animations.mjs +1 -1
  250. package/esm2022/sidebar/sidebar.component.mjs +3 -3
  251. package/esm2022/sidebar/sidebar.module.mjs +1 -1
  252. package/esm2022/sidepanel/public-api.mjs +4 -4
  253. package/esm2022/sidepanel/sidepanel-animations.mjs +7 -3
  254. package/esm2022/sidepanel/sidepanel-config.mjs +1 -1
  255. package/esm2022/sidepanel/sidepanel-container.component.mjs +4 -4
  256. package/esm2022/sidepanel/sidepanel-directives.mjs +30 -16
  257. package/esm2022/sidepanel/sidepanel-ref.mjs +10 -4
  258. package/esm2022/sidepanel/sidepanel.module.mjs +1 -1
  259. package/esm2022/sidepanel/sidepanel.service.mjs +11 -14
  260. package/esm2022/splitter/public-api.mjs +2 -2
  261. package/esm2022/splitter/splitter.component.mjs +13 -23
  262. package/esm2022/splitter/splitter.module.mjs +1 -1
  263. package/esm2022/table/public-api.mjs +2 -2
  264. package/esm2022/table/table.component.mjs +1 -1
  265. package/esm2022/table/table.module.mjs +1 -1
  266. package/esm2022/tabs/paginated-tab-header.mjs +8 -11
  267. package/esm2022/tabs/public-api.mjs +6 -6
  268. package/esm2022/tabs/tab-body.component.mjs +9 -9
  269. package/esm2022/tabs/tab-content.directive.mjs +1 -1
  270. package/esm2022/tabs/tab-group.component.mjs +11 -13
  271. package/esm2022/tabs/tab-header.component.mjs +4 -4
  272. package/esm2022/tabs/tab-label-wrapper.directive.mjs +1 -1
  273. package/esm2022/tabs/tab-label.directive.mjs +1 -1
  274. package/esm2022/tabs/tab-nav-bar/index.mjs +1 -1
  275. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  276. package/esm2022/tabs/tab.component.mjs +4 -6
  277. package/esm2022/tabs/tabs-animations.mjs +1 -1
  278. package/esm2022/tabs/tabs.module.mjs +2 -2
  279. package/esm2022/tags/public-api.mjs +5 -5
  280. package/esm2022/tags/tag-default-options.mjs +1 -1
  281. package/esm2022/tags/tag-input.mjs +12 -14
  282. package/esm2022/tags/tag-list.component.mjs +14 -20
  283. package/esm2022/tags/tag-text-control.mjs +1 -1
  284. package/esm2022/tags/tag.component.mjs +5 -7
  285. package/esm2022/tags/tag.module.mjs +9 -5
  286. package/esm2022/textarea/index.mjs +1 -1
  287. package/esm2022/textarea/textarea.component.mjs +4 -6
  288. package/esm2022/textarea/textarea.module.mjs +1 -1
  289. package/esm2022/timepicker/public-api.mjs +2 -2
  290. package/esm2022/timepicker/timepicker.constants.mjs +6 -1
  291. package/esm2022/timepicker/timepicker.directive.mjs +62 -26
  292. package/esm2022/timepicker/timepicker.module.mjs +1 -1
  293. package/esm2022/timezone/cities-by-filter.pipe.mjs +1 -1
  294. package/esm2022/timezone/timezone-option.component.mjs +12 -11
  295. package/esm2022/timezone/timezone-option.directive.mjs +3 -3
  296. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  297. package/esm2022/timezone/timezone.module.mjs +1 -1
  298. package/esm2022/timezone/timezone.utils.mjs +5 -9
  299. package/esm2022/timezone/utc-offset.pipe.mjs +1 -1
  300. package/esm2022/title/public-api.mjs +2 -2
  301. package/esm2022/title/title.directive.mjs +9 -5
  302. package/esm2022/title/title.module.mjs +1 -1
  303. package/esm2022/toast/public-api.mjs +4 -4
  304. package/esm2022/toast/toast-animations.mjs +2 -2
  305. package/esm2022/toast/toast-container.component.mjs +3 -4
  306. package/esm2022/toast/toast.component.mjs +5 -5
  307. package/esm2022/toast/toast.module.mjs +1 -1
  308. package/esm2022/toast/toast.service.mjs +14 -30
  309. package/esm2022/toast/toast.type.mjs +1 -1
  310. package/esm2022/toggle/public-api.mjs +2 -2
  311. package/esm2022/toggle/toggle.component.mjs +17 -9
  312. package/esm2022/toggle/toggle.module.mjs +1 -1
  313. package/esm2022/tooltip/public-api.mjs +2 -2
  314. package/esm2022/tooltip/tooltip.animations.mjs +1 -1
  315. package/esm2022/tooltip/tooltip.component.mjs +7 -5
  316. package/esm2022/tooltip/tooltip.module.mjs +2 -2
  317. package/esm2022/tree/control/base-tree-control.mjs +1 -1
  318. package/esm2022/tree/control/flat-tree-control.filters.mjs +4 -7
  319. package/esm2022/tree/control/flat-tree-control.mjs +4 -7
  320. package/esm2022/tree/control/nested-tree-control.mjs +1 -1
  321. package/esm2022/tree/control/tree-control.mjs +1 -1
  322. package/esm2022/tree/data-source/flat-data-source.mjs +3 -8
  323. package/esm2022/tree/data-source/nested-data-source.mjs +2 -3
  324. package/esm2022/tree/node.mjs +1 -1
  325. package/esm2022/tree/outlet.mjs +1 -1
  326. package/esm2022/tree/padding.directive.mjs +4 -5
  327. package/esm2022/tree/public-api.mjs +11 -11
  328. package/esm2022/tree/toggle.mjs +8 -5
  329. package/esm2022/tree/tree-base.mjs +3 -3
  330. package/esm2022/tree/tree-errors.mjs +1 -1
  331. package/esm2022/tree/tree-option.component.mjs +9 -13
  332. package/esm2022/tree/tree-selection.component.mjs +17 -36
  333. package/esm2022/tree/tree.mjs +7 -3
  334. package/esm2022/tree/tree.module.mjs +4 -4
  335. package/esm2022/tree-select/public-api.mjs +2 -2
  336. package/esm2022/tree-select/tree-select.component.mjs +54 -64
  337. package/esm2022/tree-select/tree-select.module.mjs +1 -1
  338. package/fesm2022/koobiq-components-alert.mjs +6 -6
  339. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  340. package/fesm2022/koobiq-components-autocomplete.mjs +58 -61
  341. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  342. package/fesm2022/koobiq-components-badge.mjs +8 -6
  343. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  344. package/fesm2022/koobiq-components-button-toggle.mjs +28 -20
  345. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  346. package/fesm2022/koobiq-components-button.mjs +14 -11
  347. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  348. package/fesm2022/koobiq-components-card.mjs +2 -2
  349. package/fesm2022/koobiq-components-card.mjs.map +1 -1
  350. package/fesm2022/koobiq-components-checkbox.mjs +3 -3
  351. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  352. package/fesm2022/koobiq-components-code-block.mjs +33 -28
  353. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  354. package/fesm2022/koobiq-components-core.mjs +323 -315
  355. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  356. package/fesm2022/koobiq-components-datepicker.mjs +100 -89
  357. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  358. package/fesm2022/koobiq-components-divider.mjs.map +1 -1
  359. package/fesm2022/koobiq-components-dl.mjs +3 -3
  360. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  361. package/fesm2022/koobiq-components-dropdown.mjs +124 -138
  362. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  363. package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
  364. package/fesm2022/koobiq-components-empty-state.mjs +3 -3
  365. package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
  366. package/fesm2022/koobiq-components-file-upload.mjs +45 -37
  367. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  368. package/fesm2022/koobiq-components-form-field.mjs +69 -62
  369. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  370. package/fesm2022/koobiq-components-icon.mjs +3 -4
  371. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  372. package/fesm2022/koobiq-components-input.mjs +61 -50
  373. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  374. package/fesm2022/koobiq-components-link.mjs +1 -1
  375. package/fesm2022/koobiq-components-link.mjs.map +1 -1
  376. package/fesm2022/koobiq-components-list.mjs +39 -41
  377. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  378. package/fesm2022/koobiq-components-loader-overlay.mjs +6 -6
  379. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  380. package/fesm2022/koobiq-components-markdown.mjs +18 -4
  381. package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
  382. package/fesm2022/koobiq-components-modal.mjs +84 -44
  383. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  384. package/fesm2022/koobiq-components-navbar.mjs +74 -75
  385. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  386. package/fesm2022/koobiq-components-popover.mjs +12 -12
  387. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  388. package/fesm2022/koobiq-components-progress-bar.mjs +5 -5
  389. package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
  390. package/fesm2022/koobiq-components-progress-spinner.mjs +5 -5
  391. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  392. package/fesm2022/koobiq-components-radio.mjs +11 -12
  393. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  394. package/fesm2022/koobiq-components-risk-level.mjs +2 -2
  395. package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
  396. package/fesm2022/koobiq-components-scrollbar.mjs +15 -12
  397. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  398. package/fesm2022/koobiq-components-select.mjs +52 -72
  399. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  400. package/fesm2022/koobiq-components-sidebar.mjs +3 -3
  401. package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
  402. package/fesm2022/koobiq-components-sidepanel.mjs +108 -87
  403. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  404. package/fesm2022/koobiq-components-splitter.mjs +15 -25
  405. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  406. package/fesm2022/koobiq-components-table.mjs +3 -3
  407. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  408. package/fesm2022/koobiq-components-tabs.mjs +36 -43
  409. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  410. package/fesm2022/koobiq-components-tags.mjs +38 -44
  411. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  412. package/fesm2022/koobiq-components-textarea.mjs +2 -4
  413. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  414. package/fesm2022/koobiq-components-timepicker.mjs +69 -28
  415. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  416. package/fesm2022/koobiq-components-timezone.mjs +16 -19
  417. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  418. package/fesm2022/koobiq-components-title.mjs +11 -7
  419. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  420. package/fesm2022/koobiq-components-toast.mjs +69 -86
  421. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  422. package/fesm2022/koobiq-components-toggle.mjs +17 -9
  423. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  424. package/fesm2022/koobiq-components-tooltip.mjs +10 -8
  425. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  426. package/fesm2022/koobiq-components-tree-select.mjs +63 -73
  427. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  428. package/fesm2022/koobiq-components-tree.mjs +506 -535
  429. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  430. package/file-upload/multiple-file-upload.component.d.ts +2 -2
  431. package/file-upload/public-api.d.ts +1 -1
  432. package/file-upload/single-file-upload.component.d.ts +2 -2
  433. package/form-field/public-api.d.ts +3 -3
  434. package/icon/public-api.d.ts +2 -2
  435. package/input/public-api.d.ts +2 -2
  436. package/link/_link-theme.scss +1 -1
  437. package/link/link.component.d.ts +1 -1
  438. package/link/public-api.d.ts +1 -1
  439. package/list/list-selection.component.d.ts +2 -2
  440. package/list/list.scss +1 -1
  441. package/list/public-api.d.ts +2 -2
  442. package/loader-overlay/public-api.d.ts +1 -1
  443. package/modal/README.md +1 -1
  444. package/modal/modal.directive.d.ts +3 -3
  445. package/modal/modal.type.d.ts +2 -2
  446. package/modal/public-api.d.ts +2 -2
  447. package/navbar/_navbar-item_horizontal.scss +31 -23
  448. package/navbar/_navbar-item_vertical.scss +0 -2
  449. package/navbar/navbar-item.scss +7 -0
  450. package/navbar/public-api.d.ts +2 -2
  451. package/package.json +6 -6
  452. package/popover/popover.component.d.ts +1 -1
  453. package/popover/public-api.d.ts +2 -2
  454. package/prebuilt-themes/dark-theme.css +1 -1
  455. package/prebuilt-themes/light-theme.css +1 -1
  456. package/progress-bar/public-api.d.ts +1 -1
  457. package/progress-spinner/public-api.d.ts +1 -1
  458. package/radio/_radio-theme.scss +1 -0
  459. package/radio/public-api.d.ts +1 -1
  460. package/radio/radio.scss +12 -2
  461. package/risk-level/public-api.d.ts +1 -1
  462. package/schematics/ng-add/index.js +4 -4
  463. package/scrollbar/public-api.d.ts +1 -1
  464. package/scrollbar/scrollbar.directive.d.ts +1 -1
  465. package/scrollbar/scrollbar.types.d.ts +1 -1
  466. package/select/public-api.d.ts +2 -2
  467. package/select/select.component.d.ts +1 -1
  468. package/sidebar/public-api.d.ts +1 -1
  469. package/sidepanel/public-api.d.ts +3 -3
  470. package/sidepanel/sidepanel.scss +1 -1
  471. package/splitter/public-api.d.ts +1 -1
  472. package/table/public-api.d.ts +1 -1
  473. package/tabs/paginated-tab-header.d.ts +1 -1
  474. package/tabs/public-api.d.ts +5 -5
  475. package/tabs/tab-body.component.d.ts +3 -3
  476. package/tabs/tab-group.component.d.ts +1 -1
  477. package/tags/public-api.d.ts +4 -4
  478. package/tags/tag-input.d.ts +1 -1
  479. package/textarea/textarea.component.d.ts +1 -1
  480. package/timepicker/public-api.d.ts +1 -1
  481. package/timepicker/timepicker.constants.d.ts +2 -0
  482. package/timepicker/timepicker.directive.d.ts +10 -3
  483. package/timezone/timezone-option.directive.d.ts +1 -1
  484. package/timezone/timezone.utils.d.ts +1 -1
  485. package/title/public-api.d.ts +1 -1
  486. package/toast/public-api.d.ts +3 -3
  487. package/toast/toast.component.scss +4 -1
  488. package/toast/toast.service.d.ts +2 -2
  489. package/toast/toast.type.d.ts +1 -1
  490. package/toggle/public-api.d.ts +1 -1
  491. package/tooltip/public-api.d.ts +1 -1
  492. package/tooltip/tooltip.component.d.ts +2 -2
  493. package/tree/public-api.d.ts +10 -10
  494. package/tree/tree-base.d.ts +1 -1
  495. package/tree/tree-option.component.d.ts +1 -1
  496. package/tree/tree-selection.component.d.ts +1 -1
  497. package/tree-select/public-api.d.ts +1 -1
  498. package/tree-select/tree-select.component.d.ts +6 -4
@@ -1 +1 @@
1
- {"version":3,"file":"koobiq-components-divider.mjs","sources":["../../../packages/components/divider/divider.component.ts","../../../packages/components/divider/divider.module.ts","../../../packages/components/divider/koobiq-components-divider.ts"],"sourcesContent":["import { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\n\n\n@Component({\n selector: 'kbq-divider',\n host: {\n class: 'kbq-divider',\n '[class.kbq-divider_vertical]': 'vertical',\n '[class.kbq-divider_horizontal]': '!vertical',\n '[class.kbq-divider_inset]': 'inset',\n '[class.kbq-divider_paddings]': 'paddings'\n },\n template: '',\n styleUrls: ['divider.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class KbqDivider {\n // Whether the divider is vertically aligned.\n @Input()\n get vertical(): boolean {\n return this._vertical;\n }\n\n set vertical(value: boolean) {\n this._vertical = coerceBooleanProperty(value);\n }\n\n private _vertical: boolean = false;\n\n // Whether the divider is an inset divider.\n @Input()\n get inset(): boolean {\n return this._inset;\n }\n\n set inset(value: boolean) {\n this._inset = coerceBooleanProperty(value);\n }\n\n private _inset: boolean = false;\n\n @Input()\n get paddings(): boolean {\n return this._paddings;\n }\n\n set paddings(value: boolean) {\n this._paddings = coerceBooleanProperty(value);\n }\n\n private _paddings: boolean = true;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { KbqDivider } from './divider.component';\n\n\n@NgModule({\n imports: [CommonModule],\n exports: [KbqDivider],\n declarations: [KbqDivider]\n})\nexport class KbqDividerModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAkBa,UAAU,CAAA;AAdvB,IAAA,WAAA,GAAA;QAyBY,IAAS,CAAA,SAAA,GAAY,KAAK,CAAC;QAY3B,IAAM,CAA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A,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"koobiq-components-divider.mjs","sources":["../../../packages/components/divider/divider.component.ts","../../../packages/components/divider/divider.module.ts","../../../packages/components/divider/koobiq-components-divider.ts"],"sourcesContent":["import { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'kbq-divider',\n host: {\n class: 'kbq-divider',\n '[class.kbq-divider_vertical]': 'vertical',\n '[class.kbq-divider_horizontal]': '!vertical',\n '[class.kbq-divider_inset]': 'inset',\n '[class.kbq-divider_paddings]': 'paddings'\n },\n template: '',\n styleUrls: ['divider.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class KbqDivider {\n // Whether the divider is vertically aligned.\n @Input()\n get vertical(): boolean {\n return this._vertical;\n }\n\n set vertical(value: boolean) {\n this._vertical = coerceBooleanProperty(value);\n }\n\n private _vertical: boolean = false;\n\n // Whether the divider is an inset divider.\n @Input()\n get inset(): boolean {\n return this._inset;\n }\n\n set inset(value: boolean) {\n this._inset = coerceBooleanProperty(value);\n }\n\n private _inset: boolean = false;\n\n @Input()\n get paddings(): boolean {\n return this._paddings;\n }\n\n set paddings(value: boolean) {\n this._paddings = coerceBooleanProperty(value);\n }\n\n private _paddings: boolean = true;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { KbqDivider } from './divider.component';\n\n@NgModule({\n imports: [CommonModule],\n exports: [KbqDivider],\n declarations: [KbqDivider]\n})\nexport class KbqDividerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAiBa,UAAU,CAAA;AAdvB,IAAA,WAAA,GAAA;QAyBY,IAAS,CAAA,SAAA,GAAY,KAAK,CAAC;QAY3B,IAAM,CAAA,MAAA,GAAY,KAAK,CAAC;QAWxB,IAAS,CAAA,SAAA,GAA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import { A11yModule } from '@angular/cdk/a11y';
2
- import { PlatformModule } from '@angular/cdk/platform';
3
- import { CommonModule } from '@angular/common';
4
1
  import * as i0 from '@angular/core';
5
2
  import { Component, ViewEncapsulation, Input, NgModule } from '@angular/core';
6
3
  import { Subject, Subscription } from 'rxjs';
7
4
  import { debounceTime } from 'rxjs/operators';
5
+ import { A11yModule } from '@angular/cdk/a11y';
6
+ import { PlatformModule } from '@angular/cdk/platform';
7
+ import { CommonModule } from '@angular/common';
8
8
 
9
9
  class KbqDlComponent {
10
10
  constructor(elementRef) {
@@ -1 +1 @@
1
- {"version":3,"file":"koobiq-components-dl.mjs","sources":["../../../packages/components/dl/dl.component.ts","../../../packages/components/dl/dl.module.ts","../../../packages/components/dl/koobiq-components-dl.ts"],"sourcesContent":["import {\n AfterContentInit,\n Component,\n ElementRef,\n Input,\n OnDestroy,\n ViewEncapsulation\n} from '@angular/core';\nimport { Subject, Subscription } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\n\n\n@Component({\n selector: 'kbq-dl',\n template: '<ng-content></ng-content>',\n styleUrls: ['dl.scss'],\n host: {\n class: 'kbq-dl',\n '[class.kbq-dl_vertical]': 'vertical',\n '[class.kbq-dl_wide]': 'wide',\n '(window:resize)': 'resizeStream.next($event)'\n },\n encapsulation: ViewEncapsulation.None\n})\nexport class KbqDlComponent implements AfterContentInit, OnDestroy {\n @Input() minWidth: number = 400;\n @Input() wide = false;\n @Input() vertical: boolean | null = null;\n\n readonly resizeStream = new Subject<Event>();\n private readonly resizeDebounceInterval: number = 100;\n\n private resizeSubscription = Subscription.EMPTY;\n\n constructor(protected elementRef: ElementRef) {}\n\n ngAfterContentInit(): void {\n if (this.vertical !== null) { return; }\n\n this.resizeSubscription = this.resizeStream\n .pipe(debounceTime(this.resizeDebounceInterval))\n .subscribe(this.updateState);\n }\n\n ngOnDestroy() {\n this.resizeSubscription.unsubscribe();\n }\n\n updateState = () => {\n const { width } = this.elementRef.nativeElement.getClientRects()[0];\n\n this.vertical = width <= this.minWidth;\n }\n}\n\n@Component({\n selector: 'kbq-dt',\n template: '<ng-content></ng-content>',\n host: {\n class: 'kbq-dt'\n },\n encapsulation: ViewEncapsulation.None\n})\nexport class KbqDtComponent {}\n\n@Component({\n selector: 'kbq-dd',\n template: '<ng-content></ng-content>',\n host: {\n class: 'kbq-dd'\n },\n encapsulation: ViewEncapsulation.None\n})\nexport class KbqDdComponent {}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport { PlatformModule } from '@angular/cdk/platform';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport {\n KbqDlComponent,\n KbqDtComponent,\n KbqDdComponent\n} from './dl.component';\n\n\n@NgModule({\n imports: [\n CommonModule,\n A11yModule,\n PlatformModule\n ],\n exports: [\n KbqDlComponent,\n KbqDtComponent,\n KbqDdComponent\n ],\n declarations: [\n KbqDlComponent,\n KbqDtComponent,\n KbqDdComponent\n ]\n})\nexport class KbqDlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAwBa,cAAc,CAAA;AAUvB,IAAA,WAAA,CAAsB,UAAsB,EAAA;QAAtB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAY;QATnC,IAAQ,CAAA,QAAA,GAAW,GAAG,CAAC;QACvB,IAAI,CAAA,IAAA,GAAG,KAAK,CAAC;QACb,IAAQ,CAAA,QAAA,GAAmB,IAAI,CAAC;AAEhC,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAS,CAAC;QAC5B,IAAsB,CAAA,sBAAA,GAAW,GAAG,CAAC;AAE9C,QAAA,IAAA,CAAA,kBAAkB,GAAG,YAAY,CAAC,KAAK,CAAC;QAgBhD,IAAW,CAAA,WAAA,GAAG,MAAK;AACf,YAAA,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC;YAEpE,I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AAEG;;;;"}
1
+ {"version":3,"file":"koobiq-components-dl.mjs","sources":["../../../packages/components/dl/dl.component.ts","../../../packages/components/dl/dl.module.ts","../../../packages/components/dl/koobiq-components-dl.ts"],"sourcesContent":["import { AfterContentInit, Component, ElementRef, Input, OnDestroy, ViewEncapsulation } from '@angular/core';\nimport { Subject, Subscription } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\n\n@Component({\n selector: 'kbq-dl',\n template: '<ng-content></ng-content>',\n styleUrls: ['dl.scss'],\n host: {\n class: 'kbq-dl',\n '[class.kbq-dl_vertical]': 'vertical',\n '[class.kbq-dl_wide]': 'wide',\n '(window:resize)': 'resizeStream.next($event)'\n },\n encapsulation: ViewEncapsulation.None\n})\nexport class KbqDlComponent implements AfterContentInit, OnDestroy {\n @Input() minWidth: number = 400;\n @Input() wide = false;\n @Input() vertical: boolean | null = null;\n\n readonly resizeStream = new Subject<Event>();\n private readonly resizeDebounceInterval: number = 100;\n\n private resizeSubscription = Subscription.EMPTY;\n\n constructor(protected elementRef: ElementRef) {}\n\n ngAfterContentInit(): void {\n if (this.vertical !== null) {\n return;\n }\n\n this.resizeSubscription = this.resizeStream\n .pipe(debounceTime(this.resizeDebounceInterval))\n .subscribe(this.updateState);\n }\n\n ngOnDestroy() {\n this.resizeSubscription.unsubscribe();\n }\n\n updateState = () => {\n const { width } = this.elementRef.nativeElement.getClientRects()[0];\n\n this.vertical = width <= this.minWidth;\n };\n}\n\n@Component({\n selector: 'kbq-dt',\n template: '<ng-content></ng-content>',\n host: {\n class: 'kbq-dt'\n },\n encapsulation: ViewEncapsulation.None\n})\nexport class KbqDtComponent {}\n\n@Component({\n selector: 'kbq-dd',\n template: '<ng-content></ng-content>',\n host: {\n class: 'kbq-dd'\n },\n encapsulation: ViewEncapsulation.None\n})\nexport class KbqDdComponent {}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport { PlatformModule } from '@angular/cdk/platform';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { KbqDdComponent, KbqDlComponent, KbqDtComponent } from './dl.component';\n\n@NgModule({\n imports: [\n CommonModule,\n A11yModule,\n PlatformModule\n ],\n exports: [\n KbqDlComponent,\n KbqDtComponent,\n KbqDdComponent\n ],\n declarations: [\n KbqDlComponent,\n KbqDtComponent,\n KbqDdComponent\n ]\n})\nexport class KbqDlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAgBa,cAAc,CAAA;AAUvB,IAAA,WAAA,CAAsB,UAAsB,EAAA;QAAtB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAY;QATnC,IAAQ,CAAA,QAAA,GAAW,GAAG,CAAC;QACvB,IAAI,CAAA,IAAA,GAAG,KAAK,CAAC;QACb,IAAQ,CAAA,QAAA,GAAmB,IAAI,CAAC;AAEhC,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAS,CAAC;QAC5B,IAAsB,CAAA,sBAAA,GAAW,GAAG,CAAC;AAE9C,QAAA,IAAA,CAAA,kBAAkB,GAAG,YAAY,CAAC,KAAK,CAAC;QAkBhD,IAAW,CAAA,WAAA,GAAG,MAAK;AACf,YAAA,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC;YAEpE,IAAI,CAAC,QAAQ,GAAG,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC;AAC3C,SAAC,CAAC;KApB8C;IAEhD,kBAAkB,GAAA;AACd,QAAA,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YACxB,OAAO;SACV;AAED,QAAA,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,YAAY;AACtC,aAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAC/C,aAAA,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KACpC;IAED,WAAW,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AA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,iBALhB,cAAc;YACd,cAAc;AACd,YAAA,cAAc,aAZd,YAAY;YACZ,UAAU;AACV,YAAA,cAAc,aAGd,cAAc;YACd,cAAc;YACd,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA;AAQT,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,YAfhB,YAAY;YACZ,UAAU;YACV,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAaT,WAAW,EAAA,UAAA,EAAA,CAAA;kBAjBvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,UAAU;wBACV,cAAc;AACjB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,cAAc;wBACd,cAAc;wBACd,cAAc;AACjB,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,cAAc;wBACd,cAAc;wBACd,cAAc;AACjB,qBAAA;AACJ,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
@@ -1,46 +1,63 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, Directive, Inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, ViewChild, ContentChild, HostListener, EventEmitter, QueryList, TemplateRef, Input, ContentChildren, Output, Self, NgModule } from '@angular/core';
3
- import * as i1$1 from '@angular/cdk/overlay';
4
- import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
1
+ import { trigger, state, style, transition, group, query, animate } from '@angular/animations';
2
+ import { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';
5
3
  import * as i2 from '@angular/common';
6
4
  import { DOCUMENT, CommonModule } from '@angular/common';
7
- import * as i3 from '@koobiq/components/icon';
8
- import { KbqIcon, KbqIconModule } from '@koobiq/components/icon';
9
- import { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';
5
+ import * as i0 from '@angular/core';
6
+ import { Directive, Inject, InjectionToken, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, ViewChild, ContentChild, HostListener, EventEmitter, QueryList, TemplateRef, Input, ContentChildren, Output, Self, NgModule } from '@angular/core';
10
7
  import { Subject, Subscription, merge, of, asapScheduler } from 'rxjs';
11
8
  import * as i1 from '@angular/cdk/a11y';
12
9
  import { mixinDisabled, KBQ_TITLE_TEXT_REF } from '@koobiq/components/core';
10
+ import * as i3 from '@koobiq/components/icon';
11
+ import { KbqIcon, KbqIconModule } from '@koobiq/components/icon';
13
12
  import * as i4 from '@angular/cdk/bidi';
13
+ import * as i1$1 from '@angular/cdk/overlay';
14
+ import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
14
15
  import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
15
16
  import { RIGHT_ARROW, LEFT_ARROW, ESCAPE, ENTER, SPACE, DOWN_ARROW as DOWN_ARROW$1 } from '@koobiq/cdk/keycodes';
16
17
  import { startWith, switchMap, take, filter, takeUntil, delay } from 'rxjs/operators';
17
18
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
18
19
  import { UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes';
19
20
  import { FocusKeyManager } from '@koobiq/cdk/a11y';
20
- import { trigger, state, style, transition, group, query, animate } from '@angular/animations';
21
21
 
22
22
  /**
23
- * Injection token used to provide the parent dropdown to dropdown-specific components.
23
+ * Animations used by the kbq-dropdown component.
24
24
  * @docs-private
25
25
  */
26
- const KBQ_DROPDOWN_PANEL = new InjectionToken('KBQ_DROPDOWN_PANEL');
27
- /** Injection token to be used to override the default options for `kbq-dropdown`. */
28
- const KBQ_DROPDOWN_DEFAULT_OPTIONS = new InjectionToken('kbq-dropdown-default-options', {
29
- providedIn: 'root',
30
- factory: KBQ_DROPDOWN_DEFAULT_OPTIONS_FACTORY
31
- });
32
- /** @docs-private */
33
- // tslint:disable-next-line:naming-convention
34
- function KBQ_DROPDOWN_DEFAULT_OPTIONS_FACTORY() {
35
- return {
36
- overlapTriggerX: true,
37
- overlapTriggerY: false,
38
- xPosition: 'after',
39
- yPosition: 'below',
40
- backdropClass: 'cdk-overlay-transparent-backdrop',
41
- hasBackdrop: false
42
- };
43
- }
26
+ const kbqDropdownAnimations = {
27
+ /**
28
+ * This animation controls the dropdown panel's entry and exit from the page.
29
+ *
30
+ * When the dropdown panel is added to the DOM, it scales in and fades in its border.
31
+ *
32
+ * When the dropdown panel is removed from the DOM, it simply fades out after a brief
33
+ * delay to display the ripple.
34
+ */
35
+ transformDropdown: trigger('transformDropdown', [
36
+ state('void', style({
37
+ opacity: 0,
38
+ transform: 'scale(0.8)'
39
+ })),
40
+ transition('void => enter', group([
41
+ query('.kbq-dropdown__content', animate('0ms linear', style({ opacity: 1 }))),
42
+ animate('0ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scale(1)' }))
43
+ ])),
44
+ transition('* => void', animate('50ms 25ms linear', style({ opacity: 0 })))
45
+ ]),
46
+ /**
47
+ * This animation fades in the background color and content of the dropdown panel
48
+ * after its containing element is scaled in.
49
+ */
50
+ fadeInItems: trigger('fadeInItems', [
51
+ // now. Remove next time we do breaking changes.
52
+ state('showing', style({ opacity: 1 })),
53
+ transition('void => *', [
54
+ style({ opacity: 0 }),
55
+ animate('0ms 0ms cubic-bezier(0.55, 0, 0.55, 0.2)')
56
+ ])
57
+ ])
58
+ };
59
+ const fadeInItems = kbqDropdownAnimations.fadeInItems;
60
+ const transformDropdown = kbqDropdownAnimations.transformDropdown;
44
61
 
45
62
  /**
46
63
  * Dropdown content that will be rendered lazily once the dropdown is opened.
@@ -101,6 +118,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
101
118
  args: [DOCUMENT]
102
119
  }] }] });
103
120
 
121
+ /**
122
+ * Throws an exception for the case when dropdown trigger doesn't have a valid kbq-dropdown instance
123
+ * @docs-private
124
+ */
125
+ function throwKbqDropdownMissingError() {
126
+ throw Error(`kbqDropdownTriggerFor: must pass in an kbq-dropdown instance.
127
+ Example:
128
+ <kbq-dropdown #dropdown="kbqDropdown"></kbq-dropdown>
129
+ <button [kbqDropdownTriggerFor]="dropdown"></button>`);
130
+ }
131
+ /**
132
+ * Throws an exception for the case when dropdown's x-position value isn't valid.
133
+ * In other words, it doesn't match 'before' or 'after'.
134
+ * @docs-private
135
+ */
136
+ function throwKbqDropdownInvalidPositionX() {
137
+ throw Error(`xPosition value must be either 'before' or after'.
138
+ Example: <kbq-dropdown [xPosition]="'before'" #dropdown="kbqDropdown"></kbq-dropdown>`);
139
+ }
140
+ /**
141
+ * Throws an exception for the case when dropdown's y-position value isn't valid.
142
+ * In other words, it doesn't match 'above' or 'below'.
143
+ * @docs-private
144
+ */
145
+ function throwKbqDropdownInvalidPositionY() {
146
+ throw Error(`yPosition value must be either 'above' or below'.
147
+ Example: <kbq-dropdown [yPosition]="'above'" #dropdown="kbqDropdown"></kbq-dropdown>`);
148
+ }
149
+
150
+ /**
151
+ * Injection token used to provide the parent dropdown to dropdown-specific components.
152
+ * @docs-private
153
+ */
154
+ const KBQ_DROPDOWN_PANEL = new InjectionToken('KBQ_DROPDOWN_PANEL');
155
+ /** Injection token to be used to override the default options for `kbq-dropdown`. */
156
+ const KBQ_DROPDOWN_DEFAULT_OPTIONS = new InjectionToken('kbq-dropdown-default-options', {
157
+ providedIn: 'root',
158
+ factory: KBQ_DROPDOWN_DEFAULT_OPTIONS_FACTORY
159
+ });
160
+ /** @docs-private */
161
+ // tslint:disable-next-line:naming-convention
162
+ function KBQ_DROPDOWN_DEFAULT_OPTIONS_FACTORY() {
163
+ return {
164
+ overlapTriggerX: true,
165
+ overlapTriggerY: false,
166
+ xPosition: 'after',
167
+ yPosition: 'below',
168
+ backdropClass: 'cdk-overlay-transparent-backdrop',
169
+ hasBackdrop: false
170
+ };
171
+ }
172
+
104
173
  // Boilerplate for applying mixins to KbqDropdownItem.
105
174
  /** @docs-private */
106
175
  class KbqDropdownItemBase {
@@ -205,7 +274,7 @@ class KbqDropdownItem extends KbqDropdownItemMixinBase {
205
274
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqDropdownItem, deps: [{ token: i0.ElementRef }, { token: i1.FocusMonitor }, { token: KBQ_DROPDOWN_PANEL, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
206
275
  /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqDropdownItem, selector: "kbq-dropdown-item, [kbq-dropdown-item]", inputs: { disabled: "disabled" }, host: { listeners: { "click": "checkDisabled($event)", "mouseenter": "handleMouseEnter()" }, properties: { "class.kbq-dropdown-item_with-icon": "icon", "class.kbq-dropdown-item_highlighted": "highlighted", "class.kbq-disabled": "disabled", "attr.disabled": "disabled || null", "attr.tabindex": "getTabIndex()" }, classAttribute: "kbq-dropdown-item" }, providers: [
207
276
  { provide: KBQ_TITLE_TEXT_REF, useExisting: KbqDropdownItem }
208
- ], queries: [{ propertyName: "icon", first: true, predicate: KbqIcon, descendants: true }], viewQueries: [{ propertyName: "textElement", first: true, predicate: ["kbqTitleText"], descendants: true, static: true }], exportAs: ["kbqDropdownItem"], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<div class=\"kbq-dropdown-item__text\" #kbqTitleText>\n <ng-content></ng-content>\n</div>\n\n<i *ngIf=\"isNested\"\n class=\"kbq-dropdown-trigger__icon\"\n kbq-icon=\"mc-angle-right-S_16\">\n</i>\n\n<div class=\"kbq-dropdown-item-overlay\" (click)=\"haltDisabledEvents($event)\"></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-dropdown-item{width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;min-height:32px;gap:var(--kbq-list-size-container-content-gap-horizontal, 8px);border-width:var(--kbq-list-size-container-focus-outline-width, 2px);border-style:solid;border-color:transparent;padding:calc(var(--kbq-list-size-container-padding-vertical, 6px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-list-size-container-padding-right, 12px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-list-size-container-padding-vertical, 6px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-list-size-container-padding-left, 12px) - var(--kbq-list-size-container-focus-outline-width, 2px));text-align:left}.kbq-dropdown-item .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:var(--kbq-list-size-text-padding-vertical, 0);padding-bottom:var(--kbq-list-size-text-padding-vertical, 0)}.kbq-dropdown-item .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown-item .kbq-list-text:empty{display:none}.kbq-dropdown-item .kbq-list-option-caption{padding-top:var(--kbq-list-size-container-content-gap-vertical, 2px)}.kbq-dropdown-item:not(.kbq-disabled){cursor:pointer}.kbq-dropdown-item>.kbq-icon:first-child{align-self:flex-start;margin-top:var(--kbq-list-size-container-padding-vertical, 6px)}.kbq-dropdown-item .kbq-dropdown-item__caption{padding-top:var(--kbq-list-size-container-content-gap-vertical, 2px)}.kbq-dropdown-item__text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:var(--kbq-list-size-text-padding-vertical, 0);padding-bottom:var(--kbq-list-size-text-padding-vertical, 0)}.kbq-dropdown-item__text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown-item__text:empty{display:none}.kbq-dropdown-item-overlay{position:absolute;inset:-1px;border-radius:inherit}.kbq-dropdown__group-header{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:32px;padding:var(--kbq-list-size-header-padding-top, 8px) var(--kbq-list-size-header-padding-horizontal, 12px) var(--kbq-list-size-header-padding-bottom, 4px) var(--kbq-list-size-header-padding-horizontal, 12px)}.kbq-dropdown__group-header .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:var(--kbq-list-size-text-padding-vertical, 0);padding-bottom:var(--kbq-list-size-text-padding-vertical, 0)}.kbq-dropdown__group-header .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown__group-header .kbq-list-text:empty{display:none}.kbq-dropdown__group-header.kbq-dropdown__group-header_small{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:32px;padding:var(--kbq-list-size-subheading-padding-top, 12px) var(--kbq-list-size-subheading-padding-horizontal, 12px) var(--kbq-list-size-subheading-padding-bottom, 4px) var(--kbq-list-size-subheading-padding-horizontal, 12px)}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:var(--kbq-list-size-text-padding-vertical, 0);padding-bottom:var(--kbq-list-size-text-padding-vertical, 0)}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text:empty{display:none}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.KbqIcon, selector: "[kbq-icon]", inputs: ["color", "small", "autoColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
277
+ ], queries: [{ propertyName: "icon", first: true, predicate: KbqIcon, descendants: true }], viewQueries: [{ propertyName: "textElement", first: true, predicate: ["kbqTitleText"], descendants: true, static: true }], exportAs: ["kbqDropdownItem"], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<div\n #kbqTitleText\n class=\"kbq-dropdown-item__text\"\n>\n <ng-content></ng-content>\n</div>\n\n<i\n *ngIf=\"isNested\"\n kbq-icon=\"mc-angle-right-S_16\"\n class=\"kbq-dropdown-trigger__icon\"\n></i>\n\n<div\n class=\"kbq-dropdown-item-overlay\"\n (click)=\"haltDisabledEvents($event)\"\n></div>\n", styles: ["@keyframes kbq-progress{0%{background-position:0 0}to{background-position:64px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 12px,#ffffff1a 12px 22px,#0000000a 22px 34px,#ffffff1a 34px) 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-dropdown-item{width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;min-height:32px;gap:var(--kbq-size-s, 8px);border:var(--kbq-size-3xs, 2px) solid transparent;padding-top:var(--kbq-size-xxs, 4px);padding-left:var(--kbq-size-m, 12px);padding-right:var(--kbq-size-m, 12px);padding-bottom:var(--kbq-size-xxs, 4px);text-align:left;align-items:flex-start}.kbq-dropdown-item .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-dropdown-item .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown-item .kbq-list-text:empty{display:none}.kbq-dropdown-item .kbq-list-option-caption{padding-top:var(--kbq-size-3xs, 2px)}.kbq-dropdown-item:not(.kbq-disabled){cursor:pointer}.kbq-dropdown-item>.kbq-icon:first-child:before{align-self:center;display:flex;height:var(--kbq-size-xl, 20px);width:16px;align-items:center}.kbq-dropdown-item .kbq-dropdown-item__caption{padding-top:var(--kbq-size-3xs, 2px)}.kbq-dropdown-item__text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-dropdown-item__text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown-item__text:empty{display:none}.kbq-dropdown-item-overlay{position:absolute;inset:-1px;border-radius:inherit}.kbq-dropdown__group-header{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:32px;border-left:var(--kbq-size-3xs, 2px) solid transparent;border-right:var(--kbq-size-3xs, 2px) solid transparent;padding-top:var(--kbq-size-xs, 6px);padding-left:var(--kbq-size-m, 12px);padding-right:var(--kbq-size-m, 12px);padding-bottom:var(--kbq-size-3xs, 2px)}.kbq-dropdown__group-header .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-dropdown__group-header .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown__group-header .kbq-list-text:empty{display:none}.kbq-dropdown__group-header.kbq-dropdown__group-header_small{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:32px;border-left:var(--kbq-size-3xs, 2px) solid transparent;border-right:var(--kbq-size-3xs, 2px) solid transparent;padding-top:var(--kbq-size-m, 12px);padding-left:var(--kbq-size-m, 12px);padding-right:var(--kbq-size-m, 12px);padding-bottom:var(--kbq-size-xxs, 4px)}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text:empty{display:none}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.KbqIcon, selector: "[kbq-icon]", inputs: ["color", "small", "autoColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
209
278
  }
210
279
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqDropdownItem, decorators: [{
211
280
  type: Component,
@@ -218,7 +287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
218
287
  '[attr.tabindex]': 'getTabIndex()'
219
288
  }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
220
289
  { provide: KBQ_TITLE_TEXT_REF, useExisting: KbqDropdownItem }
221
- ], template: "<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<div class=\"kbq-dropdown-item__text\" #kbqTitleText>\n <ng-content></ng-content>\n</div>\n\n<i *ngIf=\"isNested\"\n class=\"kbq-dropdown-trigger__icon\"\n kbq-icon=\"mc-angle-right-S_16\">\n</i>\n\n<div class=\"kbq-dropdown-item-overlay\" (click)=\"haltDisabledEvents($event)\"></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-dropdown-item{width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;min-height:32px;gap:var(--kbq-list-size-container-content-gap-horizontal, 8px);border-width:var(--kbq-list-size-container-focus-outline-width, 2px);border-style:solid;border-color:transparent;padding:calc(var(--kbq-list-size-container-padding-vertical, 6px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-list-size-container-padding-right, 12px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-list-size-container-padding-vertical, 6px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-list-size-container-padding-left, 12px) - var(--kbq-list-size-container-focus-outline-width, 2px));text-align:left}.kbq-dropdown-item .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:var(--kbq-list-size-text-padding-vertical, 0);padding-bottom:var(--kbq-list-size-text-padding-vertical, 0)}.kbq-dropdown-item .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown-item .kbq-list-text:empty{display:none}.kbq-dropdown-item .kbq-list-option-caption{padding-top:var(--kbq-list-size-container-content-gap-vertical, 2px)}.kbq-dropdown-item:not(.kbq-disabled){cursor:pointer}.kbq-dropdown-item>.kbq-icon:first-child{align-self:flex-start;margin-top:var(--kbq-list-size-container-padding-vertical, 6px)}.kbq-dropdown-item .kbq-dropdown-item__caption{padding-top:var(--kbq-list-size-container-content-gap-vertical, 2px)}.kbq-dropdown-item__text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:var(--kbq-list-size-text-padding-vertical, 0);padding-bottom:var(--kbq-list-size-text-padding-vertical, 0)}.kbq-dropdown-item__text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown-item__text:empty{display:none}.kbq-dropdown-item-overlay{position:absolute;inset:-1px;border-radius:inherit}.kbq-dropdown__group-header{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:32px;padding:var(--kbq-list-size-header-padding-top, 8px) var(--kbq-list-size-header-padding-horizontal, 12px) var(--kbq-list-size-header-padding-bottom, 4px) var(--kbq-list-size-header-padding-horizontal, 12px)}.kbq-dropdown__group-header .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:var(--kbq-list-size-text-padding-vertical, 0);padding-bottom:var(--kbq-list-size-text-padding-vertical, 0)}.kbq-dropdown__group-header .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown__group-header .kbq-list-text:empty{display:none}.kbq-dropdown__group-header.kbq-dropdown__group-header_small{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:32px;padding:var(--kbq-list-size-subheading-padding-top, 12px) var(--kbq-list-size-subheading-padding-horizontal, 12px) var(--kbq-list-size-subheading-padding-bottom, 4px) var(--kbq-list-size-subheading-padding-horizontal, 12px)}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:var(--kbq-list-size-text-padding-vertical, 0);padding-bottom:var(--kbq-list-size-text-padding-vertical, 0)}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text:empty{display:none}\n"] }]
290
+ ], template: "<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<div\n #kbqTitleText\n class=\"kbq-dropdown-item__text\"\n>\n <ng-content></ng-content>\n</div>\n\n<i\n *ngIf=\"isNested\"\n kbq-icon=\"mc-angle-right-S_16\"\n class=\"kbq-dropdown-trigger__icon\"\n></i>\n\n<div\n class=\"kbq-dropdown-item-overlay\"\n (click)=\"haltDisabledEvents($event)\"\n></div>\n", styles: ["@keyframes kbq-progress{0%{background-position:0 0}to{background-position:64px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 12px,#ffffff1a 12px 22px,#0000000a 22px 34px,#ffffff1a 34px) 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-dropdown-item{width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;min-height:32px;gap:var(--kbq-size-s, 8px);border:var(--kbq-size-3xs, 2px) solid transparent;padding-top:var(--kbq-size-xxs, 4px);padding-left:var(--kbq-size-m, 12px);padding-right:var(--kbq-size-m, 12px);padding-bottom:var(--kbq-size-xxs, 4px);text-align:left;align-items:flex-start}.kbq-dropdown-item .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-dropdown-item .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown-item .kbq-list-text:empty{display:none}.kbq-dropdown-item .kbq-list-option-caption{padding-top:var(--kbq-size-3xs, 2px)}.kbq-dropdown-item:not(.kbq-disabled){cursor:pointer}.kbq-dropdown-item>.kbq-icon:first-child:before{align-self:center;display:flex;height:var(--kbq-size-xl, 20px);width:16px;align-items:center}.kbq-dropdown-item .kbq-dropdown-item__caption{padding-top:var(--kbq-size-3xs, 2px)}.kbq-dropdown-item__text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-dropdown-item__text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown-item__text:empty{display:none}.kbq-dropdown-item-overlay{position:absolute;inset:-1px;border-radius:inherit}.kbq-dropdown__group-header{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:32px;border-left:var(--kbq-size-3xs, 2px) solid transparent;border-right:var(--kbq-size-3xs, 2px) solid transparent;padding-top:var(--kbq-size-xs, 6px);padding-left:var(--kbq-size-m, 12px);padding-right:var(--kbq-size-m, 12px);padding-bottom:var(--kbq-size-3xs, 2px)}.kbq-dropdown__group-header .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-dropdown__group-header .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown__group-header .kbq-list-text:empty{display:none}.kbq-dropdown__group-header.kbq-dropdown__group-header_small{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:32px;border-left:var(--kbq-size-3xs, 2px) solid transparent;border-right:var(--kbq-size-3xs, 2px) solid transparent;padding-top:var(--kbq-size-m, 12px);padding-left:var(--kbq-size-m, 12px);padding-right:var(--kbq-size-m, 12px);padding-bottom:var(--kbq-size-xxs, 4px)}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-dropdown__group-header.kbq-dropdown__group-header_small .kbq-list-text:empty{display:none}\n"] }]
222
291
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.FocusMonitor }, { type: undefined, decorators: [{
223
292
  type: Inject,
224
293
  args: [KBQ_DROPDOWN_PANEL]
@@ -238,75 +307,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
238
307
  args: ['mouseenter']
239
308
  }] } });
240
309
 
241
- /**
242
- * Throws an exception for the case when dropdown trigger doesn't have a valid kbq-dropdown instance
243
- * @docs-private
244
- */
245
- function throwKbqDropdownMissingError() {
246
- throw Error(`kbqDropdownTriggerFor: must pass in an kbq-dropdown instance.
247
- Example:
248
- <kbq-dropdown #dropdown="kbqDropdown"></kbq-dropdown>
249
- <button [kbqDropdownTriggerFor]="dropdown"></button>`);
250
- }
251
- /**
252
- * Throws an exception for the case when dropdown's x-position value isn't valid.
253
- * In other words, it doesn't match 'before' or 'after'.
254
- * @docs-private
255
- */
256
- function throwKbqDropdownInvalidPositionX() {
257
- throw Error(`xPosition value must be either 'before' or after'.
258
- Example: <kbq-dropdown [xPosition]="'before'" #dropdown="kbqDropdown"></kbq-dropdown>`);
259
- }
260
- /**
261
- * Throws an exception for the case when dropdown's y-position value isn't valid.
262
- * In other words, it doesn't match 'above' or 'below'.
263
- * @docs-private
264
- */
265
- function throwKbqDropdownInvalidPositionY() {
266
- throw Error(`yPosition value must be either 'above' or below'.
267
- Example: <kbq-dropdown [yPosition]="'above'" #dropdown="kbqDropdown"></kbq-dropdown>`);
268
- }
269
-
270
- /**
271
- * Animations used by the kbq-dropdown component.
272
- * @docs-private
273
- */
274
- const kbqDropdownAnimations = {
275
- /**
276
- * This animation controls the dropdown panel's entry and exit from the page.
277
- *
278
- * When the dropdown panel is added to the DOM, it scales in and fades in its border.
279
- *
280
- * When the dropdown panel is removed from the DOM, it simply fades out after a brief
281
- * delay to display the ripple.
282
- */
283
- transformDropdown: trigger('transformDropdown', [
284
- state('void', style({
285
- opacity: 0,
286
- transform: 'scale(0.8)'
287
- })),
288
- transition('void => enter', group([
289
- query('.kbq-dropdown__content', animate('0ms linear', style({ opacity: 1 }))),
290
- animate('0ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scale(1)' }))
291
- ])),
292
- transition('* => void', animate('50ms 25ms linear', style({ opacity: 0 })))
293
- ]),
294
- /**
295
- * This animation fades in the background color and content of the dropdown panel
296
- * after its containing element is scaled in.
297
- */
298
- fadeInItems: trigger('fadeInItems', [
299
- // now. Remove next time we do breaking changes.
300
- state('showing', style({ opacity: 1 })),
301
- transition('void => *', [
302
- style({ opacity: 0 }),
303
- animate('0ms 0ms cubic-bezier(0.55, 0, 0.55, 0.2)')
304
- ])
305
- ])
306
- };
307
- const fadeInItems = kbqDropdownAnimations.fadeInItems;
308
- const transformDropdown = kbqDropdownAnimations.transformDropdown;
309
-
310
310
  class KbqDropdown {
311
311
  /** Position of the dropdown in the X axis. */
312
312
  get xPosition() {
@@ -360,15 +360,11 @@ class KbqDropdown {
360
360
  set panelClass(classes) {
361
361
  const previousPanelClass = this.previousPanelClass;
362
362
  if (previousPanelClass && previousPanelClass.length) {
363
- previousPanelClass
364
- .split(' ')
365
- .forEach((className) => this.classList[className] = false);
363
+ previousPanelClass.split(' ').forEach((className) => (this.classList[className] = false));
366
364
  }
367
365
  this.previousPanelClass = classes;
368
366
  if (classes?.length) {
369
- classes
370
- .split(' ')
371
- .forEach((className) => this.classList[className] = true);
367
+ classes.split(' ').forEach((className) => (this.classList[className] = true));
372
368
  this.elementRef.nativeElement.className = '';
373
369
  }
374
370
  }
@@ -403,13 +399,11 @@ class KbqDropdown {
403
399
  }
404
400
  ngAfterContentInit() {
405
401
  this.updateDirectDescendants();
406
- this.keyManager = new FocusKeyManager(this.directDescendantItems)
407
- .withTypeAhead();
402
+ this.keyManager = new FocusKeyManager(this.directDescendantItems).withTypeAhead();
408
403
  if (this.navigationWithWrap) {
409
404
  this.keyManager.withWrap();
410
405
  }
411
- this.tabSubscription = this.keyManager.tabOut
412
- .subscribe(() => this.closed.emit('tab'));
406
+ this.tabSubscription = this.keyManager.tabOut.subscribe(() => this.closed.emit('tab'));
413
407
  // If a user manually (programmatically) focuses a menu item, we need to reflect that focus
414
408
  // change back to the key manager. Note that we don't need to unsubscribe here because focused
415
409
  // is internal and we know that it gets completed on destroy.
@@ -529,9 +523,7 @@ class KbqDropdown {
529
523
  * when it comes to maintaining the item order.
530
524
  */
531
525
  updateDirectDescendants() {
532
- this.items.changes
533
- .pipe(startWith(this.items))
534
- .subscribe((items) => {
526
+ this.items.changes.pipe(startWith(this.items)).subscribe((items) => {
535
527
  this.directDescendantItems.reset(items.filter((item) => item.parentDropdownPanel === this));
536
528
  this.directDescendantItems.notifyOnChanges();
537
529
  });
@@ -539,7 +531,7 @@ class KbqDropdown {
539
531
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqDropdown, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: KBQ_DROPDOWN_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component }); }
540
532
  /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqDropdown, selector: "kbq-dropdown", inputs: { navigationWithWrap: "navigationWithWrap", xPosition: "xPosition", yPosition: "yPosition", overlapTriggerY: "overlapTriggerY", overlapTriggerX: "overlapTriggerX", hasBackdrop: "hasBackdrop", panelClass: ["class", "panelClass"], backdropClass: "backdropClass" }, outputs: { closed: "closed" }, providers: [
541
533
  { provide: KBQ_DROPDOWN_PANEL, useExisting: KbqDropdown }
542
- ], queries: [{ propertyName: "lazyContent", first: true, predicate: KbqDropdownContent, descendants: true }, { propertyName: "items", predicate: KbqDropdownItem, descendants: true }], viewQueries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true }], exportAs: ["kbqDropdown"], ngImport: i0, template: "<ng-template>\n <div class=\"kbq-dropdown__panel\"\n [ngClass]=\"classList\"\n [class.kbq-dropdown__panel_nested]=\"parent\"\n [style.min-width]=\"triggerWidth\"\n (keydown)=\"handleKeydown($event)\"\n (click)=\"close()\"\n [@transformDropdown]=\"panelAnimationState\"\n (@transformDropdown.start)=\"onAnimationStart($event)\"\n (@transformDropdown.done)=\"onAnimationDone($event)\"\n tabindex=\"-1\">\n\n <div class=\"kbq-dropdown__content\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", styles: [".kbq-dropdown-trigger.kbq-button-icon_right.kbq-button-icon_left .kbq-icon_left{margin-right:2px}.kbq-dropdown-trigger.kbq-button-icon_right.kbq-button-icon_left .kbq-icon_right{margin-left:2px}.kbq-dropdown-trigger__icon{margin-left:auto}.kbq-dropdown__panel{margin-top:2px;min-width:var(--kbq-dropdown-size-container-width-min, 64px);max-width:var(--kbq-dropdown-size-container-width-max, 640px);border-radius:var(--kbq-dropdown-size-container-border-radius, 8px);padding-top:var(--kbq-dropdown-size-container-padding-vertical, 4px);padding-bottom:var(--kbq-dropdown-size-container-padding-vertical, 4px)}.kbq-dropdown__panel.ng-animating{pointer-events:none}.kbq-dropdown__content{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
534
+ ], queries: [{ propertyName: "lazyContent", first: true, predicate: KbqDropdownContent, descendants: true }, { propertyName: "items", predicate: KbqDropdownItem, descendants: true }], viewQueries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true }], exportAs: ["kbqDropdown"], ngImport: i0, template: "<ng-template>\n <div\n tabindex=\"-1\"\n class=\"kbq-dropdown__panel\"\n [class.kbq-dropdown__panel_nested]=\"parent\"\n [ngClass]=\"classList\"\n [style.min-width]=\"triggerWidth\"\n (@transformDropdown.done)=\"onAnimationDone($event)\"\n (@transformDropdown.start)=\"onAnimationStart($event)\"\n (click)=\"close()\"\n (keydown)=\"handleKeydown($event)\"\n [@transformDropdown]=\"panelAnimationState\"\n >\n <div class=\"kbq-dropdown__content\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", styles: [".kbq-dropdown-trigger.kbq-button-icon_right.kbq-button-icon_left .kbq-icon_left{margin-right:2px}.kbq-dropdown-trigger.kbq-button-icon_right.kbq-button-icon_left .kbq-icon_right{margin-left:2px}.kbq-dropdown-trigger__icon{margin-left:auto}.kbq-dropdown__panel{margin-top:2px;min-width:var(--kbq-dropdown-size-container-width-min, 64px);max-width:var(--kbq-dropdown-size-container-width-max, 640px);border-radius:var(--kbq-dropdown-size-container-border-radius, 8px);padding-top:var(--kbq-dropdown-size-container-padding-vertical, 4px);padding-bottom:var(--kbq-dropdown-size-container-padding-vertical, 4px)}.kbq-dropdown__panel.ng-animating{pointer-events:none}.kbq-dropdown__content{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
543
535
  kbqDropdownAnimations.transformDropdown,
544
536
  kbqDropdownAnimations.fadeInItems
545
537
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
@@ -551,7 +543,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
551
543
  kbqDropdownAnimations.fadeInItems
552
544
  ], providers: [
553
545
  { provide: KBQ_DROPDOWN_PANEL, useExisting: KbqDropdown }
554
- ], template: "<ng-template>\n <div class=\"kbq-dropdown__panel\"\n [ngClass]=\"classList\"\n [class.kbq-dropdown__panel_nested]=\"parent\"\n [style.min-width]=\"triggerWidth\"\n (keydown)=\"handleKeydown($event)\"\n (click)=\"close()\"\n [@transformDropdown]=\"panelAnimationState\"\n (@transformDropdown.start)=\"onAnimationStart($event)\"\n (@transformDropdown.done)=\"onAnimationDone($event)\"\n tabindex=\"-1\">\n\n <div class=\"kbq-dropdown__content\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", styles: [".kbq-dropdown-trigger.kbq-button-icon_right.kbq-button-icon_left .kbq-icon_left{margin-right:2px}.kbq-dropdown-trigger.kbq-button-icon_right.kbq-button-icon_left .kbq-icon_right{margin-left:2px}.kbq-dropdown-trigger__icon{margin-left:auto}.kbq-dropdown__panel{margin-top:2px;min-width:var(--kbq-dropdown-size-container-width-min, 64px);max-width:var(--kbq-dropdown-size-container-width-max, 640px);border-radius:var(--kbq-dropdown-size-container-border-radius, 8px);padding-top:var(--kbq-dropdown-size-container-padding-vertical, 4px);padding-bottom:var(--kbq-dropdown-size-container-padding-vertical, 4px)}.kbq-dropdown__panel.ng-animating{pointer-events:none}.kbq-dropdown__content{display:flex;flex-direction:column}\n"] }]
546
+ ], template: "<ng-template>\n <div\n tabindex=\"-1\"\n class=\"kbq-dropdown__panel\"\n [class.kbq-dropdown__panel_nested]=\"parent\"\n [ngClass]=\"classList\"\n [style.min-width]=\"triggerWidth\"\n (@transformDropdown.done)=\"onAnimationDone($event)\"\n (@transformDropdown.start)=\"onAnimationStart($event)\"\n (click)=\"close()\"\n (keydown)=\"handleKeydown($event)\"\n [@transformDropdown]=\"panelAnimationState\"\n >\n <div class=\"kbq-dropdown__content\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", styles: [".kbq-dropdown-trigger.kbq-button-icon_right.kbq-button-icon_left .kbq-icon_left{margin-right:2px}.kbq-dropdown-trigger.kbq-button-icon_right.kbq-button-icon_left .kbq-icon_right{margin-left:2px}.kbq-dropdown-trigger__icon{margin-left:auto}.kbq-dropdown__panel{margin-top:2px;min-width:var(--kbq-dropdown-size-container-width-min, 64px);max-width:var(--kbq-dropdown-size-container-width-max, 640px);border-radius:var(--kbq-dropdown-size-container-border-radius, 8px);padding-top:var(--kbq-dropdown-size-container-padding-vertical, 4px);padding-bottom:var(--kbq-dropdown-size-container-padding-vertical, 4px)}.kbq-dropdown__panel.ng-animating{pointer-events:none}.kbq-dropdown__content{display:flex;flex-direction:column}\n"] }]
555
547
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
556
548
  type: Inject,
557
549
  args: [KBQ_DROPDOWN_DEFAULT_OPTIONS]
@@ -619,9 +611,7 @@ class KbqDropdownTrigger {
619
611
  this._dropdown = dropdown;
620
612
  this.closeSubscription.unsubscribe();
621
613
  if (dropdown) {
622
- this.closeSubscription = dropdown.closed
623
- .asObservable()
624
- .subscribe((reason) => {
614
+ this.closeSubscription = dropdown.closed.asObservable().subscribe((reason) => {
625
615
  this.destroy(reason);
626
616
  // If a click closed the dropdown, we should close the entire chain of nested dropdowns.
627
617
  if (['click', 'tab'].includes(reason) && this.parent) {
@@ -667,7 +657,7 @@ class KbqDropdownTrigger {
667
657
  * Handles touch start events on the trigger.
668
658
  * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
669
659
  */
670
- this.handleTouchStart = () => this.openedBy = 'touch';
660
+ this.handleTouchStart = () => (this.openedBy = 'touch');
671
661
  elementRef.nativeElement.addEventListener('touchstart', this.handleTouchStart, passiveEventListenerOptions);
672
662
  if (dropdownItemInstance) {
673
663
  dropdownItemInstance.isNested = this.isNested();
@@ -709,8 +699,7 @@ class KbqDropdownTrigger {
709
699
  this.dropdown.lazyContent.detach();
710
700
  this.dropdown.lazyContent.attach(this.data);
711
701
  }
712
- this.closeSubscription = this.closingActions()
713
- .subscribe(() => this.close());
702
+ this.closeSubscription = this.closingActions().subscribe(() => this.close());
714
703
  this.init();
715
704
  if (this.dropdown instanceof KbqDropdown) {
716
705
  this.dropdown.startAnimation();
@@ -761,7 +750,7 @@ class KbqDropdownTrigger {
761
750
  }
762
751
  if ((this.isNested() &&
763
752
  ((keyCode === RIGHT_ARROW && this.dir === 'ltr') || (keyCode === LEFT_ARROW && this.dir === 'rtl'))) ||
764
- (!this.isNested() && (keyCode === DOWN_ARROW$1 && this.openByArrowDown))) {
753
+ (!this.isNested() && keyCode === DOWN_ARROW$1 && this.openByArrowDown)) {
765
754
  event.preventDefault();
766
755
  this.openedBy = 'keyboard';
767
756
  this.open();
@@ -793,8 +782,7 @@ class KbqDropdownTrigger {
793
782
  this.openedBy = undefined;
794
783
  if (this.dropdown instanceof KbqDropdown) {
795
784
  this.dropdown.resetAnimation();
796
- const animationSubscription = this.dropdown.animationDone
797
- .pipe(filter((event) => event.toState === 'void'), take(1));
785
+ const animationSubscription = this.dropdown.animationDone.pipe(filter((event) => event.toState === 'void'), take(1));
798
786
  if (this.dropdown.lazyContent) {
799
787
  // Wait for the exit animation to finish before detaching the content.
800
788
  animationSubscription
@@ -808,8 +796,7 @@ class KbqDropdownTrigger {
808
796
  });
809
797
  }
810
798
  else {
811
- animationSubscription
812
- .subscribe(() => this.setIsOpened(false));
799
+ animationSubscription.subscribe(() => this.setIsOpened(false));
813
800
  }
814
801
  }
815
802
  else {
@@ -866,8 +853,7 @@ class KbqDropdownTrigger {
866
853
  // Consume the `keydownEvents` in order to prevent them from going to another overlay.
867
854
  // Ideally we'd also have our keyboard event logic in here, however doing so will
868
855
  // break anybody that may have implemented the `KbqDropdownPanel` themselves.
869
- this.overlayRef.keydownEvents()
870
- .subscribe();
856
+ this.overlayRef.keydownEvents().subscribe();
871
857
  }
872
858
  return this.overlayRef;
873
859
  }
@@ -877,7 +863,8 @@ class KbqDropdownTrigger {
877
863
  */
878
864
  getOverlayConfig() {
879
865
  return new OverlayConfig({
880
- positionStrategy: this.overlay.position()
866
+ positionStrategy: this.overlay
867
+ .position()
881
868
  .flexibleConnectedTo(this.elementRef)
882
869
  .withLockedPosition()
883
870
  .withTransformOriginOn('.kbq-dropdown__panel'),
@@ -893,8 +880,7 @@ class KbqDropdownTrigger {
893
880
  */
894
881
  subscribeToPositions(position) {
895
882
  if (this.dropdown.setPositionClasses) {
896
- position.positionChanges
897
- .subscribe((change) => {
883
+ position.positionChanges.subscribe((change) => {
898
884
  const posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
899
885
  const posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
900
886
  this.dropdown.setPositionClasses(posX, posY);
@@ -907,13 +893,11 @@ class KbqDropdownTrigger {
907
893
  * @param positionStrategy Strategy whose position to update.
908
894
  */
909
895
  setPosition(positionStrategy) {
910
- let [originX, originFallbackX, overlayX, overlayFallbackX] = this.dropdown.xPosition === 'before' ?
911
- ['end', 'start', 'end', 'start'] :
912
- ['start', 'end', 'start', 'end'];
896
+ let [originX, originFallbackX, overlayX, overlayFallbackX] = this.dropdown.xPosition === 'before' ? ['end', 'start', 'end', 'start'] : ['start', 'end', 'start', 'end'];
913
897
  // tslint:disable-next-line:prefer-const
914
- let [overlayY, overlayFallbackY, originY, originFallbackY] = this.dropdown.yPosition === 'above' ?
915
- ['bottom', 'top', 'bottom', 'top'] :
916
- ['top', 'bottom', 'top', 'bottom'];
898
+ let [overlayY, overlayFallbackY, originY, originFallbackY] = this.dropdown.yPosition === 'above'
899
+ ? ['bottom', 'top', 'bottom', 'top']
900
+ : ['top', 'bottom', 'top', 'bottom'];
917
901
  let offsetY = 0;
918
902
  let offsetX = 0;
919
903
  if (this.isNested()) {
@@ -966,8 +950,9 @@ class KbqDropdownTrigger {
966
950
  const outsidePointerEvents = this.overlayRef.outsidePointerEvents();
967
951
  const detachments = this.overlayRef.detachments();
968
952
  const parentClose = this.parent ? this.parent.closed : of();
969
- const hover = this.parent ? this.parent.hovered()
970
- .pipe(filter((active) => active !== this.dropdownItemInstance), filter(() => this._opened)) : of();
953
+ const hover = this.parent
954
+ ? this.parent.hovered().pipe(filter((active) => active !== this.dropdownItemInstance), filter(() => this._opened))
955
+ : of();
971
956
  return merge(backdrop, outsidePointerEvents, parentClose, hover, detachments);
972
957
  }
973
958
  /** Handles the cases where the user hovers over the trigger. */
@@ -976,7 +961,8 @@ class KbqDropdownTrigger {
976
961
  if (!this.isNested()) {
977
962
  return;
978
963
  }
979
- this.hoverSubscription = this.parent.hovered()
964
+ this.hoverSubscription = this.parent
965
+ .hovered()
980
966
  // Since we might have multiple competing triggers for the same dropdown (e.g. a nested dropdown
981
967
  // with different data and triggers), we have to delay it by a tick to ensure that
982
968
  // it won't be closed immediately after it is opened.