@testgorilla/tgo-ui 4.1.2-beta → 4.1.3-beta
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/components/autocomplete/autocomplete.component.d.ts +1 -1
- package/components/autocomplete/autocomplete.component.module.d.ts +7 -8
- package/components/autocomplete/index.d.ts +5 -0
- package/components/autocomplete/public-api.d.ts +4 -0
- package/components/avatar/avatar.component.module.d.ts +1 -1
- package/components/avatar/index.d.ts +5 -0
- package/components/avatar/public-api.d.ts +4 -0
- package/components/card/index.d.ts +5 -0
- package/components/card/public-api.d.ts +4 -0
- package/components/checkbox/checkbox.component.d.ts +1 -1
- package/components/checkbox/checkbox.component.module.d.ts +4 -5
- package/components/checkbox/index.d.ts +5 -0
- package/components/checkbox/public-api.d.ts +4 -0
- package/components/core/has-validation-error.pipe.d.ts +15 -0
- package/components/core/keyboard-events.model.d.ts +11 -0
- package/components/core/public-api.d.ts +7 -0
- package/components/core/select-text.directive.d.ts +19 -0
- package/components/datepicker/datepicker.component.module.d.ts +1 -1
- package/components/dropdown/dropdown.component.module.d.ts +2 -3
- package/components/dropdown/index.d.ts +5 -0
- package/components/dropdown/public-api.d.ts +4 -0
- package/components/empty-state/index.d.ts +5 -0
- package/components/empty-state/public-api.d.ts +4 -0
- package/components/field/field.component.d.ts +1 -1
- package/components/field/field.component.module.d.ts +3 -5
- package/components/field/index.d.ts +5 -0
- package/components/field/public-api.d.ts +4 -0
- package/components/file-upload/file-upload.component.module.d.ts +1 -1
- package/components/filter-button/filter-button.component.module.d.ts +3 -3
- package/components/filter-button/index.d.ts +5 -0
- package/components/filter-button/public-api.d.ts +4 -0
- package/components/inline-field/index.d.ts +5 -0
- package/components/inline-field/inline-field.component.d.ts +2 -2
- package/components/inline-field/inline-field.component.module.d.ts +1 -1
- package/components/inline-field/public-api.d.ts +4 -0
- package/components/logo/index.d.ts +5 -0
- package/components/logo/public-api.d.ts +4 -0
- package/components/multi-input/multi-input.component.module.d.ts +5 -6
- package/components/navbar/mobile-navbar-side-sheet/mobile-navbar-side-sheet.component.d.ts +1 -1
- package/components/navbar/navbar.component.d.ts +2 -2
- package/components/navbar/navbar.component.module.d.ts +2 -2
- package/components/paginator/index.d.ts +5 -0
- package/components/paginator/public-api.d.ts +3 -0
- package/components/password-criteria/password.component.module.d.ts +2 -2
- package/components/password-strength/password-strength.component.module.d.ts +1 -1
- package/components/phone-input/phone-input.component.module.d.ts +2 -2
- package/components/progress-bar/index.d.ts +5 -0
- package/components/progress-bar/public-api.d.ts +3 -0
- package/components/prompt/prompt.component.d.ts +1 -1
- package/components/prompt/prompt.module.d.ts +3 -3
- package/components/radial-progress/index.d.ts +5 -0
- package/components/radial-progress/public-api.d.ts +4 -0
- package/components/radio-button/index.d.ts +5 -0
- package/components/radio-button/public-api.d.ts +4 -0
- package/components/radio-button/radio-button.component.d.ts +1 -1
- package/components/radio-button/radio-button.component.module.d.ts +1 -1
- package/components/rating/index.d.ts +5 -0
- package/components/rating/public-api.d.ts +3 -0
- package/components/scale/index.d.ts +5 -0
- package/components/scale/public-api.d.ts +3 -0
- package/components/segmented-bar/index.d.ts +5 -0
- package/components/segmented-bar/public-api.d.ts +4 -0
- package/components/segmented-button/index.d.ts +5 -0
- package/components/segmented-button/public-api.d.ts +4 -0
- package/components/selectable-card/selectable-card.component.d.ts +1 -1
- package/components/selectable-card/selectable-card.component.module.d.ts +2 -2
- package/components/side-sheet/side-sheet.component.module.d.ts +1 -1
- package/components/slider/index.d.ts +5 -0
- package/components/slider/public-api.d.ts +4 -0
- package/components/spider-chart/spider-chart.module.d.ts +1 -1
- package/components/spinner/index.d.ts +5 -0
- package/components/spinner/public-api.d.ts +4 -0
- package/components/stepper/stepper.component.module.d.ts +1 -1
- package/components/table/table.component.module.d.ts +1 -1
- package/components/tag/index.d.ts +5 -0
- package/components/tag/public-api.d.ts +4 -0
- package/components/toggle/index.d.ts +5 -0
- package/components/toggle/public-api.d.ts +3 -0
- package/components/toggle/toggle.component.module.d.ts +1 -1
- package/components/universal-skills-report/universal-skills-report.component.module.d.ts +1 -1
- package/components/universal-skills-spider-charts/universal-skills-spider-charts.component.module.d.ts +1 -1
- package/components/validation-error/index.d.ts +5 -0
- package/components/validation-error/public-api.d.ts +3 -0
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs +1045 -0
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs +173 -0
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs +164 -0
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs +402 -0
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs +240 -1
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs +434 -0
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs +326 -0
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs +638 -0
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs +314 -0
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs +367 -0
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs +218 -0
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs +110 -0
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs +128 -0
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs +152 -0
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs +373 -0
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs +150 -0
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs +158 -0
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs +137 -0
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs +128 -0
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs +274 -0
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs +108 -0
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs +239 -0
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs +216 -0
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs +79 -0
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs.map +1 -0
- package/fesm2022/testgorilla-tgo-ui.mjs +3057 -9093
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/package.json +99 -7
- package/public-api.d.ts +0 -63
- /package/{directives → components/autocomplete}/select-text.directive.d.ts +0 -0
- /package/{pipes → components/avatar}/name-initials.pipe.d.ts +0 -0
- /package/{utils → components/core}/autocomplete-utils.d.ts +0 -0
- /package/{models → components/core}/checkbox.model.d.ts +0 -0
- /package/{directives → components/core}/digits-only.directive.d.ts +0 -0
- /package/{utils → components/core}/hex-to-rgb.d.ts +0 -0
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, signal, computed, HostListener, ViewChild, HostBinding, Optional, Self, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import * as i2 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i3 from '@testgorilla/tgo-ui/components/button';
|
|
8
|
+
import { ButtonComponentModule } from '@testgorilla/tgo-ui/components/button';
|
|
9
|
+
import * as i4 from '@testgorilla/tgo-ui/components/field';
|
|
10
|
+
import { FieldComponentModule } from '@testgorilla/tgo-ui/components/field';
|
|
11
|
+
import { MatInputModule } from '@angular/material/input';
|
|
12
|
+
import { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A global counter used to generate unique inline field IDs.
|
|
16
|
+
*/
|
|
17
|
+
let inlineFieldID = 0;
|
|
18
|
+
class InlineFieldComponent {
|
|
19
|
+
constructor(cdr, destroyRef, elementRef, ngControl) {
|
|
20
|
+
this.cdr = cdr;
|
|
21
|
+
this.destroyRef = destroyRef;
|
|
22
|
+
this.elementRef = elementRef;
|
|
23
|
+
this.ngControl = ngControl;
|
|
24
|
+
this.class = 'ui-inline-field';
|
|
25
|
+
/**
|
|
26
|
+
* Component ID for accessibility
|
|
27
|
+
*/
|
|
28
|
+
this.id = input(`inline-field-${inlineFieldID++}`);
|
|
29
|
+
/**
|
|
30
|
+
* Field label
|
|
31
|
+
*/
|
|
32
|
+
this.label = input('');
|
|
33
|
+
/**
|
|
34
|
+
* Field placeholder
|
|
35
|
+
*/
|
|
36
|
+
this.placeholder = input('');
|
|
37
|
+
/**
|
|
38
|
+
* Current value
|
|
39
|
+
*/
|
|
40
|
+
this.value = input('');
|
|
41
|
+
/**
|
|
42
|
+
* Whether the field is required
|
|
43
|
+
*/
|
|
44
|
+
this.required = input(false);
|
|
45
|
+
/**
|
|
46
|
+
* Whether the field is disabled
|
|
47
|
+
*/
|
|
48
|
+
this.disabled = input(false);
|
|
49
|
+
/**
|
|
50
|
+
* Application theme
|
|
51
|
+
*/
|
|
52
|
+
this.applicationTheme = input('light');
|
|
53
|
+
/**
|
|
54
|
+
* Field type
|
|
55
|
+
*/
|
|
56
|
+
this.fieldType = input('text');
|
|
57
|
+
/**
|
|
58
|
+
* Field type
|
|
59
|
+
*/
|
|
60
|
+
this.maxRows = input(0);
|
|
61
|
+
/**
|
|
62
|
+
* Error messages
|
|
63
|
+
*/
|
|
64
|
+
this.errors = input([]);
|
|
65
|
+
/**
|
|
66
|
+
* Whether to show errors
|
|
67
|
+
*/
|
|
68
|
+
this.showErrors = input(true);
|
|
69
|
+
/**
|
|
70
|
+
* Button configuration
|
|
71
|
+
*/
|
|
72
|
+
this.buttonConfig = input({
|
|
73
|
+
saveLabel: 'Save',
|
|
74
|
+
cancelLabel: 'Cancel',
|
|
75
|
+
saveIcon: 'Check-filled',
|
|
76
|
+
cancelIcon: 'Close-filled',
|
|
77
|
+
});
|
|
78
|
+
/**
|
|
79
|
+
* Validation configuration
|
|
80
|
+
*/
|
|
81
|
+
this.validation = input({});
|
|
82
|
+
/**
|
|
83
|
+
* ARIA label
|
|
84
|
+
*/
|
|
85
|
+
this.ariaLabel = input('');
|
|
86
|
+
/**
|
|
87
|
+
* Full width
|
|
88
|
+
*/
|
|
89
|
+
this.fullWidth = input(false);
|
|
90
|
+
/**
|
|
91
|
+
* Emitted when save button is clicked
|
|
92
|
+
*/
|
|
93
|
+
this.save = output();
|
|
94
|
+
/**
|
|
95
|
+
* Emitted when cancel button is clicked
|
|
96
|
+
*/
|
|
97
|
+
this.cancel = output();
|
|
98
|
+
/**
|
|
99
|
+
* Emitted when value changes
|
|
100
|
+
*/
|
|
101
|
+
this.valueChange = output();
|
|
102
|
+
/**
|
|
103
|
+
* Emitted when editing mode changes
|
|
104
|
+
*/
|
|
105
|
+
this.editingModeChange = output();
|
|
106
|
+
/**
|
|
107
|
+
* Emitted on focus
|
|
108
|
+
*/
|
|
109
|
+
this.focusEvent = output();
|
|
110
|
+
/**
|
|
111
|
+
* Emitted on blur
|
|
112
|
+
*/
|
|
113
|
+
this.blurEvent = output();
|
|
114
|
+
this._isEditing = signal(false);
|
|
115
|
+
this._originalValue = signal('');
|
|
116
|
+
this._currentValue = signal('');
|
|
117
|
+
this._state = signal('default');
|
|
118
|
+
this.isEditing = computed(() => this._isEditing());
|
|
119
|
+
this.currentValue = computed(() => this._currentValue());
|
|
120
|
+
this.state = computed(() => this._state());
|
|
121
|
+
this.saveButtonConfig = computed(() => ({
|
|
122
|
+
label: this.buttonConfig().saveLabel || 'Save',
|
|
123
|
+
iconName: this.buttonConfig().saveIcon || 'Check-filled',
|
|
124
|
+
variant: 'secondary-inverted',
|
|
125
|
+
size: 'small',
|
|
126
|
+
disabled: this.disabled(),
|
|
127
|
+
}));
|
|
128
|
+
this.cancelButtonConfig = computed(() => ({
|
|
129
|
+
label: this.buttonConfig().cancelLabel || 'Cancel',
|
|
130
|
+
iconName: this.buttonConfig().cancelIcon || 'Close-filled',
|
|
131
|
+
variant: 'secondary-inverted',
|
|
132
|
+
size: 'small',
|
|
133
|
+
disabled: this.disabled(),
|
|
134
|
+
}));
|
|
135
|
+
this.onChange = (_value) => { };
|
|
136
|
+
this.onTouched = () => { };
|
|
137
|
+
if (this.ngControl != null) {
|
|
138
|
+
this.ngControl.valueAccessor = this;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
ngOnInit() {
|
|
142
|
+
this._currentValue.set(this.value());
|
|
143
|
+
this._originalValue.set(this.value());
|
|
144
|
+
this.updateState();
|
|
145
|
+
}
|
|
146
|
+
writeValue(value) {
|
|
147
|
+
const newValue = value || '';
|
|
148
|
+
this._currentValue.set(newValue);
|
|
149
|
+
if (!this.isEditing()) {
|
|
150
|
+
this._originalValue.set(newValue);
|
|
151
|
+
}
|
|
152
|
+
this.cdr.markForCheck();
|
|
153
|
+
}
|
|
154
|
+
registerOnChange(fn) {
|
|
155
|
+
this.onChange = fn;
|
|
156
|
+
}
|
|
157
|
+
registerOnTouched(fn) {
|
|
158
|
+
this.onTouched = fn;
|
|
159
|
+
}
|
|
160
|
+
setDisabledState(_isDisabled) {
|
|
161
|
+
this.updateState();
|
|
162
|
+
this.cdr.markForCheck();
|
|
163
|
+
}
|
|
164
|
+
onComponentFocusOut(event) {
|
|
165
|
+
const relatedTarget = event.relatedTarget;
|
|
166
|
+
const isLeavingComponent = !relatedTarget || !this.elementRef.nativeElement.contains(relatedTarget);
|
|
167
|
+
if (isLeavingComponent && this.isEditing()) {
|
|
168
|
+
this._currentValue.set(this._originalValue());
|
|
169
|
+
this.exitEditMode();
|
|
170
|
+
this.onChange(this._originalValue());
|
|
171
|
+
this.cancel.emit();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
onEscapePressed(event) {
|
|
175
|
+
if (this.isEditing()) {
|
|
176
|
+
event.preventDefault();
|
|
177
|
+
this.cancelEdit();
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
onEnterPressed(event) {
|
|
181
|
+
if (this.isEditing() && !event.shiftKey) {
|
|
182
|
+
event.preventDefault();
|
|
183
|
+
this.saveEdit();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
onTabPressed() {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
onInputFocus() {
|
|
190
|
+
if (!this.disabled() && !this.isEditing()) {
|
|
191
|
+
this.enterEditMode();
|
|
192
|
+
}
|
|
193
|
+
this._state.set('focused');
|
|
194
|
+
this.focusEvent.emit();
|
|
195
|
+
this.onTouched();
|
|
196
|
+
}
|
|
197
|
+
onInputBlur() {
|
|
198
|
+
this.blurEvent.emit();
|
|
199
|
+
}
|
|
200
|
+
onInputChange(event) {
|
|
201
|
+
const inputElement = event.target;
|
|
202
|
+
const newValue = inputElement.value;
|
|
203
|
+
this._currentValue.set(newValue);
|
|
204
|
+
this.valueChange.emit(newValue);
|
|
205
|
+
}
|
|
206
|
+
focus() {
|
|
207
|
+
if (this.fieldComponent) {
|
|
208
|
+
this.fieldComponent.focus();
|
|
209
|
+
this.fieldComponent.field?.nativeElement?.select();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
enterEditMode() {
|
|
213
|
+
if (this.disabled() || this.isEditing()) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
this._originalValue.set(this._currentValue());
|
|
217
|
+
this._isEditing.set(true);
|
|
218
|
+
this._state.set('editing');
|
|
219
|
+
this.editingModeChange.emit(true);
|
|
220
|
+
this.cdr.markForCheck();
|
|
221
|
+
}
|
|
222
|
+
saveEdit() {
|
|
223
|
+
if (!this.isEditing()) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
const newValue = this.currentValue();
|
|
227
|
+
const hasValidationError = this.hasValidationError(newValue);
|
|
228
|
+
if (hasValidationError) {
|
|
229
|
+
this._state.set('error');
|
|
230
|
+
this.cdr.markForCheck();
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
const changeEvent = {
|
|
234
|
+
value: newValue,
|
|
235
|
+
saved: true,
|
|
236
|
+
previousValue: this._originalValue(),
|
|
237
|
+
};
|
|
238
|
+
this._originalValue.set(newValue);
|
|
239
|
+
this.exitEditMode();
|
|
240
|
+
this.onChange(newValue);
|
|
241
|
+
this.save.emit(changeEvent);
|
|
242
|
+
}
|
|
243
|
+
cancelEdit() {
|
|
244
|
+
if (!this.isEditing()) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
this._currentValue.set(this._originalValue());
|
|
248
|
+
this.exitEditMode();
|
|
249
|
+
this.cancel.emit();
|
|
250
|
+
}
|
|
251
|
+
exitEditMode() {
|
|
252
|
+
this._isEditing.set(false);
|
|
253
|
+
this.updateState();
|
|
254
|
+
this.editingModeChange.emit(false);
|
|
255
|
+
this.cdr.markForCheck();
|
|
256
|
+
}
|
|
257
|
+
updateState() {
|
|
258
|
+
if (this.disabled()) {
|
|
259
|
+
this._state.set('disabled');
|
|
260
|
+
}
|
|
261
|
+
else if (this.errors().length > 0) {
|
|
262
|
+
this._state.set('error');
|
|
263
|
+
}
|
|
264
|
+
else if (this.isEditing()) {
|
|
265
|
+
this._state.set('editing');
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
this._state.set('default');
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
hasValidationError(value) {
|
|
272
|
+
const config = this.validation();
|
|
273
|
+
return (this.hasRequiredError(value, config) ||
|
|
274
|
+
this.hasMinLengthError(value, config) ||
|
|
275
|
+
this.hasMaxLengthError(value, config) ||
|
|
276
|
+
this.hasPatternError(value, config) ||
|
|
277
|
+
this.hasCustomValidationError(value, config));
|
|
278
|
+
}
|
|
279
|
+
hasRequiredError(value, config) {
|
|
280
|
+
return !!config.required && (!value || value.trim().length === 0);
|
|
281
|
+
}
|
|
282
|
+
hasMinLengthError(value, config) {
|
|
283
|
+
return !!config.minLength && value.length < config.minLength;
|
|
284
|
+
}
|
|
285
|
+
hasMaxLengthError(value, config) {
|
|
286
|
+
return !!config.maxLength && value.length > config.maxLength;
|
|
287
|
+
}
|
|
288
|
+
hasPatternError(value, config) {
|
|
289
|
+
return !!config.pattern && !config.pattern.test(value);
|
|
290
|
+
}
|
|
291
|
+
hasCustomValidationError(value, config) {
|
|
292
|
+
return !!config.customValidator && config.customValidator(value);
|
|
293
|
+
}
|
|
294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: InlineFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.DestroyRef }, { token: i0.ElementRef }, { token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
295
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.17", type: InlineFieldComponent, isStandalone: false, selector: "ui-inline-field", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, applicationTheme: { classPropertyName: "applicationTheme", publicName: "applicationTheme", isSignal: true, isRequired: false, transformFunction: null }, fieldType: { classPropertyName: "fieldType", publicName: "fieldType", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, showErrors: { classPropertyName: "showErrors", publicName: "showErrors", isSignal: true, isRequired: false, transformFunction: null }, buttonConfig: { classPropertyName: "buttonConfig", publicName: "buttonConfig", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { save: "save", cancel: "cancel", valueChange: "valueChange", editingModeChange: "editingModeChange", focusEvent: "focusEvent", blurEvent: "blurEvent" }, host: { listeners: { "focusout": "onComponentFocusOut($event)", "keydown.escape": "onEscapePressed($event)", "keydown.enter": "onEnterPressed($event)", "keydown.tab": "onTabPressed($event)" }, properties: { "attr.theme": "applicationTheme()", "attr.state": "state()", "attr.editing": "isEditing()", "class.full-width": "fullWidth()", "class": "this.class" } }, viewQueries: [{ propertyName: "fieldComponent", first: true, predicate: ["fieldElement"], descendants: true }], ngImport: i0, template: "<div class=\"inline-field-container\">\n <div class=\"field-wrapper\" [ngClass]=\"{ 'is-editing': isEditing() }\">\n <ui-field\n [id]=\"id() + '-input'\"\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [value]=\"currentValue()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [errors]=\"errors()\"\n [showBottomContent]=\"showErrors()\"\n [ariaLabel]=\"ariaLabel()\"\n [applicationTheme]=\"applicationTheme()\"\n [fullWidth]=\"true\"\n [isAutocompleteOff]=\"true\"\n [type]=\"fieldType()\"\n [maxRows]=\"maxRows()\"\n (input)=\"onInputChange($event)\"\n (fieldBlur)=\"onInputBlur()\"\n (focusin)=\"onInputFocus()\"\n #fieldElement\n data-testid=\"inline-field\"\n ></ui-field>\n\n <div *ngIf=\"isEditing()\" class=\"action-buttons\">\n <ui-button\n [label]=\"saveButtonConfig().label\"\n [iconName]=\"saveButtonConfig().iconName\"\n [variant]=\"saveButtonConfig().variant\"\n [size]=\"saveButtonConfig().size\"\n [disabled]=\"saveButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"saveEdit()\"\n [attr.aria-label]=\"'Save ' + (label() || 'field')\"\n class=\"save-button\"\n ></ui-button>\n\n <ui-button\n [label]=\"cancelButtonConfig().label\"\n [iconName]=\"cancelButtonConfig().iconName\"\n [variant]=\"cancelButtonConfig().variant\"\n [size]=\"cancelButtonConfig().size\"\n [disabled]=\"cancelButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"cancelEdit()\"\n [attr.aria-label]=\"'Cancel editing ' + (label() || 'field')\"\n class=\"cancel-button\"\n ></ui-button>\n </div>\n </div>\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.ui-inline-field{display:block;position:relative;width:100%;max-width:320px}.ui-inline-field.full-width{max-width:100%}.ui-inline-field .inline-field-container,.ui-inline-field .field-wrapper{position:relative;width:100%}.ui-inline-field .field-wrapper ::ng-deep ui-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.ui-inline-field .field-wrapper .action-buttons{position:absolute;top:calc(100% + 4px);right:0;display:flex;gap:8px;z-index:10}.ui-inline-field .field-wrapper:hover .action-buttons.show-on-hover{opacity:1}.ui-inline-field .error-messages{margin-top:4px}.ui-inline-field .error-messages .error-message{display:flex;align-items:center;gap:4px;color:#e02800;font-size:12px;line-height:16px}.ui-inline-field .error-messages .error-message .error-icon ::ng-deep svg{color:#e02800}.ui-inline-field[state=disabled]{pointer-events:none}@media (max-width: 768px){.ui-inline-field .field-wrapper .action-buttons{position:static;margin-top:8px;justify-content:flex-end}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "ui-button", inputs: ["size", "variant", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value", "tooltip", "isPremium", "type", "companyColor", "buttonBadgeConfig", "applicationTheme", "disabledScaleOnClick", "ariaLabel", "ariaRequired", "ariaLabelledby", "ariaDescribedby", "preventDefault", "hasBackground", "tooltipPosition", "role", "iconFilled"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "component", type: i4.FieldComponent, selector: "ui-field", inputs: ["fullWidth", "fullHeight", "label", "labelHtml", "labelIcon", "fieldName", "placeholder", "id", "value", "badgeVariant", "errors", "disabled", "required", "readOnly", "hintMessage", "type", "updateOnBlur", "allowOnlyDigits", "isAutocompleteOff", "allowNegative", "showBottomContent", "applicationTheme", "ariaLabel", "loading", "isValid", "maxCharacters", "trimOnBlur", "trimOnSubmit", "maxRows", "hasTextAreaCounter", "hideBuiltInErrors", "hideLabelInErrors", "max", "min", "textareaHeight", "borderless", "autosizableTextarea", "isAIVariant", "ariaLabelledby", "ariaDescribedby", "hasError"], outputs: ["validateEvent", "fieldBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
296
|
+
}
|
|
297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: InlineFieldComponent, decorators: [{
|
|
298
|
+
type: Component,
|
|
299
|
+
args: [{ selector: 'ui-inline-field', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
300
|
+
'[attr.theme]': 'applicationTheme()',
|
|
301
|
+
'[attr.state]': 'state()',
|
|
302
|
+
'[attr.editing]': 'isEditing()',
|
|
303
|
+
'[class.full-width]': 'fullWidth()',
|
|
304
|
+
}, standalone: false, template: "<div class=\"inline-field-container\">\n <div class=\"field-wrapper\" [ngClass]=\"{ 'is-editing': isEditing() }\">\n <ui-field\n [id]=\"id() + '-input'\"\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [value]=\"currentValue()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [errors]=\"errors()\"\n [showBottomContent]=\"showErrors()\"\n [ariaLabel]=\"ariaLabel()\"\n [applicationTheme]=\"applicationTheme()\"\n [fullWidth]=\"true\"\n [isAutocompleteOff]=\"true\"\n [type]=\"fieldType()\"\n [maxRows]=\"maxRows()\"\n (input)=\"onInputChange($event)\"\n (fieldBlur)=\"onInputBlur()\"\n (focusin)=\"onInputFocus()\"\n #fieldElement\n data-testid=\"inline-field\"\n ></ui-field>\n\n <div *ngIf=\"isEditing()\" class=\"action-buttons\">\n <ui-button\n [label]=\"saveButtonConfig().label\"\n [iconName]=\"saveButtonConfig().iconName\"\n [variant]=\"saveButtonConfig().variant\"\n [size]=\"saveButtonConfig().size\"\n [disabled]=\"saveButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"saveEdit()\"\n [attr.aria-label]=\"'Save ' + (label() || 'field')\"\n class=\"save-button\"\n ></ui-button>\n\n <ui-button\n [label]=\"cancelButtonConfig().label\"\n [iconName]=\"cancelButtonConfig().iconName\"\n [variant]=\"cancelButtonConfig().variant\"\n [size]=\"cancelButtonConfig().size\"\n [disabled]=\"cancelButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"cancelEdit()\"\n [attr.aria-label]=\"'Cancel editing ' + (label() || 'field')\"\n class=\"cancel-button\"\n ></ui-button>\n </div>\n </div>\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.ui-inline-field{display:block;position:relative;width:100%;max-width:320px}.ui-inline-field.full-width{max-width:100%}.ui-inline-field .inline-field-container,.ui-inline-field .field-wrapper{position:relative;width:100%}.ui-inline-field .field-wrapper ::ng-deep ui-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.ui-inline-field .field-wrapper .action-buttons{position:absolute;top:calc(100% + 4px);right:0;display:flex;gap:8px;z-index:10}.ui-inline-field .field-wrapper:hover .action-buttons.show-on-hover{opacity:1}.ui-inline-field .error-messages{margin-top:4px}.ui-inline-field .error-messages .error-message{display:flex;align-items:center;gap:4px;color:#e02800;font-size:12px;line-height:16px}.ui-inline-field .error-messages .error-message .error-icon ::ng-deep svg{color:#e02800}.ui-inline-field[state=disabled]{pointer-events:none}@media (max-width: 768px){.ui-inline-field .field-wrapper .action-buttons{position:static;margin-top:8px;justify-content:flex-end}}\n"] }]
|
|
305
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.DestroyRef }, { type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
|
306
|
+
type: Optional
|
|
307
|
+
}, {
|
|
308
|
+
type: Self
|
|
309
|
+
}] }], propDecorators: { class: [{
|
|
310
|
+
type: HostBinding
|
|
311
|
+
}], fieldComponent: [{
|
|
312
|
+
type: ViewChild,
|
|
313
|
+
args: ['fieldElement']
|
|
314
|
+
}], onComponentFocusOut: [{
|
|
315
|
+
type: HostListener,
|
|
316
|
+
args: ['focusout', ['$event']]
|
|
317
|
+
}], onEscapePressed: [{
|
|
318
|
+
type: HostListener,
|
|
319
|
+
args: ['keydown.escape', ['$event']]
|
|
320
|
+
}], onEnterPressed: [{
|
|
321
|
+
type: HostListener,
|
|
322
|
+
args: ['keydown.enter', ['$event']]
|
|
323
|
+
}], onTabPressed: [{
|
|
324
|
+
type: HostListener,
|
|
325
|
+
args: ['keydown.tab', ['$event']]
|
|
326
|
+
}] } });
|
|
327
|
+
|
|
328
|
+
class InlineFieldComponentModule {
|
|
329
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: InlineFieldComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
330
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: InlineFieldComponentModule, declarations: [InlineFieldComponent], imports: [CommonModule,
|
|
331
|
+
FormsModule,
|
|
332
|
+
ReactiveFormsModule,
|
|
333
|
+
MatInputModule,
|
|
334
|
+
ButtonComponentModule,
|
|
335
|
+
FieldComponentModule,
|
|
336
|
+
IconComponentModule], exports: [InlineFieldComponent] }); }
|
|
337
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: InlineFieldComponentModule, imports: [CommonModule,
|
|
338
|
+
FormsModule,
|
|
339
|
+
ReactiveFormsModule,
|
|
340
|
+
MatInputModule,
|
|
341
|
+
ButtonComponentModule,
|
|
342
|
+
FieldComponentModule,
|
|
343
|
+
IconComponentModule] }); }
|
|
344
|
+
}
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: InlineFieldComponentModule, decorators: [{
|
|
346
|
+
type: NgModule,
|
|
347
|
+
args: [{
|
|
348
|
+
declarations: [InlineFieldComponent],
|
|
349
|
+
imports: [
|
|
350
|
+
CommonModule,
|
|
351
|
+
FormsModule,
|
|
352
|
+
ReactiveFormsModule,
|
|
353
|
+
MatInputModule,
|
|
354
|
+
ButtonComponentModule,
|
|
355
|
+
FieldComponentModule,
|
|
356
|
+
IconComponentModule,
|
|
357
|
+
],
|
|
358
|
+
exports: [InlineFieldComponent],
|
|
359
|
+
}]
|
|
360
|
+
}] });
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Generated bundle index. Do not edit.
|
|
364
|
+
*/
|
|
365
|
+
|
|
366
|
+
export { InlineFieldComponent, InlineFieldComponentModule, inlineFieldID };
|
|
367
|
+
//# sourceMappingURL=testgorilla-tgo-ui-components-inline-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testgorilla-tgo-ui-components-inline-field.mjs","sources":["../../../components/inline-field/inline-field.component.ts","../../../components/inline-field/inline-field.component.html","../../../components/inline-field/inline-field.component.module.ts","../../../components/inline-field/testgorilla-tgo-ui-components-inline-field.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n ElementRef,\n HostBinding,\n HostListener,\n input,\n OnInit,\n output,\n ViewChild,\n ViewEncapsulation,\n computed,\n signal,\n Optional,\n Self,\n} from '@angular/core';\nimport { ControlValueAccessor, NgControl } from '@angular/forms';\nimport { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';\nimport {\n InlineFieldState,\n InlineFieldButtonConfig,\n InlineFieldValidation,\n InlineFieldChangeEvent,\n} from './inline-field.model';\nimport { FieldComponent } from '@testgorilla/tgo-ui/components/field';\nimport { FieldType } from '@testgorilla/tgo-ui/components/field';\n\n/**\n * A global counter used to generate unique inline field IDs.\n */\nexport let inlineFieldID = 0;\n\n@Component({\n selector: 'ui-inline-field',\n templateUrl: './inline-field.component.html',\n styleUrls: ['./inline-field.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.theme]': 'applicationTheme()',\n '[attr.state]': 'state()',\n '[attr.editing]': 'isEditing()',\n '[class.full-width]': 'fullWidth()',\n },\n standalone: false\n})\nexport class InlineFieldComponent implements OnInit, ControlValueAccessor {\n @HostBinding() class = 'ui-inline-field';\n\n /**\n * Component ID for accessibility\n */\n id = input(`inline-field-${inlineFieldID++}`);\n\n /**\n * Field label\n */\n label = input('');\n\n /**\n * Field placeholder\n */\n placeholder = input('');\n\n /**\n * Current value\n */\n value = input('');\n\n /**\n * Whether the field is required\n */\n required = input(false);\n\n /**\n * Whether the field is disabled\n */\n disabled = input(false);\n\n /**\n * Application theme\n */\n applicationTheme = input<ApplicationTheme>('light');\n\n /**\n * Field type\n */\n fieldType = input<FieldType>('text');\n\n /**\n * Field type\n */\n maxRows = input<number>(0);\n\n /**\n * Error messages\n */\n errors = input<string[]>([]);\n\n /**\n * Whether to show errors\n */\n showErrors = input(true);\n\n /**\n * Button configuration\n */\n buttonConfig = input<InlineFieldButtonConfig>({\n saveLabel: 'Save',\n cancelLabel: 'Cancel',\n saveIcon: 'Check-filled',\n cancelIcon: 'Close-filled',\n });\n\n /**\n * Validation configuration\n */\n validation = input<InlineFieldValidation>({});\n\n /**\n * ARIA label\n */\n ariaLabel = input('');\n\n /**\n * Full width\n */\n fullWidth = input(false);\n\n /**\n * Emitted when save button is clicked\n */\n save = output<InlineFieldChangeEvent>();\n\n /**\n * Emitted when cancel button is clicked\n */\n cancel = output<void>();\n\n /**\n * Emitted when value changes\n */\n valueChange = output<string>();\n\n /**\n * Emitted when editing mode changes\n */\n editingModeChange = output<boolean>();\n\n /**\n * Emitted on focus\n */\n focusEvent = output<void>();\n\n /**\n * Emitted on blur\n */\n blurEvent = output<void>();\n\n @ViewChild('fieldElement') fieldComponent: FieldComponent;\n\n private _isEditing = signal(false);\n private _originalValue = signal('');\n private _currentValue = signal('');\n private _state = signal<InlineFieldState>('default');\n\n isEditing = computed(() => this._isEditing());\n currentValue = computed(() => this._currentValue());\n state = computed(() => this._state());\n\n saveButtonConfig = computed(() => ({\n label: this.buttonConfig().saveLabel || 'Save',\n iconName: this.buttonConfig().saveIcon || 'Check-filled',\n variant: 'secondary-inverted' as const,\n size: 'small' as const,\n disabled: this.disabled(),\n }));\n\n cancelButtonConfig = computed(() => ({\n label: this.buttonConfig().cancelLabel || 'Cancel',\n iconName: this.buttonConfig().cancelIcon || 'Close-filled',\n variant: 'secondary-inverted' as const,\n size: 'small' as const,\n disabled: this.disabled(),\n }));\n\n private onChange = (_value: string) => {};\n private onTouched = () => {};\n\n constructor(\n private cdr: ChangeDetectorRef,\n private destroyRef: DestroyRef,\n private elementRef: ElementRef,\n @Optional() @Self() public ngControl: NgControl\n ) {\n if (this.ngControl != null) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n ngOnInit(): void {\n this._currentValue.set(this.value());\n this._originalValue.set(this.value());\n this.updateState();\n }\n\n writeValue(value: string): void {\n const newValue = value || '';\n this._currentValue.set(newValue);\n if (!this.isEditing()) {\n this._originalValue.set(newValue);\n }\n this.cdr.markForCheck();\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(_isDisabled: boolean): void {\n this.updateState();\n this.cdr.markForCheck();\n }\n\n @HostListener('focusout', ['$event'])\n onComponentFocusOut(event: FocusEvent): void {\n const relatedTarget = event.relatedTarget as HTMLElement;\n const isLeavingComponent = !relatedTarget || !this.elementRef.nativeElement.contains(relatedTarget);\n\n if (isLeavingComponent && this.isEditing()) {\n this._currentValue.set(this._originalValue());\n this.exitEditMode();\n this.onChange(this._originalValue());\n this.cancel.emit();\n }\n }\n\n @HostListener('keydown.escape', ['$event'])\n onEscapePressed(event: KeyboardEvent): void {\n if (this.isEditing()) {\n event.preventDefault();\n this.cancelEdit();\n }\n }\n\n @HostListener('keydown.enter', ['$event'])\n onEnterPressed(event: KeyboardEvent): void {\n if (this.isEditing() && !event.shiftKey) {\n event.preventDefault();\n this.saveEdit();\n }\n }\n\n @HostListener('keydown.tab', ['$event'])\n onTabPressed(): void {\n return;\n }\n\n onInputFocus(): void {\n if (!this.disabled() && !this.isEditing()) {\n this.enterEditMode();\n }\n this._state.set('focused');\n this.focusEvent.emit();\n this.onTouched();\n }\n\n onInputBlur(): void {\n this.blurEvent.emit();\n }\n\n onInputChange(event: Event): void {\n const inputElement = event.target as HTMLInputElement;\n const newValue = inputElement.value;\n this._currentValue.set(newValue);\n this.valueChange.emit(newValue);\n }\n\n focus(): void {\n if (this.fieldComponent) {\n this.fieldComponent.focus();\n this.fieldComponent.field?.nativeElement?.select();\n }\n }\n\n enterEditMode(): void {\n if (this.disabled() || this.isEditing()) {\n return;\n }\n\n this._originalValue.set(this._currentValue());\n this._isEditing.set(true);\n this._state.set('editing');\n this.editingModeChange.emit(true);\n\n this.cdr.markForCheck();\n }\n\n saveEdit(): void {\n if (!this.isEditing()) {\n return;\n }\n\n const newValue = this.currentValue();\n const hasValidationError = this.hasValidationError(newValue);\n\n if (hasValidationError) {\n this._state.set('error');\n this.cdr.markForCheck();\n return;\n }\n\n const changeEvent: InlineFieldChangeEvent = {\n value: newValue,\n saved: true,\n previousValue: this._originalValue(),\n };\n\n this._originalValue.set(newValue);\n this.exitEditMode();\n this.onChange(newValue);\n this.save.emit(changeEvent);\n }\n\n cancelEdit(): void {\n if (!this.isEditing()) {\n return;\n }\n\n this._currentValue.set(this._originalValue());\n this.exitEditMode();\n this.cancel.emit();\n }\n\n private exitEditMode(): void {\n this._isEditing.set(false);\n this.updateState();\n this.editingModeChange.emit(false);\n this.cdr.markForCheck();\n }\n\n private updateState(): void {\n if (this.disabled()) {\n this._state.set('disabled');\n } else if (this.errors().length > 0) {\n this._state.set('error');\n } else if (this.isEditing()) {\n this._state.set('editing');\n } else {\n this._state.set('default');\n }\n }\n\n private hasValidationError(value: string): boolean {\n const config = this.validation();\n\n return (\n this.hasRequiredError(value, config) ||\n this.hasMinLengthError(value, config) ||\n this.hasMaxLengthError(value, config) ||\n this.hasPatternError(value, config) ||\n this.hasCustomValidationError(value, config)\n );\n }\n\n private hasRequiredError(value: string, config: InlineFieldValidation): boolean {\n return !!config.required && (!value || value.trim().length === 0);\n }\n\n private hasMinLengthError(value: string, config: InlineFieldValidation): boolean {\n return !!config.minLength && value.length < config.minLength;\n }\n\n private hasMaxLengthError(value: string, config: InlineFieldValidation): boolean {\n return !!config.maxLength && value.length > config.maxLength;\n }\n\n private hasPatternError(value: string, config: InlineFieldValidation): boolean {\n return !!config.pattern && !config.pattern.test(value);\n }\n\n private hasCustomValidationError(value: string, config: InlineFieldValidation): boolean {\n return !!config.customValidator && config.customValidator(value);\n }\n}\n","<div class=\"inline-field-container\">\n <div class=\"field-wrapper\" [ngClass]=\"{ 'is-editing': isEditing() }\">\n <ui-field\n [id]=\"id() + '-input'\"\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [value]=\"currentValue()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [errors]=\"errors()\"\n [showBottomContent]=\"showErrors()\"\n [ariaLabel]=\"ariaLabel()\"\n [applicationTheme]=\"applicationTheme()\"\n [fullWidth]=\"true\"\n [isAutocompleteOff]=\"true\"\n [type]=\"fieldType()\"\n [maxRows]=\"maxRows()\"\n (input)=\"onInputChange($event)\"\n (fieldBlur)=\"onInputBlur()\"\n (focusin)=\"onInputFocus()\"\n #fieldElement\n data-testid=\"inline-field\"\n ></ui-field>\n\n <div *ngIf=\"isEditing()\" class=\"action-buttons\">\n <ui-button\n [label]=\"saveButtonConfig().label\"\n [iconName]=\"saveButtonConfig().iconName\"\n [variant]=\"saveButtonConfig().variant\"\n [size]=\"saveButtonConfig().size\"\n [disabled]=\"saveButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"saveEdit()\"\n [attr.aria-label]=\"'Save ' + (label() || 'field')\"\n class=\"save-button\"\n ></ui-button>\n\n <ui-button\n [label]=\"cancelButtonConfig().label\"\n [iconName]=\"cancelButtonConfig().iconName\"\n [variant]=\"cancelButtonConfig().variant\"\n [size]=\"cancelButtonConfig().size\"\n [disabled]=\"cancelButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"cancelEdit()\"\n [attr.aria-label]=\"'Cancel editing ' + (label() || 'field')\"\n class=\"cancel-button\"\n ></ui-button>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatInputModule } from '@angular/material/input';\n\nimport { ButtonComponentModule } from '@testgorilla/tgo-ui/components/button';\nimport { FieldComponentModule } from '@testgorilla/tgo-ui/components/field';\nimport { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';\n\nimport { InlineFieldComponent } from './inline-field.component';\n\n@NgModule({\n declarations: [InlineFieldComponent],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatInputModule,\n ButtonComponentModule,\n FieldComponentModule,\n IconComponentModule,\n ],\n exports: [InlineFieldComponent],\n})\nexport class InlineFieldComponentModule {}\n","/**\n * Generated bundle index.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