@tolle_/tolle-ui 18.2.28 → 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.
- package/esm2022/lib/accordion-item.component.mjs +5 -11
- package/esm2022/lib/accordion.component.mjs +4 -9
- package/esm2022/lib/alert-dialog-dynamic.component.mjs +5 -10
- package/esm2022/lib/alert-dialog.component.mjs +44 -59
- package/esm2022/lib/alert.component.mjs +5 -11
- package/esm2022/lib/aspect-ratio.component.mjs +119 -0
- package/esm2022/lib/attachment.component.mjs +334 -0
- package/esm2022/lib/avatar-fallback.component.mjs +3 -3
- package/esm2022/lib/avatar.component.mjs +4 -9
- package/esm2022/lib/badge.component.mjs +4 -9
- package/esm2022/lib/breadcrumb-item.component.mjs +3 -3
- package/esm2022/lib/breadcrumb-link.component.mjs +3 -3
- package/esm2022/lib/breadcrumb-separator.component.mjs +3 -3
- package/esm2022/lib/breadcrumb.component.mjs +3 -3
- package/esm2022/lib/bubble.component.mjs +301 -0
- package/esm2022/lib/button.component.mjs +5 -11
- package/esm2022/lib/calendar.component.mjs +5 -11
- package/esm2022/lib/card.component.mjs +14 -43
- package/esm2022/lib/carousel/carousel.component.mjs +5 -12
- package/esm2022/lib/chain-of-thought.component.mjs +380 -0
- package/esm2022/lib/chart-pie.component.mjs +386 -0
- package/esm2022/lib/chart.component.mjs +1146 -0
- package/esm2022/lib/chart.service.mjs +555 -0
- package/esm2022/lib/checkbox.component.mjs +5 -11
- package/esm2022/lib/checkpoint.component.mjs +134 -0
- package/esm2022/lib/collapsible.component.mjs +4 -11
- package/esm2022/lib/combobox.component.mjs +372 -0
- package/esm2022/lib/command-dialog.component.mjs +164 -0
- package/esm2022/lib/command.component.mjs +514 -0
- package/esm2022/lib/command.service.mjs +130 -0
- package/esm2022/lib/confirmation.component.mjs +219 -0
- package/esm2022/lib/context-menu-trigger.directive.mjs +36 -0
- package/esm2022/lib/context-menu.component.mjs +460 -0
- package/esm2022/lib/context-menu.service.mjs +121 -0
- package/esm2022/lib/context.component.mjs +377 -0
- package/esm2022/lib/conversation.component.mjs +442 -0
- package/esm2022/lib/country-selector.component.mjs +5 -11
- package/esm2022/lib/data-table.component.mjs +63 -12
- package/esm2022/lib/date-picker.component.mjs +251 -198
- package/esm2022/lib/date-range-picker.component.mjs +224 -116
- package/esm2022/lib/date-time-picker.component.mjs +506 -0
- package/esm2022/lib/direction.component.mjs +79 -0
- package/esm2022/lib/dropdown-item.component.mjs +3 -3
- package/esm2022/lib/dropdown-label.component.mjs +3 -3
- package/esm2022/lib/dropdown-menu.component.mjs +3 -3
- package/esm2022/lib/dropdown-separator.component.mjs +3 -3
- package/esm2022/lib/dropdown-trigger.directive.mjs +6 -4
- package/esm2022/lib/empty-state.component.mjs +4 -9
- package/esm2022/lib/field.component.mjs +394 -0
- package/esm2022/lib/hover-card.component.mjs +6 -16
- package/esm2022/lib/inline-citation.component.mjs +263 -0
- package/esm2022/lib/input-group.component.mjs +418 -0
- package/esm2022/lib/input.component.mjs +5 -11
- package/esm2022/lib/item.component.mjs +243 -0
- package/esm2022/lib/kbd.component.mjs +82 -0
- package/esm2022/lib/label.component.mjs +4 -9
- package/esm2022/lib/marker.component.mjs +135 -0
- package/esm2022/lib/masked-input.component.mjs +5 -11
- package/esm2022/lib/menubar.component.mjs +683 -0
- package/esm2022/lib/message-scroller.component.mjs +353 -0
- package/esm2022/lib/message-scroller.service.mjs +157 -0
- package/esm2022/lib/message.component.mjs +228 -0
- package/esm2022/lib/model-selector.component.mjs +310 -0
- package/esm2022/lib/multi-select.component.mjs +155 -72
- package/esm2022/lib/native-select.component.mjs +201 -0
- package/esm2022/lib/navigation-menu.component.mjs +642 -0
- package/esm2022/lib/otp-group.component.mjs +3 -3
- package/esm2022/lib/otp-slot.component.mjs +4 -9
- package/esm2022/lib/otp.component.mjs +5 -11
- package/esm2022/lib/pagination.component.mjs +7 -10
- package/esm2022/lib/plan.component.mjs +335 -0
- package/esm2022/lib/popover-content.component.mjs +4 -9
- package/esm2022/lib/popover.component.mjs +15 -13
- package/esm2022/lib/progress.component.mjs +4 -9
- package/esm2022/lib/prompt-input.component.mjs +526 -0
- package/esm2022/lib/queue.component.mjs +280 -0
- package/esm2022/lib/radio-group.component.mjs +6 -13
- package/esm2022/lib/radio-item.component.mjs +4 -9
- package/esm2022/lib/range-calendar.component.mjs +5 -11
- package/esm2022/lib/reasoning.component.mjs +335 -0
- package/esm2022/lib/resizable.component.mjs +219 -0
- package/esm2022/lib/segment.component.mjs +17 -7
- package/esm2022/lib/select-group.component.mjs +4 -8
- package/esm2022/lib/select-item.component.mjs +4 -9
- package/esm2022/lib/select-separator.component.mjs +4 -8
- package/esm2022/lib/select.component.mjs +133 -49
- package/esm2022/lib/separator.component.mjs +4 -9
- package/esm2022/lib/sheet.component.mjs +38 -56
- package/esm2022/lib/shimmer.component.mjs +84 -0
- package/esm2022/lib/sidebar.component.mjs +11 -1
- package/esm2022/lib/skeleton.component.mjs +4 -9
- package/esm2022/lib/sources.component.mjs +452 -0
- package/esm2022/lib/spinner.component.mjs +68 -0
- package/esm2022/lib/suggestion.component.mjs +207 -0
- package/esm2022/lib/switch.component.mjs +5 -11
- package/esm2022/lib/table.component.mjs +213 -0
- package/esm2022/lib/tabs.component.mjs +4 -11
- package/esm2022/lib/tag-input.component.mjs +5 -11
- package/esm2022/lib/task.component.mjs +359 -0
- package/esm2022/lib/textarea.component.mjs +5 -11
- package/esm2022/lib/theme.service.mjs +17 -6
- package/esm2022/lib/time-picker.component.mjs +923 -0
- package/esm2022/lib/toast.service.mjs +3 -2
- package/esm2022/lib/toaster.component.mjs +76 -39
- package/esm2022/lib/toggle-group.component.mjs +4 -9
- package/esm2022/lib/toggle.component.mjs +5 -11
- package/esm2022/lib/tool.component.mjs +462 -0
- package/esm2022/lib/typography.component.mjs +83 -0
- package/esm2022/lib/utils/color.mjs +140 -19
- package/esm2022/public-api.mjs +61 -1
- package/fesm2022/tolle-ui.mjs +16457 -1024
- package/fesm2022/tolle-ui.mjs.map +1 -1
- package/lib/alert-dialog.component.d.ts +10 -2
- package/lib/aspect-ratio.component.d.ts +20 -0
- package/lib/attachment.component.d.ts +101 -0
- package/lib/bubble.component.d.ts +112 -0
- package/lib/chain-of-thought.component.d.ts +166 -0
- package/lib/chart-pie.component.d.ts +108 -0
- package/lib/chart.component.d.ts +369 -0
- package/lib/chart.service.d.ts +222 -0
- package/lib/checkpoint.component.d.ts +51 -0
- package/lib/combobox.component.d.ts +90 -0
- package/lib/command-dialog.component.d.ts +53 -0
- package/lib/command.component.d.ts +189 -0
- package/lib/command.service.d.ts +67 -0
- package/lib/confirmation.component.d.ts +70 -0
- package/lib/context-menu-trigger.directive.d.ts +12 -0
- package/lib/context-menu.component.d.ts +41 -0
- package/lib/context-menu.service.d.ts +38 -0
- package/lib/context.component.d.ts +134 -0
- package/lib/conversation.component.d.ts +165 -0
- package/lib/data-table.component.d.ts +27 -1
- package/lib/date-picker.component.d.ts +72 -11
- package/lib/date-range-picker.component.d.ts +63 -6
- package/lib/date-time-picker.component.d.ts +119 -0
- package/lib/direction.component.d.ts +45 -0
- package/lib/field.component.d.ts +201 -0
- package/lib/inline-citation.component.d.ts +103 -0
- package/lib/input-group.component.d.ts +150 -0
- package/lib/item.component.d.ts +154 -0
- package/lib/kbd.component.d.ts +50 -0
- package/lib/marker.component.d.ts +58 -0
- package/lib/menubar.component.d.ts +247 -0
- package/lib/message-scroller.component.d.ts +159 -0
- package/lib/message-scroller.service.d.ts +73 -0
- package/lib/message.component.d.ts +128 -0
- package/lib/model-selector.component.d.ts +103 -0
- package/lib/multi-select.component.d.ts +66 -14
- package/lib/native-select.component.d.ts +57 -0
- package/lib/navigation-menu.component.d.ts +230 -0
- package/lib/plan.component.d.ts +120 -0
- package/lib/popover.component.d.ts +1 -0
- package/lib/prompt-input.component.d.ts +194 -0
- package/lib/queue.component.d.ts +106 -0
- package/lib/reasoning.component.d.ts +127 -0
- package/lib/resizable.component.d.ts +43 -0
- package/lib/segment.component.d.ts +13 -3
- package/lib/select.component.d.ts +37 -5
- package/lib/sheet.component.d.ts +3 -0
- package/lib/shimmer.component.d.ts +38 -0
- package/lib/sidebar.component.d.ts +2 -0
- package/lib/sources.component.d.ts +156 -0
- package/lib/spinner.component.d.ts +29 -0
- package/lib/suggestion.component.d.ts +96 -0
- package/lib/table.component.d.ts +106 -0
- package/lib/task.component.d.ts +151 -0
- package/lib/theme.service.d.ts +9 -0
- package/lib/time-picker.component.d.ts +243 -0
- package/lib/toast.service.d.ts +3 -1
- package/lib/toaster.component.d.ts +26 -9
- package/lib/tool.component.d.ts +158 -0
- package/lib/typography.component.d.ts +32 -0
- package/lib/utils/color.d.ts +19 -5
- package/package.json +1 -1
- package/public-api.d.ts +50 -0
- package/registry/docs-content.json +8497 -1553
- package/registry/llms-full.txt +2679 -318
- package/registry/llms.txt +43 -4
- package/registry/manifest.json +9093 -1739
- package/registry/r/accordion-item.json +1 -1
- package/registry/r/accordion.json +1 -1
- package/registry/r/alert-dialog-dynamic.json +1 -1
- package/registry/r/alert-dialog.json +1 -1
- package/registry/r/alert.json +1 -1
- package/registry/r/attachment.json +23 -0
- package/registry/r/avatar-fallback.json +1 -1
- package/registry/r/avatar.json +1 -1
- package/registry/r/badge.json +1 -1
- package/registry/r/breadcrumb-item.json +1 -1
- package/registry/r/breadcrumb-link.json +1 -1
- package/registry/r/breadcrumb-separator.json +1 -1
- package/registry/r/breadcrumb.json +1 -1
- package/registry/r/bubble.json +23 -0
- package/registry/r/button.json +1 -1
- package/registry/r/calendar.json +1 -1
- package/registry/r/card.json +1 -1
- package/registry/r/carousel.json +1 -1
- package/registry/r/chain-of-thought.json +23 -0
- package/registry/r/chart-pie.json +30 -0
- package/registry/r/chart.json +28 -0
- package/registry/r/checkbox.json +1 -1
- package/registry/r/checkpoint.json +23 -0
- package/registry/r/collapsible.json +1 -1
- package/registry/r/combobox.json +31 -0
- package/registry/r/command-dialog.json +21 -0
- package/registry/r/command.json +26 -0
- package/registry/r/confirmation.json +23 -0
- package/registry/r/context.json +26 -0
- package/registry/r/conversation.json +23 -0
- package/registry/r/country-selector.json +1 -1
- package/registry/r/data-table.json +1 -1
- package/registry/r/date-picker.json +4 -4
- package/registry/r/date-range-picker.json +3 -3
- package/registry/r/date-time-picker.json +28 -0
- package/registry/r/direction.json +16 -0
- package/registry/r/dropdown-item.json +1 -1
- package/registry/r/dropdown-label.json +1 -1
- package/registry/r/dropdown-menu.json +1 -1
- package/registry/r/dropdown-separator.json +1 -1
- package/registry/r/dropdown-trigger.json +1 -1
- package/registry/r/empty-state.json +1 -1
- package/registry/r/field.json +23 -0
- package/registry/r/hover-card.json +1 -1
- package/registry/r/inline-citation.json +26 -0
- package/registry/r/input-group.json +23 -0
- package/registry/r/input.json +1 -1
- package/registry/r/item.json +23 -0
- package/registry/r/kbd.json +23 -0
- package/registry/r/label.json +1 -1
- package/registry/r/marker.json +23 -0
- package/registry/r/masked-input.json +1 -1
- package/registry/r/menubar.json +24 -0
- package/registry/r/message-scroller.json +26 -0
- package/registry/r/message.json +23 -0
- package/registry/r/model-selector.json +32 -0
- package/registry/r/multi-select.json +2 -2
- package/registry/r/native-select.json +23 -0
- package/registry/r/navigation-menu.json +24 -0
- package/registry/r/otp-group.json +1 -1
- package/registry/r/otp-slot.json +1 -1
- package/registry/r/otp.json +1 -1
- package/registry/r/pagination.json +3 -2
- package/registry/r/plan.json +23 -0
- package/registry/r/popover-content.json +1 -1
- package/registry/r/popover.json +1 -1
- package/registry/r/progress.json +1 -1
- package/registry/r/prompt-input.json +23 -0
- package/registry/r/queue.json +23 -0
- package/registry/r/radio-group.json +1 -1
- package/registry/r/radio-item.json +1 -1
- package/registry/r/range-calendar.json +1 -1
- package/registry/r/reasoning.json +23 -0
- package/registry/r/segment.json +1 -1
- package/registry/r/select-group.json +1 -1
- package/registry/r/select-item.json +1 -1
- package/registry/r/select-separator.json +1 -1
- package/registry/r/select.json +4 -3
- package/registry/r/separator.json +1 -1
- package/registry/r/sheet.json +1 -1
- package/registry/r/shimmer.json +23 -0
- package/registry/r/sidebar.json +1 -1
- package/registry/r/skeleton.json +1 -1
- package/registry/r/sources.json +23 -0
- package/registry/r/spinner.json +23 -0
- package/registry/r/suggestion.json +23 -0
- package/registry/r/switch.json +1 -1
- package/registry/r/table.json +21 -0
- package/registry/r/tabs.json +1 -1
- package/registry/r/tag-input.json +1 -1
- package/registry/r/task.json +23 -0
- package/registry/r/textarea.json +1 -1
- package/registry/r/time-picker.json +24 -0
- package/registry/r/toaster.json +2 -2
- package/registry/r/toggle-group.json +1 -1
- package/registry/r/toggle.json +1 -1
- package/registry/r/tool.json +23 -0
- package/registry/r/typography.json +23 -0
- package/registry/registry.json +915 -22
- package/theme.css +109 -8
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const toolStateVariants: (props?: ({
|
|
5
|
+
state?: "error" | "success" | "pending" | "running" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type ToolStateProps = VariantProps<typeof toolStateVariants>;
|
|
8
|
+
/** Lifecycle of a tool call. */
|
|
9
|
+
export type ToolState = NonNullable<ToolStateProps['state']>;
|
|
10
|
+
/**
|
|
11
|
+
* Coordinates a `tolle-tool` with its header, input and output.
|
|
12
|
+
*
|
|
13
|
+
* Header/input/output are OnPush siblings projected into the tool, so the
|
|
14
|
+
* shared open + state they render from is published here.
|
|
15
|
+
*
|
|
16
|
+
* Provided on `ToolComponent`, so each tool call gets its own instance.
|
|
17
|
+
*/
|
|
18
|
+
export declare class ToolService {
|
|
19
|
+
private readonly openSource;
|
|
20
|
+
/** Emits whether the tool call is expanded. */
|
|
21
|
+
readonly open$: import("rxjs").Observable<boolean>;
|
|
22
|
+
private readonly stateSource;
|
|
23
|
+
/** Emits the tool call's lifecycle state. */
|
|
24
|
+
readonly state$: import("rxjs").Observable<ToolState>;
|
|
25
|
+
/** True while the tool call is expanded. */
|
|
26
|
+
get open(): boolean;
|
|
27
|
+
/** The tool call's current state. */
|
|
28
|
+
get state(): ToolState;
|
|
29
|
+
setOpen(value: boolean): void;
|
|
30
|
+
toggle(): void;
|
|
31
|
+
setState(state: ToolState): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolService, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToolService>;
|
|
34
|
+
}
|
|
35
|
+
declare const toolVariants: (props?: ({
|
|
36
|
+
state?: "error" | "success" | "pending" | "running" | null | undefined;
|
|
37
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
38
|
+
export type ToolProps = VariantProps<typeof toolVariants>;
|
|
39
|
+
/**
|
|
40
|
+
* A collapsible record of one tool/function call: what was invoked, the
|
|
41
|
+
* arguments it received and the result it returned.
|
|
42
|
+
*
|
|
43
|
+
* Compose it from `tolle-tool-header`, `tolle-tool-input` and
|
|
44
|
+
* `tolle-tool-output`.
|
|
45
|
+
* @new
|
|
46
|
+
*/
|
|
47
|
+
export declare class ToolComponent implements OnInit, OnChanges, OnDestroy {
|
|
48
|
+
/** Lifecycle of the call, driving the header chip and border. @default 'pending' */
|
|
49
|
+
state: ToolState;
|
|
50
|
+
/** Whether the call's input and output are expanded. @default false */
|
|
51
|
+
open: boolean;
|
|
52
|
+
/** Extra Tailwind classes merged onto the tool via `cn()` (last-wins). */
|
|
53
|
+
class: string;
|
|
54
|
+
/** Emitted with the new state whenever the call is expanded or collapsed. */
|
|
55
|
+
openChange: EventEmitter<boolean>;
|
|
56
|
+
private readonly service;
|
|
57
|
+
private readonly cdr;
|
|
58
|
+
private readonly subscriptions;
|
|
59
|
+
/** True while an `open` input is being pushed into the service. */
|
|
60
|
+
private applyingInput;
|
|
61
|
+
ngOnInit(): void;
|
|
62
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
63
|
+
private applyInput;
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
get computedClass(): string;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolComponent, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolComponent, "tolle-tool", never, { "state": { "alias": "state"; "required": false; }; "open": { "alias": "open"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "openChange": "openChange"; }, never, ["*"], true, never>;
|
|
68
|
+
}
|
|
69
|
+
/** Clickable header of a `tolle-tool`: the tool's name plus its state chip. */
|
|
70
|
+
export declare class ToolHeaderComponent implements OnChanges, OnInit, OnDestroy {
|
|
71
|
+
/**
|
|
72
|
+
* Angular writes a bound `class` input through its styling path, which does
|
|
73
|
+
* not mark an OnPush component dirty — without this hook the component keeps
|
|
74
|
+
* rendering the class it was born with.
|
|
75
|
+
*/
|
|
76
|
+
ngOnChanges(): void;
|
|
77
|
+
/** Name of the tool that was called. @default '' */
|
|
78
|
+
name: string;
|
|
79
|
+
/** Remixicon class shown before the tool name. @default 'ri-tools-line' */
|
|
80
|
+
icon: string;
|
|
81
|
+
/** Overrides the chip text; defaults to a label derived from the state. @default '' */
|
|
82
|
+
stateLabelOverride: string;
|
|
83
|
+
/** Extra Tailwind classes merged onto the header via `cn()` (last-wins). */
|
|
84
|
+
class: string;
|
|
85
|
+
/** Extra Tailwind classes merged onto the state chip via `cn()` (last-wins). */
|
|
86
|
+
chipClassName: string;
|
|
87
|
+
private readonly service;
|
|
88
|
+
private readonly cdr;
|
|
89
|
+
private readonly subscriptions;
|
|
90
|
+
open: boolean;
|
|
91
|
+
state: ToolState;
|
|
92
|
+
ngOnInit(): void;
|
|
93
|
+
ngOnDestroy(): void;
|
|
94
|
+
get stateIcon(): string;
|
|
95
|
+
get stateLabel(): string;
|
|
96
|
+
get chipClass(): string;
|
|
97
|
+
get computedClass(): string;
|
|
98
|
+
onToggle(): void;
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolHeaderComponent, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolHeaderComponent, "tolle-tool-header", never, { "name": { "alias": "name"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "stateLabelOverride": { "alias": "stateLabelOverride"; "required": false; }; "class": { "alias": "class"; "required": false; }; "chipClassName": { "alias": "chipClassName"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Base for the two payload panels. Owns the shared "visible only while the
|
|
104
|
+
* tool is expanded" wiring and the payload-to-text formatting.
|
|
105
|
+
*
|
|
106
|
+
* Decorated with a selector-less `@Directive()` because it uses Angular
|
|
107
|
+
* features (DI and lifecycle hooks) on behalf of its subclasses.
|
|
108
|
+
*/
|
|
109
|
+
export declare abstract class ToolPayloadBase implements OnChanges, OnInit, OnDestroy {
|
|
110
|
+
/**
|
|
111
|
+
* Angular writes a bound `class` input through its styling path, which does
|
|
112
|
+
* not mark an OnPush component dirty — without this hook subclasses keep
|
|
113
|
+
* rendering the class they were born with.
|
|
114
|
+
*/
|
|
115
|
+
ngOnChanges(): void;
|
|
116
|
+
/** Payload to render; objects are pretty-printed as JSON, strings are shown as-is. */
|
|
117
|
+
payload: unknown;
|
|
118
|
+
protected readonly service: ToolService;
|
|
119
|
+
private readonly cdr;
|
|
120
|
+
private readonly subscriptions;
|
|
121
|
+
open: boolean;
|
|
122
|
+
ngOnInit(): void;
|
|
123
|
+
ngOnDestroy(): void;
|
|
124
|
+
/** True once there is a payload worth rendering. */
|
|
125
|
+
get hasPayload(): boolean;
|
|
126
|
+
/** The payload as display text. Falls back to `String()` for cyclic values. */
|
|
127
|
+
get formatted(): string;
|
|
128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolPayloadBase, never>;
|
|
129
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolPayloadBase, never, never, {}, {}, never, never, false, never>;
|
|
130
|
+
}
|
|
131
|
+
/** Arguments the tool was called with. Visible while the `tolle-tool` is expanded. */
|
|
132
|
+
export declare class ToolInputComponent extends ToolPayloadBase {
|
|
133
|
+
/** Arguments passed to the tool; objects are pretty-printed as JSON. @default null */
|
|
134
|
+
payload: unknown;
|
|
135
|
+
/** Heading above the payload. @default 'Parameters' */
|
|
136
|
+
label: string;
|
|
137
|
+
/** Extra Tailwind classes merged onto the panel via `cn()` (last-wins). */
|
|
138
|
+
class: string;
|
|
139
|
+
get computedClass(): string;
|
|
140
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolInputComponent, never>;
|
|
141
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolInputComponent, "tolle-tool-input", never, { "payload": { "alias": "payload"; "required": false; }; "label": { "alias": "label"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
142
|
+
}
|
|
143
|
+
/** Result the tool returned. Visible while the `tolle-tool` is expanded. */
|
|
144
|
+
export declare class ToolOutputComponent extends ToolPayloadBase {
|
|
145
|
+
/** Result returned by the tool; objects are pretty-printed as JSON. @default null */
|
|
146
|
+
payload: unknown;
|
|
147
|
+
/** Heading above the payload. @default 'Result' */
|
|
148
|
+
label: string;
|
|
149
|
+
/** Styles the payload as a failure. @default false */
|
|
150
|
+
error: boolean;
|
|
151
|
+
/** Extra Tailwind classes merged onto the panel via `cn()` (last-wins). */
|
|
152
|
+
class: string;
|
|
153
|
+
get payloadClass(): string;
|
|
154
|
+
get computedClass(): string;
|
|
155
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolOutputComponent, never>;
|
|
156
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolOutputComponent, "tolle-tool-output", never, { "payload": { "alias": "payload"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
157
|
+
}
|
|
158
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const typographyVariants: (props?: ({
|
|
5
|
+
variant?: "muted" | "blockquote" | "code" | "h1" | "h2" | "h3" | "h4" | "p" | "small" | "lead" | "large" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type TypographyProps = VariantProps<typeof typographyVariants>;
|
|
8
|
+
/**
|
|
9
|
+
* Applies the theme's type scale to projected content. Renders the semantically
|
|
10
|
+
* correct host tag for the chosen `variant` (`h1`–`h4`, `blockquote`, `code`,
|
|
11
|
+
* otherwise `p`), so headings stay real headings for assistive tech.
|
|
12
|
+
* @new
|
|
13
|
+
*/
|
|
14
|
+
export declare class TypographyComponent 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
|
+
/** Type scale step; also selects the rendered HTML tag. @default 'p' */
|
|
23
|
+
variant: TypographyProps['variant'];
|
|
24
|
+
/** Extra Tailwind classes merged onto the element via `cn()` (last-wins). */
|
|
25
|
+
class: string;
|
|
26
|
+
/** True for the variants that have no dedicated tag and render as `<p>`. */
|
|
27
|
+
get isParagraph(): boolean;
|
|
28
|
+
get computedClass(): string;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TypographyComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TypographyComponent, "tolle-typography", never, { "variant": { "alias": "variant"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
package/lib/utils/color.d.ts
CHANGED
|
@@ -78,10 +78,24 @@ export declare const BASE_PALETTES: Record<string, BasePalette>;
|
|
|
78
78
|
/** Emit the `:root` + `.dark` neutral-token block for a base color id. */
|
|
79
79
|
export declare function generateBaseCss(baseId: string): string;
|
|
80
80
|
/**
|
|
81
|
-
* Derive 5
|
|
82
|
-
*
|
|
83
|
-
*
|
|
81
|
+
* Derive 5 chart colors from one base hex, spreading hues widely and
|
|
82
|
+
* alternating lightness so adjacent series stay separable — including for
|
|
83
|
+
* red-green colour blindness, where hue alone carries almost no information and
|
|
84
|
+
* the lightness difference does the work.
|
|
85
|
+
*
|
|
86
|
+
* `mode` re-steps the ramp for the target surface. Dark is NOT a lightened flip
|
|
87
|
+
* of light: its usable lightness band is both narrower and lower.
|
|
88
|
+
*
|
|
89
|
+
* NOTE: a palette derived from an arbitrary brand hue cannot be *guaranteed*
|
|
90
|
+
* colour-blind-safe — five hues spread from one starting point will, for some
|
|
91
|
+
* bases, put a confusable pair next to each other. The shipped defaults in
|
|
92
|
+
* `theme.css` are a fixed, validated palette; prefer those unless brand-matched
|
|
93
|
+
* charts matter more than guaranteed separation. Whatever you use, keep the
|
|
94
|
+
* legend and direct labels on, so colour is never the only channel.
|
|
95
|
+
*/
|
|
96
|
+
export declare function generateChartRamp(hex: string, mode?: 'light' | 'dark'): string[];
|
|
97
|
+
/**
|
|
98
|
+
* Emit the `:root` + `.dark` `--chart-1…5` block for a chart base color, with
|
|
99
|
+
* each mode re-stepped for its own surface.
|
|
84
100
|
*/
|
|
85
|
-
export declare function generateChartRamp(hex: string): string[];
|
|
86
|
-
/** Emit the `:root` + `.dark` `--chart-1…5` block for a chart base color. */
|
|
87
101
|
export declare function generateChartCss(hex: string): string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -83,3 +83,53 @@ export * from './lib/phone-number.service';
|
|
|
83
83
|
export * from './lib/country-codes.service';
|
|
84
84
|
export * from './lib/resizable-panel.component';
|
|
85
85
|
export * from './lib/resizable-panel-item.component';
|
|
86
|
+
export * from './lib/aspect-ratio.component';
|
|
87
|
+
export * from './lib/resizable.component';
|
|
88
|
+
export * from './lib/context-menu.component';
|
|
89
|
+
export * from './lib/context-menu-trigger.directive';
|
|
90
|
+
export * from './lib/context-menu.service';
|
|
91
|
+
export * from './lib/select.service';
|
|
92
|
+
export * from './lib/radio-service';
|
|
93
|
+
export * from './lib/types/date-range';
|
|
94
|
+
export * from './lib/spinner.component';
|
|
95
|
+
export * from './lib/kbd.component';
|
|
96
|
+
export * from './lib/item.component';
|
|
97
|
+
export * from './lib/native-select.component';
|
|
98
|
+
export * from './lib/typography.component';
|
|
99
|
+
export * from './lib/field.component';
|
|
100
|
+
export * from './lib/input-group.component';
|
|
101
|
+
export * from './lib/table.component';
|
|
102
|
+
export * from './lib/menubar.component';
|
|
103
|
+
export * from './lib/navigation-menu.component';
|
|
104
|
+
export * from './lib/command.service';
|
|
105
|
+
export * from './lib/command.component';
|
|
106
|
+
export * from './lib/command-dialog.component';
|
|
107
|
+
export * from './lib/combobox.component';
|
|
108
|
+
export * from './lib/message-scroller.service';
|
|
109
|
+
export * from './lib/message-scroller.component';
|
|
110
|
+
export * from './lib/message.component';
|
|
111
|
+
export * from './lib/bubble.component';
|
|
112
|
+
export * from './lib/marker.component';
|
|
113
|
+
export * from './lib/attachment.component';
|
|
114
|
+
export * from './lib/conversation.component';
|
|
115
|
+
export * from './lib/prompt-input.component';
|
|
116
|
+
export * from './lib/reasoning.component';
|
|
117
|
+
export * from './lib/tool.component';
|
|
118
|
+
export * from './lib/sources.component';
|
|
119
|
+
export * from './lib/suggestion.component';
|
|
120
|
+
export * from './lib/inline-citation.component';
|
|
121
|
+
export * from './lib/shimmer.component';
|
|
122
|
+
export * from './lib/task.component';
|
|
123
|
+
export * from './lib/chain-of-thought.component';
|
|
124
|
+
export * from './lib/plan.component';
|
|
125
|
+
export * from './lib/queue.component';
|
|
126
|
+
export * from './lib/checkpoint.component';
|
|
127
|
+
export * from './lib/confirmation.component';
|
|
128
|
+
export * from './lib/context.component';
|
|
129
|
+
export * from './lib/model-selector.component';
|
|
130
|
+
export * from './lib/chart.service';
|
|
131
|
+
export * from './lib/chart.component';
|
|
132
|
+
export * from './lib/chart-pie.component';
|
|
133
|
+
export * from './lib/direction.component';
|
|
134
|
+
export * from './lib/time-picker.component';
|
|
135
|
+
export * from './lib/date-time-picker.component';
|