From b7965ea4b153214be92e890f03c78289c19243ae Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Tue, 22 Jul 2025 13:42:12 +0000 Subject: [PATCH 1/3] remove unused phone number settings --- backend/src/entities/demo-data/demo-data.service.ts | 2 +- .../record-edit-fields/phone/phone.component.ts | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/backend/src/entities/demo-data/demo-data.service.ts b/backend/src/entities/demo-data/demo-data.service.ts index e5ad18184..ce15f7349 100644 --- a/backend/src/entities/demo-data/demo-data.service.ts +++ b/backend/src/entities/demo-data/demo-data.service.ts @@ -472,7 +472,7 @@ export class DemoDataService { name: '', description: '', widget_params: - '// Configure international phone number widget\n// example:\n{\n "preferred_countries": ["US", "GB", "CA"],\n "enable_placeholder": true,\n "enable_auto_country_select": true,\n "phone_validation": true,\n "format": "international"\n}\n', + '// Configure international phone number widget\n// example:\n{\n "preferred_countries": ["US", "GB", "CA"],\n "enable_placeholder": true,\n "phone_validation": true\n}\n', widget_options: null, }, { diff --git a/frontend/src/app/components/ui-components/record-edit-fields/phone/phone.component.ts b/frontend/src/app/components/ui-components/record-edit-fields/phone/phone.component.ts index d9d1caf9d..52cf71229 100644 --- a/frontend/src/app/components/ui-components/record-edit-fields/phone/phone.component.ts +++ b/frontend/src/app/components/ui-components/record-edit-fields/phone/phone.component.ts @@ -1,11 +1,10 @@ -import { AsYouType, CountryCode as LibPhoneCountryCode, getCountries, getCountryCallingCode, parsePhoneNumber } from 'libphonenumber-js'; -import { Component, Injectable, Input, OnInit } from '@angular/core'; +import { AsYouType, CountryCode as LibPhoneCountryCode, parsePhoneNumber } from 'libphonenumber-js'; +import { Component, Input, OnInit } from '@angular/core'; import { Observable, map, startWith } from 'rxjs'; import { BaseEditFieldComponent } from '../base-row-field/base-row-field.component'; import { CommonModule } from '@angular/common'; import { FormControl } from '@angular/forms'; -import { FormsModule } from '@angular/forms'; import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; @@ -19,13 +18,11 @@ interface CountryCode { flag: string; } -@Injectable() - @Component({ selector: 'app-edit-phone', templateUrl: './phone.component.html', styleUrls: ['./phone.component.css'], - imports: [CommonModule, MatFormFieldModule, MatInputModule, MatSelectModule, MatAutocompleteModule, FormsModule, ReactiveFormsModule] + imports: [CommonModule, MatFormFieldModule, MatInputModule, MatSelectModule, MatAutocompleteModule, ReactiveFormsModule] }) export class PhoneEditComponent extends BaseEditFieldComponent implements OnInit { @Input() value: string = ''; From ea6a78b347aeac70df277b0fd977c7448c2cbf1a Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Tue, 22 Jul 2025 14:24:57 +0000 Subject: [PATCH 2/3] remove unused options --- backend/src/entities/demo-data/demo-data.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/entities/demo-data/demo-data.service.ts b/backend/src/entities/demo-data/demo-data.service.ts index e5ad18184..ce15f7349 100644 --- a/backend/src/entities/demo-data/demo-data.service.ts +++ b/backend/src/entities/demo-data/demo-data.service.ts @@ -472,7 +472,7 @@ export class DemoDataService { name: '', description: '', widget_params: - '// Configure international phone number widget\n// example:\n{\n "preferred_countries": ["US", "GB", "CA"],\n "enable_placeholder": true,\n "enable_auto_country_select": true,\n "phone_validation": true,\n "format": "international"\n}\n', + '// Configure international phone number widget\n// example:\n{\n "preferred_countries": ["US", "GB", "CA"],\n "enable_placeholder": true,\n "phone_validation": true\n}\n', widget_options: null, }, { From 7de6c0d80c43ac1a1056b6454359f1adc7ccaf09 Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Tue, 22 Jul 2025 14:34:15 +0000 Subject: [PATCH 3/3] revert unrelated changes --- .../record-edit-fields/phone/phone.component.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/ui-components/record-edit-fields/phone/phone.component.ts b/frontend/src/app/components/ui-components/record-edit-fields/phone/phone.component.ts index 52cf71229..d9d1caf9d 100644 --- a/frontend/src/app/components/ui-components/record-edit-fields/phone/phone.component.ts +++ b/frontend/src/app/components/ui-components/record-edit-fields/phone/phone.component.ts @@ -1,10 +1,11 @@ -import { AsYouType, CountryCode as LibPhoneCountryCode, parsePhoneNumber } from 'libphonenumber-js'; -import { Component, Input, OnInit } from '@angular/core'; +import { AsYouType, CountryCode as LibPhoneCountryCode, getCountries, getCountryCallingCode, parsePhoneNumber } from 'libphonenumber-js'; +import { Component, Injectable, Input, OnInit } from '@angular/core'; import { Observable, map, startWith } from 'rxjs'; import { BaseEditFieldComponent } from '../base-row-field/base-row-field.component'; import { CommonModule } from '@angular/common'; import { FormControl } from '@angular/forms'; +import { FormsModule } from '@angular/forms'; import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; @@ -18,11 +19,13 @@ interface CountryCode { flag: string; } +@Injectable() + @Component({ selector: 'app-edit-phone', templateUrl: './phone.component.html', styleUrls: ['./phone.component.css'], - imports: [CommonModule, MatFormFieldModule, MatInputModule, MatSelectModule, MatAutocompleteModule, ReactiveFormsModule] + imports: [CommonModule, MatFormFieldModule, MatInputModule, MatSelectModule, MatAutocompleteModule, FormsModule, ReactiveFormsModule] }) export class PhoneEditComponent extends BaseEditFieldComponent implements OnInit { @Input() value: string = '';