vue-tel-input 6.0.0-beta.4 → 6.0.0-beta.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.
|
@@ -439,6 +439,12 @@ var allProps = [{
|
|
|
439
439
|
type: String,
|
|
440
440
|
description: 'Native input <code>name</code> attribute',
|
|
441
441
|
inDemo: false
|
|
442
|
+
}, {
|
|
443
|
+
name: 'inputOptions.showDialCode',
|
|
444
|
+
default: false,
|
|
445
|
+
type: Boolean,
|
|
446
|
+
description: 'Show dial code in input',
|
|
447
|
+
inDemo: false
|
|
442
448
|
}, {
|
|
443
449
|
name: 'inputOptions.placeholder',
|
|
444
450
|
default: 'Enter a phone number',
|
|
@@ -5163,7 +5169,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
5163
5169
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
5164
5170
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
5165
5171
|
|
|
5166
|
-
// 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=
|
|
5172
|
+
// 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=6b666c26
|
|
5167
5173
|
|
|
5168
5174
|
|
|
5169
5175
|
var _hoisted_1 = {
|
|
@@ -5260,7 +5266,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5260
5266
|
}, ["space"]))]
|
|
5261
5267
|
}, 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);
|
|
5262
5268
|
}
|
|
5263
|
-
// CONCATENATED MODULE: ./src/components/vue-tel-input.vue?vue&type=template&id=
|
|
5269
|
+
// CONCATENATED MODULE: ./src/components/vue-tel-input.vue?vue&type=template&id=6b666c26
|
|
5264
5270
|
|
|
5265
5271
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
|
5266
5272
|
var objectWithoutProperties = __webpack_require__("15fd");
|
|
@@ -8815,6 +8821,7 @@ function getDefault(key) {
|
|
|
8815
8821
|
if ((_this$inputOptions = this.inputOptions) !== null && _this$inputOptions !== void 0 && _this$inputOptions.showDialCode && parsedCountry) {
|
|
8816
8822
|
// Reset phone if the showDialCode is set
|
|
8817
8823
|
this.phone = "+".concat(parsedCountry.dialCode);
|
|
8824
|
+
this.activeCountryCode = parsedCountry.iso2 || '';
|
|
8818
8825
|
return;
|
|
8819
8826
|
} // update value, even if international mode is NOT used
|
|
8820
8827
|
|