myrta-ui 1.1.15 → 1.1.17
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/esm2020/lib/components/form/input-tel/data/all-countries.mjs +229 -229
- package/esm2020/lib/components/form/input-tel/data/country-iso.enum.mjs +247 -247
- package/esm2020/lib/components/form/input-tel/input-tel.component.mjs +19 -10
- package/esm2020/lib/components/form/input-tel/input-tel.module.mjs +1 -1
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/myrta-ui.mjs +722 -713
- package/fesm2015/myrta-ui.mjs.map +1 -1
- package/fesm2020/myrta-ui.mjs +722 -713
- package/fesm2020/myrta-ui.mjs.map +1 -1
- package/lib/components/form/input-tel/data/country-iso.enum.d.ts +1 -1
- package/lib/components/form/input-tel/input-tel.component.d.ts +10 -7
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { ParsedPhoneNumber } from 'awesome-phonenumber';
|
|
3
|
-
import {
|
|
3
|
+
import { CountriesISO } from './data/country-iso.enum';
|
|
4
4
|
import { SearchCountryField } from './data/search-country-field.enum';
|
|
5
5
|
import { PhoneNumberFormatType } from './data/phone-number-format.enum';
|
|
6
6
|
import { Country, InputValue } from './models/country.model';
|
|
@@ -11,6 +11,8 @@ import { InputPhoneValueWithId } from '../input-phone/enums/input-phone.enum';
|
|
|
11
11
|
import { DropdownComponent } from '../../dropdown/dropdown.component';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class InputTelComponent implements ControlValueAccessor, OnInit {
|
|
14
|
+
private _detector;
|
|
15
|
+
private _onlyCountries;
|
|
14
16
|
uuid: string;
|
|
15
17
|
fields: Field[];
|
|
16
18
|
disabled: boolean;
|
|
@@ -19,8 +21,7 @@ export declare class InputTelComponent implements ControlValueAccessor, OnInit {
|
|
|
19
21
|
customClasses: string;
|
|
20
22
|
size: InputTelSizesTypes;
|
|
21
23
|
cssClass: string;
|
|
22
|
-
preferredCountries: (
|
|
23
|
-
onlyCountries: (CountryISO)[];
|
|
24
|
+
preferredCountries: (CountriesISO)[];
|
|
24
25
|
enableAutoCountrySelect: boolean;
|
|
25
26
|
enablePlaceholder: boolean;
|
|
26
27
|
customPlaceholder: string | null;
|
|
@@ -31,10 +32,11 @@ export declare class InputTelComponent implements ControlValueAccessor, OnInit {
|
|
|
31
32
|
selectFirstCountry: boolean;
|
|
32
33
|
phoneValidation: boolean;
|
|
33
34
|
inputId: string;
|
|
34
|
-
selectedCountryISO:
|
|
35
|
+
selectedCountryISO: CountriesISO | null;
|
|
35
36
|
separateDialCode: boolean;
|
|
36
37
|
autoDealCode: boolean;
|
|
37
38
|
autoCloseDropdown: boolean;
|
|
39
|
+
set onlyCountries(val: (CountriesISO)[]);
|
|
38
40
|
invalid: boolean;
|
|
39
41
|
invalidMessage: string | string[];
|
|
40
42
|
invalidPhoneMessage: string;
|
|
@@ -55,13 +57,14 @@ export declare class InputTelComponent implements ControlValueAccessor, OnInit {
|
|
|
55
57
|
parsedPhoneNumber?: ParsedPhoneNumber;
|
|
56
58
|
innerInvalid: boolean;
|
|
57
59
|
innerInvalidMessage: string;
|
|
58
|
-
constructor();
|
|
60
|
+
constructor(_detector: ChangeDetectorRef);
|
|
59
61
|
writeValue(outsideValue: string): void;
|
|
60
62
|
private onChange;
|
|
61
63
|
private onTouched;
|
|
62
64
|
registerOnChange(fn: any): void;
|
|
63
65
|
registerOnTouched(fn: any): void;
|
|
64
66
|
ngOnInit(): void;
|
|
67
|
+
private _initData;
|
|
65
68
|
private _validation;
|
|
66
69
|
get getClasses(): string;
|
|
67
70
|
get isValid(): boolean;
|
|
@@ -86,5 +89,5 @@ export declare class InputTelComponent implements ControlValueAccessor, OnInit {
|
|
|
86
89
|
private _resetValidate;
|
|
87
90
|
updateValue(): void;
|
|
88
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputTelComponent, never>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputTelComponent, "mrx-input-tel", never, { "fields": "fields"; "disabled": "disabled"; "readonly": "readonly"; "maxLength": "maxLength"; "customClasses": "customClasses"; "size": "size"; "cssClass": "cssClass"; "preferredCountries": "preferredCountries"; "
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputTelComponent, "mrx-input-tel", never, { "fields": "fields"; "disabled": "disabled"; "readonly": "readonly"; "maxLength": "maxLength"; "customClasses": "customClasses"; "size": "size"; "cssClass": "cssClass"; "preferredCountries": "preferredCountries"; "enableAutoCountrySelect": "enableAutoCountrySelect"; "enablePlaceholder": "enablePlaceholder"; "customPlaceholder": "customPlaceholder"; "numberFormat": "numberFormat"; "searchCountryFlag": "searchCountryFlag"; "searchCountryField": "searchCountryField"; "searchCountryPlaceholder": "searchCountryPlaceholder"; "selectFirstCountry": "selectFirstCountry"; "phoneValidation": "phoneValidation"; "inputId": "inputId"; "selectedCountryISO": "selectedCountryISO"; "separateDialCode": "separateDialCode"; "autoDealCode": "autoDealCode"; "autoCloseDropdown": "autoCloseDropdown"; "onlyCountries": "onlyCountries"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "invalidPhoneMessage": "invalidPhoneMessage"; "checkInvalid": "checkInvalid"; }, { "changed": "changed"; "modelChange": "modelChange"; }, never, never>;
|
|
90
93
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -174,3 +174,5 @@ export * from './lib/helpers/index';
|
|
|
174
174
|
export * from './lib/models/index';
|
|
175
175
|
export * from './lib/components/form/input-tel/input-tel.module';
|
|
176
176
|
export * from './lib/components/form/input-tel/input-tel.component';
|
|
177
|
+
export * from './lib/components/form/input-tel/data/all-countries';
|
|
178
|
+
export * from './lib/components/form/input-tel/data/country-iso.enum';
|