@eturnity/eturnity_reusable_components 7.30.3-EPDM-11226.0 → 7.30.3-EPDM-10647.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.30.3-EPDM-11226.0",
3
+ "version": "7.30.3-EPDM-10647.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -124,7 +124,7 @@ export default {
124
124
  },
125
125
  width: {
126
126
  required: false,
127
- default: '200px'
127
+ default: '165px'
128
128
  },
129
129
  maxWidth: {
130
130
  type: String,
@@ -75,6 +75,7 @@
75
75
  <Select
76
76
  :showBorder="false"
77
77
  :selectWidth="`${selectWidth}px`"
78
+ :disabled="isSelectDisabled"
78
79
  @input-change="$emit('select-change', $event)"
79
80
  >
80
81
  <template #selector>
@@ -517,6 +518,10 @@ export default {
517
518
  selectValue: {
518
519
  type: [String, Number],
519
520
  default: null
521
+ },
522
+ isSelectDisabled: {
523
+ type: Boolean,
524
+ default: false
520
525
  }
521
526
  },
522
527
  computed: {
@@ -181,6 +181,7 @@ import InfoText from '../../infoText'
181
181
  import icon from '../../icon'
182
182
  import inputText from '../inputText'
183
183
  import draggableInputHandle from '../../draggableInputHandle'
184
+ import { debounce } from '../../../utils'
184
185
 
185
186
  const CARET_WIDTH = '30px'
186
187
  const BORDER_WIDTH = '1px'
@@ -652,9 +653,9 @@ export default {
652
653
  this.blur()
653
654
  this.$emit('input-change', e)
654
655
  },
655
- optionHovered(e) {
656
+ optionHovered: debounce(function (e) {
656
657
  this.hoveredValue = e
657
- },
658
+ }, 300),
658
659
  mouseEnterHandler() {
659
660
  if (this.hoverDropdown) {
660
661
  this.focus()
@@ -0,0 +1,12 @@
1
+ export function debounce(fn, wait) {
2
+ let timer
3
+ return function (...args) {
4
+ if (timer) {
5
+ clearTimeout(timer)
6
+ }
7
+ const context = this
8
+ timer = setTimeout(() => {
9
+ fn.apply(context, args)
10
+ }, wait)
11
+ }
12
+ }