@rt-tools/ui-kit-v2 0.34.4 → 0.35.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.
- package/fesm2022/rt-tools-ui-kit-v2-ai-prompt-input.mjs +574 -0
- package/fesm2022/rt-tools-ui-kit-v2-ai-prompt-input.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-aside.mjs +76 -10
- package/fesm2022/rt-tools-ui-kit-v2-aside.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-button.mjs +18 -9
- package/fesm2022/rt-tools-ui-kit-v2-button.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-confirm-popover.mjs +2 -2
- package/fesm2022/rt-tools-ui-kit-v2-confirm-popover.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs +66 -4
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-markdown-text.mjs +2 -2
- package/fesm2022/rt-tools-ui-kit-v2-markdown-text.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs +128 -20
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-thread-list.mjs +2 -2
- package/fesm2022/rt-tools-ui-kit-v2-thread-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-usage-ring.mjs +163 -0
- package/fesm2022/rt-tools-ui-kit-v2-usage-ring.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2.mjs +2 -0
- package/package.json +9 -1
- package/src/lib/components/ai-prompt-input/CONTEXT.md +60 -0
- package/src/lib/components/ai-prompt-input/rt-ai-prompt-input.component.scss +113 -0
- package/src/lib/components/aside/footer/rt-aside-footer.component.scss +3 -1
- package/src/lib/components/aside/unsaved-dialog/rt-aside-unsaved-dialog.component.scss +10 -3
- package/src/lib/components/markdown-text/rt-markdown-text.component.scss +3 -0
- package/src/lib/components/thread-list/rt-thread-list.component.scss +19 -11
- package/src/lib/components/usage-ring/CONTEXT.md +33 -0
- package/src/lib/components/usage-ring/rt-usage-ring.component.scss +64 -0
- package/src/rich-editor/lib/components/ai-chat/CONTEXT.md +1 -1
- package/src/rich-editor/lib/components/ai-chat/answer/rt-ai-chat-answer.component.scss +1 -0
- package/src/rich-editor/lib/components/ai-chat/rt-ai-chat.component.scss +6 -0
- package/types/rt-tools-ui-kit-v2-ai-prompt-input.d.ts +193 -0
- package/types/rt-tools-ui-kit-v2-aside.d.ts +17 -7
- package/types/rt-tools-ui-kit-v2-button.d.ts +6 -1
- package/types/rt-tools-ui-kit-v2-core.d.ts +22 -0
- package/types/rt-tools-ui-kit-v2-rich-editor.d.ts +49 -3
- package/types/rt-tools-ui-kit-v2-usage-ring.d.ts +47 -0
- package/types/rt-tools-ui-kit-v2.d.ts +2 -0
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
import { CdkTextareaAutosize } from "@angular/cdk/text-field";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, ViewEncapsulation, booleanAttribute, computed, inject, input, model, numberAttribute, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { BlockDirective, ElemDirective, ModDirective } from "@rt-tools/core";
|
|
5
|
+
import { RtButtonDirective } from "@rt-tools/ui-kit-v2/button";
|
|
6
|
+
import { RT_KIT_LABELS, rtKitLabel } from "@rt-tools/ui-kit-v2/core";
|
|
7
|
+
import { RtFileCardComponent } from "@rt-tools/ui-kit-v2/file-card";
|
|
8
|
+
import { RtIconButtonComponent } from "@rt-tools/ui-kit-v2/icon-button";
|
|
9
|
+
import { RtUsageRingComponent } from "@rt-tools/ui-kit-v2/usage-ring";
|
|
10
|
+
const BEM_BLOCK = "rt-ai-prompt-input";
|
|
11
|
+
function rtPromptCanSend(text, files, busy) {
|
|
12
|
+
return !busy && (text.trim().length > 0 || files > 0);
|
|
13
|
+
}
|
|
14
|
+
var RtAiPromptInputComponent = class RtAiPromptInputComponent {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.#t_placeholder = rtKitLabel("chatPlaceholder");
|
|
17
|
+
this.#t_disclaimer = rtKitLabel("aiDisclaimer");
|
|
18
|
+
this.t = inject(RT_KIT_LABELS);
|
|
19
|
+
this.fileInput = viewChild("fileEl", ...ngDevMode ? [{ debugName: "fileInput" }] : /* istanbul ignore next */ []);
|
|
20
|
+
this.textInput = viewChild("textEl", ...ngDevMode ? [{ debugName: "textInput" }] : /* istanbul ignore next */ []);
|
|
21
|
+
this.files = signal([], ...ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []);
|
|
22
|
+
this.placeholderText = computed(() => this.placeholder() || this.#t_placeholder(), ...ngDevMode ? [{ debugName: "placeholderText" }] : /* istanbul ignore next */ []);
|
|
23
|
+
this.hintText = computed(() => this.hint() ?? this.#t_disclaimer(), ...ngDevMode ? [{ debugName: "hintText" }] : /* istanbul ignore next */ []);
|
|
24
|
+
this.hintAbove = computed(() => this.hintText() !== "" && this.hintPosition() === "above", ...ngDevMode ? [{ debugName: "hintAbove" }] : /* istanbul ignore next */ []);
|
|
25
|
+
this.hintBelow = computed(() => this.hintText() !== "" && this.hintPosition() === "below", ...ngDevMode ? [{ debugName: "hintBelow" }] : /* istanbul ignore next */ []);
|
|
26
|
+
this.locked = computed(() => this.disabled() || this.sending() && !this.stoppable(), ...ngDevMode ? [{ debugName: "locked" }] : /* istanbul ignore next */ []);
|
|
27
|
+
this.canSend = computed(() => rtPromptCanSend(this.text(), this.attachments() ? this.files().length : 0, this.sending() || this.disabled()), ...ngDevMode ? [{ debugName: "canSend" }] : /* istanbul ignore next */ []);
|
|
28
|
+
this.isStoppable = computed(() => this.stoppable() && this.sending() && !this.disabled(), ...ngDevMode ? [{ debugName: "isStoppable" }] : /* istanbul ignore next */ []);
|
|
29
|
+
this.hasUsage = computed(() => this.usage() !== null, ...ngDevMode ? [{ debugName: "hasUsage" }] : /* istanbul ignore next */ []);
|
|
30
|
+
this.boxMods = computed(() => ({ disabled: this.disabled() }), ...ngDevMode ? [{ debugName: "boxMods" }] : /* istanbul ignore next */ []);
|
|
31
|
+
this.placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
32
|
+
this.hint = input(null, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
33
|
+
this.hintPosition = input("below", ...ngDevMode ? [{ debugName: "hintPosition" }] : /* istanbul ignore next */ []);
|
|
34
|
+
this.attachments = input(false, {
|
|
35
|
+
...ngDevMode ? { debugName: "attachments" } : /* istanbul ignore next */ {},
|
|
36
|
+
transform: booleanAttribute
|
|
37
|
+
});
|
|
38
|
+
this.accept = input("", ...ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []);
|
|
39
|
+
this.model = input("", ...ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []);
|
|
40
|
+
this.effort = input("", ...ngDevMode ? [{ debugName: "effort" }] : /* istanbul ignore next */ []);
|
|
41
|
+
this.mode = input("", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
42
|
+
this.usage = input(null, ...ngDevMode ? [{ debugName: "usage" }] : /* istanbul ignore next */ []);
|
|
43
|
+
this.usageHint = input("", ...ngDevMode ? [{ debugName: "usageHint" }] : /* istanbul ignore next */ []);
|
|
44
|
+
this.usageWarnAt = input(80, {
|
|
45
|
+
...ngDevMode ? { debugName: "usageWarnAt" } : /* istanbul ignore next */ {},
|
|
46
|
+
transform: numberAttribute
|
|
47
|
+
});
|
|
48
|
+
this.sending = input(false, {
|
|
49
|
+
...ngDevMode ? { debugName: "sending" } : /* istanbul ignore next */ {},
|
|
50
|
+
transform: booleanAttribute
|
|
51
|
+
});
|
|
52
|
+
this.stoppable = input(false, {
|
|
53
|
+
...ngDevMode ? { debugName: "stoppable" } : /* istanbul ignore next */ {},
|
|
54
|
+
transform: booleanAttribute
|
|
55
|
+
});
|
|
56
|
+
this.disabled = input(false, {
|
|
57
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
58
|
+
transform: booleanAttribute
|
|
59
|
+
});
|
|
60
|
+
this.minRows = input(1, {
|
|
61
|
+
...ngDevMode ? { debugName: "minRows" } : /* istanbul ignore next */ {},
|
|
62
|
+
transform: numberAttribute
|
|
63
|
+
});
|
|
64
|
+
this.maxRows = input(8, {
|
|
65
|
+
...ngDevMode ? { debugName: "maxRows" } : /* istanbul ignore next */ {},
|
|
66
|
+
transform: numberAttribute
|
|
67
|
+
});
|
|
68
|
+
this.text = model("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
69
|
+
this.submitted = output();
|
|
70
|
+
this.stopped = output();
|
|
71
|
+
this.controlPicked = output();
|
|
72
|
+
}
|
|
73
|
+
#t_placeholder;
|
|
74
|
+
#t_disclaimer;
|
|
75
|
+
focus() {
|
|
76
|
+
this.textInput()?.nativeElement.focus();
|
|
77
|
+
}
|
|
78
|
+
onInput(event) {
|
|
79
|
+
this.text.set(event.target.value);
|
|
80
|
+
}
|
|
81
|
+
onKeydown(event) {
|
|
82
|
+
if (event.key === "Enter" && !event.shiftKey && !event.isComposing) {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
this.submit();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
pick(control) {
|
|
88
|
+
this.controlPicked.emit(control);
|
|
89
|
+
}
|
|
90
|
+
stop() {
|
|
91
|
+
if (this.isStoppable()) this.stopped.emit();
|
|
92
|
+
}
|
|
93
|
+
openPicker() {
|
|
94
|
+
if (!this.locked()) this.fileInput()?.nativeElement.click();
|
|
95
|
+
}
|
|
96
|
+
onFilesPicked(event) {
|
|
97
|
+
const el = event.target;
|
|
98
|
+
const picked = el.files ? Array.from(el.files) : [];
|
|
99
|
+
if (picked.length > 0) this.files.update((current) => [...current, ...picked]);
|
|
100
|
+
el.value = "";
|
|
101
|
+
}
|
|
102
|
+
removeFile(index) {
|
|
103
|
+
this.files.update((current) => current.filter((_, i) => i !== index));
|
|
104
|
+
}
|
|
105
|
+
submit() {
|
|
106
|
+
if (!this.canSend()) return;
|
|
107
|
+
this.submitted.emit({
|
|
108
|
+
text: this.text().trim(),
|
|
109
|
+
files: this.attachments() ? this.files() : []
|
|
110
|
+
});
|
|
111
|
+
this.text.set("");
|
|
112
|
+
this.files.set([]);
|
|
113
|
+
}
|
|
114
|
+
static {
|
|
115
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
116
|
+
minVersion: "12.0.0",
|
|
117
|
+
version: "22.2.2",
|
|
118
|
+
ngImport: i0,
|
|
119
|
+
type: RtAiPromptInputComponent,
|
|
120
|
+
deps: [],
|
|
121
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
static {
|
|
125
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
126
|
+
minVersion: "17.0.0",
|
|
127
|
+
version: "22.2.2",
|
|
128
|
+
type: RtAiPromptInputComponent,
|
|
129
|
+
isStandalone: true,
|
|
130
|
+
selector: "rt-ai-prompt-input",
|
|
131
|
+
inputs: {
|
|
132
|
+
placeholder: {
|
|
133
|
+
classPropertyName: "placeholder",
|
|
134
|
+
publicName: "placeholder",
|
|
135
|
+
isSignal: true,
|
|
136
|
+
isRequired: false,
|
|
137
|
+
transformFunction: null
|
|
138
|
+
},
|
|
139
|
+
hint: {
|
|
140
|
+
classPropertyName: "hint",
|
|
141
|
+
publicName: "hint",
|
|
142
|
+
isSignal: true,
|
|
143
|
+
isRequired: false,
|
|
144
|
+
transformFunction: null
|
|
145
|
+
},
|
|
146
|
+
hintPosition: {
|
|
147
|
+
classPropertyName: "hintPosition",
|
|
148
|
+
publicName: "hintPosition",
|
|
149
|
+
isSignal: true,
|
|
150
|
+
isRequired: false,
|
|
151
|
+
transformFunction: null
|
|
152
|
+
},
|
|
153
|
+
attachments: {
|
|
154
|
+
classPropertyName: "attachments",
|
|
155
|
+
publicName: "attachments",
|
|
156
|
+
isSignal: true,
|
|
157
|
+
isRequired: false,
|
|
158
|
+
transformFunction: null
|
|
159
|
+
},
|
|
160
|
+
accept: {
|
|
161
|
+
classPropertyName: "accept",
|
|
162
|
+
publicName: "accept",
|
|
163
|
+
isSignal: true,
|
|
164
|
+
isRequired: false,
|
|
165
|
+
transformFunction: null
|
|
166
|
+
},
|
|
167
|
+
model: {
|
|
168
|
+
classPropertyName: "model",
|
|
169
|
+
publicName: "model",
|
|
170
|
+
isSignal: true,
|
|
171
|
+
isRequired: false,
|
|
172
|
+
transformFunction: null
|
|
173
|
+
},
|
|
174
|
+
effort: {
|
|
175
|
+
classPropertyName: "effort",
|
|
176
|
+
publicName: "effort",
|
|
177
|
+
isSignal: true,
|
|
178
|
+
isRequired: false,
|
|
179
|
+
transformFunction: null
|
|
180
|
+
},
|
|
181
|
+
mode: {
|
|
182
|
+
classPropertyName: "mode",
|
|
183
|
+
publicName: "mode",
|
|
184
|
+
isSignal: true,
|
|
185
|
+
isRequired: false,
|
|
186
|
+
transformFunction: null
|
|
187
|
+
},
|
|
188
|
+
usage: {
|
|
189
|
+
classPropertyName: "usage",
|
|
190
|
+
publicName: "usage",
|
|
191
|
+
isSignal: true,
|
|
192
|
+
isRequired: false,
|
|
193
|
+
transformFunction: null
|
|
194
|
+
},
|
|
195
|
+
usageHint: {
|
|
196
|
+
classPropertyName: "usageHint",
|
|
197
|
+
publicName: "usageHint",
|
|
198
|
+
isSignal: true,
|
|
199
|
+
isRequired: false,
|
|
200
|
+
transformFunction: null
|
|
201
|
+
},
|
|
202
|
+
usageWarnAt: {
|
|
203
|
+
classPropertyName: "usageWarnAt",
|
|
204
|
+
publicName: "usageWarnAt",
|
|
205
|
+
isSignal: true,
|
|
206
|
+
isRequired: false,
|
|
207
|
+
transformFunction: null
|
|
208
|
+
},
|
|
209
|
+
sending: {
|
|
210
|
+
classPropertyName: "sending",
|
|
211
|
+
publicName: "sending",
|
|
212
|
+
isSignal: true,
|
|
213
|
+
isRequired: false,
|
|
214
|
+
transformFunction: null
|
|
215
|
+
},
|
|
216
|
+
stoppable: {
|
|
217
|
+
classPropertyName: "stoppable",
|
|
218
|
+
publicName: "stoppable",
|
|
219
|
+
isSignal: true,
|
|
220
|
+
isRequired: false,
|
|
221
|
+
transformFunction: null
|
|
222
|
+
},
|
|
223
|
+
disabled: {
|
|
224
|
+
classPropertyName: "disabled",
|
|
225
|
+
publicName: "disabled",
|
|
226
|
+
isSignal: true,
|
|
227
|
+
isRequired: false,
|
|
228
|
+
transformFunction: null
|
|
229
|
+
},
|
|
230
|
+
minRows: {
|
|
231
|
+
classPropertyName: "minRows",
|
|
232
|
+
publicName: "minRows",
|
|
233
|
+
isSignal: true,
|
|
234
|
+
isRequired: false,
|
|
235
|
+
transformFunction: null
|
|
236
|
+
},
|
|
237
|
+
maxRows: {
|
|
238
|
+
classPropertyName: "maxRows",
|
|
239
|
+
publicName: "maxRows",
|
|
240
|
+
isSignal: true,
|
|
241
|
+
isRequired: false,
|
|
242
|
+
transformFunction: null
|
|
243
|
+
},
|
|
244
|
+
text: {
|
|
245
|
+
classPropertyName: "text",
|
|
246
|
+
publicName: "text",
|
|
247
|
+
isSignal: true,
|
|
248
|
+
isRequired: false,
|
|
249
|
+
transformFunction: null
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
outputs: {
|
|
253
|
+
text: "textChange",
|
|
254
|
+
submitted: "submitted",
|
|
255
|
+
stopped: "stopped",
|
|
256
|
+
controlPicked: "controlPicked"
|
|
257
|
+
},
|
|
258
|
+
host: { classAttribute: "rt-ai-prompt-input" },
|
|
259
|
+
viewQueries: [{
|
|
260
|
+
propertyName: "fileInput",
|
|
261
|
+
first: true,
|
|
262
|
+
predicate: ["fileEl"],
|
|
263
|
+
descendants: true,
|
|
264
|
+
isSignal: true
|
|
265
|
+
}, {
|
|
266
|
+
propertyName: "textInput",
|
|
267
|
+
first: true,
|
|
268
|
+
predicate: ["textEl"],
|
|
269
|
+
descendants: true,
|
|
270
|
+
isSignal: true
|
|
271
|
+
}],
|
|
272
|
+
ngImport: i0,
|
|
273
|
+
template: "<ng-container rtBlock=\"rt-ai-prompt-input\">\n @if (hintAbove()) {\n <p rtElem=\"hint\" qa-dataid=\"ai-prompt-input-hint\" [rtMod]=\"{ above: true }\">{{ hintText() }}</p>\n }\n\n <div rtElem=\"box\" qa-dataid=\"ai-prompt-input-box\" [rtMod]=\"boxMods()\">\n @if (attachments() && files().length) {\n <div rtElem=\"files\" qa-dataid=\"ai-prompt-input-files\">\n @for (file of files(); track $index) {\n <rt-file-card\n showRemove\n qa-dataid=\"ai-prompt-input-file\"\n size=\"sm\"\n [name]=\"file.name\"\n [sizeBytes]=\"file.size\"\n [disabled]=\"locked()\"\n (removed)=\"removeFile($index)\" />\n }\n </div>\n }\n\n <textarea\n #textEl\n rtElem=\"input\"\n qa-dataid=\"ai-prompt-input-field\"\n cdkTextareaAutosize\n [attr.aria-label]=\"t().chatComposerAria\"\n [placeholder]=\"placeholderText()\"\n [value]=\"text()\"\n [disabled]=\"locked()\"\n [cdkAutosizeMinRows]=\"minRows()\"\n [cdkAutosizeMaxRows]=\"maxRows()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"></textarea>\n\n <div rtElem=\"actions\">\n @if (attachments()) {\n <input\n #fileEl\n qa-dataid=\"ai-prompt-input-file-input\"\n type=\"file\"\n hidden\n multiple\n [attr.accept]=\"accept() || null\"\n (change)=\"onFilesPicked($event)\" />\n <rt-icon-button\n qa-dataid=\"ai-prompt-input-attach\"\n icon=\"ico-plus\"\n iconColor=\"muted\"\n size=\"sm\"\n variant=\"ghost\"\n [ariaLabel]=\"t().chatAttachAria\"\n [tooltip]=\"t().chatAttachTooltip\"\n [disabled]=\"locked()\"\n (clicked)=\"openPicker()\" />\n }\n\n <div rtElem=\"controls\">\n @if (model()) {\n <button\n rtButton\n rtElem=\"control\"\n qa-dataid=\"ai-prompt-input-model\"\n type=\"button\"\n theme=\"secondary\"\n appearance=\"text\"\n size=\"sm\"\n [label]=\"model()\"\n [attr.aria-label]=\"t().aiPromptModelAria + ': ' + model()\"\n [disabled]=\"disabled()\"\n (click)=\"pick('model')\"></button>\n }\n\n @if (effort()) {\n <button\n rtButton\n rtElem=\"control\"\n qa-dataid=\"ai-prompt-input-effort\"\n type=\"button\"\n theme=\"secondary\"\n appearance=\"text\"\n size=\"sm\"\n [rtMod]=\"{ muted: true }\"\n [label]=\"effort()\"\n [attr.aria-label]=\"t().aiPromptEffortAria + ': ' + effort()\"\n [disabled]=\"disabled()\"\n (click)=\"pick('effort')\"></button>\n }\n\n @if (mode()) {\n <button\n rtButton\n rtElem=\"control\"\n qa-dataid=\"ai-prompt-input-mode\"\n type=\"button\"\n theme=\"secondary\"\n appearance=\"text\"\n size=\"sm\"\n [rtMod]=\"{ muted: true }\"\n [label]=\"mode()\"\n [attr.aria-label]=\"t().aiPromptModeAria + ': ' + mode()\"\n [disabled]=\"disabled()\"\n (click)=\"pick('mode')\"></button>\n }\n\n @if (hasUsage()) {\n <rt-usage-ring qa-dataid=\"ai-prompt-input-usage\" [value]=\"usage() ?? 0\" [warnAt]=\"usageWarnAt()\" [hint]=\"usageHint()\" />\n }\n\n @if (isStoppable()) {\n <rt-icon-button\n qa-dataid=\"ai-prompt-input-stop\"\n icon=\"stop\"\n size=\"sm\"\n variant=\"primary\"\n [ariaLabel]=\"t().chatStopAria\"\n [tooltip]=\"t().chatStopLabel\"\n (clicked)=\"stop()\" />\n } @else {\n <rt-icon-button\n qa-dataid=\"ai-prompt-input-send\"\n icon=\"arrow-up\"\n size=\"sm\"\n variant=\"primary\"\n [ariaLabel]=\"t().chatSendAria\"\n [tooltip]=\"t().chatSendLabel\"\n [loading]=\"sending()\"\n [disabled]=\"!canSend()\"\n (clicked)=\"submit()\" />\n }\n </div>\n </div>\n </div>\n\n @if (hintBelow()) {\n <p rtElem=\"hint\" qa-dataid=\"ai-prompt-input-hint\">{{ hintText() }}</p>\n }\n</ng-container>\n",
|
|
274
|
+
styles: ["@charset \"UTF-8\";@layer rt-kit.components{.rt-ai-prompt-input{--rt-ai-prompt-input-radius: var(--rt-radius-xl);--rt-ai-prompt-input-border-width: var(--rt-border-width-thin);--rt-ai-prompt-input-shadow: var(--rt-shadow-sm);display:flex;flex-direction:column;gap:calc(var(--rt-space-1) * 1.5);inline-size:100%}.rt-ai-prompt-input__box{display:flex;flex-direction:column;border:var(--rt-ai-prompt-input-border-width) solid var(--rt-input-color-border);border-radius:var(--rt-ai-prompt-input-radius);background:var(--rt-color-bg-surface);box-shadow:var(--rt-ai-prompt-input-shadow);padding-block-start:var(--rt-space-1)}.rt-ai-prompt-input__box:focus-within{border-color:var(--rt-input-color-border-focus);box-shadow:var(--rt-input-focus-shadow)}.rt-ai-prompt-input__box--disabled{background:var(--rt-input-color-bg-disabled)}.rt-ai-prompt-input__files{display:flex;flex-direction:column;padding:var(--rt-space-2) var(--rt-space-2) 0;gap:var(--rt-space-1)}.rt-ai-prompt-input__input{box-sizing:content-box;padding:calc(var(--rt-space-1) * 3) calc(var(--rt-space-1) * 3) var(--rt-space-2) var(--rt-space-4);border:0;margin:0;background:transparent;color:var(--rt-input-color-text);font:inherit;font-size:var(--rt-text-base);inline-size:auto;line-height:var(--rt-leading-normal);min-inline-size:0;outline:0;resize:none;scrollbar-color:var(--rt-color-border-default) transparent;scrollbar-gutter:stable;scrollbar-width:thin}.rt-ai-prompt-input__input::placeholder{color:var(--rt-input-color-text-placeholder)}.rt-ai-prompt-input__input:disabled{cursor:not-allowed}.rt-ai-prompt-input__input:disabled::placeholder{color:var(--rt-color-text-disabled)}.rt-ai-prompt-input__actions{display:flex;align-items:center;padding:0 var(--rt-space-2) var(--rt-space-2);gap:var(--rt-space-1)}.rt-ai-prompt-input__controls{display:flex;align-items:center;gap:var(--rt-space-1);margin-inline-start:auto;min-inline-size:0}.rt-ai-prompt-input__control{padding-inline:calc(var(--rt-space-1) * 1.5)}.rt-ai-prompt-input__control.rt-button{--rt-btn-color: var(--rt-color-text-primary)}.rt-ai-prompt-input__control--muted.rt-button{--rt-btn-color: var(--rt-color-text-muted)}.rt-ai-prompt-input__hint{margin:0;color:var(--rt-color-text-muted);font-size:var(--rt-text-xs);line-height:var(--rt-leading-snug);text-align:center}}\n"],
|
|
275
|
+
dependencies: [
|
|
276
|
+
{
|
|
277
|
+
kind: "directive",
|
|
278
|
+
type: CdkTextareaAutosize,
|
|
279
|
+
selector: "textarea[cdkTextareaAutosize]",
|
|
280
|
+
inputs: [
|
|
281
|
+
"cdkAutosizeMinRows",
|
|
282
|
+
"cdkAutosizeMaxRows",
|
|
283
|
+
"cdkTextareaAutosize",
|
|
284
|
+
"placeholder"
|
|
285
|
+
],
|
|
286
|
+
exportAs: ["cdkTextareaAutosize"]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
kind: "directive",
|
|
290
|
+
type: BlockDirective,
|
|
291
|
+
selector: "[rtBlock]",
|
|
292
|
+
inputs: ["rtMod"]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
kind: "directive",
|
|
296
|
+
type: ElemDirective,
|
|
297
|
+
selector: "[rtElem]",
|
|
298
|
+
inputs: ["rtMod"]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
kind: "directive",
|
|
302
|
+
type: ModDirective,
|
|
303
|
+
selector: "[rtMod]"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
kind: "directive",
|
|
307
|
+
type: RtButtonDirective,
|
|
308
|
+
selector: "button[rtButton], a[rtButton]",
|
|
309
|
+
inputs: [
|
|
310
|
+
"label",
|
|
311
|
+
"icon",
|
|
312
|
+
"iconPos",
|
|
313
|
+
"theme",
|
|
314
|
+
"appearance",
|
|
315
|
+
"size",
|
|
316
|
+
"loading",
|
|
317
|
+
"loadingIcon",
|
|
318
|
+
"loadingLabel",
|
|
319
|
+
"pressed"
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
kind: "component",
|
|
324
|
+
type: RtFileCardComponent,
|
|
325
|
+
selector: "rt-file-card",
|
|
326
|
+
inputs: [
|
|
327
|
+
"name",
|
|
328
|
+
"sizeBytes",
|
|
329
|
+
"size",
|
|
330
|
+
"showDownload",
|
|
331
|
+
"showRemove",
|
|
332
|
+
"showRename",
|
|
333
|
+
"disabled"
|
|
334
|
+
],
|
|
335
|
+
outputs: [
|
|
336
|
+
"download",
|
|
337
|
+
"removed",
|
|
338
|
+
"rename"
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
kind: "component",
|
|
343
|
+
type: RtIconButtonComponent,
|
|
344
|
+
selector: "rt-icon-button",
|
|
345
|
+
inputs: [
|
|
346
|
+
"icon",
|
|
347
|
+
"glyph",
|
|
348
|
+
"ariaLabel",
|
|
349
|
+
"variant",
|
|
350
|
+
"iconColor",
|
|
351
|
+
"iconFill",
|
|
352
|
+
"size",
|
|
353
|
+
"iconSize",
|
|
354
|
+
"type",
|
|
355
|
+
"tooltip",
|
|
356
|
+
"tooltipHideOnClick",
|
|
357
|
+
"tabIndex",
|
|
358
|
+
"loading",
|
|
359
|
+
"disabled",
|
|
360
|
+
"active",
|
|
361
|
+
"expanded",
|
|
362
|
+
"ariaHaspopup",
|
|
363
|
+
"link",
|
|
364
|
+
"indicator"
|
|
365
|
+
],
|
|
366
|
+
outputs: ["clicked"]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
kind: "component",
|
|
370
|
+
type: RtUsageRingComponent,
|
|
371
|
+
selector: "rt-usage-ring",
|
|
372
|
+
inputs: [
|
|
373
|
+
"value",
|
|
374
|
+
"warnAt",
|
|
375
|
+
"hint"
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
380
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
385
|
+
minVersion: "12.0.0",
|
|
386
|
+
version: "22.2.2",
|
|
387
|
+
ngImport: i0,
|
|
388
|
+
type: RtAiPromptInputComponent,
|
|
389
|
+
decorators: [{
|
|
390
|
+
type: Component,
|
|
391
|
+
args: [{
|
|
392
|
+
selector: "rt-ai-prompt-input",
|
|
393
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
394
|
+
encapsulation: ViewEncapsulation.None,
|
|
395
|
+
imports: [
|
|
396
|
+
CdkTextareaAutosize,
|
|
397
|
+
BlockDirective,
|
|
398
|
+
ElemDirective,
|
|
399
|
+
ModDirective,
|
|
400
|
+
RtButtonDirective,
|
|
401
|
+
RtFileCardComponent,
|
|
402
|
+
RtIconButtonComponent,
|
|
403
|
+
RtUsageRingComponent
|
|
404
|
+
],
|
|
405
|
+
host: { class: BEM_BLOCK },
|
|
406
|
+
template: "<ng-container rtBlock=\"rt-ai-prompt-input\">\n @if (hintAbove()) {\n <p rtElem=\"hint\" qa-dataid=\"ai-prompt-input-hint\" [rtMod]=\"{ above: true }\">{{ hintText() }}</p>\n }\n\n <div rtElem=\"box\" qa-dataid=\"ai-prompt-input-box\" [rtMod]=\"boxMods()\">\n @if (attachments() && files().length) {\n <div rtElem=\"files\" qa-dataid=\"ai-prompt-input-files\">\n @for (file of files(); track $index) {\n <rt-file-card\n showRemove\n qa-dataid=\"ai-prompt-input-file\"\n size=\"sm\"\n [name]=\"file.name\"\n [sizeBytes]=\"file.size\"\n [disabled]=\"locked()\"\n (removed)=\"removeFile($index)\" />\n }\n </div>\n }\n\n <textarea\n #textEl\n rtElem=\"input\"\n qa-dataid=\"ai-prompt-input-field\"\n cdkTextareaAutosize\n [attr.aria-label]=\"t().chatComposerAria\"\n [placeholder]=\"placeholderText()\"\n [value]=\"text()\"\n [disabled]=\"locked()\"\n [cdkAutosizeMinRows]=\"minRows()\"\n [cdkAutosizeMaxRows]=\"maxRows()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"></textarea>\n\n <div rtElem=\"actions\">\n @if (attachments()) {\n <input\n #fileEl\n qa-dataid=\"ai-prompt-input-file-input\"\n type=\"file\"\n hidden\n multiple\n [attr.accept]=\"accept() || null\"\n (change)=\"onFilesPicked($event)\" />\n <rt-icon-button\n qa-dataid=\"ai-prompt-input-attach\"\n icon=\"ico-plus\"\n iconColor=\"muted\"\n size=\"sm\"\n variant=\"ghost\"\n [ariaLabel]=\"t().chatAttachAria\"\n [tooltip]=\"t().chatAttachTooltip\"\n [disabled]=\"locked()\"\n (clicked)=\"openPicker()\" />\n }\n\n <div rtElem=\"controls\">\n @if (model()) {\n <button\n rtButton\n rtElem=\"control\"\n qa-dataid=\"ai-prompt-input-model\"\n type=\"button\"\n theme=\"secondary\"\n appearance=\"text\"\n size=\"sm\"\n [label]=\"model()\"\n [attr.aria-label]=\"t().aiPromptModelAria + ': ' + model()\"\n [disabled]=\"disabled()\"\n (click)=\"pick('model')\"></button>\n }\n\n @if (effort()) {\n <button\n rtButton\n rtElem=\"control\"\n qa-dataid=\"ai-prompt-input-effort\"\n type=\"button\"\n theme=\"secondary\"\n appearance=\"text\"\n size=\"sm\"\n [rtMod]=\"{ muted: true }\"\n [label]=\"effort()\"\n [attr.aria-label]=\"t().aiPromptEffortAria + ': ' + effort()\"\n [disabled]=\"disabled()\"\n (click)=\"pick('effort')\"></button>\n }\n\n @if (mode()) {\n <button\n rtButton\n rtElem=\"control\"\n qa-dataid=\"ai-prompt-input-mode\"\n type=\"button\"\n theme=\"secondary\"\n appearance=\"text\"\n size=\"sm\"\n [rtMod]=\"{ muted: true }\"\n [label]=\"mode()\"\n [attr.aria-label]=\"t().aiPromptModeAria + ': ' + mode()\"\n [disabled]=\"disabled()\"\n (click)=\"pick('mode')\"></button>\n }\n\n @if (hasUsage()) {\n <rt-usage-ring qa-dataid=\"ai-prompt-input-usage\" [value]=\"usage() ?? 0\" [warnAt]=\"usageWarnAt()\" [hint]=\"usageHint()\" />\n }\n\n @if (isStoppable()) {\n <rt-icon-button\n qa-dataid=\"ai-prompt-input-stop\"\n icon=\"stop\"\n size=\"sm\"\n variant=\"primary\"\n [ariaLabel]=\"t().chatStopAria\"\n [tooltip]=\"t().chatStopLabel\"\n (clicked)=\"stop()\" />\n } @else {\n <rt-icon-button\n qa-dataid=\"ai-prompt-input-send\"\n icon=\"arrow-up\"\n size=\"sm\"\n variant=\"primary\"\n [ariaLabel]=\"t().chatSendAria\"\n [tooltip]=\"t().chatSendLabel\"\n [loading]=\"sending()\"\n [disabled]=\"!canSend()\"\n (clicked)=\"submit()\" />\n }\n </div>\n </div>\n </div>\n\n @if (hintBelow()) {\n <p rtElem=\"hint\" qa-dataid=\"ai-prompt-input-hint\">{{ hintText() }}</p>\n }\n</ng-container>\n",
|
|
407
|
+
styles: ["@charset \"UTF-8\";@layer rt-kit.components{.rt-ai-prompt-input{--rt-ai-prompt-input-radius: var(--rt-radius-xl);--rt-ai-prompt-input-border-width: var(--rt-border-width-thin);--rt-ai-prompt-input-shadow: var(--rt-shadow-sm);display:flex;flex-direction:column;gap:calc(var(--rt-space-1) * 1.5);inline-size:100%}.rt-ai-prompt-input__box{display:flex;flex-direction:column;border:var(--rt-ai-prompt-input-border-width) solid var(--rt-input-color-border);border-radius:var(--rt-ai-prompt-input-radius);background:var(--rt-color-bg-surface);box-shadow:var(--rt-ai-prompt-input-shadow);padding-block-start:var(--rt-space-1)}.rt-ai-prompt-input__box:focus-within{border-color:var(--rt-input-color-border-focus);box-shadow:var(--rt-input-focus-shadow)}.rt-ai-prompt-input__box--disabled{background:var(--rt-input-color-bg-disabled)}.rt-ai-prompt-input__files{display:flex;flex-direction:column;padding:var(--rt-space-2) var(--rt-space-2) 0;gap:var(--rt-space-1)}.rt-ai-prompt-input__input{box-sizing:content-box;padding:calc(var(--rt-space-1) * 3) calc(var(--rt-space-1) * 3) var(--rt-space-2) var(--rt-space-4);border:0;margin:0;background:transparent;color:var(--rt-input-color-text);font:inherit;font-size:var(--rt-text-base);inline-size:auto;line-height:var(--rt-leading-normal);min-inline-size:0;outline:0;resize:none;scrollbar-color:var(--rt-color-border-default) transparent;scrollbar-gutter:stable;scrollbar-width:thin}.rt-ai-prompt-input__input::placeholder{color:var(--rt-input-color-text-placeholder)}.rt-ai-prompt-input__input:disabled{cursor:not-allowed}.rt-ai-prompt-input__input:disabled::placeholder{color:var(--rt-color-text-disabled)}.rt-ai-prompt-input__actions{display:flex;align-items:center;padding:0 var(--rt-space-2) var(--rt-space-2);gap:var(--rt-space-1)}.rt-ai-prompt-input__controls{display:flex;align-items:center;gap:var(--rt-space-1);margin-inline-start:auto;min-inline-size:0}.rt-ai-prompt-input__control{padding-inline:calc(var(--rt-space-1) * 1.5)}.rt-ai-prompt-input__control.rt-button{--rt-btn-color: var(--rt-color-text-primary)}.rt-ai-prompt-input__control--muted.rt-button{--rt-btn-color: var(--rt-color-text-muted)}.rt-ai-prompt-input__hint{margin:0;color:var(--rt-color-text-muted);font-size:var(--rt-text-xs);line-height:var(--rt-leading-snug);text-align:center}}\n"]
|
|
408
|
+
}]
|
|
409
|
+
}],
|
|
410
|
+
propDecorators: {
|
|
411
|
+
fileInput: [{
|
|
412
|
+
type: i0.ViewChild,
|
|
413
|
+
args: ["fileEl", { isSignal: true }]
|
|
414
|
+
}],
|
|
415
|
+
textInput: [{
|
|
416
|
+
type: i0.ViewChild,
|
|
417
|
+
args: ["textEl", { isSignal: true }]
|
|
418
|
+
}],
|
|
419
|
+
placeholder: [{
|
|
420
|
+
type: i0.Input,
|
|
421
|
+
args: [{
|
|
422
|
+
isSignal: true,
|
|
423
|
+
alias: "placeholder",
|
|
424
|
+
required: false
|
|
425
|
+
}]
|
|
426
|
+
}],
|
|
427
|
+
hint: [{
|
|
428
|
+
type: i0.Input,
|
|
429
|
+
args: [{
|
|
430
|
+
isSignal: true,
|
|
431
|
+
alias: "hint",
|
|
432
|
+
required: false
|
|
433
|
+
}]
|
|
434
|
+
}],
|
|
435
|
+
hintPosition: [{
|
|
436
|
+
type: i0.Input,
|
|
437
|
+
args: [{
|
|
438
|
+
isSignal: true,
|
|
439
|
+
alias: "hintPosition",
|
|
440
|
+
required: false
|
|
441
|
+
}]
|
|
442
|
+
}],
|
|
443
|
+
attachments: [{
|
|
444
|
+
type: i0.Input,
|
|
445
|
+
args: [{
|
|
446
|
+
isSignal: true,
|
|
447
|
+
alias: "attachments",
|
|
448
|
+
required: false
|
|
449
|
+
}]
|
|
450
|
+
}],
|
|
451
|
+
accept: [{
|
|
452
|
+
type: i0.Input,
|
|
453
|
+
args: [{
|
|
454
|
+
isSignal: true,
|
|
455
|
+
alias: "accept",
|
|
456
|
+
required: false
|
|
457
|
+
}]
|
|
458
|
+
}],
|
|
459
|
+
model: [{
|
|
460
|
+
type: i0.Input,
|
|
461
|
+
args: [{
|
|
462
|
+
isSignal: true,
|
|
463
|
+
alias: "model",
|
|
464
|
+
required: false
|
|
465
|
+
}]
|
|
466
|
+
}],
|
|
467
|
+
effort: [{
|
|
468
|
+
type: i0.Input,
|
|
469
|
+
args: [{
|
|
470
|
+
isSignal: true,
|
|
471
|
+
alias: "effort",
|
|
472
|
+
required: false
|
|
473
|
+
}]
|
|
474
|
+
}],
|
|
475
|
+
mode: [{
|
|
476
|
+
type: i0.Input,
|
|
477
|
+
args: [{
|
|
478
|
+
isSignal: true,
|
|
479
|
+
alias: "mode",
|
|
480
|
+
required: false
|
|
481
|
+
}]
|
|
482
|
+
}],
|
|
483
|
+
usage: [{
|
|
484
|
+
type: i0.Input,
|
|
485
|
+
args: [{
|
|
486
|
+
isSignal: true,
|
|
487
|
+
alias: "usage",
|
|
488
|
+
required: false
|
|
489
|
+
}]
|
|
490
|
+
}],
|
|
491
|
+
usageHint: [{
|
|
492
|
+
type: i0.Input,
|
|
493
|
+
args: [{
|
|
494
|
+
isSignal: true,
|
|
495
|
+
alias: "usageHint",
|
|
496
|
+
required: false
|
|
497
|
+
}]
|
|
498
|
+
}],
|
|
499
|
+
usageWarnAt: [{
|
|
500
|
+
type: i0.Input,
|
|
501
|
+
args: [{
|
|
502
|
+
isSignal: true,
|
|
503
|
+
alias: "usageWarnAt",
|
|
504
|
+
required: false
|
|
505
|
+
}]
|
|
506
|
+
}],
|
|
507
|
+
sending: [{
|
|
508
|
+
type: i0.Input,
|
|
509
|
+
args: [{
|
|
510
|
+
isSignal: true,
|
|
511
|
+
alias: "sending",
|
|
512
|
+
required: false
|
|
513
|
+
}]
|
|
514
|
+
}],
|
|
515
|
+
stoppable: [{
|
|
516
|
+
type: i0.Input,
|
|
517
|
+
args: [{
|
|
518
|
+
isSignal: true,
|
|
519
|
+
alias: "stoppable",
|
|
520
|
+
required: false
|
|
521
|
+
}]
|
|
522
|
+
}],
|
|
523
|
+
disabled: [{
|
|
524
|
+
type: i0.Input,
|
|
525
|
+
args: [{
|
|
526
|
+
isSignal: true,
|
|
527
|
+
alias: "disabled",
|
|
528
|
+
required: false
|
|
529
|
+
}]
|
|
530
|
+
}],
|
|
531
|
+
minRows: [{
|
|
532
|
+
type: i0.Input,
|
|
533
|
+
args: [{
|
|
534
|
+
isSignal: true,
|
|
535
|
+
alias: "minRows",
|
|
536
|
+
required: false
|
|
537
|
+
}]
|
|
538
|
+
}],
|
|
539
|
+
maxRows: [{
|
|
540
|
+
type: i0.Input,
|
|
541
|
+
args: [{
|
|
542
|
+
isSignal: true,
|
|
543
|
+
alias: "maxRows",
|
|
544
|
+
required: false
|
|
545
|
+
}]
|
|
546
|
+
}],
|
|
547
|
+
text: [{
|
|
548
|
+
type: i0.Input,
|
|
549
|
+
args: [{
|
|
550
|
+
isSignal: true,
|
|
551
|
+
alias: "text",
|
|
552
|
+
required: false
|
|
553
|
+
}]
|
|
554
|
+
}, {
|
|
555
|
+
type: i0.Output,
|
|
556
|
+
args: ["textChange"]
|
|
557
|
+
}],
|
|
558
|
+
submitted: [{
|
|
559
|
+
type: i0.Output,
|
|
560
|
+
args: ["submitted"]
|
|
561
|
+
}],
|
|
562
|
+
stopped: [{
|
|
563
|
+
type: i0.Output,
|
|
564
|
+
args: ["stopped"]
|
|
565
|
+
}],
|
|
566
|
+
controlPicked: [{
|
|
567
|
+
type: i0.Output,
|
|
568
|
+
args: ["controlPicked"]
|
|
569
|
+
}]
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
export { RtAiPromptInputComponent, rtPromptCanSend };
|
|
573
|
+
|
|
574
|
+
//# sourceMappingURL=rt-tools-ui-kit-v2-ai-prompt-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rt-tools-ui-kit-v2-ai-prompt-input.mjs","names":[],"sources":["../../../projects/ui-kit-v2/src/lib/components/ai-prompt-input/rt-ai-prompt-input.component.ts","../../../projects/ui-kit-v2/src/lib/components/ai-prompt-input/rt-ai-prompt-input.component.html"],"sourcesContent":["import { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { CdkTextareaAutosize } from '@angular/cdk/text-field';\nimport {\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n InputSignal,\n InputSignalWithTransform,\n ModelSignal,\n OutputEmitterRef,\n Signal,\n ViewEncapsulation,\n WritableSignal,\n} from '@angular/core';\n\nimport { BlockDirective, ElemDirective, ModDirective } from '@rt-tools/core';\n\nimport { RtButtonDirective } from '@rt-tools/ui-kit-v2/button';\nimport { RT_KIT_LABELS, TRtKitLabelMap, rtKitLabel } from '@rt-tools/ui-kit-v2/core';\nimport { RtFileCardComponent } from '@rt-tools/ui-kit-v2/file-card';\nimport { RtIconButtonComponent } from '@rt-tools/ui-kit-v2/icon-button';\nimport { RtUsageRingComponent } from '@rt-tools/ui-kit-v2/usage-ring';\n\nimport { IRtAiPromptInput } from './rt-ai-prompt-input.model';\n\nconst BEM_BLOCK: string = 'rt-ai-prompt-input';\n\n/** Можно ли отправить: есть непустой текст или файл, поле свободно. */\nexport function rtPromptCanSend(text: string, files: number, busy: boolean): boolean {\n return !busy && (text.trim().length > 0 || files > 0);\n}\n\n/**\n * Поле ввода ИИ-чата: одна рамка, текст сверху, ряд действий внутри рамки снизу.\n *\n * Слева в ряду «+» для файлов, справа модель, усилие, режим, кольцо расхода и отправка. Каждый\n * элемент ряда включается своим входом: без значения его нет. Что открывает нажатие на модель,\n * усилие и режим, решает приложение: поле сообщает, какую кнопку нажали.\n *\n * Подсказка стоит отдельной строкой под полем или над ним, в ряд действий она не входит.\n *\n * Отправка — `Enter` без Shift или кнопка со стрелкой; `Shift+Enter` переносит строку. Со\n * `stoppable` во время `sending` стрелку сменяет «Стоп», а поле остаётся открытым.\n */\n@Component({\n selector: 'rt-ai-prompt-input',\n templateUrl: './rt-ai-prompt-input.component.html',\n styleUrl: './rt-ai-prompt-input.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [\n // cdk\n CdkTextareaAutosize,\n\n // standalone components / directives\n BlockDirective,\n ElemDirective,\n ModDirective,\n RtButtonDirective,\n RtFileCardComponent,\n RtIconButtonComponent,\n RtUsageRingComponent,\n ],\n host: {\n class: BEM_BLOCK,\n },\n})\nexport class RtAiPromptInputComponent {\n readonly #t_placeholder: Signal<string> = rtKitLabel('chatPlaceholder');\n\n readonly #t_disclaimer: Signal<string> = rtKitLabel('aiDisclaimer');\n\n protected readonly t: Signal<TRtKitLabelMap> = inject(RT_KIT_LABELS);\n\n protected readonly fileInput: Signal<ElementRef<HTMLInputElement> | undefined> = viewChild<ElementRef<HTMLInputElement>>('fileEl');\n\n protected readonly textInput: Signal<ElementRef<HTMLTextAreaElement> | undefined> =\n viewChild<ElementRef<HTMLTextAreaElement>>('textEl');\n\n protected readonly files: WritableSignal<File[]> = signal<File[]>([]);\n\n protected readonly placeholderText: Signal<string> = computed((): string => this.placeholder() || this.#t_placeholder());\n\n /** Текст подсказки: `null` — английское умолчание кита, пустая строка — подсказки нет. */\n protected readonly hintText: Signal<string> = computed((): string => this.hint() ?? this.#t_disclaimer());\n\n protected readonly hintAbove: Signal<boolean> = computed((): boolean => this.hintText() !== '' && this.hintPosition() === 'above');\n\n protected readonly hintBelow: Signal<boolean> = computed((): boolean => this.hintText() !== '' && this.hintPosition() === 'below');\n\n /** Поле закрыто для набора: выключено или идёт ответ, который нельзя остановить. */\n protected readonly locked: Signal<boolean> = computed((): boolean => this.disabled() || (this.sending() && !this.stoppable()));\n\n protected readonly canSend: Signal<boolean> = computed((): boolean =>\n rtPromptCanSend(this.text(), this.attachments() ? this.files().length : 0, this.sending() || this.disabled())\n );\n\n /** Идёт ответ, который можно остановить: вместо стрелки стоит «Стоп». */\n protected readonly isStoppable: Signal<boolean> = computed((): boolean => this.stoppable() && this.sending() && !this.disabled());\n\n protected readonly hasUsage: Signal<boolean> = computed((): boolean => this.usage() !== null);\n\n protected readonly boxMods: Signal<Record<string, boolean>> = computed((): Record<string, boolean> => ({\n disabled: this.disabled(),\n }));\n\n /** Текст-подсказка поля. Пусто — переведённое умолчание кита. */\n public readonly placeholder: InputSignal<string> = input<string>('');\n\n /** Подсказка отдельной строкой. `null` — английское умолчание кита, пустая строка убирает её. */\n public readonly hint: InputSignal<string | null> = input<string | null>(null);\n\n /** Где стоит подсказка: под полем, а где места под ним нет — над полем. */\n public readonly hintPosition: InputSignal<IRtAiPromptInput.HintPosition> = input<IRtAiPromptInput.HintPosition>('below');\n\n /** Кнопка «+» и карточки приложенных файлов. */\n public readonly attachments: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n\n /** Фильтр типов файлов (`.pdf,.png`). */\n public readonly accept: InputSignal<string> = input<string>('');\n\n /** Подпись модели. Пусто — кнопки модели нет. */\n public readonly model: InputSignal<string> = input<string>('');\n\n /** Подпись усилия. Пусто — кнопки усилия нет. */\n public readonly effort: InputSignal<string> = input<string>('');\n\n /** Подпись режима. Пусто — кнопки режима нет. */\n public readonly mode: InputSignal<string> = input<string>('');\n\n /** Потраченная доля лимита в процентах. `null` — кольца нет. */\n public readonly usage: InputSignal<number | null> = input<number | null>(null);\n\n /** Подсказка кольца по наведению: доля и дата сброса словами приложения. */\n public readonly usageHint: InputSignal<string> = input<string>('');\n\n /** С этой доли кольцо оранжевое. */\n public readonly usageWarnAt: InputSignalWithTransform<number, NumberInput> = input<number, NumberInput>(80, {\n transform: numberAttribute,\n });\n\n /** Отправка идёт: кнопка крутит индикатор, без `stoppable` поле закрыто. */\n public readonly sending: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n\n /** Ответ можно остановить: во время `sending` стрелку сменяет «Стоп», поле открыто. */\n public readonly stoppable: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n\n public readonly disabled: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n\n /** Наименьшая высота поля в строках. */\n public readonly minRows: InputSignalWithTransform<number, NumberInput> = input<number, NumberInput>(1, { transform: numberAttribute });\n\n /** Наибольшая высота поля в строках, дальше текст прокручивается. */\n public readonly maxRows: InputSignalWithTransform<number, NumberInput> = input<number, NumberInput>(8, { transform: numberAttribute });\n\n /** Черновик: задаётся снаружи, правки уходят наружу, после отправки пуст. */\n public readonly text: ModelSignal<string> = model<string>('');\n\n /** Отправка вопроса. */\n public readonly submitted: OutputEmitterRef<IRtAiPromptInput.SubmitPayload> = output<IRtAiPromptInput.SubmitPayload>();\n\n /** Нажата «Стоп» во время ответа. */\n public readonly stopped: OutputEmitterRef<void> = output<void>();\n\n /** Нажата кнопка модели, усилия или режима. */\n public readonly controlPicked: OutputEmitterRef<IRtAiPromptInput.Control> = output<IRtAiPromptInput.Control>();\n\n /** Ставит фокус в поле. */\n public focus(): void {\n this.textInput()?.nativeElement.focus();\n }\n\n protected onInput(event: Event): void {\n this.text.set((event.target as HTMLTextAreaElement).value);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n // Enter без Shift отправляет; подтверждение набора IME не перехватывается.\n if (event.key === 'Enter' && !event.shiftKey && !event.isComposing) {\n event.preventDefault();\n this.submit();\n }\n }\n\n protected pick(control: IRtAiPromptInput.Control): void {\n this.controlPicked.emit(control);\n }\n\n protected stop(): void {\n if (this.isStoppable()) {\n this.stopped.emit();\n }\n }\n\n protected openPicker(): void {\n if (!this.locked()) {\n this.fileInput()?.nativeElement.click();\n }\n }\n\n protected onFilesPicked(event: Event): void {\n const el: HTMLInputElement = event.target as HTMLInputElement;\n const picked: File[] = el.files ? Array.from(el.files) : [];\n if (picked.length > 0) {\n this.files.update((current: File[]): File[] => [...current, ...picked]);\n }\n // Сброс значения: повторный выбор того же файла снова даёт событие.\n el.value = '';\n }\n\n protected removeFile(index: number): void {\n this.files.update((current: File[]): File[] => current.filter((_: File, i: number): boolean => i !== index));\n }\n\n protected submit(): void {\n if (!this.canSend()) {\n return;\n }\n this.submitted.emit({ text: this.text().trim(), files: this.attachments() ? this.files() : [] });\n this.text.set('');\n this.files.set([]);\n }\n}\n","<ng-container rtBlock=\"rt-ai-prompt-input\">\n @if (hintAbove()) {\n <p rtElem=\"hint\" qa-dataid=\"ai-prompt-input-hint\" [rtMod]=\"{ above: true }\">{{ hintText() }}</p>\n }\n\n <div rtElem=\"box\" qa-dataid=\"ai-prompt-input-box\" [rtMod]=\"boxMods()\">\n @if (attachments() && files().length) {\n <div rtElem=\"files\" qa-dataid=\"ai-prompt-input-files\">\n @for (file of files(); track $index) {\n <rt-file-card\n showRemove\n qa-dataid=\"ai-prompt-input-file\"\n size=\"sm\"\n [name]=\"file.name\"\n [sizeBytes]=\"file.size\"\n [disabled]=\"locked()\"\n (removed)=\"removeFile($index)\" />\n }\n </div>\n }\n\n <textarea\n #textEl\n rtElem=\"input\"\n qa-dataid=\"ai-prompt-input-field\"\n cdkTextareaAutosize\n [attr.aria-label]=\"t().chatComposerAria\"\n [placeholder]=\"placeholderText()\"\n [value]=\"text()\"\n [disabled]=\"locked()\"\n [cdkAutosizeMinRows]=\"minRows()\"\n [cdkAutosizeMaxRows]=\"maxRows()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"></textarea>\n\n <div rtElem=\"actions\">\n @if (attachments()) {\n <input\n #fileEl\n qa-dataid=\"ai-prompt-input-file-input\"\n type=\"file\"\n hidden\n multiple\n [attr.accept]=\"accept() || null\"\n (change)=\"onFilesPicked($event)\" />\n <rt-icon-button\n qa-dataid=\"ai-prompt-input-attach\"\n icon=\"ico-plus\"\n iconColor=\"muted\"\n size=\"sm\"\n variant=\"ghost\"\n [ariaLabel]=\"t().chatAttachAria\"\n [tooltip]=\"t().chatAttachTooltip\"\n [disabled]=\"locked()\"\n (clicked)=\"openPicker()\" />\n }\n\n <div rtElem=\"controls\">\n @if (model()) {\n <button\n rtButton\n rtElem=\"control\"\n qa-dataid=\"ai-prompt-input-model\"\n type=\"button\"\n theme=\"secondary\"\n appearance=\"text\"\n size=\"sm\"\n [label]=\"model()\"\n [attr.aria-label]=\"t().aiPromptModelAria + ': ' + model()\"\n [disabled]=\"disabled()\"\n (click)=\"pick('model')\"></button>\n }\n\n @if (effort()) {\n <button\n rtButton\n rtElem=\"control\"\n qa-dataid=\"ai-prompt-input-effort\"\n type=\"button\"\n theme=\"secondary\"\n appearance=\"text\"\n size=\"sm\"\n [rtMod]=\"{ muted: true }\"\n [label]=\"effort()\"\n [attr.aria-label]=\"t().aiPromptEffortAria + ': ' + effort()\"\n [disabled]=\"disabled()\"\n (click)=\"pick('effort')\"></button>\n }\n\n @if (mode()) {\n <button\n rtButton\n rtElem=\"control\"\n qa-dataid=\"ai-prompt-input-mode\"\n type=\"button\"\n theme=\"secondary\"\n appearance=\"text\"\n size=\"sm\"\n [rtMod]=\"{ muted: true }\"\n [label]=\"mode()\"\n [attr.aria-label]=\"t().aiPromptModeAria + ': ' + mode()\"\n [disabled]=\"disabled()\"\n (click)=\"pick('mode')\"></button>\n }\n\n @if (hasUsage()) {\n <rt-usage-ring qa-dataid=\"ai-prompt-input-usage\" [value]=\"usage() ?? 0\" [warnAt]=\"usageWarnAt()\" [hint]=\"usageHint()\" />\n }\n\n @if (isStoppable()) {\n <rt-icon-button\n qa-dataid=\"ai-prompt-input-stop\"\n icon=\"stop\"\n size=\"sm\"\n variant=\"primary\"\n [ariaLabel]=\"t().chatStopAria\"\n [tooltip]=\"t().chatStopLabel\"\n (clicked)=\"stop()\" />\n } @else {\n <rt-icon-button\n qa-dataid=\"ai-prompt-input-send\"\n icon=\"arrow-up\"\n size=\"sm\"\n variant=\"primary\"\n [ariaLabel]=\"t().chatSendAria\"\n [tooltip]=\"t().chatSendLabel\"\n [loading]=\"sending()\"\n [disabled]=\"!canSend()\"\n (clicked)=\"submit()\" />\n }\n </div>\n </div>\n </div>\n\n @if (hintBelow()) {\n <p rtElem=\"hint\" qa-dataid=\"ai-prompt-input-hint\">{{ hintText() }}</p>\n }\n</ng-container>\n"],"mappings":";;;;;;;;;AAkCA,MAAM,YAAoB;AAG1B,SAAgB,gBAAgB,MAAc,OAAe,MAAa;CACtE,OAAO,CAAC,SAAS,KAAK,KAAI,CAAE,CAAC,SAAS,KAAK,QAAQ;AACvD;AAqCA,IAAa,2BAAb,MAAa,yBAAwB;CAvBrC,cAAA;EAwBa,KAAA,iBAAiC,WAAW,iBAAiB;EAE7D,KAAA,gBAAgC,WAAW,cAAc;EAE/C,KAAA,IAA4B,OAAO,aAAa;EAEhD,KAAA,YAA8D,UAAwC,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAE/G,KAAA,YACf,UAA2C,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAErC,KAAA,QAAgC,OAAe,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAElD,KAAA,kBAAkC,eAAuB,KAAK,YAAW,KAAM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