@eturnity/eturnity_reusable_components 7.48.1-EPDM-12680.34 → 7.48.1-EPDM-12680.36

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.34",
3
+ "version": "7.48.1-EPDM-12680.36",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -19,7 +19,7 @@
19
19
  <CheckWrapper :has-label="hasLabel">
20
20
  <span class="checkmark"></span>
21
21
  </CheckWrapper>
22
- <LabelText v-if="hasLabel">
22
+ <LabelText v-if="hasLabel" :is-disabled="isDisabled">
23
23
  {{ label }}
24
24
  </LabelText>
25
25
  </Container>
@@ -90,18 +90,20 @@
90
90
  ? '16px'
91
91
  : '25px'};
92
92
  background-color: ${(props) =>
93
- props.isChecked
93
+ props.isDisabled
94
+ ? props.theme.colors.lightGray
95
+ : props.isChecked
94
96
  ? props.backgroundColor
95
97
  ? props.backgroundColor
96
98
  : props.theme.colors.green
97
- : props.isDisabled
98
- ? props.theme.colors.lightGray
99
99
  : props.theme.colors.white};
100
100
  border-radius: 4px;
101
101
  border: 1px solid
102
102
  ${(props) =>
103
103
  props.isChecked
104
- ? props.backgroundColor
104
+ ? props.isDisabled
105
+ ? props.theme.colors.lightGray
106
+ : props.backgroundColor
105
107
  ? props.backgroundColor
106
108
  : props.theme.colors.green
107
109
  : props.theme.colors.mediumGray};
@@ -140,7 +142,11 @@
140
142
  : '10px'};
141
143
  border: solid
142
144
  ${(props) =>
143
- props.checkColor ? props.checkColor : props.theme.colors.white};
145
+ props.isDisabled
146
+ ? props.theme.colors.green
147
+ : props.checkColor
148
+ ? props.checkColor
149
+ : props.theme.colors.white};
144
150
  border-width: ${(props) =>
145
151
  props.size === 'medium'
146
152
  ? '0 3px 3px 0'
@@ -160,11 +166,16 @@
160
166
  width: 0;
161
167
  `
162
168
 
163
- const LabelText = styled.div`
169
+ const LabelTextAttrs = {
170
+ isDisabled: Boolean,
171
+ }
172
+ const LabelText = styled('div', LabelTextAttrs)`
164
173
  font-size: 13px;
165
174
  display: grid;
166
175
  align-items: center;
167
176
  min-height: 18px;
177
+ color: ${(props) =>
178
+ props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.black};
168
179
  `
169
180
 
170
181
  export default {
@@ -49,7 +49,9 @@
49
49
  <template
50
50
  v-if="itemHasStrings(item) || item.type === 'optimizer'"
51
51
  >
52
- <ContainerValue v-if="item.getkWp() > 1">
52
+ <ContainerValue
53
+ v-if="item.getkWp() > 1 && hasExpandedSection"
54
+ >
53
55
  |
54
56
  {{
55
57
  numberToString({
@@ -59,7 +61,7 @@
59
61
  }}
60
62
  kWp
61
63
  </ContainerValue>
62
- <ContainerValue v-else>
64
+ <ContainerValue v-else-if="item.type !== 'optimizer'">
63
65
  |
64
66
  {{
65
67
  numberToString({
@@ -105,7 +107,9 @@
105
107
  </MarkerItem>
106
108
  <MarkerItem>
107
109
  <RCIcon color="white" :name="getIconName(item)" size="14px" />
108
- <div>{{ getTypeName(item.type) }}</div>
110
+ <MarkerText :title="getTypeName(item.type)">
111
+ {{ getTypeName(item.type) }}
112
+ </MarkerText>
109
113
  </MarkerItem>
110
114
  <MarkerItem
111
115
  v-if="item.type !== 'optimizer'"
@@ -121,7 +125,7 @@
121
125
  {{ $gettext('kWAC') }}
122
126
  </MarkerItem>
123
127
  <MarkerItem
124
- v-if="!itemHasStrings(item) && item.type !== 'optimizer'"
128
+ v-if="!itemHasStrings(item)"
125
129
  :title="$gettext('The DC power is the maximum DC input power.')"
126
130
  >
127
131
  {{
@@ -459,16 +463,21 @@
459
463
  : props.theme.colors.grey6};
460
464
  font-size: 11px;
461
465
  color: ${(props) => props.theme.colors.white};
462
- max-width: 11ch;
463
- white-space: nowrap;
464
- overflow: hidden;
465
- text-overflow: ellipsis;
466
466
  & > span {
467
467
  overflow: hidden;
468
+ white-space: nowrap;
468
469
  text-overflow: ellipsis;
470
+ max-width: 11ch;
469
471
  }
470
472
  `
471
473
 
474
+ const MarkerText = styled.div`
475
+ max-width: 11ch;
476
+ white-space: nowrap;
477
+ overflow: hidden;
478
+ text-overflow: ellipsis;
479
+ `
480
+
472
481
  const ContainerValue = styled.div`
473
482
  font-size: 12px;
474
483
  `
@@ -727,6 +736,7 @@
727
736
  EmptyStringBox,
728
737
  InfoText,
729
738
  InfoWrapper,
739
+ MarkerText,
730
740
  },
731
741
  props: {
732
742
  dataList: {