@tolle_/tolle-ui 18.2.29 → 18.2.30

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 (279) hide show
  1. package/esm2022/lib/accordion-item.component.mjs +5 -11
  2. package/esm2022/lib/accordion.component.mjs +4 -9
  3. package/esm2022/lib/alert-dialog-dynamic.component.mjs +5 -10
  4. package/esm2022/lib/alert-dialog.component.mjs +44 -59
  5. package/esm2022/lib/alert.component.mjs +5 -11
  6. package/esm2022/lib/aspect-ratio.component.mjs +119 -0
  7. package/esm2022/lib/attachment.component.mjs +334 -0
  8. package/esm2022/lib/avatar-fallback.component.mjs +3 -3
  9. package/esm2022/lib/avatar.component.mjs +4 -9
  10. package/esm2022/lib/badge.component.mjs +4 -9
  11. package/esm2022/lib/breadcrumb-item.component.mjs +3 -3
  12. package/esm2022/lib/breadcrumb-link.component.mjs +3 -3
  13. package/esm2022/lib/breadcrumb-separator.component.mjs +3 -3
  14. package/esm2022/lib/breadcrumb.component.mjs +3 -3
  15. package/esm2022/lib/bubble.component.mjs +301 -0
  16. package/esm2022/lib/button.component.mjs +5 -11
  17. package/esm2022/lib/calendar.component.mjs +5 -11
  18. package/esm2022/lib/card.component.mjs +14 -43
  19. package/esm2022/lib/carousel/carousel.component.mjs +5 -12
  20. package/esm2022/lib/chain-of-thought.component.mjs +380 -0
  21. package/esm2022/lib/chart-pie.component.mjs +386 -0
  22. package/esm2022/lib/chart.component.mjs +1146 -0
  23. package/esm2022/lib/chart.service.mjs +555 -0
  24. package/esm2022/lib/checkbox.component.mjs +5 -11
  25. package/esm2022/lib/checkpoint.component.mjs +134 -0
  26. package/esm2022/lib/collapsible.component.mjs +4 -11
  27. package/esm2022/lib/combobox.component.mjs +372 -0
  28. package/esm2022/lib/command-dialog.component.mjs +164 -0
  29. package/esm2022/lib/command.component.mjs +514 -0
  30. package/esm2022/lib/command.service.mjs +130 -0
  31. package/esm2022/lib/confirmation.component.mjs +219 -0
  32. package/esm2022/lib/context-menu-trigger.directive.mjs +36 -0
  33. package/esm2022/lib/context-menu.component.mjs +460 -0
  34. package/esm2022/lib/context-menu.service.mjs +121 -0
  35. package/esm2022/lib/context.component.mjs +377 -0
  36. package/esm2022/lib/conversation.component.mjs +442 -0
  37. package/esm2022/lib/country-selector.component.mjs +5 -11
  38. package/esm2022/lib/data-table.component.mjs +59 -12
  39. package/esm2022/lib/date-picker.component.mjs +251 -198
  40. package/esm2022/lib/date-range-picker.component.mjs +224 -116
  41. package/esm2022/lib/date-time-picker.component.mjs +506 -0
  42. package/esm2022/lib/direction.component.mjs +79 -0
  43. package/esm2022/lib/dropdown-item.component.mjs +3 -3
  44. package/esm2022/lib/dropdown-label.component.mjs +3 -3
  45. package/esm2022/lib/dropdown-menu.component.mjs +3 -3
  46. package/esm2022/lib/dropdown-separator.component.mjs +3 -3
  47. package/esm2022/lib/dropdown-trigger.directive.mjs +6 -4
  48. package/esm2022/lib/empty-state.component.mjs +4 -9
  49. package/esm2022/lib/field.component.mjs +394 -0
  50. package/esm2022/lib/hover-card.component.mjs +6 -16
  51. package/esm2022/lib/inline-citation.component.mjs +263 -0
  52. package/esm2022/lib/input-group.component.mjs +418 -0
  53. package/esm2022/lib/input.component.mjs +5 -11
  54. package/esm2022/lib/item.component.mjs +243 -0
  55. package/esm2022/lib/kbd.component.mjs +82 -0
  56. package/esm2022/lib/label.component.mjs +4 -9
  57. package/esm2022/lib/marker.component.mjs +135 -0
  58. package/esm2022/lib/masked-input.component.mjs +5 -11
  59. package/esm2022/lib/menubar.component.mjs +683 -0
  60. package/esm2022/lib/message-scroller.component.mjs +353 -0
  61. package/esm2022/lib/message-scroller.service.mjs +157 -0
  62. package/esm2022/lib/message.component.mjs +228 -0
  63. package/esm2022/lib/model-selector.component.mjs +310 -0
  64. package/esm2022/lib/multi-select.component.mjs +155 -72
  65. package/esm2022/lib/native-select.component.mjs +201 -0
  66. package/esm2022/lib/navigation-menu.component.mjs +642 -0
  67. package/esm2022/lib/otp-group.component.mjs +3 -3
  68. package/esm2022/lib/otp-slot.component.mjs +4 -9
  69. package/esm2022/lib/otp.component.mjs +5 -11
  70. package/esm2022/lib/pagination.component.mjs +7 -10
  71. package/esm2022/lib/plan.component.mjs +335 -0
  72. package/esm2022/lib/popover-content.component.mjs +4 -9
  73. package/esm2022/lib/popover.component.mjs +15 -13
  74. package/esm2022/lib/progress.component.mjs +4 -9
  75. package/esm2022/lib/prompt-input.component.mjs +526 -0
  76. package/esm2022/lib/queue.component.mjs +280 -0
  77. package/esm2022/lib/radio-group.component.mjs +6 -13
  78. package/esm2022/lib/radio-item.component.mjs +4 -9
  79. package/esm2022/lib/range-calendar.component.mjs +5 -11
  80. package/esm2022/lib/reasoning.component.mjs +335 -0
  81. package/esm2022/lib/resizable.component.mjs +219 -0
  82. package/esm2022/lib/segment.component.mjs +17 -7
  83. package/esm2022/lib/select-group.component.mjs +4 -8
  84. package/esm2022/lib/select-item.component.mjs +4 -9
  85. package/esm2022/lib/select-separator.component.mjs +4 -8
  86. package/esm2022/lib/select.component.mjs +133 -49
  87. package/esm2022/lib/separator.component.mjs +4 -9
  88. package/esm2022/lib/sheet.component.mjs +38 -56
  89. package/esm2022/lib/shimmer.component.mjs +84 -0
  90. package/esm2022/lib/sidebar.component.mjs +11 -1
  91. package/esm2022/lib/skeleton.component.mjs +4 -9
  92. package/esm2022/lib/sources.component.mjs +452 -0
  93. package/esm2022/lib/spinner.component.mjs +68 -0
  94. package/esm2022/lib/suggestion.component.mjs +207 -0
  95. package/esm2022/lib/switch.component.mjs +5 -11
  96. package/esm2022/lib/table.component.mjs +213 -0
  97. package/esm2022/lib/tabs.component.mjs +4 -11
  98. package/esm2022/lib/tag-input.component.mjs +5 -11
  99. package/esm2022/lib/task.component.mjs +359 -0
  100. package/esm2022/lib/textarea.component.mjs +5 -11
  101. package/esm2022/lib/theme.service.mjs +17 -6
  102. package/esm2022/lib/time-picker.component.mjs +923 -0
  103. package/esm2022/lib/toast.service.mjs +3 -2
  104. package/esm2022/lib/toaster.component.mjs +76 -39
  105. package/esm2022/lib/toggle-group.component.mjs +4 -9
  106. package/esm2022/lib/toggle.component.mjs +5 -11
  107. package/esm2022/lib/tool.component.mjs +462 -0
  108. package/esm2022/lib/typography.component.mjs +83 -0
  109. package/esm2022/lib/utils/color.mjs +140 -19
  110. package/esm2022/public-api.mjs +61 -1
  111. package/fesm2022/tolle-ui.mjs +16453 -1024
  112. package/fesm2022/tolle-ui.mjs.map +1 -1
  113. package/lib/alert-dialog.component.d.ts +10 -2
  114. package/lib/aspect-ratio.component.d.ts +20 -0
  115. package/lib/attachment.component.d.ts +101 -0
  116. package/lib/bubble.component.d.ts +112 -0
  117. package/lib/chain-of-thought.component.d.ts +166 -0
  118. package/lib/chart-pie.component.d.ts +108 -0
  119. package/lib/chart.component.d.ts +369 -0
  120. package/lib/chart.service.d.ts +222 -0
  121. package/lib/checkpoint.component.d.ts +51 -0
  122. package/lib/combobox.component.d.ts +90 -0
  123. package/lib/command-dialog.component.d.ts +53 -0
  124. package/lib/command.component.d.ts +189 -0
  125. package/lib/command.service.d.ts +67 -0
  126. package/lib/confirmation.component.d.ts +70 -0
  127. package/lib/context-menu-trigger.directive.d.ts +12 -0
  128. package/lib/context-menu.component.d.ts +41 -0
  129. package/lib/context-menu.service.d.ts +38 -0
  130. package/lib/context.component.d.ts +134 -0
  131. package/lib/conversation.component.d.ts +165 -0
  132. package/lib/data-table.component.d.ts +26 -1
  133. package/lib/date-picker.component.d.ts +72 -11
  134. package/lib/date-range-picker.component.d.ts +63 -6
  135. package/lib/date-time-picker.component.d.ts +119 -0
  136. package/lib/direction.component.d.ts +45 -0
  137. package/lib/field.component.d.ts +201 -0
  138. package/lib/inline-citation.component.d.ts +103 -0
  139. package/lib/input-group.component.d.ts +150 -0
  140. package/lib/item.component.d.ts +154 -0
  141. package/lib/kbd.component.d.ts +50 -0
  142. package/lib/marker.component.d.ts +58 -0
  143. package/lib/menubar.component.d.ts +247 -0
  144. package/lib/message-scroller.component.d.ts +159 -0
  145. package/lib/message-scroller.service.d.ts +73 -0
  146. package/lib/message.component.d.ts +128 -0
  147. package/lib/model-selector.component.d.ts +103 -0
  148. package/lib/multi-select.component.d.ts +66 -14
  149. package/lib/native-select.component.d.ts +57 -0
  150. package/lib/navigation-menu.component.d.ts +230 -0
  151. package/lib/plan.component.d.ts +120 -0
  152. package/lib/popover.component.d.ts +1 -0
  153. package/lib/prompt-input.component.d.ts +194 -0
  154. package/lib/queue.component.d.ts +106 -0
  155. package/lib/reasoning.component.d.ts +127 -0
  156. package/lib/resizable.component.d.ts +43 -0
  157. package/lib/segment.component.d.ts +13 -3
  158. package/lib/select.component.d.ts +37 -5
  159. package/lib/sheet.component.d.ts +3 -0
  160. package/lib/shimmer.component.d.ts +38 -0
  161. package/lib/sidebar.component.d.ts +2 -0
  162. package/lib/sources.component.d.ts +156 -0
  163. package/lib/spinner.component.d.ts +29 -0
  164. package/lib/suggestion.component.d.ts +96 -0
  165. package/lib/table.component.d.ts +106 -0
  166. package/lib/task.component.d.ts +151 -0
  167. package/lib/theme.service.d.ts +9 -0
  168. package/lib/time-picker.component.d.ts +243 -0
  169. package/lib/toast.service.d.ts +3 -1
  170. package/lib/toaster.component.d.ts +26 -9
  171. package/lib/tool.component.d.ts +158 -0
  172. package/lib/typography.component.d.ts +32 -0
  173. package/lib/utils/color.d.ts +19 -5
  174. package/package.json +1 -1
  175. package/public-api.d.ts +50 -0
  176. package/registry/docs-content.json +8480 -1542
  177. package/registry/llms-full.txt +2679 -319
  178. package/registry/llms.txt +43 -4
  179. package/registry/manifest.json +9090 -1742
  180. package/registry/r/accordion-item.json +1 -1
  181. package/registry/r/accordion.json +1 -1
  182. package/registry/r/alert-dialog-dynamic.json +1 -1
  183. package/registry/r/alert-dialog.json +1 -1
  184. package/registry/r/alert.json +1 -1
  185. package/registry/r/attachment.json +23 -0
  186. package/registry/r/avatar-fallback.json +1 -1
  187. package/registry/r/avatar.json +1 -1
  188. package/registry/r/badge.json +1 -1
  189. package/registry/r/breadcrumb-item.json +1 -1
  190. package/registry/r/breadcrumb-link.json +1 -1
  191. package/registry/r/breadcrumb-separator.json +1 -1
  192. package/registry/r/breadcrumb.json +1 -1
  193. package/registry/r/bubble.json +23 -0
  194. package/registry/r/button.json +1 -1
  195. package/registry/r/calendar.json +1 -1
  196. package/registry/r/card.json +1 -1
  197. package/registry/r/carousel.json +1 -1
  198. package/registry/r/chain-of-thought.json +23 -0
  199. package/registry/r/chart-pie.json +30 -0
  200. package/registry/r/chart.json +28 -0
  201. package/registry/r/checkbox.json +1 -1
  202. package/registry/r/checkpoint.json +23 -0
  203. package/registry/r/collapsible.json +1 -1
  204. package/registry/r/combobox.json +31 -0
  205. package/registry/r/command-dialog.json +21 -0
  206. package/registry/r/command.json +26 -0
  207. package/registry/r/confirmation.json +23 -0
  208. package/registry/r/context.json +26 -0
  209. package/registry/r/conversation.json +23 -0
  210. package/registry/r/country-selector.json +1 -1
  211. package/registry/r/data-table.json +1 -1
  212. package/registry/r/date-picker.json +4 -4
  213. package/registry/r/date-range-picker.json +3 -3
  214. package/registry/r/date-time-picker.json +28 -0
  215. package/registry/r/direction.json +16 -0
  216. package/registry/r/dropdown-item.json +1 -1
  217. package/registry/r/dropdown-label.json +1 -1
  218. package/registry/r/dropdown-menu.json +1 -1
  219. package/registry/r/dropdown-separator.json +1 -1
  220. package/registry/r/dropdown-trigger.json +1 -1
  221. package/registry/r/empty-state.json +1 -1
  222. package/registry/r/field.json +23 -0
  223. package/registry/r/hover-card.json +1 -1
  224. package/registry/r/inline-citation.json +26 -0
  225. package/registry/r/input-group.json +23 -0
  226. package/registry/r/input.json +1 -1
  227. package/registry/r/item.json +23 -0
  228. package/registry/r/kbd.json +23 -0
  229. package/registry/r/label.json +1 -1
  230. package/registry/r/marker.json +23 -0
  231. package/registry/r/masked-input.json +1 -1
  232. package/registry/r/menubar.json +24 -0
  233. package/registry/r/message-scroller.json +26 -0
  234. package/registry/r/message.json +23 -0
  235. package/registry/r/model-selector.json +32 -0
  236. package/registry/r/multi-select.json +2 -2
  237. package/registry/r/native-select.json +23 -0
  238. package/registry/r/navigation-menu.json +24 -0
  239. package/registry/r/otp-group.json +1 -1
  240. package/registry/r/otp-slot.json +1 -1
  241. package/registry/r/otp.json +1 -1
  242. package/registry/r/pagination.json +3 -2
  243. package/registry/r/plan.json +23 -0
  244. package/registry/r/popover-content.json +1 -1
  245. package/registry/r/popover.json +1 -1
  246. package/registry/r/progress.json +1 -1
  247. package/registry/r/prompt-input.json +23 -0
  248. package/registry/r/queue.json +23 -0
  249. package/registry/r/radio-group.json +1 -1
  250. package/registry/r/radio-item.json +1 -1
  251. package/registry/r/range-calendar.json +1 -1
  252. package/registry/r/reasoning.json +23 -0
  253. package/registry/r/segment.json +1 -1
  254. package/registry/r/select-group.json +1 -1
  255. package/registry/r/select-item.json +1 -1
  256. package/registry/r/select-separator.json +1 -1
  257. package/registry/r/select.json +4 -3
  258. package/registry/r/separator.json +1 -1
  259. package/registry/r/sheet.json +1 -1
  260. package/registry/r/shimmer.json +23 -0
  261. package/registry/r/sidebar.json +1 -1
  262. package/registry/r/skeleton.json +1 -1
  263. package/registry/r/sources.json +23 -0
  264. package/registry/r/spinner.json +23 -0
  265. package/registry/r/suggestion.json +23 -0
  266. package/registry/r/switch.json +1 -1
  267. package/registry/r/table.json +21 -0
  268. package/registry/r/tabs.json +1 -1
  269. package/registry/r/tag-input.json +1 -1
  270. package/registry/r/task.json +23 -0
  271. package/registry/r/textarea.json +1 -1
  272. package/registry/r/time-picker.json +24 -0
  273. package/registry/r/toaster.json +2 -2
  274. package/registry/r/toggle-group.json +1 -1
  275. package/registry/r/toggle.json +1 -1
  276. package/registry/r/tool.json +23 -0
  277. package/registry/r/typography.json +23 -0
  278. package/registry/registry.json +915 -22
  279. package/theme.css +109 -8
@@ -0,0 +1,154 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import { cn } from './utils/cn';
4
+ import * as i0 from "@angular/core";
5
+ declare const itemVariants: (props?: ({
6
+ variant?: "default" | "outline" | "muted" | null | undefined;
7
+ size?: "default" | "xs" | "sm" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export type ItemProps = VariantProps<typeof itemVariants>;
10
+ /**
11
+ * A flex container for content rows built from media, title, description and
12
+ * actions — profiles, notifications, settings rows, list entries. Use
13
+ * `tolle-field` instead when wrapping a form control.
14
+ * @new
15
+ */
16
+ export declare class ItemComponent implements OnChanges {
17
+ private readonly cdr;
18
+ /**
19
+ * Angular writes a bound `class` input through its styling path, which does
20
+ * not mark an OnPush component dirty — without this hook the component keeps
21
+ * rendering the class it was born with.
22
+ */
23
+ ngOnChanges(): void;
24
+ /** Visual style of the row. @default 'default' */
25
+ variant: ItemProps['variant'];
26
+ /** Padding and gap density of the row. @default 'default' */
27
+ size: ItemProps['size'];
28
+ /** Extra Tailwind classes merged onto the row via `cn()` (last-wins). */
29
+ class: string;
30
+ get computedClass(): string;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemComponent, "tolle-item", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
33
+ }
34
+ /** Stacks several `tolle-item` rows as a single list. */
35
+ export declare class ItemGroupComponent implements OnChanges {
36
+ private readonly cdr;
37
+ /**
38
+ * Angular writes a bound `class` input through its styling path, which does
39
+ * not mark an OnPush component dirty — without this hook the component keeps
40
+ * rendering the class it was born with.
41
+ */
42
+ ngOnChanges(): void;
43
+ /** Extra Tailwind classes merged onto the group via `cn()` (last-wins). */
44
+ class: string;
45
+ protected cn: typeof cn;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemGroupComponent, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemGroupComponent, "tolle-item-group", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
48
+ }
49
+ /** Leading media slot — avatar, icon, or thumbnail. */
50
+ export declare class ItemMediaComponent implements OnChanges {
51
+ private readonly cdr;
52
+ /**
53
+ * Angular writes a bound `class` input through its styling path, which does
54
+ * not mark an OnPush component dirty — without this hook the component keeps
55
+ * rendering the class it was born with.
56
+ */
57
+ ngOnChanges(): void;
58
+ /** Extra Tailwind classes merged onto the media slot via `cn()` (last-wins). */
59
+ class: string;
60
+ protected cn: typeof cn;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemMediaComponent, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemMediaComponent, "tolle-item-media", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
63
+ }
64
+ /** Grows to fill the row; wraps the title and description. */
65
+ export declare class ItemContentComponent implements OnChanges {
66
+ private readonly cdr;
67
+ /**
68
+ * Angular writes a bound `class` input through its styling path, which does
69
+ * not mark an OnPush component dirty — without this hook the component keeps
70
+ * rendering the class it was born with.
71
+ */
72
+ ngOnChanges(): void;
73
+ /** Extra Tailwind classes merged onto the content column via `cn()` (last-wins). */
74
+ class: string;
75
+ protected cn: typeof cn;
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemContentComponent, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemContentComponent, "tolle-item-content", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
78
+ }
79
+ /** Primary line of the row. */
80
+ export declare class ItemTitleComponent implements OnChanges {
81
+ private readonly cdr;
82
+ /**
83
+ * Angular writes a bound `class` input through its styling path, which does
84
+ * not mark an OnPush component dirty — without this hook the component keeps
85
+ * rendering the class it was born with.
86
+ */
87
+ ngOnChanges(): void;
88
+ /** Extra Tailwind classes merged onto the title via `cn()` (last-wins). */
89
+ class: string;
90
+ protected cn: typeof cn;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemTitleComponent, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemTitleComponent, "tolle-item-title", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
93
+ }
94
+ /** Secondary line of the row. */
95
+ export declare class ItemDescriptionComponent implements OnChanges {
96
+ private readonly cdr;
97
+ /**
98
+ * Angular writes a bound `class` input through its styling path, which does
99
+ * not mark an OnPush component dirty — without this hook the component keeps
100
+ * rendering the class it was born with.
101
+ */
102
+ ngOnChanges(): void;
103
+ /** Extra Tailwind classes merged onto the description via `cn()` (last-wins). */
104
+ class: string;
105
+ protected cn: typeof cn;
106
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemDescriptionComponent, never>;
107
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemDescriptionComponent, "tolle-item-description", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
108
+ }
109
+ /** Trailing slot for buttons, switches, or badges. */
110
+ export declare class ItemActionsComponent implements OnChanges {
111
+ private readonly cdr;
112
+ /**
113
+ * Angular writes a bound `class` input through its styling path, which does
114
+ * not mark an OnPush component dirty — without this hook the component keeps
115
+ * rendering the class it was born with.
116
+ */
117
+ ngOnChanges(): void;
118
+ /** Extra Tailwind classes merged onto the actions slot via `cn()` (last-wins). */
119
+ class: string;
120
+ protected cn: typeof cn;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemActionsComponent, never>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemActionsComponent, "tolle-item-actions", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
123
+ }
124
+ /** Optional full-width header above the row's main line. */
125
+ export declare class ItemHeaderComponent implements OnChanges {
126
+ private readonly cdr;
127
+ /**
128
+ * Angular writes a bound `class` input through its styling path, which does
129
+ * not mark an OnPush component dirty — without this hook the component keeps
130
+ * rendering the class it was born with.
131
+ */
132
+ ngOnChanges(): void;
133
+ /** Extra Tailwind classes merged onto the header via `cn()` (last-wins). */
134
+ class: string;
135
+ protected cn: typeof cn;
136
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemHeaderComponent, never>;
137
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemHeaderComponent, "tolle-item-header", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
138
+ }
139
+ /** Optional full-width footer below the row's main line. */
140
+ export declare class ItemFooterComponent implements OnChanges {
141
+ private readonly cdr;
142
+ /**
143
+ * Angular writes a bound `class` input through its styling path, which does
144
+ * not mark an OnPush component dirty — without this hook the component keeps
145
+ * rendering the class it was born with.
146
+ */
147
+ ngOnChanges(): void;
148
+ /** Extra Tailwind classes merged onto the footer via `cn()` (last-wins). */
149
+ class: string;
150
+ protected cn: typeof cn;
151
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemFooterComponent, never>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemFooterComponent, "tolle-item-footer", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
153
+ }
154
+ export {};
@@ -0,0 +1,50 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import { cn } from './utils/cn';
4
+ import * as i0 from "@angular/core";
5
+ declare const kbdVariants: (props?: ({
6
+ size?: "default" | "sm" | "lg" | null | undefined;
7
+ variant?: "default" | "outline" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export type KbdProps = VariantProps<typeof kbdVariants>;
10
+ /**
11
+ * Renders a keyboard key or shortcut, e.g. `<tolle-kbd>⌘</tolle-kbd>`.
12
+ * Pairs with `tolle-command-shortcut` inside command menus.
13
+ * @new
14
+ */
15
+ export declare class KbdComponent implements OnChanges {
16
+ private readonly cdr;
17
+ /**
18
+ * Angular writes a bound `class` input through its styling path, which does
19
+ * not mark an OnPush component dirty — without this hook the component keeps
20
+ * rendering the class it was born with.
21
+ */
22
+ ngOnChanges(): void;
23
+ /** Size of the key cap. @default 'default' */
24
+ size: KbdProps['size'];
25
+ /** Visual style of the key cap. @default 'default' */
26
+ variant: KbdProps['variant'];
27
+ /** Extra Tailwind classes merged onto the key cap via `cn()` (last-wins). */
28
+ class: string;
29
+ get computedClass(): string;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbdComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbdComponent, "tolle-kbd", never, { "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
32
+ }
33
+ /**
34
+ * Groups several `tolle-kbd` keys into one shortcut, e.g. ⌘ + K.
35
+ */
36
+ export declare class KbdGroupComponent implements OnChanges {
37
+ private readonly cdr;
38
+ /**
39
+ * Angular writes a bound `class` input through its styling path, which does
40
+ * not mark an OnPush component dirty — without this hook the component keeps
41
+ * rendering the class it was born with.
42
+ */
43
+ ngOnChanges(): void;
44
+ /** Extra Tailwind classes merged onto the group via `cn()` (last-wins). */
45
+ class: string;
46
+ protected cn: typeof cn;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbdGroupComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbdGroupComponent, "tolle-kbd-group", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
49
+ }
50
+ export {};
@@ -0,0 +1,58 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import { cn } from './utils/cn';
4
+ import * as i0 from "@angular/core";
5
+ declare const markerVariants: (props?: ({
6
+ variant?: "default" | "error" | "separator" | "status" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export type MarkerProps = VariantProps<typeof markerVariants>;
9
+ /**
10
+ * An inline row in a chat transcript that is not a message: a system note, a
11
+ * streaming status, tool activity, or a labelled date separator.
12
+ * @new
13
+ */
14
+ export declare class MarkerComponent implements OnChanges {
15
+ private readonly cdr;
16
+ /**
17
+ * Angular writes a bound `class` input through its styling path, which does
18
+ * not mark an OnPush component dirty — without this hook the component keeps
19
+ * rendering the class it was born with.
20
+ */
21
+ ngOnChanges(): void;
22
+ /** Kind of transcript marker this row represents. @default 'default' */
23
+ variant: MarkerProps['variant'];
24
+ /** Text for the marker — the date on a separator, or the status wording. */
25
+ label: string;
26
+ /** Remixicon class for a leading icon, e.g. 'ri-tools-line'. */
27
+ icon: string;
28
+ /** Applies the shimmer text sweep, for live status such as "Thinking…". @default false */
29
+ shimmer: boolean;
30
+ /** Extra Tailwind classes merged onto the row via `cn()` (last-wins). */
31
+ class: string;
32
+ get computedClass(): string;
33
+ /** Whether this marker announces a change to assistive technology. */
34
+ get isLive(): boolean;
35
+ get iconClass(): string;
36
+ get labelClass(): string;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkerComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<MarkerComponent, "tolle-marker", never, { "variant": { "alias": "variant"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "shimmer": { "alias": "shimmer"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
39
+ }
40
+ /**
41
+ * Groups related markers — a run of tool calls, say — into one indented block so
42
+ * they read as a single step in the transcript.
43
+ */
44
+ export declare class MarkerGroupComponent implements OnChanges {
45
+ private readonly cdr;
46
+ /**
47
+ * Angular writes a bound `class` input through its styling path, which does
48
+ * not mark an OnPush component dirty — without this hook the component keeps
49
+ * rendering the class it was born with.
50
+ */
51
+ ngOnChanges(): void;
52
+ /** Extra Tailwind classes merged onto the group via `cn()` (last-wins). */
53
+ class: string;
54
+ protected cn: typeof cn;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkerGroupComponent, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<MarkerGroupComponent, "tolle-marker-group", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
57
+ }
58
+ export {};
@@ -0,0 +1,247 @@
1
+ import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import { cn } from './utils/cn';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Contract a `tolle-menubar-menu` fulfils so `MenubarService` can drive focus and
7
+ * keyboard navigation without importing the component (which would be circular).
8
+ */
9
+ export interface MenubarMenuRef {
10
+ /** Stable id, unique per menu instance. */
11
+ readonly id: string;
12
+ /** The menu's trigger button, once rendered. */
13
+ triggerElement: HTMLElement | null;
14
+ /** The menu's open panel, or `null` while closed. */
15
+ contentElement: HTMLElement | null;
16
+ }
17
+ /**
18
+ * Coordinates the menus of a single `tolle-menubar`. Provided by
19
+ * `MenubarComponent`, injected by every descendant menu/trigger/content.
20
+ *
21
+ * The defining behaviour of a menu bar lives here: once *any* menu is open,
22
+ * hovering a different trigger switches to it immediately (`hoverEnter`), while
23
+ * hovering with everything closed does nothing.
24
+ */
25
+ export declare class MenubarService {
26
+ private openIdSource;
27
+ /** Emits the id of the currently open menu, or `null` when all are closed. */
28
+ readonly openId$: import("rxjs").Observable<string | null>;
29
+ private sizeSource;
30
+ /**
31
+ * Emits the bar's size so OnPush triggers re-render when it changes. Reading
32
+ * the parent component's property directly would not mark them dirty.
33
+ */
34
+ readonly size$: import("rxjs").Observable<"default" | "sm" | "lg">;
35
+ /** The bar's current size scale. */
36
+ get size(): 'sm' | 'default' | 'lg';
37
+ setSize(size: 'sm' | 'default' | 'lg'): void;
38
+ /** Registered menus in DOM (registration) order. */
39
+ private menus;
40
+ /** Id of the open menu, or `null`. */
41
+ get openId(): string | null;
42
+ /** True while one of the bar's menus is open. */
43
+ get isAnyOpen(): boolean;
44
+ register(menu: MenubarMenuRef): void;
45
+ unregister(menu: MenubarMenuRef): void;
46
+ isOpen(id: string): boolean;
47
+ open(id: string): void;
48
+ close(): void;
49
+ toggle(id: string): void;
50
+ /**
51
+ * Pointer entered a trigger. Only switches menus when the bar is already
52
+ * "active" (something open) — this is what makes a menu bar feel native.
53
+ */
54
+ hoverEnter(id: string): void;
55
+ /** Moves focus to the previous/next menu, keeping the open state. */
56
+ moveMenu(delta: number): void;
57
+ /** Moves focus between the enabled items of the currently open menu. */
58
+ moveItem(delta: number): void;
59
+ /** Focuses the trigger of the given menu (used when Escape closes a menu). */
60
+ focusTrigger(id: string): void;
61
+ private openItems;
62
+ private indexOfFocusedTrigger;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenubarService, never>;
64
+ static ɵprov: i0.ɵɵInjectableDeclaration<MenubarService>;
65
+ }
66
+ declare const menubarVariants: (props?: ({
67
+ size?: "default" | "sm" | "lg" | null | undefined;
68
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
69
+ export type MenubarProps = VariantProps<typeof menubarVariants>;
70
+ declare const menubarTriggerVariants: (props?: ({
71
+ size?: "default" | "sm" | "lg" | null | undefined;
72
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
73
+ export type MenubarTriggerProps = VariantProps<typeof menubarTriggerVariants>;
74
+ declare const menubarItemVariants: (props?: ({
75
+ variant?: "default" | "destructive" | null | undefined;
76
+ inset?: boolean | null | undefined;
77
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
78
+ export type MenubarItemProps = VariantProps<typeof menubarItemVariants>;
79
+ /**
80
+ * Desktop-application style menu bar.
81
+ *
82
+ * ```html
83
+ * <tolle-menubar>
84
+ * <tolle-menubar-menu>
85
+ * <tolle-menubar-trigger>File</tolle-menubar-trigger>
86
+ * <tolle-menubar-content>
87
+ * <tolle-menubar-label>Document</tolle-menubar-label>
88
+ * <tolle-menubar-item (select)="onNew()">New</tolle-menubar-item>
89
+ * <tolle-menubar-separator />
90
+ * <tolle-menubar-item variant="destructive">Delete</tolle-menubar-item>
91
+ * </tolle-menubar-content>
92
+ * </tolle-menubar-menu>
93
+ * </tolle-menubar>
94
+ * ```
95
+ * @new
96
+ */
97
+ export declare class MenubarComponent implements OnInit, OnChanges, OnDestroy {
98
+ /** Height/padding scale, inherited by every trigger in the bar. @default 'default' */
99
+ size: MenubarProps['size'];
100
+ /** Extra Tailwind classes merged onto the bar via `cn()` (last-wins). */
101
+ class: string;
102
+ /** Emitted with the id of the menu that opened, or `null` when the bar closes. */
103
+ openChange: EventEmitter<string | null>;
104
+ protected readonly service: MenubarService;
105
+ private readonly host;
106
+ private readonly sub;
107
+ private listening;
108
+ get computedClass(): string;
109
+ ngOnChanges(): void;
110
+ ngOnInit(): void;
111
+ protected onKeydown(event: KeyboardEvent): void;
112
+ private outsideClick;
113
+ private startListening;
114
+ private stopListening;
115
+ ngOnDestroy(): void;
116
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenubarComponent, never>;
117
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenubarComponent, "tolle-menubar", never, { "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "openChange": "openChange"; }, never, ["*"], true, never>;
118
+ }
119
+ /** A single menu in the bar — wraps one trigger and its content panel. */
120
+ export declare class MenubarMenuComponent implements MenubarMenuRef, OnInit, OnDestroy {
121
+ /** Explicit id for the menu; one is generated when omitted. */
122
+ id: string;
123
+ triggerElement: HTMLElement | null;
124
+ contentElement: HTMLElement | null;
125
+ readonly service: MenubarService;
126
+ get triggerId(): string;
127
+ get isOpen(): boolean;
128
+ ngOnInit(): void;
129
+ ngOnDestroy(): void;
130
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenubarMenuComponent, never>;
131
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenubarMenuComponent, "tolle-menubar-menu", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, ["*"], true, never>;
132
+ }
133
+ /** Button that opens its menu on click, and on hover once the bar is active. */
134
+ export declare class MenubarTriggerComponent implements OnChanges, OnDestroy {
135
+ /**
136
+ * Angular writes a bound `class` input through its styling path, which does
137
+ * not mark an OnPush component dirty — without this hook the component keeps
138
+ * rendering the class it was born with.
139
+ */
140
+ ngOnChanges(): void;
141
+ /** Prevents the menu from opening. @default false */
142
+ disabled: boolean;
143
+ /** Overrides the size inherited from `tolle-menubar`. */
144
+ size?: MenubarTriggerProps['size'];
145
+ /** Extra Tailwind classes merged onto the trigger via `cn()` (last-wins). */
146
+ class: string;
147
+ protected readonly menu: MenubarMenuComponent;
148
+ private readonly service;
149
+ private readonly cdr;
150
+ private readonly sub;
151
+ constructor();
152
+ set triggerRef(ref: ElementRef<HTMLButtonElement> | undefined);
153
+ protected get isOpen(): boolean;
154
+ protected get computedClass(): string;
155
+ protected onClick(): void;
156
+ protected onMouseEnter(): void;
157
+ ngOnDestroy(): void;
158
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenubarTriggerComponent, never>;
159
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenubarTriggerComponent, "tolle-menubar-trigger", never, { "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
160
+ }
161
+ /** The dropdown panel of a menu. Rendered only while its menu is open. */
162
+ export declare class MenubarContentComponent implements OnChanges, OnDestroy {
163
+ /**
164
+ * Angular writes a bound `class` input through its styling path, which does
165
+ * not mark an OnPush component dirty — without this hook the component keeps
166
+ * rendering the class it was born with.
167
+ */
168
+ ngOnChanges(): void;
169
+ /** Preferred side of the trigger to render on; flips when space is tight. @default 'bottom-start' */
170
+ placement: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
171
+ /** Gap in pixels between the trigger and the panel. @default 4 */
172
+ sideOffset: number;
173
+ /** Extra Tailwind classes merged onto the panel via `cn()` (last-wins). */
174
+ class: string;
175
+ protected readonly menu: MenubarMenuComponent;
176
+ private readonly service;
177
+ private readonly cdr;
178
+ private readonly sub;
179
+ private cleanup?;
180
+ constructor();
181
+ set panelRef(ref: ElementRef<HTMLElement> | undefined);
182
+ protected get isOpen(): boolean;
183
+ protected get computedClass(): string;
184
+ private startPositioning;
185
+ private stopPositioning;
186
+ ngOnDestroy(): void;
187
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenubarContentComponent, never>;
188
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenubarContentComponent, "tolle-menubar-content", never, { "placement": { "alias": "placement"; "required": false; }; "sideOffset": { "alias": "sideOffset"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
189
+ }
190
+ /** A selectable row inside a menu. Closes the bar when activated. */
191
+ export declare class MenubarItemComponent implements OnChanges {
192
+ private readonly cdr;
193
+ /**
194
+ * Angular writes a bound `class` input through its styling path, which does
195
+ * not mark an OnPush component dirty — without this hook the component keeps
196
+ * rendering the class it was born with.
197
+ */
198
+ ngOnChanges(): void;
199
+ /** Visual style of the item. @default 'default' */
200
+ variant: MenubarItemProps['variant'];
201
+ /** Adds left padding so the label lines up with items that have icons. @default false */
202
+ inset: boolean;
203
+ /** Blocks activation and dims the item. @default false */
204
+ disabled: boolean;
205
+ /** Extra Tailwind classes merged onto the item via `cn()` (last-wins). */
206
+ class: string;
207
+ /** Emitted when the item is clicked or activated with Enter/Space. */
208
+ select: EventEmitter<Event>;
209
+ private readonly service;
210
+ protected get computedClass(): string;
211
+ protected activate(event: Event): void;
212
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenubarItemComponent, never>;
213
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenubarItemComponent, "tolle-menubar-item", never, { "variant": { "alias": "variant"; "required": false; }; "inset": { "alias": "inset"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "select": "select"; }, never, ["[prefix]", "*", "[shortcut]"], true, never>;
214
+ }
215
+ /** A non-interactive heading inside a menu. */
216
+ export declare class MenubarLabelComponent implements OnChanges {
217
+ private readonly cdr;
218
+ /**
219
+ * Angular writes a bound `class` input through its styling path, which does
220
+ * not mark an OnPush component dirty — without this hook the component keeps
221
+ * rendering the class it was born with.
222
+ */
223
+ ngOnChanges(): void;
224
+ /** Adds left padding so the label lines up with items that have icons. @default false */
225
+ inset: boolean;
226
+ /** Extra Tailwind classes merged onto the label via `cn()` (last-wins). */
227
+ class: string;
228
+ protected readonly cn: typeof cn;
229
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenubarLabelComponent, never>;
230
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenubarLabelComponent, "tolle-menubar-label", never, { "inset": { "alias": "inset"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
231
+ }
232
+ /** A horizontal rule between groups of menu items. */
233
+ export declare class MenubarSeparatorComponent implements OnChanges {
234
+ private readonly cdr;
235
+ /**
236
+ * Angular writes a bound `class` input through its styling path, which does
237
+ * not mark an OnPush component dirty — without this hook the component keeps
238
+ * rendering the class it was born with.
239
+ */
240
+ ngOnChanges(): void;
241
+ /** Extra Tailwind classes merged onto the separator via `cn()` (last-wins). */
242
+ class: string;
243
+ protected readonly cn: typeof cn;
244
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenubarSeparatorComponent, never>;
245
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenubarSeparatorComponent, "tolle-menubar-separator", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
246
+ }
247
+ export {};