@eturnity/eturnity_reusable_components 7.4.4-EPDM-7260.7 → 7.4.4-EPDM-7260.8
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
@@ -261,6 +261,12 @@
|
|
261
261
|
:text="buttonText.cancel"
|
262
262
|
@click.native="$emit('on-cancel-view')"
|
263
263
|
/>
|
264
|
+
<reset-container v-if="!filterViews || !filterViews.length">
|
265
|
+
<reset-button @click="$emit('on-reset-filters')">
|
266
|
+
<icon :name="'update'" size="14px" :color="theme.colors.blue" />
|
267
|
+
<div>{{ $gettext('reset_filters') }}</div>
|
268
|
+
</reset-button>
|
269
|
+
</reset-container>
|
264
270
|
</button-container>
|
265
271
|
</container-wrapper>
|
266
272
|
</template>
|
@@ -328,6 +334,16 @@ const ButtonContainer = styled.div`
|
|
328
334
|
padding: 15px;
|
329
335
|
`
|
330
336
|
|
337
|
+
const ResetContainer = styled.div`
|
338
|
+
display: grid;
|
339
|
+
align-content: center;
|
340
|
+
margin-left: auto;
|
341
|
+
div {
|
342
|
+
margin-top: 0;
|
343
|
+
align-self: center;
|
344
|
+
}
|
345
|
+
`
|
346
|
+
|
331
347
|
const ColumnContainer = styled.div``
|
332
348
|
|
333
349
|
const DragContainer = styled.div`
|
@@ -493,7 +509,8 @@ export default {
|
|
493
509
|
ViewContainer,
|
494
510
|
DeleteIcon,
|
495
511
|
UpperContainer,
|
496
|
-
ResetButton
|
512
|
+
ResetButton,
|
513
|
+
ResetContainer
|
497
514
|
},
|
498
515
|
props: {
|
499
516
|
filterData: {
|
@@ -43,6 +43,7 @@
|
|
43
43
|
:fontColor="
|
44
44
|
buttonFontColor || colorMode == 'dark' ? 'white' : 'black'
|
45
45
|
"
|
46
|
+
:fontSize="fontSize"
|
46
47
|
:hasError="hasError"
|
47
48
|
:isSearchBarVisible="isSearchBarVisible"
|
48
49
|
:disabled="disabled"
|
@@ -50,8 +51,11 @@
|
|
50
51
|
:showBorder="showBorder"
|
51
52
|
:data-id="dataId"
|
52
53
|
:isDraggable="isDraggable"
|
53
|
-
>
|
54
|
-
<draggableInputHandle
|
54
|
+
>
|
55
|
+
<draggableInputHandle
|
56
|
+
v-if="isDraggable && !isSearchBarVisible"
|
57
|
+
:height="selectHeight"
|
58
|
+
/>
|
55
59
|
<inputText
|
56
60
|
v-if="isSearchBarVisible"
|
57
61
|
ref="searchInput"
|
@@ -108,6 +112,7 @@
|
|
108
112
|
dropdownFontColor || colorMode == 'dark' ? 'white' : 'black'
|
109
113
|
"
|
110
114
|
:selectedValue="selectedValue"
|
115
|
+
:fontSize="fontSize"
|
111
116
|
@option-selected="optionSelected"
|
112
117
|
@option-hovered="optionHovered"
|
113
118
|
@mouseleave="optionLeave"
|
@@ -220,12 +225,15 @@ const selectButtonAttrs = {
|
|
220
225
|
isSearchBarVisible: Boolean,
|
221
226
|
showBorder: Boolean,
|
222
227
|
isDraggable: Boolean,
|
228
|
+
fontSize: String
|
223
229
|
}
|
224
230
|
const selectButton = styled('div', selectButtonAttrs)`
|
231
|
+
font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
|
225
232
|
position: relative;
|
226
233
|
box-sizing: border-box;
|
227
234
|
border-radius: 4px;
|
228
|
-
padding-left
|
235
|
+
padding-left: ${(props) =>
|
236
|
+
props.isSearchBarVisible ? '0' : props.isDraggable ? '30px' : '15px'};
|
229
237
|
text-align: left;
|
230
238
|
border-radius: 4px;
|
231
239
|
min-height: ${(props) =>
|
@@ -256,8 +264,10 @@ const selectButton = styled('div', selectButtonAttrs)`
|
|
256
264
|
: props.fontColor};
|
257
265
|
${(props) => (props.disabled ? 'pointer-events: none' : '')};
|
258
266
|
overflow: hidden;
|
259
|
-
&
|
260
|
-
border-right
|
267
|
+
& > .handle {
|
268
|
+
border-right: ${(props) =>
|
269
|
+
props.hasError ? props.theme.colors.red : props.theme.colors.grey4}
|
270
|
+
1px solid;
|
261
271
|
}
|
262
272
|
`
|
263
273
|
const selectDropdownAttrs = {
|
@@ -268,7 +278,8 @@ const selectDropdownAttrs = {
|
|
268
278
|
optionWidth: String,
|
269
279
|
hoveredIndex: Number,
|
270
280
|
hoveredValue: Number | String,
|
271
|
-
selectedValue: Number | String
|
281
|
+
selectedValue: Number | String,
|
282
|
+
fontSize: String
|
272
283
|
}
|
273
284
|
const selectDropdown = styled('div', selectDropdownAttrs)`
|
274
285
|
box-sizing: border-box;
|
@@ -276,6 +287,7 @@ const selectDropdown = styled('div', selectDropdownAttrs)`
|
|
276
287
|
position:absolute;
|
277
288
|
top:5px;
|
278
289
|
border:1px solid ${(props) => props.theme.colors.grey4}
|
290
|
+
font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
|
279
291
|
border-radius:4px;
|
280
292
|
display: flex;
|
281
293
|
flex-direction: column;
|