@eturnity/eturnity_reusable_components 8.37.1-EPDM-16633.1 → 8.37.1-EPDM-16401.0
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
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
<ParentDropdown
|
|
4
4
|
:dropdown-text="dropdownText ? dropdownText : 'Default view'"
|
|
5
5
|
:is-open="isDropdownOpen"
|
|
6
|
-
:number-of-filters-applied="numberOfFiltersApplied"
|
|
7
6
|
@on-toggle="onToggleDropdown()"
|
|
8
7
|
/>
|
|
9
8
|
<FilterSettings
|
|
@@ -75,11 +74,6 @@
|
|
|
75
74
|
closeDropdown: {
|
|
76
75
|
required: false,
|
|
77
76
|
},
|
|
78
|
-
activeFilterView: {
|
|
79
|
-
type: Object,
|
|
80
|
-
default: null,
|
|
81
|
-
required: false,
|
|
82
|
-
},
|
|
83
77
|
},
|
|
84
78
|
data() {
|
|
85
79
|
return {
|
|
@@ -88,14 +82,6 @@
|
|
|
88
82
|
preventOutsideClick: false,
|
|
89
83
|
}
|
|
90
84
|
},
|
|
91
|
-
computed: {
|
|
92
|
-
numberOfFiltersApplied() {
|
|
93
|
-
const filterColumns = this.activeFilterView?.columns?.filter(
|
|
94
|
-
(column) => column.custom_view_filter !== null
|
|
95
|
-
)
|
|
96
|
-
return filterColumns?.length > 0 ? filterColumns.length : 0
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
85
|
watch: {
|
|
100
86
|
closeDropdown(newVal) {
|
|
101
87
|
if (newVal) {
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
<TitleWrapper :is-open="isOpen">
|
|
7
7
|
<TitleText>
|
|
8
8
|
{{ dropdownText }}
|
|
9
|
-
<Counter v-if="numberOfFiltersApplied">
|
|
10
|
-
{{ numberOfFiltersApplied }}
|
|
11
|
-
</Counter>
|
|
12
9
|
</TitleText>
|
|
13
10
|
<ArrowWrapper>
|
|
14
11
|
<Icon
|
|
@@ -58,18 +55,6 @@
|
|
|
58
55
|
|
|
59
56
|
const TitleText = styled.div`
|
|
60
57
|
font-size: 13px;
|
|
61
|
-
display: flex;
|
|
62
|
-
gap: 10px;
|
|
63
|
-
`
|
|
64
|
-
|
|
65
|
-
const Counter = styled.div`
|
|
66
|
-
border-radius: 8px;
|
|
67
|
-
padding: 0 6px;
|
|
68
|
-
background: ${(props) => props.theme.semanticColors.purple['100']};
|
|
69
|
-
color: ${(props) => props.theme.colors.primary};
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: center;
|
|
73
58
|
`
|
|
74
59
|
|
|
75
60
|
const ArrowWrapper = styled.div`
|
|
@@ -90,7 +75,6 @@
|
|
|
90
75
|
IconWrapper,
|
|
91
76
|
TitleWrapper,
|
|
92
77
|
TitleText,
|
|
93
|
-
Counter,
|
|
94
78
|
ArrowWrapper,
|
|
95
79
|
},
|
|
96
80
|
props: {
|
|
@@ -102,11 +86,6 @@
|
|
|
102
86
|
required: true,
|
|
103
87
|
default: 'View',
|
|
104
88
|
},
|
|
105
|
-
numberOfFiltersApplied: {
|
|
106
|
-
required: false,
|
|
107
|
-
default: 0,
|
|
108
|
-
type: Number,
|
|
109
|
-
},
|
|
110
89
|
},
|
|
111
90
|
}
|
|
112
91
|
</script>
|