@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
@@ -1,33 +1,56 @@
1
1
  import { KbqPopoverTrigger } from '@koobiq/components/popover';
2
- import { DurationUnit } from '@koobiq/date-adapter';
2
+ import { DurationObjectUnits, DurationUnit } from '@koobiq/date-adapter';
3
+ /**
4
+ * Represents a time range with optional start and end date-time values.
5
+ * Used as a form value when range in popover change.
6
+ */
3
7
  export interface KbqRangeValue<T> {
4
8
  fromTime?: T;
5
9
  fromDate?: T;
6
10
  toTime?: T;
7
11
  toDate?: T;
8
12
  }
13
+ /**
14
+ * Represents a time range with optional start and end date-time values.
15
+ * Used as a range value by default.
16
+ */
9
17
  export type KbqRange = {
10
18
  startDateTime?: string;
11
19
  endDateTime?: string;
12
20
  };
13
- export type KbqTimeRangeRange = KbqRange & KbqTimeRangeTypeContext;
21
+ /** Range type selected */
14
22
  export type KbqTimeRangeTypeContext = {
15
23
  type: KbqTimeRangeType;
16
24
  };
17
25
  /**
18
- * Default accepted “time‑range identifiers.
26
+ * Main range information.
27
+ * Used for a popover date range selection, when selected type is range,
28
+ * and for trigger information calculation.
19
29
  */
30
+ export type KbqTimeRangeRange = KbqRange & KbqTimeRangeTypeContext;
31
+ /** Default accepted “time‑range” identifiers. */
20
32
  export type KbqTimeRangeType = 'lastMinute' | 'last5Minutes' | 'last15Minutes' | 'last30Minutes' | 'lastHour' | 'last24Hours' | 'last3Days' | 'last7Days' | 'last14Days' | 'last30Days' | 'last3Months' | 'last12Months' | 'allTime' | 'currentQuarter' | 'currentYear' | 'range';
21
- export type KbqTimeRangeTranslationType = Extract<DurationUnit, 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months'> | 'other';
22
- export interface KbqTimeRangeUnits {
23
- seconds?: number;
24
- minutes?: number;
25
- hours?: number;
26
- days?: number;
27
- weeks?: number;
28
- months?: number;
33
+ /** Property representing duration output unit */
34
+ export type KbqTimeRangeTranslationType = Exclude<DurationUnit, 'quarters' | 'milliseconds'> | 'other';
35
+ /**
36
+ * Configuration for a custom time range with duration metadata.
37
+ * Defines a time range with its identifier, duration units, and optional fixed date range.
38
+ */
39
+ export interface KbqTimeRangeUnits extends DurationObjectUnits {
29
40
  }
41
+ export type KbqCustomTimeRangeType = {
42
+ /** time range identifier. Used as config key */
43
+ type: KbqTimeRangeType | string;
44
+ /** Duration metadata */
45
+ units: KbqTimeRangeUnits;
46
+ /** Property representing duration output unit */
47
+ translationType: KbqTimeRangeTranslationType;
48
+ /** Custom range of start/end date-times */
49
+ range?: KbqRange;
50
+ };
51
+ /** Context for a time range trigger, combining range info and type. */
30
52
  export type KbqTimeRangeTitleContext = KbqTimeRangeRange & KbqTimeRangeUnits;
53
+ /** Context for a time range trigger customization, combining meta information. */
31
54
  export type KbqTimeRangeCustomizableTitleContext = Partial<KbqTimeRangeTitleContext> & {
32
55
  $implicit: Partial<KbqTimeRangeTitleContext> & {
33
56
  formattedDate: string;
@@ -37,7 +60,10 @@ export type KbqTimeRangeCustomizableTitleContext = Partial<KbqTimeRangeTitleCont
37
60
  formattedDate: string;
38
61
  popover: KbqPopoverTrigger;
39
62
  };
63
+ /** @docs-private */
40
64
  export type KbqTimeRangeTranslateTypeMap = Record<KbqTimeRangeType, KbqTimeRangeTranslationType>;
65
+ /** Context for a time range option customization, combining meta information. */
41
66
  export type KbqTimeRangeOptionContext = KbqTimeRangeTypeContext & KbqTimeRangeUnits & {
42
67
  translationType: KbqTimeRangeTranslationType;
68
+ formattedValue: string;
43
69
  };
@@ -3,8 +3,9 @@ import * as i1 from "./timepicker.directive";
3
3
  import * as i2 from "@angular/cdk/a11y";
4
4
  import * as i3 from "@angular/cdk/platform";
5
5
  import * as i4 from "@angular/forms";
6
+ import * as i5 from "@koobiq/components/form-field";
6
7
  export declare class KbqTimepickerModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimepickerModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTimepickerModule, [typeof i1.KbqTimepicker], [typeof i2.A11yModule, typeof i3.PlatformModule, typeof i4.FormsModule], [typeof i1.KbqTimepicker]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTimepickerModule, [typeof i1.KbqTimepicker], [typeof i2.A11yModule, typeof i3.PlatformModule, typeof i4.FormsModule], [typeof i1.KbqTimepicker, typeof i5.KbqFormFieldModule]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<KbqTimepickerModule>;
10
11
  }
@@ -32,6 +32,12 @@
32
32
 
33
33
  .kbq-select__panel .kbq-timezone-option {
34
34
  height: var(--kbq-timezone-option-size-height);
35
+
36
+ &:before,
37
+ &:after {
38
+ top: calc(-1 * var(--kbq-size-3xs));
39
+ bottom: calc(-1 * var(--kbq-size-3xs));
40
+ }
35
41
  }
36
42
 
37
43
  @include kbq-timezone-option-theme();
@@ -15,6 +15,6 @@ import * as i13 from "@angular/common";
15
15
  import * as i14 from "@angular/cdk/a11y";
16
16
  export declare class KbqTimezoneModule {
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimezoneModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTimezoneModule, [typeof i1.UtcOffsetPipe, typeof i2.CitiesByFilterPipe, typeof i3.KbqTimezoneSelect, typeof i4.KbqTimezoneOption, typeof i5.KbqTimezoneOptionTooltip, typeof i3.KbqTimezoneSelectTrigger], [typeof i6.OverlayModule, typeof i7.KbqFormFieldModule, typeof i8.KbqOptionModule, typeof i9.KbqSelectModule, typeof i10.KbqIconModule, typeof i11.KbqTagsModule, typeof i12.KbqToolTipModule, typeof i8.KbqHighlightModule, typeof i13.NgClass, typeof i13.KeyValuePipe, typeof i14.A11yModule], [typeof i3.KbqTimezoneSelect, typeof i4.KbqTimezoneOption, typeof i5.KbqTimezoneOptionTooltip, typeof i3.KbqTimezoneSelectTrigger]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTimezoneModule, [typeof i1.UtcOffsetPipe, typeof i2.CitiesByFilterPipe, typeof i3.KbqTimezoneSelect, typeof i4.KbqTimezoneOption, typeof i5.KbqTimezoneOptionTooltip, typeof i3.KbqTimezoneSelectTrigger], [typeof i6.OverlayModule, typeof i7.KbqFormFieldModule, typeof i8.KbqOptionModule, typeof i9.KbqSelectModule, typeof i10.KbqIconModule, typeof i11.KbqTagsModule, typeof i12.KbqToolTipModule, typeof i8.KbqHighlightModule, typeof i13.NgClass, typeof i13.KeyValuePipe, typeof i14.A11yModule], [typeof i3.KbqTimezoneSelect, typeof i4.KbqTimezoneOption, typeof i5.KbqTimezoneOptionTooltip, typeof i3.KbqTimezoneSelectTrigger, typeof i7.KbqFormFieldModule]>;
19
19
  static ɵinj: i0.ɵɵInjectorDeclaration<KbqTimezoneModule>;
20
20
  }
@@ -16,18 +16,17 @@
16
16
  @mixin _kbq-toggle-color($type) {
17
17
  @include _kbq-toggle-state($type, default);
18
18
 
19
- &:hover {
19
+ &:is(:hover, .kbq-hovered) {
20
20
  @include _kbq-toggle-state($type, states-hover);
21
21
  }
22
22
 
23
23
  &.kbq-active,
24
24
  &.kbq-indeterminate {
25
25
  @include _kbq-toggle-state($type, states-checked);
26
- }
27
26
 
28
- &.kbq-active:hover,
29
- &.kbq-indeterminate:hover {
30
- @include _kbq-toggle-state($type, states-checked-hover);
27
+ &:is(:hover, .kbq-hovered) {
28
+ @include _kbq-toggle-state($type, states-checked-hover);
29
+ }
31
30
  }
32
31
 
33
32
  &.cdk-keyboard-focused {
@@ -73,6 +72,10 @@
73
72
 
74
73
  &.kbq-disabled {
75
74
  color: var(--kbq-states-foreground-disabled);
75
+
76
+ .kbq-hint .kbq-hint__text {
77
+ color: inherit;
78
+ }
76
79
  }
77
80
 
78
81
  .kbq-toggle-bar {
@@ -5,7 +5,6 @@
5
5
  --kbq-toggle-size-big-height: var(--kbq-size-l);
6
6
  --kbq-toggle-size-big-width: 28px;
7
7
  --kbq-toggle-size-big-horizontal-content-padding: var(--kbq-size-s);
8
- --kbq-toggle-size-big-vertical-content-padding: var(--kbq-size-s);
9
8
  /* THEME TOKENS */
10
9
  --kbq-toggle-theme-default-border: var(--kbq-line-contrast-less);
11
10
  --kbq-toggle-theme-default-background: var(--kbq-background-bg);
@@ -1,5 +1,3 @@
1
- // @TODO should remove "selector-class-pattern" rule ignore (#DS-3753)
2
- /* stylelint-disable selector-class-pattern */
3
1
  @use '../core/styles/common/tokens';
4
2
  @use '../core/styles/common/animation';
5
3
  @use './toggle-theme' as theme;
@@ -27,11 +25,11 @@ $toggle-thumb-offset: 8px;
27
25
 
28
26
  cursor: inherit;
29
27
 
30
- &.left {
28
+ &.kbq-toggle-layout_left {
31
29
  flex-direction: row-reverse;
32
30
  }
33
31
 
34
- .kbq-toggle-bar-container:has(+ .kbq-toggle__content) {
32
+ &:has(.kbq-toggle-label:not(:empty)) .kbq-toggle-bar-container {
35
33
  padding-top: tokens.kbq-css-half-difference(typography-text-normal-line-height, toggle-size-normal-height);
36
34
  }
37
35
  }
@@ -104,12 +102,14 @@ $toggle-thumb-offset: 8px;
104
102
 
105
103
  flex: 1;
106
104
 
107
- &.left {
108
- margin-right: var(--kbq-toggle-size-normal-horizontal-content-padding);
109
- }
105
+ &:has(.kbq-toggle-label:not(:empty)) {
106
+ &.kbq-toggle__content_left {
107
+ margin-right: var(--kbq-toggle-size-normal-horizontal-content-padding);
108
+ }
110
109
 
111
- &.right {
112
- margin-left: var(--kbq-toggle-size-normal-horizontal-content-padding);
110
+ &.kbq-toggle__content_right {
111
+ margin-left: var(--kbq-toggle-size-normal-horizontal-content-padding);
112
+ }
113
113
  }
114
114
  }
115
115
 
@@ -119,13 +119,9 @@ $toggle-thumb-offset: 8px;
119
119
  width: var(--kbq-toggle-size-big-width);
120
120
  }
121
121
 
122
- & .kbq-hint {
123
- margin-top: var(--kbq-toggle-size-big-vertical-content-padding);
124
- }
125
-
126
122
  .kbq-toggle-layout {
127
- .kbq-toggle-bar-container:has(+ .kbq-toggle__content) {
128
- padding-top: tokens.kbq-css-half-difference(toggle-font-big-label-line-height, toggle-size-big-height);
123
+ &:has(.kbq-toggle-label:not(:empty)) .kbq-toggle-bar-container {
124
+ padding-top: tokens.kbq-css-half-difference(typography-text-big-line-height, toggle-size-big-height);
129
125
  }
130
126
  }
131
127
  }
@@ -2,7 +2,7 @@
2
2
  --kbq-top-bar-position: sticky;
3
3
  --kbq-top-bar-background: var(--kbq-background-bg);
4
4
  --kbq-top-bar-spacer-min-width: 80px;
5
- --kbq-top-bar-padding-vertical: var(--kbq-size-xl);
5
+ --kbq-top-bar-padding-vertical: var(--kbq-size-m);
6
6
  --kbq-top-bar-padding-horizontal: var(--kbq-size-xxl);
7
7
  --kbq-top-bar-border-radius: 0;
8
8
  --kbq-top-bar-container-start-gap: 0;
@@ -45,6 +45,9 @@
45
45
  &:has(> .kbq-overflow-items) {
46
46
  gap: unset;
47
47
  overflow: hidden;
48
+ // reduce height added by overflow-items' padding
49
+ margin-top: calc(-1 * var(--kbq-size-border-width));
50
+ margin-bottom: calc(-1 * var(--kbq-size-border-width));
48
51
  }
49
52
 
50
53
  .kbq-overflow-items {
@@ -68,6 +68,7 @@ export declare class KbqTreeOption extends KbqTreeNode<KbqTreeOption> implements
68
68
  setSelected(selected: boolean): void;
69
69
  focus(focusOrigin?: FocusOrigin): void;
70
70
  blur(): void;
71
+ /** @docs-private */
71
72
  getHeight(): number;
72
73
  select(setFocus?: boolean): void;
73
74
  deselect(): void;
@@ -18,10 +18,19 @@ export declare class KbqTreeSelectAllEvent<T> {
18
18
  options: T[];
19
19
  constructor(source: KbqTreeSelection, options: T[]);
20
20
  }
21
+ /**
22
+ * Event class that occurs when copying an item from the KbqTreeSelection.
23
+ * Used to pass data about the copied item and copy context.
24
+ *
25
+ * @param source - instance of KbqTreeSelection
26
+ * @param option - instance of KbqTreeOption
27
+ * @param event - original keyboard event (optional) that triggered the copy
28
+ */
21
29
  export declare class KbqTreeCopyEvent<T> {
22
30
  source: KbqTreeSelection;
23
31
  option: T;
24
- constructor(source: KbqTreeSelection, option: T);
32
+ event?: KeyboardEvent | undefined;
33
+ constructor(source: KbqTreeSelection, option: T, event?: KeyboardEvent | undefined);
25
34
  }
26
35
  export declare class KbqTreeNavigationChange<T> {
27
36
  source: KbqTreeSelection;
@@ -94,7 +103,7 @@ export declare class KbqTreeSelection extends KbqTreeBase<any> implements Contro
94
103
  emitNavigationEvent(option: KbqTreeOption): void;
95
104
  emitChangeEvent(option: KbqTreeOption): void;
96
105
  selectAllOptions(): void;
97
- copyActiveOption(): void;
106
+ copyActiveOption(event: KeyboardEvent): void;
98
107
  writeValue(value: any): void;
99
108
  /** `View -> model callback called when value changes` */
100
109
  onChange: (value: any) => void;
@@ -186,8 +186,8 @@ export declare class KbqTreeSelect extends KbqAbstractSelect implements AfterCon
186
186
  get hasBackdrop(): boolean;
187
187
  set hasBackdrop(value: boolean);
188
188
  private _hasBackdrop;
189
- get tabIndex(): number;
190
- set tabIndex(value: number);
189
+ get tabIndex(): number | null;
190
+ set tabIndex(value: number | null);
191
191
  private _tabIndex;
192
192
  get disabled(): boolean;
193
193
  set disabled(value: boolean);
@@ -259,6 +259,7 @@ export declare class KbqTreeSelect extends KbqAbstractSelect implements AfterCon
259
259
  onChange: (value: any) => void;
260
260
  /** `View -> model callback called when select has been touched` */
261
261
  onTouched: () => void;
262
+ handleClick(): void;
262
263
  toggle(): void;
263
264
  open(): void;
264
265
  /** Closes the overlay panel and focuses the host element. */
@@ -319,6 +320,8 @@ export declare class KbqTreeSelect extends KbqAbstractSelect implements AfterCon
319
320
  /** Invoked when an option is clicked. */
320
321
  onRemoveSelectedOption(selectedOption: any, $event: any): void;
321
322
  calculateHiddenItems(): void;
323
+ triggerKeydownHandler(event: KeyboardEvent): void;
324
+ panelKeydownHandler(event: KeyboardEvent): any;
322
325
  /** @docs-private */
323
326
  protected shouldShowSearch(): boolean;
324
327
  private updateLocaleParams;
@@ -329,8 +332,6 @@ export declare class KbqTreeSelect extends KbqAbstractSelect implements AfterCon
329
332
  private getOverlayWidth;
330
333
  private buildTriggerClone;
331
334
  private getItemWidth;
332
- private handleClosedKeydown;
333
- private handleOpenKeydown;
334
335
  private refreshTriggerValues;
335
336
  /**
336
337
  * Sets the selected option based on a value. If no option can be
@@ -352,7 +353,6 @@ export declare class KbqTreeSelect extends KbqAbstractSelect implements AfterCon
352
353
  static ɵcmp: i0.ɵɵComponentDeclaration<KbqTreeSelect, "kbq-tree-select", ["kbqTreeSelect"], { "hiddenItemsText": { "alias": "hiddenItemsText"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "sortComparator": { "alias": "sortComparator"; "required": false; }; "multiline": { "alias": "multiline"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "autoSelect": { "alias": "autoSelect"; "required": false; }; "id": { "alias": "id"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectAllHandler": { "alias": "selectAllHandler"; "required": false; }; "panelMinWidth": { "alias": "panelMinWidth"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "searchMinOptionsThreshold": { "alias": "searchMinOptionsThreshold"; "required": false; }; "hiddenItemsTextFormatter": { "alias": "hiddenItemsTextFormatter"; "required": false; }; }, { "openedChange": "openedChange"; "openedStream": "opened"; "closedStream": "closed"; "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, ["cleaner", "customTrigger", "customMatcher", "customTagTemplateRef", "tree", "search"], ["kbq-select-matcher, [kbq-select-matcher]", "kbq-select-trigger, [kbq-select-trigger]", "kbq-cleaner", "[kbqSelectSearch]", "[kbq-select-search-empty-result]", "kbq-tree-selection", "kbq-select-footer,[kbq-tree-select-footer]"], false, never>;
353
354
  static ngAcceptInputType_multiline: unknown;
354
355
  static ngAcceptInputType_multiple: unknown;
355
- static ngAcceptInputType_tabIndex: unknown;
356
356
  static ngAcceptInputType_disabled: unknown;
357
357
  static ngAcceptInputType_panelMinWidth: unknown;
358
358
  }
@@ -7,8 +7,9 @@ import * as i5 from "@koobiq/components/tags";
7
7
  import * as i6 from "@koobiq/components/core";
8
8
  import * as i7 from "@angular/common";
9
9
  import * as i8 from "@angular/cdk/a11y";
10
+ import * as i9 from "@koobiq/components/form-field";
10
11
  export declare class KbqTreeSelectModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeSelectModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTreeSelectModule, [typeof i1.KbqTreeSelect], [typeof i2.OverlayModule, typeof i3.KbqTreeModule, typeof i4.KbqIconModule, typeof i5.KbqTagsModule, typeof i6.KbqPseudoCheckboxModule, typeof i6.KbqSelectSearch, typeof i6.KbqSelectFooter, typeof i6.KbqSelectMatcher, typeof i6.KbqSelectTrigger, typeof i6.KbqSelectSearchEmptyResult, typeof i7.NgClass, typeof i7.NgTemplateOutlet, typeof i8.A11yModule], [typeof i1.KbqTreeSelect, typeof i6.KbqSelectSearch, typeof i6.KbqSelectFooter, typeof i6.KbqSelectMatcher, typeof i6.KbqSelectTrigger, typeof i6.KbqSelectSearchEmptyResult]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTreeSelectModule, [typeof i1.KbqTreeSelect], [typeof i2.OverlayModule, typeof i3.KbqTreeModule, typeof i4.KbqIconModule, typeof i5.KbqTagsModule, typeof i6.KbqPseudoCheckboxModule, typeof i6.KbqSelectSearch, typeof i6.KbqSelectFooter, typeof i6.KbqSelectMatcher, typeof i6.KbqSelectTrigger, typeof i6.KbqSelectSearchEmptyResult, typeof i7.NgClass, typeof i7.NgTemplateOutlet, typeof i8.A11yModule], [typeof i1.KbqTreeSelect, typeof i6.KbqSelectSearch, typeof i6.KbqSelectFooter, typeof i6.KbqSelectMatcher, typeof i6.KbqSelectTrigger, typeof i6.KbqSelectSearchEmptyResult, typeof i9.KbqFormFieldModule]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<KbqTreeSelectModule>;
14
15
  }
@@ -19,6 +19,10 @@
19
19
 
20
20
  & .kbq-tree-selection {
21
21
  height: 100%;
22
+
23
+ .kbq-tree-option {
24
+ @include item-active-area(var(--kbq-size-3xs));
25
+ }
22
26
  }
23
27
  }
24
28
 
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Directive that adds a `kbq-hover` class to an element, based on its hover state.
4
- */
5
- export declare class KbqHovered {
6
- private readonly element;
7
- /**
8
- * Whether the element is hovered.
9
- */
10
- readonly hovered: import("@angular/core").Signal<boolean>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqHovered, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<KbqHovered, "[kbqHovered]", ["kbqHovered"], {}, {}, never, never, true, never>;
13
- }
@@ -1,162 +0,0 @@
1
- export declare const faIRLocaleData: {
2
- select: {
3
- hiddenItemsText: string;
4
- };
5
- datepicker: {
6
- placeholder: string;
7
- };
8
- timepicker: {
9
- placeholder: {
10
- full: string;
11
- short: string;
12
- };
13
- };
14
- fileUpload: {
15
- single: {
16
- captionText: string;
17
- browseLink: string;
18
- };
19
- multiple: {
20
- captionText: string;
21
- captionTextWhenSelected: string;
22
- captionTextForCompactSize: string;
23
- browseLink: string;
24
- title: string;
25
- gridHeaders: {
26
- file: string;
27
- size: string;
28
- };
29
- };
30
- };
31
- codeBlock: {
32
- softWrapOnTooltip: string;
33
- softWrapOffTooltip: string;
34
- downloadTooltip: string;
35
- copiedTooltip: string;
36
- copyTooltip: string;
37
- viewAllText: string;
38
- viewLessText: string;
39
- openExternalSystemTooltip: string;
40
- };
41
- timezone: {
42
- searchPlaceholder: string;
43
- };
44
- actionsPanel: {
45
- closeTooltip: string;
46
- };
47
- filterBar: {
48
- reset: {
49
- buttonName: string;
50
- };
51
- search: {
52
- tooltip: string;
53
- placeholder: string;
54
- };
55
- filters: {
56
- defaultName: string;
57
- saveNewFilterTooltip: string;
58
- searchPlaceholder: string;
59
- searchEmptyResult: string;
60
- saveAsNewFilter: string;
61
- saveChanges: string;
62
- saveAsNew: string;
63
- change: string;
64
- resetChanges: string;
65
- remove: string;
66
- name: string;
67
- error: string;
68
- errorHint: string;
69
- saveButton: string;
70
- cancelButton: string;
71
- };
72
- add: {
73
- tooltip: string;
74
- };
75
- pipe: {
76
- clearButtonTooltip: string;
77
- removeButtonTooltip: string;
78
- applyButton: string;
79
- emptySearchResult: string;
80
- selectAll: string;
81
- };
82
- datePipe: {
83
- customPeriod: string;
84
- customPeriodFrom: string;
85
- customPeriodTo: string;
86
- customPeriodErrorHint: string;
87
- backToPeriodSelection: string;
88
- };
89
- };
90
- clampedText: {
91
- openText: string;
92
- closeText: string;
93
- };
94
- navbarIc: {
95
- toggle: {
96
- pinButton: string;
97
- collapseButton: string;
98
- };
99
- };
100
- searchExpandable: {
101
- tooltip: string;
102
- placeholder: string;
103
- };
104
- appSwitcher: {
105
- searchPlaceholder: string;
106
- searchEmptyResult: string;
107
- sitesHeader: string;
108
- };
109
- timeRange: {
110
- title: {
111
- for: string;
112
- placeholder: string;
113
- };
114
- editor: {
115
- from: string;
116
- to: string;
117
- apply: string;
118
- cancel: string;
119
- rangeLabel: string;
120
- allTime: string;
121
- currentQuarter: string;
122
- currentYear: string;
123
- };
124
- durationTemplate: {
125
- title: {
126
- SEPARATOR: string;
127
- LAST_PART_SEPARATOR: string;
128
- YEARS: string;
129
- MONTHS: string;
130
- WEEKS: string;
131
- DAYS: string;
132
- HOURS: string;
133
- MINUTES: string;
134
- SECONDS: string;
135
- YEARS_FRACTION: string;
136
- MONTHS_FRACTION: string;
137
- };
138
- option: {
139
- SEPARATOR: string;
140
- LAST_PART_SEPARATOR: string;
141
- YEARS: string;
142
- MONTHS: string;
143
- WEEKS: string;
144
- DAYS: string;
145
- HOURS: string;
146
- MINUTES: string;
147
- SECONDS: string;
148
- YEARS_FRACTION: string;
149
- MONTHS_FRACTION: string;
150
- };
151
- };
152
- };
153
- notificationCenter: {
154
- notifications: string;
155
- remove: string;
156
- doNotDisturb: string;
157
- showPopUpNotifications: string;
158
- noNotifications: string;
159
- failedToLoadNotifications: string;
160
- repeat: string;
161
- };
162
- };