ngx-mat-input-tel 17.2.0 → 17.3.0
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/README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
# International Telephone Input for Angular Material (ngxMatInputTel)
|
|
2
2
|
An Angular Material package for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.
|
|
3
3
|
|
|
4
|
-
[](https://www.npmjs.com/package/ngx-mat-input-tel)
|
|
4
|
+
[](https://www.npmjs.com/package/ngx-mat-input-tel)
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
5
8
|
|
|
6
9
|
## Demo
|
|
7
10
|
- https://stackblitz.com/~/github.com/rbalet/ngx-mat-input-tel
|
|
@@ -94,15 +97,16 @@ If you want to show the sample number for the country selected or errors , use m
|
|
|
94
97
|
|
|
95
98
|
## Options
|
|
96
99
|
|
|
97
|
-
| Options | Type | Default
|
|
98
|
-
| ------------------ | ---------- |
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
100
|
+
| Options | Type | Default | Description |
|
|
101
|
+
| ------------------ | ---------- | ------------ | ----------------------------------------------------------------------------------- |
|
|
102
|
+
| enablePlaceholder | `boolean` | `true` | Input placeholder text, which adapts to the country selected. |
|
|
103
|
+
| enableSearch | `boolean` | `false` | Whether to display a search bar to help filter down the list of countries |
|
|
104
|
+
| format | `string` | `default` | Format of "as you type" input. Possible values: national, international, default |
|
|
105
|
+
| inputPlaceholder | `string` | `undefined` | Placeholder for the input component. |
|
|
106
|
+
| onlyCountries | `string[]` | `[]` | List of manually selected country abbreviations, which will appear in the dropdown. |
|
|
107
|
+
| preferredCountries | `string[]` | `[]` | List of country abbreviations, which will appear at the top. |
|
|
108
|
+
| resetOnChange | `boolean` | `false` | Reset input on country change |
|
|
109
|
+
| searchPlaceholder | `string` | `Search ...` | Placeholder for the search input |
|
|
106
110
|
|
|
107
111
|
## Css variable
|
|
108
112
|
| Name | Default | Explanation |
|