@eturnity/eturnity_reusable_components 9.13.1 → 9.13.3
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
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.32807 3.58209C7.5221 3.45418 7.7862 3.47581 7.95697 3.64655C8.12773 3.81731 8.14933 4.08141 8.02142 4.27545L7.95697 4.35358L4.31049 8.00006L7.95697 11.6465C8.15214 11.8417 8.15194 12.1583 7.95697 12.3536C7.76171 12.5488 7.4452 12.5488 7.24994 12.3536L2.96674 8.07135C2.92772 8.03233 2.92779 7.96881 2.96674 7.92975L7.24994 3.64655L7.32807 3.58209ZM12.3281 3.58209C12.5221 3.45418 12.7862 3.47581 12.957 3.64655C13.1277 3.81731 13.1493 4.08141 13.0214 4.27545L12.957 4.35358L9.31049 8.00006L12.957 11.6465C13.1521 11.8417 13.1519 12.1583 12.957 12.3536C12.7617 12.5488 12.4452 12.5488 12.2499 12.3536L7.96674 8.07135C7.92772 8.03233 7.92779 7.96881 7.96674 7.92975L12.2499 3.64655L12.3281 3.58209Z" fill="#2C2D2F"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.04651 3.64636C3.21729 3.47558 3.48136 3.45396 3.67542 3.58191L3.75354 3.64636L8.03674 7.92957C8.07565 7.96863 8.07575 8.03216 8.03674 8.07117L3.75354 12.3534C3.55828 12.5487 3.24177 12.5487 3.04651 12.3534C2.8515 12.1581 2.85133 11.8415 3.04651 11.6464L6.69299 7.99988L3.04651 4.35339L2.98206 4.27527C2.85411 4.08122 2.87573 3.81714 3.04651 3.64636ZM8.04651 3.64636C8.21729 3.47558 8.48136 3.45396 8.67542 3.58191L8.75354 3.64636L13.0367 7.92957C13.0757 7.96863 13.0757 8.03216 13.0367 8.07117L8.75354 12.3534C8.55828 12.5487 8.24177 12.5487 8.04651 12.3534C7.8515 12.1581 7.85133 11.8415 8.04651 11.6464L11.693 7.99988L8.04651 4.35339L7.98206 4.27527C7.85411 4.08122 7.87573 3.81714 8.04651 3.64636Z" fill="#263238"/>
|
|
3
|
+
</svg>
|
|
@@ -892,6 +892,11 @@
|
|
|
892
892
|
document.removeEventListener('click', this.clickOutside)
|
|
893
893
|
},
|
|
894
894
|
methods: {
|
|
895
|
+
getDropdownTopScrollYOffset() {
|
|
896
|
+
return this.shouldUseTeleport || this.isFixedDropdownPosition
|
|
897
|
+
? 0
|
|
898
|
+
: window.scrollY
|
|
899
|
+
},
|
|
895
900
|
focus() {
|
|
896
901
|
this.isActive = true
|
|
897
902
|
},
|
|
@@ -1006,7 +1011,7 @@
|
|
|
1006
1011
|
const dropdownHeight = this.$refs.dropdown.$el.clientHeight
|
|
1007
1012
|
const dropdownWrapperRelativeHeight =
|
|
1008
1013
|
dropdownWrapperEl.getBoundingClientRect().top +
|
|
1009
|
-
|
|
1014
|
+
this.getDropdownTopScrollYOffset() +
|
|
1010
1015
|
DROPDOWN_HEIGHT_OFFSET
|
|
1011
1016
|
|
|
1012
1017
|
const top =
|
|
@@ -1099,7 +1104,8 @@
|
|
|
1099
1104
|
const selectRef = this.$refs.select
|
|
1100
1105
|
if (selectRef) {
|
|
1101
1106
|
const currentTopPosition =
|
|
1102
|
-
selectRef.$el.getBoundingClientRect().top +
|
|
1107
|
+
selectRef.$el.getBoundingClientRect().top +
|
|
1108
|
+
this.getDropdownTopScrollYOffset()
|
|
1103
1109
|
if (this.selectTopPosition !== currentTopPosition) {
|
|
1104
1110
|
this.selectTopPosition = currentTopPosition
|
|
1105
1111
|
}
|