@eturnity/eturnity_reusable_components 8.13.13-EPDM-14533.0 → 8.13.13-EPDM-12618.4

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.13.13-EPDM-14533.0",
3
+ "version": "8.13.13-EPDM-12618.4",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -169,9 +169,7 @@
169
169
  position: relative;
170
170
  font-size: ${(props) => (props.fontSize ? props.fontSize : '16px')};
171
171
  color: ${(props) =>
172
- props.isError
173
- ? props.theme.colors.grey6
174
- : props.isDisabled
172
+ props.isDisabled
175
173
  ? props.theme.colors.grey2
176
174
  : props.fontColor
177
175
  ? props.fontColor + ' !important'
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <SpinnerContainer v-if="fullWidth" data-test-id="spinner_full_container">
3
3
  <Container>
4
- <SpinnerWrapper data-test-id="spinner_full_wrapper" :size="size">
4
+ <SpinnerWrapper data-test-id="spinner_full_wrapper">
5
5
  <img
6
6
  :class="{ white: isWhite }"
7
7
  data-test-id="spinner_full_icon"
@@ -16,7 +16,7 @@
16
16
  data-test-id="spinner_container"
17
17
  :limited-to-modal="limitedToModal"
18
18
  >
19
- <SpinnerWrapper data-test-id="spinner_wrapper" :size="size">
19
+ <SpinnerWrapper data-test-id="spinner_wrapper">
20
20
  <img
21
21
  :class="{ white: isWhite }"
22
22
  data-test-id="spinner_full_icon"
@@ -55,7 +55,7 @@
55
55
  width: ${(props) => (props.limitedToModal ? '100%' : 'inherit')};
56
56
  `
57
57
 
58
- const SpinnerWrapper = styled('div', { size: String })`
58
+ const SpinnerWrapper = styled.div`
59
59
  width: ${(props) => (props.size ? props.size : '60px')};
60
60
  height: auto;
61
61
 
@@ -78,10 +78,13 @@
78
78
  v-else
79
79
  class="inputField"
80
80
  :disabled="customInputDisabled"
81
+ :error-message="item.errorMessage"
81
82
  :font-color="showArchived ? theme.colors.red : 'black'"
83
+ :is-error="item.isError"
82
84
  :min-width="item.value.length + 'ch'"
83
85
  :no-border="true"
84
86
  :value="item.value"
87
+ @input-blur="onCustomInputChange($event.trim())"
85
88
  @input-change="onCustomInputChange($event)"
86
89
  />
87
90
  </InputContainer>
@@ -162,7 +165,7 @@
162
165
  </OptionsItem>
163
166
  </OptionsWrapper>
164
167
  <CustomContainer
165
- v-if="inputText.length && allowFreeInputs"
168
+ v-if="getCustomName.length && allowFreeInputs"
166
169
  @click="onCustomNameClick()"
167
170
  >
168
171
  <CustomName>{{ getCustomName }}</CustomName>
@@ -226,7 +229,6 @@
226
229
  const ItemAttrs = { isNested: Boolean, showArchived: Boolean }
227
230
  const ComponentItem = styled('td', ItemAttrs)`
228
231
  padding-left: ${(props) => (props.isNested ? '14px !important' : '0')};
229
- overflow: hidden;
230
232
  text-overflow: ellipsis;
231
233
  padding-right: 0 !important;
232
234
  color: ${(props) =>
@@ -558,7 +560,7 @@
558
560
  },
559
561
  computed: {
560
562
  getCustomName() {
561
- return this.inputText
563
+ return this.inputText.trim()
562
564
  },
563
565
  theme() {
564
566
  return theme
@@ -652,7 +654,7 @@
652
654
  },
653
655
  onCustomNameClick() {
654
656
  this.wasClicked = true
655
- this.$emit('on-custom-input-name', this.inputText)
657
+ this.$emit('on-custom-input-name', this.getCustomName)
656
658
  this.$emit('toggle-dropdown-open', { close: true })
657
659
  this.inputText = ''
658
660
  },