asksuite-citrus 3.11.3-beta3 → 3.11.3-beta5
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/esm2022/lib/components/phone-ddi/phone-ddi.component.mjs +8 -6
- package/esm2022/shared/services/country-flag.service.mjs +13 -11
- package/fesm2022/asksuite-citrus.mjs +19 -15
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/components/phone-ddi/phone-ddi.component.d.ts +3 -2
- package/package.json +1 -1
- package/shared/services/country-flag.service.d.ts +2 -2
@@ -11,6 +11,7 @@ export declare class PhoneDdiComponent extends OverlayComponent implements OnIni
|
|
11
11
|
disabled: boolean;
|
12
12
|
value: string;
|
13
13
|
useLocationApi: boolean;
|
14
|
+
useCountryCode: string;
|
14
15
|
valueChange: EventEmitter<string>;
|
15
16
|
onChangeFlag: EventEmitter<CountryData>;
|
16
17
|
phoneContainer: ElementRef | undefined;
|
@@ -45,9 +46,9 @@ export declare class PhoneDdiComponent extends OverlayComponent implements OnIni
|
|
45
46
|
protected readonly filterFn: (search: string) => CountryData[];
|
46
47
|
private addAvailableFlags;
|
47
48
|
private initSelectedFlag;
|
48
|
-
private
|
49
|
+
private getDefaultCountryFlag;
|
49
50
|
private handleInputChange;
|
50
51
|
handlePhoneChange(event: any): void;
|
51
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneDdiComponent, never>;
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneDdiComponent, "ask-phone-ddi", never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "useLocationApi": { "alias": "useLocationApi"; "required": false; }; }, { "valueChange": "valueChange"; "onChangeFlag": "onChangeFlag"; }, never, never, false, never>;
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneDdiComponent, "ask-phone-ddi", never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "useLocationApi": { "alias": "useLocationApi"; "required": false; }; "useCountryCode": { "alias": "useCountryCode"; "required": false; }; }, { "valueChange": "valueChange"; "onChangeFlag": "onChangeFlag"; }, never, never, false, never>;
|
53
54
|
}
|
package/package.json
CHANGED
@@ -11,12 +11,12 @@ export default class CountryFlagService {
|
|
11
11
|
private defaultCountryCode;
|
12
12
|
private defaultCountryLanguage;
|
13
13
|
private cacheList;
|
14
|
-
private countryCodeByLocation;
|
15
14
|
constructor(flagUrl: string, http: HttpClient, translateService: TranslateService, locationApiService: LocationApiService);
|
16
15
|
list: () => import("rxjs").Observable<CountryData[]>;
|
17
|
-
getDefaultCountryFlag(searchData: CountryData[],
|
16
|
+
getDefaultCountryFlag(searchData: CountryData[], useCountryCode?: string): CountryData;
|
18
17
|
getCountryDataForFlag(searchData: CountryData[], countryCode: string): CountryData;
|
19
18
|
private getDefaultCountryLanguage;
|
19
|
+
private findCountryCode;
|
20
20
|
private extractCountryCode;
|
21
21
|
private formatCountryData;
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<CountryFlagService, never>;
|