@testgorilla/tgo-ui 11.22.3 → 12.0.1
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/testgorilla-tgo-ui-components-accordion.mjs +335 -229
- package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs +547 -465
- package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs +160 -75
- package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs +678 -278
- package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs +337 -274
- package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs +351 -192
- package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs +1950 -960
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs +1206 -1044
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs +328 -182
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-badge.mjs +383 -203
- package/fesm2022/testgorilla-tgo-ui-components-badge.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs +553 -261
- package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-button.mjs +709 -739
- package/fesm2022/testgorilla-tgo-ui-components-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs +219 -184
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs +515 -458
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs +423 -162
- package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs +10784 -10996
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs +810 -533
- package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs +473 -116
- package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs +1149 -540
- package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-divider.mjs +148 -84
- package/fesm2022/testgorilla-tgo-ui-components-divider.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs +239 -142
- package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs +599 -467
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs +126 -70
- package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs +324 -329
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs +969 -648
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs +553 -419
- package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs +847 -452
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs +398 -302
- package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs +162 -95
- package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-icon.mjs +1825 -1795
- package/fesm2022/testgorilla-tgo-ui-components-icon.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs +1018 -672
- package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs +758 -368
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs +204 -212
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs +183 -48
- package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs +243 -79
- package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs +751 -361
- package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs +1122 -385
- package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs +689 -413
- package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs +227 -92
- package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs +174 -113
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs +367 -165
- package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs +253 -118
- package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs +730 -444
- package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs +533 -221
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs +274 -76
- package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs +184 -124
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs +1223 -574
- package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs +249 -160
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs +447 -439
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs +226 -150
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs +255 -67
- package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs +205 -162
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs +245 -153
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs +274 -140
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs +319 -147
- package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs +286 -84
- package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs +660 -208
- package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs +579 -320
- package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs +419 -200
- package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs +132 -80
- package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs +741 -390
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs +455 -329
- package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs +543 -514
- package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs +193 -104
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs +760 -524
- package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-table.mjs +714 -415
- package/fesm2022/testgorilla-tgo-ui-components-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs +847 -438
- package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs +535 -275
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs +316 -246
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs +404 -284
- package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs +664 -383
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs +201 -112
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs +1014 -458
- package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui.mjs +147 -155
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/mcp/catalog.json +1 -1
- package/package.json +16 -17
- package/projects/tgo-canopy-ui/theme/_palette.scss +23 -18
- package/types/testgorilla-tgo-ui-components-accordion.d.ts +214 -158
- package/types/testgorilla-tgo-ui-components-ai-audio-circle.d.ts +93 -69
- package/types/testgorilla-tgo-ui-components-ai-caveat.d.ts +37 -34
- package/types/testgorilla-tgo-ui-components-ai-feedback.d.ts +126 -86
- package/types/testgorilla-tgo-ui-components-alert-banner.d.ts +260 -185
- package/types/testgorilla-tgo-ui-components-audio-waveform.d.ts +96 -67
- package/types/testgorilla-tgo-ui-components-autocomplete-v2.d.ts +455 -256
- package/types/testgorilla-tgo-ui-components-autocomplete.d.ts +545 -390
- package/types/testgorilla-tgo-ui-components-avatar.d.ts +128 -102
- package/types/testgorilla-tgo-ui-components-badge.d.ts +191 -139
- package/types/testgorilla-tgo-ui-components-breadcrumb.d.ts +100 -62
- package/types/testgorilla-tgo-ui-components-button.d.ts +479 -340
- package/types/testgorilla-tgo-ui-components-card.d.ts +153 -114
- package/types/testgorilla-tgo-ui-components-checkbox.d.ts +299 -223
- package/types/testgorilla-tgo-ui-components-checklist.d.ts +149 -97
- package/types/testgorilla-tgo-ui-components-core.d.ts +307 -295
- package/types/testgorilla-tgo-ui-components-datepicker.d.ts +404 -299
- package/types/testgorilla-tgo-ui-components-device-control.d.ts +151 -81
- package/types/testgorilla-tgo-ui-components-dialog.d.ts +442 -329
- package/types/testgorilla-tgo-ui-components-divider.d.ts +64 -51
- package/types/testgorilla-tgo-ui-components-donut-chart.d.ts +41 -37
- package/types/testgorilla-tgo-ui-components-dropdown.d.ts +335 -241
- package/types/testgorilla-tgo-ui-components-elevation-shadow.d.ts +48 -43
- package/types/testgorilla-tgo-ui-components-empty-state.d.ts +317 -215
- package/types/testgorilla-tgo-ui-components-field.d.ts +559 -388
- package/types/testgorilla-tgo-ui-components-file-upload.d.ts +230 -168
- package/types/testgorilla-tgo-ui-components-filter-button.d.ts +263 -206
- package/types/testgorilla-tgo-ui-components-gaussian-chart.d.ts +107 -94
- package/types/testgorilla-tgo-ui-components-icon-label.d.ts +84 -61
- package/types/testgorilla-tgo-ui-components-icon.d.ts +137 -110
- package/types/testgorilla-tgo-ui-components-infinite-scroll-table.d.ts +429 -303
- package/types/testgorilla-tgo-ui-components-inline-field.d.ts +338 -254
- package/types/testgorilla-tgo-ui-components-logo.d.ts +119 -101
- package/types/testgorilla-tgo-ui-components-media-card.d.ts +51 -35
- package/types/testgorilla-tgo-ui-components-media-dialog.d.ts +40 -45
- package/types/testgorilla-tgo-ui-components-multi-input.d.ts +283 -194
- package/types/testgorilla-tgo-ui-components-navbar.d.ts +326 -208
- package/types/testgorilla-tgo-ui-components-overflow-menu.d.ts +276 -204
- package/types/testgorilla-tgo-ui-components-page-header.d.ts +67 -50
- package/types/testgorilla-tgo-ui-components-paginator.d.ts +103 -70
- package/types/testgorilla-tgo-ui-components-password-criteria.d.ts +67 -58
- package/types/testgorilla-tgo-ui-components-password-strength.d.ts +66 -57
- package/types/testgorilla-tgo-ui-components-phone-input.d.ts +217 -175
- package/types/testgorilla-tgo-ui-components-popover.d.ts +94 -53
- package/types/testgorilla-tgo-ui-components-popup-tip.d.ts +81 -44
- package/types/testgorilla-tgo-ui-components-progress-bar.d.ts +115 -84
- package/types/testgorilla-tgo-ui-components-prompt.d.ts +315 -219
- package/types/testgorilla-tgo-ui-components-radial-progress.d.ts +146 -107
- package/types/testgorilla-tgo-ui-components-radio-button.d.ts +296 -219
- package/types/testgorilla-tgo-ui-components-rating.d.ts +134 -95
- package/types/testgorilla-tgo-ui-components-scale-table.d.ts +67 -47
- package/types/testgorilla-tgo-ui-components-scale.d.ts +91 -66
- package/types/testgorilla-tgo-ui-components-segmented-bar.d.ts +118 -89
- package/types/testgorilla-tgo-ui-components-segmented-button.d.ts +107 -80
- package/types/testgorilla-tgo-ui-components-segmented-toggle.d.ts +138 -105
- package/types/testgorilla-tgo-ui-components-selectable-card.d.ts +90 -56
- package/types/testgorilla-tgo-ui-components-side-navigation.d.ts +183 -107
- package/types/testgorilla-tgo-ui-components-side-panel.d.ts +156 -145
- package/types/testgorilla-tgo-ui-components-side-sheet.d.ts +98 -89
- package/types/testgorilla-tgo-ui-components-skeleton.d.ts +50 -33
- package/types/testgorilla-tgo-ui-components-slider.d.ts +278 -198
- package/types/testgorilla-tgo-ui-components-snackbar.d.ts +211 -159
- package/types/testgorilla-tgo-ui-components-spider-chart.d.ts +140 -121
- package/types/testgorilla-tgo-ui-components-spinner.d.ts +93 -72
- package/types/testgorilla-tgo-ui-components-stepper.d.ts +480 -338
- package/types/testgorilla-tgo-ui-components-table.d.ts +280 -233
- package/types/testgorilla-tgo-ui-components-tabs.d.ts +282 -183
- package/types/testgorilla-tgo-ui-components-tag.d.ts +266 -193
- package/types/testgorilla-tgo-ui-components-toggle.d.ts +180 -132
- package/types/testgorilla-tgo-ui-components-tooltip.d.ts +142 -105
- package/types/testgorilla-tgo-ui-components-universal-skills.d.ts +165 -144
- package/types/testgorilla-tgo-ui-components-validation-error.d.ts +70 -51
- package/types/testgorilla-tgo-ui-components-write-with-ai.d.ts +210 -133
- package/types/testgorilla-tgo-ui.d.ts +52 -45
|
@@ -1,146 +1,223 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { OnInit } from
|
|
3
|
-
import { ControlValueAccessor } from
|
|
4
|
-
import { AlertBannerAction } from
|
|
5
|
-
import { AlertBarType } from
|
|
6
|
-
import {
|
|
7
|
-
import { HttpClient } from
|
|
8
|
-
import { Observable } from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
description?: string;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { OnInit } from "@angular/core";
|
|
3
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
4
|
+
import { AlertBannerAction } from "@testgorilla/tgo-ui/components/alert-banner";
|
|
5
|
+
import { AlertBarType } from "@testgorilla/tgo-ui/components/core";
|
|
6
|
+
import { PromptData, PromptTag } from "@testgorilla/tgo-ui/components/prompt";
|
|
7
|
+
import { HttpClient } from "@angular/common/http";
|
|
8
|
+
import { Observable } from "rxjs";
|
|
9
|
+
export type WriteWithAiStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
10
|
+
export interface WriteWithAiTagOption {
|
|
11
|
+
id: number;
|
|
12
|
+
label: string;
|
|
13
|
+
description?: string;
|
|
15
14
|
}
|
|
16
|
-
interface WriteWithAiLlmConfig {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
export interface WriteWithAiLlmConfig {
|
|
16
|
+
default?: boolean;
|
|
17
|
+
context?: string;
|
|
18
|
+
apiKey?: string;
|
|
19
|
+
model?: string;
|
|
20
|
+
provider?: 'openai' | 'openai-compatible' | 'gemini';
|
|
21
|
+
endpoint?: string;
|
|
22
|
+
baseUrl?: string;
|
|
24
23
|
}
|
|
25
24
|
/**
|
|
26
25
|
* Emitted by promptSubmit — gives the host everything needed
|
|
27
26
|
* to call its own backend without stitching values together.
|
|
28
27
|
*/
|
|
29
|
-
interface WriteWithAiSubmitEvent {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
export interface WriteWithAiSubmitEvent {
|
|
29
|
+
prompt: string;
|
|
30
|
+
content: string;
|
|
31
|
+
metadata: Record<string, unknown>;
|
|
33
32
|
}
|
|
34
|
-
|
|
35
33
|
interface StatusConfig {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
variant: 'loading' | 'success' | 'error';
|
|
35
|
+
alertType: AlertBarType;
|
|
36
|
+
messageKey: string;
|
|
37
|
+
actions: AlertBannerAction[];
|
|
40
38
|
}
|
|
41
|
-
declare class WriteWithAiComponent implements OnInit, ControlValueAccessor {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
39
|
+
export declare class WriteWithAiComponent implements OnInit, ControlValueAccessor {
|
|
40
|
+
readonly value: import("@angular/core").InputSignal<string>;
|
|
41
|
+
readonly standalone: import("@angular/core").InputSignal<boolean>;
|
|
42
|
+
readonly defaultOpen: import("@angular/core").InputSignal<boolean>;
|
|
43
|
+
readonly fieldLabel: import("@angular/core").InputSignal<string>;
|
|
44
|
+
readonly header: import("@angular/core").InputSignal<string>;
|
|
45
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
46
|
+
readonly promptValue: import("@angular/core").InputSignal<string>;
|
|
47
|
+
readonly tags: import("@angular/core").InputSignal<WriteWithAiTagOption[]>;
|
|
48
|
+
readonly status: import("@angular/core").InputSignal<WriteWithAiStatus>;
|
|
49
|
+
readonly subheader: import("@angular/core").InputSignal<string | undefined>;
|
|
50
|
+
readonly llmConfig: import("@angular/core").InputSignal<WriteWithAiLlmConfig | undefined>;
|
|
51
|
+
/** Layout: make the inner field stretch to fill its container height. */
|
|
52
|
+
readonly fullHeight: import("@angular/core").InputSignal<boolean>;
|
|
53
|
+
/** Layout: render the inner field without a visible border. */
|
|
54
|
+
readonly borderless: import("@angular/core").InputSignal<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* When true, hides the free-text `ui-prompt` and renders the `tags` chips on their own.
|
|
57
|
+
* Clicking a chip submits its label as the prompt via `promptSubmit`.
|
|
58
|
+
* Use this when the host backend only accepts a constrained set of prompts (e.g. an enum).
|
|
59
|
+
*/
|
|
60
|
+
readonly tagsOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
61
|
+
/** Opaque host metadata emitted with promptSubmit for backend integrations. */
|
|
62
|
+
readonly metadata: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
63
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
64
|
+
readonly promptChange: import("@angular/core").OutputEmitterRef<string>;
|
|
65
|
+
readonly promptSubmit: import("@angular/core").OutputEmitterRef<WriteWithAiSubmitEvent>;
|
|
66
|
+
readonly cancelPending: import("@angular/core").OutputEmitterRef<void>;
|
|
67
|
+
readonly acceptResult: import("@angular/core").OutputEmitterRef<void>;
|
|
68
|
+
readonly requestRefine: import("@angular/core").OutputEmitterRef<void>;
|
|
69
|
+
private readonly destroyRef;
|
|
70
|
+
private readonly llmService;
|
|
71
|
+
private readonly uiTranslate;
|
|
72
|
+
private readonly promptModel;
|
|
73
|
+
private readonly isPanelManuallyOpen;
|
|
74
|
+
private readonly internalStatus;
|
|
75
|
+
private readonly internalValue;
|
|
76
|
+
private readonly cancelRequest$;
|
|
77
|
+
/** ControlValueAccessor: whether the form control is disabled. */
|
|
78
|
+
readonly cvaDisabled: import("@angular/core").WritableSignal<boolean>;
|
|
79
|
+
/** Tag carousel (tagsOnly mode): scroll container + arrow-enabled state. */
|
|
80
|
+
private readonly tagsScrollRef;
|
|
81
|
+
readonly canScrollTagsLeft: import("@angular/core").WritableSignal<boolean>;
|
|
82
|
+
readonly canScrollTagsRight: import("@angular/core").WritableSignal<boolean>;
|
|
83
|
+
/** ControlValueAccessor callbacks. */
|
|
84
|
+
private onChange;
|
|
85
|
+
private onTouched;
|
|
86
|
+
readonly translationContext = "WRITE_WITH_AI.";
|
|
87
|
+
private readonly labels;
|
|
88
|
+
readonly isDefaultMode: import("@angular/core").Signal<boolean>;
|
|
89
|
+
readonly effectiveStatus: import("@angular/core").Signal<WriteWithAiStatus>;
|
|
90
|
+
readonly effectiveValue: import("@angular/core").Signal<string>;
|
|
91
|
+
readonly isPanelVisible: import("@angular/core").Signal<boolean>;
|
|
92
|
+
readonly promptTags: import("@angular/core").Signal<PromptTag[]>;
|
|
93
|
+
readonly statusConfig: import("@angular/core").Signal<StatusConfig | null>;
|
|
94
|
+
constructor();
|
|
95
|
+
readonly promptModelData: import("@angular/core").Signal<PromptData>;
|
|
96
|
+
handlePromptModelChange(value: PromptData | string): void;
|
|
97
|
+
ngOnInit(): void;
|
|
98
|
+
togglePanel(): void;
|
|
99
|
+
handleValueInput(value: string): void;
|
|
100
|
+
handlePromptSubmit(promptData?: PromptData | string): void;
|
|
101
|
+
handleTagClick(tag: WriteWithAiTagOption): void;
|
|
102
|
+
measureTagScroll(el: HTMLElement): void;
|
|
103
|
+
scrollTags(el: HTMLElement, direction: -1 | 1): void;
|
|
104
|
+
handlePrimaryAction(): void;
|
|
105
|
+
handleSecondaryAction(): void;
|
|
106
|
+
writeValue(value: string): void;
|
|
107
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
108
|
+
registerOnTouched(fn: () => void): void;
|
|
109
|
+
setDisabledState(isDisabled: boolean): void;
|
|
110
|
+
private executeDefaultFlow;
|
|
111
|
+
private handleCancel;
|
|
112
|
+
private handleAccept;
|
|
113
|
+
private handleRefine;
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WriteWithAiComponent, never>;
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WriteWithAiComponent, "ui-write-with-ai", never, {
|
|
116
|
+
"value": {
|
|
117
|
+
"alias": "value";
|
|
118
|
+
"required": false;
|
|
119
|
+
"isSignal": true;
|
|
120
|
+
};
|
|
121
|
+
"standalone": {
|
|
122
|
+
"alias": "standalone";
|
|
123
|
+
"required": false;
|
|
124
|
+
"isSignal": true;
|
|
125
|
+
};
|
|
126
|
+
"defaultOpen": {
|
|
127
|
+
"alias": "defaultOpen";
|
|
128
|
+
"required": false;
|
|
129
|
+
"isSignal": true;
|
|
130
|
+
};
|
|
131
|
+
"fieldLabel": {
|
|
132
|
+
"alias": "fieldLabel";
|
|
133
|
+
"required": false;
|
|
134
|
+
"isSignal": true;
|
|
135
|
+
};
|
|
136
|
+
"header": {
|
|
137
|
+
"alias": "header";
|
|
138
|
+
"required": false;
|
|
139
|
+
"isSignal": true;
|
|
140
|
+
};
|
|
141
|
+
"placeholder": {
|
|
142
|
+
"alias": "placeholder";
|
|
143
|
+
"required": false;
|
|
144
|
+
"isSignal": true;
|
|
145
|
+
};
|
|
146
|
+
"promptValue": {
|
|
147
|
+
"alias": "promptValue";
|
|
148
|
+
"required": false;
|
|
149
|
+
"isSignal": true;
|
|
150
|
+
};
|
|
151
|
+
"tags": {
|
|
152
|
+
"alias": "tags";
|
|
153
|
+
"required": false;
|
|
154
|
+
"isSignal": true;
|
|
155
|
+
};
|
|
156
|
+
"status": {
|
|
157
|
+
"alias": "status";
|
|
158
|
+
"required": false;
|
|
159
|
+
"isSignal": true;
|
|
160
|
+
};
|
|
161
|
+
"subheader": {
|
|
162
|
+
"alias": "subheader";
|
|
163
|
+
"required": false;
|
|
164
|
+
"isSignal": true;
|
|
165
|
+
};
|
|
166
|
+
"llmConfig": {
|
|
167
|
+
"alias": "llmConfig";
|
|
168
|
+
"required": false;
|
|
169
|
+
"isSignal": true;
|
|
170
|
+
};
|
|
171
|
+
"fullHeight": {
|
|
172
|
+
"alias": "fullHeight";
|
|
173
|
+
"required": false;
|
|
174
|
+
"isSignal": true;
|
|
175
|
+
};
|
|
176
|
+
"borderless": {
|
|
177
|
+
"alias": "borderless";
|
|
178
|
+
"required": false;
|
|
179
|
+
"isSignal": true;
|
|
180
|
+
};
|
|
181
|
+
"tagsOnly": {
|
|
182
|
+
"alias": "tagsOnly";
|
|
183
|
+
"required": false;
|
|
184
|
+
"isSignal": true;
|
|
185
|
+
};
|
|
186
|
+
"metadata": {
|
|
187
|
+
"alias": "metadata";
|
|
188
|
+
"required": false;
|
|
189
|
+
"isSignal": true;
|
|
190
|
+
};
|
|
191
|
+
}, {
|
|
192
|
+
"valueChange": "valueChange";
|
|
193
|
+
"promptChange": "promptChange";
|
|
194
|
+
"promptSubmit": "promptSubmit";
|
|
195
|
+
"cancelPending": "cancelPending";
|
|
196
|
+
"acceptResult": "acceptResult";
|
|
197
|
+
"requestRefine": "requestRefine";
|
|
198
|
+
}, never, never, true, never>;
|
|
118
199
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<WriteWithAiComponentModule>;
|
|
200
|
+
export declare class WriteWithAiComponentModule {
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WriteWithAiComponentModule, never>;
|
|
202
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WriteWithAiComponentModule, never, [typeof WriteWithAiComponent], [typeof WriteWithAiComponent]>;
|
|
203
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WriteWithAiComponentModule>;
|
|
124
204
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
context?: string;
|
|
205
|
+
export interface LlmRequest {
|
|
206
|
+
sourceText: string;
|
|
207
|
+
prompt: string;
|
|
208
|
+
context?: string;
|
|
130
209
|
}
|
|
131
|
-
declare class WriteWithAiLlmService {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
210
|
+
export declare class WriteWithAiLlmService {
|
|
211
|
+
private readonly http;
|
|
212
|
+
constructor(http: HttpClient);
|
|
213
|
+
generate(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string>;
|
|
214
|
+
private resolveEndpoint;
|
|
215
|
+
private callOpenAi;
|
|
216
|
+
private callGemini;
|
|
217
|
+
private simulateResponse;
|
|
218
|
+
private generatePlaceholderContent;
|
|
219
|
+
private buildSystemMessage;
|
|
220
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WriteWithAiLlmService, never>;
|
|
221
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
143
222
|
}
|
|
144
|
-
|
|
145
|
-
export { WriteWithAiComponent, WriteWithAiComponentModule, WriteWithAiLlmService };
|
|
146
|
-
export type { LlmRequest, WriteWithAiLlmConfig, WriteWithAiStatus, WriteWithAiSubmitEvent, WriteWithAiTagOption };
|
|
223
|
+
export {};
|
|
@@ -1,46 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { EventEmitter } from "@angular/core";
|
|
3
|
+
import * as i2 from "@angular/material/paginator";
|
|
4
|
+
import { PageEvent } from "@angular/material/paginator";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
export * from "@testgorilla/tgo-ui/components/core";
|
|
7
|
+
export declare class DeprecatedPaginatorComponent {
|
|
8
|
+
/**
|
|
9
|
+
* Paginator size options
|
|
10
|
+
*
|
|
11
|
+
* @type {number[]}
|
|
12
|
+
* @memberof PaginatorComponent
|
|
13
|
+
*/
|
|
14
|
+
readonly pageSizeOptions: number[];
|
|
15
|
+
/**
|
|
16
|
+
* Data length
|
|
17
|
+
*
|
|
18
|
+
* @type {number}
|
|
19
|
+
* @memberof PaginatorComponent
|
|
20
|
+
*/
|
|
21
|
+
length: number;
|
|
22
|
+
/**
|
|
23
|
+
* Default page size
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof PaginatorComponent
|
|
27
|
+
*/
|
|
28
|
+
defaultPageSize: number;
|
|
29
|
+
/**
|
|
30
|
+
* @ignore
|
|
31
|
+
*/
|
|
32
|
+
paginatorChangedEvent: EventEmitter<PageEvent>;
|
|
33
|
+
constructor();
|
|
34
|
+
paginatorChanged(paginator: PageEvent): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeprecatedPaginatorComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeprecatedPaginatorComponent, "ui-paginator", never, {
|
|
37
|
+
"length": {
|
|
38
|
+
"alias": "length";
|
|
39
|
+
"required": false;
|
|
40
|
+
};
|
|
41
|
+
"defaultPageSize": {
|
|
42
|
+
"alias": "defaultPageSize";
|
|
43
|
+
"required": false;
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
"paginatorChangedEvent": "paginatorChangedEvent";
|
|
47
|
+
}, never, never, true, never>;
|
|
38
48
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { DeprecatedPaginatorComponent, DeprecatedPaginatorComponentModule };
|
|
49
|
+
export declare class DeprecatedPaginatorComponentModule {
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeprecatedPaginatorComponentModule, never>;
|
|
51
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DeprecatedPaginatorComponentModule, never, [typeof i1.CommonModule, typeof i2.MatPaginatorModule, typeof DeprecatedPaginatorComponent], [typeof DeprecatedPaginatorComponent]>;
|
|
52
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DeprecatedPaginatorComponentModule>;
|
|
53
|
+
}
|