@intl-tel-input/angular 29.0.1 → 29.0.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/dist/IntlTelInput.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ declare class IntlTelInput implements AfterViewInit, OnDestroy, OnChanges, Contr
|
|
|
77
77
|
ngAfterViewInit(): void;
|
|
78
78
|
private buildInitOptions;
|
|
79
79
|
ngOnChanges(changes: SimpleChanges): void;
|
|
80
|
-
handleInput()
|
|
80
|
+
handleInput: () => void;
|
|
81
81
|
handleBlur(event: FocusEvent): void;
|
|
82
82
|
handleFocus(event: FocusEvent): void;
|
|
83
83
|
handleKeyDown(event: KeyboardEvent): void;
|
package/dist/IntlTelInput.js
CHANGED
|
@@ -3997,6 +3997,7 @@ var Iti = class _Iti {
|
|
|
3997
3997
|
}
|
|
3998
3998
|
if (this.#updateCountryFromNumber(inputValue)) {
|
|
3999
3999
|
this.#dispatchCountryChangeEvent();
|
|
4000
|
+
this.#dispatchEvent(EVENTS.INPUT, { isCountryChange: true });
|
|
4000
4001
|
}
|
|
4001
4002
|
const isFormattingChar = !isStrictPaste && e?.data && REGEX.NON_PLUS_NUMERIC.test(e.data);
|
|
4002
4003
|
const isNonStrictPaste = isPaste && inputValue && !strictMode;
|
|
@@ -4819,7 +4820,7 @@ var intlTelInput = Object.assign(
|
|
|
4819
4820
|
attachUtils,
|
|
4820
4821
|
startedLoadingUtils: false,
|
|
4821
4822
|
startedLoadingAutoCountry: false,
|
|
4822
|
-
version: "29.0.
|
|
4823
|
+
version: "29.0.3",
|
|
4823
4824
|
NUMBER_FORMAT,
|
|
4824
4825
|
NUMBER_TYPE,
|
|
4825
4826
|
VALIDATION_ERROR,
|
|
@@ -4917,6 +4918,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
4917
4918
|
ngAfterViewInit() {
|
|
4918
4919
|
this.iti = intlTelInput_default(this.inputRef.nativeElement, this.buildInitOptions());
|
|
4919
4920
|
this.libraryInputClasses = this.inputRef.nativeElement.className;
|
|
4921
|
+
this.inputRef.nativeElement.addEventListener("input", this.handleInput);
|
|
4920
4922
|
this.inputRef.nativeElement.addEventListener("open:countryselector", this.handleOpenCountrySelector);
|
|
4921
4923
|
this.inputRef.nativeElement.addEventListener("close:countryselector", this.handleCloseCountrySelector);
|
|
4922
4924
|
this.inputRef.nativeElement.addEventListener("strict:reject", this.handleStrictReject);
|
|
@@ -4990,7 +4992,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
4990
4992
|
this.applyInputAttrs();
|
|
4991
4993
|
}
|
|
4992
4994
|
}
|
|
4993
|
-
handleInput() {
|
|
4995
|
+
handleInput = () => {
|
|
4994
4996
|
if (!this.iti) {
|
|
4995
4997
|
return;
|
|
4996
4998
|
}
|
|
@@ -5027,7 +5029,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
5027
5029
|
if (hasChanged) {
|
|
5028
5030
|
this.onValidatorChange();
|
|
5029
5031
|
}
|
|
5030
|
-
}
|
|
5032
|
+
};
|
|
5031
5033
|
handleBlur(event) {
|
|
5032
5034
|
this.onTouched();
|
|
5033
5035
|
this.blur.emit(event);
|
|
@@ -5062,6 +5064,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
5062
5064
|
return this.inputRef.nativeElement;
|
|
5063
5065
|
}
|
|
5064
5066
|
ngOnDestroy() {
|
|
5067
|
+
this.inputRef.nativeElement.removeEventListener("input", this.handleInput);
|
|
5065
5068
|
this.inputRef.nativeElement.removeEventListener("open:countryselector", this.handleOpenCountrySelector);
|
|
5066
5069
|
this.inputRef.nativeElement.removeEventListener("close:countryselector", this.handleCloseCountrySelector);
|
|
5067
5070
|
this.inputRef.nativeElement.removeEventListener("strict:reject", this.handleStrictReject);
|
|
@@ -5153,12 +5156,10 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
5153
5156
|
useExisting: forwardRef(() => _IntlTelInput),
|
|
5154
5157
|
multi: true
|
|
5155
5158
|
}
|
|
5156
|
-
]), i0.\u0275\u0275NgOnChangesFeature], decls: 2, vars: 0, consts: [["inputRef", ""], ["type", "tel", 3, "
|
|
5159
|
+
]), i0.\u0275\u0275NgOnChangesFeature], decls: 2, vars: 0, consts: [["inputRef", ""], ["type", "tel", 3, "blur", "focus", "keydown", "keyup", "paste", "click"]], template: function IntlTelInput_Template(rf, ctx) {
|
|
5157
5160
|
if (rf & 1) {
|
|
5158
5161
|
i0.\u0275\u0275domElementStart(0, "input", 1, 0);
|
|
5159
|
-
i0.\u0275\u0275domListener("
|
|
5160
|
-
return ctx.handleInput();
|
|
5161
|
-
})("blur", function IntlTelInput_Template_input_blur_0_listener($event) {
|
|
5162
|
+
i0.\u0275\u0275domListener("blur", function IntlTelInput_Template_input_blur_0_listener($event) {
|
|
5162
5163
|
return ctx.handleBlur($event);
|
|
5163
5164
|
})("focus", function IntlTelInput_Template_input_focus_0_listener($event) {
|
|
5164
5165
|
return ctx.handleFocus($event);
|
|
@@ -5185,7 +5186,6 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
5185
5186
|
<input
|
|
5186
5187
|
type="tel"
|
|
5187
5188
|
#inputRef
|
|
5188
|
-
(input)="handleInput()"
|
|
5189
5189
|
(blur)="handleBlur($event)"
|
|
5190
5190
|
(focus)="handleFocus($event)"
|
|
5191
5191
|
(keydown)="handleKeyDown($event)"
|
|
@@ -5307,7 +5307,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
5307
5307
|
}] });
|
|
5308
5308
|
})();
|
|
5309
5309
|
(() => {
|
|
5310
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.\u0275setClassDebugInfo(IntlTelInput, { className: "IntlTelInput", filePath: "IntlTelInput.ts", lineNumber:
|
|
5310
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.\u0275setClassDebugInfo(IntlTelInput, { className: "IntlTelInput", filePath: "IntlTelInput.ts", lineNumber: 71 });
|
|
5311
5311
|
})();
|
|
5312
5312
|
var IntlTelInput_default = IntlTelInput;
|
|
5313
5313
|
export {
|
|
@@ -3997,6 +3997,7 @@ var Iti = class _Iti {
|
|
|
3997
3997
|
}
|
|
3998
3998
|
if (this.#updateCountryFromNumber(inputValue)) {
|
|
3999
3999
|
this.#dispatchCountryChangeEvent();
|
|
4000
|
+
this.#dispatchEvent(EVENTS.INPUT, { isCountryChange: true });
|
|
4000
4001
|
}
|
|
4001
4002
|
const isFormattingChar = !isStrictPaste && e?.data && REGEX.NON_PLUS_NUMERIC.test(e.data);
|
|
4002
4003
|
const isNonStrictPaste = isPaste && inputValue && !strictMode;
|
|
@@ -4819,7 +4820,7 @@ var intlTelInput = Object.assign(
|
|
|
4819
4820
|
attachUtils,
|
|
4820
4821
|
startedLoadingUtils: false,
|
|
4821
4822
|
startedLoadingAutoCountry: false,
|
|
4822
|
-
version: "29.0.
|
|
4823
|
+
version: "29.0.3",
|
|
4823
4824
|
NUMBER_FORMAT,
|
|
4824
4825
|
NUMBER_TYPE,
|
|
4825
4826
|
VALIDATION_ERROR,
|
|
@@ -11198,6 +11199,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11198
11199
|
ngAfterViewInit() {
|
|
11199
11200
|
this.iti = intlTelInput_default(this.inputRef.nativeElement, this.buildInitOptions());
|
|
11200
11201
|
this.libraryInputClasses = this.inputRef.nativeElement.className;
|
|
11202
|
+
this.inputRef.nativeElement.addEventListener("input", this.handleInput);
|
|
11201
11203
|
this.inputRef.nativeElement.addEventListener("open:countryselector", this.handleOpenCountrySelector);
|
|
11202
11204
|
this.inputRef.nativeElement.addEventListener("close:countryselector", this.handleCloseCountrySelector);
|
|
11203
11205
|
this.inputRef.nativeElement.addEventListener("strict:reject", this.handleStrictReject);
|
|
@@ -11271,7 +11273,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11271
11273
|
this.applyInputAttrs();
|
|
11272
11274
|
}
|
|
11273
11275
|
}
|
|
11274
|
-
handleInput() {
|
|
11276
|
+
handleInput = () => {
|
|
11275
11277
|
if (!this.iti) {
|
|
11276
11278
|
return;
|
|
11277
11279
|
}
|
|
@@ -11308,7 +11310,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11308
11310
|
if (hasChanged) {
|
|
11309
11311
|
this.onValidatorChange();
|
|
11310
11312
|
}
|
|
11311
|
-
}
|
|
11313
|
+
};
|
|
11312
11314
|
handleBlur(event) {
|
|
11313
11315
|
this.onTouched();
|
|
11314
11316
|
this.blur.emit(event);
|
|
@@ -11343,6 +11345,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11343
11345
|
return this.inputRef.nativeElement;
|
|
11344
11346
|
}
|
|
11345
11347
|
ngOnDestroy() {
|
|
11348
|
+
this.inputRef.nativeElement.removeEventListener("input", this.handleInput);
|
|
11346
11349
|
this.inputRef.nativeElement.removeEventListener("open:countryselector", this.handleOpenCountrySelector);
|
|
11347
11350
|
this.inputRef.nativeElement.removeEventListener("close:countryselector", this.handleCloseCountrySelector);
|
|
11348
11351
|
this.inputRef.nativeElement.removeEventListener("strict:reject", this.handleStrictReject);
|
|
@@ -11434,12 +11437,10 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11434
11437
|
useExisting: forwardRef(() => _IntlTelInput),
|
|
11435
11438
|
multi: true
|
|
11436
11439
|
}
|
|
11437
|
-
]), i0.\u0275\u0275NgOnChangesFeature], decls: 2, vars: 0, consts: [["inputRef", ""], ["type", "tel", 3, "
|
|
11440
|
+
]), i0.\u0275\u0275NgOnChangesFeature], decls: 2, vars: 0, consts: [["inputRef", ""], ["type", "tel", 3, "blur", "focus", "keydown", "keyup", "paste", "click"]], template: function IntlTelInput_Template(rf, ctx) {
|
|
11438
11441
|
if (rf & 1) {
|
|
11439
11442
|
i0.\u0275\u0275domElementStart(0, "input", 1, 0);
|
|
11440
|
-
i0.\u0275\u0275domListener("
|
|
11441
|
-
return ctx.handleInput();
|
|
11442
|
-
})("blur", function IntlTelInput_Template_input_blur_0_listener($event) {
|
|
11443
|
+
i0.\u0275\u0275domListener("blur", function IntlTelInput_Template_input_blur_0_listener($event) {
|
|
11443
11444
|
return ctx.handleBlur($event);
|
|
11444
11445
|
})("focus", function IntlTelInput_Template_input_focus_0_listener($event) {
|
|
11445
11446
|
return ctx.handleFocus($event);
|
|
@@ -11466,7 +11467,6 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11466
11467
|
<input
|
|
11467
11468
|
type="tel"
|
|
11468
11469
|
#inputRef
|
|
11469
|
-
(input)="handleInput()"
|
|
11470
11470
|
(blur)="handleBlur($event)"
|
|
11471
11471
|
(focus)="handleFocus($event)"
|
|
11472
11472
|
(keydown)="handleKeyDown($event)"
|
|
@@ -11588,7 +11588,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11588
11588
|
}] });
|
|
11589
11589
|
})();
|
|
11590
11590
|
(() => {
|
|
11591
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.\u0275setClassDebugInfo(IntlTelInput, { className: "IntlTelInput", filePath: "IntlTelInput.ts", lineNumber:
|
|
11591
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.\u0275setClassDebugInfo(IntlTelInput, { className: "IntlTelInput", filePath: "IntlTelInput.ts", lineNumber: 71 });
|
|
11592
11592
|
})();
|
|
11593
11593
|
var IntlTelInput_default = IntlTelInput;
|
|
11594
11594
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intl-tel-input/angular",
|
|
3
|
-
"version": "29.0.
|
|
3
|
+
"version": "29.0.3",
|
|
4
4
|
"description": "An Angular component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"intl-tel-input": "^29.0.
|
|
37
|
+
"intl-tel-input": "^29.0.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@angular/common": ">=17",
|