@eturnity/eturnity_reusable_components 1.2.56 → 1.2.58
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
package/src/App.vue
CHANGED
@@ -51,6 +51,7 @@
|
|
51
51
|
label="that is a label"
|
52
52
|
alignItems="vertical"
|
53
53
|
colorMode="dark"
|
54
|
+
isSearchable="true"
|
54
55
|
@input-change="value = $event"
|
55
56
|
@search-change="searchValue = $event"
|
56
57
|
>
|
@@ -66,50 +67,8 @@
|
|
66
67
|
>
|
67
68
|
</template>
|
68
69
|
</Select>
|
69
|
-
|
70
|
-
|
71
|
-
selectWidth="100%"
|
72
|
-
optionWidth="50%"
|
73
|
-
label="that is a label"
|
74
|
-
alignItems="vertical"
|
75
|
-
colorMode="dark"
|
76
|
-
@input-change="value = $event"
|
77
|
-
@search-change="searchValue = $event"
|
78
|
-
>
|
79
|
-
<template #selector="{ selectedValue }">
|
80
|
-
value selected: {{ selectedValue }}
|
81
|
-
</template>
|
82
|
-
<template #dropdown>
|
83
|
-
<Option
|
84
|
-
v-for="opt in filteredOptionList"
|
85
|
-
:key="opt.id"
|
86
|
-
:value="opt.val"
|
87
|
-
>{{ opt.lookFor }}</Option
|
88
|
-
>
|
89
|
-
</template>
|
90
|
-
</Select>
|
91
|
-
<Select
|
92
|
-
:value="value"
|
93
|
-
selectWidth="100%"
|
94
|
-
optionWidth="50%"
|
95
|
-
label="that is a label"
|
96
|
-
alignItems="vertical"
|
97
|
-
colorMode="dark"
|
98
|
-
@input-change="value = $event"
|
99
|
-
@search-change="searchValue = $event"
|
100
|
-
>
|
101
|
-
<template #selector="{ selectedValue }">
|
102
|
-
value selected: {{ selectedValue }}
|
103
|
-
</template>
|
104
|
-
<template #dropdown>
|
105
|
-
<Option
|
106
|
-
v-for="opt in filteredOptionList"
|
107
|
-
:key="opt.id"
|
108
|
-
:value="opt.val"
|
109
|
-
>{{ opt.lookFor }}</Option
|
110
|
-
>
|
111
|
-
</template>
|
112
|
-
</Select>
|
70
|
+
|
71
|
+
|
113
72
|
{{ filteredOptionList }}
|
114
73
|
|
115
74
|
<iconCollection />
|
@@ -158,7 +117,11 @@ export default {
|
|
158
117
|
{ id: 'a', val: 'A', lookFor: 'babababa' },
|
159
118
|
{ id: 'b', val: 'B', lookFor: 'abab' },
|
160
119
|
{ id: 'c', val: 'C', lookFor: 'ccc' },
|
161
|
-
{ id: 'd', val: 'D', lookFor: 'ddd' }
|
120
|
+
{ id: 'd', val: 'D', lookFor: 'ddd' },
|
121
|
+
{ id: 'e', val: 'E', lookFor: 'dddee' },
|
122
|
+
{ id: 'f', val: 'F', lookFor: 'ddfff' },
|
123
|
+
{ id: 'g', val: 'G', lookFor: 'dggg' },
|
124
|
+
{ id: 'h', val: 'H', lookFor: 'dddhhh' },
|
162
125
|
],
|
163
126
|
searchValue: ''
|
164
127
|
}
|
@@ -42,7 +42,8 @@
|
|
42
42
|
:fontColor="buttonFontColor || colorMode=='dark'?'white':'black'"
|
43
43
|
:value="textSearch"
|
44
44
|
@keydown.stop="onKeyDown"
|
45
|
-
@input-change="searchChange"
|
45
|
+
@input-change="searchChange"
|
46
|
+
@click.native.stop />
|
46
47
|
<selector v-else>
|
47
48
|
<slot name="selector" :selectedValue="selectedValue"></slot>
|
48
49
|
</selector>
|
@@ -103,6 +104,7 @@ const Caret = styled.div`
|
|
103
104
|
width: 30px;
|
104
105
|
min-width: 30px;
|
105
106
|
height: 100%;
|
107
|
+
align-items: stretch
|
106
108
|
padding-top: 5px;
|
107
109
|
cursor: pointer;
|
108
110
|
margin-left: auto;
|
@@ -323,7 +325,6 @@ const InputWrapper = styled('div', inputAttrs)`
|
|
323
325
|
this.isActive=false
|
324
326
|
},
|
325
327
|
toggleDropdown(){
|
326
|
-
if(this.isSearchBarVisible){return}
|
327
328
|
this.isDropdownOpen=!this.isDropdownOpen
|
328
329
|
},
|
329
330
|
toggleCaretDropdown(){
|
@@ -372,7 +373,7 @@ const InputWrapper = styled('div', inputAttrs)`
|
|
372
373
|
},
|
373
374
|
clickOutside(event) {
|
374
375
|
if(!this.isClickOutsideActive) return
|
375
|
-
if (this.$el==event.target || this.$el.contains(event.target)) {
|
376
|
+
if (this.$refs.select.$el==event.target || this.$refs.select.$el.contains(event.target)) {
|
376
377
|
return
|
377
378
|
}else{
|
378
379
|
this.closeDropdown()
|
@@ -117,7 +117,7 @@ import styled from "vue-styled-components"
|
|
117
117
|
border:1px solid ${props=>props.isActive?props.secondaryColor:props.inactiveColor};
|
118
118
|
display:flex;
|
119
119
|
align-items:center;
|
120
|
-
font-size:
|
120
|
+
font-size: 13px;
|
121
121
|
line-height: 1;
|
122
122
|
text-align: center;
|
123
123
|
padding: 10px;
|