@koobiq/components 18.36.0 → 18.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/autocomplete/autocomplete.scss +2 -17
  2. package/breadcrumbs/breadcrumbs.d.ts +2 -1
  3. package/breadcrumbs/breadcrumbs.scss +4 -4
  4. package/button/button.component.d.ts +1 -0
  5. package/button-toggle/button-toggle.scss +0 -2
  6. package/content-panel/content-panel.d.ts +1 -1
  7. package/content-panel/index.d.ts +0 -1
  8. package/core/common-behaviors/hover.d.ts +15 -0
  9. package/core/common-behaviors/index.d.ts +1 -1
  10. package/core/locales/en-US.d.ts +6 -0
  11. package/core/locales/es-LA.d.ts +6 -0
  12. package/core/locales/formatters.d.ts +0 -72
  13. package/core/locales/index.d.ts +0 -2
  14. package/core/locales/locale-service.d.ts +24 -386
  15. package/core/locales/pt-BR.d.ts +6 -0
  16. package/core/locales/ru-RU.d.ts +6 -0
  17. package/core/locales/tk-TM.d.ts +6 -0
  18. package/core/option/option.d.ts +3 -2
  19. package/core/pop-up/pop-up-trigger.d.ts +3 -1
  20. package/core/pop-up/pop-up.d.ts +1 -0
  21. package/core/select/common.d.ts +3 -1
  22. package/core/styles/common/_select.scss +20 -0
  23. package/core/styles/typography/_typography.scss +23 -82
  24. package/datepicker/datepicker-module.d.ts +2 -1
  25. package/dropdown/dropdown-item.scss +8 -7
  26. package/dropdown/dropdown.scss +5 -14
  27. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +4 -4
  28. package/esm2022/breadcrumbs/breadcrumbs.mjs +46 -37
  29. package/esm2022/button/button.component.mjs +6 -4
  30. package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
  31. package/esm2022/code-block/code-block-highlight.mjs +6 -1
  32. package/esm2022/content-panel/content-panel.mjs +2 -2
  33. package/esm2022/content-panel/index.mjs +1 -2
  34. package/esm2022/core/common-behaviors/color.mjs +2 -1
  35. package/esm2022/core/common-behaviors/common-module.mjs +2 -1
  36. package/esm2022/core/common-behaviors/disabled.mjs +2 -1
  37. package/esm2022/core/common-behaviors/error-state.mjs +2 -1
  38. package/esm2022/core/common-behaviors/hover.mjs +34 -0
  39. package/esm2022/core/common-behaviors/index.mjs +2 -2
  40. package/esm2022/core/common-behaviors/tabindex.mjs +2 -1
  41. package/esm2022/core/form-field/field-sizing-content.mjs +5 -2
  42. package/esm2022/core/formatters/number/formatter.mjs +2 -2
  43. package/esm2022/core/locales/en-US.mjs +7 -1
  44. package/esm2022/core/locales/es-LA.mjs +16 -10
  45. package/esm2022/core/locales/formatters.mjs +1 -73
  46. package/esm2022/core/locales/index.mjs +1 -3
  47. package/esm2022/core/locales/locale-service.mjs +5 -8
  48. package/esm2022/core/locales/pt-BR.mjs +25 -19
  49. package/esm2022/core/locales/ru-RU.mjs +7 -1
  50. package/esm2022/core/locales/tk-TM.mjs +30 -24
  51. package/esm2022/core/option/option.mjs +10 -6
  52. package/esm2022/core/pop-up/pop-up-trigger.mjs +2 -1
  53. package/esm2022/core/pop-up/pop-up.mjs +36 -2
  54. package/esm2022/core/select/common.mjs +10 -4
  55. package/esm2022/core/version.mjs +2 -2
  56. package/esm2022/datepicker/calendar-header.component.mjs +5 -4
  57. package/esm2022/datepicker/datepicker-module.mjs +7 -4
  58. package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
  59. package/esm2022/dropdown/dropdown.component.mjs +3 -3
  60. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +5 -2
  61. package/esm2022/file-upload/file-drop.mjs +5 -3
  62. package/esm2022/file-upload/multiple-file-upload.component.mjs +9 -13
  63. package/esm2022/file-upload/single-file-upload.component.mjs +9 -4
  64. package/esm2022/filter-bar/filter-bar.mjs +6 -2
  65. package/esm2022/filter-bar/filter-search.mjs +3 -3
  66. package/esm2022/filter-bar/filters.mjs +10 -5
  67. package/esm2022/filter-bar/pipe-add.mjs +3 -2
  68. package/esm2022/filter-bar/pipes/base-pipe.mjs +11 -3
  69. package/esm2022/filter-bar/pipes/pipe-date.mjs +3 -3
  70. package/esm2022/filter-bar/pipes/pipe-datetime.mjs +3 -3
  71. package/esm2022/filter-bar/pipes/pipe-multi-select.mjs +5 -4
  72. package/esm2022/filter-bar/pipes/pipe-multi-tree-select.mjs +2 -2
  73. package/esm2022/filter-bar/pipes/pipe-select.mjs +2 -2
  74. package/esm2022/filter-bar/pipes/pipe-text.mjs +2 -2
  75. package/esm2022/filter-bar/pipes/pipe-title.mjs +24 -19
  76. package/esm2022/filter-bar/pipes/pipe-tree-select.mjs +2 -2
  77. package/esm2022/form-field/fieldset.mjs +2 -2
  78. package/esm2022/form-field/form-field.mjs +2 -2
  79. package/esm2022/form-field/stepper.mjs +41 -10
  80. package/esm2022/inline-edit/inline-edit.mjs +9 -5
  81. package/esm2022/input/input-number.mjs +7 -6
  82. package/esm2022/input/input.module.mjs +7 -4
  83. package/esm2022/list/list-selection.component.mjs +31 -15
  84. package/esm2022/markdown/markdown.component.mjs +7 -7
  85. package/esm2022/modal/modal-util.mjs +7 -3
  86. package/esm2022/modal/modal.component.mjs +2 -2
  87. package/esm2022/modal/modal.service.mjs +2 -1
  88. package/esm2022/navbar/navbar-brand.component.mjs +105 -0
  89. package/esm2022/navbar/navbar-item.component.mjs +18 -170
  90. package/esm2022/navbar/navbar-toggle.component.mjs +88 -0
  91. package/esm2022/navbar/navbar.component.mjs +8 -4
  92. package/esm2022/navbar/navbar.module.mjs +4 -2
  93. package/esm2022/navbar/public-api.mjs +3 -1
  94. package/esm2022/navbar/vertical-navbar.component.mjs +28 -6
  95. package/esm2022/navbar-ic/navbar-ic-header.mjs +20 -4
  96. package/esm2022/navbar-ic/navbar-ic-item.mjs +7 -8
  97. package/esm2022/navbar-ic/navbar-ic.animation.mjs +10 -2
  98. package/esm2022/navbar-ic/navbar-ic.mjs +33 -9
  99. package/esm2022/notification-center/notification-center.mjs +9 -33
  100. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  101. package/esm2022/popover/popover.component.mjs +24 -5
  102. package/esm2022/resizer/index.mjs +3 -0
  103. package/esm2022/resizer/koobiq-components-resizer.mjs +5 -0
  104. package/esm2022/resizer/module.mjs +17 -0
  105. package/esm2022/resizer/resizer.mjs +135 -0
  106. package/esm2022/scrollbar/scrollbar.directive.mjs +4 -3
  107. package/esm2022/search-expandable/search-expandable.mjs +5 -5
  108. package/esm2022/select/select.component.mjs +2 -14
  109. package/esm2022/select/select.module.mjs +8 -4
  110. package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
  111. package/esm2022/split-button/split-button.mjs +47 -6
  112. package/esm2022/tags/tag-input.mjs +24 -28
  113. package/esm2022/tags/tag-list.component.mjs +76 -87
  114. package/esm2022/tags/tag.component.mjs +29 -34
  115. package/esm2022/textarea/textarea.module.mjs +5 -4
  116. package/esm2022/time-range/constants.mjs +22 -1
  117. package/esm2022/time-range/time-range-editor.mjs +11 -6
  118. package/esm2022/time-range/time-range-title-as-form-field.mjs +2 -1
  119. package/esm2022/time-range/time-range.mjs +8 -3
  120. package/esm2022/time-range/time-range.service.mjs +43 -106
  121. package/esm2022/time-range/types.mjs +1 -1
  122. package/esm2022/timepicker/timepicker.module.mjs +5 -4
  123. package/esm2022/timezone/timezone-option.component.mjs +2 -2
  124. package/esm2022/timezone/timezone.module.mjs +6 -4
  125. package/esm2022/title/title.directive.mjs +6 -2
  126. package/esm2022/toggle/toggle.component.mjs +3 -3
  127. package/esm2022/top-bar/top-bar.mjs +2 -2
  128. package/esm2022/tree/tree-option.component.mjs +7 -6
  129. package/esm2022/tree/tree-selection.component.mjs +23 -13
  130. package/esm2022/tree-select/tree-select.component.mjs +97 -79
  131. package/esm2022/tree-select/tree-select.module.mjs +7 -4
  132. package/fesm2022/koobiq-components-autocomplete.mjs +3 -3
  133. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  134. package/fesm2022/koobiq-components-breadcrumbs.mjs +45 -36
  135. package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
  136. package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
  137. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  138. package/fesm2022/koobiq-components-button.mjs +5 -3
  139. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  140. package/fesm2022/koobiq-components-code-block.mjs +5 -0
  141. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  142. package/fesm2022/koobiq-components-content-panel.mjs +3 -137
  143. package/fesm2022/koobiq-components-content-panel.mjs.map +1 -1
  144. package/fesm2022/koobiq-components-core.mjs +156 -478
  145. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  146. package/fesm2022/koobiq-components-datepicker.mjs +8 -5
  147. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  148. package/fesm2022/koobiq-components-dropdown.mjs +4 -4
  149. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  150. package/fesm2022/koobiq-components-ellipsis-center.mjs +4 -1
  151. package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
  152. package/fesm2022/koobiq-components-file-upload.mjs +19 -17
  153. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  154. package/fesm2022/koobiq-components-filter-bar.mjs +64 -41
  155. package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
  156. package/fesm2022/koobiq-components-form-field.mjs +44 -17
  157. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  158. package/fesm2022/koobiq-components-inline-edit.mjs +8 -4
  159. package/fesm2022/koobiq-components-inline-edit.mjs.map +1 -1
  160. package/fesm2022/koobiq-components-input.mjs +12 -9
  161. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  162. package/fesm2022/koobiq-components-list.mjs +30 -14
  163. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  164. package/fesm2022/koobiq-components-markdown.mjs +6 -6
  165. package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
  166. package/fesm2022/koobiq-components-modal.mjs +9 -4
  167. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  168. package/fesm2022/koobiq-components-navbar-ic.mjs +70 -26
  169. package/fesm2022/koobiq-components-navbar-ic.mjs.map +1 -1
  170. package/fesm2022/koobiq-components-navbar.mjs +792 -740
  171. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  172. package/fesm2022/koobiq-components-notification-center.mjs +8 -32
  173. package/fesm2022/koobiq-components-notification-center.mjs.map +1 -1
  174. package/fesm2022/koobiq-components-popover.mjs +25 -6
  175. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  176. package/fesm2022/koobiq-components-resizer.mjs +156 -0
  177. package/fesm2022/koobiq-components-resizer.mjs.map +1 -0
  178. package/fesm2022/koobiq-components-scrollbar.mjs +3 -2
  179. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  180. package/fesm2022/koobiq-components-search-expandable.mjs +4 -4
  181. package/fesm2022/koobiq-components-search-expandable.mjs.map +1 -1
  182. package/fesm2022/koobiq-components-select.mjs +8 -17
  183. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  184. package/fesm2022/koobiq-components-sidepanel.mjs +2 -2
  185. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  186. package/fesm2022/koobiq-components-split-button.mjs +46 -5
  187. package/fesm2022/koobiq-components-split-button.mjs.map +1 -1
  188. package/fesm2022/koobiq-components-tags.mjs +125 -146
  189. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  190. package/fesm2022/koobiq-components-textarea.mjs +4 -4
  191. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  192. package/fesm2022/koobiq-components-time-range.mjs +81 -112
  193. package/fesm2022/koobiq-components-time-range.mjs.map +1 -1
  194. package/fesm2022/koobiq-components-timepicker.mjs +4 -4
  195. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  196. package/fesm2022/koobiq-components-timezone.mjs +7 -5
  197. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  198. package/fesm2022/koobiq-components-title.mjs +5 -1
  199. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  200. package/fesm2022/koobiq-components-toggle.mjs +2 -2
  201. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  202. package/fesm2022/koobiq-components-top-bar.mjs +2 -2
  203. package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
  204. package/fesm2022/koobiq-components-tree-select.mjs +102 -82
  205. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  206. package/fesm2022/koobiq-components-tree.mjs +28 -17
  207. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  208. package/file-upload/_file-upload-theme.scss +32 -34
  209. package/file-upload/file-upload-tokens.scss +1 -2
  210. package/file-upload/file-upload.scss +4 -7
  211. package/file-upload/multiple-file-upload.component.d.ts +1 -1
  212. package/file-upload/multiple-file-upload.component.scss +12 -14
  213. package/file-upload/single-file-upload.component.d.ts +1 -0
  214. package/file-upload/single-file-upload.component.scss +5 -7
  215. package/filter-bar/filter-bar.d.ts +3 -1
  216. package/filter-bar/filter-search.scss +1 -3
  217. package/filter-bar/filters.d.ts +1 -0
  218. package/filter-bar/pipes/base-pipe.d.ts +5 -1
  219. package/filter-bar/pipes/pipe-date.scss +4 -2
  220. package/filter-bar/pipes/pipe-title.d.ts +2 -0
  221. package/form-field/fieldset-tokens.scss +2 -1
  222. package/form-field/form-field-tokens.scss +2 -2
  223. package/form-field/form-field.scss +9 -1
  224. package/form-field/stepper.d.ts +28 -6
  225. package/inline-edit/inline-edit.d.ts +5 -1
  226. package/input/input.module.d.ts +2 -1
  227. package/list/list-selection.component.d.ts +12 -1
  228. package/markdown/_markdown-theme.scss +0 -1
  229. package/markdown/markdown.scss +2 -4
  230. package/modal/modal-tokens.scss +2 -1
  231. package/modal/modal-util.d.ts +5 -2
  232. package/modal/modal.scss +3 -4
  233. package/navbar/_navbar-item_vertical.scss +44 -43
  234. package/navbar/_navbar-theme.scss +14 -35
  235. package/navbar/navbar-brand.component.d.ts +39 -0
  236. package/navbar/navbar-brand.scss +78 -45
  237. package/navbar/navbar-divider.scss +1 -1
  238. package/navbar/navbar-item.component.d.ts +4 -36
  239. package/navbar/navbar-toggle.component.d.ts +23 -0
  240. package/navbar/navbar-toggle.scss +64 -0
  241. package/navbar/navbar-tokens.scss +1 -0
  242. package/navbar/navbar.module.d.ts +8 -6
  243. package/navbar/public-api.d.ts +2 -0
  244. package/navbar/vertical-navbar.component.d.ts +20 -2
  245. package/navbar/vertical-navbar.scss +14 -9
  246. package/navbar-ic/navbar-ic-header.d.ts +3 -2
  247. package/navbar-ic/navbar-ic-header.scss +0 -4
  248. package/navbar-ic/navbar-ic-item.d.ts +1 -0
  249. package/navbar-ic/navbar-ic-item.scss +0 -4
  250. package/navbar-ic/navbar-ic.animation.d.ts +1 -0
  251. package/navbar-ic/navbar-ic.d.ts +7 -0
  252. package/notification-center/notification-center.d.ts +12 -9
  253. package/package.json +16 -10
  254. package/popover/popover-tokens.scss +1 -0
  255. package/popover/popover.component.d.ts +12 -1
  256. package/popover/popover.scss +3 -4
  257. package/prebuilt-themes/dark-theme.css +1 -1
  258. package/prebuilt-themes/light-theme.css +1 -1
  259. package/prebuilt-themes/theme.css +1 -1
  260. package/resizer/index.d.ts +2 -0
  261. package/resizer/module.d.ts +7 -0
  262. package/{content-panel/resizable.d.ts → resizer/resizer.d.ts} +18 -13
  263. package/schematics/collection.json +5 -0
  264. package/schematics/migrations/icons-replacement/README.md +93 -0
  265. package/schematics/migrations/icons-replacement/data.js +92 -0
  266. package/schematics/migrations/icons-replacement/index.js +84 -0
  267. package/schematics/migrations/icons-replacement/schema.json +32 -0
  268. package/schematics/ng-add/index.js +6 -6
  269. package/scrollbar/scrollbar.component.scss +2 -3
  270. package/select/select.module.d.ts +2 -1
  271. package/select/select.scss +1 -17
  272. package/sidepanel/sidepanel-tokens.scss +2 -0
  273. package/sidepanel/sidepanel.scss +2 -0
  274. package/split-button/_split-button-theme.scss +89 -34
  275. package/split-button/split-button.d.ts +11 -5
  276. package/split-button/split-button.scss +40 -51
  277. package/tags/tag-input.d.ts +16 -7
  278. package/tags/tag-list.component.d.ts +44 -21
  279. package/tags/tag-list.scss +13 -14
  280. package/tags/tag.component.d.ts +20 -15
  281. package/textarea/textarea-tokens.scss +6 -1
  282. package/textarea/textarea.module.d.ts +2 -1
  283. package/textarea/textarea.scss +4 -0
  284. package/time-range/constants.d.ts +12 -1
  285. package/time-range/time-range-editor.d.ts +7 -9
  286. package/time-range/time-range-title-as-form-field.d.ts +1 -0
  287. package/time-range/time-range.d.ts +5 -2
  288. package/time-range/time-range.service.d.ts +7 -11
  289. package/time-range/types.d.ts +37 -11
  290. package/timepicker/timepicker.module.d.ts +2 -1
  291. package/timezone/timezone-option.component.scss +6 -0
  292. package/timezone/timezone.module.d.ts +1 -1
  293. package/toggle/_toggle-theme.scss +8 -5
  294. package/toggle/toggle-tokens.scss +0 -1
  295. package/toggle/toggle.scss +11 -15
  296. package/top-bar/top-bar-tokens.scss +1 -1
  297. package/top-bar/top-bar.scss +3 -0
  298. package/tree/tree-option.component.d.ts +1 -0
  299. package/tree/tree-selection.component.d.ts +11 -2
  300. package/tree-select/tree-select.component.d.ts +5 -5
  301. package/tree-select/tree-select.module.d.ts +2 -1
  302. package/tree-select/tree-select.scss +4 -0
  303. package/core/common-behaviors/hovered.d.ts +0 -13
  304. package/core/locales/fa-IR.d.ts +0 -162
  305. package/core/locales/zh-CN.d.ts +0 -162
  306. package/esm2022/content-panel/resizable.mjs +0 -138
  307. package/esm2022/core/common-behaviors/hovered.mjs +0 -31
  308. package/esm2022/core/locales/fa-IR.mjs +0 -173
  309. package/esm2022/core/locales/zh-CN.mjs +0 -161
@@ -23,10 +23,19 @@ export declare class KbqListSelectAllEvent<T> {
23
23
  options: T[];
24
24
  constructor(source: KbqListSelection, options: T[]);
25
25
  }
26
+ /**
27
+ * Event class that occurs when copying an item from the KbqListSelection.
28
+ * Used to pass data about the copied item and copy context.
29
+ *
30
+ * @param source - instance of KbqListSelection
31
+ * @param option - instance of KbqListOption
32
+ * @param event - original keyboard event (optional) that triggered the copy
33
+ */
26
34
  export declare class KbqListCopyEvent<T> {
27
35
  source: KbqListSelection;
28
36
  option: T;
29
- constructor(source: KbqListSelection, option: T);
37
+ event?: KeyboardEvent | undefined;
38
+ constructor(source: KbqListSelection, option: T, event?: KeyboardEvent | undefined);
30
39
  }
31
40
  export declare class KbqListSelection implements AfterContentInit, AfterViewInit, OnDestroy, ControlValueAccessor {
32
41
  private elementRef;
@@ -87,6 +96,7 @@ export declare class KbqListSelection implements AfterContentInit, AfterViewInit
87
96
  getSelectedOptionValues(): string[];
88
97
  toggleFocusedOption(): void;
89
98
  canDeselectLast(listOption: KbqListOption): boolean;
99
+ /** @docs-private */
90
100
  getHeight(): number;
91
101
  onTouched: () => void;
92
102
  removeOptionFromList(option: KbqListOption): void;
@@ -168,6 +178,7 @@ export declare class KbqListOption implements OnDestroy, OnInit, IFocusableOptio
168
178
  toggle(): void;
169
179
  getLabel(): any;
170
180
  setSelected(selected: boolean): void;
181
+ /** @docs-private */
171
182
  getHeight(): number;
172
183
  /** Handles click events on the list option. */
173
184
  handleClick($event: MouseEvent): void;
@@ -1,5 +1,4 @@
1
1
  @use '../core/styles/common/tokens' as *;
2
-
3
2
  @use './markdown-tokens';
4
3
 
5
4
  @mixin kbq-markdown-theme() {
@@ -1,15 +1,13 @@
1
- // @TODO should remove "selector-class-pattern" rule ignore (#DS-3753)
2
- /* stylelint-disable selector-class-pattern */
3
1
  @use '../core/styles/common/tokens' as *;
4
2
 
5
3
  .kbq-markdown {
6
4
  display: block;
7
5
 
8
- .markdown-input {
6
+ .kbq-markdown__input {
9
7
  display: none;
10
8
  }
11
9
 
12
- .markdown-output {
10
+ .kbq-markdown__output {
13
11
  flex: 1;
14
12
 
15
13
  & > :first-child {
@@ -8,7 +8,8 @@
8
8
  --kbq-modal-size-header-padding-right: var(--kbq-size-6xl);
9
9
  --kbq-modal-size-close-button-margin-left: var(--kbq-size-s);
10
10
  --kbq-modal-size-content-padding-horizontal: var(--kbq-size-xxl);
11
- --kbq-modal-size-content-padding-top: 0;
11
+ // Added top padding to prevent the outline of the first focused field from being clipped
12
+ --kbq-modal-size-content-padding-top: 1px;
12
13
  --kbq-modal-size-content-padding-bottom: var(--kbq-size-s);
13
14
  --kbq-modal-size-content-padding-top-without-header: var(--kbq-size-xxl);
14
15
  --kbq-modal-size-content-padding-bottom-without-footer: var(--kbq-size-4xl);
@@ -1,12 +1,15 @@
1
+ /** @docs-private */
1
2
  export interface IClickPosition {
2
3
  x: number;
3
4
  y: number;
4
5
  }
6
+ /** @docs-private */
5
7
  export declare class ModalUtil {
6
- private document;
8
+ private document?;
7
9
  private lastPosition;
8
- constructor(document: Document);
10
+ constructor(document?: Document | undefined);
9
11
  getLastClickPosition(): IClickPosition;
10
12
  listenDocumentClick(): void;
11
13
  }
14
+ /** @docs-private */
12
15
  export declare const modalUtilObject: ModalUtil;
package/modal/modal.scss CHANGED
@@ -1,9 +1,5 @@
1
- // @TODO should remove "selector-class-pattern" rule ignore (#DS-3753)
2
- /* stylelint-disable selector-class-pattern */
3
1
  @use '../core/styles/common/tokens' as *;
4
-
5
2
  @use './modal-confirm';
6
-
7
3
  @use './modal-theme' as *;
8
4
 
9
5
  .kbq-modal-container {
@@ -21,8 +17,11 @@
21
17
 
22
18
  list-style: none;
23
19
 
20
+ // DEPRECATED: Unused. Will be removed in next major release.
21
+ /* stylelint-disable */
24
22
  &.zoom-enter,
25
23
  &.zoom-appear {
24
+ /* stylelint-enable */
26
25
  animation-duration: 0.3s;
27
26
  // reset scale avoid mousePosition bug
28
27
  transform: none;
@@ -1,81 +1,78 @@
1
1
  @use '../core/styles/common/tokens' as *;
2
2
 
3
3
  .kbq-navbar-item.kbq-vertical {
4
+ height: 41px;
5
+
4
6
  & .kbq-navbar-item__container {
5
7
  gap: var(--kbq-size-m);
6
8
  }
7
9
 
8
- &.kbq-expanded {
9
- height: var(--kbq-size-5xl);
10
+ padding-right: var(--kbq-size-xl);
11
+ padding-left: var(--kbq-size-xl);
12
+
13
+ &:after {
14
+ top: 0;
15
+ right: var(--kbq-size-s);
16
+ bottom: 1px;
17
+ left: var(--kbq-size-s);
18
+ }
10
19
 
20
+ &.kbq-navbar-bento {
21
+ display: flex;
22
+
23
+ justify-content: start;
11
24
  align-items: center;
12
25
 
13
- padding-right: var(--kbq-size-xl);
14
- padding-left: var(--kbq-size-xl);
26
+ height: var(--kbq-size-5xl);
15
27
 
16
- gap: var(--kbq-size-m);
28
+ padding-top: var(--kbq-size-s);
17
29
 
18
30
  &:after {
19
- top: var(--kbq-size-xxs);
20
- right: var(--kbq-size-s);
21
- bottom: var(--kbq-size-xxs);
22
- left: var(--kbq-size-s);
31
+ top: var(--kbq-size-s);
32
+ bottom: 0;
23
33
  }
34
+ }
24
35
 
25
- &.kbq-navbar-bento {
26
- position: absolute;
36
+ &.kbq-expanded {
37
+ align-items: center;
27
38
 
28
- display: flex;
39
+ gap: var(--kbq-size-m);
29
40
 
30
- justify-content: center;
41
+ &.kbq-navbar-item_has-nested {
31
42
  align-items: center;
32
43
 
33
- top: var(--kbq-size-xxs);
34
- right: var(--kbq-size-xxs);
35
-
36
- z-index: 1;
37
-
38
- padding: var(--kbq-size-s);
39
-
40
- height: var(--kbq-size-5xl);
41
- width: var(--kbq-size-5xl);
44
+ padding: 0 var(--kbq-size-m);
45
+ }
42
46
 
43
- &:after {
44
- top: var(--kbq-size-s);
45
- right: var(--kbq-size-s);
46
- bottom: var(--kbq-size-s);
47
- left: var(--kbq-size-s);
48
- }
47
+ &.kbq-navbar-bento .kbq-navbar-item__title {
48
+ margin-left: -8px;
49
+ opacity: 0;
49
50
  }
50
51
 
51
- &.kbq-navbar-item_has-nested {
52
- align-items: center;
52
+ &.kbq-navbar-bento:hover,
53
+ &.kbq-navbar-bento.cdk-keyboard-focused {
54
+ & .kbq-navbar-item__title {
55
+ margin-left: 0;
56
+ opacity: 1;
53
57
 
54
- padding: 0 var(--kbq-size-m);
58
+ transition:
59
+ opacity 150ms ease-out,
60
+ margin-left 150ms ease-out;
61
+ }
55
62
  }
56
63
  }
57
64
 
58
65
  &.kbq-collapsed {
59
- height: var(--kbq-size-5xl);
60
- width: var(--kbq-size-5xl);
61
-
62
- padding: var(--kbq-size-l);
66
+ width: var(--kbq-size-6xl);
63
67
 
64
68
  justify-content: center;
65
69
 
66
- &:after {
67
- top: var(--kbq-size-s);
68
- right: var(--kbq-size-s);
69
- bottom: var(--kbq-size-s);
70
- left: var(--kbq-size-s);
71
- }
72
-
73
70
  & .kbq-badge {
74
71
  position: absolute;
75
72
 
76
73
  z-index: 1;
77
74
 
78
- top: var(--kbq-size-xs);
75
+ top: calc(-1 * var(--kbq-size-3xs));
79
76
  right: var(--kbq-size-xs);
80
77
  }
81
78
 
@@ -90,3 +87,7 @@
90
87
  align-items: center;
91
88
  }
92
89
  }
90
+
91
+ button.kbq-navbar-item.kbq-vertical {
92
+ width: 100%;
93
+ }
@@ -21,24 +21,30 @@
21
21
  }
22
22
  }
23
23
 
24
+ button {
25
+ &.kbq-navbar-item,
26
+ &.kbq-navbar-brand {
27
+ background: transparent;
28
+ border: none;
29
+ }
30
+ }
31
+
24
32
  @mixin kbq-navbar-theme() {
25
- .kbq-navbar,
26
- .kbq-vertical-navbar .kbq-vertical-navbar__container {
33
+ .kbq-navbar {
27
34
  background-color: var(--kbq-navbar-background);
28
35
  }
29
36
 
30
37
  .kbq-vertical-navbar .kbq-vertical-navbar__container {
38
+ background-color: var(--kbq-navbar-vertical-background);
31
39
  border-right: 1px solid var(--kbq-navbar-border);
32
40
  }
33
41
 
34
- .kbq-navbar-item,
35
- .kbq-navbar-brand,
36
- .kbq-navbar-toggle {
42
+ .kbq-navbar-item {
37
43
  cursor: pointer;
38
44
 
39
45
  @include kbq-navbar-item(default);
40
46
 
41
- &:hover:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand) {
47
+ &:hover:not(.kbq-disabled) {
42
48
  @include kbq-navbar-item(states-hover);
43
49
  }
44
50
 
@@ -51,8 +57,8 @@
51
57
  }
52
58
  }
53
59
 
54
- &:active:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand),
55
- &.kbq-active:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand) {
60
+ &:active:not(.kbq-disabled),
61
+ &.kbq-active:not(.kbq-disabled) {
56
62
  @include kbq-navbar-item(states-selected);
57
63
  }
58
64
 
@@ -68,40 +74,13 @@
68
74
  }
69
75
  }
70
76
 
71
- .kbq-navbar-brand.kbq-vertical:hover {
72
- .kbq-navbar-logo {
73
- transform: scale(1.06);
74
- }
75
- }
76
-
77
- .kbq-navbar-brand.kbq-horizontal:hover {
78
- .kbq-navbar-logo {
79
- z-index: 1;
80
- }
81
- }
82
-
83
77
  .kbq-navbar-divider {
84
78
  background: var(--kbq-line-contrast-less);
85
79
  }
86
80
  }
87
81
 
88
- button {
89
- &.kbq-navbar-item,
90
- &.kbq-navbar-brand,
91
- &.kbq-navbar-toggle {
92
- background: transparent;
93
- border: none;
94
- }
95
- }
96
-
97
82
  @mixin kbq-navbar-typography() {
98
83
  .kbq-navbar-title {
99
84
  @include kbq-typography-level-to-styles-css-variables(typography, text-normal-medium);
100
85
  }
101
-
102
- .kbq-navbar-brand {
103
- .kbq-navbar-title {
104
- @include kbq-typography-level-to-styles-css-variables(typography, navbar-title);
105
- }
106
- }
107
86
  }
@@ -0,0 +1,39 @@
1
+ import { AfterContentInit, ChangeDetectorRef } from '@angular/core';
2
+ import { KbqTooltipTrigger } from '@koobiq/components/tooltip';
3
+ import { KbqNavbarFocusableItem, KbqNavbarRectangleElement, KbqNavbarTitle } from './navbar-item.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class KbqNavbarBrand extends KbqTooltipTrigger implements AfterContentInit {
6
+ /** @docs-private */
7
+ protected readonly nativeElement: HTMLElement;
8
+ /** @docs-private */
9
+ protected readonly changeDetectorRef: ChangeDetectorRef;
10
+ /** @docs-private */
11
+ protected readonly rectangleElement: KbqNavbarRectangleElement;
12
+ /** @docs-private */
13
+ protected readonly navbarFocusableItem: KbqNavbarFocusableItem;
14
+ /** @docs-private */
15
+ title: KbqNavbarTitle;
16
+ /** alternative display of the brand name in two lines */
17
+ longTitle: boolean;
18
+ /** text that will be displayed in the tooltip. By default, the text is taken from kbq-navbar-title. */
19
+ collapsedText: string;
20
+ get isLink(): boolean;
21
+ /** @docs-private */
22
+ get croppedText(): string;
23
+ /** @docs-private */
24
+ get hasCroppedText(): boolean;
25
+ /** @docs-private */
26
+ get titleText(): string | null;
27
+ /** @docs-private */
28
+ get disabled(): boolean;
29
+ set disabled(value: boolean);
30
+ /** @docs-private */
31
+ get collapsed(): boolean;
32
+ set collapsed(value: boolean);
33
+ private _collapsed;
34
+ constructor();
35
+ ngAfterContentInit(): void;
36
+ private updateTooltip;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarBrand, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbqNavbarBrand, "kbq-navbar-brand, [kbq-navbar-brand]", ["kbqNavbarBrand"], { "longTitle": { "alias": "longTitle"; "required": false; }; "collapsedText": { "alias": "collapsedText"; "required": false; }; }, {}, ["title"], ["*"], false, never>;
39
+ }
@@ -1,5 +1,6 @@
1
1
  @use '../core/styles/tokens';
2
2
  @use '../core/styles/common/tokens' as *;
3
+ @use './navbar-theme';
3
4
 
4
5
  .kbq-navbar-logo {
5
6
  display: flex;
@@ -50,6 +51,18 @@ a.kbq-navbar-brand {
50
51
  }
51
52
 
52
53
  .kbq-navbar-brand.kbq-vertical {
54
+ flex-direction: row;
55
+ align-items: center;
56
+
57
+ padding: var(--kbq-size-xxs) var(--kbq-size-m) var(--kbq-size-m);
58
+
59
+ &:after {
60
+ top: 0;
61
+ right: var(--kbq-size-s);
62
+ bottom: var(--kbq-size-s);
63
+ left: var(--kbq-size-s);
64
+ }
65
+
53
66
  & .kbq-navbar-logo {
54
67
  align-items: center;
55
68
  }
@@ -58,65 +71,85 @@ a.kbq-navbar-brand {
58
71
  display: block;
59
72
  align-items: center;
60
73
 
61
- padding-top: var(--kbq-size-xxs);
62
- padding-bottom: var(--kbq-size-xxs);
63
-
64
- height: var(--kbq-size-3xl);
65
-
66
- padding-left: 0;
67
-
68
- text-overflow: ellipsis;
69
- white-space: nowrap;
70
- overflow: hidden;
74
+ padding-left: var(--kbq-size-s);
71
75
  }
72
76
 
73
77
  &.kbq-expanded {
74
- position: relative;
75
-
76
- height: var(--kbq-size-4xl);
77
- width: var(--kbq-size-4xl);
78
-
79
- margin: var(--kbq-size-l) var(--kbq-size-l) var(--kbq-size-4xl);
80
-
81
- flex-direction: column;
82
-
83
- &:after {
84
- top: 0;
85
- right: 0;
86
- bottom: 0;
87
- left: 0;
78
+ & .kbq-navbar-title {
79
+ max-width: 200px;
88
80
  }
81
+ }
89
82
 
90
- & .kbq-navbar-logo {
91
- min-height: var(--kbq-size-4xl);
92
-
93
- justify-content: center;
83
+ &.kbq-collapsed {
84
+ & .kbq-navbar-title {
85
+ display: none !important;
94
86
  }
87
+ }
95
88
 
96
- & .kbq-navbar-title {
97
- position: absolute;
89
+ &.kbq-navbar-brand_long-title .kbq-navbar-title {
90
+ display: -webkit-box;
98
91
 
99
- left: var(--kbq-size-xxs);
100
- top: var(--kbq-size-4xl);
101
- max-width: 200px;
102
- }
92
+ -webkit-box-orient: vertical;
93
+ -webkit-line-clamp: 2;
94
+ white-space: normal;
103
95
  }
96
+ }
104
97
 
105
- &.kbq-collapsed {
106
- height: var(--kbq-size-5xl);
107
- width: var(--kbq-size-5xl);
108
-
109
- &:after {
110
- top: var(--kbq-size-xxs);
111
- right: var(--kbq-size-xxs);
112
- bottom: var(--kbq-size-xxs);
113
- left: var(--kbq-size-xxs);
98
+ @mixin kbq-navbar-brand-theme() {
99
+ .kbq-navbar-brand {
100
+ @include navbar-theme.kbq-navbar-item(default);
101
+
102
+ &.kbq-navbar-brand_link {
103
+ cursor: pointer;
104
+
105
+ &:hover:not(.kbq-disabled) {
106
+ @include navbar-theme.kbq-navbar-item(states-hover);
107
+ }
108
+
109
+ &.cdk-focused.cdk-keyboard-focused {
110
+ outline: none;
111
+
112
+ &:after {
113
+ display: block;
114
+ box-shadow: inset 0 0 0 2px var(--kbq-states-line-focus-theme);
115
+ }
116
+ }
117
+
118
+ &:active:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand),
119
+ &.kbq-active:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand) {
120
+ @include navbar-theme.kbq-navbar-item(states-selected);
121
+ }
122
+
123
+ &.kbq-vertical:hover {
124
+ .kbq-navbar-logo {
125
+ transform: scale(1.06);
126
+ }
127
+ }
128
+
129
+ &.kbq-horizontal:hover {
130
+ .kbq-navbar-logo {
131
+ z-index: 1;
132
+ }
133
+ }
114
134
  }
115
135
 
136
+ &.kbq-navbar-focusable-item {
137
+ outline: none;
138
+ }
139
+ }
140
+ }
141
+
142
+ @mixin kbq-navbar-brand-typography() {
143
+ .kbq-navbar-brand {
116
144
  & .kbq-navbar-title {
117
- display: none;
145
+ @include kbq-typography-level-to-styles-css-variables(typography, navbar-title);
118
146
  }
119
147
 
120
- justify-content: center;
148
+ &.kbq-navbar-brand_long-title .kbq-navbar-title {
149
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal-strong);
150
+ }
121
151
  }
122
152
  }
153
+
154
+ @include kbq-navbar-brand-theme();
155
+ @include kbq-navbar-brand-typography();
@@ -7,7 +7,7 @@
7
7
  .kbq-navbar-divider.kbq-vertical {
8
8
  height: 1px;
9
9
 
10
- margin: var(--kbq-size-s) var(--kbq-size-l);
10
+ margin: var(--kbq-size-xs) var(--kbq-size-l);
11
11
  }
12
12
 
13
13
  .kbq-navbar-divider.kbq-horizontal {
@@ -1,13 +1,12 @@
1
1
  import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
2
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, TemplateRef } from '@angular/core';
2
+ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy } from '@angular/core';
3
3
  import { IFocusableOption } from '@koobiq/cdk/a11y';
4
4
  import { KbqButton, KbqButtonCssStyler } from '@koobiq/components/button';
5
5
  import { KbqDropdownTrigger } from '@koobiq/components/dropdown';
6
6
  import { KbqFormField } from '@koobiq/components/form-field';
7
7
  import { KbqIcon } from '@koobiq/components/icon';
8
- import { KbqTooltipTrigger, TooltipModifier } from '@koobiq/components/tooltip';
8
+ import { KbqTooltipTrigger } from '@koobiq/components/tooltip';
9
9
  import { Subject } from 'rxjs';
10
- import { KbqVerticalNavbar } from './vertical-navbar.component';
11
10
  import * as i0 from "@angular/core";
12
11
  export interface KbqNavbarFocusableItemEvent {
13
12
  item: KbqNavbarFocusableItem;
@@ -36,18 +35,6 @@ export declare class KbqNavbarTitle implements AfterViewInit {
36
35
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarTitle, never>;
37
36
  static ɵdir: i0.ɵɵDirectiveDeclaration<KbqNavbarTitle, "kbq-navbar-title, [kbq-navbar-title]", never, {}, {}, never, never, false, never>;
38
37
  }
39
- export declare class KbqNavbarBrand implements AfterContentInit {
40
- private navbar;
41
- logo: KbqNavbarLogo;
42
- title: KbqNavbarTitle;
43
- hovered: boolean;
44
- get hasBento(): boolean;
45
- private readonly destroyRef;
46
- constructor(navbar: KbqVerticalNavbar);
47
- ngAfterContentInit(): void;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarBrand, [{ optional: true; }]>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqNavbarBrand, "kbq-navbar-brand, [kbq-navbar-brand]", ["kbqNavbarBrand"], {}, {}, ["logo", "title"], ["*"], false, never>;
50
- }
51
38
  export declare class KbqNavbarDivider {
52
39
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarDivider, never>;
53
40
  static ɵdir: i0.ɵɵDirectiveDeclaration<KbqNavbarDivider, "kbq-navbar-divider", never, {}, {}, never, never, false, never>;
@@ -112,7 +99,6 @@ export declare class KbqNavbarItem extends KbqTooltipTrigger implements AfterCon
112
99
  private changeDetectorRef;
113
100
  private dropdownTrigger;
114
101
  private bento;
115
- private tooltip;
116
102
  title: KbqNavbarTitle;
117
103
  icon: KbqIcon;
118
104
  collapsedText: string;
@@ -132,29 +118,11 @@ export declare class KbqNavbarItem extends KbqTooltipTrigger implements AfterCon
132
118
  get showVerticalDropDownAngle(): boolean;
133
119
  get showHorizontalDropDownAngle(): boolean;
134
120
  get hasCroppedText(): boolean;
135
- constructor(rectangleElement: KbqNavbarRectangleElement, navbarFocusableItem: KbqNavbarFocusableItem, changeDetectorRef: ChangeDetectorRef, dropdownTrigger: KbqDropdownTrigger, bento: KbqNavbarBento, tooltip: KbqTooltipTrigger);
121
+ constructor(rectangleElement: KbqNavbarRectangleElement, navbarFocusableItem: KbqNavbarFocusableItem, changeDetectorRef: ChangeDetectorRef, dropdownTrigger: KbqDropdownTrigger, bento: KbqNavbarBento);
136
122
  ngAfterContentInit(): void;
137
123
  updateTooltip(): void;
138
124
  getTitleWidth(): number;
139
125
  onKeyDown($event: KeyboardEvent): void;
140
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarItem, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
126
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarItem, [null, null, null, { optional: true; }, { optional: true; }]>;
141
127
  static ɵcmp: i0.ɵɵComponentDeclaration<KbqNavbarItem, "kbq-navbar-item, [kbq-navbar-item]", ["kbqNavbarItem"], { "collapsedText": { "alias": "collapsedText"; "required": false; }; "trigger": { "alias": "kbqTrigger"; "required": false; }; "collapsable": { "alias": "collapsable"; "required": false; }; }, {}, ["title", "icon"], ["[kbq-icon]", "kbq-navbar-title, [kbq-navbar-title]", "*"], false, never>;
142
128
  }
143
- export declare class KbqNavbarToggle extends KbqTooltipTrigger implements OnDestroy {
144
- navbar: KbqVerticalNavbar;
145
- private changeDetectorRef;
146
- protected readonly document: Document;
147
- private readonly window;
148
- customIcon: KbqIcon;
149
- get content(): string | TemplateRef<any>;
150
- set content(content: string | TemplateRef<any>);
151
- get disabled(): boolean;
152
- protected modifier: TooltipModifier;
153
- constructor(navbar: KbqVerticalNavbar, changeDetectorRef: ChangeDetectorRef);
154
- onKeydown($event: KeyboardEvent): void;
155
- ngOnDestroy(): void;
156
- toggle: () => void;
157
- private windowToggleHandler;
158
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarToggle, never>;
159
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqNavbarToggle, "kbq-navbar-toggle", never, { "content": { "alias": "kbqCollapsedTooltip"; "required": false; }; }, {}, ["customIcon"], ["[kbq-icon]", "kbq-navbar-title"], false, never>;
160
- }
@@ -0,0 +1,23 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { KbqVerticalNavbar } from './vertical-navbar.component';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/cdk/a11y";
5
+ import * as i2 from "@koobiq/components/tooltip";
6
+ export declare class KbqNavbarToggle implements OnDestroy {
7
+ private readonly window;
8
+ private readonly ngZone;
9
+ private readonly changeDetectorRef;
10
+ private readonly tooltip;
11
+ /** @docs-private */
12
+ protected readonly navbar: KbqVerticalNavbar;
13
+ constructor();
14
+ ngOnDestroy(): void;
15
+ /** @docs-private */
16
+ keydownHandler($event: KeyboardEvent): void;
17
+ /** toggles the state of the navbar */
18
+ toggle(): void;
19
+ private updateTooltipContent;
20
+ private windowToggleHandler;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarToggle, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbqNavbarToggle, "kbq-navbar-toggle, [kbq-navbar-toggle]", never, {}, {}, never, ["[kbq-icon]"], false, [{ directive: typeof i1.CdkMonitorFocus; inputs: {}; outputs: {}; }, { directive: typeof i2.KbqTooltipTrigger; inputs: {}; outputs: {}; }]>;
23
+ }