ngx-dial-input 2.1.2 → 2.1.3
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 +14 -0
- package/data/countries.model.d.ts +1 -1
- package/esm2020/data/countries.mjs +4 -4
- package/esm2020/data/countries.model.mjs +1 -1
- package/fesm2015/ngx-dial-input.mjs +3 -3
- package/fesm2015/ngx-dial-input.mjs.map +1 -1
- package/fesm2020/ngx-dial-input.mjs +3 -3
- package/fesm2020/ngx-dial-input.mjs.map +1 -1
- package/package.json +34 -6
package/README.md
CHANGED
|
@@ -109,6 +109,20 @@ export class ContactFormComponent {
|
|
|
109
109
|
- Phone matching country's required length: `isValid = true`
|
|
110
110
|
- Phone exceeding max length: `isValid = false`
|
|
111
111
|
|
|
112
|
+
### Length Rules Used by the Component
|
|
113
|
+
- Validation checks `minLength` and `maxLength` from each country entry.
|
|
114
|
+
- `phoneLength` remains in the data model as a compatibility/reference field.
|
|
115
|
+
- Current runtime validity decisions are not based on `phoneLength`.
|
|
116
|
+
|
|
117
|
+
### Syria Example
|
|
118
|
+
```
|
|
119
|
+
Country: Syria (min: 9 digits, max: 10 digits)
|
|
120
|
+
- 8 digits: isValid = false
|
|
121
|
+
- 9 digits: isValid = true
|
|
122
|
+
- 10 digits: isValid = true
|
|
123
|
+
- 11 digits: isValid = false
|
|
124
|
+
```
|
|
125
|
+
|
|
112
126
|
### Example
|
|
113
127
|
```
|
|
114
128
|
Country: United States (min: 10 digits, max: 10 digits)
|