@eturnity/eturnity_reusable_components 7.12.7--EPDM-5518.2 → 7.12.7--EPDM-5518.3

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": "7.12.7--EPDM-5518.2",
3
+ "version": "7.12.7--EPDM-5518.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -0,0 +1,3 @@
1
+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5 10C7.76142 10 10 7.76142 10 5C10 2.23858 7.76142 0 5 0C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10ZM5.875 5.05243V2.125H4.125V5.92743L6.19061 7.47663L7.24061 6.07663L5.875 5.05243Z" fill="white"/>
3
+ </svg>
@@ -8,7 +8,11 @@
8
8
  :hasLabel="!!label && label.length > 0"
9
9
  :alignItems="alignItems"
10
10
  >
11
- <label-wrapper v-if="label" :data-id="labelDataId">
11
+ <label-wrapper
12
+ v-if="label"
13
+ :data-id="labelDataId"
14
+ :shownDropdown="shownDropdown"
15
+ >
12
16
  <input-label
13
17
  :fontColor="
14
18
  labelFontColor || colorMode == 'dark' ? 'white' : 'eturnityGrey'
@@ -45,6 +49,7 @@
45
49
  :showBorder="showBorder"
46
50
  :data-id="dataId"
47
51
  :paddingLeft="paddingLeft"
52
+ :shownDropdown="shownDropdown"
48
53
  >
49
54
  <draggableInputHandle
50
55
  v-if="isDraggable && !isSearchBarVisible"
@@ -201,10 +206,12 @@ const Container = styled('div', inputProps)`
201
206
  position: relative;
202
207
  display: inline-block;
203
208
  `
204
- const LabelWrapper = styled.div`
209
+
210
+ const LabelAttrs = { shownDropdown: Boolean }
211
+ const LabelWrapper = styled('div', LabelAttrs)`
205
212
  display: inline-grid;
206
213
  grid-template-columns: auto auto;
207
- grid-gap: 12px;
214
+ grid-gap: ${(props) => (props.shownDropdown ? '0' : '12px')};
208
215
  align-items: center;
209
216
  justify-content: start;
210
217
  `
@@ -226,14 +233,17 @@ const selectButtonAttrs = {
226
233
  selectMinHeight: String,
227
234
  isSearchBarVisible: Boolean,
228
235
  showBorder: Boolean,
229
- paddingLeft: String
236
+ paddingLeft: String,
237
+ shownDropdown: Boolean
230
238
  }
231
239
  const selectButton = styled('div', selectButtonAttrs)`
232
240
  position: relative;
233
241
  box-sizing: border-box;
234
242
  border-radius: 4px;
235
243
  ${(props) =>
236
- props.isSearchBarVisible ? '' : `padding-left: ${props.paddingLeft}`};
244
+ props.isSearchBarVisible
245
+ ? ''
246
+ : `padding-left: ${props.shownDropdown ? '0' : props.paddingLeft}`};
237
247
  text-align: left;
238
248
  min-height: ${(props) =>
239
249
  props.selectHeight
@@ -440,6 +450,10 @@ export default {
440
450
  noMaxWidth: {
441
451
  type: Boolean,
442
452
  default: false
453
+ },
454
+ shownDropdown: {
455
+ type: Boolean,
456
+ default: false
443
457
  }
444
458
  },
445
459
 
@@ -529,7 +543,14 @@ export default {
529
543
  searchChange(value) {
530
544
  this.textSearch = value
531
545
  this.$emit('search-change', value)
532
- this.$refs.dropdown.$children
546
+ const children =
547
+ this.$refs.dropdown.$children &&
548
+ this.$refs.dropdown.$children[0] &&
549
+ this.$refs.dropdown.$children.length === 1 &&
550
+ this.$refs.dropdown.$children[0].$children.length
551
+ ? this.$refs.dropdown.$children[0].$children
552
+ : this.$refs.dropdown.$children
553
+ children
533
554
  .map((component) => component.$el)
534
555
  .forEach((el) => {
535
556
  if (!el.textContent.toLowerCase().includes(value.toLowerCase())) {
@@ -90,6 +90,7 @@ const paginationLink = styled.div`
90
90
  border-radius: 3px;
91
91
  white-space: nowrap;
92
92
  cursor: pointer;
93
+ color: ${(props) => props.theme.colors.brightBlue};
93
94
 
94
95
  &.active {
95
96
  color: ${(props) => props.theme.colors.white};
@@ -98,7 +99,9 @@ const paginationLink = styled.div`
98
99
  border-radius: 4px;
99
100
  }
100
101
  `
101
- const arrowText = styled.div``
102
+ const arrowText = styled.div`
103
+ color: ${(props) => props.theme.colors.brightBlue};
104
+ `
102
105
  const arrowIconContainer = styled.div`
103
106
  margin: 0 10px;
104
107
  display: flex;