@testgorilla/tgo-ui 6.2.16 → 6.4.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.
@@ -0,0 +1,406 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, input, output, inject, DestroyRef, signal, computed, effect, untracked, forwardRef, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
+ import { AsyncPipe } from '@angular/common';
4
+ import * as i1$1 from '@angular/forms';
5
+ import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
6
+ import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
7
+ import { map, of, delay, Subject, combineLatest, takeUntil } from 'rxjs';
8
+ import * as i5 from '@testgorilla/tgo-ui/components/prompt';
9
+ import { PromptModule } from '@testgorilla/tgo-ui/components/prompt';
10
+ import * as i2 from '@testgorilla/tgo-ui/components/field';
11
+ import { FieldComponentModule } from '@testgorilla/tgo-ui/components/field';
12
+ import * as i3 from '@testgorilla/tgo-ui/components/button';
13
+ import { ButtonComponentModule } from '@testgorilla/tgo-ui/components/button';
14
+ import * as i4 from '@testgorilla/tgo-ui/components/icon';
15
+ import { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';
16
+ import * as i6 from '@testgorilla/tgo-ui/components/ai-caveat';
17
+ import { AiCaveatComponentModule } from '@testgorilla/tgo-ui/components/ai-caveat';
18
+ import * as i7 from '@testgorilla/tgo-ui/components/alert-banner';
19
+ import { AlertBannerComponentModule } from '@testgorilla/tgo-ui/components/alert-banner';
20
+ import { UiTranslatePipe } from '@testgorilla/tgo-ui/components/core';
21
+ import * as i1 from '@angular/common/http';
22
+ import { HttpHeaders, HttpParams } from '@angular/common/http';
23
+
24
+ const OPENAI_DEFAULT_ENDPOINT = 'https://api.openai.com/v1/chat/completions';
25
+ const OPENAI_DEFAULT_MODEL = 'gpt-5-mini';
26
+ const GEMINI_DEFAULT_MODEL = 'gemini-3.0-flash';
27
+ class WriteWithAiLlmService {
28
+ constructor(http) {
29
+ this.http = http;
30
+ }
31
+ generate(request, config) {
32
+ if (!config.apiKey) {
33
+ return this.simulateResponse(request, config);
34
+ }
35
+ if (config.provider === 'gemini') {
36
+ return this.callGemini(request, config);
37
+ }
38
+ return this.callOpenAi(request, config);
39
+ }
40
+ resolveEndpoint(config) {
41
+ return config.endpoint ?? config.baseUrl ?? OPENAI_DEFAULT_ENDPOINT;
42
+ }
43
+ callOpenAi(request, config) {
44
+ const endpoint = this.resolveEndpoint(config);
45
+ const model = config.model ?? OPENAI_DEFAULT_MODEL;
46
+ const systemMessage = this.buildSystemMessage(request.sourceText, request.context ?? config.context);
47
+ const body = {
48
+ model,
49
+ messages: [
50
+ { role: 'system', content: systemMessage },
51
+ { role: 'user', content: request.prompt },
52
+ ],
53
+ };
54
+ const headers = new HttpHeaders({
55
+ 'Content-Type': 'application/json',
56
+ Authorization: `Bearer ${config.apiKey}`,
57
+ });
58
+ return this.http
59
+ .post(endpoint, body, { headers })
60
+ .pipe(map(res => res.choices[0]?.message?.content ?? ''));
61
+ }
62
+ callGemini(request, config) {
63
+ const model = config.model ?? GEMINI_DEFAULT_MODEL;
64
+ const baseUrl = config.endpoint ??
65
+ config.baseUrl ??
66
+ `https://generativelanguage.googleapis.com/v1beta/models/${model}:generateContent`;
67
+ const systemMessage = this.buildSystemMessage(request.sourceText, request.context ?? config.context);
68
+ const body = {
69
+ system_instruction: { parts: [{ text: systemMessage }] },
70
+ contents: [{ role: 'user', parts: [{ text: request.prompt }] }],
71
+ };
72
+ const apiKey = config.apiKey;
73
+ if (!apiKey) {
74
+ return this.simulateResponse(request, config);
75
+ }
76
+ const headers = new HttpHeaders({ 'Content-Type': 'application/json' });
77
+ const params = new HttpParams().set('key', apiKey);
78
+ return this.http
79
+ .post(baseUrl, body, { headers, params })
80
+ .pipe(map(res => res.candidates?.[0]?.content?.parts?.[0]?.text ?? ''));
81
+ }
82
+ simulateResponse(request, _config) {
83
+ const source = request.sourceText?.trim();
84
+ const prompt = request.prompt?.trim();
85
+ let response;
86
+ if (source && prompt) {
87
+ const truncated = source.length > 200 ? `${source.substring(0, 200)}…` : source;
88
+ response =
89
+ `Based on the following text:\n\n"${truncated}"\n\n` +
90
+ `Here is the result for "${prompt}":\n\n${this.generatePlaceholderContent(prompt, source)}`;
91
+ }
92
+ else if (prompt) {
93
+ response = this.generatePlaceholderContent(prompt, '');
94
+ }
95
+ else {
96
+ response = 'Please provide a prompt describing what you would like me to write.';
97
+ }
98
+ return of(response).pipe(delay(1200));
99
+ }
100
+ generatePlaceholderContent(prompt, source) {
101
+ const lower = prompt.toLowerCase();
102
+ if (lower.includes('shorter') || lower.includes('concise') || lower.includes('summarize')) {
103
+ const sentences = source.split(/[.!?]+/).filter(s => s.trim());
104
+ if (sentences.length > 1) {
105
+ return `${sentences
106
+ .slice(0, Math.ceil(sentences.length / 2))
107
+ .join('. ')
108
+ .trim()}.`;
109
+ }
110
+ return `${source.substring(0, Math.ceil(source.length * 0.6)).trim()}…`;
111
+ }
112
+ if (lower.includes('formal') || lower.includes('professional') || lower.includes('tone')) {
113
+ return `Dear Recipient,\n\nI hope this message finds you well. ${source || 'I am writing to follow up on our recent discussion.'}\n\nPlease do not hesitate to reach out should you require further information.\n\nBest regards`;
114
+ }
115
+ if (lower.includes('email') || lower.includes('draft') || lower.includes('write')) {
116
+ return `Subject: Follow-up\n\nHi there,\n\n${source || 'Thank you for your time. I wanted to reach out regarding the next steps.'}\n\nLooking forward to hearing from you.\n\nBest regards`;
117
+ }
118
+ return `[Simulated LLM response]\n\nPrompt: ${prompt}\n\nThis is a simulated response. To enable real LLM calls, provide an apiKey in the llmConfig input. The service supports OpenAI-compatible and Gemini endpoints.`;
119
+ }
120
+ buildSystemMessage(sourceText, context) {
121
+ const parts = [];
122
+ if (context) {
123
+ parts.push(context);
124
+ }
125
+ if (sourceText) {
126
+ parts.push(`The user is working with the following source text:\n\n"""${sourceText}"""`);
127
+ }
128
+ parts.push('Respond with only the requested content. Do not include explanations or preamble.');
129
+ return parts.join('\n\n');
130
+ }
131
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: WriteWithAiLlmService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
132
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: WriteWithAiLlmService, providedIn: 'root' }); }
133
+ }
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: WriteWithAiLlmService, decorators: [{
135
+ type: Injectable,
136
+ args: [{ providedIn: 'root' }]
137
+ }], ctorParameters: () => [{ type: i1.HttpClient }] });
138
+
139
+ class WriteWithAiComponent {
140
+ constructor() {
141
+ this.value = input('');
142
+ this.standalone = input(false);
143
+ this.defaultOpen = input(false);
144
+ this.fieldLabel = input('');
145
+ this.header = input('');
146
+ this.placeholder = input('');
147
+ this.promptValue = input('');
148
+ this.tags = input([]);
149
+ this.status = input('idle');
150
+ this.subheader = input(undefined);
151
+ this.llmConfig = input(undefined);
152
+ /** Layout: make the inner field stretch to fill its container height. */
153
+ this.fullHeight = input(false);
154
+ /** Layout: render the inner field without a visible border. */
155
+ this.borderless = input(false);
156
+ /** Opaque host metadata emitted with promptSubmit for backend integrations. */
157
+ this.metadata = input({});
158
+ this.valueChange = output();
159
+ this.promptChange = output();
160
+ this.promptSubmit = output();
161
+ this.cancelPending = output();
162
+ this.acceptResult = output();
163
+ this.requestRefine = output();
164
+ this.destroyRef = inject(DestroyRef);
165
+ this.llmService = inject(WriteWithAiLlmService);
166
+ this.uiTranslate = inject(UiTranslatePipe);
167
+ this.promptModel = signal('');
168
+ this.isPanelManuallyOpen = signal(false);
169
+ this.internalStatus = signal('idle');
170
+ this.internalValue = signal('');
171
+ this.cancelRequest$ = new Subject();
172
+ /** ControlValueAccessor: whether the form control is disabled. */
173
+ this.cvaDisabled = signal(false);
174
+ /** ControlValueAccessor callbacks. */
175
+ this.onChange = () => { };
176
+ this.onTouched = () => { };
177
+ this.translationContext = 'WRITE_WITH_AI.';
178
+ this.labels = toSignal(combineLatest([
179
+ this.uiTranslate.transform(`${this.translationContext}CANCEL`),
180
+ this.uiTranslate.transform(`${this.translationContext}ACCEPT`),
181
+ this.uiTranslate.transform(`${this.translationContext}MAKE_CHANGES`),
182
+ this.uiTranslate.transform(`${this.translationContext}TRY_AGAIN`),
183
+ ]).pipe(map(([cancel, accept, makeChanges, tryAgain]) => ({ cancel, accept, makeChanges, tryAgain }))), { initialValue: { cancel: '', accept: '', makeChanges: '', tryAgain: '' } });
184
+ this.isDefaultMode = computed(() => this.llmConfig()?.default === true);
185
+ this.effectiveStatus = computed(() => (this.isDefaultMode() ? this.internalStatus() : this.status()));
186
+ this.effectiveValue = computed(() => (this.isDefaultMode() ? this.internalValue() : this.value()));
187
+ this.isPanelVisible = computed(() => this.standalone() || this.isPanelManuallyOpen());
188
+ this.promptTags = computed(() => this.tags().map(tag => ({ id: tag.id, label: tag.label, autocomplete: tag.description ?? '' })));
189
+ this.statusConfig = computed(() => {
190
+ const l = this.labels();
191
+ switch (this.effectiveStatus()) {
192
+ case 'loading':
193
+ return {
194
+ variant: 'loading',
195
+ alertType: 'info',
196
+ messageKey: `${this.translationContext}WRITING`,
197
+ actions: [{ label: l.cancel, onClick: () => this.handleCancel() }],
198
+ };
199
+ case 'success':
200
+ return {
201
+ variant: 'success',
202
+ alertType: 'success',
203
+ messageKey: `${this.translationContext}CONTENT_GENERATED`,
204
+ actions: [
205
+ { label: l.accept, onClick: () => this.handleAccept() },
206
+ { label: l.makeChanges, onClick: () => this.handleRefine() },
207
+ ],
208
+ };
209
+ case 'error':
210
+ return {
211
+ variant: 'error',
212
+ alertType: 'error',
213
+ messageKey: `${this.translationContext}ERROR_MESSAGE`,
214
+ actions: [{ label: l.tryAgain, onClick: () => this.handleRefine() }],
215
+ };
216
+ default:
217
+ return null;
218
+ }
219
+ });
220
+ this.promptModelData = computed(() => ({ text: this.promptModel(), files: [] }));
221
+ effect(() => {
222
+ const promptValue = this.promptValue();
223
+ const isDefault = this.isDefaultMode();
224
+ if (!isDefault) {
225
+ untracked(() => this.promptModel.set(promptValue));
226
+ }
227
+ });
228
+ effect(() => {
229
+ const value = this.value();
230
+ const isDefault = this.isDefaultMode();
231
+ if (isDefault) {
232
+ untracked(() => this.internalValue.set(value));
233
+ }
234
+ });
235
+ }
236
+ handlePromptModelChange(value) {
237
+ const text = typeof value === 'string' ? value : (value?.text ?? '');
238
+ this.promptModel.set(text);
239
+ this.promptChange.emit(text);
240
+ }
241
+ ngOnInit() {
242
+ if (this.defaultOpen()) {
243
+ this.isPanelManuallyOpen.set(true);
244
+ }
245
+ }
246
+ togglePanel() {
247
+ if (this.standalone()) {
248
+ return;
249
+ }
250
+ this.isPanelManuallyOpen.update(current => !current);
251
+ }
252
+ handleValueInput(value) {
253
+ if (this.isDefaultMode()) {
254
+ this.internalValue.set(value);
255
+ }
256
+ this.valueChange.emit(value);
257
+ this.onChange(value);
258
+ this.onTouched();
259
+ }
260
+ handlePromptSubmit(promptData) {
261
+ const prompt = typeof promptData === 'string' ? promptData : (promptData?.text ?? this.promptModel());
262
+ this.promptModel.set(prompt);
263
+ this.promptChange.emit(prompt);
264
+ const submitEvent = {
265
+ prompt,
266
+ content: this.effectiveValue(),
267
+ metadata: this.metadata(),
268
+ };
269
+ if (this.isDefaultMode()) {
270
+ this.executeDefaultFlow(prompt);
271
+ }
272
+ this.promptSubmit.emit(submitEvent);
273
+ }
274
+ handlePrimaryAction() {
275
+ const status = this.effectiveStatus();
276
+ if (status === 'loading') {
277
+ this.handleCancel();
278
+ }
279
+ else if (status === 'success') {
280
+ this.handleAccept();
281
+ }
282
+ else if (status === 'error') {
283
+ this.handleRefine();
284
+ }
285
+ }
286
+ handleSecondaryAction() {
287
+ if (this.effectiveStatus() === 'success') {
288
+ this.handleRefine();
289
+ }
290
+ }
291
+ // --- ControlValueAccessor ---
292
+ writeValue(value) {
293
+ const v = value ?? '';
294
+ if (this.isDefaultMode()) {
295
+ this.internalValue.set(v);
296
+ }
297
+ // For integration mode the host uses the [value] input directly,
298
+ // but we still keep internal state in sync for CVA consumers.
299
+ this.internalValue.set(v);
300
+ }
301
+ registerOnChange(fn) {
302
+ this.onChange = fn;
303
+ }
304
+ registerOnTouched(fn) {
305
+ this.onTouched = fn;
306
+ }
307
+ setDisabledState(isDisabled) {
308
+ this.cvaDisabled.set(isDisabled);
309
+ }
310
+ // --- Private helpers ---
311
+ executeDefaultFlow(prompt) {
312
+ const config = this.llmConfig();
313
+ if (!config) {
314
+ return;
315
+ }
316
+ this.cancelRequest$.next();
317
+ this.internalStatus.set('loading');
318
+ this.llmService
319
+ .generate({ sourceText: this.effectiveValue(), prompt, context: config.context }, config)
320
+ .pipe(takeUntil(this.cancelRequest$), takeUntilDestroyed(this.destroyRef))
321
+ .subscribe({
322
+ next: result => {
323
+ this.internalValue.set(result);
324
+ this.valueChange.emit(result);
325
+ this.onChange(result);
326
+ this.internalStatus.set('success');
327
+ },
328
+ error: () => {
329
+ this.internalStatus.set('error');
330
+ },
331
+ });
332
+ }
333
+ handleCancel() {
334
+ if (this.isDefaultMode()) {
335
+ this.cancelRequest$.next();
336
+ this.internalStatus.set('idle');
337
+ }
338
+ this.cancelPending.emit();
339
+ }
340
+ handleAccept() {
341
+ if (this.isDefaultMode()) {
342
+ this.internalStatus.set('idle');
343
+ this.promptModel.set('');
344
+ }
345
+ if (!this.standalone()) {
346
+ this.isPanelManuallyOpen.set(false);
347
+ }
348
+ this.acceptResult.emit();
349
+ }
350
+ handleRefine() {
351
+ if (this.isDefaultMode()) {
352
+ this.internalStatus.set('idle');
353
+ }
354
+ this.requestRefine.emit();
355
+ }
356
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: WriteWithAiComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
357
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: WriteWithAiComponent, isStandalone: true, selector: "ui-write-with-ai", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, standalone: { classPropertyName: "standalone", publicName: "standalone", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, fieldLabel: { classPropertyName: "fieldLabel", publicName: "fieldLabel", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, promptValue: { classPropertyName: "promptValue", publicName: "promptValue", isSignal: true, isRequired: false, transformFunction: null }, tags: { classPropertyName: "tags", publicName: "tags", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, subheader: { classPropertyName: "subheader", publicName: "subheader", isSignal: true, isRequired: false, transformFunction: null }, llmConfig: { classPropertyName: "llmConfig", publicName: "llmConfig", isSignal: true, isRequired: false, transformFunction: null }, fullHeight: { classPropertyName: "fullHeight", publicName: "fullHeight", isSignal: true, isRequired: false, transformFunction: null }, borderless: { classPropertyName: "borderless", publicName: "borderless", isSignal: true, isRequired: false, transformFunction: null }, metadata: { classPropertyName: "metadata", publicName: "metadata", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", promptChange: "promptChange", promptSubmit: "promptSubmit", cancelPending: "cancelPending", acceptResult: "acceptResult", requestRefine: "requestRefine" }, host: { styleAttribute: "display: block" }, providers: [
358
+ UiTranslatePipe,
359
+ {
360
+ provide: NG_VALUE_ACCESSOR,
361
+ useExisting: forwardRef(() => WriteWithAiComponent),
362
+ multi: true,
363
+ },
364
+ ], ngImport: i0, template: "<div\n class=\"write-with-ai\"\n [class.write-with-ai--standalone]=\"standalone()\"\n [class.write-with-ai--full-height]=\"fullHeight()\"\n>\n @if (!standalone()) {\n <div class=\"write-with-ai__host\">\n <ui-field\n [label]=\"fieldLabel() || (translationContext + 'FIELD_LABEL' | uiTranslate | async)!\"\n type=\"textarea\"\n [showBottomContent]=\"false\"\n [fullHeight]=\"fullHeight()\"\n [borderless]=\"borderless()\"\n [disabled]=\"cvaDisabled()\"\n [ngModel]=\"effectiveValue()\"\n (ngModelChange)=\"handleValueInput($event)\"\n ></ui-field>\n <ui-button\n class=\"write-with-ai__cta\"\n variant=\"ghost-ai\"\n size=\"small\"\n [label]=\"(translationContext + 'AI_ASSIST' | uiTranslate | async)!\"\n iconName=\"Sparkle-in-line\"\n iconPosition=\"left\"\n [disabled]=\"isPanelVisible() || cvaDisabled()\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n </div>\n }\n\n @if (isPanelVisible()) {\n <section\n class=\"write-with-ai__panel\"\n [class.write-with-ai__panel--loading]=\"effectiveStatus() === 'loading'\"\n role=\"region\"\n [attr.aria-label]=\"(translationContext + 'AI_WRITING_ASSISTANT' | uiTranslate | async)!\"\n >\n <header class=\"write-with-ai__panel-header\">\n <div class=\"write-with-ai__panel-heading\">\n <div class=\"write-with-ai__title-row\">\n @if (effectiveStatus() !== 'loading') {\n <ui-icon class=\"write-with-ai__title-icon\" name=\"Sparkle-in-line\" color=\"ai\"></ui-icon>\n }\n <h4 class=\"write-with-ai__title\">\n {{ header() || (translationContext + 'HEADER' | uiTranslate | async) }}\n </h4>\n </div>\n @if (subheader()) {\n <p class=\"write-with-ai__subheader\">{{ subheader() }}</p>\n }\n </div>\n @if (!standalone()) {\n <ui-button\n variant=\"icon-button\"\n iconName=\"Close\"\n size=\"small\"\n [tooltip]=\"(translationContext + 'CLOSE' | uiTranslate | async)!\"\n [ariaLabel]=\"(translationContext + 'CLOSE_AI_ASSISTANT' | uiTranslate | async)!\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n }\n </header>\n\n @if (effectiveStatus() === 'idle') {\n <div class=\"write-with-ai__prompt\">\n <ui-prompt\n [ngModel]=\"promptModelData()\"\n (ngModelChange)=\"handlePromptModelChange($event)\"\n [tags]=\"promptTags()\"\n [placeholder]=\"placeholder() || (translationContext + 'PLACEHOLDER' | uiTranslate | async)!\"\n [showSendButton]=\"true\"\n (promptData)=\"handlePromptSubmit($event)\"\n ></ui-prompt>\n </div>\n }\n\n @if (statusConfig(); as cfg) {\n <ui-alert-banner\n [alertType]=\"cfg.alertType\"\n alertVariant=\"callout\"\n [message]=\"(cfg.messageKey | uiTranslate | async)!\"\n [includeDismissButton]=\"false\"\n [isLoading]=\"cfg.variant === 'loading'\"\n [hasIcon]=\"cfg.variant !== 'loading'\"\n [actions]=\"cfg.actions\"\n [isFullWidth]=\"true\"\n ></ui-alert-banner>\n }\n\n <div class=\"write-with-ai__caveat\">\n <ui-ai-caveat></ui-ai-caveat>\n </div>\n </section>\n }\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.write-with-ai{display:flex;flex-direction:column;gap:8px;padding-top:8px;max-width:100%;overflow:hidden}.write-with-ai--full-height{height:100%}.write-with-ai--full-height .write-with-ai__host{flex:1}.write-with-ai__host{position:relative;display:flex;flex-direction:column}.write-with-ai__cta{position:absolute;right:8px;bottom:8px;z-index:1;background-color:#fff;border-radius:100px}.write-with-ai__panel{border:none;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:8px;background-color:#f4f4f4}.write-with-ai__panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.write-with-ai__panel-heading{display:flex;flex-direction:column;gap:8px}.write-with-ai__title-row{display:flex;align-items:center;gap:8px}.write-with-ai__title{margin:0}.write-with-ai__subheader{margin:0;font-size:14px;line-height:22px;font-weight:400;color:#242424}.write-with-ai__quick-actions{display:flex;gap:8px;flex-wrap:wrap}.write-with-ai__prompt{display:flex;flex-direction:column;gap:4px}.write-with-ai__status-actions{display:flex;gap:8px;justify-content:flex-end}.write-with-ai__caveat{font-size:12px}@keyframes pulse-text{0%,to{opacity:1}50%{opacity:.5}}:host ::ng-deep .write-with-ai__host textarea{padding-bottom:48px!important}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: FieldComponentModule }, { kind: "component", type: i2.FieldComponent, selector: "ui-field", inputs: ["fullWidth", "fullHeight", "label", "labelHtml", "labelIcon", "fieldName", "placeholder", "id", "value", "badgeVariant", "errors", "disabled", "required", "readOnly", "hintMessage", "type", "updateOnBlur", "allowOnlyDigits", "isAutocompleteOff", "allowNegative", "showBottomContent", "applicationTheme", "ariaLabel", "loading", "isValid", "maxCharacters", "trimOnBlur", "trimOnSubmit", "maxRows", "hasTextAreaCounter", "hideBuiltInErrors", "hideLabelInErrors", "max", "min", "textareaHeight", "borderless", "autosizableTextarea", "isAIVariant", "ariaLabelledby", "ariaDescribedby", "hasError"], outputs: ["validateEvent", "fieldBlur"] }, { kind: "ngmodule", type: ButtonComponentModule }, { kind: "component", type: i3.ButtonComponent, selector: "ui-button", inputs: ["size", "variant", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value", "tooltip", "isPremium", "type", "companyColor", "buttonBadgeConfig", "applicationTheme", "disabledScaleOnClick", "ariaLabel", "ariaRequired", "ariaLabelledby", "ariaDescribedby", "preventDefault", "hasBackground", "tooltipPosition", "role", "iconFilled"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "ngmodule", type: IconComponentModule }, { kind: "component", type: i4.IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color", "filled", "toggleIconStyle", "applicationTheme", "useFullIconName"] }, { kind: "ngmodule", type: PromptModule }, { kind: "component", type: i5.PromptComponent, selector: "ui-prompt", inputs: ["tags", "maxCharacters", "supportedFileTypes", "autoClear", "showSendButton", "enableFileUpload", "placeholder", "errorMessage"], outputs: ["promptData"] }, { kind: "ngmodule", type: AiCaveatComponentModule }, { kind: "component", type: i6.AiCaveatComponent, selector: "ui-ai-caveat", inputs: ["applicationTheme"] }, { kind: "ngmodule", type: AlertBannerComponentModule }, { kind: "component", type: i7.AlertBannerComponent, selector: "ui-alert-banner", inputs: ["alertType", "alertVariant", "message", "includeDismissButton", "shadow", "linkText", "linkUrl", "linkTarget", "actions", "applicationTheme", "isFullWidth", "closeButtonTooltip", "hasIcon", "isLoading", "fixed", "ariaDescribedby", "secondaryAlerts"] }, { kind: "pipe", type: UiTranslatePipe, name: "uiTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
365
+ }
366
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: WriteWithAiComponent, decorators: [{
367
+ type: Component,
368
+ args: [{ selector: 'ui-write-with-ai', changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'display: block' }, providers: [
369
+ UiTranslatePipe,
370
+ {
371
+ provide: NG_VALUE_ACCESSOR,
372
+ useExisting: forwardRef(() => WriteWithAiComponent),
373
+ multi: true,
374
+ },
375
+ ], imports: [
376
+ AsyncPipe,
377
+ FormsModule,
378
+ FieldComponentModule,
379
+ ButtonComponentModule,
380
+ IconComponentModule,
381
+ PromptModule,
382
+ AiCaveatComponentModule,
383
+ AlertBannerComponentModule,
384
+ UiTranslatePipe,
385
+ ], template: "<div\n class=\"write-with-ai\"\n [class.write-with-ai--standalone]=\"standalone()\"\n [class.write-with-ai--full-height]=\"fullHeight()\"\n>\n @if (!standalone()) {\n <div class=\"write-with-ai__host\">\n <ui-field\n [label]=\"fieldLabel() || (translationContext + 'FIELD_LABEL' | uiTranslate | async)!\"\n type=\"textarea\"\n [showBottomContent]=\"false\"\n [fullHeight]=\"fullHeight()\"\n [borderless]=\"borderless()\"\n [disabled]=\"cvaDisabled()\"\n [ngModel]=\"effectiveValue()\"\n (ngModelChange)=\"handleValueInput($event)\"\n ></ui-field>\n <ui-button\n class=\"write-with-ai__cta\"\n variant=\"ghost-ai\"\n size=\"small\"\n [label]=\"(translationContext + 'AI_ASSIST' | uiTranslate | async)!\"\n iconName=\"Sparkle-in-line\"\n iconPosition=\"left\"\n [disabled]=\"isPanelVisible() || cvaDisabled()\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n </div>\n }\n\n @if (isPanelVisible()) {\n <section\n class=\"write-with-ai__panel\"\n [class.write-with-ai__panel--loading]=\"effectiveStatus() === 'loading'\"\n role=\"region\"\n [attr.aria-label]=\"(translationContext + 'AI_WRITING_ASSISTANT' | uiTranslate | async)!\"\n >\n <header class=\"write-with-ai__panel-header\">\n <div class=\"write-with-ai__panel-heading\">\n <div class=\"write-with-ai__title-row\">\n @if (effectiveStatus() !== 'loading') {\n <ui-icon class=\"write-with-ai__title-icon\" name=\"Sparkle-in-line\" color=\"ai\"></ui-icon>\n }\n <h4 class=\"write-with-ai__title\">\n {{ header() || (translationContext + 'HEADER' | uiTranslate | async) }}\n </h4>\n </div>\n @if (subheader()) {\n <p class=\"write-with-ai__subheader\">{{ subheader() }}</p>\n }\n </div>\n @if (!standalone()) {\n <ui-button\n variant=\"icon-button\"\n iconName=\"Close\"\n size=\"small\"\n [tooltip]=\"(translationContext + 'CLOSE' | uiTranslate | async)!\"\n [ariaLabel]=\"(translationContext + 'CLOSE_AI_ASSISTANT' | uiTranslate | async)!\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n }\n </header>\n\n @if (effectiveStatus() === 'idle') {\n <div class=\"write-with-ai__prompt\">\n <ui-prompt\n [ngModel]=\"promptModelData()\"\n (ngModelChange)=\"handlePromptModelChange($event)\"\n [tags]=\"promptTags()\"\n [placeholder]=\"placeholder() || (translationContext + 'PLACEHOLDER' | uiTranslate | async)!\"\n [showSendButton]=\"true\"\n (promptData)=\"handlePromptSubmit($event)\"\n ></ui-prompt>\n </div>\n }\n\n @if (statusConfig(); as cfg) {\n <ui-alert-banner\n [alertType]=\"cfg.alertType\"\n alertVariant=\"callout\"\n [message]=\"(cfg.messageKey | uiTranslate | async)!\"\n [includeDismissButton]=\"false\"\n [isLoading]=\"cfg.variant === 'loading'\"\n [hasIcon]=\"cfg.variant !== 'loading'\"\n [actions]=\"cfg.actions\"\n [isFullWidth]=\"true\"\n ></ui-alert-banner>\n }\n\n <div class=\"write-with-ai__caveat\">\n <ui-ai-caveat></ui-ai-caveat>\n </div>\n </section>\n }\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.write-with-ai{display:flex;flex-direction:column;gap:8px;padding-top:8px;max-width:100%;overflow:hidden}.write-with-ai--full-height{height:100%}.write-with-ai--full-height .write-with-ai__host{flex:1}.write-with-ai__host{position:relative;display:flex;flex-direction:column}.write-with-ai__cta{position:absolute;right:8px;bottom:8px;z-index:1;background-color:#fff;border-radius:100px}.write-with-ai__panel{border:none;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:8px;background-color:#f4f4f4}.write-with-ai__panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.write-with-ai__panel-heading{display:flex;flex-direction:column;gap:8px}.write-with-ai__title-row{display:flex;align-items:center;gap:8px}.write-with-ai__title{margin:0}.write-with-ai__subheader{margin:0;font-size:14px;line-height:22px;font-weight:400;color:#242424}.write-with-ai__quick-actions{display:flex;gap:8px;flex-wrap:wrap}.write-with-ai__prompt{display:flex;flex-direction:column;gap:4px}.write-with-ai__status-actions{display:flex;gap:8px;justify-content:flex-end}.write-with-ai__caveat{font-size:12px}@keyframes pulse-text{0%,to{opacity:1}50%{opacity:.5}}:host ::ng-deep .write-with-ai__host textarea{padding-bottom:48px!important}\n"] }]
386
+ }], ctorParameters: () => [] });
387
+
388
+ class WriteWithAiComponentModule {
389
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: WriteWithAiComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
390
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: WriteWithAiComponentModule, imports: [WriteWithAiComponent], exports: [WriteWithAiComponent] }); }
391
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: WriteWithAiComponentModule, imports: [WriteWithAiComponent] }); }
392
+ }
393
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: WriteWithAiComponentModule, decorators: [{
394
+ type: NgModule,
395
+ args: [{
396
+ imports: [WriteWithAiComponent],
397
+ exports: [WriteWithAiComponent],
398
+ }]
399
+ }] });
400
+
401
+ /**
402
+ * Generated bundle index. Do not edit.
403
+ */
404
+
405
+ export { WriteWithAiComponent, WriteWithAiComponentModule, WriteWithAiLlmService };
406
+ //# sourceMappingURL=testgorilla-tgo-ui-components-write-with-ai.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testgorilla-tgo-ui-components-write-with-ai.mjs","sources":["../../../components/write-with-ai/llm.service.ts","../../../components/write-with-ai/write-with-ai.component.ts","../../../components/write-with-ai/write-with-ai.component.html","../../../components/write-with-ai/write-with-ai.module.ts","../../../components/write-with-ai/testgorilla-tgo-ui-components-write-with-ai.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\nimport { Observable, of, delay, map } from 'rxjs';\nimport { WriteWithAiLlmConfig } from './write-with-ai.model';\n\nexport interface LlmRequest {\n sourceText: string;\n prompt: string;\n context?: string;\n}\n\ninterface OpenAiChatResponse {\n choices: { message: { content: string } }[];\n}\n\ninterface GeminiResponse {\n candidates: { content: { parts: { text: string }[] } }[];\n}\n\nconst OPENAI_DEFAULT_ENDPOINT = 'https://api.openai.com/v1/chat/completions';\nconst OPENAI_DEFAULT_MODEL = 'gpt-5-mini';\nconst GEMINI_DEFAULT_MODEL = 'gemini-3.0-flash';\n\n@Injectable({ providedIn: 'root' })\nexport class WriteWithAiLlmService {\n constructor(private readonly http: HttpClient) {}\n\n generate(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string> {\n if (!config.apiKey) {\n return this.simulateResponse(request, config);\n }\n\n if (config.provider === 'gemini') {\n return this.callGemini(request, config);\n }\n\n return this.callOpenAi(request, config);\n }\n\n private resolveEndpoint(config: WriteWithAiLlmConfig): string {\n return config.endpoint ?? config.baseUrl ?? OPENAI_DEFAULT_ENDPOINT;\n }\n\n private callOpenAi(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string> {\n const endpoint = this.resolveEndpoint(config);\n const model = config.model ?? OPENAI_DEFAULT_MODEL;\n const systemMessage = this.buildSystemMessage(request.sourceText, request.context ?? config.context);\n\n const body = {\n model,\n messages: [\n { role: 'system', content: systemMessage },\n { role: 'user', content: request.prompt },\n ],\n };\n\n const headers = new HttpHeaders({\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${config.apiKey}`,\n });\n\n return this.http\n .post<OpenAiChatResponse>(endpoint, body, { headers })\n .pipe(map(res => res.choices[0]?.message?.content ?? ''));\n }\n\n private callGemini(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string> {\n const model = config.model ?? GEMINI_DEFAULT_MODEL;\n const baseUrl =\n config.endpoint ??\n config.baseUrl ??\n `https://generativelanguage.googleapis.com/v1beta/models/${model}:generateContent`;\n const systemMessage = this.buildSystemMessage(request.sourceText, request.context ?? config.context);\n\n const body = {\n system_instruction: { parts: [{ text: systemMessage }] },\n contents: [{ role: 'user', parts: [{ text: request.prompt }] }],\n };\n\n const apiKey = config.apiKey;\n if (!apiKey) {\n return this.simulateResponse(request, config);\n }\n\n const headers = new HttpHeaders({ 'Content-Type': 'application/json' });\n const params = new HttpParams().set('key', apiKey);\n\n return this.http\n .post<GeminiResponse>(baseUrl, body, { headers, params })\n .pipe(map(res => res.candidates?.[0]?.content?.parts?.[0]?.text ?? ''));\n }\n\n private simulateResponse(request: LlmRequest, _config: WriteWithAiLlmConfig): Observable<string> {\n const source = request.sourceText?.trim();\n const prompt = request.prompt?.trim();\n\n let response: string;\n\n if (source && prompt) {\n const truncated = source.length > 200 ? `${source.substring(0, 200)}…` : source;\n response =\n `Based on the following text:\\n\\n\"${truncated}\"\\n\\n` +\n `Here is the result for \"${prompt}\":\\n\\n${this.generatePlaceholderContent(prompt, source)}`;\n } else if (prompt) {\n response = this.generatePlaceholderContent(prompt, '');\n } else {\n response = 'Please provide a prompt describing what you would like me to write.';\n }\n\n return of(response).pipe(delay(1200));\n }\n\n private generatePlaceholderContent(prompt: string, source: string): string {\n const lower = prompt.toLowerCase();\n\n if (lower.includes('shorter') || lower.includes('concise') || lower.includes('summarize')) {\n const sentences = source.split(/[.!?]+/).filter(s => s.trim());\n if (sentences.length > 1) {\n return `${sentences\n .slice(0, Math.ceil(sentences.length / 2))\n .join('. ')\n .trim()}.`;\n }\n return `${source.substring(0, Math.ceil(source.length * 0.6)).trim()}…`;\n }\n\n if (lower.includes('formal') || lower.includes('professional') || lower.includes('tone')) {\n return `Dear Recipient,\\n\\nI hope this message finds you well. ${source || 'I am writing to follow up on our recent discussion.'}\\n\\nPlease do not hesitate to reach out should you require further information.\\n\\nBest regards`;\n }\n\n if (lower.includes('email') || lower.includes('draft') || lower.includes('write')) {\n return `Subject: Follow-up\\n\\nHi there,\\n\\n${source || 'Thank you for your time. I wanted to reach out regarding the next steps.'}\\n\\nLooking forward to hearing from you.\\n\\nBest regards`;\n }\n\n return `[Simulated LLM response]\\n\\nPrompt: ${prompt}\\n\\nThis is a simulated response. To enable real LLM calls, provide an apiKey in the llmConfig input. The service supports OpenAI-compatible and Gemini endpoints.`;\n }\n\n private buildSystemMessage(sourceText: string, context?: string): string {\n const parts: string[] = [];\n\n if (context) {\n parts.push(context);\n }\n\n if (sourceText) {\n parts.push(`The user is working with the following source text:\\n\\n\"\"\"${sourceText}\"\"\"`);\n }\n\n parts.push('Respond with only the requested content. Do not include explanations or preamble.');\n\n return parts.join('\\n\\n');\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n forwardRef,\n inject,\n input,\n output,\n signal,\n OnInit,\n untracked,\n} from '@angular/core';\nimport { AsyncPipe } from '@angular/common';\nimport { FormsModule, NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';\nimport { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';\nimport { combineLatest, map, Subject, takeUntil } from 'rxjs';\nimport { PromptData, PromptTag, PromptModule } from '@testgorilla/tgo-ui/components/prompt';\nimport { FieldComponentModule } from '@testgorilla/tgo-ui/components/field';\nimport { ButtonComponentModule } from '@testgorilla/tgo-ui/components/button';\nimport { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';\nimport { AiCaveatComponentModule } from '@testgorilla/tgo-ui/components/ai-caveat';\nimport { AlertBannerComponentModule, AlertBannerAction } from '@testgorilla/tgo-ui/components/alert-banner';\nimport { AlertBarType, UiTranslatePipe } from '@testgorilla/tgo-ui/components/core';\nimport {\n WriteWithAiStatus,\n WriteWithAiTagOption,\n WriteWithAiLlmConfig,\n WriteWithAiSubmitEvent,\n} from './write-with-ai.model';\nimport { WriteWithAiLlmService } from './llm.service';\n\ninterface StatusConfig {\n variant: 'loading' | 'success' | 'error';\n alertType: AlertBarType;\n messageKey: string;\n actions: AlertBannerAction[];\n}\n\n@Component({\n selector: 'ui-write-with-ai',\n templateUrl: './write-with-ai.component.html',\n styleUrl: './write-with-ai.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { style: 'display: block' },\n providers: [\n UiTranslatePipe,\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WriteWithAiComponent),\n multi: true,\n },\n ],\n imports: [\n AsyncPipe,\n FormsModule,\n FieldComponentModule,\n ButtonComponentModule,\n IconComponentModule,\n PromptModule,\n AiCaveatComponentModule,\n AlertBannerComponentModule,\n UiTranslatePipe,\n ],\n})\nexport class WriteWithAiComponent implements OnInit, ControlValueAccessor {\n readonly value = input('');\n readonly standalone = input(false);\n readonly defaultOpen = input(false);\n readonly fieldLabel = input('');\n readonly header = input('');\n readonly placeholder = input('');\n readonly promptValue = input('');\n readonly tags = input<WriteWithAiTagOption[]>([]);\n readonly status = input<WriteWithAiStatus>('idle');\n readonly subheader = input<string | undefined>(undefined);\n readonly llmConfig = input<WriteWithAiLlmConfig | undefined>(undefined);\n\n /** Layout: make the inner field stretch to fill its container height. */\n readonly fullHeight = input(false);\n\n /** Layout: render the inner field without a visible border. */\n readonly borderless = input(false);\n\n /** Opaque host metadata emitted with promptSubmit for backend integrations. */\n readonly metadata = input<Record<string, unknown>>({});\n\n readonly valueChange = output<string>();\n readonly promptChange = output<string>();\n readonly promptSubmit = output<WriteWithAiSubmitEvent>();\n readonly cancelPending = output<void>();\n readonly acceptResult = output<void>();\n readonly requestRefine = output<void>();\n\n private readonly destroyRef = inject(DestroyRef);\n private readonly llmService = inject(WriteWithAiLlmService);\n private readonly uiTranslate = inject(UiTranslatePipe);\n private readonly promptModel = signal('');\n private readonly isPanelManuallyOpen = signal(false);\n private readonly internalStatus = signal<WriteWithAiStatus>('idle');\n private readonly internalValue = signal('');\n private readonly cancelRequest$ = new Subject<void>();\n\n /** ControlValueAccessor: whether the form control is disabled. */\n readonly cvaDisabled = signal(false);\n\n /** ControlValueAccessor callbacks. */\n private onChange: (value: string) => void = () => {};\n private onTouched: () => void = () => {};\n\n readonly translationContext = 'WRITE_WITH_AI.';\n\n private readonly labels = toSignal(\n combineLatest([\n this.uiTranslate.transform(`${this.translationContext}CANCEL`),\n this.uiTranslate.transform(`${this.translationContext}ACCEPT`),\n this.uiTranslate.transform(`${this.translationContext}MAKE_CHANGES`),\n this.uiTranslate.transform(`${this.translationContext}TRY_AGAIN`),\n ]).pipe(map(([cancel, accept, makeChanges, tryAgain]) => ({ cancel, accept, makeChanges, tryAgain }))),\n { initialValue: { cancel: '', accept: '', makeChanges: '', tryAgain: '' } }\n );\n\n readonly isDefaultMode = computed(() => this.llmConfig()?.default === true);\n\n readonly effectiveStatus = computed(() => (this.isDefaultMode() ? this.internalStatus() : this.status()));\n\n readonly effectiveValue = computed(() => (this.isDefaultMode() ? this.internalValue() : this.value()));\n\n readonly isPanelVisible = computed(() => this.standalone() || this.isPanelManuallyOpen());\n\n readonly promptTags = computed<PromptTag[]>(() =>\n this.tags().map(tag => ({ id: tag.id, label: tag.label, autocomplete: tag.description ?? '' }))\n );\n\n readonly statusConfig = computed<StatusConfig | null>(() => {\n const l = this.labels();\n switch (this.effectiveStatus()) {\n case 'loading':\n return {\n variant: 'loading',\n alertType: 'info',\n messageKey: `${this.translationContext}WRITING`,\n actions: [{ label: l.cancel, onClick: () => this.handleCancel() }],\n };\n case 'success':\n return {\n variant: 'success',\n alertType: 'success',\n messageKey: `${this.translationContext}CONTENT_GENERATED`,\n actions: [\n { label: l.accept, onClick: () => this.handleAccept() },\n { label: l.makeChanges, onClick: () => this.handleRefine() },\n ],\n };\n case 'error':\n return {\n variant: 'error',\n alertType: 'error',\n messageKey: `${this.translationContext}ERROR_MESSAGE`,\n actions: [{ label: l.tryAgain, onClick: () => this.handleRefine() }],\n };\n default:\n return null;\n }\n });\n\n constructor() {\n effect(() => {\n const promptValue = this.promptValue();\n const isDefault = this.isDefaultMode();\n if (!isDefault) {\n untracked(() => this.promptModel.set(promptValue));\n }\n });\n\n effect(() => {\n const value = this.value();\n const isDefault = this.isDefaultMode();\n if (isDefault) {\n untracked(() => this.internalValue.set(value));\n }\n });\n }\n\n readonly promptModelData = computed<PromptData>(() => ({ text: this.promptModel(), files: [] }));\n\n handlePromptModelChange(value: PromptData | string): void {\n const text = typeof value === 'string' ? value : (value?.text ?? '');\n this.promptModel.set(text);\n this.promptChange.emit(text);\n }\n\n ngOnInit() {\n if (this.defaultOpen()) {\n this.isPanelManuallyOpen.set(true);\n }\n }\n\n togglePanel(): void {\n if (this.standalone()) {\n return;\n }\n this.isPanelManuallyOpen.update(current => !current);\n }\n\n handleValueInput(value: string): void {\n if (this.isDefaultMode()) {\n this.internalValue.set(value);\n }\n this.valueChange.emit(value);\n this.onChange(value);\n this.onTouched();\n }\n\n handlePromptSubmit(promptData?: PromptData | string): void {\n const prompt = typeof promptData === 'string' ? promptData : (promptData?.text ?? this.promptModel());\n this.promptModel.set(prompt);\n this.promptChange.emit(prompt);\n\n const submitEvent: WriteWithAiSubmitEvent = {\n prompt,\n content: this.effectiveValue(),\n metadata: this.metadata(),\n };\n\n if (this.isDefaultMode()) {\n this.executeDefaultFlow(prompt);\n }\n\n this.promptSubmit.emit(submitEvent);\n }\n\n handlePrimaryAction(): void {\n const status = this.effectiveStatus();\n if (status === 'loading') {\n this.handleCancel();\n } else if (status === 'success') {\n this.handleAccept();\n } else if (status === 'error') {\n this.handleRefine();\n }\n }\n\n handleSecondaryAction(): void {\n if (this.effectiveStatus() === 'success') {\n this.handleRefine();\n }\n }\n\n // --- ControlValueAccessor ---\n\n writeValue(value: string): void {\n const v = value ?? '';\n if (this.isDefaultMode()) {\n this.internalValue.set(v);\n }\n // For integration mode the host uses the [value] input directly,\n // but we still keep internal state in sync for CVA consumers.\n this.internalValue.set(v);\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.cvaDisabled.set(isDisabled);\n }\n\n // --- Private helpers ---\n\n private executeDefaultFlow(prompt: string): void {\n const config = this.llmConfig();\n if (!config) {\n return;\n }\n\n this.cancelRequest$.next();\n this.internalStatus.set('loading');\n\n this.llmService\n .generate({ sourceText: this.effectiveValue(), prompt, context: config.context }, config)\n .pipe(takeUntil(this.cancelRequest$), takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: result => {\n this.internalValue.set(result);\n this.valueChange.emit(result);\n this.onChange(result);\n this.internalStatus.set('success');\n },\n error: () => {\n this.internalStatus.set('error');\n },\n });\n }\n\n private handleCancel(): void {\n if (this.isDefaultMode()) {\n this.cancelRequest$.next();\n this.internalStatus.set('idle');\n }\n this.cancelPending.emit();\n }\n\n private handleAccept(): void {\n if (this.isDefaultMode()) {\n this.internalStatus.set('idle');\n this.promptModel.set('');\n }\n if (!this.standalone()) {\n this.isPanelManuallyOpen.set(false);\n }\n this.acceptResult.emit();\n }\n\n private handleRefine(): void {\n if (this.isDefaultMode()) {\n this.internalStatus.set('idle');\n }\n this.requestRefine.emit();\n }\n}\n","<div\n class=\"write-with-ai\"\n [class.write-with-ai--standalone]=\"standalone()\"\n [class.write-with-ai--full-height]=\"fullHeight()\"\n>\n @if (!standalone()) {\n <div class=\"write-with-ai__host\">\n <ui-field\n [label]=\"fieldLabel() || (translationContext + 'FIELD_LABEL' | uiTranslate | async)!\"\n type=\"textarea\"\n [showBottomContent]=\"false\"\n [fullHeight]=\"fullHeight()\"\n [borderless]=\"borderless()\"\n [disabled]=\"cvaDisabled()\"\n [ngModel]=\"effectiveValue()\"\n (ngModelChange)=\"handleValueInput($event)\"\n ></ui-field>\n <ui-button\n class=\"write-with-ai__cta\"\n variant=\"ghost-ai\"\n size=\"small\"\n [label]=\"(translationContext + 'AI_ASSIST' | uiTranslate | async)!\"\n iconName=\"Sparkle-in-line\"\n iconPosition=\"left\"\n [disabled]=\"isPanelVisible() || cvaDisabled()\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n </div>\n }\n\n @if (isPanelVisible()) {\n <section\n class=\"write-with-ai__panel\"\n [class.write-with-ai__panel--loading]=\"effectiveStatus() === 'loading'\"\n role=\"region\"\n [attr.aria-label]=\"(translationContext + 'AI_WRITING_ASSISTANT' | uiTranslate | async)!\"\n >\n <header class=\"write-with-ai__panel-header\">\n <div class=\"write-with-ai__panel-heading\">\n <div class=\"write-with-ai__title-row\">\n @if (effectiveStatus() !== 'loading') {\n <ui-icon class=\"write-with-ai__title-icon\" name=\"Sparkle-in-line\" color=\"ai\"></ui-icon>\n }\n <h4 class=\"write-with-ai__title\">\n {{ header() || (translationContext + 'HEADER' | uiTranslate | async) }}\n </h4>\n </div>\n @if (subheader()) {\n <p class=\"write-with-ai__subheader\">{{ subheader() }}</p>\n }\n </div>\n @if (!standalone()) {\n <ui-button\n variant=\"icon-button\"\n iconName=\"Close\"\n size=\"small\"\n [tooltip]=\"(translationContext + 'CLOSE' | uiTranslate | async)!\"\n [ariaLabel]=\"(translationContext + 'CLOSE_AI_ASSISTANT' | uiTranslate | async)!\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n }\n </header>\n\n @if (effectiveStatus() === 'idle') {\n <div class=\"write-with-ai__prompt\">\n <ui-prompt\n [ngModel]=\"promptModelData()\"\n (ngModelChange)=\"handlePromptModelChange($event)\"\n [tags]=\"promptTags()\"\n [placeholder]=\"placeholder() || (translationContext + 'PLACEHOLDER' | uiTranslate | async)!\"\n [showSendButton]=\"true\"\n (promptData)=\"handlePromptSubmit($event)\"\n ></ui-prompt>\n </div>\n }\n\n @if (statusConfig(); as cfg) {\n <ui-alert-banner\n [alertType]=\"cfg.alertType\"\n alertVariant=\"callout\"\n [message]=\"(cfg.messageKey | uiTranslate | async)!\"\n [includeDismissButton]=\"false\"\n [isLoading]=\"cfg.variant === 'loading'\"\n [hasIcon]=\"cfg.variant !== 'loading'\"\n [actions]=\"cfg.actions\"\n [isFullWidth]=\"true\"\n ></ui-alert-banner>\n }\n\n <div class=\"write-with-ai__caveat\">\n <ui-ai-caveat></ui-ai-caveat>\n </div>\n </section>\n }\n</div>\n","import { NgModule } from '@angular/core';\nimport { WriteWithAiComponent } from './write-with-ai.component';\n\n@NgModule({\n imports: [WriteWithAiComponent],\n exports: [WriteWithAiComponent],\n})\nexport class WriteWithAiComponentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,uBAAuB,GAAG,4CAA4C;AAC5E,MAAM,oBAAoB,GAAG,YAAY;AACzC,MAAM,oBAAoB,GAAG,kBAAkB;MAGlC,qBAAqB,CAAA;AAChC,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAA,CAAA,IAAI,GAAJ,IAAI;IAAe;IAEhD,QAAQ,CAAC,OAAmB,EAAE,MAA4B,EAAA;AACxD,QAAA,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YAClB,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC;QAC/C;AAEA,QAAA,IAAI,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE;YAChC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC;QACzC;QAEA,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC;IACzC;AAEQ,IAAA,eAAe,CAAC,MAA4B,EAAA;QAClD,OAAO,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,OAAO,IAAI,uBAAuB;IACrE;IAEQ,UAAU,CAAC,OAAmB,EAAE,MAA4B,EAAA;QAClE,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;AAC7C,QAAA,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,oBAAoB;AAClD,QAAA,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC;AAEpG,QAAA,MAAM,IAAI,GAAG;YACX,KAAK;AACL,YAAA,QAAQ,EAAE;AACR,gBAAA,EAAE,IAAI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A,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,0BAA0B,CAAC;AACnD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;qBACF,EAAA,OAAA,EACQ;wBACP,SAAS;wBACT,WAAW;wBACX,oBAAoB;wBACpB,qBAAqB;wBACrB,mBAAmB;wBACnB,YAAY;wBACZ,uBAAuB;wBACvB,0BAA0B;wBAC1B,eAAe;AAChB,qBAAA,EAAA,QAAA,EAAA,y6GAAA,EAAA,MAAA,EAAA,CAAA,22GAAA,CAAA,EAAA;;;MEzDU,0BAA0B,CAAA;+GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAA1B,0BAA0B,EAAA,OAAA,EAAA,CAH3B,oBAAoB,CAAA,EAAA,OAAA,EAAA,CACpB,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAEnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,YAH3B,oBAAoB,CAAA,EAAA,CAAA,CAAA;;4FAGnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAChC,iBAAA;;;ACND;;AAEG;;;;"}
@@ -144,6 +144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
144
144
  * - @testgorilla/tgo-ui/components/spider-chart
145
145
  * - @testgorilla/tgo-ui/components/universal-skills
146
146
  * - @testgorilla/tgo-ui/components/audio-waveform
147
+ * - @testgorilla/tgo-ui/components/write-with-ai
147
148
  */
148
149
  // Core utilities (re-exported for backward compatibility)
149
150
 
@@ -1 +1 @@
1
- {"version":3,"file":"testgorilla-tgo-ui.mjs","sources":["../../../projects/tgo-canopy-ui/components/deprecated-paginator/deprecated-paginator.component.ts","../../../projects/tgo-canopy-ui/components/deprecated-paginator/deprecated-paginator.component.html","../../../projects/tgo-canopy-ui/components/deprecated-paginator/deprecated-paginator.component.module.ts","../../../projects/tgo-canopy-ui/public-api.ts","../../../projects/tgo-canopy-ui/testgorilla-tgo-ui.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { PageEvent } from '@angular/material/paginator';\n\n@Component({\n selector: 'ui-paginator',\n templateUrl: './deprecated-paginator.component.html',\n styleUrls: ['./deprecated-paginator.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class DeprecatedPaginatorComponent {\n // TODO: Some properties and methods are ignored on purpose because of a current issue with compodoc and angular 13\n // https://github.com/StoryFnbookjs/StoryFnbook/issues/16865\n // https://github.com/StoryFnbookjs/StoryFnbook/issues/17004\n\n /**\n * Paginator size options\n *\n * @type {number[]}\n * @memberof PaginatorComponent\n */\n readonly pageSizeOptions = [10, 25, 50];\n\n /**\n * Data length\n *\n * @type {number}\n * @memberof PaginatorComponent\n */\n @Input() length = 0;\n\n /**\n * Default page size\n *\n * @type {number}\n * @memberof PaginatorComponent\n */\n @Input() defaultPageSize = 25;\n\n /**\n * @ignore\n */\n @Output() paginatorChangedEvent: EventEmitter<PageEvent> = new EventEmitter<PageEvent>();\n\n constructor() {}\n\n paginatorChanged(paginator: PageEvent) {\n this.paginatorChangedEvent.emit(paginator);\n }\n}\n","<mat-paginator\n [length]=\"length\"\n [pageSize]=\"defaultPageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"paginatorChanged($event)\"\n>\n</mat-paginator>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatPaginatorModule } from '@angular/material/paginator';\nimport { DeprecatedPaginatorComponent } from './deprecated-paginator.component';\n\n@NgModule({\n declarations: [DeprecatedPaginatorComponent],\n imports: [CommonModule, MatPaginatorModule],\n exports: [DeprecatedPaginatorComponent],\n providers: [],\n})\nexport class DeprecatedPaginatorComponentModule {}\n","/**\n * @testgorilla/tgo-ui Public API\n *\n * IMPORTANT: For optimal tree-shaking, import directly from entry points:\n *\n * @example\n * import { ButtonComponent } from '@testgorilla/tgo-ui/components/button';\n * import { IconComponent } from '@testgorilla/tgo-ui/components/icon';\n * import { DialogService } from '@testgorilla/tgo-ui/components/dialog';\n *\n * Available entry points:\n * - @testgorilla/tgo-ui/components/core (shared utilities, pipes, directives)\n * - @testgorilla/tgo-ui/components/icon\n * - @testgorilla/tgo-ui/components/badge\n * - @testgorilla/tgo-ui/components/button\n * - @testgorilla/tgo-ui/components/card\n * - @testgorilla/tgo-ui/components/checkbox\n * - @testgorilla/tgo-ui/components/dropdown\n * - @testgorilla/tgo-ui/components/field\n * - @testgorilla/tgo-ui/components/inline-field\n * - @testgorilla/tgo-ui/components/toggle\n * - @testgorilla/tgo-ui/components/radio-button\n * - @testgorilla/tgo-ui/components/slider\n * - @testgorilla/tgo-ui/components/rating\n * - @testgorilla/tgo-ui/components/scale\n * - @testgorilla/tgo-ui/components/autocomplete\n * - @testgorilla/tgo-ui/components/divider\n * - @testgorilla/tgo-ui/components/skeleton\n * - @testgorilla/tgo-ui/components/elevation-shadow\n * - @testgorilla/tgo-ui/components/tooltip\n * - @testgorilla/tgo-ui/components/spinner\n * - @testgorilla/tgo-ui/components/progress-bar\n * - @testgorilla/tgo-ui/components/radial-progress\n * - @testgorilla/tgo-ui/components/tag\n * - @testgorilla/tgo-ui/components/avatar\n * - @testgorilla/tgo-ui/components/logo\n * - @testgorilla/tgo-ui/components/empty-state\n * - @testgorilla/tgo-ui/components/filter-button\n * - @testgorilla/tgo-ui/components/segmented-button\n * - @testgorilla/tgo-ui/components/segmented-bar\n * - @testgorilla/tgo-ui/components/paginator\n * - @testgorilla/tgo-ui/components/validation-error\n * - @testgorilla/tgo-ui/components/accordion\n * - @testgorilla/tgo-ui/components/alert-banner\n * - @testgorilla/tgo-ui/components/breadcrumb\n * - @testgorilla/tgo-ui/components/navbar\n * - @testgorilla/tgo-ui/components/page-header\n * - @testgorilla/tgo-ui/components/tabs\n * - @testgorilla/tgo-ui/components/stepper\n * - @testgorilla/tgo-ui/components/dialog\n * - @testgorilla/tgo-ui/components/snackbar\n * - @testgorilla/tgo-ui/components/side-panel\n * - @testgorilla/tgo-ui/components/side-sheet\n * - @testgorilla/tgo-ui/components/table\n * - @testgorilla/tgo-ui/components/datepicker\n * - @testgorilla/tgo-ui/components/ai-audio-circle\n * - @testgorilla/tgo-ui/components/ai-caveat\n * - @testgorilla/tgo-ui/components/ai-feedback\n * - @testgorilla/tgo-ui/components/checklist\n * - @testgorilla/tgo-ui/components/file-upload\n * - @testgorilla/tgo-ui/components/multi-input\n * - @testgorilla/tgo-ui/components/overflow-menu\n * - @testgorilla/tgo-ui/components/password-criteria\n * - @testgorilla/tgo-ui/components/password-strength\n * - @testgorilla/tgo-ui/components/phone-input\n * - @testgorilla/tgo-ui/components/prompt\n * - @testgorilla/tgo-ui/components/scale-table\n * - @testgorilla/tgo-ui/components/icon-label\n * - @testgorilla/tgo-ui/components/media-card\n * - @testgorilla/tgo-ui/components/media-dialog\n * - @testgorilla/tgo-ui/components/selectable-card\n * - @testgorilla/tgo-ui/components/donut-chart\n * - @testgorilla/tgo-ui/components/gaussian-chart\n * - @testgorilla/tgo-ui/components/spider-chart\n * - @testgorilla/tgo-ui/components/universal-skills\n * - @testgorilla/tgo-ui/components/audio-waveform\n */\n\n// Core utilities (re-exported for backward compatibility)\nexport * from '@testgorilla/tgo-ui/components/core';\n\n// Legacy: Deprecated Paginator (not an entry point)\nexport * from './components/deprecated-paginator/deprecated-paginator.component';\nexport * from './components/deprecated-paginator/deprecated-paginator.component.module';\n","/**\n * Generated bundle index. Do not edit.\n */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components/deprecated-paginator/deprecated-paginator.component.ts","../../../projects/tgo-canopy-ui/components/deprecated-paginator/deprecated-paginator.component.html","../../../projects/tgo-canopy-ui/components/deprecated-paginator/deprecated-paginator.component.module.ts","../../../projects/tgo-canopy-ui/public-api.ts","../../../projects/tgo-canopy-ui/testgorilla-tgo-ui.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { PageEvent } from '@angular/material/paginator';\n\n@Component({\n selector: 'ui-paginator',\n templateUrl: './deprecated-paginator.component.html',\n styleUrls: ['./deprecated-paginator.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class DeprecatedPaginatorComponent {\n // TODO: Some properties and methods are ignored on purpose because of a current issue with compodoc and angular 13\n // https://github.com/StoryFnbookjs/StoryFnbook/issues/16865\n // https://github.com/StoryFnbookjs/StoryFnbook/issues/17004\n\n /**\n * Paginator size options\n *\n * @type {number[]}\n * @memberof PaginatorComponent\n */\n readonly pageSizeOptions = [10, 25, 50];\n\n /**\n * Data length\n *\n * @type {number}\n * @memberof PaginatorComponent\n */\n @Input() length = 0;\n\n /**\n * Default page size\n *\n * @type {number}\n * @memberof PaginatorComponent\n */\n @Input() defaultPageSize = 25;\n\n /**\n * @ignore\n */\n @Output() paginatorChangedEvent: EventEmitter<PageEvent> = new EventEmitter<PageEvent>();\n\n constructor() {}\n\n paginatorChanged(paginator: PageEvent) {\n this.paginatorChangedEvent.emit(paginator);\n }\n}\n","<mat-paginator\n [length]=\"length\"\n [pageSize]=\"defaultPageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"paginatorChanged($event)\"\n>\n</mat-paginator>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatPaginatorModule } from '@angular/material/paginator';\nimport { DeprecatedPaginatorComponent } from './deprecated-paginator.component';\n\n@NgModule({\n declarations: [DeprecatedPaginatorComponent],\n imports: [CommonModule, MatPaginatorModule],\n exports: [DeprecatedPaginatorComponent],\n providers: [],\n})\nexport class DeprecatedPaginatorComponentModule {}\n","/**\n * @testgorilla/tgo-ui Public API\n *\n * IMPORTANT: For optimal tree-shaking, import directly from entry points:\n *\n * @example\n * import { ButtonComponent } from '@testgorilla/tgo-ui/components/button';\n * import { IconComponent } from '@testgorilla/tgo-ui/components/icon';\n * import { DialogService } from '@testgorilla/tgo-ui/components/dialog';\n *\n * Available entry points:\n * - @testgorilla/tgo-ui/components/core (shared utilities, pipes, directives)\n * - @testgorilla/tgo-ui/components/icon\n * - @testgorilla/tgo-ui/components/badge\n * - @testgorilla/tgo-ui/components/button\n * - @testgorilla/tgo-ui/components/card\n * - @testgorilla/tgo-ui/components/checkbox\n * - @testgorilla/tgo-ui/components/dropdown\n * - @testgorilla/tgo-ui/components/field\n * - @testgorilla/tgo-ui/components/inline-field\n * - @testgorilla/tgo-ui/components/toggle\n * - @testgorilla/tgo-ui/components/radio-button\n * - @testgorilla/tgo-ui/components/slider\n * - @testgorilla/tgo-ui/components/rating\n * - @testgorilla/tgo-ui/components/scale\n * - @testgorilla/tgo-ui/components/autocomplete\n * - @testgorilla/tgo-ui/components/divider\n * - @testgorilla/tgo-ui/components/skeleton\n * - @testgorilla/tgo-ui/components/elevation-shadow\n * - @testgorilla/tgo-ui/components/tooltip\n * - @testgorilla/tgo-ui/components/spinner\n * - @testgorilla/tgo-ui/components/progress-bar\n * - @testgorilla/tgo-ui/components/radial-progress\n * - @testgorilla/tgo-ui/components/tag\n * - @testgorilla/tgo-ui/components/avatar\n * - @testgorilla/tgo-ui/components/logo\n * - @testgorilla/tgo-ui/components/empty-state\n * - @testgorilla/tgo-ui/components/filter-button\n * - @testgorilla/tgo-ui/components/segmented-button\n * - @testgorilla/tgo-ui/components/segmented-bar\n * - @testgorilla/tgo-ui/components/paginator\n * - @testgorilla/tgo-ui/components/validation-error\n * - @testgorilla/tgo-ui/components/accordion\n * - @testgorilla/tgo-ui/components/alert-banner\n * - @testgorilla/tgo-ui/components/breadcrumb\n * - @testgorilla/tgo-ui/components/navbar\n * - @testgorilla/tgo-ui/components/page-header\n * - @testgorilla/tgo-ui/components/tabs\n * - @testgorilla/tgo-ui/components/stepper\n * - @testgorilla/tgo-ui/components/dialog\n * - @testgorilla/tgo-ui/components/snackbar\n * - @testgorilla/tgo-ui/components/side-panel\n * - @testgorilla/tgo-ui/components/side-sheet\n * - @testgorilla/tgo-ui/components/table\n * - @testgorilla/tgo-ui/components/datepicker\n * - @testgorilla/tgo-ui/components/ai-audio-circle\n * - @testgorilla/tgo-ui/components/ai-caveat\n * - @testgorilla/tgo-ui/components/ai-feedback\n * - @testgorilla/tgo-ui/components/checklist\n * - @testgorilla/tgo-ui/components/file-upload\n * - @testgorilla/tgo-ui/components/multi-input\n * - @testgorilla/tgo-ui/components/overflow-menu\n * - @testgorilla/tgo-ui/components/password-criteria\n * - @testgorilla/tgo-ui/components/password-strength\n * - @testgorilla/tgo-ui/components/phone-input\n * - @testgorilla/tgo-ui/components/prompt\n * - @testgorilla/tgo-ui/components/scale-table\n * - @testgorilla/tgo-ui/components/icon-label\n * - @testgorilla/tgo-ui/components/media-card\n * - @testgorilla/tgo-ui/components/media-dialog\n * - @testgorilla/tgo-ui/components/selectable-card\n * - @testgorilla/tgo-ui/components/donut-chart\n * - @testgorilla/tgo-ui/components/gaussian-chart\n * - @testgorilla/tgo-ui/components/spider-chart\n * - @testgorilla/tgo-ui/components/universal-skills\n * - @testgorilla/tgo-ui/components/audio-waveform\n * - @testgorilla/tgo-ui/components/write-with-ai\n */\n\n// Core utilities (re-exported for backward compatibility)\nexport * from '@testgorilla/tgo-ui/components/core';\n\n// Legacy: Deprecated Paginator (not an entry point)\nexport * from './components/deprecated-paginator/deprecated-paginator.component';\nexport * from './components/deprecated-paginator/deprecated-paginator.component.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAUa,4BAA4B,CAAA;AAkCvC,IAAA,WAAA,GAA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