@fundamental-ngx/core 0.66.1-rc.2 → 0.66.1-rc.21
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/fundamental-ngx-core-combobox.mjs +4 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-datetime.mjs +5 -3
- package/fesm2022/fundamental-ngx-core-datetime.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-form.mjs +932 -69
- package/fesm2022/fundamental-ngx-core-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-input.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-pagination.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-pagination.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-time-picker.mjs +3 -4
- package/fesm2022/fundamental-ngx-core-time-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-token.mjs +14 -18
- package/fesm2022/fundamental-ngx-core-token.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-upload-collection.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-upload-collection.mjs.map +1 -1
- package/package.json +3 -3
- package/schematics/package.json +1 -1
- package/schematics/project.json +0 -7
- package/types/fundamental-ngx-core-form.d.ts +261 -34
- package/types/fundamental-ngx-core-token.d.ts +2 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { HostBinding, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule, InjectionToken,
|
|
2
|
+
import { HostBinding, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule, InjectionToken, Injectable, input, model, numberAttribute, output, inject, ElementRef, LOCALE_ID, computed, Injector, afterNextRender, untracked, booleanAttribute, Input, EventEmitter, Renderer2, contentChild, effect, ViewChild, Output, ContentChild, Directive } from '@angular/core';
|
|
3
|
+
import { ContentDensityObserver, contentDensityObserverProviders } from '@fundamental-ngx/core/content-density';
|
|
3
4
|
import { __decorate, __metadata } from 'tslib';
|
|
4
5
|
import { applyCssClass, DynamicComponentService } from '@fundamental-ngx/cdk/utils';
|
|
5
|
-
import * as i1 from '@fundamental-ngx/core/content-density';
|
|
6
|
-
import { contentDensityObserverProviders } from '@fundamental-ngx/core/content-density';
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
8
6
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
9
|
-
import * as i1
|
|
7
|
+
import * as i1 from '@fundamental-ngx/core/popover';
|
|
10
8
|
import { PopoverComponent, PopoverControlComponent, PopoverBodyComponent } from '@fundamental-ngx/core/popover';
|
|
11
9
|
import { resolveTranslationSignalFn } from '@fundamental-ngx/i18n';
|
|
12
10
|
import { NgTemplateOutlet } from '@angular/common';
|
|
@@ -69,6 +67,345 @@ function registerFormItemControl(control) {
|
|
|
69
67
|
};
|
|
70
68
|
}
|
|
71
69
|
|
|
70
|
+
/** Keys that are always allowed in a numeric input (navigation, editing, control). */
|
|
71
|
+
const ALLOWED_CONTROL_KEYS = new Set([
|
|
72
|
+
'Backspace',
|
|
73
|
+
'Delete',
|
|
74
|
+
'Tab',
|
|
75
|
+
'Escape',
|
|
76
|
+
'Enter',
|
|
77
|
+
'ArrowLeft',
|
|
78
|
+
'ArrowRight',
|
|
79
|
+
'ArrowUp',
|
|
80
|
+
'ArrowDown',
|
|
81
|
+
'Home',
|
|
82
|
+
'End',
|
|
83
|
+
'PageUp',
|
|
84
|
+
'PageDown'
|
|
85
|
+
]);
|
|
86
|
+
/**
|
|
87
|
+
* Service to handle numeric input validation and behavior
|
|
88
|
+
*/
|
|
89
|
+
class NumberInputService {
|
|
90
|
+
/**
|
|
91
|
+
* Validates if a key press is allowed for numeric input
|
|
92
|
+
* @param event The keyboard event
|
|
93
|
+
* @param currentValue The current input value
|
|
94
|
+
* @returns true if the key press is allowed, false otherwise
|
|
95
|
+
*/
|
|
96
|
+
isValidKeyPress(event, currentValue) {
|
|
97
|
+
const key = event.key;
|
|
98
|
+
const inputElement = event.target;
|
|
99
|
+
const selectionStart = inputElement.selectionStart ?? 0;
|
|
100
|
+
const selectionEnd = inputElement.selectionEnd ?? 0;
|
|
101
|
+
// Allow control keys
|
|
102
|
+
if (ALLOWED_CONTROL_KEYS.has(key)) {
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
// Allow Ctrl/Cmd shortcuts (copy, paste, select all, etc.)
|
|
106
|
+
if (event.ctrlKey || event.metaKey) {
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
// Allow digits 0-9
|
|
110
|
+
if (/^[0-9]$/.test(key)) {
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
// Allow minus/plus sign at the beginning (leading sign) or directly after an exponent (e/E)
|
|
114
|
+
if (key === '-' || key === '+') {
|
|
115
|
+
const charBefore = currentValue.charAt(selectionStart - 1);
|
|
116
|
+
// Exponent sign: allow a sign immediately after e/E, provided the exponent
|
|
117
|
+
// doesn't already have a sign right after the cursor
|
|
118
|
+
if (charBefore === 'e' || charBefore === 'E') {
|
|
119
|
+
const charAfter = currentValue.charAt(selectionEnd);
|
|
120
|
+
return charAfter !== '-' && charAfter !== '+';
|
|
121
|
+
}
|
|
122
|
+
// Only the minus sign is allowed as a leading sign
|
|
123
|
+
if (key === '+') {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
// If replacing the entire value, a leading minus is always fine
|
|
127
|
+
if (selectionStart === 0 && selectionEnd === currentValue.length) {
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
// Leading minus: allow only at the start and when no leading minus already exists
|
|
131
|
+
if (selectionStart === 0) {
|
|
132
|
+
return currentValue.charAt(0) !== '-';
|
|
133
|
+
}
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
// Allow decimal separator (. or ,) only once
|
|
137
|
+
// Accept both . and , as decimal separators for better UX - parsing will normalize them
|
|
138
|
+
if (key === '.' || key === ',') {
|
|
139
|
+
// Check if any decimal separator already exists in the value (outside selection)
|
|
140
|
+
const valueBeforeCursor = currentValue.substring(0, selectionStart);
|
|
141
|
+
const valueAfterCursor = currentValue.substring(selectionEnd);
|
|
142
|
+
const hasDecimalBefore = /[.,]/.test(valueBeforeCursor);
|
|
143
|
+
const hasDecimalAfter = /[.,]/.test(valueAfterCursor);
|
|
144
|
+
// Allow if no decimal separator exists outside the selection
|
|
145
|
+
return !hasDecimalBefore && !hasDecimalAfter;
|
|
146
|
+
}
|
|
147
|
+
// Allow scientific notation (e or E) only once
|
|
148
|
+
if (key === 'e' || key === 'E') {
|
|
149
|
+
// Check if scientific notation already exists outside selection
|
|
150
|
+
const valueBeforeCursor = currentValue.substring(0, selectionStart);
|
|
151
|
+
const valueAfterCursor = currentValue.substring(selectionEnd);
|
|
152
|
+
const hasEBefore = /[eE]/.test(valueBeforeCursor);
|
|
153
|
+
const hasEAfter = /[eE]/.test(valueAfterCursor);
|
|
154
|
+
return !hasEBefore && !hasEAfter && currentValue.length > 0;
|
|
155
|
+
}
|
|
156
|
+
// Block all other keys
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Validates if the paste content is valid numeric input
|
|
161
|
+
* @param pastedText The text being pasted
|
|
162
|
+
* @param decimalSeparator The decimal separator character (. or ,)
|
|
163
|
+
* @param precision Optional maximum number of decimal places. When set, pastes with more
|
|
164
|
+
* decimal digits than allowed are rejected.
|
|
165
|
+
* @returns true if the paste is valid, false otherwise
|
|
166
|
+
*/
|
|
167
|
+
isValidPaste(pastedText, decimalSeparator = '.', precision) {
|
|
168
|
+
// Remove thousands separators (both , and space)
|
|
169
|
+
let cleanedText = pastedText.replace(/[\s,]/g, '');
|
|
170
|
+
// If using comma as decimal separator, replace it with period for validation
|
|
171
|
+
if (decimalSeparator === ',') {
|
|
172
|
+
cleanedText = cleanedText.replace(/,/g, '.');
|
|
173
|
+
}
|
|
174
|
+
// Validate numeric format: optional minus at start, digits, optional decimal, optional scientific notation
|
|
175
|
+
const numericPattern = /^-?(\d+\.?\d*|\.\d+)([eE][-+]?\d+)?$/;
|
|
176
|
+
if (!numericPattern.test(cleanedText)) {
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
// Enforce precision: reject if the pasted value has more decimal places than allowed
|
|
180
|
+
if (typeof precision === 'number' && precision >= 0) {
|
|
181
|
+
const parsed = this.parseNumericValue(pastedText, decimalSeparator);
|
|
182
|
+
if (parsed !== null && this.countDecimals(parsed) > precision) {
|
|
183
|
+
return false;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return true;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Parses a numeric string and returns the numeric value
|
|
190
|
+
* @param value The string value to parse
|
|
191
|
+
* @param decimalSeparator The decimal separator character (. or ,)
|
|
192
|
+
* @returns The parsed number or null if invalid
|
|
193
|
+
*/
|
|
194
|
+
parseNumericValue(value, decimalSeparator = '.') {
|
|
195
|
+
if (!value || value.trim() === '' || value === '-') {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
let cleanedValue = value;
|
|
199
|
+
if (decimalSeparator === ',') {
|
|
200
|
+
// When comma is decimal separator:
|
|
201
|
+
// Accept both . and , as decimal input, normalize to the locale's separator
|
|
202
|
+
const hasPeriod = cleanedValue.includes('.');
|
|
203
|
+
const hasComma = cleanedValue.includes(',');
|
|
204
|
+
if (hasPeriod && hasComma) {
|
|
205
|
+
// Has both - assume thousands separators exist
|
|
206
|
+
// Common formats: "1.234,56" (de-DE) or "1,234.56" (should be rare)
|
|
207
|
+
// Check which appears last to determine which is decimal
|
|
208
|
+
const lastPeriod = cleanedValue.lastIndexOf('.');
|
|
209
|
+
const lastComma = cleanedValue.lastIndexOf(',');
|
|
210
|
+
if (lastComma > lastPeriod) {
|
|
211
|
+
// Comma is decimal: "1.234,56"
|
|
212
|
+
cleanedValue = cleanedValue.replace(/[\s.]/g, ''); // Remove spaces and periods (thousands)
|
|
213
|
+
cleanedValue = cleanedValue.replace(',', '.'); // Replace comma decimal with period
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
// Period is decimal (unusual for comma locale): "1,234.56"
|
|
217
|
+
cleanedValue = cleanedValue.replace(/[\s,]/g, ''); // Remove spaces and commas (thousands)
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
else if (hasPeriod && !hasComma) {
|
|
221
|
+
// Only period - could be decimal OR thousands separator
|
|
222
|
+
const periodCount = (cleanedValue.match(/\./g) || []).length;
|
|
223
|
+
if (periodCount > 1) {
|
|
224
|
+
// Multiple periods = thousands separators: "1.000.000"
|
|
225
|
+
cleanedValue = cleanedValue.replace(/[\s.]/g, '');
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
// Single period - check if it looks like thousands or decimal
|
|
229
|
+
const periodIndex = cleanedValue.indexOf('.');
|
|
230
|
+
const afterPeriod = cleanedValue.substring(periodIndex + 1);
|
|
231
|
+
// If there are exactly 3 digits after the period and more before, likely thousands
|
|
232
|
+
if (afterPeriod.length === 3 && /^\d+$/.test(afterPeriod) && periodIndex > 0) {
|
|
233
|
+
// Thousands separator
|
|
234
|
+
cleanedValue = cleanedValue.replace(/[\s.]/g, '');
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
// Decimal separator (user typed . in comma-locale input)
|
|
238
|
+
cleanedValue = cleanedValue.replace(/[\s]/g, '');
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
else if (!hasPeriod && hasComma) {
|
|
243
|
+
// Only comma - treat as decimal
|
|
244
|
+
cleanedValue = cleanedValue.replace(/[\s]/g, ''); // Only remove spaces
|
|
245
|
+
cleanedValue = cleanedValue.replace(',', '.'); // Replace comma decimal with period
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
// No separators
|
|
249
|
+
cleanedValue = cleanedValue.replace(/[\s]/g, ''); // Only remove spaces
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
// When period is decimal separator (default):
|
|
254
|
+
// Accept both . and , as decimal input
|
|
255
|
+
const hasPeriod = cleanedValue.includes('.');
|
|
256
|
+
const hasComma = cleanedValue.includes(',');
|
|
257
|
+
if (hasPeriod && hasComma) {
|
|
258
|
+
// Has both - determine which is decimal by position (last one is decimal)
|
|
259
|
+
const lastPeriod = cleanedValue.lastIndexOf('.');
|
|
260
|
+
const lastComma = cleanedValue.lastIndexOf(',');
|
|
261
|
+
if (lastPeriod > lastComma) {
|
|
262
|
+
// Period is decimal: "1,234.56"
|
|
263
|
+
cleanedValue = cleanedValue.replace(/[\s,]/g, ''); // Remove spaces and commas (thousands)
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
// Comma is decimal (unusual for period locale): "1.234,56"
|
|
267
|
+
cleanedValue = cleanedValue.replace(/[\s.]/g, ''); // Remove spaces and periods (thousands)
|
|
268
|
+
cleanedValue = cleanedValue.replace(',', '.'); // Replace comma decimal with period
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
else if (hasComma && !hasPeriod) {
|
|
272
|
+
// Only comma - could be decimal OR thousands separator
|
|
273
|
+
// If there are multiple commas, they're thousands separators: "1,000,000"
|
|
274
|
+
// If there's one comma, check position:
|
|
275
|
+
// - If it appears every 3 digits from the right, it's thousands: "1,000"
|
|
276
|
+
// - Otherwise it's likely decimal: "1,5"
|
|
277
|
+
const commaCount = (cleanedValue.match(/,/g) || []).length;
|
|
278
|
+
if (commaCount > 1) {
|
|
279
|
+
// Multiple commas = thousands separators
|
|
280
|
+
cleanedValue = cleanedValue.replace(/[\s,]/g, '');
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
// Single comma - check if it looks like thousands or decimal
|
|
284
|
+
const commaIndex = cleanedValue.indexOf(',');
|
|
285
|
+
const afterComma = cleanedValue.substring(commaIndex + 1);
|
|
286
|
+
// If there are exactly 3 digits after the comma and more before, likely thousands
|
|
287
|
+
// e.g., "1,000" or "123,456" but not "1,5" or "12,34"
|
|
288
|
+
if (afterComma.length === 3 && /^\d+$/.test(afterComma) && commaIndex > 0) {
|
|
289
|
+
// Thousands separator
|
|
290
|
+
cleanedValue = cleanedValue.replace(/[\s,]/g, '');
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
// Decimal separator
|
|
294
|
+
cleanedValue = cleanedValue.replace(/[\s]/g, '');
|
|
295
|
+
cleanedValue = cleanedValue.replace(',', '.'); // Normalize comma to period
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
// Only period or no separators
|
|
301
|
+
cleanedValue = cleanedValue.replace(/[\s]/g, ''); // Remove spaces only
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
const parsed = parseFloat(cleanedValue);
|
|
305
|
+
return isNaN(parsed) ? null : parsed;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Formats a number for display
|
|
309
|
+
* @param value The numeric value
|
|
310
|
+
* @param precision Optional precision (decimal places)
|
|
311
|
+
* @param decimalSeparator The decimal separator character (. or ,)
|
|
312
|
+
* @param useGrouping Whether to use thousands separator
|
|
313
|
+
* @param groupingSeparator Explicit thousands separator. When omitted, it is inferred from the
|
|
314
|
+
* decimal separator (`,` → `.`, otherwise `,`). Pass this for locales whose grouping separator
|
|
315
|
+
* is neither (e.g. fr-FR uses a narrow no-break space).
|
|
316
|
+
* @returns The formatted string
|
|
317
|
+
*/
|
|
318
|
+
formatNumber(value, precision, decimalSeparator = '.', useGrouping = false, groupingSeparator) {
|
|
319
|
+
if (value === null || value === undefined) {
|
|
320
|
+
return '';
|
|
321
|
+
}
|
|
322
|
+
let formatted;
|
|
323
|
+
if (precision !== undefined && precision >= 0) {
|
|
324
|
+
formatted = value.toFixed(precision);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
formatted = value.toString();
|
|
328
|
+
}
|
|
329
|
+
// Add thousands separator if requested
|
|
330
|
+
if (useGrouping) {
|
|
331
|
+
const parts = formatted.split('.');
|
|
332
|
+
const integerPart = parts[0];
|
|
333
|
+
const decimalPart = parts[1];
|
|
334
|
+
// Use the explicit grouping separator when provided, otherwise infer from the decimal
|
|
335
|
+
// separator (if decimal is comma, use period for thousands, otherwise use comma).
|
|
336
|
+
const thousandsSeparator = groupingSeparator ?? (decimalSeparator === ',' ? '.' : ',');
|
|
337
|
+
const withGrouping = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator);
|
|
338
|
+
// Reconstruct: integer part with grouping + decimal separator + decimal part
|
|
339
|
+
if (decimalPart !== undefined) {
|
|
340
|
+
formatted = `${withGrouping}${decimalSeparator}${decimalPart}`;
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
formatted = withGrouping;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
// No grouping: just replace decimal point if needed
|
|
348
|
+
if (decimalSeparator === ',') {
|
|
349
|
+
formatted = formatted.replace('.', ',');
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
return formatted;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Counts the number of decimal places in a numeric value.
|
|
356
|
+
* Handles scientific notation (e.g. 1e-5 → 5 decimal places).
|
|
357
|
+
* @param value The numeric value
|
|
358
|
+
* @returns The number of digits after the decimal point
|
|
359
|
+
*/
|
|
360
|
+
countDecimals(value) {
|
|
361
|
+
if (!isFinite(value) || Math.floor(value) === value) {
|
|
362
|
+
return 0;
|
|
363
|
+
}
|
|
364
|
+
const str = value.toString();
|
|
365
|
+
// Scientific notation, e.g. "1e-7" or "1.5e-7"
|
|
366
|
+
const scientificMatch = str.match(/^-?(\d+)(?:\.(\d+))?e([-+]?\d+)$/i);
|
|
367
|
+
if (scientificMatch) {
|
|
368
|
+
const fractionDigits = scientificMatch[2]?.length ?? 0;
|
|
369
|
+
const exponent = parseInt(scientificMatch[3], 10);
|
|
370
|
+
return Math.max(0, fractionDigits - exponent);
|
|
371
|
+
}
|
|
372
|
+
const decimalPart = str.split('.')[1];
|
|
373
|
+
return decimalPart ? decimalPart.length : 0;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Determines whether typing a character at the current selection would exceed the allowed
|
|
377
|
+
* number of decimal places. Used for live-validation blocking of digit input.
|
|
378
|
+
* @param event The keyboard event for the character being typed
|
|
379
|
+
* @param currentValue The current input value
|
|
380
|
+
* @param precision The maximum number of decimal places allowed
|
|
381
|
+
* @returns true if the keystroke would push the decimals past the precision limit
|
|
382
|
+
*/
|
|
383
|
+
wouldExceedPrecision(event, currentValue, precision) {
|
|
384
|
+
// Only plain digit input can grow the decimal part
|
|
385
|
+
if (!/^[0-9]$/.test(event.key)) {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
const inputElement = event.target;
|
|
389
|
+
const selectionStart = inputElement.selectionStart ?? currentValue.length;
|
|
390
|
+
const selectionEnd = inputElement.selectionEnd ?? currentValue.length;
|
|
391
|
+
// Simulate the resulting value after the keystroke replaces the current selection
|
|
392
|
+
const nextValue = currentValue.substring(0, selectionStart) + event.key + currentValue.substring(selectionEnd);
|
|
393
|
+
// Count digits after the decimal separator in the simulated value
|
|
394
|
+
const separatorIndex = nextValue.search(/[.,]/);
|
|
395
|
+
if (separatorIndex === -1) {
|
|
396
|
+
return false;
|
|
397
|
+
}
|
|
398
|
+
// Ignore scientific-notation exponents when counting the fractional part
|
|
399
|
+
const fractional = nextValue.substring(separatorIndex + 1).split(/[eE]/)[0];
|
|
400
|
+
return fractional.length > precision;
|
|
401
|
+
}
|
|
402
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: NumberInputService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
403
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: NumberInputService }); }
|
|
404
|
+
}
|
|
405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: NumberInputService, decorators: [{
|
|
406
|
+
type: Injectable
|
|
407
|
+
}] });
|
|
408
|
+
|
|
72
409
|
/**
|
|
73
410
|
* Directive intended for use on form controls.
|
|
74
411
|
*
|
|
@@ -78,81 +415,585 @@ function registerFormItemControl(control) {
|
|
|
78
415
|
*/
|
|
79
416
|
class FormControlComponent {
|
|
80
417
|
/** @hidden */
|
|
81
|
-
constructor(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
418
|
+
constructor() {
|
|
419
|
+
/**
|
|
420
|
+
* The state of the form control - applies css classes.
|
|
421
|
+
* Can be `success`, `error`, `warning`, `information` or blank for default.
|
|
422
|
+
*/
|
|
423
|
+
this.state = input(null, /* @ts-ignore */
|
|
424
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
425
|
+
/**
|
|
426
|
+
* Type of the form control.
|
|
427
|
+
* For type="number", it will be converted to type="text" internally.
|
|
428
|
+
*/
|
|
429
|
+
this.type = input('text', /* @ts-ignore */
|
|
430
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
431
|
+
/**
|
|
432
|
+
* User's custom classes
|
|
433
|
+
*/
|
|
434
|
+
this.class = input('', /* @ts-ignore */
|
|
435
|
+
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
436
|
+
/**
|
|
437
|
+
* aria-label for form-control.
|
|
438
|
+
*/
|
|
439
|
+
this.ariaLabel = input(/* @ts-ignore */
|
|
440
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
441
|
+
/**
|
|
442
|
+
* aria-labelledby for form-control.
|
|
443
|
+
* Writable so sibling directives (e.g. `fd-form-item`) can associate the control with a label.
|
|
444
|
+
*/
|
|
445
|
+
this.ariaLabelledBy = model(/* @ts-ignore */
|
|
446
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
447
|
+
/**
|
|
448
|
+
* Value of the `aria-label` attribute or `[aria-label]` binding.
|
|
449
|
+
* Takes precedence over `ariaLabel`.
|
|
450
|
+
*/
|
|
451
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
452
|
+
this.ariaLabelAttr = input(null, { ...(ngDevMode ? { debugName: "ariaLabelAttr" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
453
|
+
/**
|
|
454
|
+
* Value of the `aria-labelledby` attribute or `[aria-labelledby]` binding.
|
|
455
|
+
* Takes precedence over `ariaLabelledBy`.
|
|
456
|
+
*/
|
|
457
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
458
|
+
this.ariaLabelledByAttr = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledByAttr" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
|
|
459
|
+
// ===== Number Input Signal Inputs =====
|
|
460
|
+
/**
|
|
461
|
+
* Minimum value for number input.
|
|
462
|
+
* Accepts number or string and normalizes to number.
|
|
463
|
+
*/
|
|
464
|
+
this.min = input(undefined, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: (value) => (value != null ? numberAttribute(value) : undefined) });
|
|
465
|
+
/**
|
|
466
|
+
* Maximum value for number input.
|
|
467
|
+
* Accepts number or string and normalizes to number.
|
|
468
|
+
*/
|
|
469
|
+
this.max = input(undefined, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: (value) => (value != null ? numberAttribute(value) : undefined) });
|
|
470
|
+
/**
|
|
471
|
+
* Step size for incrementing/decrementing value.
|
|
472
|
+
* Used with Arrow Up/Down keys and scroll.
|
|
473
|
+
* Accepts number or string and normalizes to number.
|
|
474
|
+
* @default 1
|
|
475
|
+
*/
|
|
476
|
+
this.step = input(1, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: (value) => (value != null ? numberAttribute(value) : 1) });
|
|
477
|
+
/**
|
|
478
|
+
* Larger step multiplier for Page Up/Down keys.
|
|
479
|
+
* The actual step is calculated as: step × largeStep
|
|
480
|
+
* @default 10
|
|
481
|
+
*/
|
|
482
|
+
this.largeStep = input(10, { ...(ngDevMode ? { debugName: "largeStep" } : /* istanbul ignore next */ {}), transform: (value) => (value != null ? numberAttribute(value) : 10) });
|
|
483
|
+
/**
|
|
484
|
+
* Number of decimal places to display.
|
|
485
|
+
* When undefined, precision is not enforced.
|
|
486
|
+
*/
|
|
487
|
+
this.valuePrecision = input(undefined, { ...(ngDevMode ? { debugName: "valuePrecision" } : /* istanbul ignore next */ {}), transform: (value) => (value != null ? numberAttribute(value) : undefined) });
|
|
488
|
+
/**
|
|
489
|
+
* Step mode for value calculation.
|
|
490
|
+
* - 'addition': new value = current value ± step
|
|
491
|
+
* - 'multiple': new value rounds to nearest multiple of step
|
|
492
|
+
* @default 'addition'
|
|
493
|
+
*/
|
|
494
|
+
this.stepMode = input('addition', /* @ts-ignore */
|
|
495
|
+
...(ngDevMode ? [{ debugName: "stepMode" }] : /* istanbul ignore next */ []));
|
|
496
|
+
/**
|
|
497
|
+
* Validation mode for numeric input.
|
|
498
|
+
* - 'delayed': validate on blur or Enter
|
|
499
|
+
* - 'live': validate immediately on each keystroke
|
|
500
|
+
* @default 'delayed'
|
|
501
|
+
*/
|
|
502
|
+
this.validationMode = input('delayed', /* @ts-ignore */
|
|
503
|
+
...(ngDevMode ? [{ debugName: "validationMode" }] : /* istanbul ignore next */ []));
|
|
504
|
+
/**
|
|
505
|
+
* Text alignment within the input field.
|
|
506
|
+
* - 'start': left-aligned (LTR) / right-aligned (RTL)
|
|
507
|
+
* - 'center': center-aligned
|
|
508
|
+
* - 'end': right-aligned (LTR) / left-aligned (RTL)
|
|
509
|
+
* @default 'end'
|
|
510
|
+
*/
|
|
511
|
+
this.textAlign = input('end', /* @ts-ignore */
|
|
512
|
+
...(ngDevMode ? [{ debugName: "textAlign" }] : /* istanbul ignore next */ []));
|
|
513
|
+
/**
|
|
514
|
+
* Enable thousands separator for large numbers.
|
|
515
|
+
* Example: 1000000 displays as 1,000,000
|
|
516
|
+
* @default false
|
|
517
|
+
*/
|
|
518
|
+
this.useGrouping = input(false, /* @ts-ignore */
|
|
519
|
+
...(ngDevMode ? [{ debugName: "useGrouping" }] : /* istanbul ignore next */ []));
|
|
520
|
+
/**
|
|
521
|
+
* Locale identifier for number formatting.
|
|
522
|
+
* Determines the decimal separator and thousands separator based on locale conventions.
|
|
523
|
+
* - 'en-US': uses . for decimal and , for thousands (1,234.56)
|
|
524
|
+
* - 'de-DE': uses , for decimal and . for thousands (1.234,56)
|
|
525
|
+
* - 'fr-FR': uses , for decimal and space for thousands (1 234,56)
|
|
526
|
+
* When not set, formatting falls back to the Angular `LOCALE_ID` injection token.
|
|
527
|
+
* @default undefined
|
|
528
|
+
*/
|
|
529
|
+
this.locale = input(undefined, /* @ts-ignore */
|
|
530
|
+
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
531
|
+
/**
|
|
532
|
+
* Decimal separator character.
|
|
533
|
+
* When set explicitly, overrides the locale-based separator.
|
|
534
|
+
* - '.': period (en-US style)
|
|
535
|
+
* - ',': comma (de-DE style)
|
|
536
|
+
* @default Determined by locale
|
|
537
|
+
*/
|
|
538
|
+
this.decimalSeparator = input(undefined, /* @ts-ignore */
|
|
539
|
+
...(ngDevMode ? [{ debugName: "decimalSeparator" }] : /* istanbul ignore next */ []));
|
|
540
|
+
/**
|
|
541
|
+
* Emits validation state for number inputs.
|
|
542
|
+
* Emits `true` when the value is valid, `false` when invalid.
|
|
543
|
+
*/
|
|
544
|
+
this.validationChange = output();
|
|
545
|
+
/** @hidden */
|
|
546
|
+
this.elementRef = inject(ElementRef);
|
|
547
|
+
/** @hidden */
|
|
548
|
+
this.contentDensityObserver = inject(ContentDensityObserver);
|
|
549
|
+
/** @hidden */
|
|
550
|
+
this.numberInputService = inject(NumberInputService);
|
|
551
|
+
/** @hidden */
|
|
552
|
+
this.localeId = inject(LOCALE_ID);
|
|
553
|
+
/** @hidden Computed CSS classes */
|
|
554
|
+
this.cssClass = computed(() => {
|
|
555
|
+
const tagName = this.elementRef.nativeElement.tagName.toLowerCase();
|
|
556
|
+
const classes = [];
|
|
557
|
+
// Add state class
|
|
558
|
+
if (this.state()) {
|
|
559
|
+
classes.push(`is-${this.state()}`);
|
|
560
|
+
}
|
|
561
|
+
// Add base class
|
|
562
|
+
if (tagName === 'textarea') {
|
|
563
|
+
classes.push('fd-textarea');
|
|
564
|
+
}
|
|
565
|
+
else if (tagName === 'input') {
|
|
566
|
+
classes.push('fd-input');
|
|
567
|
+
}
|
|
568
|
+
// Add custom classes
|
|
569
|
+
if (this.class()) {
|
|
570
|
+
classes.push(this.class());
|
|
571
|
+
}
|
|
572
|
+
return classes.join(' ');
|
|
573
|
+
}, /* @ts-ignore */
|
|
574
|
+
...(ngDevMode ? [{ debugName: "cssClass" }] : /* istanbul ignore next */ []));
|
|
575
|
+
/** @hidden Internal type - converts number to text; omitted on non-input hosts (e.g. textarea) */
|
|
576
|
+
this.internalType = computed(() => {
|
|
577
|
+
// Textareas have no `type` attribute; don't stamp one onto them.
|
|
578
|
+
if (this.elementRef.nativeElement.tagName !== 'INPUT') {
|
|
579
|
+
return null;
|
|
580
|
+
}
|
|
581
|
+
const inputType = this.type();
|
|
582
|
+
return inputType === 'number' ? 'text' : inputType;
|
|
583
|
+
}, /* @ts-ignore */
|
|
584
|
+
...(ngDevMode ? [{ debugName: "internalType" }] : /* istanbul ignore next */ []));
|
|
585
|
+
/** @hidden Enhanced number mode is active when type is number */
|
|
586
|
+
this.isEnhancedNumberMode = computed(() => this.type() === 'number', /* @ts-ignore */
|
|
587
|
+
...(ngDevMode ? [{ debugName: "isEnhancedNumberMode" }] : /* istanbul ignore next */ []));
|
|
588
|
+
/**
|
|
589
|
+
* @hidden
|
|
590
|
+
* Computed decimal separator based on locale or explicit override.
|
|
591
|
+
* Priority: decimalSeparator input > locale input > LOCALE_ID injection
|
|
592
|
+
*/
|
|
593
|
+
this.effectiveDecimalSeparator = computed(() => {
|
|
594
|
+
// Explicit decimalSeparator takes precedence
|
|
595
|
+
const explicitSeparator = this.decimalSeparator();
|
|
596
|
+
if (explicitSeparator !== undefined) {
|
|
597
|
+
return explicitSeparator;
|
|
598
|
+
}
|
|
599
|
+
// Determine from locale
|
|
600
|
+
const localeIdValue = this.locale() || this.localeId;
|
|
601
|
+
return this.getDecimalSeparatorForLocale(localeIdValue);
|
|
602
|
+
}, /* @ts-ignore */
|
|
603
|
+
...(ngDevMode ? [{ debugName: "effectiveDecimalSeparator" }] : /* istanbul ignore next */ []));
|
|
85
604
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
605
|
+
* @hidden
|
|
606
|
+
* Computed grouping (thousands) separator based on locale.
|
|
607
|
+
* Falls back to inferring from the decimal separator when an explicit `decimalSeparator`
|
|
608
|
+
* override is set without a locale (e.g. a `,` decimal implies a `.` grouping separator).
|
|
88
609
|
*/
|
|
89
|
-
this.
|
|
610
|
+
this.effectiveGroupingSeparator = computed(() => {
|
|
611
|
+
// When the decimal separator is overridden without a locale, there's no locale to read a
|
|
612
|
+
// grouping separator from, so keep the decimal-derived default (handled by the service).
|
|
613
|
+
if (this.decimalSeparator() !== undefined && this.locale() === undefined) {
|
|
614
|
+
return this.effectiveDecimalSeparator() === ',' ? '.' : ',';
|
|
615
|
+
}
|
|
616
|
+
const localeIdValue = this.locale() || this.localeId;
|
|
617
|
+
return this.getGroupingSeparatorForLocale(localeIdValue);
|
|
618
|
+
}, /* @ts-ignore */
|
|
619
|
+
...(ngDevMode ? [{ debugName: "effectiveGroupingSeparator" }] : /* istanbul ignore next */ []));
|
|
90
620
|
/** @hidden */
|
|
91
|
-
this.
|
|
92
|
-
|
|
621
|
+
this._injector = inject(Injector);
|
|
622
|
+
/** @hidden Value before focus - used for Escape key reset */
|
|
623
|
+
this._valueBeforeFocus = null;
|
|
624
|
+
/** @hidden Cache for locale to decimal separator mapping */
|
|
625
|
+
this._decimalSeparatorCache = new Map();
|
|
626
|
+
/** @hidden Cache for locale to grouping (thousands) separator mapping */
|
|
627
|
+
this._groupingSeparatorCache = new Map();
|
|
628
|
+
this.contentDensityObserver.subscribe();
|
|
629
|
+
// Format initial value if enhanced number mode needs formatting.
|
|
630
|
+
// afterNextRender runs after the first render, but ngModel's ControlValueAccessor
|
|
631
|
+
// writes its value in a microtask, so defer one more microtask to read the settled value.
|
|
632
|
+
afterNextRender(() => {
|
|
633
|
+
// Use untracked to avoid creating dependencies during initialization
|
|
634
|
+
const needsFormatting = untracked(() => this.type() === 'number' &&
|
|
635
|
+
(this.useGrouping() || this.effectiveDecimalSeparator() === ',' || this.locale() !== undefined));
|
|
636
|
+
if (needsFormatting) {
|
|
637
|
+
queueMicrotask(() => this.formatInitialValue());
|
|
638
|
+
}
|
|
639
|
+
}, { injector: this._injector });
|
|
640
|
+
}
|
|
641
|
+
/** @hidden Handle keydown events for number input validation */
|
|
642
|
+
handleKeydown(event) {
|
|
643
|
+
// Only apply validation for number type
|
|
644
|
+
if (this.type() !== 'number') {
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
const inputElement = this.elementRef.nativeElement;
|
|
648
|
+
const currentValue = inputElement.value;
|
|
649
|
+
// Handle special keys for number input
|
|
650
|
+
switch (event.key) {
|
|
651
|
+
case 'ArrowUp':
|
|
652
|
+
event.preventDefault();
|
|
653
|
+
this.stepValue(1, false);
|
|
654
|
+
return;
|
|
655
|
+
case 'ArrowDown':
|
|
656
|
+
event.preventDefault();
|
|
657
|
+
this.stepValue(-1, false);
|
|
658
|
+
return;
|
|
659
|
+
case 'PageUp':
|
|
660
|
+
event.preventDefault();
|
|
661
|
+
this.stepValue(1, true);
|
|
662
|
+
return;
|
|
663
|
+
case 'PageDown':
|
|
664
|
+
event.preventDefault();
|
|
665
|
+
this.stepValue(-1, true);
|
|
666
|
+
return;
|
|
667
|
+
case 'Enter':
|
|
668
|
+
this.handleEnterKey();
|
|
669
|
+
return;
|
|
670
|
+
case 'Escape':
|
|
671
|
+
event.preventDefault();
|
|
672
|
+
this.handleEscapeKey();
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
// Validate the key press
|
|
676
|
+
if (!this.numberInputService.isValidKeyPress(event, currentValue)) {
|
|
677
|
+
event.preventDefault();
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
// Live validation - block input that would exceed precision, then validate the result
|
|
681
|
+
if (this.validationMode() === 'live') {
|
|
682
|
+
const precision = this.valuePrecision();
|
|
683
|
+
if (typeof precision === 'number' &&
|
|
684
|
+
this.numberInputService.wouldExceedPrecision(event, currentValue, precision)) {
|
|
685
|
+
event.preventDefault();
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
// Use setTimeout to wait for the input value to update
|
|
689
|
+
setTimeout(() => this.validateLive(inputElement), 0);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
/** @hidden Handle paste events for number input validation */
|
|
693
|
+
handlePaste(event) {
|
|
694
|
+
// Only apply validation for number type
|
|
695
|
+
if (this.type() !== 'number') {
|
|
696
|
+
return;
|
|
697
|
+
}
|
|
698
|
+
const pastedText = event.clipboardData?.getData('text') || '';
|
|
699
|
+
// Validate the pasted content, including precision when defined
|
|
700
|
+
if (!this.numberInputService.isValidPaste(pastedText, this.effectiveDecimalSeparator(), this.valuePrecision())) {
|
|
701
|
+
event.preventDefault();
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
/** @hidden Handle focus - store current value for Escape reset */
|
|
705
|
+
handleFocus(event) {
|
|
706
|
+
if (this.type() !== 'number') {
|
|
707
|
+
return;
|
|
708
|
+
}
|
|
709
|
+
const inputElement = event.target;
|
|
710
|
+
this._valueBeforeFocus = inputElement.value;
|
|
711
|
+
// Parse and reformat value for editing (remove thousands separator if present)
|
|
712
|
+
const numericValue = this.numberInputService.parseNumericValue(inputElement.value, this.effectiveDecimalSeparator());
|
|
713
|
+
if (numericValue !== null) {
|
|
714
|
+
// Format without grouping and always use DOT for decimal during editing
|
|
715
|
+
// This ensures ngModel receives standard numeric strings that JavaScript can parse
|
|
716
|
+
inputElement.value = this.numberInputService.formatNumber(numericValue, undefined, '.', // Always use dot during editing for ngModel compatibility
|
|
717
|
+
false);
|
|
718
|
+
}
|
|
719
|
+
// Select all text on focus for easy replacement
|
|
720
|
+
inputElement.select();
|
|
721
|
+
}
|
|
722
|
+
/** @hidden Handle blur - validate and format value */
|
|
723
|
+
handleBlur(event) {
|
|
724
|
+
if (this.type() !== 'number') {
|
|
725
|
+
return;
|
|
726
|
+
}
|
|
727
|
+
this.commitValue(event.target);
|
|
728
|
+
}
|
|
729
|
+
/** @hidden Handle mouse wheel events for number input */
|
|
730
|
+
handleWheel(event) {
|
|
731
|
+
// Only apply for number type and when input is focused
|
|
732
|
+
if (this.type() !== 'number') {
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
const inputElement = event.target;
|
|
736
|
+
// Only handle wheel events when the input is focused
|
|
737
|
+
if (document.activeElement !== inputElement) {
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
// Prevent page scroll when input is focused
|
|
741
|
+
event.preventDefault();
|
|
742
|
+
// Determine direction: negative deltaY = scroll up (increment), positive = scroll down (decrement)
|
|
743
|
+
const direction = event.deltaY < 0 ? 1 : -1;
|
|
744
|
+
// Use normal step (not large step) for scroll
|
|
745
|
+
this.stepValue(direction, false);
|
|
746
|
+
}
|
|
747
|
+
/** @hidden Step the value up or down */
|
|
748
|
+
stepValue(direction, isLargeStep) {
|
|
749
|
+
const inputElement = this.elementRef.nativeElement;
|
|
750
|
+
const currentValue = this.numberInputService.parseNumericValue(inputElement.value, this.effectiveDecimalSeparator());
|
|
751
|
+
// Get step size
|
|
752
|
+
const stepValue = this.step();
|
|
753
|
+
const stepSize = typeof stepValue === 'number' ? stepValue : 1;
|
|
754
|
+
const largeStepValue = this.largeStep();
|
|
755
|
+
const largeStepMultiplier = isLargeStep ? (typeof largeStepValue === 'number' ? largeStepValue : 10) : 1;
|
|
756
|
+
const actualStep = stepSize * largeStepMultiplier * direction;
|
|
757
|
+
// Calculate new value based on step mode
|
|
758
|
+
let newValue;
|
|
759
|
+
const baseValue = currentValue ?? 0;
|
|
760
|
+
if (this.stepMode() === 'multiple') {
|
|
761
|
+
// Multiple mode: round to nearest multiple of step
|
|
762
|
+
// After adding/subtracting, round DOWN to the nearest multiple
|
|
763
|
+
const targetValue = baseValue + actualStep;
|
|
764
|
+
newValue = Math.floor(targetValue / stepSize) * stepSize;
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
// Addition mode: simple arithmetic
|
|
768
|
+
newValue = baseValue + actualStep;
|
|
769
|
+
}
|
|
770
|
+
// Clamp to min/max boundaries
|
|
771
|
+
const minValue = this.min();
|
|
772
|
+
const maxValue = this.max();
|
|
773
|
+
if (typeof minValue === 'number') {
|
|
774
|
+
newValue = Math.max(newValue, minValue);
|
|
775
|
+
}
|
|
776
|
+
if (typeof maxValue === 'number') {
|
|
777
|
+
newValue = Math.min(newValue, maxValue);
|
|
778
|
+
}
|
|
779
|
+
// Apply precision if defined
|
|
780
|
+
const precision = this.valuePrecision();
|
|
781
|
+
if (typeof precision === 'number') {
|
|
782
|
+
newValue = parseFloat(newValue.toFixed(precision));
|
|
783
|
+
}
|
|
784
|
+
// Update the displayed (formatted) value
|
|
785
|
+
inputElement.value = this.numberInputService.formatNumber(newValue, typeof precision === 'number' ? precision : undefined, this.effectiveDecimalSeparator(), this.useGrouping(), this.effectiveGroupingSeparator());
|
|
786
|
+
// Move cursor to end
|
|
787
|
+
inputElement.setSelectionRange(inputElement.value.length, inputElement.value.length);
|
|
788
|
+
// Sync the numeric model value (canonical numeric string, not the formatted display)
|
|
789
|
+
this.syncModelValue(inputElement, String(newValue));
|
|
790
|
+
}
|
|
791
|
+
/** @hidden Handle Enter key - validate and format, default to 0 if empty */
|
|
792
|
+
handleEnterKey() {
|
|
793
|
+
const inputElement = this.elementRef.nativeElement;
|
|
794
|
+
const value = inputElement.value;
|
|
795
|
+
// If empty, set to 0
|
|
796
|
+
if (!value || value === '-') {
|
|
797
|
+
inputElement.value = '0';
|
|
798
|
+
this.syncModelValue(inputElement, '0');
|
|
799
|
+
this.validationChange.emit(true);
|
|
800
|
+
return;
|
|
801
|
+
}
|
|
802
|
+
// Otherwise, validate and format in place (no blur/focus round-trip)
|
|
803
|
+
this.commitValue(inputElement);
|
|
804
|
+
}
|
|
805
|
+
/** @hidden Handle Escape key - restore value before focus */
|
|
806
|
+
handleEscapeKey() {
|
|
807
|
+
const inputElement = this.elementRef.nativeElement;
|
|
808
|
+
if (this._valueBeforeFocus !== null) {
|
|
809
|
+
inputElement.value = this._valueBeforeFocus;
|
|
810
|
+
this.syncModelValue(inputElement, this._valueBeforeFocus);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
/** @hidden Format initial value with proper decimal separator and optional grouping */
|
|
814
|
+
formatInitialValue() {
|
|
815
|
+
const inputElement = this.elementRef.nativeElement;
|
|
816
|
+
const currentValue = inputElement.value;
|
|
817
|
+
if (!currentValue || currentValue === '' || currentValue === '-') {
|
|
818
|
+
return;
|
|
819
|
+
}
|
|
820
|
+
const numericValue = this.numberInputService.parseNumericValue(currentValue, this.effectiveDecimalSeparator());
|
|
821
|
+
if (numericValue === null) {
|
|
822
|
+
return;
|
|
823
|
+
}
|
|
824
|
+
// Apply precision if defined
|
|
825
|
+
let finalValue = numericValue;
|
|
826
|
+
const precision = this.valuePrecision();
|
|
827
|
+
if (typeof precision === 'number') {
|
|
828
|
+
finalValue = parseFloat(numericValue.toFixed(precision));
|
|
829
|
+
}
|
|
830
|
+
// Format with decimal separator and optional grouping
|
|
831
|
+
inputElement.value = this.numberInputService.formatNumber(finalValue, typeof precision === 'number' ? precision : undefined, this.effectiveDecimalSeparator(), this.useGrouping(), this.effectiveGroupingSeparator());
|
|
832
|
+
}
|
|
833
|
+
/** @hidden Validate live during typing */
|
|
834
|
+
validateLive(inputElement) {
|
|
835
|
+
const value = inputElement.value;
|
|
836
|
+
// Empty or just minus is valid during typing
|
|
837
|
+
if (!value || value === '-') {
|
|
838
|
+
this.validationChange.emit(true);
|
|
839
|
+
return;
|
|
840
|
+
}
|
|
841
|
+
// Parse the value
|
|
842
|
+
const numericValue = this.numberInputService.parseNumericValue(value, this.effectiveDecimalSeparator());
|
|
843
|
+
if (numericValue === null) {
|
|
844
|
+
this.validationChange.emit(false);
|
|
845
|
+
return;
|
|
846
|
+
}
|
|
847
|
+
// Check min/max boundaries
|
|
848
|
+
const minValue = this.min();
|
|
849
|
+
const maxValue = this.max();
|
|
850
|
+
let isValid = true;
|
|
851
|
+
if (typeof minValue === 'number' && numericValue < minValue) {
|
|
852
|
+
isValid = false;
|
|
853
|
+
}
|
|
854
|
+
if (typeof maxValue === 'number' && numericValue > maxValue) {
|
|
855
|
+
isValid = false;
|
|
856
|
+
}
|
|
857
|
+
this.validationChange.emit(isValid);
|
|
93
858
|
}
|
|
94
859
|
/**
|
|
95
860
|
* @hidden
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* function is responsible for order which css classes are applied
|
|
861
|
+
* Get the decimal separator for a given locale.
|
|
862
|
+
* Results are cached to avoid recreating Intl.NumberFormat on every call.
|
|
99
863
|
*/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
864
|
+
getDecimalSeparatorForLocale(localeId) {
|
|
865
|
+
// Check cache first
|
|
866
|
+
const cached = this._decimalSeparatorCache.get(localeId);
|
|
867
|
+
if (cached !== undefined) {
|
|
868
|
+
return cached;
|
|
869
|
+
}
|
|
870
|
+
// Determine separator for this locale
|
|
871
|
+
let separator = '.';
|
|
872
|
+
try {
|
|
873
|
+
const formatter = new Intl.NumberFormat(localeId);
|
|
874
|
+
const parts = formatter.formatToParts(1.1);
|
|
875
|
+
const decimalPart = parts.find((part) => part.type === 'decimal');
|
|
876
|
+
separator = decimalPart?.value === ',' ? ',' : '.';
|
|
877
|
+
}
|
|
878
|
+
catch {
|
|
879
|
+
// Fallback to dot if locale is invalid
|
|
880
|
+
separator = '.';
|
|
881
|
+
}
|
|
882
|
+
// Cache the result
|
|
883
|
+
this._decimalSeparatorCache.set(localeId, separator);
|
|
884
|
+
return separator;
|
|
107
885
|
}
|
|
108
|
-
/**
|
|
109
|
-
|
|
110
|
-
|
|
886
|
+
/**
|
|
887
|
+
* @hidden
|
|
888
|
+
* Get the grouping (thousands) separator for a given locale.
|
|
889
|
+
* Note this may be a non-ASCII space (e.g. fr-FR uses U+202F, a narrow no-break space).
|
|
890
|
+
* Results are cached to avoid recreating Intl.NumberFormat on every call.
|
|
891
|
+
*/
|
|
892
|
+
getGroupingSeparatorForLocale(localeId) {
|
|
893
|
+
const cached = this._groupingSeparatorCache.get(localeId);
|
|
894
|
+
if (cached !== undefined) {
|
|
895
|
+
return cached;
|
|
896
|
+
}
|
|
897
|
+
// Default: comma, matching the historical fallback for dot-decimal locales
|
|
898
|
+
let separator = ',';
|
|
899
|
+
try {
|
|
900
|
+
const formatter = new Intl.NumberFormat(localeId, { useGrouping: true });
|
|
901
|
+
const parts = formatter.formatToParts(1000000);
|
|
902
|
+
const groupPart = parts.find((part) => part.type === 'group');
|
|
903
|
+
if (groupPart?.value) {
|
|
904
|
+
separator = groupPart.value;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
catch {
|
|
908
|
+
// Fallback to comma if locale is invalid
|
|
909
|
+
separator = ',';
|
|
910
|
+
}
|
|
911
|
+
this._groupingSeparatorCache.set(localeId, separator);
|
|
912
|
+
return separator;
|
|
111
913
|
}
|
|
112
|
-
/**
|
|
113
|
-
|
|
114
|
-
|
|
914
|
+
/**
|
|
915
|
+
* @hidden
|
|
916
|
+
* Validate the current input, apply precision, emit validation state, and render the
|
|
917
|
+
* formatted display value. Shared by blur and Enter so neither needs a focus round-trip.
|
|
918
|
+
*/
|
|
919
|
+
commitValue(inputElement) {
|
|
920
|
+
const value = inputElement.value;
|
|
921
|
+
// If empty, leave as empty (don't default to 0)
|
|
922
|
+
if (!value || value === '-') {
|
|
923
|
+
inputElement.value = '';
|
|
924
|
+
this.syncModelValue(inputElement, '');
|
|
925
|
+
this.validationChange.emit(true); // Empty is valid
|
|
926
|
+
return;
|
|
927
|
+
}
|
|
928
|
+
// Parse and validate the value
|
|
929
|
+
const numericValue = this.numberInputService.parseNumericValue(value, this.effectiveDecimalSeparator());
|
|
930
|
+
if (numericValue === null) {
|
|
931
|
+
// Invalid value - revert to value before focus or empty
|
|
932
|
+
const reverted = this._valueBeforeFocus || '';
|
|
933
|
+
inputElement.value = reverted;
|
|
934
|
+
this.syncModelValue(inputElement, reverted);
|
|
935
|
+
this.validationChange.emit(false);
|
|
936
|
+
return;
|
|
937
|
+
}
|
|
938
|
+
// Apply precision if defined
|
|
939
|
+
let finalValue = numericValue;
|
|
940
|
+
const precision = this.valuePrecision();
|
|
941
|
+
if (typeof precision === 'number') {
|
|
942
|
+
finalValue = parseFloat(numericValue.toFixed(precision));
|
|
943
|
+
}
|
|
944
|
+
// Check min/max boundaries and emit validation state
|
|
945
|
+
const minValue = this.min();
|
|
946
|
+
const maxValue = this.max();
|
|
947
|
+
let isValid = true;
|
|
948
|
+
if (typeof minValue === 'number' && finalValue < minValue) {
|
|
949
|
+
isValid = false;
|
|
950
|
+
}
|
|
951
|
+
if (typeof maxValue === 'number' && finalValue > maxValue) {
|
|
952
|
+
isValid = false;
|
|
953
|
+
}
|
|
954
|
+
// Emit validation state
|
|
955
|
+
this.validationChange.emit(isValid);
|
|
956
|
+
// Render the formatted display value (don't clamp - let the user see their input)
|
|
957
|
+
inputElement.value = this.numberInputService.formatNumber(finalValue, typeof precision === 'number' ? precision : undefined, this.effectiveDecimalSeparator(), this.useGrouping(), this.effectiveGroupingSeparator());
|
|
958
|
+
// Sync the numeric model value (canonical numeric string, not the formatted display)
|
|
959
|
+
this.syncModelValue(inputElement, String(finalValue));
|
|
115
960
|
}
|
|
116
|
-
/**
|
|
117
|
-
|
|
118
|
-
|
|
961
|
+
/**
|
|
962
|
+
* @hidden
|
|
963
|
+
* Notifies the bound ngModel/formControl of a numeric change without leaking the formatted
|
|
964
|
+
* display string (grouping, locale decimal separator) into the model. The displayed value is
|
|
965
|
+
* briefly swapped for a canonical JS-parseable numeric string while the `input` event fires,
|
|
966
|
+
* then restored so the user keeps seeing the formatted value.
|
|
967
|
+
*/
|
|
968
|
+
syncModelValue(inputElement, canonicalValue) {
|
|
969
|
+
const displayValue = inputElement.value;
|
|
970
|
+
if (displayValue !== canonicalValue) {
|
|
971
|
+
inputElement.value = canonicalValue;
|
|
972
|
+
}
|
|
973
|
+
inputElement.dispatchEvent(new Event('input', { bubbles: true }));
|
|
974
|
+
if (inputElement.value !== displayValue) {
|
|
975
|
+
inputElement.value = displayValue;
|
|
976
|
+
}
|
|
119
977
|
}
|
|
120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: FormControlComponent, deps: [
|
|
121
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.1", type: FormControlComponent, isStandalone: true, selector: "input[fd-form-control], textarea[fd-form-control]", inputs: { state: "state", type: "type", class: "class", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy" }, host: { properties: { "attr.aria-label": "ariaLabelAttr || ariaLabel || null", "attr.aria-labelledby": "ariaLabelledByAttr || ariaLabelledBy || null", "attr.aria-invalid": "state === \"error\" ? true : null", "attr.type": "this.type" } }, providers: [registerFormItemControl(FormControlComponent), contentDensityObserverProviders()], usesOnChanges: true, ngImport: i0, template: ` <ng-content></ng-content>`, isInline: true, styles: [".fd-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sapField_BackgroundStyle,var(--sapField_BackgroundStyle));background-color:var(--sapField_Background,var(--sapField_Background));border:0;border:var(--sapField_BorderWidth) var(--sapField_BorderStyle) var(--sapField_BorderColor);border-radius:var(--sapField_BorderCornerRadius);-webkit-box-shadow:var(--sapField_Shadow);box-shadow:var(--sapField_Shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapField_TextColor);cursor:text;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:var(--fdInput_Height,var(--sapElement_Height));line-height:normal;margin-block:0;margin-block:var(--fdInput_Field_Margin_Block,.25rem);margin-inline:0;min-height:var(--fdInput_Height,var(--sapElement_Height));min-width:2.75rem;outline:none;overflow:hidden;padding-block:0;padding-inline:0;padding-inline:var(--fdInput_Field_Padding_Inline,.625rem);text-overflow:ellipsis;text-shadow:var(--fdInput_Text_Shadow);white-space:nowrap;width:100%;z-index:1}.fd-input:after,.fd-input:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-input::-webkit-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input::-moz-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input:-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input::-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input::placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input[dir=rtl]::-webkit-input-placeholder,[dir=rtl] .fd-input::-webkit-input-placeholder{text-indent:.125rem}.fd-input[dir=rtl]::-moz-placeholder,[dir=rtl] .fd-input::-moz-placeholder{text-indent:.125rem}.fd-input[dir=rtl]:-ms-input-placeholder,[dir=rtl] .fd-input:-ms-input-placeholder{text-indent:.125rem}.fd-input[dir=rtl]::-ms-input-placeholder,[dir=rtl] .fd-input::-ms-input-placeholder{text-indent:.125rem}.fd-input[dir=rtl]::placeholder,[dir=rtl] .fd-input::placeholder{text-indent:.125rem}.fd-input::-moz-selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-input::selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-input::-ms-clear{display:none}.fd-input.is-hover,.fd-input:hover{background:var(--sapField_Hover_BackgroundStyle,var(--sapField_Hover_BackgroundStyle));background-color:var(--sapField_Hover_Background,var(--sapField_Hover_Background));border-color:var(--sapField_Hover_BorderColor);-webkit-box-shadow:var(--fdInput_Box_Shadow_Hover);box-shadow:var(--fdInput_Box_Shadow_Hover)}.fd-input.is-focus,.fd-input:focus{background:var(--sapField_Focus_Background,var(--sapField_Focus_Background));-webkit-box-shadow:none;box-shadow:none;outline:var(--fdInput_Outline_Color) var(--sapContent_FocusStyle) var(--sapContent_FocusWidth);outline-offset:var(--fdInput_Outline_Offset);z-index:5}.fd-input[type=search]::-webkit-search-cancel-button,.fd-input[type=search]::-webkit-search-decoration,.fd-input[type=search]::-webkit-search-results-button,.fd-input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.fd-input[aria-expanded=false]{z-index:0}.fd-input.is-expanded,.fd-input[aria-expanded=true]{z-index:4}.fd-input[class*=-compact],.fd-input[class*=-condensed],[class*=-compact] .fd-input:not([class*=-cozy]),[class*=-condensed] .fd-input:not([class*=-cozy]){-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--fdInput_Compact_Height,var(--sapElement_Compact_Height));margin-block:var(--fdInput_Field_Compact_Margin_Block,.1875rem);margin-inline:0;min-height:var(--fdInput_Compact_Height,var(--sapElement_Compact_Height));min-width:var(--fdInput_Field_Compact_Min_Width,2rem);padding-block:0;padding-inline:var(--fdInput_Field_Compact_Padding,.5rem)}.fd-input--no-number-spinner{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.fd-input--no-number-spinner::-webkit-inner-spin-button,.fd-input--no-number-spinner::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin-block:0;margin-inline:0}.fd-input.right-align{text-align:right}.fd-input__sr-only{position:absolute;clip:rect(0 0 0 0);border:0;height:1px;margin-block:-1px;margin-inline:-1px;overflow:hidden;padding-block:0;padding-inline:0;white-space:nowrap;width:1px}.fd-input.is-success{background:var(--sapField_SuccessBackgroundStyle);background-color:var(--sapField_SuccessBackground);border:var(--sapField_SuccessColor) var(--sapField_SuccessBorderWidth) var(--sapField_SuccessBorderStyle);-webkit-box-shadow:var(--sapField_SuccessShadow);box-shadow:var(--sapField_SuccessShadow)}.fd-input.is-success.is-hover,.fd-input.is-success:hover{background-color:var(--fdInput_Success_Background_Color_Hover);border-color:var(--sapField_SuccessColor);-webkit-box-shadow:var(--fdInput_Success_Box_Shadow_Hover);box-shadow:var(--fdInput_Success_Box_Shadow_Hover)}.fd-input.is-success.is-focus,.fd-input.is-success:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Success_Outline_Color);z-index:5}.fd-input.is-success.is-focus.is-hover,.fd-input.is-success.is-focus:hover,.fd-input.is-success:focus.is-hover,.fd-input.is-success:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-success.is-expanded,.fd-input.is-success[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Success_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-error{background:var(--sapField_InvalidBackgroundStyle);background-color:var(--sapField_InvalidBackground);border:var(--sapField_InvalidColor) var(--sapField_InvalidBorderWidth) var(--sapField_InvalidBorderStyle);-webkit-box-shadow:var(--sapField_InvalidShadow);box-shadow:var(--sapField_InvalidShadow)}.fd-input.is-error.is-hover,.fd-input.is-error:hover{background-color:var(--fdInput_Error_Background_Color_Hover);border-color:var(--sapField_InvalidColor);-webkit-box-shadow:var(--fdInput_Error_Box_Shadow_Hover);box-shadow:var(--fdInput_Error_Box_Shadow_Hover)}.fd-input.is-error.is-focus,.fd-input.is-error:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Error_Outline_Color);z-index:5}.fd-input.is-error.is-focus.is-hover,.fd-input.is-error.is-focus:hover,.fd-input.is-error:focus.is-hover,.fd-input.is-error:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-error.is-expanded,.fd-input.is-error[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Error_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-warning{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle);-webkit-box-shadow:var(--sapField_WarningShadow);box-shadow:var(--sapField_WarningShadow)}.fd-input.is-warning.is-hover,.fd-input.is-warning:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-input.is-warning.is-focus,.fd-input.is-warning:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-input.is-warning.is-focus.is-hover,.fd-input.is-warning.is-focus:hover,.fd-input.is-warning:focus.is-hover,.fd-input.is-warning:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-warning.is-expanded,.fd-input.is-warning[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-alert{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle)}.fd-input.is-alert.is-hover,.fd-input.is-alert:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-input.is-alert.is-focus,.fd-input.is-alert:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-input.is-alert.is-focus.is-hover,.fd-input.is-alert.is-focus:hover,.fd-input.is-alert:focus.is-hover,.fd-input.is-alert:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-alert.is-expanded,.fd-input.is-alert[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-information{background:var(--sapField_InformationBackgroundStyle);background-color:var(--sapField_InformationBackground);border:var(--sapField_InformationColor) var(--sapField_InformationBorderWidth) var(--sapField_InformationBorderStyle);-webkit-box-shadow:var(--sapField_InformationShadow);box-shadow:var(--sapField_InformationShadow)}.fd-input.is-information.is-hover,.fd-input.is-information:hover{background-color:var(--fdInput_Information_Background_Color_Hover);border-color:var(--sapField_InformationColor);-webkit-box-shadow:var(--fdInput_Information_Box_Shadow_Hover);box-shadow:var(--fdInput_Information_Box_Shadow_Hover)}.fd-input.is-information.is-focus,.fd-input.is-information:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Information_Outline_Color);z-index:5}.fd-input.is-information.is-focus.is-hover,.fd-input.is-information.is-focus:hover,.fd-input.is-information:focus.is-hover,.fd-input.is-information:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-information.is-expanded,.fd-input.is-information[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Information_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-alert,.fd-input.is-error,.fd-input.is-warning{font-style:var(--fdInput_State_Text_Style);font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::-webkit-input-placeholder,.fd-input.is-error::-webkit-input-placeholder,.fd-input.is-warning::-webkit-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::-moz-placeholder,.fd-input.is-error::-moz-placeholder,.fd-input.is-warning::-moz-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert:-ms-input-placeholder,.fd-input.is-error:-ms-input-placeholder,.fd-input.is-warning:-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::-ms-input-placeholder,.fd-input.is-error::-ms-input-placeholder,.fd-input.is-warning::-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::placeholder,.fd-input.is-error::placeholder,.fd-input.is-warning::placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert.is-focus,.fd-input.is-alert:focus,.fd-input.is-error.is-focus,.fd-input.is-error:focus,.fd-input.is-information.is-focus,.fd-input.is-information:focus,.fd-input.is-warning.is-focus,.fd-input.is-warning:focus{outline-offset:var(--fdInput_Outline_Offset_States);z-index:5}.fd-input.is-error::-webkit-input-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error::-moz-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error:-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error::-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error::placeholder{color:var(--sapField_TextColor)}.fd-input.is-disabled,.fd-input:disabled,.fd-input[aria-disabled=true]{opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-input.is-disabled::-webkit-input-placeholder,.fd-input:disabled::-webkit-input-placeholder,.fd-input[aria-disabled=true]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled::-moz-placeholder,.fd-input:disabled::-moz-placeholder,.fd-input[aria-disabled=true]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled:-ms-input-placeholder,.fd-input:disabled:-ms-input-placeholder,.fd-input[aria-disabled=true]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled::-ms-input-placeholder,.fd-input:disabled::-ms-input-placeholder,.fd-input[aria-disabled=true]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled::placeholder,.fd-input:disabled::placeholder,.fd-input[aria-disabled=true]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly,.fd-input[aria-readonly=true],.fd-input[readonly]{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-input.is-readonly::-webkit-input-placeholder,.fd-input[aria-readonly=true]::-webkit-input-placeholder,.fd-input[readonly]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly::-moz-placeholder,.fd-input[aria-readonly=true]::-moz-placeholder,.fd-input[readonly]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly:-ms-input-placeholder,.fd-input[aria-readonly=true]:-ms-input-placeholder,.fd-input[readonly]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly::-ms-input-placeholder,.fd-input[aria-readonly=true]::-ms-input-placeholder,.fd-input[readonly]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly::placeholder,.fd-input[aria-readonly=true]::placeholder,.fd-input[readonly]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly.is-focus,.fd-input.is-readonly.is-hover,.fd-input.is-readonly:focus,.fd-input.is-readonly:hover,.fd-input[aria-readonly=true].is-focus,.fd-input[aria-readonly=true].is-hover,.fd-input[aria-readonly=true]:focus,.fd-input[aria-readonly=true]:hover,.fd-input[readonly].is-focus,.fd-input[readonly].is-hover,.fd-input[readonly]:focus,.fd-input[readonly]:hover{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-input.is-readonly.is-focus,.fd-input.is-readonly:focus,.fd-input[aria-readonly=true].is-focus,.fd-input[aria-readonly=true]:focus,.fd-input[readonly].is-focus,.fd-input[readonly]:focus{z-index:5}.fd-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sapField_BackgroundStyle,var(--sapField_BackgroundStyle));background-color:var(--sapField_Background,var(--sapField_Background));border:0;border:var(--sapField_BorderWidth) var(--sapField_BorderStyle) var(--sapField_BorderColor);border-radius:var(--sapField_BorderCornerRadius);-webkit-box-shadow:var(--sapField_Shadow);box-shadow:var(--sapField_Shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapField_TextColor);cursor:text;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:var(--fdInput_Height,var(--sapElement_Height));height:auto;line-height:normal;line-height:var(--fdTextarea_Line_Height);margin-block:0;margin-block:var(--fdInput_Field_Margin_Block,.25rem);margin-block:.25rem;margin-inline:0;min-height:var(--fdInput_Height,var(--sapElement_Height));min-height:2.25rem;min-width:2.75rem;min-width:6rem;outline:none;overflow:hidden;overflow:auto;padding-block:0;padding-block:.5rem;padding-inline:0;padding-inline:var(--fdInput_Field_Padding_Inline,.625rem);padding-inline:.75rem;padding-inline:.625rem;position:relative;resize:none;scrollbar-color:var(--fdScrollbar_Thumb_Color) var(--fdScrollbar_Track_Color);text-overflow:ellipsis;text-shadow:var(--fdInput_Text_Shadow);white-space:nowrap;white-space:pre-wrap;width:100%;z-index:1}.fd-textarea.is-focus,.fd-textarea:focus{outline:none}.fd-textarea::-webkit-scrollbar{height:var(--fdScrollbar_Dimension);width:var(--fdScrollbar_Dimension)}.fd-textarea::-webkit-scrollbar-corner,.fd-textarea::-webkit-scrollbar-track{background-color:var(--fdScrollbar_Track_Color)}.fd-textarea::-webkit-scrollbar-thumb{background-color:transparent;border:var(--fdScrollbar_Thumb_Offset) solid transparent;border-radius:calc(var(--fdScrollbar_Thumb_Border_Radius) - var(--fdScrollbar_Thumb_Offset));-webkit-box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Color);box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Color)}.fd-textarea::-webkit-scrollbar-thumb:active,.fd-textarea::-webkit-scrollbar-thumb:hover{-webkit-box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Hover_Color);box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Hover_Color)}.fd-textarea:after,.fd-textarea:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-textarea::-webkit-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea::-moz-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea:-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea::-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea::placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea[dir=rtl]::-webkit-input-placeholder,[dir=rtl] .fd-textarea::-webkit-input-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]::-moz-placeholder,[dir=rtl] .fd-textarea::-moz-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]:-ms-input-placeholder,[dir=rtl] .fd-textarea:-ms-input-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]::-ms-input-placeholder,[dir=rtl] .fd-textarea::-ms-input-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]::placeholder,[dir=rtl] .fd-textarea::placeholder{text-indent:.125rem}.fd-textarea::-moz-selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-textarea::selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-textarea::-ms-clear{display:none}.fd-textarea.is-hover,.fd-textarea:hover{background:var(--sapField_Hover_BackgroundStyle,var(--sapField_Hover_BackgroundStyle));background-color:var(--sapField_Hover_Background,var(--sapField_Hover_Background));border-color:var(--sapField_Hover_BorderColor);-webkit-box-shadow:var(--fdInput_Box_Shadow_Hover);box-shadow:var(--fdInput_Box_Shadow_Hover)}.fd-textarea.is-focus,.fd-textarea:focus{background:var(--sapField_Focus_Background,var(--sapField_Focus_Background));-webkit-box-shadow:none;box-shadow:none;outline:var(--fdInput_Outline_Color) var(--sapContent_FocusStyle) var(--sapContent_FocusWidth);outline-offset:var(--fdInput_Outline_Offset);z-index:5}.fd-textarea.is-success{background:var(--sapField_SuccessBackgroundStyle);background-color:var(--sapField_SuccessBackground);border:var(--sapField_SuccessColor) var(--sapField_SuccessBorderWidth) var(--sapField_SuccessBorderStyle);-webkit-box-shadow:var(--sapField_SuccessShadow);box-shadow:var(--sapField_SuccessShadow)}.fd-textarea.is-success.is-hover,.fd-textarea.is-success:hover{background-color:var(--fdInput_Success_Background_Color_Hover);border-color:var(--sapField_SuccessColor);-webkit-box-shadow:var(--fdInput_Success_Box_Shadow_Hover);box-shadow:var(--fdInput_Success_Box_Shadow_Hover)}.fd-textarea.is-success.is-focus,.fd-textarea.is-success:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Success_Outline_Color);z-index:5}.fd-textarea.is-success.is-focus.is-hover,.fd-textarea.is-success.is-focus:hover,.fd-textarea.is-success:focus.is-hover,.fd-textarea.is-success:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-success.is-expanded,.fd-textarea.is-success[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Success_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-error{background:var(--sapField_InvalidBackgroundStyle);background-color:var(--sapField_InvalidBackground);border:var(--sapField_InvalidColor) var(--sapField_InvalidBorderWidth) var(--sapField_InvalidBorderStyle);-webkit-box-shadow:var(--sapField_InvalidShadow);box-shadow:var(--sapField_InvalidShadow)}.fd-textarea.is-error.is-hover,.fd-textarea.is-error:hover{background-color:var(--fdInput_Error_Background_Color_Hover);border-color:var(--sapField_InvalidColor);-webkit-box-shadow:var(--fdInput_Error_Box_Shadow_Hover);box-shadow:var(--fdInput_Error_Box_Shadow_Hover)}.fd-textarea.is-error.is-focus,.fd-textarea.is-error:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Error_Outline_Color);z-index:5}.fd-textarea.is-error.is-focus.is-hover,.fd-textarea.is-error.is-focus:hover,.fd-textarea.is-error:focus.is-hover,.fd-textarea.is-error:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-error.is-expanded,.fd-textarea.is-error[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Error_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-warning{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle);-webkit-box-shadow:var(--sapField_WarningShadow);box-shadow:var(--sapField_WarningShadow)}.fd-textarea.is-warning.is-hover,.fd-textarea.is-warning:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-textarea.is-warning.is-focus,.fd-textarea.is-warning:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-textarea.is-warning.is-focus.is-hover,.fd-textarea.is-warning.is-focus:hover,.fd-textarea.is-warning:focus.is-hover,.fd-textarea.is-warning:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-warning.is-expanded,.fd-textarea.is-warning[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-alert{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle)}.fd-textarea.is-alert.is-hover,.fd-textarea.is-alert:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-textarea.is-alert.is-focus,.fd-textarea.is-alert:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-textarea.is-alert.is-focus.is-hover,.fd-textarea.is-alert.is-focus:hover,.fd-textarea.is-alert:focus.is-hover,.fd-textarea.is-alert:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-alert.is-expanded,.fd-textarea.is-alert[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-information{background:var(--sapField_InformationBackgroundStyle);background-color:var(--sapField_InformationBackground);border:var(--sapField_InformationColor) var(--sapField_InformationBorderWidth) var(--sapField_InformationBorderStyle);-webkit-box-shadow:var(--sapField_InformationShadow);box-shadow:var(--sapField_InformationShadow)}.fd-textarea.is-information.is-hover,.fd-textarea.is-information:hover{background-color:var(--fdInput_Information_Background_Color_Hover);border-color:var(--sapField_InformationColor);-webkit-box-shadow:var(--fdInput_Information_Box_Shadow_Hover);box-shadow:var(--fdInput_Information_Box_Shadow_Hover)}.fd-textarea.is-information.is-focus,.fd-textarea.is-information:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Information_Outline_Color);z-index:5}.fd-textarea.is-information.is-focus.is-hover,.fd-textarea.is-information.is-focus:hover,.fd-textarea.is-information:focus.is-hover,.fd-textarea.is-information:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-information.is-expanded,.fd-textarea.is-information[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Information_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-alert,.fd-textarea.is-error,.fd-textarea.is-warning{font-style:var(--fdInput_State_Text_Style);font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::-webkit-input-placeholder,.fd-textarea.is-error::-webkit-input-placeholder,.fd-textarea.is-warning::-webkit-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::-moz-placeholder,.fd-textarea.is-error::-moz-placeholder,.fd-textarea.is-warning::-moz-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert:-ms-input-placeholder,.fd-textarea.is-error:-ms-input-placeholder,.fd-textarea.is-warning:-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::-ms-input-placeholder,.fd-textarea.is-error::-ms-input-placeholder,.fd-textarea.is-warning::-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::placeholder,.fd-textarea.is-error::placeholder,.fd-textarea.is-warning::placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert.is-focus,.fd-textarea.is-alert:focus,.fd-textarea.is-error.is-focus,.fd-textarea.is-error:focus,.fd-textarea.is-information.is-focus,.fd-textarea.is-information:focus,.fd-textarea.is-warning.is-focus,.fd-textarea.is-warning:focus{outline-offset:var(--fdInput_Outline_Offset_States);z-index:5}.fd-textarea.is-error::-webkit-input-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error::-moz-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error:-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error::-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error::placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-disabled,.fd-textarea:disabled,.fd-textarea[aria-disabled=true]{opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-textarea.is-disabled::-webkit-input-placeholder,.fd-textarea:disabled::-webkit-input-placeholder,.fd-textarea[aria-disabled=true]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled::-moz-placeholder,.fd-textarea:disabled::-moz-placeholder,.fd-textarea[aria-disabled=true]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled:-ms-input-placeholder,.fd-textarea:disabled:-ms-input-placeholder,.fd-textarea[aria-disabled=true]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled::-ms-input-placeholder,.fd-textarea:disabled::-ms-input-placeholder,.fd-textarea[aria-disabled=true]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled::placeholder,.fd-textarea:disabled::placeholder,.fd-textarea[aria-disabled=true]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly,.fd-textarea[aria-readonly=true],.fd-textarea[readonly]{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-readonly::-webkit-input-placeholder,.fd-textarea[aria-readonly=true]::-webkit-input-placeholder,.fd-textarea[readonly]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly::-moz-placeholder,.fd-textarea[aria-readonly=true]::-moz-placeholder,.fd-textarea[readonly]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly:-ms-input-placeholder,.fd-textarea[aria-readonly=true]:-ms-input-placeholder,.fd-textarea[readonly]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly::-ms-input-placeholder,.fd-textarea[aria-readonly=true]::-ms-input-placeholder,.fd-textarea[readonly]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly::placeholder,.fd-textarea[aria-readonly=true]::placeholder,.fd-textarea[readonly]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly.is-focus,.fd-textarea.is-readonly.is-hover,.fd-textarea.is-readonly:focus,.fd-textarea.is-readonly:hover,.fd-textarea[aria-readonly=true].is-focus,.fd-textarea[aria-readonly=true].is-hover,.fd-textarea[aria-readonly=true]:focus,.fd-textarea[aria-readonly=true]:hover,.fd-textarea[readonly].is-focus,.fd-textarea[readonly].is-hover,.fd-textarea[readonly]:focus,.fd-textarea[readonly]:hover{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-readonly.is-focus,.fd-textarea.is-readonly:focus,.fd-textarea[aria-readonly=true].is-focus,.fd-textarea[aria-readonly=true]:focus,.fd-textarea[readonly].is-focus,.fd-textarea[readonly]:focus{z-index:5}.fd-textarea.is-readonly,.fd-textarea[readonly]{background:var(--sapField_ReadOnly_Background);border:var(--sapField_BorderWidth) dashed var(--sapField_ReadOnly_BorderColor);border-radius:var(--sapField_BorderCornerRadius)}.fd-textarea.is-readonly.is-hover,.fd-textarea.is-readonly:hover,.fd-textarea[readonly].is-hover,.fd-textarea[readonly]:hover{background:var(--sapField_ReadOnly_Background)}.fd-textarea.is-readonly.is-focus,.fd-textarea.is-readonly:focus,.fd-textarea[readonly].is-focus,.fd-textarea[readonly]:focus{background:var(--sapField_ReadOnly_Background);outline-offset:-.25rem;z-index:5}.fd-textarea::-webkit-scrollbar-corner,.fd-textarea::-webkit-scrollbar-track{background:transparent;border-radius:0 var(--sapField_BorderCornerRadius) var(--sapField_BorderCornerRadius) 0!important}.fd-textarea__sr-only{position:absolute;clip:rect(0 0 0 0);border:0;height:1px;margin-block:-1px;margin-inline:-1px;overflow:hidden;padding-block:0;padding-inline:0;white-space:nowrap;width:1px}.fd-textarea[aria-expanded=false]{z-index:0}.fd-textarea.is-expanded,.fd-textarea[aria-expanded=true]{z-index:4}.fd-textarea[class*=-compact],.fd-textarea[class*=-condensed],[class*=-compact] .fd-textarea:not([class*=-cozy]),[class*=-condensed] .fd-textarea:not([class*=-cozy]){margin-block:.1875rem;margin-inline:0;min-height:1.625rem;padding-block:.1875rem;padding-inline:.5rem}.fd-textarea-counter{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapContent_LabelColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-size:var(--sapFontSmallSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;overflow:hidden;padding-block:0;padding-block:.375rem .5rem;padding-inline:0;padding-inline:.125rem;text-align:end;text-overflow:ellipsis;white-space:nowrap}.fd-textarea-counter:after,.fd-textarea-counter:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-textarea-counter.is-disabled,.fd-textarea-counter.is-readonly,.fd-textarea-counter:disabled,.fd-textarea-counter[aria-disabled=true],.fd-textarea-counter[readonly]{display:none}.fd-textarea-counter-container{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-block:.375rem .5rem}.fd-textarea-counter-container:after,.fd-textarea-counter-container:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-textarea-counter-container .fd-textarea-counter{padding-block:0;-webkit-margin-start:auto;margin-inline-start:auto}.fd-textarea--ai{position:relative}.fd-textarea--ai:has(.fd-ai-busy-indicator){padding-block:0;padding-inline:0}.fd-textarea--ai .fd-toolbar--ai{bottom:0;left:0;position:absolute;right:0}.fd-input.is-readonly,.fd-input[aria-readonly=true],.fd-input[readonly],.fd-input.is-readonly.is-hover,.fd-input.is-readonly:hover,.fd-input[aria-readonly=true].is-hover,.fd-input[aria-readonly=true]:hover,.fd-input[readonly].is-hover,.fd-input[readonly]:hover{z-index:1!important}.fd-input.is-readonly.is-focus,.fd-input.is-readonly:focus,.fd-input[aria-readonly=true].is-focus,.fd-input[aria-readonly=true]:focus,.fd-input[readonly].is-focus,.fd-input[readonly]:focus{z-index:1!important}\n/*! Bundled license information:\n\nfundamental-styles/dist/textarea.css:\n (*!\n * Fundamental Library Styles v0.42.0\n * Copyright (c) 2026 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
978
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: FormControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
979
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: FormControlComponent, isStandalone: true, selector: "input[fd-form-control], textarea[fd-form-control]", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelAttr: { classPropertyName: "ariaLabelAttr", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledByAttr: { classPropertyName: "ariaLabelledByAttr", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, largeStep: { classPropertyName: "largeStep", publicName: "largeStep", isSignal: true, isRequired: false, transformFunction: null }, valuePrecision: { classPropertyName: "valuePrecision", publicName: "valuePrecision", isSignal: true, isRequired: false, transformFunction: null }, stepMode: { classPropertyName: "stepMode", publicName: "stepMode", isSignal: true, isRequired: false, transformFunction: null }, validationMode: { classPropertyName: "validationMode", publicName: "validationMode", isSignal: true, isRequired: false, transformFunction: null }, textAlign: { classPropertyName: "textAlign", publicName: "textAlign", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, decimalSeparator: { classPropertyName: "decimalSeparator", publicName: "decimalSeparator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ariaLabelledBy: "ariaLabelledByChange", validationChange: "validationChange" }, host: { listeners: { "keydown": "handleKeydown($any($event))", "paste": "handlePaste($any($event))", "focus": "handleFocus($any($event))", "blur": "handleBlur($any($event))", "wheel": "handleWheel($any($event))" }, properties: { "class": "cssClass()", "attr.type": "internalType()", "attr.aria-label": "ariaLabelAttr() || ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledByAttr() || ariaLabelledBy() || null", "attr.aria-invalid": "state() === \"error\" ? true : null", "style.text-align": "isEnhancedNumberMode() ? textAlign() : null" } }, providers: [registerFormItemControl(FormControlComponent), contentDensityObserverProviders(), NumberInputService], ngImport: i0, template: ` <ng-content></ng-content>`, isInline: true, styles: [".fd-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sapField_BackgroundStyle,var(--sapField_BackgroundStyle));background-color:var(--sapField_Background,var(--sapField_Background));border:0;border:var(--sapField_BorderWidth) var(--sapField_BorderStyle) var(--sapField_BorderColor);border-radius:var(--sapField_BorderCornerRadius);-webkit-box-shadow:var(--sapField_Shadow);box-shadow:var(--sapField_Shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapField_TextColor);cursor:text;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:var(--fdInput_Height,var(--sapElement_Height));line-height:normal;margin-block:0;margin-block:var(--fdInput_Field_Margin_Block,.25rem);margin-inline:0;min-height:var(--fdInput_Height,var(--sapElement_Height));min-width:2.75rem;outline:none;overflow:hidden;padding-block:0;padding-inline:0;padding-inline:var(--fdInput_Field_Padding_Inline,.625rem);text-overflow:ellipsis;text-shadow:var(--fdInput_Text_Shadow);white-space:nowrap;width:100%;z-index:1}.fd-input:after,.fd-input:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-input::-webkit-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input::-moz-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input:-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input::-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input::placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input[dir=rtl]::-webkit-input-placeholder,[dir=rtl] .fd-input::-webkit-input-placeholder{text-indent:.125rem}.fd-input[dir=rtl]::-moz-placeholder,[dir=rtl] .fd-input::-moz-placeholder{text-indent:.125rem}.fd-input[dir=rtl]:-ms-input-placeholder,[dir=rtl] .fd-input:-ms-input-placeholder{text-indent:.125rem}.fd-input[dir=rtl]::-ms-input-placeholder,[dir=rtl] .fd-input::-ms-input-placeholder{text-indent:.125rem}.fd-input[dir=rtl]::placeholder,[dir=rtl] .fd-input::placeholder{text-indent:.125rem}.fd-input::-moz-selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-input::selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-input::-ms-clear{display:none}.fd-input.is-hover,.fd-input:hover{background:var(--sapField_Hover_BackgroundStyle,var(--sapField_Hover_BackgroundStyle));background-color:var(--sapField_Hover_Background,var(--sapField_Hover_Background));border-color:var(--sapField_Hover_BorderColor);-webkit-box-shadow:var(--fdInput_Box_Shadow_Hover);box-shadow:var(--fdInput_Box_Shadow_Hover)}.fd-input.is-focus,.fd-input:focus{background:var(--sapField_Focus_Background,var(--sapField_Focus_Background));-webkit-box-shadow:none;box-shadow:none;outline:var(--fdInput_Outline_Color) var(--sapContent_FocusStyle) var(--sapContent_FocusWidth);outline-offset:var(--fdInput_Outline_Offset);z-index:5}.fd-input[type=search]::-webkit-search-cancel-button,.fd-input[type=search]::-webkit-search-decoration,.fd-input[type=search]::-webkit-search-results-button,.fd-input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.fd-input[aria-expanded=false]{z-index:0}.fd-input.is-expanded,.fd-input[aria-expanded=true]{z-index:4}.fd-input[class*=-compact],.fd-input[class*=-condensed],[class*=-compact] .fd-input:not([class*=-cozy]),[class*=-condensed] .fd-input:not([class*=-cozy]){-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--fdInput_Compact_Height,var(--sapElement_Compact_Height));margin-block:var(--fdInput_Field_Compact_Margin_Block,.1875rem);margin-inline:0;min-height:var(--fdInput_Compact_Height,var(--sapElement_Compact_Height));min-width:var(--fdInput_Field_Compact_Min_Width,2rem);padding-block:0;padding-inline:var(--fdInput_Field_Compact_Padding,.5rem)}.fd-input--no-number-spinner{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.fd-input--no-number-spinner::-webkit-inner-spin-button,.fd-input--no-number-spinner::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin-block:0;margin-inline:0}.fd-input.right-align{text-align:right}.fd-input__sr-only{position:absolute;clip:rect(0 0 0 0);border:0;height:1px;margin-block:-1px;margin-inline:-1px;overflow:hidden;padding-block:0;padding-inline:0;white-space:nowrap;width:1px}.fd-input.is-success{background:var(--sapField_SuccessBackgroundStyle);background-color:var(--sapField_SuccessBackground);border:var(--sapField_SuccessColor) var(--sapField_SuccessBorderWidth) var(--sapField_SuccessBorderStyle);-webkit-box-shadow:var(--sapField_SuccessShadow);box-shadow:var(--sapField_SuccessShadow)}.fd-input.is-success.is-hover,.fd-input.is-success:hover{background-color:var(--fdInput_Success_Background_Color_Hover);border-color:var(--sapField_SuccessColor);-webkit-box-shadow:var(--fdInput_Success_Box_Shadow_Hover);box-shadow:var(--fdInput_Success_Box_Shadow_Hover)}.fd-input.is-success.is-focus,.fd-input.is-success:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Success_Outline_Color);z-index:5}.fd-input.is-success.is-focus.is-hover,.fd-input.is-success.is-focus:hover,.fd-input.is-success:focus.is-hover,.fd-input.is-success:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-success.is-expanded,.fd-input.is-success[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Success_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-error{background:var(--sapField_InvalidBackgroundStyle);background-color:var(--sapField_InvalidBackground);border:var(--sapField_InvalidColor) var(--sapField_InvalidBorderWidth) var(--sapField_InvalidBorderStyle);-webkit-box-shadow:var(--sapField_InvalidShadow);box-shadow:var(--sapField_InvalidShadow)}.fd-input.is-error.is-hover,.fd-input.is-error:hover{background-color:var(--fdInput_Error_Background_Color_Hover);border-color:var(--sapField_InvalidColor);-webkit-box-shadow:var(--fdInput_Error_Box_Shadow_Hover);box-shadow:var(--fdInput_Error_Box_Shadow_Hover)}.fd-input.is-error.is-focus,.fd-input.is-error:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Error_Outline_Color);z-index:5}.fd-input.is-error.is-focus.is-hover,.fd-input.is-error.is-focus:hover,.fd-input.is-error:focus.is-hover,.fd-input.is-error:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-error.is-expanded,.fd-input.is-error[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Error_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-warning{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle);-webkit-box-shadow:var(--sapField_WarningShadow);box-shadow:var(--sapField_WarningShadow)}.fd-input.is-warning.is-hover,.fd-input.is-warning:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-input.is-warning.is-focus,.fd-input.is-warning:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-input.is-warning.is-focus.is-hover,.fd-input.is-warning.is-focus:hover,.fd-input.is-warning:focus.is-hover,.fd-input.is-warning:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-warning.is-expanded,.fd-input.is-warning[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-alert{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle)}.fd-input.is-alert.is-hover,.fd-input.is-alert:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-input.is-alert.is-focus,.fd-input.is-alert:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-input.is-alert.is-focus.is-hover,.fd-input.is-alert.is-focus:hover,.fd-input.is-alert:focus.is-hover,.fd-input.is-alert:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-alert.is-expanded,.fd-input.is-alert[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-information{background:var(--sapField_InformationBackgroundStyle);background-color:var(--sapField_InformationBackground);border:var(--sapField_InformationColor) var(--sapField_InformationBorderWidth) var(--sapField_InformationBorderStyle);-webkit-box-shadow:var(--sapField_InformationShadow);box-shadow:var(--sapField_InformationShadow)}.fd-input.is-information.is-hover,.fd-input.is-information:hover{background-color:var(--fdInput_Information_Background_Color_Hover);border-color:var(--sapField_InformationColor);-webkit-box-shadow:var(--fdInput_Information_Box_Shadow_Hover);box-shadow:var(--fdInput_Information_Box_Shadow_Hover)}.fd-input.is-information.is-focus,.fd-input.is-information:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Information_Outline_Color);z-index:5}.fd-input.is-information.is-focus.is-hover,.fd-input.is-information.is-focus:hover,.fd-input.is-information:focus.is-hover,.fd-input.is-information:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-information.is-expanded,.fd-input.is-information[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Information_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-alert,.fd-input.is-error,.fd-input.is-warning{font-style:var(--fdInput_State_Text_Style);font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::-webkit-input-placeholder,.fd-input.is-error::-webkit-input-placeholder,.fd-input.is-warning::-webkit-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::-moz-placeholder,.fd-input.is-error::-moz-placeholder,.fd-input.is-warning::-moz-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert:-ms-input-placeholder,.fd-input.is-error:-ms-input-placeholder,.fd-input.is-warning:-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::-ms-input-placeholder,.fd-input.is-error::-ms-input-placeholder,.fd-input.is-warning::-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::placeholder,.fd-input.is-error::placeholder,.fd-input.is-warning::placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert.is-focus,.fd-input.is-alert:focus,.fd-input.is-error.is-focus,.fd-input.is-error:focus,.fd-input.is-information.is-focus,.fd-input.is-information:focus,.fd-input.is-warning.is-focus,.fd-input.is-warning:focus{outline-offset:var(--fdInput_Outline_Offset_States);z-index:5}.fd-input.is-error::-webkit-input-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error::-moz-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error:-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error::-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error::placeholder{color:var(--sapField_TextColor)}.fd-input.is-disabled,.fd-input:disabled,.fd-input[aria-disabled=true]{opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-input.is-disabled::-webkit-input-placeholder,.fd-input:disabled::-webkit-input-placeholder,.fd-input[aria-disabled=true]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled::-moz-placeholder,.fd-input:disabled::-moz-placeholder,.fd-input[aria-disabled=true]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled:-ms-input-placeholder,.fd-input:disabled:-ms-input-placeholder,.fd-input[aria-disabled=true]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled::-ms-input-placeholder,.fd-input:disabled::-ms-input-placeholder,.fd-input[aria-disabled=true]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled::placeholder,.fd-input:disabled::placeholder,.fd-input[aria-disabled=true]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly,.fd-input[aria-readonly=true],.fd-input[readonly]{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-input.is-readonly::-webkit-input-placeholder,.fd-input[aria-readonly=true]::-webkit-input-placeholder,.fd-input[readonly]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly::-moz-placeholder,.fd-input[aria-readonly=true]::-moz-placeholder,.fd-input[readonly]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly:-ms-input-placeholder,.fd-input[aria-readonly=true]:-ms-input-placeholder,.fd-input[readonly]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly::-ms-input-placeholder,.fd-input[aria-readonly=true]::-ms-input-placeholder,.fd-input[readonly]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly::placeholder,.fd-input[aria-readonly=true]::placeholder,.fd-input[readonly]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly.is-focus,.fd-input.is-readonly.is-hover,.fd-input.is-readonly:focus,.fd-input.is-readonly:hover,.fd-input[aria-readonly=true].is-focus,.fd-input[aria-readonly=true].is-hover,.fd-input[aria-readonly=true]:focus,.fd-input[aria-readonly=true]:hover,.fd-input[readonly].is-focus,.fd-input[readonly].is-hover,.fd-input[readonly]:focus,.fd-input[readonly]:hover{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-input.is-readonly.is-focus,.fd-input.is-readonly:focus,.fd-input[aria-readonly=true].is-focus,.fd-input[aria-readonly=true]:focus,.fd-input[readonly].is-focus,.fd-input[readonly]:focus{z-index:5}.fd-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sapField_BackgroundStyle,var(--sapField_BackgroundStyle));background-color:var(--sapField_Background,var(--sapField_Background));border:0;border:var(--sapField_BorderWidth) var(--sapField_BorderStyle) var(--sapField_BorderColor);border-radius:var(--sapField_BorderCornerRadius);-webkit-box-shadow:var(--sapField_Shadow);box-shadow:var(--sapField_Shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapField_TextColor);cursor:text;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:var(--fdInput_Height,var(--sapElement_Height));height:auto;line-height:normal;line-height:var(--fdTextarea_Line_Height);margin-block:0;margin-block:var(--fdInput_Field_Margin_Block,.25rem);margin-block:.25rem;margin-inline:0;min-height:var(--fdInput_Height,var(--sapElement_Height));min-height:2.25rem;min-width:2.75rem;min-width:6rem;outline:none;overflow:hidden;overflow:auto;padding-block:0;padding-block:.5rem;padding-inline:0;padding-inline:var(--fdInput_Field_Padding_Inline,.625rem);padding-inline:.75rem;padding-inline:.625rem;position:relative;resize:none;scrollbar-color:var(--fdScrollbar_Thumb_Color) var(--fdScrollbar_Track_Color);text-overflow:ellipsis;text-shadow:var(--fdInput_Text_Shadow);white-space:nowrap;white-space:pre-wrap;width:100%;z-index:1}.fd-textarea.is-focus,.fd-textarea:focus{outline:none}.fd-textarea::-webkit-scrollbar{height:var(--fdScrollbar_Dimension);width:var(--fdScrollbar_Dimension)}.fd-textarea::-webkit-scrollbar-corner,.fd-textarea::-webkit-scrollbar-track{background-color:var(--fdScrollbar_Track_Color)}.fd-textarea::-webkit-scrollbar-thumb{background-color:transparent;border:var(--fdScrollbar_Thumb_Offset) solid transparent;border-radius:calc(var(--fdScrollbar_Thumb_Border_Radius) - var(--fdScrollbar_Thumb_Offset));-webkit-box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Color);box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Color)}.fd-textarea::-webkit-scrollbar-thumb:active,.fd-textarea::-webkit-scrollbar-thumb:hover{-webkit-box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Hover_Color);box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Hover_Color)}.fd-textarea:after,.fd-textarea:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-textarea::-webkit-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea::-moz-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea:-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea::-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea::placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea[dir=rtl]::-webkit-input-placeholder,[dir=rtl] .fd-textarea::-webkit-input-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]::-moz-placeholder,[dir=rtl] .fd-textarea::-moz-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]:-ms-input-placeholder,[dir=rtl] .fd-textarea:-ms-input-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]::-ms-input-placeholder,[dir=rtl] .fd-textarea::-ms-input-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]::placeholder,[dir=rtl] .fd-textarea::placeholder{text-indent:.125rem}.fd-textarea::-moz-selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-textarea::selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-textarea::-ms-clear{display:none}.fd-textarea.is-hover,.fd-textarea:hover{background:var(--sapField_Hover_BackgroundStyle,var(--sapField_Hover_BackgroundStyle));background-color:var(--sapField_Hover_Background,var(--sapField_Hover_Background));border-color:var(--sapField_Hover_BorderColor);-webkit-box-shadow:var(--fdInput_Box_Shadow_Hover);box-shadow:var(--fdInput_Box_Shadow_Hover)}.fd-textarea.is-focus,.fd-textarea:focus{background:var(--sapField_Focus_Background,var(--sapField_Focus_Background));-webkit-box-shadow:none;box-shadow:none;outline:var(--fdInput_Outline_Color) var(--sapContent_FocusStyle) var(--sapContent_FocusWidth);outline-offset:var(--fdInput_Outline_Offset);z-index:5}.fd-textarea.is-success{background:var(--sapField_SuccessBackgroundStyle);background-color:var(--sapField_SuccessBackground);border:var(--sapField_SuccessColor) var(--sapField_SuccessBorderWidth) var(--sapField_SuccessBorderStyle);-webkit-box-shadow:var(--sapField_SuccessShadow);box-shadow:var(--sapField_SuccessShadow)}.fd-textarea.is-success.is-hover,.fd-textarea.is-success:hover{background-color:var(--fdInput_Success_Background_Color_Hover);border-color:var(--sapField_SuccessColor);-webkit-box-shadow:var(--fdInput_Success_Box_Shadow_Hover);box-shadow:var(--fdInput_Success_Box_Shadow_Hover)}.fd-textarea.is-success.is-focus,.fd-textarea.is-success:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Success_Outline_Color);z-index:5}.fd-textarea.is-success.is-focus.is-hover,.fd-textarea.is-success.is-focus:hover,.fd-textarea.is-success:focus.is-hover,.fd-textarea.is-success:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-success.is-expanded,.fd-textarea.is-success[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Success_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-error{background:var(--sapField_InvalidBackgroundStyle);background-color:var(--sapField_InvalidBackground);border:var(--sapField_InvalidColor) var(--sapField_InvalidBorderWidth) var(--sapField_InvalidBorderStyle);-webkit-box-shadow:var(--sapField_InvalidShadow);box-shadow:var(--sapField_InvalidShadow)}.fd-textarea.is-error.is-hover,.fd-textarea.is-error:hover{background-color:var(--fdInput_Error_Background_Color_Hover);border-color:var(--sapField_InvalidColor);-webkit-box-shadow:var(--fdInput_Error_Box_Shadow_Hover);box-shadow:var(--fdInput_Error_Box_Shadow_Hover)}.fd-textarea.is-error.is-focus,.fd-textarea.is-error:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Error_Outline_Color);z-index:5}.fd-textarea.is-error.is-focus.is-hover,.fd-textarea.is-error.is-focus:hover,.fd-textarea.is-error:focus.is-hover,.fd-textarea.is-error:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-error.is-expanded,.fd-textarea.is-error[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Error_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-warning{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle);-webkit-box-shadow:var(--sapField_WarningShadow);box-shadow:var(--sapField_WarningShadow)}.fd-textarea.is-warning.is-hover,.fd-textarea.is-warning:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-textarea.is-warning.is-focus,.fd-textarea.is-warning:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-textarea.is-warning.is-focus.is-hover,.fd-textarea.is-warning.is-focus:hover,.fd-textarea.is-warning:focus.is-hover,.fd-textarea.is-warning:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-warning.is-expanded,.fd-textarea.is-warning[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-alert{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle)}.fd-textarea.is-alert.is-hover,.fd-textarea.is-alert:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-textarea.is-alert.is-focus,.fd-textarea.is-alert:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-textarea.is-alert.is-focus.is-hover,.fd-textarea.is-alert.is-focus:hover,.fd-textarea.is-alert:focus.is-hover,.fd-textarea.is-alert:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-alert.is-expanded,.fd-textarea.is-alert[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-information{background:var(--sapField_InformationBackgroundStyle);background-color:var(--sapField_InformationBackground);border:var(--sapField_InformationColor) var(--sapField_InformationBorderWidth) var(--sapField_InformationBorderStyle);-webkit-box-shadow:var(--sapField_InformationShadow);box-shadow:var(--sapField_InformationShadow)}.fd-textarea.is-information.is-hover,.fd-textarea.is-information:hover{background-color:var(--fdInput_Information_Background_Color_Hover);border-color:var(--sapField_InformationColor);-webkit-box-shadow:var(--fdInput_Information_Box_Shadow_Hover);box-shadow:var(--fdInput_Information_Box_Shadow_Hover)}.fd-textarea.is-information.is-focus,.fd-textarea.is-information:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Information_Outline_Color);z-index:5}.fd-textarea.is-information.is-focus.is-hover,.fd-textarea.is-information.is-focus:hover,.fd-textarea.is-information:focus.is-hover,.fd-textarea.is-information:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-information.is-expanded,.fd-textarea.is-information[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Information_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-alert,.fd-textarea.is-error,.fd-textarea.is-warning{font-style:var(--fdInput_State_Text_Style);font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::-webkit-input-placeholder,.fd-textarea.is-error::-webkit-input-placeholder,.fd-textarea.is-warning::-webkit-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::-moz-placeholder,.fd-textarea.is-error::-moz-placeholder,.fd-textarea.is-warning::-moz-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert:-ms-input-placeholder,.fd-textarea.is-error:-ms-input-placeholder,.fd-textarea.is-warning:-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::-ms-input-placeholder,.fd-textarea.is-error::-ms-input-placeholder,.fd-textarea.is-warning::-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::placeholder,.fd-textarea.is-error::placeholder,.fd-textarea.is-warning::placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert.is-focus,.fd-textarea.is-alert:focus,.fd-textarea.is-error.is-focus,.fd-textarea.is-error:focus,.fd-textarea.is-information.is-focus,.fd-textarea.is-information:focus,.fd-textarea.is-warning.is-focus,.fd-textarea.is-warning:focus{outline-offset:var(--fdInput_Outline_Offset_States);z-index:5}.fd-textarea.is-error::-webkit-input-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error::-moz-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error:-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error::-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error::placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-disabled,.fd-textarea:disabled,.fd-textarea[aria-disabled=true]{opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-textarea.is-disabled::-webkit-input-placeholder,.fd-textarea:disabled::-webkit-input-placeholder,.fd-textarea[aria-disabled=true]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled::-moz-placeholder,.fd-textarea:disabled::-moz-placeholder,.fd-textarea[aria-disabled=true]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled:-ms-input-placeholder,.fd-textarea:disabled:-ms-input-placeholder,.fd-textarea[aria-disabled=true]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled::-ms-input-placeholder,.fd-textarea:disabled::-ms-input-placeholder,.fd-textarea[aria-disabled=true]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled::placeholder,.fd-textarea:disabled::placeholder,.fd-textarea[aria-disabled=true]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly,.fd-textarea[aria-readonly=true],.fd-textarea[readonly]{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-readonly::-webkit-input-placeholder,.fd-textarea[aria-readonly=true]::-webkit-input-placeholder,.fd-textarea[readonly]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly::-moz-placeholder,.fd-textarea[aria-readonly=true]::-moz-placeholder,.fd-textarea[readonly]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly:-ms-input-placeholder,.fd-textarea[aria-readonly=true]:-ms-input-placeholder,.fd-textarea[readonly]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly::-ms-input-placeholder,.fd-textarea[aria-readonly=true]::-ms-input-placeholder,.fd-textarea[readonly]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly::placeholder,.fd-textarea[aria-readonly=true]::placeholder,.fd-textarea[readonly]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly.is-focus,.fd-textarea.is-readonly.is-hover,.fd-textarea.is-readonly:focus,.fd-textarea.is-readonly:hover,.fd-textarea[aria-readonly=true].is-focus,.fd-textarea[aria-readonly=true].is-hover,.fd-textarea[aria-readonly=true]:focus,.fd-textarea[aria-readonly=true]:hover,.fd-textarea[readonly].is-focus,.fd-textarea[readonly].is-hover,.fd-textarea[readonly]:focus,.fd-textarea[readonly]:hover{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-readonly.is-focus,.fd-textarea.is-readonly:focus,.fd-textarea[aria-readonly=true].is-focus,.fd-textarea[aria-readonly=true]:focus,.fd-textarea[readonly].is-focus,.fd-textarea[readonly]:focus{z-index:5}.fd-textarea.is-readonly,.fd-textarea[readonly]{background:var(--sapField_ReadOnly_Background);border:var(--sapField_BorderWidth) dashed var(--sapField_ReadOnly_BorderColor);border-radius:var(--sapField_BorderCornerRadius)}.fd-textarea.is-readonly.is-hover,.fd-textarea.is-readonly:hover,.fd-textarea[readonly].is-hover,.fd-textarea[readonly]:hover{background:var(--sapField_ReadOnly_Background)}.fd-textarea.is-readonly.is-focus,.fd-textarea.is-readonly:focus,.fd-textarea[readonly].is-focus,.fd-textarea[readonly]:focus{background:var(--sapField_ReadOnly_Background);outline-offset:-.25rem;z-index:5}.fd-textarea::-webkit-scrollbar-corner,.fd-textarea::-webkit-scrollbar-track{background:transparent;border-radius:0 var(--sapField_BorderCornerRadius) var(--sapField_BorderCornerRadius) 0!important}.fd-textarea__sr-only{position:absolute;clip:rect(0 0 0 0);border:0;height:1px;margin-block:-1px;margin-inline:-1px;overflow:hidden;padding-block:0;padding-inline:0;white-space:nowrap;width:1px}.fd-textarea[aria-expanded=false]{z-index:0}.fd-textarea.is-expanded,.fd-textarea[aria-expanded=true]{z-index:4}.fd-textarea[class*=-compact],.fd-textarea[class*=-condensed],[class*=-compact] .fd-textarea:not([class*=-cozy]),[class*=-condensed] .fd-textarea:not([class*=-cozy]){margin-block:.1875rem;margin-inline:0;min-height:1.625rem;padding-block:.1875rem;padding-inline:.5rem}.fd-textarea-counter{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapContent_LabelColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-size:var(--sapFontSmallSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;overflow:hidden;padding-block:0;padding-block:.375rem .5rem;padding-inline:0;padding-inline:.125rem;text-align:end;text-overflow:ellipsis;white-space:nowrap}.fd-textarea-counter:after,.fd-textarea-counter:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-textarea-counter.is-disabled,.fd-textarea-counter.is-readonly,.fd-textarea-counter:disabled,.fd-textarea-counter[aria-disabled=true],.fd-textarea-counter[readonly]{display:none}.fd-textarea-counter-container{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-block:.375rem .5rem}.fd-textarea-counter-container:after,.fd-textarea-counter-container:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-textarea-counter-container .fd-textarea-counter{padding-block:0;-webkit-margin-start:auto;margin-inline-start:auto}.fd-textarea--ai{position:relative}.fd-textarea--ai:has(.fd-ai-busy-indicator){padding-block:0;padding-inline:0}.fd-textarea--ai .fd-toolbar--ai{bottom:0;left:0;position:absolute;right:0}.fd-input.is-readonly,.fd-input[aria-readonly=true],.fd-input[readonly],.fd-input.is-readonly.is-hover,.fd-input.is-readonly:hover,.fd-input[aria-readonly=true].is-hover,.fd-input[aria-readonly=true]:hover,.fd-input[readonly].is-hover,.fd-input[readonly]:hover{z-index:1!important}.fd-input.is-readonly.is-focus,.fd-input.is-readonly:focus,.fd-input[aria-readonly=true].is-focus,.fd-input[aria-readonly=true]:focus,.fd-input[readonly].is-focus,.fd-input[readonly]:focus{z-index:1!important}\n/*! Bundled license information:\n\nfundamental-styles/dist/textarea.css:\n (*!\n * Fundamental Library Styles v0.42.0\n * Copyright (c) 2026 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
122
980
|
}
|
|
123
|
-
__decorate([
|
|
124
|
-
applyCssClass,
|
|
125
|
-
__metadata("design:type", Function),
|
|
126
|
-
__metadata("design:paramtypes", []),
|
|
127
|
-
__metadata("design:returntype", Array)
|
|
128
|
-
], FormControlComponent.prototype, "buildComponentCssClass", null);
|
|
129
981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: FormControlComponent, decorators: [{
|
|
130
982
|
type: Component,
|
|
131
|
-
args: [{ selector: 'input[fd-form-control], textarea[fd-form-control]', template: ` <ng-content></ng-content>`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [registerFormItemControl(FormControlComponent), contentDensityObserverProviders()], host: {
|
|
132
|
-
'[
|
|
133
|
-
'[attr.
|
|
134
|
-
'[attr.aria-
|
|
983
|
+
args: [{ selector: 'input[fd-form-control], textarea[fd-form-control]', template: ` <ng-content></ng-content>`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [registerFormItemControl(FormControlComponent), contentDensityObserverProviders(), NumberInputService], host: {
|
|
984
|
+
'[class]': 'cssClass()',
|
|
985
|
+
'[attr.type]': 'internalType()',
|
|
986
|
+
'[attr.aria-label]': 'ariaLabelAttr() || ariaLabel() || null',
|
|
987
|
+
'[attr.aria-labelledby]': 'ariaLabelledByAttr() || ariaLabelledBy() || null',
|
|
988
|
+
'[attr.aria-invalid]': 'state() === "error" ? true : null',
|
|
989
|
+
'[style.text-align]': 'isEnhancedNumberMode() ? textAlign() : null',
|
|
990
|
+
'(keydown)': 'handleKeydown($any($event))',
|
|
991
|
+
'(paste)': 'handlePaste($any($event))',
|
|
992
|
+
'(focus)': 'handleFocus($any($event))',
|
|
993
|
+
'(blur)': 'handleBlur($any($event))',
|
|
994
|
+
'(wheel)': 'handleWheel($any($event))'
|
|
135
995
|
}, styles: [".fd-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sapField_BackgroundStyle,var(--sapField_BackgroundStyle));background-color:var(--sapField_Background,var(--sapField_Background));border:0;border:var(--sapField_BorderWidth) var(--sapField_BorderStyle) var(--sapField_BorderColor);border-radius:var(--sapField_BorderCornerRadius);-webkit-box-shadow:var(--sapField_Shadow);box-shadow:var(--sapField_Shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapField_TextColor);cursor:text;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:var(--fdInput_Height,var(--sapElement_Height));line-height:normal;margin-block:0;margin-block:var(--fdInput_Field_Margin_Block,.25rem);margin-inline:0;min-height:var(--fdInput_Height,var(--sapElement_Height));min-width:2.75rem;outline:none;overflow:hidden;padding-block:0;padding-inline:0;padding-inline:var(--fdInput_Field_Padding_Inline,.625rem);text-overflow:ellipsis;text-shadow:var(--fdInput_Text_Shadow);white-space:nowrap;width:100%;z-index:1}.fd-input:after,.fd-input:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-input::-webkit-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input::-moz-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input:-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input::-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input::placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-input[dir=rtl]::-webkit-input-placeholder,[dir=rtl] .fd-input::-webkit-input-placeholder{text-indent:.125rem}.fd-input[dir=rtl]::-moz-placeholder,[dir=rtl] .fd-input::-moz-placeholder{text-indent:.125rem}.fd-input[dir=rtl]:-ms-input-placeholder,[dir=rtl] .fd-input:-ms-input-placeholder{text-indent:.125rem}.fd-input[dir=rtl]::-ms-input-placeholder,[dir=rtl] .fd-input::-ms-input-placeholder{text-indent:.125rem}.fd-input[dir=rtl]::placeholder,[dir=rtl] .fd-input::placeholder{text-indent:.125rem}.fd-input::-moz-selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-input::selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-input::-ms-clear{display:none}.fd-input.is-hover,.fd-input:hover{background:var(--sapField_Hover_BackgroundStyle,var(--sapField_Hover_BackgroundStyle));background-color:var(--sapField_Hover_Background,var(--sapField_Hover_Background));border-color:var(--sapField_Hover_BorderColor);-webkit-box-shadow:var(--fdInput_Box_Shadow_Hover);box-shadow:var(--fdInput_Box_Shadow_Hover)}.fd-input.is-focus,.fd-input:focus{background:var(--sapField_Focus_Background,var(--sapField_Focus_Background));-webkit-box-shadow:none;box-shadow:none;outline:var(--fdInput_Outline_Color) var(--sapContent_FocusStyle) var(--sapContent_FocusWidth);outline-offset:var(--fdInput_Outline_Offset);z-index:5}.fd-input[type=search]::-webkit-search-cancel-button,.fd-input[type=search]::-webkit-search-decoration,.fd-input[type=search]::-webkit-search-results-button,.fd-input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.fd-input[aria-expanded=false]{z-index:0}.fd-input.is-expanded,.fd-input[aria-expanded=true]{z-index:4}.fd-input[class*=-compact],.fd-input[class*=-condensed],[class*=-compact] .fd-input:not([class*=-cozy]),[class*=-condensed] .fd-input:not([class*=-cozy]){-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--fdInput_Compact_Height,var(--sapElement_Compact_Height));margin-block:var(--fdInput_Field_Compact_Margin_Block,.1875rem);margin-inline:0;min-height:var(--fdInput_Compact_Height,var(--sapElement_Compact_Height));min-width:var(--fdInput_Field_Compact_Min_Width,2rem);padding-block:0;padding-inline:var(--fdInput_Field_Compact_Padding,.5rem)}.fd-input--no-number-spinner{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.fd-input--no-number-spinner::-webkit-inner-spin-button,.fd-input--no-number-spinner::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin-block:0;margin-inline:0}.fd-input.right-align{text-align:right}.fd-input__sr-only{position:absolute;clip:rect(0 0 0 0);border:0;height:1px;margin-block:-1px;margin-inline:-1px;overflow:hidden;padding-block:0;padding-inline:0;white-space:nowrap;width:1px}.fd-input.is-success{background:var(--sapField_SuccessBackgroundStyle);background-color:var(--sapField_SuccessBackground);border:var(--sapField_SuccessColor) var(--sapField_SuccessBorderWidth) var(--sapField_SuccessBorderStyle);-webkit-box-shadow:var(--sapField_SuccessShadow);box-shadow:var(--sapField_SuccessShadow)}.fd-input.is-success.is-hover,.fd-input.is-success:hover{background-color:var(--fdInput_Success_Background_Color_Hover);border-color:var(--sapField_SuccessColor);-webkit-box-shadow:var(--fdInput_Success_Box_Shadow_Hover);box-shadow:var(--fdInput_Success_Box_Shadow_Hover)}.fd-input.is-success.is-focus,.fd-input.is-success:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Success_Outline_Color);z-index:5}.fd-input.is-success.is-focus.is-hover,.fd-input.is-success.is-focus:hover,.fd-input.is-success:focus.is-hover,.fd-input.is-success:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-success.is-expanded,.fd-input.is-success[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Success_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-error{background:var(--sapField_InvalidBackgroundStyle);background-color:var(--sapField_InvalidBackground);border:var(--sapField_InvalidColor) var(--sapField_InvalidBorderWidth) var(--sapField_InvalidBorderStyle);-webkit-box-shadow:var(--sapField_InvalidShadow);box-shadow:var(--sapField_InvalidShadow)}.fd-input.is-error.is-hover,.fd-input.is-error:hover{background-color:var(--fdInput_Error_Background_Color_Hover);border-color:var(--sapField_InvalidColor);-webkit-box-shadow:var(--fdInput_Error_Box_Shadow_Hover);box-shadow:var(--fdInput_Error_Box_Shadow_Hover)}.fd-input.is-error.is-focus,.fd-input.is-error:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Error_Outline_Color);z-index:5}.fd-input.is-error.is-focus.is-hover,.fd-input.is-error.is-focus:hover,.fd-input.is-error:focus.is-hover,.fd-input.is-error:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-error.is-expanded,.fd-input.is-error[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Error_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-warning{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle);-webkit-box-shadow:var(--sapField_WarningShadow);box-shadow:var(--sapField_WarningShadow)}.fd-input.is-warning.is-hover,.fd-input.is-warning:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-input.is-warning.is-focus,.fd-input.is-warning:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-input.is-warning.is-focus.is-hover,.fd-input.is-warning.is-focus:hover,.fd-input.is-warning:focus.is-hover,.fd-input.is-warning:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-warning.is-expanded,.fd-input.is-warning[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-alert{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle)}.fd-input.is-alert.is-hover,.fd-input.is-alert:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-input.is-alert.is-focus,.fd-input.is-alert:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-input.is-alert.is-focus.is-hover,.fd-input.is-alert.is-focus:hover,.fd-input.is-alert:focus.is-hover,.fd-input.is-alert:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-alert.is-expanded,.fd-input.is-alert[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-information{background:var(--sapField_InformationBackgroundStyle);background-color:var(--sapField_InformationBackground);border:var(--sapField_InformationColor) var(--sapField_InformationBorderWidth) var(--sapField_InformationBorderStyle);-webkit-box-shadow:var(--sapField_InformationShadow);box-shadow:var(--sapField_InformationShadow)}.fd-input.is-information.is-hover,.fd-input.is-information:hover{background-color:var(--fdInput_Information_Background_Color_Hover);border-color:var(--sapField_InformationColor);-webkit-box-shadow:var(--fdInput_Information_Box_Shadow_Hover);box-shadow:var(--fdInput_Information_Box_Shadow_Hover)}.fd-input.is-information.is-focus,.fd-input.is-information:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Information_Outline_Color);z-index:5}.fd-input.is-information.is-focus.is-hover,.fd-input.is-information.is-focus:hover,.fd-input.is-information:focus.is-hover,.fd-input.is-information:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-input.is-information.is-expanded,.fd-input.is-information[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Information_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-input.is-alert,.fd-input.is-error,.fd-input.is-warning{font-style:var(--fdInput_State_Text_Style);font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::-webkit-input-placeholder,.fd-input.is-error::-webkit-input-placeholder,.fd-input.is-warning::-webkit-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::-moz-placeholder,.fd-input.is-error::-moz-placeholder,.fd-input.is-warning::-moz-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert:-ms-input-placeholder,.fd-input.is-error:-ms-input-placeholder,.fd-input.is-warning:-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::-ms-input-placeholder,.fd-input.is-error::-ms-input-placeholder,.fd-input.is-warning::-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert::placeholder,.fd-input.is-error::placeholder,.fd-input.is-warning::placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-input.is-alert.is-focus,.fd-input.is-alert:focus,.fd-input.is-error.is-focus,.fd-input.is-error:focus,.fd-input.is-information.is-focus,.fd-input.is-information:focus,.fd-input.is-warning.is-focus,.fd-input.is-warning:focus{outline-offset:var(--fdInput_Outline_Offset_States);z-index:5}.fd-input.is-error::-webkit-input-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error::-moz-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error:-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error::-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-input.is-error::placeholder{color:var(--sapField_TextColor)}.fd-input.is-disabled,.fd-input:disabled,.fd-input[aria-disabled=true]{opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-input.is-disabled::-webkit-input-placeholder,.fd-input:disabled::-webkit-input-placeholder,.fd-input[aria-disabled=true]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled::-moz-placeholder,.fd-input:disabled::-moz-placeholder,.fd-input[aria-disabled=true]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled:-ms-input-placeholder,.fd-input:disabled:-ms-input-placeholder,.fd-input[aria-disabled=true]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled::-ms-input-placeholder,.fd-input:disabled::-ms-input-placeholder,.fd-input[aria-disabled=true]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-disabled::placeholder,.fd-input:disabled::placeholder,.fd-input[aria-disabled=true]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly,.fd-input[aria-readonly=true],.fd-input[readonly]{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-input.is-readonly::-webkit-input-placeholder,.fd-input[aria-readonly=true]::-webkit-input-placeholder,.fd-input[readonly]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly::-moz-placeholder,.fd-input[aria-readonly=true]::-moz-placeholder,.fd-input[readonly]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly:-ms-input-placeholder,.fd-input[aria-readonly=true]:-ms-input-placeholder,.fd-input[readonly]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly::-ms-input-placeholder,.fd-input[aria-readonly=true]::-ms-input-placeholder,.fd-input[readonly]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly::placeholder,.fd-input[aria-readonly=true]::placeholder,.fd-input[readonly]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-input.is-readonly.is-focus,.fd-input.is-readonly.is-hover,.fd-input.is-readonly:focus,.fd-input.is-readonly:hover,.fd-input[aria-readonly=true].is-focus,.fd-input[aria-readonly=true].is-hover,.fd-input[aria-readonly=true]:focus,.fd-input[aria-readonly=true]:hover,.fd-input[readonly].is-focus,.fd-input[readonly].is-hover,.fd-input[readonly]:focus,.fd-input[readonly]:hover{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-input.is-readonly.is-focus,.fd-input.is-readonly:focus,.fd-input[aria-readonly=true].is-focus,.fd-input[aria-readonly=true]:focus,.fd-input[readonly].is-focus,.fd-input[readonly]:focus{z-index:5}.fd-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sapField_BackgroundStyle,var(--sapField_BackgroundStyle));background-color:var(--sapField_Background,var(--sapField_Background));border:0;border:var(--sapField_BorderWidth) var(--sapField_BorderStyle) var(--sapField_BorderColor);border-radius:var(--sapField_BorderCornerRadius);-webkit-box-shadow:var(--sapField_Shadow);box-shadow:var(--sapField_Shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapField_TextColor);cursor:text;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:var(--fdInput_Height,var(--sapElement_Height));height:auto;line-height:normal;line-height:var(--fdTextarea_Line_Height);margin-block:0;margin-block:var(--fdInput_Field_Margin_Block,.25rem);margin-block:.25rem;margin-inline:0;min-height:var(--fdInput_Height,var(--sapElement_Height));min-height:2.25rem;min-width:2.75rem;min-width:6rem;outline:none;overflow:hidden;overflow:auto;padding-block:0;padding-block:.5rem;padding-inline:0;padding-inline:var(--fdInput_Field_Padding_Inline,.625rem);padding-inline:.75rem;padding-inline:.625rem;position:relative;resize:none;scrollbar-color:var(--fdScrollbar_Thumb_Color) var(--fdScrollbar_Track_Color);text-overflow:ellipsis;text-shadow:var(--fdInput_Text_Shadow);white-space:nowrap;white-space:pre-wrap;width:100%;z-index:1}.fd-textarea.is-focus,.fd-textarea:focus{outline:none}.fd-textarea::-webkit-scrollbar{height:var(--fdScrollbar_Dimension);width:var(--fdScrollbar_Dimension)}.fd-textarea::-webkit-scrollbar-corner,.fd-textarea::-webkit-scrollbar-track{background-color:var(--fdScrollbar_Track_Color)}.fd-textarea::-webkit-scrollbar-thumb{background-color:transparent;border:var(--fdScrollbar_Thumb_Offset) solid transparent;border-radius:calc(var(--fdScrollbar_Thumb_Border_Radius) - var(--fdScrollbar_Thumb_Offset));-webkit-box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Color);box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Color)}.fd-textarea::-webkit-scrollbar-thumb:active,.fd-textarea::-webkit-scrollbar-thumb:hover{-webkit-box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Hover_Color);box-shadow:inset 0 0 0 var(--fdScrollbar_Dimension) var(--fdScrollbar_Thumb_Hover_Color)}.fd-textarea:after,.fd-textarea:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-textarea::-webkit-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea::-moz-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea:-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea::-ms-input-placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea::placeholder{color:var(--sapField_PlaceholderTextColor);font-style:var(--fdPlaceholder_Font_Style)}.fd-textarea[dir=rtl]::-webkit-input-placeholder,[dir=rtl] .fd-textarea::-webkit-input-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]::-moz-placeholder,[dir=rtl] .fd-textarea::-moz-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]:-ms-input-placeholder,[dir=rtl] .fd-textarea:-ms-input-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]::-ms-input-placeholder,[dir=rtl] .fd-textarea::-ms-input-placeholder{text-indent:.125rem}.fd-textarea[dir=rtl]::placeholder,[dir=rtl] .fd-textarea::placeholder{text-indent:.125rem}.fd-textarea::-moz-selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-textarea::selection{background-color:var(--sapSelectedColor);color:var(--sapContent_ContrastTextColor)}.fd-textarea::-ms-clear{display:none}.fd-textarea.is-hover,.fd-textarea:hover{background:var(--sapField_Hover_BackgroundStyle,var(--sapField_Hover_BackgroundStyle));background-color:var(--sapField_Hover_Background,var(--sapField_Hover_Background));border-color:var(--sapField_Hover_BorderColor);-webkit-box-shadow:var(--fdInput_Box_Shadow_Hover);box-shadow:var(--fdInput_Box_Shadow_Hover)}.fd-textarea.is-focus,.fd-textarea:focus{background:var(--sapField_Focus_Background,var(--sapField_Focus_Background));-webkit-box-shadow:none;box-shadow:none;outline:var(--fdInput_Outline_Color) var(--sapContent_FocusStyle) var(--sapContent_FocusWidth);outline-offset:var(--fdInput_Outline_Offset);z-index:5}.fd-textarea.is-success{background:var(--sapField_SuccessBackgroundStyle);background-color:var(--sapField_SuccessBackground);border:var(--sapField_SuccessColor) var(--sapField_SuccessBorderWidth) var(--sapField_SuccessBorderStyle);-webkit-box-shadow:var(--sapField_SuccessShadow);box-shadow:var(--sapField_SuccessShadow)}.fd-textarea.is-success.is-hover,.fd-textarea.is-success:hover{background-color:var(--fdInput_Success_Background_Color_Hover);border-color:var(--sapField_SuccessColor);-webkit-box-shadow:var(--fdInput_Success_Box_Shadow_Hover);box-shadow:var(--fdInput_Success_Box_Shadow_Hover)}.fd-textarea.is-success.is-focus,.fd-textarea.is-success:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Success_Outline_Color);z-index:5}.fd-textarea.is-success.is-focus.is-hover,.fd-textarea.is-success.is-focus:hover,.fd-textarea.is-success:focus.is-hover,.fd-textarea.is-success:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-success.is-expanded,.fd-textarea.is-success[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Success_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-error{background:var(--sapField_InvalidBackgroundStyle);background-color:var(--sapField_InvalidBackground);border:var(--sapField_InvalidColor) var(--sapField_InvalidBorderWidth) var(--sapField_InvalidBorderStyle);-webkit-box-shadow:var(--sapField_InvalidShadow);box-shadow:var(--sapField_InvalidShadow)}.fd-textarea.is-error.is-hover,.fd-textarea.is-error:hover{background-color:var(--fdInput_Error_Background_Color_Hover);border-color:var(--sapField_InvalidColor);-webkit-box-shadow:var(--fdInput_Error_Box_Shadow_Hover);box-shadow:var(--fdInput_Error_Box_Shadow_Hover)}.fd-textarea.is-error.is-focus,.fd-textarea.is-error:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Error_Outline_Color);z-index:5}.fd-textarea.is-error.is-focus.is-hover,.fd-textarea.is-error.is-focus:hover,.fd-textarea.is-error:focus.is-hover,.fd-textarea.is-error:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-error.is-expanded,.fd-textarea.is-error[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Error_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-warning{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle);-webkit-box-shadow:var(--sapField_WarningShadow);box-shadow:var(--sapField_WarningShadow)}.fd-textarea.is-warning.is-hover,.fd-textarea.is-warning:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-textarea.is-warning.is-focus,.fd-textarea.is-warning:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-textarea.is-warning.is-focus.is-hover,.fd-textarea.is-warning.is-focus:hover,.fd-textarea.is-warning:focus.is-hover,.fd-textarea.is-warning:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-warning.is-expanded,.fd-textarea.is-warning[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-alert{background:var(--sapField_WarningBackgroundStyle);background-color:var(--sapField_WarningBackground);border:var(--sapField_WarningColor) var(--sapField_WarningBorderWidth) var(--sapField_WarningBorderStyle)}.fd-textarea.is-alert.is-hover,.fd-textarea.is-alert:hover{background-color:var(--fdInput_Warning_Background_Color_Hover);border-color:var(--sapField_WarningColor);-webkit-box-shadow:var(--fdInput_Warning_Box_Shadow_Hover);box-shadow:var(--fdInput_Warning_Box_Shadow_Hover)}.fd-textarea.is-alert.is-focus,.fd-textarea.is-alert:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Warning_Outline_Color);z-index:5}.fd-textarea.is-alert.is-focus.is-hover,.fd-textarea.is-alert.is-focus:hover,.fd-textarea.is-alert:focus.is-hover,.fd-textarea.is-alert:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-alert.is-expanded,.fd-textarea.is-alert[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Warning_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-information{background:var(--sapField_InformationBackgroundStyle);background-color:var(--sapField_InformationBackground);border:var(--sapField_InformationColor) var(--sapField_InformationBorderWidth) var(--sapField_InformationBorderStyle);-webkit-box-shadow:var(--sapField_InformationShadow);box-shadow:var(--sapField_InformationShadow)}.fd-textarea.is-information.is-hover,.fd-textarea.is-information:hover{background-color:var(--fdInput_Information_Background_Color_Hover);border-color:var(--sapField_InformationColor);-webkit-box-shadow:var(--fdInput_Information_Box_Shadow_Hover);box-shadow:var(--fdInput_Information_Box_Shadow_Hover)}.fd-textarea.is-information.is-focus,.fd-textarea.is-information:focus{background:var(--sapField_Focus_Background);outline-color:var(--fdInput_Information_Outline_Color);z-index:5}.fd-textarea.is-information.is-focus.is-hover,.fd-textarea.is-information.is-focus:hover,.fd-textarea.is-information:focus.is-hover,.fd-textarea.is-information:focus:hover{-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-information.is-expanded,.fd-textarea.is-information[aria-expanded=true]{background:var(--sapField_Focus_Background);-webkit-box-shadow:none;box-shadow:none;outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--fdInput_Information_Outline_Color);outline-offset:var(--fdInput_Outline_Offset)}.fd-textarea.is-alert,.fd-textarea.is-error,.fd-textarea.is-warning{font-style:var(--fdInput_State_Text_Style);font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::-webkit-input-placeholder,.fd-textarea.is-error::-webkit-input-placeholder,.fd-textarea.is-warning::-webkit-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::-moz-placeholder,.fd-textarea.is-error::-moz-placeholder,.fd-textarea.is-warning::-moz-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert:-ms-input-placeholder,.fd-textarea.is-error:-ms-input-placeholder,.fd-textarea.is-warning:-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::-ms-input-placeholder,.fd-textarea.is-error::-ms-input-placeholder,.fd-textarea.is-warning::-ms-input-placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert::placeholder,.fd-textarea.is-error::placeholder,.fd-textarea.is-warning::placeholder{font-weight:var(--fdInput_State_Font_Weight)}.fd-textarea.is-alert.is-focus,.fd-textarea.is-alert:focus,.fd-textarea.is-error.is-focus,.fd-textarea.is-error:focus,.fd-textarea.is-information.is-focus,.fd-textarea.is-information:focus,.fd-textarea.is-warning.is-focus,.fd-textarea.is-warning:focus{outline-offset:var(--fdInput_Outline_Offset_States);z-index:5}.fd-textarea.is-error::-webkit-input-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error::-moz-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error:-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error::-ms-input-placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-error::placeholder{color:var(--sapField_TextColor)}.fd-textarea.is-disabled,.fd-textarea:disabled,.fd-textarea[aria-disabled=true]{opacity:var(--sapContent_DisabledOpacity);pointer-events:none}.fd-textarea.is-disabled::-webkit-input-placeholder,.fd-textarea:disabled::-webkit-input-placeholder,.fd-textarea[aria-disabled=true]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled::-moz-placeholder,.fd-textarea:disabled::-moz-placeholder,.fd-textarea[aria-disabled=true]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled:-ms-input-placeholder,.fd-textarea:disabled:-ms-input-placeholder,.fd-textarea[aria-disabled=true]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled::-ms-input-placeholder,.fd-textarea:disabled::-ms-input-placeholder,.fd-textarea[aria-disabled=true]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-disabled::placeholder,.fd-textarea:disabled::placeholder,.fd-textarea[aria-disabled=true]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly,.fd-textarea[aria-readonly=true],.fd-textarea[readonly]{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-readonly::-webkit-input-placeholder,.fd-textarea[aria-readonly=true]::-webkit-input-placeholder,.fd-textarea[readonly]::-webkit-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly::-moz-placeholder,.fd-textarea[aria-readonly=true]::-moz-placeholder,.fd-textarea[readonly]::-moz-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly:-ms-input-placeholder,.fd-textarea[aria-readonly=true]:-ms-input-placeholder,.fd-textarea[readonly]:-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly::-ms-input-placeholder,.fd-textarea[aria-readonly=true]::-ms-input-placeholder,.fd-textarea[readonly]::-ms-input-placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly::placeholder,.fd-textarea[aria-readonly=true]::placeholder,.fd-textarea[readonly]::placeholder{color:var(--fdInput_Non_Interactive_State_Placeholder_Color);opacity:0}.fd-textarea.is-readonly.is-focus,.fd-textarea.is-readonly.is-hover,.fd-textarea.is-readonly:focus,.fd-textarea.is-readonly:hover,.fd-textarea[aria-readonly=true].is-focus,.fd-textarea[aria-readonly=true].is-hover,.fd-textarea[aria-readonly=true]:focus,.fd-textarea[aria-readonly=true]:hover,.fd-textarea[readonly].is-focus,.fd-textarea[readonly].is-hover,.fd-textarea[readonly]:focus,.fd-textarea[readonly]:hover{--fdInput_Outline_Offset:-.25rem;background:var(--sapField_ReadOnly_BackgroundStyle);background-color:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor);-webkit-box-shadow:none;box-shadow:none}.fd-textarea.is-readonly.is-focus,.fd-textarea.is-readonly:focus,.fd-textarea[aria-readonly=true].is-focus,.fd-textarea[aria-readonly=true]:focus,.fd-textarea[readonly].is-focus,.fd-textarea[readonly]:focus{z-index:5}.fd-textarea.is-readonly,.fd-textarea[readonly]{background:var(--sapField_ReadOnly_Background);border:var(--sapField_BorderWidth) dashed var(--sapField_ReadOnly_BorderColor);border-radius:var(--sapField_BorderCornerRadius)}.fd-textarea.is-readonly.is-hover,.fd-textarea.is-readonly:hover,.fd-textarea[readonly].is-hover,.fd-textarea[readonly]:hover{background:var(--sapField_ReadOnly_Background)}.fd-textarea.is-readonly.is-focus,.fd-textarea.is-readonly:focus,.fd-textarea[readonly].is-focus,.fd-textarea[readonly]:focus{background:var(--sapField_ReadOnly_Background);outline-offset:-.25rem;z-index:5}.fd-textarea::-webkit-scrollbar-corner,.fd-textarea::-webkit-scrollbar-track{background:transparent;border-radius:0 var(--sapField_BorderCornerRadius) var(--sapField_BorderCornerRadius) 0!important}.fd-textarea__sr-only{position:absolute;clip:rect(0 0 0 0);border:0;height:1px;margin-block:-1px;margin-inline:-1px;overflow:hidden;padding-block:0;padding-inline:0;white-space:nowrap;width:1px}.fd-textarea[aria-expanded=false]{z-index:0}.fd-textarea.is-expanded,.fd-textarea[aria-expanded=true]{z-index:4}.fd-textarea[class*=-compact],.fd-textarea[class*=-condensed],[class*=-compact] .fd-textarea:not([class*=-cozy]),[class*=-condensed] .fd-textarea:not([class*=-cozy]){margin-block:.1875rem;margin-inline:0;min-height:1.625rem;padding-block:.1875rem;padding-inline:.5rem}.fd-textarea-counter{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapContent_LabelColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-size:var(--sapFontSmallSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;overflow:hidden;padding-block:0;padding-block:.375rem .5rem;padding-inline:0;padding-inline:.125rem;text-align:end;text-overflow:ellipsis;white-space:nowrap}.fd-textarea-counter:after,.fd-textarea-counter:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-textarea-counter.is-disabled,.fd-textarea-counter.is-readonly,.fd-textarea-counter:disabled,.fd-textarea-counter[aria-disabled=true],.fd-textarea-counter[readonly]{display:none}.fd-textarea-counter-container{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-block:.375rem .5rem}.fd-textarea-counter-container:after,.fd-textarea-counter-container:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-textarea-counter-container .fd-textarea-counter{padding-block:0;-webkit-margin-start:auto;margin-inline-start:auto}.fd-textarea--ai{position:relative}.fd-textarea--ai:has(.fd-ai-busy-indicator){padding-block:0;padding-inline:0}.fd-textarea--ai .fd-toolbar--ai{bottom:0;left:0;position:absolute;right:0}.fd-input.is-readonly,.fd-input[aria-readonly=true],.fd-input[readonly],.fd-input.is-readonly.is-hover,.fd-input.is-readonly:hover,.fd-input[aria-readonly=true].is-hover,.fd-input[aria-readonly=true]:hover,.fd-input[readonly].is-hover,.fd-input[readonly]:hover{z-index:1!important}.fd-input.is-readonly.is-focus,.fd-input.is-readonly:focus,.fd-input[aria-readonly=true].is-focus,.fd-input[aria-readonly=true]:focus,.fd-input[readonly].is-focus,.fd-input[readonly]:focus{z-index:1!important}\n/*! Bundled license information:\n\nfundamental-styles/dist/textarea.css:\n (*!\n * Fundamental Library Styles v0.42.0\n * Copyright (c) 2026 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"] }]
|
|
136
|
-
}], ctorParameters: () => [{ type: i0.
|
|
137
|
-
type: Attribute,
|
|
138
|
-
args: ['aria-label']
|
|
139
|
-
}] }, { type: undefined, decorators: [{
|
|
140
|
-
type: Attribute,
|
|
141
|
-
args: ['aria-labelledby']
|
|
142
|
-
}] }], propDecorators: { state: [{
|
|
143
|
-
type: Input
|
|
144
|
-
}], type: [{
|
|
145
|
-
type: HostBinding,
|
|
146
|
-
args: ['attr.type']
|
|
147
|
-
}, {
|
|
148
|
-
type: Input
|
|
149
|
-
}], class: [{
|
|
150
|
-
type: Input
|
|
151
|
-
}], ariaLabel: [{
|
|
152
|
-
type: Input
|
|
153
|
-
}], ariaLabelledBy: [{
|
|
154
|
-
type: Input
|
|
155
|
-
}], buildComponentCssClass: [] } });
|
|
996
|
+
}], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }, { type: i0.Output, args: ["ariaLabelledByChange"] }], ariaLabelAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledByAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], largeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "largeStep", required: false }] }], valuePrecision: [{ type: i0.Input, args: [{ isSignal: true, alias: "valuePrecision", required: false }] }], stepMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepMode", required: false }] }], validationMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "validationMode", required: false }] }], textAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "textAlign", required: false }] }], useGrouping: [{ type: i0.Input, args: [{ isSignal: true, alias: "useGrouping", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], decimalSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimalSeparator", required: false }] }], validationChange: [{ type: i0.Output, args: ["validationChange"] }] } });
|
|
156
997
|
|
|
157
998
|
/**
|
|
158
999
|
* @deprecated
|
|
@@ -719,9 +1560,31 @@ class FormItemComponent {
|
|
|
719
1560
|
}
|
|
720
1561
|
/** @hidden */
|
|
721
1562
|
ngAfterContentInit() {
|
|
722
|
-
if (this.formLabel && this.formItemControl && !this.
|
|
723
|
-
this.
|
|
1563
|
+
if (this.formLabel && this.formItemControl && !this._getAriaLabelledBy()) {
|
|
1564
|
+
this._setAriaLabelledBy(this.formLabel.formLabelId);
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
/** @hidden Reads `ariaLabelledBy` whether the control exposes it as a signal or a plain property. */
|
|
1568
|
+
_getAriaLabelledBy() {
|
|
1569
|
+
const ariaLabelledBy = this.formItemControl?.ariaLabelledBy;
|
|
1570
|
+
return typeof ariaLabelledBy === 'function' ? ariaLabelledBy() : ariaLabelledBy;
|
|
1571
|
+
}
|
|
1572
|
+
/** @hidden Writes `ariaLabelledBy` whether the control exposes it as a writable signal or a plain property. */
|
|
1573
|
+
_setAriaLabelledBy(value) {
|
|
1574
|
+
if (!this.formItemControl) {
|
|
1575
|
+
return;
|
|
724
1576
|
}
|
|
1577
|
+
const ariaLabelledBy = this.formItemControl.ariaLabelledBy;
|
|
1578
|
+
if (this._isWritableSignal(ariaLabelledBy)) {
|
|
1579
|
+
ariaLabelledBy.set(value);
|
|
1580
|
+
}
|
|
1581
|
+
else if (typeof ariaLabelledBy !== 'function') {
|
|
1582
|
+
this.formItemControl.ariaLabelledBy = value;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
/** @hidden Narrows a form-item control field to a writable signal. */
|
|
1586
|
+
_isWritableSignal(value) {
|
|
1587
|
+
return typeof value === 'function' && typeof value.set === 'function';
|
|
725
1588
|
}
|
|
726
1589
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: FormItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
727
1590
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.1", type: FormItemComponent, isStandalone: true, selector: "[fd-form-item]", inputs: { isInline: "isInline", horizontal: "horizontal" }, host: { properties: { "class.fd-form-item--inline": "this.isInline", "class.fd-form-item--horizontal": "this.horizontal", "class.fd-form-item": "this.fdFormItemClass" } }, queries: [{ propertyName: "formLabel", first: true, predicate: FormLabelComponent, descendants: true }, { propertyName: "formItemControl", first: true, predicate: FORM_ITEM_CONTROL, descendants: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [".fd-form-item{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative}.fd-form-item:after,.fd-form-item:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-form-item__label-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.fd-form-item__label-container label{-ms-flex-item-align:center;align-self:center}.fd-form-item__label-container button{-webkit-margin-start:auto;margin-inline-start:auto}.fd-form-item--horizontal{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.fd-form-item--horizontal .fd-form-label{-webkit-padding-after:0;margin-block:auto;margin-inline:0 .25rem;padding-block-end:0}.fd-form-item--horizontal .fd-input{-webkit-box-flex:1;-ms-flex:1;flex:1}.fd-form-item .fd-form-message:not(:first-child){margin-top:-.25rem}.fd-form-item.fd-list__form-item{-webkit-box-flex:initial;-ms-flex:initial;flex:initial}.fd-form-item--horizontal .fd-form-label__wrapper{margin-right:.5rem}[dir=rtl] .fd-form-item--horizontal .fd-form-label__wrapper,.fd-form-item--horizontal .fd-form-label__wrapper[dir=rtl]{margin-left:.5rem;margin-right:0}\n/*! Bundled license information:\n\nfundamental-styles/dist/form-item.css:\n (*!\n * Fundamental Library Styles v0.42.0\n * Copyright (c) 2026 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
@@ -888,12 +1751,12 @@ class PopoverFormMessageService {
|
|
|
888
1751
|
_shouldBeHidden() {
|
|
889
1752
|
return this._hidden || !this._message;
|
|
890
1753
|
}
|
|
891
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PopoverFormMessageService, deps: [{ token: i1
|
|
1754
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PopoverFormMessageService, deps: [{ token: i1.PopoverService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
892
1755
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PopoverFormMessageService }); }
|
|
893
1756
|
}
|
|
894
1757
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PopoverFormMessageService, decorators: [{
|
|
895
1758
|
type: Injectable
|
|
896
|
-
}], ctorParameters: () => [{ type: i1
|
|
1759
|
+
}], ctorParameters: () => [{ type: i1.PopoverService }] });
|
|
897
1760
|
|
|
898
1761
|
/**
|
|
899
1762
|
* @deprecated
|