maz-ui 2.3.10 → 2.3.13

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.
Files changed (42) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/maz-avatar.js +15 -15
  3. package/lib/maz-bottom-sheet.js +56 -57
  4. package/lib/maz-btn-group.js +41 -42
  5. package/lib/maz-btn.js +34 -35
  6. package/lib/maz-card.js +19 -18
  7. package/lib/maz-carousel.js +35 -35
  8. package/lib/maz-checkbox.js +7 -7
  9. package/lib/maz-collapse.js +57 -58
  10. package/lib/maz-dialog.js +73 -73
  11. package/lib/maz-draggable-list.js +19 -19
  12. package/lib/maz-dropdown.js +19 -19
  13. package/lib/maz-dropzone.js +8 -8
  14. package/lib/maz-flex.js +1 -1
  15. package/lib/maz-gallery.js +30 -31
  16. package/lib/maz-img.js +19 -20
  17. package/lib/maz-input-tags.js +67 -68
  18. package/lib/maz-input.js +66 -66
  19. package/lib/maz-list-item.js +5 -5
  20. package/lib/maz-list.js +5 -5
  21. package/lib/maz-loader.js +6 -6
  22. package/lib/maz-pagination.js +63 -64
  23. package/lib/maz-phone-number-input.js +254 -256
  24. package/lib/maz-picker.js +315 -313
  25. package/lib/maz-plotly.js +4 -4
  26. package/lib/maz-progress-bar.js +13 -13
  27. package/lib/maz-radio.js +8 -8
  28. package/lib/maz-read-more.js +7 -7
  29. package/lib/maz-responsive-menu.js +17 -17
  30. package/lib/maz-search.js +103 -103
  31. package/lib/maz-select.js +179 -182
  32. package/lib/maz-sidebar.js +38 -38
  33. package/lib/maz-slider.js +27 -27
  34. package/lib/maz-spinner.js +8 -9
  35. package/lib/maz-stepper.js +47 -48
  36. package/lib/maz-switch.js +5 -5
  37. package/lib/maz-tabs-bar.js +10 -10
  38. package/lib/maz-tabs-content-item.js +5 -5
  39. package/lib/maz-tabs-content.js +2 -2
  40. package/lib/maz-transition-expand.js +2 -2
  41. package/lib/maz-ui.common.js +959 -957
  42. package/package.json +1 -1
@@ -225,7 +225,7 @@ module.exports = __webpack_require__(9);
225
225
  __webpack_require__.r(__webpack_exports__);
226
226
 
227
227
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazBtn/_main.vue?vue&type=template&id=247f3a44&
228
- var render = function() {
228
+ var render = function () {
229
229
  var _vm = this
230
230
  var _h = _vm.$createElement
231
231
  var _c = _vm._self._c || _h
@@ -238,31 +238,31 @@ var render = function() {
238
238
  class: [
239
239
  _vm.classes,
240
240
  {
241
- "maz-text-hidden": _vm.loading
242
- }
241
+ "maz-text-hidden": _vm.loading,
242
+ },
243
243
  ],
244
244
  attrs: {
245
245
  id: _vm.uniqueId,
246
246
  type: _vm.isLink ? null : _vm.type,
247
- disabled: _vm.isLink ? null : _vm.isDisabled
247
+ disabled: _vm.isLink ? null : _vm.isDisabled,
248
248
  },
249
249
  on: {
250
- click: function($event) {
250
+ click: function ($event) {
251
251
  return _vm.handleClick($event)
252
252
  },
253
- mouseenter: function($event) {
253
+ mouseenter: function ($event) {
254
254
  return _vm.emitMouseEnter($event)
255
255
  },
256
- mouseleave: function($event) {
256
+ mouseleave: function ($event) {
257
257
  return _vm.emitMouseLeave($event)
258
258
  },
259
- focus: function($event) {
259
+ focus: function ($event) {
260
260
  return _vm.emitFocus($event)
261
261
  },
262
- blur: function($event) {
262
+ blur: function ($event) {
263
263
  return _vm.emitBlur($event)
264
- }
265
- }
264
+ },
265
+ },
266
266
  },
267
267
  "component",
268
268
  _vm.$attrs,
@@ -275,17 +275,17 @@ var render = function() {
275
275
  {
276
276
  staticClass: "maz-flex maz-flex-center maz-btn__icon-left",
277
277
  class: {
278
- "maz-mr-2": !_vm.fab && _vm.hasSlotDefault()
279
- }
278
+ "maz-mr-2": !_vm.fab && _vm.hasSlotDefault(),
279
+ },
280
280
  },
281
281
  [
282
- _vm._t("icon-left" || false, function() {
282
+ _vm._t("icon-left" || false, function () {
283
283
  return [
284
284
  _c("i", { staticClass: "material-icons" }, [
285
- _vm._v(_vm._s(_vm.leftIconName || _vm.iconName))
286
- ])
285
+ _vm._v(_vm._s(_vm.leftIconName || _vm.iconName)),
286
+ ]),
287
287
  ]
288
- })
288
+ }),
289
289
  ],
290
290
  2
291
291
  )
@@ -295,7 +295,7 @@ var render = function() {
295
295
  {
296
296
  staticClass:
297
297
  "maz-flex maz-align-center maz-h-100 maz-overflow-hidden",
298
- class: [_vm.textClasses, { "maz-flex-1": _vm.hasSlotDefault() }]
298
+ class: [_vm.textClasses, { "maz-flex-1": _vm.hasSlotDefault() }],
299
299
  },
300
300
  [_vm._t("default")],
301
301
  2
@@ -306,17 +306,17 @@ var render = function() {
306
306
  {
307
307
  staticClass: "maz-flex maz-flex-center maz-btn__icon-right",
308
308
  class: {
309
- "maz-ml-2": !_vm.fab && _vm.hasSlotDefault()
310
- }
309
+ "maz-ml-2": !_vm.fab && _vm.hasSlotDefault(),
310
+ },
311
311
  },
312
312
  [
313
- _vm._t("icon-right", function() {
313
+ _vm._t("icon-right", function () {
314
314
  return [
315
315
  _c("i", { staticClass: "material-icons" }, [
316
- _vm._v(_vm._s(_vm.rightIconName))
317
- ])
316
+ _vm._v(_vm._s(_vm.rightIconName)),
317
+ ]),
318
318
  ]
319
- })
319
+ }),
320
320
  ],
321
321
  2
322
322
  )
@@ -328,7 +328,7 @@ var render = function() {
328
328
  [_c("MazSpinner", { attrs: { size: 25, color: _vm.color } })],
329
329
  1
330
330
  )
331
- : _vm._e()
331
+ : _vm._e(),
332
332
  ]
333
333
  )
334
334
  }
@@ -351,7 +351,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
351
351
 
352
352
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
353
353
 
354
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
354
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
355
355
 
356
356
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
357
357
 
@@ -645,7 +645,7 @@ _main.install = function (Vue) {
645
645
  __webpack_require__.r(__webpack_exports__);
646
646
 
647
647
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSpinner/_main.vue?vue&type=template&id=67a8ca41&
648
- var render = function() {
648
+ var render = function () {
649
649
  var _vm = this
650
650
  var _h = _vm.$createElement
651
651
  var _c = _vm._self._c || _h
@@ -655,9 +655,9 @@ var render = function() {
655
655
  staticClass: "maz-base-component maz-spinner maz-spinner-anim",
656
656
  class: [
657
657
  {
658
- "spinner-anim__white": _vm.dark
658
+ "spinner-anim__white": _vm.dark,
659
659
  },
660
- _vm.fillColorClass
660
+ _vm.fillColorClass,
661
661
  ],
662
662
  staticStyle: { "enable-background": "new 0 0 50 50" },
663
663
  attrs: {
@@ -668,16 +668,15 @@ var render = function() {
668
668
  x: "0px",
669
669
  y: "0px",
670
670
  viewBox: "0 0 50 50",
671
- "xml:space": "preserve"
672
- }
671
+ "xml:space": "preserve",
672
+ },
673
673
  },
674
674
  [
675
675
  _c("path", {
676
676
  attrs: {
677
- d:
678
- "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"
679
- }
680
- })
677
+ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z",
678
+ },
679
+ }),
681
680
  ]
682
681
  )
683
682
  }
@@ -807,7 +806,7 @@ __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport
807
806
  __webpack_require__.r(__webpack_exports__);
808
807
 
809
808
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazInput/_main.vue?vue&type=template&id=5b617c72&
810
- var render = function() {
809
+ var render = function () {
811
810
  var _vm = this
812
811
  var _h = _vm.$createElement
813
812
  var _c = _vm._self._c || _h
@@ -829,13 +828,13 @@ var render = function() {
829
828
  "maz-is-dark": _vm.dark,
830
829
  "has-hint": _vm.hint,
831
830
  "has-no-label": !_vm.hasLabel && !_vm.hint,
832
- "has-left-icon": _vm.hasLeftIcon()
831
+ "has-left-icon": _vm.hasLeftIcon(),
833
832
  },
834
833
  "maz-input--" + _vm.size,
835
834
  "has-" + _vm.leftNumberIcon + "-right-icon",
836
- "maz-input--" + _vm.color
835
+ "maz-input--" + _vm.color,
837
836
  ],
838
- on: { click: _vm.focusInput }
837
+ on: { click: _vm.focusInput },
839
838
  },
840
839
  [
841
840
  _vm.hasLeftIcon()
@@ -844,17 +843,17 @@ var render = function() {
844
843
  {
845
844
  staticClass: "maz-input__icon maz-flex left",
846
845
  class: [
847
- _vm.textarea ? "maz-align-start maz-pt-2" : "maz-align-center"
848
- ]
846
+ _vm.textarea ? "maz-align-start maz-pt-2" : "maz-align-center",
847
+ ],
849
848
  },
850
849
  [
851
- _vm._t("icon-left", function() {
850
+ _vm._t("icon-left", function () {
852
851
  return [
853
852
  _c("i", { staticClass: "material-icons" }, [
854
- _vm._v(_vm._s(_vm.leftIconName))
855
- ])
853
+ _vm._v(_vm._s(_vm.leftIconName)),
854
+ ]),
856
855
  ]
857
- })
856
+ }),
858
857
  ],
859
858
  2
860
859
  )
@@ -865,17 +864,17 @@ var render = function() {
865
864
  {
866
865
  staticClass: "maz-input__icon maz-flex right",
867
866
  class: [
868
- _vm.textarea ? "maz-align-start maz-pt-2" : "maz-align-center"
869
- ]
867
+ _vm.textarea ? "maz-align-start maz-pt-2" : "maz-align-center",
868
+ ],
870
869
  },
871
870
  [
872
- _vm._t("icon-right", function() {
871
+ _vm._t("icon-right", function () {
873
872
  return [
874
873
  _c("i", { staticClass: "material-icons" }, [
875
- _vm._v(_vm._s(_vm.rightIconName))
876
- ])
874
+ _vm._v(_vm._s(_vm.rightIconName)),
875
+ ]),
877
876
  ]
878
- })
877
+ }),
879
878
  ],
880
879
  2
881
880
  )
@@ -890,14 +889,14 @@ var render = function() {
890
889
  name: "model",
891
890
  rawName: "v-model",
892
891
  value: _vm.inputValue,
893
- expression: "inputValue"
894
- }
892
+ expression: "inputValue",
893
+ },
895
894
  ],
896
895
  ref: "MazInput",
897
896
  staticClass: "maz-input__input maz-border-radius",
898
897
  class: {
899
898
  "has-right-icon":
900
- _vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon()
899
+ _vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon(),
901
900
  },
902
901
  attrs: {
903
902
  id: _vm.uniqueId,
@@ -906,12 +905,12 @@ var render = function() {
906
905
  disabled: _vm.disabled,
907
906
  required: _vm.required,
908
907
  readonly: _vm.readonly,
909
- type: "checkbox"
908
+ type: "checkbox",
910
909
  },
911
910
  domProps: {
912
911
  checked: Array.isArray(_vm.inputValue)
913
912
  ? _vm._i(_vm.inputValue, null) > -1
914
- : _vm.inputValue
913
+ : _vm.inputValue,
915
914
  },
916
915
  on: {
917
916
  keydown: _vm.keyDown,
@@ -920,7 +919,7 @@ var render = function() {
920
919
  blur: _vm.onBlur,
921
920
  paste: _vm.onPaste,
922
921
  change: [
923
- function($event) {
922
+ function ($event) {
924
923
  var $$a = _vm.inputValue,
925
924
  $$el = $event.target,
926
925
  $$c = $$el.checked ? true : false
@@ -939,12 +938,12 @@ var render = function() {
939
938
  _vm.inputValue = $$c
940
939
  }
941
940
  },
942
- _vm.onChange
941
+ _vm.onChange,
943
942
  ],
944
- click: function($event) {
943
+ click: function ($event) {
945
944
  return _vm.$emit("click", $event)
946
- }
947
- }
945
+ },
946
+ },
948
947
  },
949
948
  "input",
950
949
  _vm.$attrs,
@@ -961,14 +960,14 @@ var render = function() {
961
960
  name: "model",
962
961
  rawName: "v-model",
963
962
  value: _vm.inputValue,
964
- expression: "inputValue"
965
- }
963
+ expression: "inputValue",
964
+ },
966
965
  ],
967
966
  ref: "MazInput",
968
967
  staticClass: "maz-input__input maz-border-radius",
969
968
  class: {
970
969
  "has-right-icon":
971
- _vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon()
970
+ _vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon(),
972
971
  },
973
972
  attrs: {
974
973
  id: _vm.uniqueId,
@@ -977,7 +976,7 @@ var render = function() {
977
976
  disabled: _vm.disabled,
978
977
  required: _vm.required,
979
978
  readonly: _vm.readonly,
980
- type: "radio"
979
+ type: "radio",
981
980
  },
982
981
  domProps: { checked: _vm._q(_vm.inputValue, null) },
983
982
  on: {
@@ -987,15 +986,15 @@ var render = function() {
987
986
  blur: _vm.onBlur,
988
987
  paste: _vm.onPaste,
989
988
  change: [
990
- function($event) {
989
+ function ($event) {
991
990
  _vm.inputValue = null
992
991
  },
993
- _vm.onChange
992
+ _vm.onChange,
994
993
  ],
995
- click: function($event) {
994
+ click: function ($event) {
996
995
  return _vm.$emit("click", $event)
997
- }
998
- }
996
+ },
997
+ },
999
998
  },
1000
999
  "input",
1001
1000
  _vm.$attrs,
@@ -1012,14 +1011,14 @@ var render = function() {
1012
1011
  name: "model",
1013
1012
  rawName: "v-model",
1014
1013
  value: _vm.inputValue,
1015
- expression: "inputValue"
1016
- }
1014
+ expression: "inputValue",
1015
+ },
1017
1016
  ],
1018
1017
  ref: "MazInput",
1019
1018
  staticClass: "maz-input__input maz-border-radius",
1020
1019
  class: {
1021
1020
  "has-right-icon":
1022
- _vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon()
1021
+ _vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon(),
1023
1022
  },
1024
1023
  attrs: {
1025
1024
  id: _vm.uniqueId,
@@ -1028,7 +1027,7 @@ var render = function() {
1028
1027
  disabled: _vm.disabled,
1029
1028
  required: _vm.required,
1030
1029
  readonly: _vm.readonly,
1031
- type: _vm.getType
1030
+ type: _vm.getType,
1032
1031
  },
1033
1032
  domProps: { value: _vm.inputValue },
1034
1033
  on: {
@@ -1038,16 +1037,16 @@ var render = function() {
1038
1037
  blur: _vm.onBlur,
1039
1038
  paste: _vm.onPaste,
1040
1039
  change: _vm.onChange,
1041
- click: function($event) {
1040
+ click: function ($event) {
1042
1041
  return _vm.$emit("click", $event)
1043
1042
  },
1044
- input: function($event) {
1043
+ input: function ($event) {
1045
1044
  if ($event.target.composing) {
1046
1045
  return
1047
1046
  }
1048
1047
  _vm.inputValue = $event.target.value
1049
- }
1050
- }
1048
+ },
1049
+ },
1051
1050
  },
1052
1051
  "input",
1053
1052
  _vm.$attrs,
@@ -1063,8 +1062,8 @@ var render = function() {
1063
1062
  name: "model",
1064
1063
  rawName: "v-model",
1065
1064
  value: _vm.inputValue,
1066
- expression: "inputValue"
1067
- }
1065
+ expression: "inputValue",
1066
+ },
1068
1067
  ],
1069
1068
  ref: "MazInput",
1070
1069
  staticClass: "maz-input__input maz-textarea",
@@ -1073,7 +1072,7 @@ var render = function() {
1073
1072
  placeholder: _vm.placeholderValue,
1074
1073
  type: _vm.type,
1075
1074
  required: _vm.required,
1076
- readonly: _vm.readonly
1075
+ readonly: _vm.readonly,
1077
1076
  },
1078
1077
  domProps: { value: _vm.inputValue },
1079
1078
  on: {
@@ -1083,16 +1082,16 @@ var render = function() {
1083
1082
  blur: _vm.onBlur,
1084
1083
  paste: _vm.onPaste,
1085
1084
  change: _vm.onChange,
1086
- click: function($event) {
1085
+ click: function ($event) {
1087
1086
  return _vm.$emit("click", $event)
1088
1087
  },
1089
- input: function($event) {
1088
+ input: function ($event) {
1090
1089
  if ($event.target.composing) {
1091
1090
  return
1092
1091
  }
1093
1092
  _vm.inputValue = $event.target.value
1094
- }
1095
- }
1093
+ },
1094
+ },
1096
1095
  },
1097
1096
  "textarea",
1098
1097
  _vm.$attrs,
@@ -1107,14 +1106,14 @@ var render = function() {
1107
1106
  staticClass: "maz-input__label",
1108
1107
  class: _vm.error ? "maz-text-danger" : null,
1109
1108
  attrs: { for: _vm.uniqueId, tabindex: "-1" },
1110
- on: { click: _vm.focusInput }
1109
+ on: { click: _vm.focusInput },
1111
1110
  },
1112
1111
  [
1113
1112
  _vm._v(
1114
1113
  "\n " +
1115
1114
  _vm._s(_vm.hintValue || _vm.placeholderValue) +
1116
1115
  "\n "
1117
- )
1116
+ ),
1118
1117
  ]
1119
1118
  )
1120
1119
  : _vm._e(),
@@ -1129,18 +1128,18 @@ var render = function() {
1129
1128
  class: { "has-right-icon": _vm.hasRightIcon() },
1130
1129
  attrs: { title: "clear", type: "button", tabindex: "-1" },
1131
1130
  on: {
1132
- click: function($event) {
1131
+ click: function ($event) {
1133
1132
  $event.stopPropagation()
1134
1133
  return _vm.clear.apply(null, arguments)
1135
- }
1136
- }
1134
+ },
1135
+ },
1137
1136
  },
1138
1137
  [
1139
1138
  _c(
1140
1139
  "i",
1141
1140
  { staticClass: "maz-input__toggle-btn__icon material-icons" },
1142
1141
  [_vm._v("\n close\n ")]
1143
- )
1142
+ ),
1144
1143
  ]
1145
1144
  )
1146
1145
  : _vm._e(),
@@ -1153,14 +1152,14 @@ var render = function() {
1153
1152
  "maz-input__toggle-btn password maz-flex maz-flex-center",
1154
1153
  class: {
1155
1154
  "has-clear-btn": _vm.hasClearBtn,
1156
- "has-right-icon": _vm.hasRightIcon()
1155
+ "has-right-icon": _vm.hasRightIcon(),
1157
1156
  },
1158
1157
  attrs: { title: "clear", type: "button", tabindex: "-1" },
1159
1158
  on: {
1160
- click: function($event) {
1159
+ click: function ($event) {
1161
1160
  _vm.showPassword = !_vm.showPassword
1162
- }
1163
- }
1161
+ },
1162
+ },
1164
1163
  },
1165
1164
  [
1166
1165
  _c(
@@ -1173,23 +1172,23 @@ var render = function() {
1173
1172
  _vm.showPassword ? "visibility_off" : "visibility"
1174
1173
  ) +
1175
1174
  "\n "
1176
- )
1175
+ ),
1177
1176
  ]
1178
- )
1177
+ ),
1179
1178
  ]
1180
1179
  )
1181
- : _vm._e()
1180
+ : _vm._e(),
1182
1181
  ]),
1183
1182
  _vm.loading
1184
1183
  ? _c(
1185
1184
  "div",
1186
1185
  {
1187
1186
  staticClass: "maz-input__loader",
1188
- class: { textarea: _vm.textarea }
1187
+ class: { textarea: _vm.textarea },
1189
1188
  },
1190
1189
  [_c("div", { staticClass: "maz-input__loader__progress-bar" })]
1191
1190
  )
1192
- : _vm._e()
1191
+ : _vm._e(),
1193
1192
  ],
1194
1193
  1
1195
1194
  )
@@ -1207,7 +1206,7 @@ var uniqueId = __webpack_require__(2);
1207
1206
  var utils = __webpack_require__(6);
1208
1207
 
1209
1208
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazInput/_main.vue?vue&type=script&lang=js&
1210
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1209
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1211
1210
 
1212
1211
  //
1213
1212
  //
@@ -1653,7 +1652,7 @@ module.exports = require("libphonenumber-js");
1653
1652
  __webpack_require__.r(__webpack_exports__);
1654
1653
 
1655
1654
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSelect/_main.vue?vue&type=template&id=2fb08d76&
1656
- var render = function() {
1655
+ var render = function () {
1657
1656
  var _vm = this
1658
1657
  var _h = _vm.$createElement
1659
1658
  var _c = _vm._self._c || _h
@@ -1664,16 +1663,16 @@ var render = function() {
1664
1663
  class: [
1665
1664
  {
1666
1665
  "has-list-open": _vm.hasOpenList,
1667
- "maz-is-dark": _vm.dark
1666
+ "maz-is-dark": _vm.dark,
1668
1667
  },
1669
1668
  "maz-select--" + _vm.color,
1670
- "maz-select--" + _vm.size
1669
+ "maz-select--" + _vm.size,
1671
1670
  ],
1672
1671
  on: {
1673
- "!blur": function($event) {
1672
+ "!blur": function ($event) {
1674
1673
  return _vm.closeList($event)
1675
- }
1676
- }
1674
+ },
1675
+ },
1677
1676
  },
1678
1677
  [
1679
1678
  _vm.multiple
@@ -1683,8 +1682,8 @@ var render = function() {
1683
1682
  ref: "SelectedTags",
1684
1683
  staticClass: "maz-select__tags maz-flex maz-align-center",
1685
1684
  class: {
1686
- "maz-left-offset": _vm.hasLeftIcon
1687
- }
1685
+ "maz-left-offset": _vm.hasLeftIcon,
1686
+ },
1688
1687
  },
1689
1688
  [
1690
1689
  _c(
@@ -1692,9 +1691,9 @@ var render = function() {
1692
1691
  {
1693
1692
  ref: "SelectedTagsContainer",
1694
1693
  staticClass: "maz-flex maz-align-center maz-h-100",
1695
- attrs: { tag: "div", name: "maz-tags" }
1694
+ attrs: { tag: "div", name: "maz-tags" },
1696
1695
  },
1697
- _vm._l(_vm.selectedOptions, function(option, i) {
1696
+ _vm._l(_vm.selectedOptions, function (option, i) {
1698
1697
  return _c(
1699
1698
  "MazBtn",
1700
1699
  {
@@ -1703,15 +1702,15 @@ var render = function() {
1703
1702
  attrs: {
1704
1703
  disabled: _vm.disabled,
1705
1704
  color: _vm.color,
1706
- size: _vm.size
1705
+ size: _vm.size,
1707
1706
  },
1708
1707
  on: {
1709
- click: function($event) {
1708
+ click: function ($event) {
1710
1709
  $event.preventDefault()
1711
1710
  $event.stopPropagation()
1712
1711
  return _vm.removeOption(option[_vm.config.valueKey])
1713
- }
1714
- }
1712
+ },
1713
+ },
1715
1714
  },
1716
1715
  [
1717
1716
  _c("span", { staticClass: "maz-select__tag__text" }, [
@@ -1719,20 +1718,20 @@ var render = function() {
1719
1718
  "\n " +
1720
1719
  _vm._s(option[_vm.config.labelKey]) +
1721
1720
  "\n "
1722
- )
1721
+ ),
1723
1722
  ]),
1724
1723
  _c(
1725
1724
  "i",
1726
1725
  {
1727
- staticClass: "maz-select__tag__clear material-icons"
1726
+ staticClass: "maz-select__tag__clear material-icons",
1728
1727
  },
1729
1728
  [_vm._v("\n close\n ")]
1730
- )
1729
+ ),
1731
1730
  ]
1732
1731
  )
1733
1732
  }),
1734
1733
  1
1735
- )
1734
+ ),
1736
1735
  ],
1737
1736
  1
1738
1737
  )
@@ -1750,32 +1749,32 @@ var render = function() {
1750
1749
  size: _vm.size,
1751
1750
  placeholder: _vm.placeholderShown,
1752
1751
  disabled: _vm.disabled,
1753
- focus: _vm.hasOpenList
1752
+ focus: _vm.hasOpenList,
1754
1753
  },
1755
1754
  on: {
1756
- clear: function($event) {
1755
+ clear: function ($event) {
1757
1756
  return _vm.emitValues(null)
1758
1757
  },
1759
- keydown: function($event) {
1758
+ keydown: function ($event) {
1760
1759
  _vm.search ? null : _vm.keyboardNav($event)
1761
1760
  },
1762
- keyup: function($event) {
1761
+ keyup: function ($event) {
1763
1762
  return _vm.$emit("keyup", $event)
1764
1763
  },
1765
- blur: function($event) {
1764
+ blur: function ($event) {
1766
1765
  return _vm.$emit("blur", $event)
1767
1766
  },
1768
- change: function($event) {
1767
+ change: function ($event) {
1769
1768
  return _vm.$emit("change", $event)
1770
1769
  },
1771
- paste: function($event) {
1770
+ paste: function ($event) {
1772
1771
  return _vm.$emit("paste", $event)
1773
1772
  },
1774
- click: function($event) {
1773
+ click: function ($event) {
1775
1774
  return _vm.$emit("click", $event)
1776
1775
  },
1777
- focus: _vm.openList
1778
- }
1776
+ focus: _vm.openList,
1777
+ },
1779
1778
  },
1780
1779
  "MazInput",
1781
1780
  _vm.$attrs,
@@ -1788,10 +1787,10 @@ var render = function() {
1788
1787
  {
1789
1788
  staticClass: "maz-select__toggle maz-flex maz-flex-center",
1790
1789
  attrs: { slot: "icon-right", tabindex: "-1" },
1791
- slot: "icon-right"
1790
+ slot: "icon-right",
1792
1791
  },
1793
1792
  [
1794
- _vm._t("arrow", function() {
1793
+ _vm._t("arrow", function () {
1795
1794
  return [
1796
1795
  _c(
1797
1796
  "svg",
@@ -1801,27 +1800,26 @@ var render = function() {
1801
1800
  mlns: "http://www.w3.org/2000/svg",
1802
1801
  width: "24",
1803
1802
  height: "24",
1804
- viewBox: "0 0 24 24"
1805
- }
1803
+ viewBox: "0 0 24 24",
1804
+ },
1806
1805
  },
1807
1806
  [
1808
1807
  _c("path", {
1809
1808
  staticClass: "arrow",
1810
1809
  attrs: {
1811
- d:
1812
- "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
1813
- }
1810
+ d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",
1811
+ },
1814
1812
  }),
1815
1813
  _c("path", {
1816
- attrs: { fill: "none", d: "M0 0h24v24H0V0z" }
1817
- })
1814
+ attrs: { fill: "none", d: "M0 0h24v24H0V0z" },
1815
+ }),
1818
1816
  ]
1819
- )
1817
+ ),
1820
1818
  ]
1821
- })
1819
+ }),
1822
1820
  ],
1823
1821
  2
1824
- )
1822
+ ),
1825
1823
  ],
1826
1824
  2
1827
1825
  ),
@@ -1834,17 +1832,17 @@ var render = function() {
1834
1832
  name: "show",
1835
1833
  rawName: "v-show",
1836
1834
  value: _vm.hasOpenList,
1837
- expression: "hasOpenList"
1838
- }
1835
+ expression: "hasOpenList",
1836
+ },
1839
1837
  ],
1840
1838
  staticClass: "maz-select__options-list maz-flex maz-elevation",
1841
1839
  class: [
1842
1840
  _vm.hasPositionTop
1843
1841
  ? "maz-select__options-list--top maz-direction-column-reverse"
1844
1842
  : "maz-direction-column",
1845
- { "maz-select__options-list--right": _vm.hasPositionRight }
1843
+ { "maz-select__options-list--right": _vm.hasPositionRight },
1846
1844
  ],
1847
- style: [_vm.itemListSize]
1845
+ style: [_vm.itemListSize],
1848
1846
  },
1849
1847
  [
1850
1848
  _vm.search
@@ -1858,26 +1856,26 @@ var render = function() {
1858
1856
  size: "sm",
1859
1857
  "no-label": "",
1860
1858
  name: "new_search_in_options",
1861
- autocomplete: "off"
1859
+ autocomplete: "off",
1862
1860
  },
1863
1861
  on: {
1864
1862
  input: _vm.searchInOptions,
1865
1863
  keydown: [
1866
1864
  _vm.keyboardNav,
1867
- function($event) {
1865
+ function ($event) {
1868
1866
  if (
1869
1867
  !$event.type.indexOf("key") &&
1870
1868
  _vm._k($event.keyCode, "esc", 27, $event.key, [
1871
1869
  "Esc",
1872
- "Escape"
1870
+ "Escape",
1873
1871
  ])
1874
1872
  ) {
1875
1873
  return null
1876
1874
  }
1877
1875
  return _vm.closeList.apply(null, arguments)
1878
- }
1879
- ]
1880
- }
1876
+ },
1877
+ ],
1878
+ },
1881
1879
  })
1882
1880
  : _vm._e(),
1883
1881
  _c(
@@ -1885,10 +1883,10 @@ var render = function() {
1885
1883
  {
1886
1884
  ref: "optionsList",
1887
1885
  staticClass:
1888
- "maz-select__options-list__items maz-flex maz-direction-column"
1886
+ "maz-select__options-list__items maz-flex maz-direction-column",
1889
1887
  },
1890
1888
  [
1891
- _vm._l(_vm.optionsShown, function(option, i) {
1889
+ _vm._l(_vm.optionsShown, function (option, i) {
1892
1890
  return _c(
1893
1891
  "button",
1894
1892
  {
@@ -1899,27 +1897,27 @@ var render = function() {
1899
1897
  {
1900
1898
  selected:
1901
1899
  _vm.values.length &&
1902
- _vm.values.includes(option[_vm.config.valueKey])
1900
+ _vm.values.includes(option[_vm.config.valueKey]),
1903
1901
  },
1904
1902
  {
1905
1903
  "keyboard-selected":
1906
- _vm.tmpValue === option[_vm.config.valueKey]
1907
- }
1904
+ _vm.tmpValue === option[_vm.config.valueKey],
1905
+ },
1908
1906
  ],
1909
1907
  style: [_vm.optionHeight],
1910
1908
  attrs: { tabindex: "-1", type: "button" },
1911
1909
  on: {
1912
- click: function($event) {
1910
+ click: function ($event) {
1913
1911
  $event.preventDefault()
1914
1912
  $event.stopPropagation()
1915
1913
  return _vm.updateValue(option[_vm.config.valueKey])
1916
- }
1917
- }
1914
+ },
1915
+ },
1918
1916
  },
1919
1917
  [
1920
1918
  _vm._t(
1921
1919
  "default",
1922
- function() {
1920
+ function () {
1923
1921
  return [
1924
1922
  _c(
1925
1923
  "span",
@@ -1927,36 +1925,35 @@ var render = function() {
1927
1925
  staticClass: "maz-dots-text",
1928
1926
  class: [
1929
1927
  {
1930
- "maz-text-muted": !option[
1931
- _vm.config.valueKey
1932
- ]
1928
+ "maz-text-muted":
1929
+ !option[_vm.config.valueKey],
1933
1930
  },
1934
1931
  _vm.values.includes(
1935
1932
  option[_vm.config.valueKey]
1936
1933
  )
1937
1934
  ? "maz-text-white"
1938
- : "maz-text-color"
1939
- ]
1935
+ : "maz-text-color",
1936
+ ],
1940
1937
  },
1941
1938
  [
1942
1939
  _vm._v(
1943
1940
  "\n " +
1944
1941
  _vm._s(option[_vm.config.labelKey]) +
1945
1942
  "\n "
1946
- )
1943
+ ),
1947
1944
  ]
1948
- )
1945
+ ),
1949
1946
  ]
1950
1947
  },
1951
1948
  {
1952
1949
  option: Object.assign({}, option, {
1953
1950
  isSelected: _vm.values.includes(
1954
1951
  option[_vm.config.valueKey]
1955
- )
1952
+ ),
1956
1953
  }),
1957
- tag: "div"
1954
+ tag: "div",
1958
1955
  }
1959
- )
1956
+ ),
1960
1957
  ],
1961
1958
  2
1962
1959
  )
@@ -1964,40 +1961,40 @@ var render = function() {
1964
1961
  !_vm.optionsShown.length
1965
1962
  ? _vm._t(
1966
1963
  "no-results",
1967
- function() {
1964
+ function () {
1968
1965
  return [
1969
1966
  _c(
1970
1967
  "div",
1971
1968
  {
1972
1969
  staticClass:
1973
- "maz-select__options-list__no-results maz-p-1 maz-flex maz-flex-center"
1970
+ "maz-select__options-list__no-results maz-p-1 maz-flex maz-flex-center",
1974
1971
  },
1975
1972
  [
1976
1973
  _c(
1977
1974
  "i",
1978
1975
  {
1979
- staticClass: "material-icons maz-text-danger"
1976
+ staticClass: "material-icons maz-text-danger",
1980
1977
  },
1981
1978
  [
1982
1979
  _vm._v(
1983
1980
  "\n search_off\n "
1984
- )
1981
+ ),
1985
1982
  ]
1986
- )
1983
+ ),
1987
1984
  ]
1988
- )
1985
+ ),
1989
1986
  ]
1990
1987
  },
1991
1988
  { tag: "div" }
1992
1989
  )
1993
- : _vm._e()
1990
+ : _vm._e(),
1994
1991
  ],
1995
1992
  2
1996
- )
1993
+ ),
1997
1994
  ],
1998
1995
  1
1999
- )
2000
- ])
1996
+ ),
1997
+ ]),
2001
1998
  ],
2002
1999
  1
2003
2000
  )
@@ -2034,13 +2031,13 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
2034
2031
 
2035
2032
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2036
2033
 
2037
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
2034
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
2038
2035
 
2039
2036
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
2040
2037
 
2041
2038
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
2042
2039
 
2043
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2040
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2044
2041
 
2045
2042
  //
2046
2043
  //
@@ -2766,7 +2763,7 @@ module.exports = require("libphonenumber-js/examples.mobile.json");
2766
2763
  __webpack_require__.r(__webpack_exports__);
2767
2764
 
2768
2765
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazPhoneNumberInput/_main.vue?vue&type=template&id=0022c02d&
2769
- var render = function() {
2766
+ var render = function () {
2770
2767
  var _vm = this
2771
2768
  var _h = _vm.$createElement
2772
2769
  var _c = _vm._self._c || _h
@@ -2776,9 +2773,9 @@ var render = function() {
2776
2773
  staticClass: "maz-base-component maz-phone-number-input maz-flex",
2777
2774
  class: [
2778
2775
  { "maz-is-dark": _vm.dark },
2779
- "maz-phone-number-input--" + _vm.size
2776
+ "maz-phone-number-input--" + _vm.size,
2780
2777
  ],
2781
- attrs: { id: _vm.id }
2778
+ attrs: { id: _vm.id },
2782
2779
  },
2783
2780
  [
2784
2781
  !_vm.noCountrySelector
@@ -2786,13 +2783,13 @@ var render = function() {
2786
2783
  ref: "CountrySelector",
2787
2784
  staticClass: "country-selector",
2788
2785
  class: {
2789
- "no-padding-left": _vm.noFlags || !_vm.countryCode
2786
+ "no-padding-left": _vm.noFlags || !_vm.countryCode,
2790
2787
  },
2791
2788
  attrs: {
2792
2789
  value: _vm.countryCode,
2793
2790
  options: _vm.countriesSorted,
2794
2791
  placeholder: _vm.t.countrySelectorLabel,
2795
- search: "",
2792
+ search: !_vm.noSearch,
2796
2793
  position: _vm.position,
2797
2794
  "search-placeholder": _vm.t.countrySelectorSearchPlaceholder,
2798
2795
  "items-height": _vm.countriesHeight,
@@ -2806,20 +2803,20 @@ var render = function() {
2806
2803
  config: {
2807
2804
  labelKey: "dialCode",
2808
2805
  searchKey: "name",
2809
- valueKey: "iso2"
2806
+ valueKey: "iso2",
2810
2807
  },
2811
- color: _vm.color
2808
+ color: _vm.color,
2812
2809
  },
2813
2810
  on: {
2814
- input: function($event) {
2811
+ input: function ($event) {
2815
2812
  return _vm.setCountryCode($event, true)
2816
- }
2813
+ },
2817
2814
  },
2818
2815
  scopedSlots: _vm._u(
2819
2816
  [
2820
2817
  {
2821
2818
  key: "default",
2822
- fn: function(ref) {
2819
+ fn: function (ref) {
2823
2820
  var option = ref.option
2824
2821
  return [
2825
2822
  _c("div", { staticClass: "maz-flex maz-align-center" }, [
@@ -2828,14 +2825,14 @@ var render = function() {
2828
2825
  "div",
2829
2826
  {
2830
2827
  staticClass:
2831
- "country-selector__flag-container maz-mr-2"
2828
+ "country-selector__flag-container maz-mr-2",
2832
2829
  },
2833
2830
  [
2834
2831
  _c("div", {
2835
2832
  class:
2836
2833
  "maz-flag maz-flag-" +
2837
- option.iso2.toLowerCase()
2838
- })
2834
+ option.iso2.toLowerCase(),
2835
+ }),
2839
2836
  ]
2840
2837
  )
2841
2838
  : _vm._e(),
@@ -2846,15 +2843,15 @@ var render = function() {
2846
2843
  staticClass:
2847
2844
  "country-selector__calling-code maz-flex-fixed maz-text-muted",
2848
2845
  class: {
2849
- "maz-text-muted-dark": option.isSelected
2850
- }
2846
+ "maz-text-muted-dark": option.isSelected,
2847
+ },
2851
2848
  },
2852
2849
  [
2853
2850
  _vm._v(
2854
2851
  "\n +" +
2855
2852
  _vm._s(option.dialCode) +
2856
2853
  "\n "
2857
- )
2854
+ ),
2858
2855
  ]
2859
2856
  )
2860
2857
  : _vm._e(),
@@ -2864,26 +2861,26 @@ var render = function() {
2864
2861
  staticClass:
2865
2862
  "maz-dots-text maz-flex-1 maz-text-left maz-text-color",
2866
2863
  class: {
2867
- "maz-text-white": option.isSelected
2868
- }
2864
+ "maz-text-white": option.isSelected,
2865
+ },
2869
2866
  },
2870
2867
  [
2871
2868
  _vm._v(
2872
2869
  "\n " +
2873
2870
  _vm._s(option.name) +
2874
2871
  "\n "
2875
- )
2872
+ ),
2876
2873
  ]
2877
- )
2878
- ])
2874
+ ),
2875
+ ]),
2879
2876
  ]
2880
- }
2881
- }
2877
+ },
2878
+ },
2882
2879
  ],
2883
2880
  null,
2884
2881
  false,
2885
2882
  2447316597
2886
- )
2883
+ ),
2887
2884
  })
2888
2885
  : _vm._e(),
2889
2886
  _vm.countryCode && !_vm.noFlags && !_vm.noCountrySelector
@@ -2892,12 +2889,12 @@ var render = function() {
2892
2889
  {
2893
2890
  staticClass: "\n maz-phone-number-input__country-flag",
2894
2891
  attrs: { tabindex: "-1" },
2895
- on: { click: _vm.focusCountrySelector }
2892
+ on: { click: _vm.focusCountrySelector },
2896
2893
  },
2897
2894
  [
2898
2895
  _c("div", {
2899
- class: "maz-flag maz-flag-" + _vm.countryCode.toLowerCase()
2900
- })
2896
+ class: "maz-flag maz-flag-" + _vm.countryCode.toLowerCase(),
2897
+ }),
2901
2898
  ]
2902
2899
  )
2903
2900
  : _vm._e(),
@@ -2908,7 +2905,7 @@ var render = function() {
2908
2905
  ref: "PhoneNumberInput",
2909
2906
  staticClass: "input-phone-number maz-flex-1",
2910
2907
  class: {
2911
- "has-border-radius": _vm.noCountrySelector
2908
+ "has-border-radius": _vm.noCountrySelector,
2912
2909
  },
2913
2910
  attrs: {
2914
2911
  id: _vm.uniqueId ? _vm.uniqueId + "_phone_number" : null,
@@ -2919,26 +2916,22 @@ var render = function() {
2919
2916
  size: _vm.size,
2920
2917
  success: _vm.isValid && !_vm.noValidation,
2921
2918
  clearable: "",
2922
- color: _vm.color
2919
+ color: _vm.color,
2923
2920
  },
2924
2921
  on: {
2925
- keydown: function(e) {
2926
- _vm.lastKeyPressed = e.keyCode
2927
- },
2928
- focus: function($event) {
2922
+ keydown: _vm.onKeydown,
2923
+ focus: function ($event) {
2929
2924
  return _vm.$emit("focus", $event)
2930
2925
  },
2931
- blur: function($event) {
2932
- return _vm.$emit("blur", $event)
2933
- },
2934
- change: function($event) {
2926
+ blur: _vm.onBlur,
2927
+ change: function ($event) {
2935
2928
  return _vm.$emit("change", $event)
2936
2929
  },
2937
- clear: function($event) {
2930
+ clear: function ($event) {
2938
2931
  return _vm.$emit("clear", $event)
2939
2932
  },
2940
- input: _vm.buildResults
2941
- }
2933
+ input: _vm.buildResults,
2934
+ },
2942
2935
  },
2943
2936
  "MazInput",
2944
2937
  _vm.$attrs,
@@ -2946,10 +2939,10 @@ var render = function() {
2946
2939
  ),
2947
2940
  [
2948
2941
  _vm._t("icon-left", null, { slot: "icon-left" }),
2949
- _vm._t("icon-right", null, { slot: "icon-right" })
2942
+ _vm._t("icon-right", null, { slot: "icon-right" }),
2950
2943
  ],
2951
2944
  2
2952
- )
2945
+ ),
2953
2946
  ],
2954
2947
  1
2955
2948
  )
@@ -2982,9 +2975,9 @@ var countries = allCountries.map(function (country) {
2982
2975
  };
2983
2976
  });
2984
2977
  // CONCATENATED MODULE: ./packages/components/MazPhoneNumberInput/utils/index.js
2985
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
2978
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2986
2979
 
2987
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
2980
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2988
2981
 
2989
2982
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2990
2983
 
@@ -3045,6 +3038,7 @@ var utils_getResultsFromPhoneNumber = function getResultsFromPhoneNumber(phoneNu
3045
3038
  var parsing = phoneNumber ? Object(external_libphonenumber_js_["parsePhoneNumberFromString"])(phoneNumber, countryCode) : null;
3046
3039
  var results = {
3047
3040
  countryCode: countryCode,
3041
+ phoneNumber: phoneNumber,
3048
3042
  isValid: false
3049
3043
  };
3050
3044
 
@@ -3150,19 +3144,19 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
3150
3144
 
3151
3145
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
3152
3146
 
3153
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
3147
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
3154
3148
 
3155
3149
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
3156
3150
 
3157
3151
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
3158
3152
 
3159
- function _mainvue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3153
+ function _mainvue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3160
3154
 
3161
- function _mainvue_type_script_lang_js_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { _mainvue_type_script_lang_js_ownKeys(Object(source), true).forEach(function (key) { _mainvue_type_script_lang_js_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { _mainvue_type_script_lang_js_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3155
+ function _mainvue_type_script_lang_js_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _mainvue_type_script_lang_js_ownKeys(Object(source), !0).forEach(function (key) { _mainvue_type_script_lang_js_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : _mainvue_type_script_lang_js_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3162
3156
 
3163
3157
  function _mainvue_type_script_lang_js_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3164
3158
 
3165
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3159
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3166
3160
 
3167
3161
  //
3168
3162
  //
@@ -3358,6 +3352,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3358
3352
  type: Boolean,
3359
3353
  default: false
3360
3354
  },
3355
+ // Remove the search countries functionality
3356
+ noSearch: {
3357
+ type: Boolean,
3358
+ default: false
3359
+ },
3361
3360
  // Change the height of country item in list
3362
3361
  countriesHeight: {
3363
3362
  type: Number,
@@ -3413,7 +3412,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3413
3412
  return {
3414
3413
  results: {},
3415
3414
  countryCode: this.defaultCountryCode,
3416
- lastKeyPressed: null,
3415
+ cursorPosition: null,
3417
3416
  asYouTypeNumber: this.defaultPhoneNumber
3418
3417
  };
3419
3418
  },
@@ -3600,34 +3599,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3600
3599
  var _this6 = this;
3601
3600
 
3602
3601
  return _mainvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
3603
- var asYouTypeNumber, lastKeyPressed, countryCode, value, backSpacePressed, lastCharacOfPhoneNumber, _this6$results, isValid, e164, valueToEmit;
3602
+ var countryCode, value, hasDeletedCharac, _this6$results, isValid, e164, cursorIsAtEnd, shouldUseAsYouType, valueToEmit;
3604
3603
 
3605
3604
  return regenerator_default.a.wrap(function _callee2$(_context2) {
3606
3605
  while (1) {
3607
3606
  switch (_context2.prev = _context2.next) {
3608
3607
  case 0:
3609
- asYouTypeNumber = _this6.asYouTypeNumber, lastKeyPressed = _this6.lastKeyPressed, countryCode = _this6.countryCode, value = _this6.value;
3610
- backSpacePressed = lastKeyPressed === 8;
3611
- _context2.next = 4;
3608
+ countryCode = _this6.countryCode, value = _this6.value;
3609
+ _context2.next = 3;
3612
3610
  return _this6.$nextTick();
3613
3611
 
3614
- case 4:
3615
- lastCharacOfPhoneNumber = asYouTypeNumber ? asYouTypeNumber.slice(asYouTypeNumber.length - 1) : false;
3616
-
3617
- if (backSpacePressed && lastCharacOfPhoneNumber && lastCharacOfPhoneNumber === ')') {
3618
- _this6.asYouTypeNumber = asYouTypeNumber.slice(0, -1);
3619
- }
3620
-
3621
- _context2.next = 8;
3622
- return utils_getResultsFromPhoneNumber(phoneNumber, countryCode);
3623
-
3624
- case 8:
3625
- _this6.results = _context2.sent;
3626
- _context2.next = 11;
3627
- return utils_getAsYouTypeFormat(phoneNumber, countryCode);
3628
-
3629
- case 11:
3630
- _this6.asYouTypeNumber = _context2.sent;
3612
+ case 3:
3613
+ hasDeletedCharac = _this6.asYouTypeNumber && phoneNumber && _this6.asYouTypeNumber.length > phoneNumber.length;
3614
+ _this6.results = utils_getResultsFromPhoneNumber(phoneNumber, countryCode);
3615
+ _this6$results = _this6.results, isValid = _this6$results.isValid, e164 = _this6$results.e164;
3616
+ cursorIsAtEnd = _this6.asYouTypeNumber && _this6.cursorPosition ? _this6.cursorPosition + 1 >= _this6.asYouTypeNumber.length : true;
3617
+ shouldUseAsYouType = !hasDeletedCharac && cursorIsAtEnd || isValid;
3618
+ _this6.asYouTypeNumber = shouldUseAsYouType ? utils_getAsYouTypeFormat(phoneNumber, countryCode) : phoneNumber;
3631
3619
 
3632
3620
  if (!noAutoUpdateCountryCode && _this6.results && _this6.results.countryCode && countryCode !== _this6.results.countryCode) {
3633
3621
  _this6.setCountryCode(_this6.results.countryCode);
@@ -3637,22 +3625,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3637
3625
 
3638
3626
  _this6.$emit('update', _this6.results);
3639
3627
 
3640
- _this6$results = _this6.results, isValid = _this6$results.isValid, e164 = _this6$results.e164;
3641
3628
  valueToEmit = isValid ? e164 : _this6.asYouTypeNumber;
3642
3629
 
3643
3630
  if (!(!valueToEmit && valueToEmit === value)) {
3644
- _context2.next = 18;
3631
+ _context2.next = 14;
3645
3632
  break;
3646
3633
  }
3647
3634
 
3648
3635
  return _context2.abrupt("return");
3649
3636
 
3650
- case 18:
3637
+ case 14:
3651
3638
  // sent when the user tape
3652
3639
  // @arg Phone number value formatted in e164 format (international format)
3653
3640
  _this6.$emit('input', valueToEmit);
3654
3641
 
3655
- case 19:
3642
+ case 15:
3656
3643
  case "end":
3657
3644
  return _context2.stop();
3658
3645
  }
@@ -3660,6 +3647,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3660
3647
  }, _callee2);
3661
3648
  }))();
3662
3649
  },
3650
+ onBlur: function onBlur(event) {
3651
+ this.$emit('blur', event);
3652
+
3653
+ if (this.countryCode) {
3654
+ this.asYouTypeNumber = utils_getAsYouTypeFormat(this.asYouTypeNumber, this.countryCode);
3655
+ }
3656
+ },
3657
+ onKeydown: function onKeydown(event) {
3658
+ var target = event.target;
3659
+ this.cursorPosition = target === null || target === void 0 ? void 0 : target.selectionStart;
3660
+ },
3663
3661
  setCountryCode: function setCountryCode(locale, focusPhoneNumberInput) {
3664
3662
  var _this7 = this;
3665
3663