@eturnity/eturnity_reusable_components 8.16.2--EPDM-14330.9 → 8.16.2--EPDM-14330.11

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "8.16.2--EPDM-14330.9",
3
+ "version": "8.16.2--EPDM-14330.11",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -19,7 +19,7 @@
19
19
  v-for="(item, index) in selectedSort"
20
20
  :key="index"
21
21
  >
22
- <LeadingText>{{ $gettext('where') }}</LeadingText>
22
+ <LeadingText>{{ $gettext('if') }}</LeadingText>
23
23
  <SelectComponent
24
24
  ref="selectSortDropdown"
25
25
  align-items="vertical"
@@ -191,7 +191,7 @@
191
191
  </template>
192
192
  <template v-else>
193
193
  <SortDropdownContainer>
194
- <LeadingText>{{ $gettext('where') }}</LeadingText>
194
+ <LeadingText>{{ $gettext('if') }}</LeadingText>
195
195
  <SelectComponent
196
196
  ref="selectSortDropdown"
197
197
  align-items="vertical"
@@ -250,7 +250,7 @@
250
250
  </template>
251
251
  </SortOptionsContainer>
252
252
  <BottomContainer>
253
- <PlaceholderText>{{ $gettext('where') }}</PlaceholderText>
253
+ <PlaceholderText>{{ $gettext('if') }}</PlaceholderText>
254
254
  <ButtonIcon
255
255
  icon-name="plus_button"
256
256
  :text="$gettext('add_filter')"
@@ -14,6 +14,7 @@
14
14
  :disable-hover="disableHover"
15
15
  :fill-type="fillType"
16
16
  :hovered-color="hoveredColor"
17
+ :show-count="showCount"
17
18
  >
18
19
  <i data-test-id="icon_svg" v-html="icon.html"></i>
19
20
  </IconImage>
@@ -113,6 +114,10 @@
113
114
  type: Boolean,
114
115
  default: false,
115
116
  },
117
+ showCount: {
118
+ type: Boolean,
119
+ default: false,
120
+ },
116
121
  })
117
122
 
118
123
  const Wrapper = styled('div', {
@@ -170,6 +175,7 @@
170
175
  animation: String,
171
176
  fillType: String,
172
177
  disableHover: Boolean,
178
+ showCount: Boolean,
173
179
  }
174
180
  const IconImage = styled('div', IconImageAttrs)`
175
181
  animation: ${(props) => props.animation};
@@ -180,7 +186,8 @@
180
186
  background-color: ${(props) =>
181
187
  props.backgroundColor ? props.backgroundColor : 'transparent'};
182
188
  padding: ${(props) => (props.backgroundColor ? '3px' : '0')};
183
- border-radius: ${(props) => (props.backgroundColor ? '8px' : '0')};
189
+ border-radius: ${(props) =>
190
+ props.showCount ? '8px 0 0 8px' : props.backgroundColor ? '8px' : '0'};
184
191
  }
185
192
  svg path:not(.fix) {
186
193
  ${({ theme, color, fillType }) =>