@eturnity/eturnity_reusable_components 1.2.57 → 1.2.59
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()
|
@@ -80,20 +80,20 @@ const InputContainer = styled('div', inputProps)`
|
|
80
80
|
textarea {
|
81
81
|
border: ${(props) =>
|
82
82
|
props.isError
|
83
|
-
?
|
84
|
-
:
|
83
|
+
? `1px solid ${props.theme.colors.red} !important`
|
84
|
+
: `1px solid ${props.theme.colors.grey3} !important`};
|
85
85
|
padding: ${(props) =>
|
86
|
-
props.hasUnit ? '11px 40px 11px 10px' : '
|
87
|
-
border-radius: 4px;
|
88
|
-
font-size: ${(props) =>
|
89
|
-
color: ${(props) => props.theme.colors.
|
86
|
+
props.hasUnit ? '11px 40px 11px 10px !important' : '15px !important'};
|
87
|
+
border-radius: 4px !important;
|
88
|
+
font-size: ${(props) => `${props.fontSize} !important`};
|
89
|
+
color: ${(props) => `${props.theme.colors.grey1} !important`};
|
90
90
|
width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
|
91
91
|
max-width: 100%;
|
92
92
|
box-sizing: border-box; // to allow width of 100% with padding
|
93
93
|
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'inherit')};
|
94
94
|
|
95
95
|
&::placeholder {
|
96
|
-
color: ${(props) => props.theme.colors.grey2};
|
96
|
+
color: ${(props) => `${props.theme.colors.grey2} !important`};
|
97
97
|
}
|
98
98
|
|
99
99
|
&:focus {
|
@@ -172,7 +172,7 @@ export default {
|
|
172
172
|
},
|
173
173
|
fontSize: {
|
174
174
|
required: false,
|
175
|
-
default: '
|
175
|
+
default: '13px'
|
176
176
|
},
|
177
177
|
inputWidth: {
|
178
178
|
required: false,
|