vue-tel-input 6.0.0-beta.5 → 6.0.0-beta.6
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.
|
@@ -5160,7 +5160,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
5160
5160
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
5161
5161
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
5162
5162
|
|
|
5163
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/vue-tel-input.vue?vue&type=template&id=
|
|
5163
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/vue-tel-input.vue?vue&type=template&id=e63ac01c
|
|
5164
5164
|
|
|
5165
5165
|
|
|
5166
5166
|
var _hoisted_1 = {
|
|
@@ -5184,20 +5184,28 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5184
5184
|
disabled: $props.disabled
|
|
5185
5185
|
}]
|
|
5186
5186
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
5187
|
+
"aria-label": "Country Code Selector",
|
|
5188
|
+
"aria-haspopup": "listbox",
|
|
5189
|
+
"aria-expanded": $data.open,
|
|
5190
|
+
role: "button",
|
|
5187
5191
|
class: ['vti__dropdown', {
|
|
5188
5192
|
open: $data.open,
|
|
5189
5193
|
disabled: $props.dropdownOptions.disabled
|
|
5190
5194
|
}],
|
|
5191
5195
|
tabindex: $props.dropdownOptions.tabindex,
|
|
5192
|
-
onKeydown: [_cache[
|
|
5196
|
+
onKeydown: [_cache[1] || (_cache[1] = function () {
|
|
5193
5197
|
return $options.keyboardNav && $options.keyboardNav.apply($options, arguments);
|
|
5194
|
-
}), _cache[
|
|
5198
|
+
}), _cache[3] || (_cache[3] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withKeys"])(function () {
|
|
5199
|
+
return $options.toggleDropdown && $options.toggleDropdown.apply($options, arguments);
|
|
5200
|
+
}, ["space"])), _cache[4] || (_cache[4] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withKeys"])(function () {
|
|
5201
|
+
return $options.reset && $options.reset.apply($options, arguments);
|
|
5202
|
+
}, ["esc"])), _cache[5] || (_cache[5] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withKeys"])(function () {
|
|
5195
5203
|
return $options.reset && $options.reset.apply($options, arguments);
|
|
5196
|
-
}, ["
|
|
5197
|
-
onClick: _cache[
|
|
5204
|
+
}, ["tab"]))],
|
|
5205
|
+
onClick: _cache[2] || (_cache[2] = function () {
|
|
5198
5206
|
return $options.toggleDropdown && $options.toggleDropdown.apply($options, arguments);
|
|
5199
5207
|
})
|
|
5200
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", _hoisted_1, [$props.dropdownOptions.showFlags ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("
|
|
5208
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", _hoisted_1, [$props.dropdownOptions.showFlags ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", {
|
|
5201
5209
|
key: 0,
|
|
5202
5210
|
class: ['vti__flag', $data.activeCountryCode.toLowerCase()]
|
|
5203
5211
|
}, null, 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), $props.dropdownOptions.showDialCodeInSelection ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", _hoisted_2, " +" + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])($options.activeCountry && $options.activeCountry.dialCode), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "arrow-icon", {
|
|
@@ -5207,23 +5215,27 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5207
5215
|
})]), $data.open ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("ul", {
|
|
5208
5216
|
key: 0,
|
|
5209
5217
|
ref: "list",
|
|
5210
|
-
class: ["vti__dropdown-list", $data.dropdownOpenDirection]
|
|
5211
|
-
|
|
5218
|
+
class: ["vti__dropdown-list", $data.dropdownOpenDirection],
|
|
5219
|
+
role: "listbox"
|
|
5220
|
+
}, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])($options.sortedCountries, function (pb, index) {
|
|
5212
5221
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("li", {
|
|
5222
|
+
role: "option",
|
|
5213
5223
|
class: ['vti__dropdown-item', $options.getItemClass(index, pb.iso2)],
|
|
5214
5224
|
key: pb.iso2 + (pb.preferred ? '-preferred' : ''),
|
|
5225
|
+
tabindex: "-1",
|
|
5215
5226
|
onClick: function onClick($event) {
|
|
5216
5227
|
return $options.choose(pb);
|
|
5217
5228
|
},
|
|
5218
5229
|
onMousemove: function onMousemove($event) {
|
|
5219
5230
|
return $data.selectedIndex = index;
|
|
5220
|
-
}
|
|
5221
|
-
|
|
5231
|
+
},
|
|
5232
|
+
"aria-selected": $data.activeCountryCode === pb.iso2 && !pb.preferred
|
|
5233
|
+
}, [$props.dropdownOptions.showFlags ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", {
|
|
5222
5234
|
key: 0,
|
|
5223
5235
|
class: ['vti__flag', pb.iso2.toLowerCase()]
|
|
5224
|
-
}, null, 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("strong", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(pb.name), 1), $props.dropdownOptions.showDialCodeInList ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", _hoisted_4, " +" + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(pb.dialCode), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 42, ["onClick", "onMousemove"]);
|
|
5225
|
-
}), 128))
|
|
5226
|
-
"onUpdate:modelValue": _cache[
|
|
5236
|
+
}, null, 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("strong", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(pb.name), 1), $props.dropdownOptions.showDialCodeInList ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", _hoisted_4, " +" + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(pb.dialCode), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 42, ["onClick", "onMousemove", "aria-selected"]);
|
|
5237
|
+
}), 128))], 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 42, ["aria-expanded", "tabindex"]), [[_directive_click_outside, $options.clickedOutside]]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("input", {
|
|
5238
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = function ($event) {
|
|
5227
5239
|
return $data.phone = $event;
|
|
5228
5240
|
}),
|
|
5229
5241
|
ref: "input",
|
|
@@ -5241,23 +5253,23 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5241
5253
|
tabindex: $props.inputOptions.tabindex,
|
|
5242
5254
|
value: $props.modelValue,
|
|
5243
5255
|
"aria-describedby": $props.inputOptions['aria-describedby'],
|
|
5244
|
-
onBlur: _cache[
|
|
5256
|
+
onBlur: _cache[7] || (_cache[7] = function () {
|
|
5245
5257
|
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
5246
5258
|
}),
|
|
5247
|
-
onFocus: _cache[
|
|
5259
|
+
onFocus: _cache[8] || (_cache[8] = function () {
|
|
5248
5260
|
return $options.onFocus && $options.onFocus.apply($options, arguments);
|
|
5249
5261
|
}),
|
|
5250
|
-
onInput: _cache[
|
|
5262
|
+
onInput: _cache[9] || (_cache[9] = function () {
|
|
5251
5263
|
return $options.onInput && $options.onInput.apply($options, arguments);
|
|
5252
5264
|
}),
|
|
5253
|
-
onKeyup: [_cache[
|
|
5265
|
+
onKeyup: [_cache[10] || (_cache[10] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withKeys"])(function () {
|
|
5254
5266
|
return $options.onEnter && $options.onEnter.apply($options, arguments);
|
|
5255
|
-
}, ["enter"])), _cache[
|
|
5267
|
+
}, ["enter"])), _cache[11] || (_cache[11] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withKeys"])(function () {
|
|
5256
5268
|
return $options.onSpace && $options.onSpace.apply($options, arguments);
|
|
5257
5269
|
}, ["space"]))]
|
|
5258
5270
|
}, null, 42, ["type", "autocomplete", "autofocus", "disabled", "id", "maxlength", "name", "placeholder", "readonly", "required", "tabindex", "value", "aria-describedby"]), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelDynamic"], $data.phone]]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "icon-right")], 2);
|
|
5259
5271
|
}
|
|
5260
|
-
// CONCATENATED MODULE: ./src/components/vue-tel-input.vue?vue&type=template&id=
|
|
5272
|
+
// CONCATENATED MODULE: ./src/components/vue-tel-input.vue?vue&type=template&id=e63ac01c
|
|
5261
5273
|
|
|
5262
5274
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
|
5263
5275
|
var objectWithoutProperties = __webpack_require__("15fd");
|
|
@@ -8908,6 +8920,7 @@ function getDefault(key) {
|
|
|
8908
8920
|
}
|
|
8909
8921
|
|
|
8910
8922
|
var selEle = this.$refs.list.children[this.selectedIndex];
|
|
8923
|
+
selEle.focus();
|
|
8911
8924
|
|
|
8912
8925
|
if (selEle.offsetTop + selEle.clientHeight > this.$refs.list.scrollTop + this.$refs.list.clientHeight) {
|
|
8913
8926
|
this.$refs.list.scrollTop = selEle.offsetTop - this.$refs.list.clientHeight + selEle.clientHeight;
|
|
@@ -8925,6 +8938,8 @@ function getDefault(key) {
|
|
|
8925
8938
|
|
|
8926
8939
|
var _selEle = this.$refs.list.children[this.selectedIndex];
|
|
8927
8940
|
|
|
8941
|
+
_selEle.focus();
|
|
8942
|
+
|
|
8928
8943
|
if (_selEle.offsetTop < this.$refs.list.scrollTop) {
|
|
8929
8944
|
this.$refs.list.scrollTop = _selEle.offsetTop;
|
|
8930
8945
|
}
|