@eturnity/eturnity_reusable_components 7.48.1-EPDM-12680.22 → 7.48.1-EPDM-12680.24

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.48.1-EPDM-12680.22",
3
+ "version": "7.48.1-EPDM-12680.24",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
Binary file
@@ -51,6 +51,7 @@
51
51
  :min-width="minWidth"
52
52
  :no-border="noBorder"
53
53
  :placeholder="displayedPlaceholder"
54
+ :show-arrow-controls="showArrowControls"
54
55
  :show-linear-unit-name="showLinearUnitName"
55
56
  :slot-size="slotSize"
56
57
  :text-align="textAlign"
@@ -195,6 +196,7 @@
195
196
  borderColor: String,
196
197
  showLinearUnitName: Boolean,
197
198
  colorMode: String,
199
+ showArrowControls: Boolean,
198
200
  }
199
201
 
200
202
  const Container = styled('div', inputProps)`
@@ -220,8 +222,16 @@
220
222
  max-height: ${(props) => props.inputHeight};
221
223
  padding: ${({ colorMode }) =>
222
224
  colorMode === 'transparent' ? '10px 15px' : '0 10px'};
223
- padding-right: ${({ slotSize, isError, showLinearUnitName, colorMode }) =>
224
- colorMode === 'transparent'
225
+ padding-right: ${({
226
+ slotSize,
227
+ isError,
228
+ showLinearUnitName,
229
+ colorMode,
230
+ showArrowControls,
231
+ }) =>
232
+ showArrowControls
233
+ ? '40px'
234
+ : colorMode === 'transparent'
225
235
  ? '0'
226
236
  : slotSize
227
237
  ? isError && !showLinearUnitName
@@ -229,7 +239,7 @@
229
239
  : 'calc(' + slotSize + ' + 10px)'
230
240
  : isError && !showLinearUnitName
231
241
  ? '24px'
232
- : '40px'};
242
+ : '5px'};
233
243
  border-radius: ${(props) =>
234
244
  props.isInteractive && props.alignItems != 'vertical'
235
245
  ? '0 4px 4px 0'
@@ -0,0 +1,98 @@
1
+ <template>
2
+ <SpinnerContainer v-if="fullWidth" data-test-id="spinner_full_container">
3
+ <Container>
4
+ <SpinnerWrapper data-test-id="spinner_full_wrapper">
5
+ <img
6
+ :class="{ white: isWhite }"
7
+ data-test-id="spinner_full_icon"
8
+ src="../../assets/gifs/spinner.gif"
9
+ :style="{ width: size, height: size }"
10
+ />
11
+ </SpinnerWrapper>
12
+ </Container>
13
+ </SpinnerContainer>
14
+ <Container
15
+ v-else
16
+ data-test-id="spinner_container"
17
+ :limited-to-modal="limitedToModal"
18
+ >
19
+ <SpinnerWrapper data-test-id="spinner_wrapper">
20
+ <img
21
+ :class="{ white: isWhite }"
22
+ data-test-id="spinner_full_icon"
23
+ src="../../assets/gifs/spinner.gif"
24
+ :style="{ width: size, height: size }"
25
+ />
26
+ </SpinnerWrapper>
27
+ </Container>
28
+ </template>
29
+
30
+ <script>
31
+ // import Spinner from "@eturnity/eturnity_reusable_components/src/components/spinner"
32
+ // <spinner size="30px" />
33
+ import styled from 'vue3-styled-components'
34
+ import SpinnerSvg from '../../assets/icons/black_spinner.svg'
35
+
36
+ const SpinnerContainer = styled.div`
37
+ position: fixed;
38
+ top: 0;
39
+ left: 0;
40
+ width: 100%;
41
+ height: 100%;
42
+ background: rgba(255, 255, 255, 0.8);
43
+ display: grid;
44
+ align-items: center;
45
+ justify-items: center;
46
+ z-index: 100;
47
+ `
48
+ const containerAttrs = { limitedToModal: Boolean }
49
+ const Container = styled('div', containerAttrs)`
50
+ display: grid;
51
+ align-items: center;
52
+ justify-items: center;
53
+ position: ${(props) => (props.limitedToModal ? 'absolute' : 'inherit')};
54
+ height: ${(props) => (props.limitedToModal ? '100%' : 'inherit')};
55
+ width: ${(props) => (props.limitedToModal ? '100%' : 'inherit')};
56
+ `
57
+
58
+ const SpinnerWrapper = styled.div`
59
+ width: ${(props) => (props.size ? props.size : '60px')};
60
+ height: auto;
61
+
62
+ .white {
63
+ filter: brightness(0) invert(1);
64
+ }
65
+ `
66
+
67
+ export default {
68
+ name: 'SpinnerComponent',
69
+ components: {
70
+ Container,
71
+ SpinnerWrapper,
72
+ SpinnerContainer,
73
+ SpinnerSvg,
74
+ },
75
+ props: {
76
+ fullWidth: {
77
+ required: false,
78
+ default: false,
79
+ type: Boolean,
80
+ },
81
+ limitedToModal: {
82
+ required: false,
83
+ default: false,
84
+ type: Boolean,
85
+ },
86
+ size: {
87
+ required: false,
88
+ default: '60px',
89
+ type: String,
90
+ },
91
+ isWhite: {
92
+ required: false,
93
+ default: false,
94
+ type: Boolean,
95
+ },
96
+ },
97
+ }
98
+ </script>
@@ -150,16 +150,12 @@
150
150
  <SortingContainer v-if="dataList.length > 1">
151
151
  <SortingIconWrapper
152
152
  :data-test-id="'move_up_' + index"
153
- :is-disabled="index === 0 || item.isLoading"
154
- @click="
155
- !item.isLoading && index > 0 && handleMoveClick('up', index)
156
- "
153
+ :is-disabled="index === 0"
154
+ @click="index > 0 && handleMoveClick('up', index)"
157
155
  >
158
156
  <RCIcon
159
- :color="index === 0 || item.isLoading ? 'grey6' : 'grey3'"
160
- :cursor="
161
- index === 0 || item.isLoading ? 'not-allowed' : 'pointer'
162
- "
157
+ :color="index === 0 ? 'grey6' : 'grey3'"
158
+ :cursor="index === 0 ? 'not-allowed' : 'pointer'"
163
159
  name="move_up"
164
160
  size="14px"
165
161
  />
@@ -168,23 +164,15 @@
168
164
  :data-test-id="'move_down_' + index"
169
165
  :is-disabled="index === dataList.length - 1"
170
166
  @click="
171
- !item.isLoading &&
172
- index < dataList.length - 1 &&
173
- handleMoveClick('down', index)
167
+ index < dataList.length - 1 && handleMoveClick('down', index)
174
168
  "
175
169
  >
176
170
  <RCIcon
177
- :color="
178
- index === dataList.length - 1 || item.isLoading
179
- ? 'grey6'
180
- : 'grey3'
181
- "
171
+ :color="index === dataList.length - 1 ? 'grey6' : 'grey3'"
182
172
  :cursor="
183
- index === dataList.length - 1 || item.isLoading
184
- ? 'not-allowed'
185
- : 'pointer'
173
+ index === dataList.length - 1 ? 'not-allowed' : 'pointer'
186
174
  "
187
- :is-disabled="index === dataList.length - 1 || item.isLoading"
175
+ :is-disabled="index === dataList.length - 1"
188
176
  name="move_down"
189
177
  size="14px"
190
178
  />