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