@eturnity/eturnity_reusable_components 7.48.1-EPDM-12680.23 → 7.48.1-EPDM-12680.25

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.23",
3
+ "version": "7.48.1-EPDM-12680.25",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
Binary file
@@ -0,0 +1,4 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M6.99998 1.20459L11.3818 4.49095L10.6182 5.50914L6.99998 2.7955L3.3818 5.50914L2.61816 4.49095L6.99998 1.20459Z" fill="#263238"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M6.99998 12.7954L11.3818 9.50905L10.6182 8.49086L6.99998 11.2045L3.3818 8.49086L2.61816 9.50905L6.99998 12.7954Z" fill="#263238"/>
4
+ </svg>
@@ -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>
@@ -5,7 +5,7 @@
5
5
  <ButtonIcon
6
6
  v-if="hasStringsOrStorage"
7
7
  custom-color="black"
8
- :icon-name="hasExpandedSection ? 'collapse_all' : 'expand'"
8
+ :icon-name="hasExpandedSection ? 'collapse_all' : 'expand_all'"
9
9
  :text="$gettext(hasExpandedSection ? 'collapse_all' : 'expand_all')"
10
10
  @click="toggleAllSections"
11
11
  />
@@ -16,7 +16,7 @@
16
16
  <TitleContainer>
17
17
  <IconWrapper
18
18
  v-if="item.type != 'optimizer'"
19
- size="36px"
19
+ size="32px"
20
20
  @click="toggleSection(item.inverterId)"
21
21
  >
22
22
  <RCIcon
@@ -28,7 +28,7 @@
28
28
  <IconPlaceholder v-else />
29
29
  </IconWrapper>
30
30
  <TextContainer
31
- :style="{ marginLeft: item.type == 'optimizer' ? '36px' : '0' }"
31
+ :style="{ marginLeft: item.type == 'optimizer' ? '32px' : '0' }"
32
32
  >
33
33
  <TitleText :title="item.model">
34
34
  {{
@@ -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
  />
@@ -392,12 +380,14 @@
392
380
  const TitleContainer = styled.div`
393
381
  display: flex;
394
382
  align-items: center;
383
+ gap: 4px;
395
384
  `
396
385
 
397
386
  const IconsContainer = styled.div`
398
387
  display: flex;
399
388
  align-items: center;
400
- margin-left: 36px;
389
+ margin-left: 32px;
390
+ margin-top: 4px;
401
391
  `
402
392
 
403
393
  const TextContainer = styled.div`
@@ -421,7 +411,7 @@
421
411
  display: flex;
422
412
  flex-wrap: wrap;
423
413
  gap: 8px;
424
- margin: 4px 0 2px 36px;
414
+ margin: 4px 0 2px 32px;
425
415
  align-items: end;
426
416
  `
427
417
 
@@ -453,7 +443,7 @@
453
443
  `
454
444
 
455
445
  const IconAttrs = {
456
- size: { type: String, default: '36px' },
446
+ size: { type: String, default: '32px' },
457
447
  marginLeft: String,
458
448
  }
459
449
  const IconWrapper = styled('div', IconAttrs)`
@@ -637,7 +627,7 @@
637
627
  `
638
628
 
639
629
  const IconPlaceholder = styled.div`
640
- width: 36px;
630
+ width: 32px;
641
631
  `
642
632
 
643
633
  const EmptyStringBox = styled.div`
@@ -653,7 +643,7 @@
653
643
  display: flex;
654
644
  align-items: center;
655
645
  justify-content: center;
656
- width: 36px;
646
+ width: 32px;
657
647
  `
658
648
 
659
649
  export default {