@eturnity/eturnity_reusable_components 7.12.7--EPDM-5518.0 → 7.12.7--EPDM-5518.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
@@ -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: {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<container
|
4
4
|
:checkColor="checkColor"
|
5
5
|
:size="size"
|
6
|
-
:hasLabel="!!label.length"
|
6
|
+
:hasLabel="label && !!label.length"
|
7
7
|
:backgroundColor="backgroundColor"
|
8
8
|
:isChecked="isChecked"
|
9
9
|
:isDisabled="isDisabled"
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<div>
|
19
19
|
<span class="checkmark"></span>
|
20
20
|
</div>
|
21
|
-
<label-text v-if="!!label.length">{{ label }}</label-text>
|
21
|
+
<label-text v-if="label && !!label.length">{{ label }}</label-text>
|
22
22
|
</container>
|
23
23
|
</component-wrapper>
|
24
24
|
</template>
|