@testgorilla/tgo-ui 11.22.3 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/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,228 +1,324 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import { ControlValueAccessor } from
|
|
6
|
-
import * as i2 from
|
|
7
|
-
import { FieldComponent } from
|
|
8
|
-
import * as i13 from
|
|
9
|
-
import { IconName } from
|
|
10
|
-
import * as i4 from
|
|
11
|
-
import { OverflowMenuButtonsType } from
|
|
12
|
-
import * as i1 from
|
|
13
|
-
import * as i3 from
|
|
14
|
-
import * as i5 from
|
|
15
|
-
import * as i6 from
|
|
16
|
-
import * as i8 from
|
|
17
|
-
import * as i9 from
|
|
18
|
-
import * as i10 from
|
|
19
|
-
import * as i11 from
|
|
20
|
-
import * as i12 from
|
|
21
|
-
|
|
22
|
-
import * as i14 from
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
autocomplete: string;
|
|
1
|
+
import * as i7 from "@angular/cdk/overlay";
|
|
2
|
+
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { AfterViewInit, ElementRef, OnInit } from "@angular/core";
|
|
5
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
6
|
+
import * as i2 from "@testgorilla/tgo-ui/components/field";
|
|
7
|
+
import { FieldComponent } from "@testgorilla/tgo-ui/components/field";
|
|
8
|
+
import * as i13 from "@testgorilla/tgo-ui/components/icon";
|
|
9
|
+
import { IconName } from "@testgorilla/tgo-ui/components/icon";
|
|
10
|
+
import * as i4 from "@testgorilla/tgo-ui/components/overflow-menu";
|
|
11
|
+
import { OverflowMenuButtonsType } from "@testgorilla/tgo-ui/components/overflow-menu";
|
|
12
|
+
import * as i1 from "@angular/common";
|
|
13
|
+
import * as i3 from "@testgorilla/tgo-ui/components/button";
|
|
14
|
+
import * as i5 from "@testgorilla/tgo-ui/components/tag";
|
|
15
|
+
import * as i6 from "@testgorilla/tgo-ui/components/badge";
|
|
16
|
+
import * as i8 from "@testgorilla/tgo-ui/components/card";
|
|
17
|
+
import * as i9 from "@angular/cdk/text-field";
|
|
18
|
+
import * as i10 from "@testgorilla/tgo-ui/components/tooltip";
|
|
19
|
+
import * as i11 from "@angular/material/tooltip";
|
|
20
|
+
import * as i12 from "@testgorilla/tgo-ui/components/core";
|
|
21
|
+
import { ApplicationTheme } from "@testgorilla/tgo-ui/components/core";
|
|
22
|
+
import * as i14 from "@testgorilla/tgo-ui/components/skeleton";
|
|
23
|
+
export interface PromptTag {
|
|
24
|
+
id: number;
|
|
25
|
+
label: string;
|
|
26
|
+
autocomplete: string;
|
|
28
27
|
}
|
|
29
|
-
interface PromptData {
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
export interface PromptData {
|
|
29
|
+
text?: string;
|
|
30
|
+
files?: File[];
|
|
32
31
|
}
|
|
33
|
-
interface PromptActionTag {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
32
|
+
export interface PromptActionTag {
|
|
33
|
+
label: string;
|
|
34
|
+
/**
|
|
35
|
+
* Leading icon, on the tag and on its menu item when `collapseActionTags` is set. Omitted, the
|
|
36
|
+
* action tag shows `Plus` and the menu item shows none; `null` shows no icon anywhere.
|
|
37
|
+
*/
|
|
38
|
+
icon?: IconName | null;
|
|
39
|
+
/**
|
|
40
|
+
* Trailing icon on the menu item when `collapseActionTags` is set. Omitted, it defaults to `Plus`
|
|
41
|
+
* for the action tag and `Arrow-chevron-right-in-line` for the secondary action tag; `null` hides it.
|
|
42
|
+
*/
|
|
43
|
+
menuTrailingIcon?: IconName | null;
|
|
44
|
+
/**
|
|
45
|
+
* Position of the menu item when `collapseActionTags` is set; lower comes first. Items without one
|
|
46
|
+
* go after those that have one, in the default order: secondary action tag, then action tag.
|
|
47
|
+
*/
|
|
48
|
+
menuOrder?: number;
|
|
49
|
+
ariaLabel?: string;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
acceptedFileTypes?: string;
|
|
53
52
|
}
|
|
54
53
|
/** A tag rendered next to the action tag that only emits a press; it never opens a file picker. */
|
|
55
|
-
type PromptSecondaryActionTag = Omit<PromptActionTag, 'acceptedFileTypes'>;
|
|
54
|
+
export type PromptSecondaryActionTag = Omit<PromptActionTag, 'acceptedFileTypes'>;
|
|
56
55
|
/** One item of the collapsed actions menu. */
|
|
57
|
-
interface PromptActionsMenuEntry {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
export interface PromptActionsMenuEntry {
|
|
57
|
+
kind: 'action' | 'secondary';
|
|
58
|
+
tag: PromptSecondaryActionTag;
|
|
59
|
+
trailingIcon: IconName;
|
|
61
60
|
}
|
|
62
|
-
interface PromptDropdownItem {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
export interface PromptDropdownItem {
|
|
62
|
+
/** Unique id; used as the dropdown @for track key. */
|
|
63
|
+
id: number;
|
|
64
|
+
label: string;
|
|
65
|
+
icon?: IconName;
|
|
67
66
|
}
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
67
|
+
export declare class PromptComponent implements ControlValueAccessor, OnInit, AfterViewInit {
|
|
68
|
+
private readonly disabledState;
|
|
69
|
+
tags: import("@angular/core").InputSignal<PromptTag[]>;
|
|
70
|
+
actionTag: import("@angular/core").InputSignal<PromptActionTag | null>;
|
|
71
|
+
/** Tag rendered next to the action tag or file upload button, e.g. "Find similar profile". */
|
|
72
|
+
secondaryActionTag: import("@angular/core").InputSignal<PromptSecondaryActionTag | null>;
|
|
73
|
+
/**
|
|
74
|
+
* Collapses `actionTag` and `secondaryActionTag` behind a Plus button that opens a menu listing
|
|
75
|
+
* them; the button turns into a Close button while the menu is open.
|
|
76
|
+
*/
|
|
77
|
+
collapseActionTags: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
78
|
+
maxCharacters: import("@angular/core").InputSignal<number>;
|
|
79
|
+
supportedFileTypes: import("@angular/core").InputSignal<string>;
|
|
80
|
+
autoClear: import("@angular/core").InputSignal<boolean>;
|
|
81
|
+
showSendButton: import("@angular/core").InputSignal<boolean>;
|
|
82
|
+
sendButtonDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
83
|
+
enableFileUpload: import("@angular/core").InputSignal<boolean>;
|
|
84
|
+
loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
85
|
+
/**
|
|
86
|
+
* Placeholder for the prompt.
|
|
87
|
+
*/
|
|
88
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Custom error message displayed below the prompt.
|
|
91
|
+
*/
|
|
92
|
+
errorMessage: import("@angular/core").InputSignal<string>;
|
|
93
|
+
/** Items for the built-in dropdown; opens on focus, filters by label as the user types. */
|
|
94
|
+
dropdownItems: import("@angular/core").InputSignal<PromptDropdownItem[]>;
|
|
95
|
+
dropdownHeading: import("@angular/core").InputSignal<string>;
|
|
96
|
+
showDropdownClose: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
97
|
+
/**
|
|
98
|
+
* Whether to display a live `used / max` character count in the footer.
|
|
99
|
+
*/
|
|
100
|
+
showCharacterCount: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
101
|
+
/**
|
|
102
|
+
* Lighter hint rendered right after the typed text to flag what is still missing, e.g. "Add location".
|
|
103
|
+
* Display-only: it is never inserted into the value, and Tab does not accept it.
|
|
104
|
+
*/
|
|
105
|
+
helpText: import("@angular/core").InputSignal<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the prompt is disabled.
|
|
108
|
+
* @type {boolean}
|
|
109
|
+
* @memberof PromptComponent
|
|
110
|
+
*/
|
|
111
|
+
get disabled(): boolean;
|
|
112
|
+
set disabled(value: boolean);
|
|
113
|
+
promptData: import("@angular/core").OutputEmitterRef<PromptData>;
|
|
114
|
+
actionTagFileSelected: import("@angular/core").OutputEmitterRef<File>;
|
|
115
|
+
secondaryActionTagPress: import("@angular/core").OutputEmitterRef<void>;
|
|
116
|
+
dropdownItemSelected: import("@angular/core").OutputEmitterRef<PromptDropdownItem>;
|
|
117
|
+
dropdownClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
118
|
+
promptFilesList: import("@angular/core").WritableSignal<File[]>;
|
|
119
|
+
promptTextValue: import("@angular/core").WritableSignal<string>;
|
|
120
|
+
fileListMenuConfig: import("@angular/core").WritableSignal<OverflowMenuButtonsType[]>;
|
|
121
|
+
tagsVisible: import("@angular/core").WritableSignal<PromptTag[]>;
|
|
122
|
+
tagsInDropdown: import("@angular/core").WritableSignal<PromptTag[]>;
|
|
123
|
+
autocompleteSuggestion: import("@angular/core").WritableSignal<string>;
|
|
124
|
+
isDropdownOpened: import("@angular/core").WritableSignal<boolean>;
|
|
125
|
+
readonly actionsMenuId: string;
|
|
126
|
+
private readonly keepDropdownClosed;
|
|
127
|
+
isFieldHovered: import("@angular/core").WritableSignal<boolean>;
|
|
128
|
+
isFieldFocused: import("@angular/core").WritableSignal<boolean>;
|
|
129
|
+
/** True while an IME candidate window is open (CJK input). */
|
|
130
|
+
private readonly composing;
|
|
131
|
+
private compositionEndedAt;
|
|
132
|
+
filteredDropdownItems: import("@angular/core").Signal<PromptDropdownItem[]>;
|
|
133
|
+
itemsDropdownVisible: import("@angular/core").Signal<boolean>;
|
|
134
|
+
/** True while focus sits anywhere inside the prompt. */
|
|
135
|
+
isContainerFocused: import("@angular/core").WritableSignal<boolean>;
|
|
136
|
+
isHighlighted: import("@angular/core").Signal<boolean>;
|
|
137
|
+
readonly showFocusRing: import("@angular/core").Signal<boolean>;
|
|
138
|
+
fileInputAccept: import("@angular/core").Signal<string>;
|
|
139
|
+
isLocked: import("@angular/core").Signal<boolean>;
|
|
140
|
+
/** Hidden on an empty prompt (the placeholder owns that state) and behind a tag's autocomplete suggestion. */
|
|
141
|
+
readonly visibleHelpText: import("@angular/core").Signal<string>;
|
|
142
|
+
readonly actionTagIcon: import("@angular/core").Signal<IconName>;
|
|
143
|
+
readonly actionTagMenuTrailingIcon: import("@angular/core").Signal<IconName>;
|
|
144
|
+
readonly secondaryActionTagMenuTrailingIcon: import("@angular/core").Signal<IconName>;
|
|
145
|
+
/** Menu items sorted by `menuOrder`; a stable sort keeps the default order for ties and omissions. */
|
|
146
|
+
readonly actionsMenuEntries: import("@angular/core").Signal<PromptActionsMenuEntry[]>;
|
|
147
|
+
readonly isActionsMenuOpen: import("@angular/core").Signal<boolean>;
|
|
148
|
+
readonly showActionsMenuTrigger: import("@angular/core").Signal<boolean>;
|
|
149
|
+
private readonly hasContent;
|
|
150
|
+
/**
|
|
151
|
+
* Shared by the Send button's disabled state and the Enter shortcut, so they cannot disagree.
|
|
152
|
+
* Ignores `showSendButton` on purpose: this is whether submission is allowed, not whether a
|
|
153
|
+
* button is rendered.
|
|
154
|
+
*/
|
|
155
|
+
readonly canSubmit: import("@angular/core").Signal<boolean>;
|
|
156
|
+
readonly isOverCharacterLimit: import("@angular/core").Signal<boolean>;
|
|
157
|
+
private readonly announcedTextValue;
|
|
158
|
+
readonly characterCountAnnouncement: import("@angular/core").Signal<{
|
|
159
|
+
key: string;
|
|
160
|
+
params: {
|
|
161
|
+
count: number;
|
|
162
|
+
};
|
|
163
|
+
} | null>;
|
|
164
|
+
private readonly destroyRef;
|
|
165
|
+
private readonly translationPipe;
|
|
166
|
+
private readonly resetOnLock;
|
|
167
|
+
fileDrop: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
168
|
+
tagDropdown: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
169
|
+
fieldComponentRef: import("@angular/core").Signal<FieldComponent>;
|
|
170
|
+
private readonly promptContainer;
|
|
171
|
+
private readonly actionsPopover;
|
|
172
|
+
private readonly actionsMenu;
|
|
173
|
+
readonly dropdownPositions: ConnectedPosition[];
|
|
174
|
+
ngOnInit(): void;
|
|
175
|
+
ngAfterViewInit(): void;
|
|
176
|
+
private uploadFile;
|
|
177
|
+
sendPromptData(): void;
|
|
178
|
+
selectedMenuOption(menuOptionValue: string): void;
|
|
179
|
+
selectTag(tag: PromptTag, event: Event): void;
|
|
180
|
+
onTextareaTab(event: Event): void;
|
|
181
|
+
onTextareaEnter(event: Event): void;
|
|
182
|
+
dropdownOutsideClick(): void;
|
|
183
|
+
onFieldBlur(): void;
|
|
184
|
+
onContainerFocusIn(): void;
|
|
185
|
+
onContainerFocusOut(event: FocusEvent): void;
|
|
186
|
+
itemsDropdownOutsideClick(event: MouseEvent): void;
|
|
187
|
+
closeItemsDropdown(): void;
|
|
188
|
+
onTextareaEscape(event: Event): void;
|
|
189
|
+
selectDropdownItem(item: PromptDropdownItem, event: Event): void;
|
|
190
|
+
toggleDropdown(): void;
|
|
191
|
+
focusTagDropdown(): void;
|
|
192
|
+
private syncInputChange;
|
|
193
|
+
private initTags;
|
|
194
|
+
private updateFileMenu;
|
|
195
|
+
private clearPromptData;
|
|
196
|
+
writeValue(value: PromptData): void;
|
|
197
|
+
private onChange;
|
|
198
|
+
private onTouch;
|
|
199
|
+
registerOnChange(fn: (value: PromptData) => void): void;
|
|
200
|
+
registerOnTouched(fn: () => void): void;
|
|
201
|
+
setDisabledState(isDisabled: boolean): void;
|
|
202
|
+
onFileSelected(event: Event): Promise<void>;
|
|
203
|
+
onActionTagPress(): void;
|
|
204
|
+
onSecondaryActionTagPress(): void;
|
|
205
|
+
/** The popover's focus trap hands focus back to the Plus button when the menu closes. */
|
|
206
|
+
closeActionsMenu(): void;
|
|
207
|
+
onActionsMenuKeydown(event: KeyboardEvent): void;
|
|
208
|
+
selectActionsMenuEntry(entry: PromptActionsMenuEntry, event: Event): void;
|
|
209
|
+
private selectActionTagFromMenu;
|
|
210
|
+
private selectSecondaryActionTagFromMenu;
|
|
211
|
+
private actionsMenuItems;
|
|
212
|
+
private handleActionTagFile;
|
|
213
|
+
private emitValue;
|
|
214
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptComponent, never>;
|
|
215
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptComponent, "ui-prompt", never, {
|
|
216
|
+
"tags": {
|
|
217
|
+
"alias": "tags";
|
|
218
|
+
"required": false;
|
|
219
|
+
"isSignal": true;
|
|
220
|
+
};
|
|
221
|
+
"actionTag": {
|
|
222
|
+
"alias": "actionTag";
|
|
223
|
+
"required": false;
|
|
224
|
+
"isSignal": true;
|
|
225
|
+
};
|
|
226
|
+
"secondaryActionTag": {
|
|
227
|
+
"alias": "secondaryActionTag";
|
|
228
|
+
"required": false;
|
|
229
|
+
"isSignal": true;
|
|
230
|
+
};
|
|
231
|
+
"collapseActionTags": {
|
|
232
|
+
"alias": "collapseActionTags";
|
|
233
|
+
"required": false;
|
|
234
|
+
"isSignal": true;
|
|
235
|
+
};
|
|
236
|
+
"maxCharacters": {
|
|
237
|
+
"alias": "maxCharacters";
|
|
238
|
+
"required": false;
|
|
239
|
+
"isSignal": true;
|
|
240
|
+
};
|
|
241
|
+
"supportedFileTypes": {
|
|
242
|
+
"alias": "supportedFileTypes";
|
|
243
|
+
"required": false;
|
|
244
|
+
"isSignal": true;
|
|
245
|
+
};
|
|
246
|
+
"autoClear": {
|
|
247
|
+
"alias": "autoClear";
|
|
248
|
+
"required": false;
|
|
249
|
+
"isSignal": true;
|
|
250
|
+
};
|
|
251
|
+
"showSendButton": {
|
|
252
|
+
"alias": "showSendButton";
|
|
253
|
+
"required": false;
|
|
254
|
+
"isSignal": true;
|
|
255
|
+
};
|
|
256
|
+
"sendButtonDisabled": {
|
|
257
|
+
"alias": "sendButtonDisabled";
|
|
258
|
+
"required": false;
|
|
259
|
+
"isSignal": true;
|
|
260
|
+
};
|
|
261
|
+
"enableFileUpload": {
|
|
262
|
+
"alias": "enableFileUpload";
|
|
263
|
+
"required": false;
|
|
264
|
+
"isSignal": true;
|
|
265
|
+
};
|
|
266
|
+
"loading": {
|
|
267
|
+
"alias": "loading";
|
|
268
|
+
"required": false;
|
|
269
|
+
"isSignal": true;
|
|
270
|
+
};
|
|
271
|
+
"placeholder": {
|
|
272
|
+
"alias": "placeholder";
|
|
273
|
+
"required": false;
|
|
274
|
+
"isSignal": true;
|
|
275
|
+
};
|
|
276
|
+
"errorMessage": {
|
|
277
|
+
"alias": "errorMessage";
|
|
278
|
+
"required": false;
|
|
279
|
+
"isSignal": true;
|
|
280
|
+
};
|
|
281
|
+
"dropdownItems": {
|
|
282
|
+
"alias": "dropdownItems";
|
|
283
|
+
"required": false;
|
|
284
|
+
"isSignal": true;
|
|
285
|
+
};
|
|
286
|
+
"dropdownHeading": {
|
|
287
|
+
"alias": "dropdownHeading";
|
|
288
|
+
"required": false;
|
|
289
|
+
"isSignal": true;
|
|
290
|
+
};
|
|
291
|
+
"showDropdownClose": {
|
|
292
|
+
"alias": "showDropdownClose";
|
|
293
|
+
"required": false;
|
|
294
|
+
"isSignal": true;
|
|
295
|
+
};
|
|
296
|
+
"showCharacterCount": {
|
|
297
|
+
"alias": "showCharacterCount";
|
|
298
|
+
"required": false;
|
|
299
|
+
"isSignal": true;
|
|
300
|
+
};
|
|
301
|
+
"helpText": {
|
|
302
|
+
"alias": "helpText";
|
|
303
|
+
"required": false;
|
|
304
|
+
"isSignal": true;
|
|
305
|
+
};
|
|
306
|
+
"disabled": {
|
|
307
|
+
"alias": "disabled";
|
|
308
|
+
"required": false;
|
|
309
|
+
};
|
|
310
|
+
}, {
|
|
311
|
+
"promptData": "promptData";
|
|
312
|
+
"actionTagFileSelected": "actionTagFileSelected";
|
|
313
|
+
"secondaryActionTagPress": "secondaryActionTagPress";
|
|
314
|
+
"dropdownItemSelected": "dropdownItemSelected";
|
|
315
|
+
"dropdownClosed": "dropdownClosed";
|
|
316
|
+
}, never, ["[promptFooter]"], true, never>;
|
|
317
|
+
static ngAcceptInputType_disabled: unknown;
|
|
219
318
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<PromptModule>;
|
|
319
|
+
export declare class PromptModule {
|
|
320
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptModule, never>;
|
|
321
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PromptModule, never, [typeof i1.CommonModule, typeof i2.FieldComponentModule, typeof i3.ButtonComponentModule, typeof i4.OverflowMenuComponentModule, typeof i5.TagComponentModule, typeof i6.BadgeComponentModule, typeof i7.CdkOverlayOrigin, typeof i7.CdkConnectedOverlay, typeof i8.CardComponentModule, typeof i9.CdkTextareaAutosize, typeof i10.TooltipComponentModule, typeof i11.MatTooltip, typeof i12.UiTranslatePipe, typeof i13.IconComponentModule, typeof i14.SkeletonComponent, typeof PromptComponent], [typeof PromptComponent]>;
|
|
322
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PromptModule>;
|
|
225
323
|
}
|
|
226
|
-
|
|
227
|
-
export { PromptComponent, PromptModule };
|
|
228
|
-
export type { PromptActionTag, PromptActionsMenuEntry, PromptData, PromptDropdownItem, PromptSecondaryActionTag, PromptTag };
|
|
324
|
+
export { ApplicationTheme };
|