lite-phone-input 0.2.0 → 0.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.
@@ -10,6 +10,8 @@ interface Country {
10
10
  minLength: number;
11
11
  maxLength: number;
12
12
  priority: number;
13
+ displayNationalPrefix: boolean;
14
+ exampleNumber: string | null;
13
15
  }
14
16
  interface ValidationResult {
15
17
  valid: boolean;
@@ -27,6 +29,7 @@ interface PhoneInputOptions {
27
29
  formatAsYouType?: boolean;
28
30
  strict?: boolean;
29
31
  separateDialCode?: boolean;
32
+ nationalMode?: boolean;
30
33
  placeholder?: string | 'auto';
31
34
  disabled?: boolean;
32
35
  locale?: string;
@@ -53,6 +56,7 @@ declare class PhoneInput {
53
56
  private selectedCountry;
54
57
  private nationalDigits;
55
58
  private displayInternational;
59
+ private get isNationalInput();
56
60
  private lastValidation;
57
61
  private dropdown;
58
62
  private ac;
@@ -94,6 +98,10 @@ declare class PhoneInput {
94
98
  private extractNationalFromFull;
95
99
  private stripNationalPrefix;
96
100
  private formatNationalValue;
101
+ /** Returns true if national prefix should be prepended to display in nationalMode */
102
+ private get shouldPrependPrefix();
103
+ private formatNationalDisplay;
104
+ private getNationalCursor;
97
105
  private formatFullValue;
98
106
  private updateFlag;
99
107
  private updateDialCodeDisplay;
@@ -10,6 +10,8 @@ interface Country {
10
10
  minLength: number;
11
11
  maxLength: number;
12
12
  priority: number;
13
+ displayNationalPrefix: boolean;
14
+ exampleNumber: string | null;
13
15
  }
14
16
  interface ValidationResult {
15
17
  valid: boolean;
@@ -27,6 +29,7 @@ interface PhoneInputOptions {
27
29
  formatAsYouType?: boolean;
28
30
  strict?: boolean;
29
31
  separateDialCode?: boolean;
32
+ nationalMode?: boolean;
30
33
  placeholder?: string | 'auto';
31
34
  disabled?: boolean;
32
35
  locale?: string;
@@ -53,6 +56,7 @@ declare class PhoneInput {
53
56
  private selectedCountry;
54
57
  private nationalDigits;
55
58
  private displayInternational;
59
+ private get isNationalInput();
56
60
  private lastValidation;
57
61
  private dropdown;
58
62
  private ac;
@@ -94,6 +98,10 @@ declare class PhoneInput {
94
98
  private extractNationalFromFull;
95
99
  private stripNationalPrefix;
96
100
  private formatNationalValue;
101
+ /** Returns true if national prefix should be prepended to display in nationalMode */
102
+ private get shouldPrependPrefix();
103
+ private formatNationalDisplay;
104
+ private getNationalCursor;
97
105
  private formatFullValue;
98
106
  private updateFlag;
99
107
  private updateDialCodeDisplay;