@eturnity/eturnity_reusable_components 7.45.5-qa-16-11.13 → 7.45.5-qa-16-11.13.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.
package/package.json
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
:disabled="isSelectDisabled"
|
77
77
|
:select-width="`${selectWidth}px`"
|
78
78
|
:show-border="false"
|
79
|
-
@input-change="
|
79
|
+
@input-change="handleSelectChange"
|
80
80
|
>
|
81
81
|
<template #selector>
|
82
82
|
<SelectText>{{ getSelectValue }}</SelectText>
|
@@ -345,6 +345,7 @@
|
|
345
345
|
INPUT_BLUR: 'input-blur',
|
346
346
|
PRESS_ENTER: 'on-enter-click',
|
347
347
|
INPUT_DRAG: 'on-input-drag',
|
348
|
+
SELECT_CHANGE: 'select-change',
|
348
349
|
}
|
349
350
|
|
350
351
|
export default {
|
@@ -555,9 +556,9 @@
|
|
555
556
|
return item ? item.label : '-'
|
556
557
|
},
|
557
558
|
formattedValue() {
|
558
|
-
return this.
|
559
|
-
|
560
|
-
|
559
|
+
return this.isFocused
|
560
|
+
? this.enteredValue
|
561
|
+
: this.formatWithCurrency(this.inputValue)
|
561
562
|
},
|
562
563
|
hasLength() {
|
563
564
|
return this.formattedValue !== null && this.formattedValue.length > 0
|
@@ -703,7 +704,7 @@
|
|
703
704
|
this.$nextTick(() => {
|
704
705
|
this.$refs.inputField1.$el.select()
|
705
706
|
})
|
706
|
-
this.$emit(EVENT_TYPES.INPUT_FOCUS)
|
707
|
+
this.$emit(EVENT_TYPES.INPUT_FOCUS, this.inputValue)
|
707
708
|
},
|
708
709
|
blurInput() {
|
709
710
|
if (this.disabled) {
|
@@ -736,9 +737,11 @@
|
|
736
737
|
return input + ' ' + unit
|
737
738
|
} else if (!adjustedMinValue && adjustedMinValue !== 0) {
|
738
739
|
return ''
|
739
|
-
} else if (this.isFocused
|
740
|
+
} else if (this.isFocused) {
|
741
|
+
console.log('1')
|
740
742
|
return value
|
741
743
|
} else {
|
744
|
+
console.log('hehe', this.numberToStringEnabled)
|
742
745
|
return this.numberToStringEnabled
|
743
746
|
? numberToString({
|
744
747
|
value: adjustedMinValue,
|
@@ -766,6 +769,9 @@
|
|
766
769
|
window.removeEventListener('mouseup', this.stopInteract, false)
|
767
770
|
this.blurInput()
|
768
771
|
},
|
772
|
+
handleSelectChange(value) {
|
773
|
+
this.$emit(EVENT_TYPES.SELECT_CHANGE, value)
|
774
|
+
},
|
769
775
|
},
|
770
776
|
}
|
771
777
|
</script>
|