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 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)
@@ -5,7 +5,7 @@ export interface CountriesPhoneInputData {
5
5
  dialCode: string;
6
6
  flag: string;
7
7
  format: string;
8
- phoneLength: number;
8
+ phoneLength?: number;
9
9
  minLength: number;
10
10
  maxLength: number;
11
11
  }