intl-tel-input 29.4.0 → 29.4.1
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/css/intlTelInput-no-assets.css +1 -1
- package/dist/css/intlTelInput-no-assets.min.css +1 -1
- package/dist/css/intlTelInput.css +1 -1
- package/dist/css/intlTelInput.min.css +1 -1
- package/dist/js/data.js +1 -1
- package/dist/js/data.min.js +1 -1
- package/dist/js/intlTelInput.js +9 -7
- package/dist/js/intlTelInput.min.js +2 -2
- package/dist/js/intlTelInput.mjs +8 -6
- package/dist/js/intlTelInputWithUtils.js +9 -7
- package/dist/js/intlTelInputWithUtils.min.js +2 -2
- package/dist/js/intlTelInputWithUtils.mjs +8 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v29.4.
|
|
2
|
+
* International Telephone Input v29.4.1
|
|
3
3
|
* git+https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -3473,7 +3473,7 @@ var _factory = (() => {
|
|
|
3473
3473
|
this.#detachedCountrySelectorEl.remove();
|
|
3474
3474
|
this.#detachedCountrySelectorEl.style.top = "";
|
|
3475
3475
|
this.#detachedCountrySelectorEl.style.bottom = "";
|
|
3476
|
-
this.#detachedCountrySelectorEl.style.height
|
|
3476
|
+
this.#detachedCountrySelectorEl.style.removeProperty("--iti-virtual-keyboard-height");
|
|
3477
3477
|
this.#detachedCountrySelectorEl.style.paddingLeft = "";
|
|
3478
3478
|
this.#detachedCountrySelectorEl.style.paddingRight = "";
|
|
3479
3479
|
} else {
|
|
@@ -3532,14 +3532,16 @@ var _factory = (() => {
|
|
|
3532
3532
|
this.telInputEl.style.anchorName = existing && existing !== "none" ? `${existing}, ${anchorName}` : anchorName;
|
|
3533
3533
|
this.#detachedCountrySelectorEl.style.positionAnchor = anchorName;
|
|
3534
3534
|
}
|
|
3535
|
-
//
|
|
3536
|
-
//
|
|
3535
|
+
// Tell the CSS how much of the fullscreen popup is covered by the virtual keyboard, so it can fit the
|
|
3536
|
+
// country selector above it, while the popup itself (the dark backdrop) stays fullscreen behind the keyboard.
|
|
3537
3537
|
#adjustFullscreenPopupToViewport() {
|
|
3538
3538
|
const vv = window.visualViewport;
|
|
3539
|
-
|
|
3539
|
+
const popup = this.#detachedCountrySelectorEl;
|
|
3540
|
+
if (!vv || !popup) {
|
|
3540
3541
|
return;
|
|
3541
3542
|
}
|
|
3542
|
-
|
|
3543
|
+
const virtualKeyboardHeight = Math.max(0, popup.offsetHeight - vv.height);
|
|
3544
|
+
popup.style.setProperty("--iti-virtual-keyboard-height", `${virtualKeyboardHeight}px`);
|
|
3543
3545
|
}
|
|
3544
3546
|
// UI: Whether the country selector is currently open (visible).
|
|
3545
3547
|
isCountrySelectorOpen() {
|
|
@@ -5009,7 +5011,7 @@ var _factory = (() => {
|
|
|
5009
5011
|
attachUtils,
|
|
5010
5012
|
startedLoadingUtils: false,
|
|
5011
5013
|
startedLoadingAutoCountry: false,
|
|
5012
|
-
version: "29.4.
|
|
5014
|
+
version: "29.4.1",
|
|
5013
5015
|
NUMBER_FORMAT,
|
|
5014
5016
|
NUMBER_TYPE,
|
|
5015
5017
|
VALIDATION_ERROR,
|