feat: update environment configuration and ngsw settings; refactor input handling and layout components for improved functionality

This commit is contained in:
2026-05-16 21:17:51 +03:30
parent 29c5c50d62
commit 5098c26c96
10 changed files with 40 additions and 28 deletions
@@ -243,6 +243,9 @@ export class InputComponent {
}
onInput($event: Event, isPriceFormat?: boolean) {
if ((this.inputMode !== 'numeric' && this.inputMode !== 'decimal') || !isPriceFormat) {
return;
}
const target = $event.target as HTMLInputElement | null;
if (!target) return;
@@ -280,7 +283,8 @@ export class InputComponent {
value = this.lastValidNumericValue;
numericValue = Number.isNaN(parseFloat(value)) ? 0 : parseFloat(value);
const isIdentifierField = ['mobile', 'phone', 'postalCode', 'nationalId'].includes(this.type);
// const isIdentifierField = ['mobile', 'phone', 'postalCode', 'nationalId'].includes(this.type);
const isIdentifierField = !this.numericValue;
const restoredControlValue = isIdentifierField ? value : value === '' ? '' : numericValue;
this.control.setValue(restoredControlValue);