@eturnity/eturnity_reusable_components 7.48.1-EPDM-12680.2 → 7.48.1-EPDM-12680.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
@@ -351,12 +351,14 @@
|
|
351
351
|
`}
|
352
352
|
background-color:${(props) =>
|
353
353
|
props.disabled && props.showDisabledBackground
|
354
|
-
? props.theme.colors.
|
354
|
+
? props.theme.colors.disabled
|
355
355
|
: props.theme.colors[props.bgColor]
|
356
356
|
? props.theme.colors[props.bgColor]
|
357
357
|
: props.bgColor};
|
358
358
|
color: ${(props) =>
|
359
|
-
props.
|
359
|
+
props.disabled && props.showDisabledBackground
|
360
|
+
? props.theme.colors.black
|
361
|
+
: props.theme.colors[props.fontColor]
|
360
362
|
? props.theme.colors[props.fontColor]
|
361
363
|
: props.fontColor};
|
362
364
|
${(props) => (props.disabled ? 'pointer-events: none' : '')};
|
@@ -40,20 +40,42 @@
|
|
40
40
|
cursor="pointer"
|
41
41
|
name="document"
|
42
42
|
size="14px"
|
43
|
+
@click="$emit('on-datasheet', item)"
|
43
44
|
/>
|
44
45
|
</IconWrapper>
|
45
46
|
</IconsContainer>
|
46
47
|
</TitleContainer>
|
47
48
|
<MarkersContainer>
|
48
|
-
<MarkerItem
|
49
|
-
<MarkerItem>
|
50
|
-
|
51
|
-
|
49
|
+
<MarkerItem>{{ 100 * item.getTargetRatio().toFixed(2) }}%</MarkerItem>
|
50
|
+
<MarkerItem>
|
51
|
+
<span
|
52
|
+
:title="
|
53
|
+
item.hasTemplate
|
54
|
+
? item.company_product_template_name
|
55
|
+
? item.company_product_template_name
|
56
|
+
: $gettext('no_template_selected')
|
57
|
+
: $gettext('no_template')
|
58
|
+
"
|
59
|
+
>
|
60
|
+
{{
|
61
|
+
item.hasTemplate
|
62
|
+
? item.company_product_template_name
|
63
|
+
? item.company_product_template_name
|
64
|
+
: $gettext('no_template_selected')
|
65
|
+
: $gettext('no_template')
|
66
|
+
}}
|
67
|
+
</span>
|
68
|
+
</MarkerItem>
|
52
69
|
<MarkerItem>
|
53
70
|
<RCIcon color="white" :name="getIconName(item.type)" size="14px" />
|
54
71
|
<div>{{ getTypeName(item.type) }}</div>
|
55
72
|
</MarkerItem>
|
56
|
-
<ContainerValue
|
73
|
+
<ContainerValue v-if="item.getkWp() > 1">
|
74
|
+
{{ item.getkWp().toFixed(0) }} kWp
|
75
|
+
</ContainerValue>
|
76
|
+
<ContainerValue v-else>
|
77
|
+
{{ 1000 * item.getkWp().toFixed(3) }} Wp
|
78
|
+
</ContainerValue>
|
57
79
|
</MarkersContainer>
|
58
80
|
<BoxContainer
|
59
81
|
v-for="mppt in item.mppts"
|
@@ -178,6 +200,14 @@
|
|
178
200
|
: props.theme.colors.grey6};
|
179
201
|
font-size: 11px;
|
180
202
|
color: ${(props) => props.theme.colors.white};
|
203
|
+
max-width: 11ch;
|
204
|
+
white-space: nowrap;
|
205
|
+
overflow: hidden;
|
206
|
+
text-overflow: ellipsis;
|
207
|
+
& > span {
|
208
|
+
overflow: hidden;
|
209
|
+
text-overflow: ellipsis;
|
210
|
+
}
|
181
211
|
`
|
182
212
|
|
183
213
|
const ContainerValue = styled.div`
|
@@ -333,22 +363,6 @@
|
|
333
363
|
getNumberOfMpptModules(strings) {
|
334
364
|
return strings.reduce((acc, curr) => acc + curr.modules.length, 0)
|
335
365
|
},
|
336
|
-
getStringColor(idx) {
|
337
|
-
// ToDo: get correct colors
|
338
|
-
const colors = [
|
339
|
-
'#FF6B6B', // coral red
|
340
|
-
'#4ECDC4', // turquoise
|
341
|
-
'#45B7D1', // sky blue
|
342
|
-
'#96CEB4', // sage green
|
343
|
-
'#FFEEAD', // cream yellow
|
344
|
-
'#D4A5A5', // dusty rose
|
345
|
-
'#9B59B6', // purple
|
346
|
-
'#3498DB', // bright blue
|
347
|
-
'#E67E22', // orange
|
348
|
-
'#27AE60', // emerald green
|
349
|
-
]
|
350
|
-
return colors[idx]
|
351
|
-
},
|
352
366
|
isExpanded(id) {
|
353
367
|
return this.expandedInverters.includes(id)
|
354
368
|
},
|