bk-magic-vue 2.5.2 → 2.5.3-beta.2

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.
@@ -7687,6 +7687,9 @@
7687
7687
  if (shouldEmitInput) {
7688
7688
  this.$emit('input', now);
7689
7689
  }
7690
+ },
7691
+ visualValue: function visualValue(val) {
7692
+ this.focusedTime.time = this.internalValue.map(extractTime);
7690
7693
  }
7691
7694
  },
7692
7695
  mounted: function mounted() {
@@ -27119,7 +27122,7 @@
27119
27122
  var isIOS = isBrowser$2 && /iPhone|iPad|iPod/.test(navigator.platform) && !window.MSStream;
27120
27123
  var defaultProps = {
27121
27124
  a11y: true,
27122
- allowHTML: false,
27125
+ allowHTML: true,
27123
27126
  animateFill: true,
27124
27127
  animation: 'shift-away',
27125
27128
  appendTo: function appendTo() {
@@ -29507,6 +29510,22 @@
29507
29510
  event.preventDefault();
29508
29511
  this.handleNumberDelete(event);
29509
29512
  }
29513
+ if (document.getSelection().type !== 'Range') {
29514
+ if (value.indexOf('-') === 0 && target.selectionStart === 0) {
29515
+ var keyCodeList = [48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
29516
+ 96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
29517
+ 189,
29518
+ 109,
29519
+ 190,
29520
+ 110
29521
+ ];
29522
+ if (keyCodeList.indexOf(keyCode) > -1) {
29523
+ event.stopPropagation();
29524
+ event.preventDefault();
29525
+ return false;
29526
+ }
29527
+ }
29528
+ }
29510
29529
  }
29511
29530
  this.$emit('keydown', value, event);
29512
29531
  },