@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,275 +1,359 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import * as
|
|
9
|
-
import {
|
|
10
|
-
import * as
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as i3 from '@angular/material/input';
|
|
14
|
-
import * as i4 from '@testgorilla/tgo-ui/components/button';
|
|
15
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectorRef, DestroyRef, ElementRef, EventEmitter, OnInit } from "@angular/core";
|
|
3
|
+
import * as i2 from "@angular/forms";
|
|
4
|
+
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
5
|
+
import { ApplicationTheme, ApplicationTheme as ApplicationTheme$1 } from "@testgorilla/tgo-ui/components/core";
|
|
6
|
+
import * as i5 from "@testgorilla/tgo-ui/components/field";
|
|
7
|
+
import { FieldComponent, FieldType } from "@testgorilla/tgo-ui/components/field";
|
|
8
|
+
import * as i6 from "@testgorilla/tgo-ui/components/icon";
|
|
9
|
+
import { IconName } from "@testgorilla/tgo-ui/components/icon";
|
|
10
|
+
import * as i1 from "@angular/common";
|
|
11
|
+
import * as i3 from "@angular/material/input";
|
|
12
|
+
import * as i4 from "@testgorilla/tgo-ui/components/button";
|
|
16
13
|
/**
|
|
17
14
|
* State of the inline field component
|
|
18
15
|
*/
|
|
19
|
-
type InlineFieldState = 'default' | 'focused' | 'editing' | 'error' | 'disabled' | 'loading';
|
|
16
|
+
export type InlineFieldState = 'default' | 'focused' | 'editing' | 'error' | 'disabled' | 'loading';
|
|
20
17
|
/**
|
|
21
18
|
* Events emitted by the inline field component
|
|
22
19
|
*/
|
|
23
|
-
interface InlineFieldEvents {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
20
|
+
export interface InlineFieldEvents {
|
|
21
|
+
/**
|
|
22
|
+
* Emitted when user clicks save button
|
|
23
|
+
*/
|
|
24
|
+
onSave: EventEmitter<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Emitted when user clicks cancel button
|
|
27
|
+
*/
|
|
28
|
+
onCancel: EventEmitter<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Emitted when the field value changes
|
|
31
|
+
*/
|
|
32
|
+
onValueChange: EventEmitter<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Emitted when editing mode is toggled
|
|
35
|
+
*/
|
|
36
|
+
onEditingModeChange: EventEmitter<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* Emitted on focus events
|
|
39
|
+
*/
|
|
40
|
+
onFocus: EventEmitter<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Emitted on blur events
|
|
43
|
+
*/
|
|
44
|
+
onBlur: EventEmitter<void>;
|
|
48
45
|
}
|
|
49
46
|
/**
|
|
50
47
|
* Configuration for save/cancel buttons
|
|
51
48
|
*/
|
|
52
|
-
interface InlineFieldButtonConfig {
|
|
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
|
-
|
|
49
|
+
export interface InlineFieldButtonConfig {
|
|
50
|
+
/**
|
|
51
|
+
* Label for save button
|
|
52
|
+
* @default "Save"
|
|
53
|
+
*/
|
|
54
|
+
saveLabel?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Label for cancel button
|
|
57
|
+
* @default "Cancel"
|
|
58
|
+
*/
|
|
59
|
+
cancelLabel?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Icon for save button
|
|
62
|
+
* @default "Check-filled"
|
|
63
|
+
*/
|
|
64
|
+
saveIcon?: IconName;
|
|
65
|
+
/**
|
|
66
|
+
* Icon for cancel button
|
|
67
|
+
* @default "Close-filled"
|
|
68
|
+
*/
|
|
69
|
+
cancelIcon?: IconName;
|
|
70
|
+
/**
|
|
71
|
+
* Show buttons on hover only
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
showOnHoverOnly?: boolean;
|
|
78
75
|
}
|
|
79
76
|
/**
|
|
80
77
|
* Validation configuration
|
|
81
78
|
*/
|
|
82
|
-
interface InlineFieldValidation {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
79
|
+
export interface InlineFieldValidation {
|
|
80
|
+
/**
|
|
81
|
+
* Whether the field is required
|
|
82
|
+
*/
|
|
83
|
+
required?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Minimum length
|
|
86
|
+
*/
|
|
87
|
+
minLength?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Maximum length
|
|
90
|
+
*/
|
|
91
|
+
maxLength?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Custom validation pattern
|
|
94
|
+
*/
|
|
95
|
+
pattern?: RegExp;
|
|
96
|
+
/**
|
|
97
|
+
* Custom validation function
|
|
98
|
+
*/
|
|
99
|
+
customValidator?: (value: string) => boolean;
|
|
103
100
|
}
|
|
104
101
|
/**
|
|
105
102
|
* Interface for inline field change event
|
|
106
103
|
*/
|
|
107
|
-
interface InlineFieldChangeEvent {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
104
|
+
export interface InlineFieldChangeEvent {
|
|
105
|
+
/**
|
|
106
|
+
* The new value
|
|
107
|
+
*/
|
|
108
|
+
value: string;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the change was saved or cancelled
|
|
111
|
+
*/
|
|
112
|
+
saved: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Previous value before the change
|
|
115
|
+
*/
|
|
116
|
+
previousValue: string;
|
|
120
117
|
}
|
|
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
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
118
|
+
export declare class InlineFieldComponent implements OnInit, ControlValueAccessor {
|
|
119
|
+
private readonly cdr;
|
|
120
|
+
private readonly destroyRef;
|
|
121
|
+
private readonly elementRef;
|
|
122
|
+
ngControl: NgControl;
|
|
123
|
+
class: string;
|
|
124
|
+
/**
|
|
125
|
+
* Component ID for accessibility
|
|
126
|
+
*/
|
|
127
|
+
id: import("@angular/core").InputSignal<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Field label
|
|
130
|
+
*/
|
|
131
|
+
label: import("@angular/core").InputSignal<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Field placeholder
|
|
134
|
+
*/
|
|
135
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Current value
|
|
138
|
+
*/
|
|
139
|
+
value: import("@angular/core").InputSignal<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Whether the field is required
|
|
142
|
+
*/
|
|
143
|
+
required: import("@angular/core").InputSignal<boolean>;
|
|
144
|
+
/**
|
|
145
|
+
* Whether the field is disabled
|
|
146
|
+
*/
|
|
147
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* Application theme
|
|
150
|
+
*/
|
|
151
|
+
applicationTheme: import("@angular/core").InputSignal<ApplicationTheme$1>;
|
|
152
|
+
/**
|
|
153
|
+
* Field type
|
|
154
|
+
*/
|
|
155
|
+
fieldType: import("@angular/core").InputSignal<FieldType>;
|
|
156
|
+
/**
|
|
157
|
+
* Field type
|
|
158
|
+
*/
|
|
159
|
+
maxRows: import("@angular/core").InputSignal<number>;
|
|
160
|
+
/**
|
|
161
|
+
* Error messages
|
|
162
|
+
*/
|
|
163
|
+
errors: import("@angular/core").InputSignal<string[]>;
|
|
164
|
+
/**
|
|
165
|
+
* Whether to show errors
|
|
166
|
+
*/
|
|
167
|
+
showErrors: import("@angular/core").InputSignal<boolean>;
|
|
168
|
+
/**
|
|
169
|
+
* Button configuration
|
|
170
|
+
*/
|
|
171
|
+
buttonConfig: import("@angular/core").InputSignal<InlineFieldButtonConfig>;
|
|
172
|
+
/**
|
|
173
|
+
* Validation configuration
|
|
174
|
+
*/
|
|
175
|
+
validation: import("@angular/core").InputSignal<InlineFieldValidation>;
|
|
176
|
+
/**
|
|
177
|
+
* ARIA label
|
|
178
|
+
*/
|
|
179
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
180
|
+
testId: import("@angular/core").InputSignal<string | null>;
|
|
181
|
+
protected readonly saveButtonTestId: import("@angular/core").Signal<string | null>;
|
|
182
|
+
protected readonly cancelButtonTestId: import("@angular/core").Signal<string | null>;
|
|
183
|
+
/**
|
|
184
|
+
* Full width
|
|
185
|
+
*/
|
|
186
|
+
fullWidth: import("@angular/core").InputSignal<boolean>;
|
|
187
|
+
/**
|
|
188
|
+
* Emitted when save button is clicked
|
|
189
|
+
*/
|
|
190
|
+
save: import("@angular/core").OutputEmitterRef<InlineFieldChangeEvent>;
|
|
191
|
+
/**
|
|
192
|
+
* Emitted when cancel button is clicked
|
|
193
|
+
*/
|
|
194
|
+
cancel: import("@angular/core").OutputEmitterRef<void>;
|
|
195
|
+
/**
|
|
196
|
+
* Emitted when value changes
|
|
197
|
+
*/
|
|
198
|
+
valueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
199
|
+
/**
|
|
200
|
+
* Emitted when editing mode changes
|
|
201
|
+
*/
|
|
202
|
+
editingModeChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
203
|
+
/**
|
|
204
|
+
* Emitted on focus
|
|
205
|
+
*/
|
|
206
|
+
focusEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
207
|
+
/**
|
|
208
|
+
* Emitted on blur
|
|
209
|
+
*/
|
|
210
|
+
blurEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
211
|
+
fieldComponent: FieldComponent;
|
|
212
|
+
private readonly _isEditing;
|
|
213
|
+
private readonly _originalValue;
|
|
214
|
+
private readonly _currentValue;
|
|
215
|
+
private readonly _state;
|
|
216
|
+
isEditing: import("@angular/core").Signal<boolean>;
|
|
217
|
+
currentValue: import("@angular/core").Signal<string>;
|
|
218
|
+
state: import("@angular/core").Signal<InlineFieldState>;
|
|
219
|
+
saveButtonConfig: import("@angular/core").Signal<{
|
|
220
|
+
label: string;
|
|
221
|
+
iconName: import("../../dist/tgo-ui/types/testgorilla-tgo-ui-components-icon").IconName;
|
|
222
|
+
variant: "secondary-inverted";
|
|
223
|
+
size: "small";
|
|
224
|
+
disabled: boolean;
|
|
225
|
+
}>;
|
|
226
|
+
cancelButtonConfig: import("@angular/core").Signal<{
|
|
227
|
+
label: string;
|
|
228
|
+
iconName: import("../../dist/tgo-ui/types/testgorilla-tgo-ui-components-icon").IconName;
|
|
229
|
+
variant: "secondary-inverted";
|
|
230
|
+
size: "small";
|
|
231
|
+
disabled: boolean;
|
|
232
|
+
}>;
|
|
233
|
+
private onChange;
|
|
234
|
+
private onTouched;
|
|
235
|
+
constructor(cdr: ChangeDetectorRef, destroyRef: DestroyRef, elementRef: ElementRef<HTMLElement>, ngControl: NgControl);
|
|
236
|
+
ngOnInit(): void;
|
|
237
|
+
writeValue(value: string): void;
|
|
238
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
239
|
+
registerOnTouched(fn: () => void): void;
|
|
240
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
241
|
+
onComponentFocusOut(event: FocusEvent): void;
|
|
242
|
+
onEscapePressed(event: Event): void;
|
|
243
|
+
onEnterPressed(event: Event): void;
|
|
244
|
+
onTabPressed(): void;
|
|
245
|
+
onInputFocus(): void;
|
|
246
|
+
onInputBlur(): void;
|
|
247
|
+
onInputChange(event: Event): void;
|
|
248
|
+
focus(): void;
|
|
249
|
+
enterEditMode(): void;
|
|
250
|
+
saveEdit(): void;
|
|
251
|
+
cancelEdit(): void;
|
|
252
|
+
private exitEditMode;
|
|
253
|
+
private updateState;
|
|
254
|
+
private hasValidationError;
|
|
255
|
+
private hasRequiredError;
|
|
256
|
+
private hasMinLengthError;
|
|
257
|
+
private hasMaxLengthError;
|
|
258
|
+
private hasPatternError;
|
|
259
|
+
private hasCustomValidationError;
|
|
260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InlineFieldComponent, [null, null, null, {
|
|
261
|
+
optional: true;
|
|
262
|
+
self: true;
|
|
263
|
+
}]>;
|
|
264
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InlineFieldComponent, "ui-inline-field", never, {
|
|
265
|
+
"id": {
|
|
266
|
+
"alias": "id";
|
|
267
|
+
"required": false;
|
|
268
|
+
"isSignal": true;
|
|
269
|
+
};
|
|
270
|
+
"label": {
|
|
271
|
+
"alias": "label";
|
|
272
|
+
"required": false;
|
|
273
|
+
"isSignal": true;
|
|
274
|
+
};
|
|
275
|
+
"placeholder": {
|
|
276
|
+
"alias": "placeholder";
|
|
277
|
+
"required": false;
|
|
278
|
+
"isSignal": true;
|
|
279
|
+
};
|
|
280
|
+
"value": {
|
|
281
|
+
"alias": "value";
|
|
282
|
+
"required": false;
|
|
283
|
+
"isSignal": true;
|
|
284
|
+
};
|
|
285
|
+
"required": {
|
|
286
|
+
"alias": "required";
|
|
287
|
+
"required": false;
|
|
288
|
+
"isSignal": true;
|
|
289
|
+
};
|
|
290
|
+
"disabled": {
|
|
291
|
+
"alias": "disabled";
|
|
292
|
+
"required": false;
|
|
293
|
+
"isSignal": true;
|
|
294
|
+
};
|
|
295
|
+
"applicationTheme": {
|
|
296
|
+
"alias": "applicationTheme";
|
|
297
|
+
"required": false;
|
|
298
|
+
"isSignal": true;
|
|
299
|
+
};
|
|
300
|
+
"fieldType": {
|
|
301
|
+
"alias": "fieldType";
|
|
302
|
+
"required": false;
|
|
303
|
+
"isSignal": true;
|
|
304
|
+
};
|
|
305
|
+
"maxRows": {
|
|
306
|
+
"alias": "maxRows";
|
|
307
|
+
"required": false;
|
|
308
|
+
"isSignal": true;
|
|
309
|
+
};
|
|
310
|
+
"errors": {
|
|
311
|
+
"alias": "errors";
|
|
312
|
+
"required": false;
|
|
313
|
+
"isSignal": true;
|
|
314
|
+
};
|
|
315
|
+
"showErrors": {
|
|
316
|
+
"alias": "showErrors";
|
|
317
|
+
"required": false;
|
|
318
|
+
"isSignal": true;
|
|
319
|
+
};
|
|
320
|
+
"buttonConfig": {
|
|
321
|
+
"alias": "buttonConfig";
|
|
322
|
+
"required": false;
|
|
323
|
+
"isSignal": true;
|
|
324
|
+
};
|
|
325
|
+
"validation": {
|
|
326
|
+
"alias": "validation";
|
|
327
|
+
"required": false;
|
|
328
|
+
"isSignal": true;
|
|
329
|
+
};
|
|
330
|
+
"ariaLabel": {
|
|
331
|
+
"alias": "ariaLabel";
|
|
332
|
+
"required": false;
|
|
333
|
+
"isSignal": true;
|
|
334
|
+
};
|
|
335
|
+
"testId": {
|
|
336
|
+
"alias": "testId";
|
|
337
|
+
"required": false;
|
|
338
|
+
"isSignal": true;
|
|
339
|
+
};
|
|
340
|
+
"fullWidth": {
|
|
341
|
+
"alias": "fullWidth";
|
|
342
|
+
"required": false;
|
|
343
|
+
"isSignal": true;
|
|
344
|
+
};
|
|
345
|
+
}, {
|
|
346
|
+
"save": "save";
|
|
347
|
+
"cancel": "cancel";
|
|
348
|
+
"valueChange": "valueChange";
|
|
349
|
+
"editingModeChange": "editingModeChange";
|
|
350
|
+
"focusEvent": "focusEvent";
|
|
351
|
+
"blurEvent": "blurEvent";
|
|
352
|
+
}, never, never, true, never>;
|
|
266
353
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<InlineFieldComponentModule>;
|
|
354
|
+
export declare class InlineFieldComponentModule {
|
|
355
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InlineFieldComponentModule, never>;
|
|
356
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InlineFieldComponentModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.MatInputModule, typeof i4.ButtonComponentModule, typeof i5.FieldComponentModule, typeof i6.IconComponentModule, typeof InlineFieldComponent], [typeof InlineFieldComponent]>;
|
|
357
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<InlineFieldComponentModule>;
|
|
272
358
|
}
|
|
273
|
-
|
|
274
|
-
export { InlineFieldComponent, InlineFieldComponentModule };
|
|
275
|
-
export type { InlineFieldButtonConfig, InlineFieldChangeEvent, InlineFieldEvents, InlineFieldState, InlineFieldValidation };
|
|
359
|
+
export { ApplicationTheme };
|