intl-tel-input 25.10.3 → 25.10.5
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 -13
- package/angular/README.md +1 -1
- package/angular/build/IntlTelInput.js +5 -5
- package/angular/build/IntlTelInputWithUtils.js +5 -5
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/pl/interface.js +1 -3
- package/build/js/intlTelInput.js +6 -6
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +6 -6
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +5 -5
- package/react/build/IntlTelInput.js +5 -5
- package/react/build/IntlTelInputWithUtils.cjs +5 -5
- package/react/build/IntlTelInputWithUtils.js +5 -5
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +2 -2
- package/vue/build/IntlTelInputWithUtils.mjs +2 -2
package/package.json
CHANGED
package/react/README.md
CHANGED
|
@@ -28,7 +28,7 @@ import "intl-tel-input/styles";
|
|
|
28
28
|
|
|
29
29
|
See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/react/demo/validation/ValidationApp.tsx) for a more fleshed-out example of how to handle validation.
|
|
30
30
|
|
|
31
|
-
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.
|
|
31
|
+
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.5/build/js/utils.js"`.
|
|
32
32
|
|
|
33
33
|
## Props
|
|
34
34
|
Here's a list of all of the current props you can pass to the IntlTelInput React component.
|
|
@@ -2638,11 +2638,11 @@ var Iti = class _Iti {
|
|
|
2638
2638
|
const { i18n } = this.options;
|
|
2639
2639
|
const count = this.countryList.childElementCount;
|
|
2640
2640
|
let searchText;
|
|
2641
|
-
if (
|
|
2642
|
-
searchText = i18n.
|
|
2641
|
+
if (count === 0) {
|
|
2642
|
+
searchText = i18n.zeroSearchResults;
|
|
2643
2643
|
} else {
|
|
2644
|
-
if (
|
|
2645
|
-
searchText = i18n.
|
|
2644
|
+
if (i18n.searchResultsText) {
|
|
2645
|
+
searchText = i18n.searchResultsText(count);
|
|
2646
2646
|
} else if (count === 1) {
|
|
2647
2647
|
searchText = i18n.oneSearchResult;
|
|
2648
2648
|
} else {
|
|
@@ -3282,7 +3282,7 @@ var intlTelInput = Object.assign(
|
|
|
3282
3282
|
attachUtils,
|
|
3283
3283
|
startedLoadingUtilsScript: false,
|
|
3284
3284
|
startedLoadingAutoCountry: false,
|
|
3285
|
-
version: "25.10.
|
|
3285
|
+
version: "25.10.5"
|
|
3286
3286
|
}
|
|
3287
3287
|
);
|
|
3288
3288
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -2602,11 +2602,11 @@ var Iti = class _Iti {
|
|
|
2602
2602
|
const { i18n } = this.options;
|
|
2603
2603
|
const count = this.countryList.childElementCount;
|
|
2604
2604
|
let searchText;
|
|
2605
|
-
if (
|
|
2606
|
-
searchText = i18n.
|
|
2605
|
+
if (count === 0) {
|
|
2606
|
+
searchText = i18n.zeroSearchResults;
|
|
2607
2607
|
} else {
|
|
2608
|
-
if (
|
|
2609
|
-
searchText = i18n.
|
|
2608
|
+
if (i18n.searchResultsText) {
|
|
2609
|
+
searchText = i18n.searchResultsText(count);
|
|
2610
2610
|
} else if (count === 1) {
|
|
2611
2611
|
searchText = i18n.oneSearchResult;
|
|
2612
2612
|
} else {
|
|
@@ -3246,7 +3246,7 @@ var intlTelInput = Object.assign(
|
|
|
3246
3246
|
attachUtils,
|
|
3247
3247
|
startedLoadingUtilsScript: false,
|
|
3248
3248
|
startedLoadingAutoCountry: false,
|
|
3249
|
-
version: "25.10.
|
|
3249
|
+
version: "25.10.5"
|
|
3250
3250
|
}
|
|
3251
3251
|
);
|
|
3252
3252
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -2638,11 +2638,11 @@ var Iti = class _Iti {
|
|
|
2638
2638
|
const { i18n } = this.options;
|
|
2639
2639
|
const count = this.countryList.childElementCount;
|
|
2640
2640
|
let searchText;
|
|
2641
|
-
if (
|
|
2642
|
-
searchText = i18n.
|
|
2641
|
+
if (count === 0) {
|
|
2642
|
+
searchText = i18n.zeroSearchResults;
|
|
2643
2643
|
} else {
|
|
2644
|
-
if (
|
|
2645
|
-
searchText = i18n.
|
|
2644
|
+
if (i18n.searchResultsText) {
|
|
2645
|
+
searchText = i18n.searchResultsText(count);
|
|
2646
2646
|
} else if (count === 1) {
|
|
2647
2647
|
searchText = i18n.oneSearchResult;
|
|
2648
2648
|
} else {
|
|
@@ -3282,7 +3282,7 @@ var intlTelInput = Object.assign(
|
|
|
3282
3282
|
attachUtils,
|
|
3283
3283
|
startedLoadingUtilsScript: false,
|
|
3284
3284
|
startedLoadingAutoCountry: false,
|
|
3285
|
-
version: "25.10.
|
|
3285
|
+
version: "25.10.5"
|
|
3286
3286
|
}
|
|
3287
3287
|
);
|
|
3288
3288
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -2602,11 +2602,11 @@ var Iti = class _Iti {
|
|
|
2602
2602
|
const { i18n } = this.options;
|
|
2603
2603
|
const count = this.countryList.childElementCount;
|
|
2604
2604
|
let searchText;
|
|
2605
|
-
if (
|
|
2606
|
-
searchText = i18n.
|
|
2605
|
+
if (count === 0) {
|
|
2606
|
+
searchText = i18n.zeroSearchResults;
|
|
2607
2607
|
} else {
|
|
2608
|
-
if (
|
|
2609
|
-
searchText = i18n.
|
|
2608
|
+
if (i18n.searchResultsText) {
|
|
2609
|
+
searchText = i18n.searchResultsText(count);
|
|
2610
2610
|
} else if (count === 1) {
|
|
2611
2611
|
searchText = i18n.oneSearchResult;
|
|
2612
2612
|
} else {
|
|
@@ -3246,7 +3246,7 @@ var intlTelInput = Object.assign(
|
|
|
3246
3246
|
attachUtils,
|
|
3247
3247
|
startedLoadingUtilsScript: false,
|
|
3248
3248
|
startedLoadingAutoCountry: false,
|
|
3249
|
-
version: "25.10.
|
|
3249
|
+
version: "25.10.5"
|
|
3250
3250
|
}
|
|
3251
3251
|
);
|
|
3252
3252
|
var intl_tel_input_default = intlTelInput;
|
package/vue/README.md
CHANGED
|
@@ -34,7 +34,7 @@ See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master
|
|
|
34
34
|
"vue:demo": "vite --config vue/demo/[demo variant]/vite.config.js"
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.
|
|
37
|
+
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.5/build/js/utils.js"`.
|
|
38
38
|
|
|
39
39
|
## Props
|
|
40
40
|
Here's a list of all of the current props you can pass to the IntlTelInput Vue component.
|
|
@@ -2191,7 +2191,7 @@ class L {
|
|
|
2191
2191
|
_updateSearchResultsA11yText() {
|
|
2192
2192
|
const { i18n: t } = this.options, e = this.countryList.childElementCount;
|
|
2193
2193
|
let i;
|
|
2194
|
-
|
|
2194
|
+
e === 0 ? i = t.zeroSearchResults : t.searchResultsText ? i = t.searchResultsText(e) : e === 1 ? i = t.oneSearchResult : i = t.multipleSearchResults.replace("${count}", e.toString()), this.searchResultsA11yText.textContent = i;
|
|
2195
2195
|
}
|
|
2196
2196
|
//* Highlight the next/prev item in the list (and ensure it is visible).
|
|
2197
2197
|
_handleUpDownKey(t) {
|
|
@@ -2609,7 +2609,7 @@ const Y = (u) => {
|
|
|
2609
2609
|
attachUtils: Y,
|
|
2610
2610
|
startedLoadingUtilsScript: !1,
|
|
2611
2611
|
startedLoadingAutoCountry: !1,
|
|
2612
|
-
version: "25.10.
|
|
2612
|
+
version: "25.10.5"
|
|
2613
2613
|
}
|
|
2614
2614
|
), Z = {
|
|
2615
2615
|
__name: "IntlTelInput",
|
|
@@ -2191,7 +2191,7 @@ class p1 {
|
|
|
2191
2191
|
_updateSearchResultsA11yText() {
|
|
2192
2192
|
const { i18n: e } = this.options, i = this.countryList.childElementCount;
|
|
2193
2193
|
let n;
|
|
2194
|
-
|
|
2194
|
+
i === 0 ? n = e.zeroSearchResults : e.searchResultsText ? n = e.searchResultsText(i) : i === 1 ? n = e.oneSearchResult : n = e.multipleSearchResults.replace("${count}", i.toString()), this.searchResultsA11yText.textContent = n;
|
|
2195
2195
|
}
|
|
2196
2196
|
//* Highlight the next/prev item in the list (and ensure it is visible).
|
|
2197
2197
|
_handleUpDownKey(e) {
|
|
@@ -2609,7 +2609,7 @@ const Z2 = (m) => {
|
|
|
2609
2609
|
attachUtils: Z2,
|
|
2610
2610
|
startedLoadingUtilsScript: !1,
|
|
2611
2611
|
startedLoadingAutoCountry: !1,
|
|
2612
|
-
version: "25.10.
|
|
2612
|
+
version: "25.10.5"
|
|
2613
2613
|
}
|
|
2614
2614
|
);
|
|
2615
2615
|
(function() {
|