@eturnity/eturnity_reusable_components 7.32.1-qa-elisee-7.32.1 → 7.33.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.32.1-qa-elisee-7.32.1",
3
+ "version": "7.33.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -73,6 +73,7 @@
73
73
  <SelectWrapper v-if="showSelect">
74
74
  <Divider />
75
75
  <Select
76
+ :disabled="isSelectDisabled"
76
77
  :select-width="`${selectWidth}px`"
77
78
  :show-border="false"
78
79
  @input-change="$emit('select-change', $event)"
@@ -511,6 +512,10 @@
511
512
  type: [String, Number],
512
513
  default: null,
513
514
  },
515
+ isSelectDisabled: {
516
+ type: Boolean,
517
+ default: false,
518
+ },
514
519
  },
515
520
  data() {
516
521
  return {
@@ -13,7 +13,7 @@
13
13
  <LabelWrapper
14
14
  v-if="label"
15
15
  :data-id="labelDataId"
16
- :info-text-message="!!infoTextMessage"
16
+ :info-text-message="!!infoTextMessage || !!$slots.infoText"
17
17
  >
18
18
  <InputLabel
19
19
  :font-color="
@@ -181,6 +181,7 @@
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'
@@ -733,9 +734,9 @@
733
734
  this.blur()
734
735
  this.$emit('input-change', e)
735
736
  },
736
- optionHovered(e) {
737
+ optionHovered: debounce(function (e) {
737
738
  this.hoveredValue = e
738
- },
739
+ }, 300),
739
740
  mouseEnterHandler() {
740
741
  if (this.hoverDropdown) {
741
742
  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
+ }
@@ -1,6 +0,0 @@
1
- <svg width="16" height="16" viewBox="12 12 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M20 13L27 16.8175L26.0477 18.4379L20 15.1397L13.9523 18.4379L13 16.8175L20 13Z" fill="#263238"/>
3
- <path d="M17.1006 19.1906L20.0001 17.6078L22.8996 19.1906" stroke="#263238" stroke-width="2"/>
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="M20 21.5621L22.6508 23.0078L21.6985 24.6282L20 23.7019L18.3015 24.6282L17.3492 23.0078L20 21.5621ZM16.1269 25.8141L13.9523 27L13 25.3797L15.1746 24.1937L16.1269 25.8141ZM26.0477 27L23.8731 25.8141L24.8254 24.1937L27 25.3797L26.0477 27Z" fill="#263238"/>
5
- <path d="M20.9662 22.9146H19.0332L19.0332 18.2928H20.9662L20.9662 22.9146Z" fill="#263238"/>
6
- </svg>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
3
- <svg width="800px" height="800px" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
- <g id="copy" fill="none" transform="translate(85.333333, 42.666667)">
6
- <path d="M341.333333,85.3333333 L341.333333,405.333333 L85.3333333,405.333333 L85.3333333,85.3333333 L341.333333,85.3333333 Z M298.666667,128 L128,128 L128,362.666667 L298.666667,362.666667 L298.666667,128 Z M234.666667,7.10542736e-15 L234.666667,42.6666667 L42.6666667,42.6666667 L42.6666667,298.666667 L1.42108547e-14,298.666667 L1.42108547e-14,7.10542736e-15 L234.666667,7.10542736e-15 Z">
7
- </path>
8
- </g>
9
- </g>
10
- </svg>