@widergy/utilitygo-smart-bill-web 1.7.3 → 1.10.1
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/CHANGELOG.md +28 -0
- package/dist/components/Advice/index.js +1 -2
- package/dist/components/Advice/styles.module.scss +2 -1
- package/dist/components/Amount/index.js +2 -2
- package/dist/components/Amount/styles.module.scss +10 -2
- package/dist/components/BarChart/constants.js +19 -3
- package/dist/components/BarChart/index.js +70 -101
- package/dist/components/BarChart/styles.module.scss +71 -0
- package/dist/components/BarChart/utils.js +31 -15
- package/dist/components/BillCalculation/components/ConceptCard/index.js +28 -9
- package/dist/components/BillCalculation/components/ConceptCard/styles.module.scss +16 -6
- package/dist/components/BillCalculation/index.js +10 -5
- package/dist/components/BillCalculation/utils.js +14 -9
- package/dist/components/BillSummary/components/BilledConcepts/components/Concept/index.js +11 -18
- package/dist/components/BillSummary/components/BilledConcepts/components/Concept/styles.module.scss +1 -5
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/constants.js +9 -3
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/index.js +21 -28
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/styles.module.scss +2 -2
- package/dist/components/BillSummary/components/BilledConcepts/constants.js +1 -1
- package/dist/components/BillSummary/components/BilledConcepts/index.js +8 -3
- package/dist/components/BillSummary/components/BilledConcepts/styles.module.scss +1 -1
- package/dist/components/BillSummary/components/BilledConcepts/utils.js +20 -6
- package/dist/components/BillSummary/styles.module.scss +2 -3
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/index.js +3 -3
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/styles.module.scss +4 -2
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/index.js +3 -3
- package/dist/components/ConsumptionComparison/components/ComparisonTable/constants.js +61 -37
- package/dist/components/ConsumptionComparison/components/ComparisonTable/styles.module.scss +14 -6
- package/dist/components/ConsumptionComparison/components/ComparisonTable/utils.js +4 -2
- package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/index.js +2 -5
- package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/styles.module.scss +4 -5
- package/dist/components/ConsumptionComparison/components/PercentageComparison/index.js +4 -3
- package/dist/components/ConsumptionComparison/components/PercentageComparison/styles.module.scss +3 -12
- package/dist/components/ConsumptionComparison/index.js +9 -11
- package/dist/components/ConsumptionComparison/styles.module.scss +5 -4
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/index.js +26 -2
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/styles.module.scss +2 -0
- package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/styles.module.scss +1 -1
- package/dist/components/ConsumptionEnergyDetails/index.js +21 -11
- package/dist/components/ConsumptionEnergyDetails/styles.module.scss +13 -1
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/index.js +61 -42
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/styles.module.scss +33 -20
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/utils.js +24 -0
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/index.js +13 -19
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/styles.module.scss +3 -6
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderSettlement/index.js +7 -9
- package/dist/components/ConsumptionIncluded/components/TimelineRow/index.js +11 -3
- package/dist/components/ConsumptionIncluded/components/TimelineRow/styles.module.scss +10 -13
- package/dist/components/ConsumptionIncluded/styles.module.scss +5 -0
- package/dist/components/ConsumptionIncluded/utils.js +6 -6
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/components/ReadingRow/styles.module.scss +2 -0
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/index.js +8 -6
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/styles.module.scss +16 -4
- package/dist/components/ConsumptionPeriod/components/HistoryGraph/index.js +1 -7
- package/dist/components/ConsumptionPeriod/components/Reading/index.js +26 -9
- package/dist/components/ConsumptionPeriod/components/Reading/styles.module.scss +13 -8
- package/dist/components/ConsumptionPeriod/styles.module.scss +11 -10
- package/dist/components/Date/index.js +2 -2
- package/dist/components/Date/styles.module.scss +3 -0
- package/dist/components/DebtState/styles.module.scss +1 -1
- package/dist/components/IconAndDetails/index.js +4 -1
- package/dist/components/IconAndDetails/styles.module.scss +2 -2
- package/dist/components/Magnitude/index.js +6 -5
- package/dist/components/Magnitude/styles.module.scss +5 -5
- package/dist/components/MainBillData/components/BillAlert/components/BillParticularConditions/index.js +5 -5
- package/dist/components/MainBillData/components/BillAlert/styles.module.scss +5 -3
- package/dist/components/MainBillData/components/BillBody/components/ClientData/index.js +13 -13
- package/dist/components/MainBillData/components/BillBody/components/ClientData/styles.module.scss +3 -3
- package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/styles.module.scss +1 -1
- package/dist/components/MainBillData/components/BillBody/styles.module.scss +4 -3
- package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/index.js +3 -2
- package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/styles.module.scss +7 -3
- package/dist/components/MainBillData/components/BillHeader/index.js +2 -2
- package/dist/components/MainBillData/components/BillHeader/styles.module.scss +10 -9
- package/dist/components/MainBillData/styles.module.scss +0 -1
- package/dist/components/Period/index.js +39 -11
- package/dist/components/Period/styles.module.scss +13 -4
- package/dist/components/PowerProgresBar/components/PowerConsumption/index.js +2 -3
- package/dist/components/PowerProgresBar/index.js +3 -4
- package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/index.js +6 -17
- package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/styles.module.scss +8 -3
- package/dist/components/RatesDefinition/components/BillRate/index.js +10 -11
- package/dist/components/RatesDefinition/components/BillRate/styles.module.scss +8 -29
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/index.js +9 -5
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/styles.module.scss +12 -18
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/components/SubStage/index.js +4 -3
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/index.js +13 -62
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/styles.module.scss +2 -6
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/index.js +1 -0
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/index.js +18 -12
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/styles.module.scss +7 -3
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/index.js +23 -14
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/styles.module.scss +6 -19
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/utils.js +35 -1
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/LegendItem/index.js +80 -0
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/LegendItem/styles.module.scss +57 -0
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/constants.js +17 -9
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/styles.module.scss +2 -1
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/utils.js +1 -1
- package/dist/components/RatesDefinition/components/CategoryByConsumption/index.js +61 -7
- package/dist/components/RatesDefinition/components/CategoryByConsumption/styles.module.scss +20 -4
- package/dist/components/RatesDefinition/components/PurchasedRate/index.js +12 -22
- package/dist/components/RatesDefinition/components/PurchasedRate/styles.module.scss +14 -44
- package/dist/components/RatesDefinition/index.js +16 -12
- package/dist/components/RatesDefinition/styles.module.scss +38 -10
- package/dist/components/StyledAmount/constants.js +0 -45
- package/dist/components/StyledAmount/index.js +5 -14
- package/dist/components/StyledAmount/styles.module.scss +14 -8
- package/dist/components/WithContextApi/index.js +9 -1
- package/dist/constants/deviceSizes.js +1 -1
- package/dist/index.js +28 -15
- package/dist/shared/Context/index.js +1 -1
- package/dist/shared/constants/aliases.js +532 -10
- package/dist/shared/constants/components.js +3 -1
- package/dist/shared/constants/consumptions.js +1 -1
- package/dist/shared/constants/readings.js +1 -1
- package/dist/shared/constants/stagesGraph.js +1 -1
- package/dist/shared/types/assetsTypes.js +1 -30
- package/dist/shared/types/billDataTypes.js +1 -1
- package/dist/shared/types/componentsTypes.js +4 -2
- package/dist/shared/types/rateStagesTypes.js +1 -1
- package/dist/shared/utils/consumptions.js +3 -3
- package/dist/shared/utils/context.js +3 -1
- package/dist/shared/utils/periods.js +1 -1
- package/dist/shared/utils/readings.js +1 -1
- package/dist/shared/utils/stagesGraph.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -3
- package/dist/components/BarChart/components/CustomBar/index.js +0 -111
- package/dist/components/BarChart/components/CustomLabelText/index.js +0 -48
- package/dist/components/BarChart/components/CustomXAxisLabel/index.js +0 -58
- package/dist/components/BarChart/styles.js +0 -90
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/utils.js +0 -27
- package/dist/components/BillSummary/components/Rate/index.js +0 -56
- package/dist/components/BillSummary/components/Rate/styles.module.scss +0 -43
|
@@ -13,6 +13,7 @@ $container-margin-bottom-size: 24px;
|
|
|
13
13
|
background: $white;
|
|
14
14
|
border: 1px solid $borders-dark-gray;
|
|
15
15
|
border-radius: $default-container-border-radius;
|
|
16
|
+
width: 100%;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.containerCurrent {
|
|
@@ -31,6 +32,10 @@ $container-margin-bottom-size: 24px;
|
|
|
31
32
|
display: flex;
|
|
32
33
|
flex-direction: column;
|
|
33
34
|
padding: 25px 0;
|
|
35
|
+
|
|
36
|
+
@media #{$desktop} {
|
|
37
|
+
width: 400px;
|
|
38
|
+
}
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
.titleAndSubtitles {
|
|
@@ -38,15 +43,7 @@ $container-margin-bottom-size: 24px;
|
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
.subtitle {
|
|
41
|
-
|
|
42
|
-
padding: 5px 100px 20px;
|
|
43
|
-
}
|
|
44
|
-
@media (max-width: 1120px) {
|
|
45
|
-
padding: 5px 50px 20px;
|
|
46
|
-
}
|
|
47
|
-
@media #{$tablet-mobile} {
|
|
48
|
-
padding: 5px 100px 20px;
|
|
49
|
-
}
|
|
46
|
+
padding: 5px;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
.daysRank {
|
|
@@ -69,20 +66,23 @@ $container-margin-bottom-size: 24px;
|
|
|
69
66
|
display: flex;
|
|
70
67
|
justify-content: space-between;
|
|
71
68
|
min-height: 65px;
|
|
72
|
-
padding:
|
|
69
|
+
padding: 16px 24px;
|
|
73
70
|
}
|
|
74
71
|
|
|
75
72
|
.currentContent {
|
|
76
|
-
background-color: $primary;
|
|
77
73
|
@media #{$tablet-mobile} {
|
|
78
74
|
display: block;
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
|
|
78
|
+
.energyIcon {
|
|
79
|
+
margin-right: 16px;
|
|
80
|
+
width: 16px;
|
|
81
|
+
}
|
|
82
|
+
|
|
82
83
|
.remainingContent {
|
|
83
|
-
background-color: $
|
|
84
|
+
background-color: $borders-gray;
|
|
84
85
|
@media #{$tablet-mobile} {
|
|
85
|
-
background-color: $dark-gray;
|
|
86
86
|
display: block;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -96,11 +96,18 @@ $container-margin-bottom-size: 24px;
|
|
|
96
96
|
.consumptionRank {
|
|
97
97
|
align-items: flex-end;
|
|
98
98
|
display: flex;
|
|
99
|
+
flex-wrap: wrap;
|
|
100
|
+
|
|
99
101
|
@media #{$tablet-mobile} {
|
|
100
102
|
justify-content: center;
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
|
|
106
|
+
.cardConsumptionDescription {
|
|
107
|
+
padding-left: 4px;
|
|
108
|
+
margin-bottom: 2px;
|
|
109
|
+
}
|
|
110
|
+
|
|
104
111
|
.footer {
|
|
105
112
|
align-items: center;
|
|
106
113
|
background-color: $footer-current-included-consumption;
|
|
@@ -121,22 +128,28 @@ $container-margin-bottom-size: 24px;
|
|
|
121
128
|
height: 1px;
|
|
122
129
|
position: absolute;
|
|
123
130
|
transform: rotate(90deg);
|
|
124
|
-
width:
|
|
131
|
+
width: 89px;
|
|
125
132
|
}
|
|
126
133
|
}
|
|
127
134
|
}
|
|
128
135
|
|
|
129
136
|
.footerDisabled {
|
|
130
|
-
|
|
131
|
-
background-color: $light-gray;
|
|
132
|
-
}
|
|
137
|
+
background-color: $borders-gray;
|
|
133
138
|
}
|
|
134
139
|
|
|
135
140
|
.datesContainer {
|
|
136
141
|
align-items: center;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
142
|
+
display: flex;
|
|
143
|
+
justify-content: center;
|
|
144
|
+
padding-top: 16px;
|
|
145
|
+
width: 330px;
|
|
146
|
+
|
|
147
|
+
@media #{$tablet} {
|
|
148
|
+
width: 400px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media #{$mobile} {
|
|
152
|
+
max-width: 600px;
|
|
140
153
|
}
|
|
141
154
|
}
|
|
142
155
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getAliases = void 0;
|
|
7
|
+
|
|
8
|
+
var _aliases = require("../../../../../../shared/constants/aliases");
|
|
9
|
+
|
|
10
|
+
var getAliases = function getAliases(consumption, current, remaining) {
|
|
11
|
+
return {
|
|
12
|
+
magnitudeAlias: consumption ? _aliases.CARD_PRIMARY_MAGNITUDE : current ? _aliases.CARD_WHITE_MAGNITUDE : _aliases.CARD_GRAY_MAGNITUDE,
|
|
13
|
+
unitAlias: consumption ? _aliases.CARD_PRIMARY_UNIT : current ? _aliases.CARD_WHITE_UNIT : _aliases.CARD_GRAY_UNIT,
|
|
14
|
+
consumptionAlias: consumption ? _aliases.CARD_PRIMARY_CONSUMPTION : current ? _aliases.CARD_WHITE_CONSUMPTION : _aliases.CARD_GRAY_CONSUMPTION,
|
|
15
|
+
cardTitleAlias: consumption ? _aliases.CARD_MAIN_TITLE : _aliases.CARD_SECONDARY_TITLE,
|
|
16
|
+
cardDescriptionAlias: _aliases.CARD_DESCRIPTION,
|
|
17
|
+
cardDescriptionRemainingAlias: remaining ? _aliases.CARD_DESCRIPTION_REMAINING : _aliases.CARD_DESCRIPTION,
|
|
18
|
+
cardSubtitleAlias: remaining ? _aliases.CARD_SUBTITLE_REMAINING : _aliases.CARD_SUBTITLE,
|
|
19
|
+
cardConsumptionDescriptionAlias: current ? _aliases.CARD_CONSUMPTION_DESCRIPTION_WHITE : _aliases.CARD_CONSUMPTION_DESCRIPTION_GRAY,
|
|
20
|
+
cardConsumptionTextAlias: current ? _aliases.CARD_CONSUMPTION_TEXT_CURRENT : _aliases.CARD_CONSUMPTION_TEXT_REMAINING
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.getAliases = getAliases;
|
|
@@ -9,12 +9,14 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = require("prop-types");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
13
13
|
|
|
14
14
|
var _smartBillTypes = require("../../../../../../shared/types/smartBillTypes");
|
|
15
15
|
|
|
16
16
|
var _WithContextApi = _interopRequireDefault(require("../../../../../WithContextApi"));
|
|
17
17
|
|
|
18
|
+
var _aliases = require("../../../../../../shared/constants/aliases");
|
|
19
|
+
|
|
18
20
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -26,25 +28,17 @@ var HeaderConsumption = function HeaderConsumption(_ref) {
|
|
|
26
28
|
var Label = contextApiInfo.Label,
|
|
27
29
|
assets = contextApiInfo.assets,
|
|
28
30
|
config = contextApiInfo.config;
|
|
29
|
-
var texts = config.texts
|
|
31
|
+
var _config$texts$commons = config.texts.commons,
|
|
32
|
+
ofPreposition = _config$texts$commons.ofPreposition,
|
|
33
|
+
toPreposition = _config$texts$commons.toPreposition;
|
|
30
34
|
var CalendarIcon = assets.CalendarIcon;
|
|
31
35
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var formatDate = function formatDate(date) {
|
|
35
|
-
return (0, _momentWithLocales.default)(date, 'DD-MM-YYYY');
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var dateDay = function dateDay(date) {
|
|
39
|
-
return formatDate(date).format('DD');
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
var firstDateMonth = function firstDateMonth(date) {
|
|
43
|
-
return formatDate(date).format('MMM').replace('.', '');
|
|
36
|
+
var parseDate = function parseDate(date) {
|
|
37
|
+
return (0, _dayjs.default)(date, 'DD/MM/YYYY');
|
|
44
38
|
};
|
|
45
39
|
|
|
46
|
-
var
|
|
47
|
-
return "".concat(
|
|
40
|
+
var formatDate = function formatDate(date) {
|
|
41
|
+
return "".concat(parseDate(date).format('DD'), " ").concat(ofPreposition, " ").concat(parseDate(date).format('MMM'));
|
|
48
42
|
};
|
|
49
43
|
|
|
50
44
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -54,9 +48,9 @@ var HeaderConsumption = function HeaderConsumption(_ref) {
|
|
|
54
48
|
}, /*#__PURE__*/_react.default.createElement(CalendarIcon, {
|
|
55
49
|
className: _stylesModule.default.calendarIcon
|
|
56
50
|
}), /*#__PURE__*/_react.default.createElement(Label, {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, "".concat(
|
|
51
|
+
alias: _aliases.HEADER_CONSUMPTION,
|
|
52
|
+
className: _stylesModule.default.label
|
|
53
|
+
}, "".concat(formatDate(startDate), " ").concat(toPreposition, " ").concat(formatDate(endDate)))));
|
|
60
54
|
};
|
|
61
55
|
|
|
62
56
|
HeaderConsumption.propTypes = {
|
|
@@ -15,11 +15,7 @@
|
|
|
15
15
|
text-align: center;
|
|
16
16
|
|
|
17
17
|
&:first-child {
|
|
18
|
-
margin-right:
|
|
19
|
-
@media #{$tablet-mobile} {
|
|
20
|
-
margin-bottom: 10px;
|
|
21
|
-
margin-right: 0;
|
|
22
|
-
}
|
|
18
|
+
margin-right: 8px;
|
|
23
19
|
}
|
|
24
20
|
}
|
|
25
21
|
|
|
@@ -28,7 +24,8 @@
|
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
.calendarIcon {
|
|
31
|
-
margin-right:
|
|
27
|
+
margin-right: 8px;
|
|
28
|
+
min-width: 25px;
|
|
32
29
|
width: 25px;
|
|
33
30
|
@media #{$desktop} {
|
|
34
31
|
fill: $dark-gray;
|
|
@@ -13,6 +13,8 @@ var _smartBillTypes = require("../../../../../../shared/types/smartBillTypes");
|
|
|
13
13
|
|
|
14
14
|
var _WithContextApi = _interopRequireDefault(require("../../../../../WithContextApi"));
|
|
15
15
|
|
|
16
|
+
var _aliases = require("../../../../../../shared/constants/aliases");
|
|
17
|
+
|
|
16
18
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -25,20 +27,16 @@ var HeaderSettlement = function HeaderSettlement(_ref) {
|
|
|
25
27
|
var Label = contextApiInfo.Label,
|
|
26
28
|
config = contextApiInfo.config;
|
|
27
29
|
var consumptionIncluded = config.texts.consumptionIncluded;
|
|
30
|
+
var mainLabelAlias = isRemaining ? _aliases.HEADER_SETTLEMENT_REMAINING : _aliases.HEADER_SETTLEMENT;
|
|
31
|
+
var dateLabelAlias = isRemaining ? _aliases.HEADER_SETTLEMENT_REMAINING_DATE : _aliases.HEADER_SETTLEMENT_DATE;
|
|
28
32
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
29
33
|
className: "".concat(_stylesModule.default.container, " ").concat(isRemaining && _stylesModule.default.disabledContainer)
|
|
30
34
|
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
31
|
-
|
|
32
|
-
xsmall: true,
|
|
33
|
-
gray: isRemaining
|
|
35
|
+
alias: mainLabelAlias
|
|
34
36
|
}, consumptionIncluded.dateOfIssue), /*#__PURE__*/_react.default.createElement(Label, {
|
|
35
|
-
|
|
36
|
-
xsmall: true,
|
|
37
|
-
gray: isRemaining
|
|
37
|
+
alias: mainLabelAlias
|
|
38
38
|
}, "".concat(consumptionIncluded.settlement, " ").concat(settlementNumber)), /*#__PURE__*/_react.default.createElement(Label, {
|
|
39
|
-
|
|
40
|
-
primary: true,
|
|
41
|
-
gray: isRemaining
|
|
39
|
+
alias: dateLabelAlias
|
|
42
40
|
}, date));
|
|
43
41
|
};
|
|
44
42
|
|
|
@@ -42,7 +42,9 @@ var TimelineRow = function TimelineRow(_ref) {
|
|
|
42
42
|
isCurrent = _ref.isCurrent,
|
|
43
43
|
isRemaining = _ref.isRemaining,
|
|
44
44
|
currentIsFirstSettlement = _ref.currentIsFirstSettlement;
|
|
45
|
-
var assets = contextApiInfo.assets
|
|
45
|
+
var assets = contextApiInfo.assets,
|
|
46
|
+
config = contextApiInfo.config;
|
|
47
|
+
var colors = config.colors;
|
|
46
48
|
var Minicheck = assets.Minicheck,
|
|
47
49
|
MinicheckRemaining = assets.MinicheckRemaining,
|
|
48
50
|
ClockIcon = assets.ClockIcon;
|
|
@@ -74,7 +76,10 @@ var TimelineRow = function TimelineRow(_ref) {
|
|
|
74
76
|
initialDate: startDate,
|
|
75
77
|
finalDate: endDate
|
|
76
78
|
}))), /*#__PURE__*/_react.default.createElement(_react.Fragment, null, currentIsFirstSettlement ? /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(Minicheck, {
|
|
77
|
-
className: "".concat(_stylesModule.default.minicheck, " ").concat(_stylesModule.default.firstSettlement)
|
|
79
|
+
className: "".concat(_stylesModule.default.minicheck, " ").concat(_stylesModule.default.firstSettlement),
|
|
80
|
+
style: {
|
|
81
|
+
fill: colors.primary
|
|
82
|
+
}
|
|
78
83
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
79
84
|
className: "".concat(_stylesModule.default.dot, " ").concat(_stylesModule.default.secondSettlement, " ")
|
|
80
85
|
}, /*#__PURE__*/_react.default.createElement(ClockIcon, {
|
|
@@ -84,7 +89,10 @@ var TimelineRow = function TimelineRow(_ref) {
|
|
|
84
89
|
}, /*#__PURE__*/_react.default.createElement(MinicheckRemaining, {
|
|
85
90
|
className: "".concat(_stylesModule.default.remainingMinicheck, " ").concat(_stylesModule.default.firstSettlement, " ")
|
|
86
91
|
})), /*#__PURE__*/_react.default.createElement(Minicheck, {
|
|
87
|
-
className: "".concat(_stylesModule.default.minicheck, " ").concat(_stylesModule.default.secondSettlement)
|
|
92
|
+
className: "".concat(_stylesModule.default.minicheck, " ").concat(_stylesModule.default.secondSettlement),
|
|
93
|
+
style: {
|
|
94
|
+
fill: colors.primary
|
|
95
|
+
}
|
|
88
96
|
})))) : /*#__PURE__*/_react.default.createElement("div", {
|
|
89
97
|
className: _stylesModule.default.cardContainer
|
|
90
98
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -14,7 +14,6 @@ $height-check-icon: 24px;
|
|
|
14
14
|
@media #{$tablet-mobile} {
|
|
15
15
|
align-items: center;
|
|
16
16
|
display: flex;
|
|
17
|
-
padding: 10px 15px 10px 5px;
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
|
|
@@ -68,13 +67,13 @@ $height-check-icon: 24px;
|
|
|
68
67
|
@extend %headerContainer;
|
|
69
68
|
@media #{$desktop} {
|
|
70
69
|
border-bottom: 1px solid $borders-gray;
|
|
71
|
-
padding: 10px
|
|
70
|
+
padding: 10px 16px;
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
.headerContainer {
|
|
76
75
|
@extend %headerContainer;
|
|
77
|
-
padding-top:
|
|
76
|
+
padding-top: 32px;
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
.firstSettlement {
|
|
@@ -83,7 +82,7 @@ $height-check-icon: 24px;
|
|
|
83
82
|
left: 0;
|
|
84
83
|
}
|
|
85
84
|
@media #{$tablet-mobile} {
|
|
86
|
-
bottom: -
|
|
85
|
+
bottom: -35px;
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
88
|
|
|
@@ -93,7 +92,7 @@ $height-check-icon: 24px;
|
|
|
93
92
|
right: 0;
|
|
94
93
|
}
|
|
95
94
|
@media #{$tablet-mobile} {
|
|
96
|
-
bottom: -
|
|
95
|
+
bottom: -193%;
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
|
|
@@ -142,7 +141,7 @@ $height-check-icon: 24px;
|
|
|
142
141
|
.consumptionCard {
|
|
143
142
|
padding: 0 10px 20px;
|
|
144
143
|
@media #{$tablet-mobile} {
|
|
145
|
-
padding:
|
|
144
|
+
padding: 0;
|
|
146
145
|
text-align: center;
|
|
147
146
|
}
|
|
148
147
|
|
|
@@ -150,6 +149,8 @@ $height-check-icon: 24px;
|
|
|
150
149
|
background: $borders-gray;
|
|
151
150
|
content: '';
|
|
152
151
|
position: absolute;
|
|
152
|
+
z-index: -999;
|
|
153
|
+
|
|
153
154
|
@media #{$desktop} {
|
|
154
155
|
height: 30px;
|
|
155
156
|
right: 50%;
|
|
@@ -159,9 +160,9 @@ $height-check-icon: 24px;
|
|
|
159
160
|
@media #{$tablet-mobile} {
|
|
160
161
|
bottom: -23px;
|
|
161
162
|
height: 1px;
|
|
162
|
-
left:
|
|
163
|
+
left: calc(50% - 40px);
|
|
163
164
|
transform: rotate(90deg);
|
|
164
|
-
width:
|
|
165
|
+
width: 80px;
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
}
|
|
@@ -172,12 +173,8 @@ $height-check-icon: 24px;
|
|
|
172
173
|
flex-direction: column;
|
|
173
174
|
padding: 0 10px 20px;
|
|
174
175
|
|
|
175
|
-
@media (max-width: 1036px) {
|
|
176
|
-
padding: 0 0 20px;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
176
|
@media #{$tablet-mobile} {
|
|
180
|
-
padding:
|
|
177
|
+
padding: 0;
|
|
181
178
|
}
|
|
182
179
|
}
|
|
183
180
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.getBimesterDate = exports.dataMapper = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
9
9
|
|
|
10
10
|
var _string = require("@widergy/web-utils/lib/string");
|
|
11
11
|
|
|
@@ -80,8 +80,8 @@ var consumptionMapper = function consumptionMapper(period, texts) {
|
|
|
80
80
|
var _period$settlements6, _period$settlements7;
|
|
81
81
|
|
|
82
82
|
return {
|
|
83
|
-
startDate: period !== null && period !== void 0 && (_period$settlements6 = period.settlements) !== null && _period$settlements6 !== void 0 && _period$settlements6.start_date ? (0,
|
|
84
|
-
endDate: period !== null && period !== void 0 && (_period$settlements7 = period.settlements) !== null && _period$settlements7 !== void 0 && _period$settlements7.end_date ? (0,
|
|
83
|
+
startDate: period !== null && period !== void 0 && (_period$settlements6 = period.settlements) !== null && _period$settlements6 !== void 0 && _period$settlements6.start_date ? (0, _dayjs.default)(period.settlements.start_date).format('DD/MM/YYYY') : '-',
|
|
84
|
+
endDate: period !== null && period !== void 0 && (_period$settlements7 = period.settlements) !== null && _period$settlements7 !== void 0 && _period$settlements7.end_date ? (0, _dayjs.default)(period.settlements.end_date).format('DD/MM/YYYY') : '-',
|
|
85
85
|
cardTitle: getBimesterDateTitle(period, texts),
|
|
86
86
|
cardSubtitle: texts.consumption,
|
|
87
87
|
cardDescription1: getTotalDaysDescriptionComsumption(period, texts),
|
|
@@ -102,7 +102,7 @@ var settlementCurrentMapper = function settlementCurrentMapper(period, texts) {
|
|
|
102
102
|
cardDescription2: getTotalDaysDescriptionSettlement(period, texts, getCurrent),
|
|
103
103
|
value: (0, _consumptions.getCurrentConsumption)(period, _consumptions2.ENERGY_TYPES.ACTIVE).value,
|
|
104
104
|
unit: (0, _consumptions.getCurrentConsumption)(period, _consumptions2.ENERGY_TYPES.ACTIVE).unit,
|
|
105
|
-
date: period !== null && period !== void 0 && (_period$settlements8 = period.settlements) !== null && _period$settlements8 !== void 0 && (_period$settlements8$ = _period$settlements8.current) !== null && _period$settlements8$ !== void 0 && _period$settlements8$.issued_on ? (0,
|
|
105
|
+
date: period !== null && period !== void 0 && (_period$settlements8 = period.settlements) !== null && _period$settlements8 !== void 0 && (_period$settlements8$ = _period$settlements8.current) !== null && _period$settlements8$ !== void 0 && _period$settlements8$.issued_on ? (0, _dayjs.default)(period.settlements.current.issued_on, 'YYYY-MM-DD').format('DD/MM/YYYY') : '-',
|
|
106
106
|
settlementNumber: (period === null || period === void 0 ? void 0 : (_period$settlements9 = period.settlements) === null || _period$settlements9 === void 0 ? void 0 : (_period$settlements9$ = _period$settlements9.current) === null || _period$settlements9$ === void 0 ? void 0 : _period$settlements9$.number) || '-',
|
|
107
107
|
isCurrent: true,
|
|
108
108
|
order: period === null || period === void 0 ? void 0 : (_period$settlements10 = period.settlements) === null || _period$settlements10 === void 0 ? void 0 : (_period$settlements11 = _period$settlements10.current) === null || _period$settlements11 === void 0 ? void 0 : _period$settlements11.number
|
|
@@ -119,7 +119,7 @@ var settlementRemainingMapper = function settlementRemainingMapper(period, texts
|
|
|
119
119
|
cardDescription2: getTotalDaysDescriptionSettlement(period, texts, getRemaining),
|
|
120
120
|
value: (0, _consumptions.getRemainingConsumption)(period, _consumptions2.ENERGY_TYPES.ACTIVE).value,
|
|
121
121
|
unit: (0, _consumptions.getRemainingConsumption)(period, _consumptions2.ENERGY_TYPES.ACTIVE).unit,
|
|
122
|
-
date: (period === null || period === void 0 ? void 0 : (_period$settlements12 = period.settlements) === null || _period$settlements12 === void 0 ? void 0 : (_period$settlements13 = _period$settlements12.remaining) === null || _period$settlements13 === void 0 ? void 0 : _period$settlements13.length) > 0 ? (0,
|
|
122
|
+
date: (period === null || period === void 0 ? void 0 : (_period$settlements12 = period.settlements) === null || _period$settlements12 === void 0 ? void 0 : (_period$settlements13 = _period$settlements12.remaining) === null || _period$settlements13 === void 0 ? void 0 : _period$settlements13.length) > 0 ? (0, _dayjs.default)(period.settlements.remaining[0].issued_on, 'YYYY-MM-DD').format('DD/MM/YYYY') : '-',
|
|
123
123
|
settlementNumber: (period === null || period === void 0 ? void 0 : (_period$settlements14 = period.settlements) === null || _period$settlements14 === void 0 ? void 0 : (_period$settlements15 = _period$settlements14.remaining) === null || _period$settlements15 === void 0 ? void 0 : (_period$settlements16 = _period$settlements15[0]) === null || _period$settlements16 === void 0 ? void 0 : _period$settlements16.number) || '-',
|
|
124
124
|
isRemaining: true,
|
|
125
125
|
order: period === null || period === void 0 ? void 0 : (_period$settlements17 = period.settlements) === null || _period$settlements17 === void 0 ? void 0 : (_period$settlements18 = _period$settlements17.remaining) === null || _period$settlements18 === void 0 ? void 0 : (_period$settlements19 = _period$settlements18[0]) === null || _period$settlements19 === void 0 ? void 0 : _period$settlements19.number
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = require("prop-types");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
13
13
|
|
|
14
14
|
var _aliases = require("../../../../shared/constants/aliases");
|
|
15
15
|
|
|
@@ -41,7 +41,7 @@ var ConsumptionSummary = function ConsumptionSummary(_ref) {
|
|
|
41
41
|
var texts = config.texts;
|
|
42
42
|
|
|
43
43
|
var formatDate = function formatDate(date) {
|
|
44
|
-
return (0,
|
|
44
|
+
return (0, _dayjs.default)(date).format('DD/MM/YYYY');
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
var daysLabel = totalSettlementsDays ? "(".concat(totalSettlementsDays, " ").concat(texts.consumptionPeriod.days, ")") : '';
|
|
@@ -49,11 +49,13 @@ var ConsumptionSummary = function ConsumptionSummary(_ref) {
|
|
|
49
49
|
className: "".concat(_stylesModule.default.container, " ").concat(classes.container)
|
|
50
50
|
}, periodNumber && year && /*#__PURE__*/_react.default.createElement(Label, {
|
|
51
51
|
alias: _aliases.SUMMARY_TITLE,
|
|
52
|
-
|
|
53
|
-
}, "".concat(texts.commons.bimester, " ").concat(periodNumber, "/").concat((0,
|
|
52
|
+
className: _stylesModule.default.summaryTitle
|
|
53
|
+
}, "".concat(texts.commons.bimester, " ").concat(periodNumber, "/").concat((0, _dayjs.default)(year, 'YYYY').format('YY'))), initialReadingDate && finalReadingDate && /*#__PURE__*/_react.default.createElement(Label, {
|
|
54
54
|
alias: _aliases.SUMMARY_SUBTITLE,
|
|
55
55
|
className: _stylesModule.default.daysLabel
|
|
56
|
-
}, "".concat(formatDate(initialReadingDate), " - ").concat(formatDate(finalReadingDate), " ").concat(daysLabel)), /*#__PURE__*/_react.default.createElement(
|
|
56
|
+
}, "".concat(formatDate(initialReadingDate), " - ").concat(formatDate(finalReadingDate), " ").concat(daysLabel)), /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
+
className: _stylesModule.default.substractionContainer
|
|
58
|
+
}, /*#__PURE__*/_react.default.createElement(_ReadingRow.default, {
|
|
57
59
|
alias: _aliases.SUMMARY_ROW,
|
|
58
60
|
numberAlias: _aliases.SUMMARY_ROW_NUMBER,
|
|
59
61
|
text: texts.consumptionPeriod.finalReading,
|
|
@@ -78,7 +80,7 @@ var ConsumptionSummary = function ConsumptionSummary(_ref) {
|
|
|
78
80
|
text: texts.consumptionPeriod.currentPeriodConsumption,
|
|
79
81
|
value: totalConsumptionValue,
|
|
80
82
|
unit: totalConsumptionUnit
|
|
81
|
-
}));
|
|
83
|
+
})));
|
|
82
84
|
};
|
|
83
85
|
|
|
84
86
|
ConsumptionSummary.propTypes = {
|
|
@@ -8,24 +8,36 @@
|
|
|
8
8
|
border-radius: $default-container-border-radius;
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-flow: column;
|
|
11
|
-
padding:
|
|
11
|
+
padding: 16px 24px 24px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.daysLabel {
|
|
15
|
-
margin-bottom:
|
|
15
|
+
margin-bottom: 24px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.substraction {
|
|
19
19
|
display: flex;
|
|
20
20
|
justify-content: flex-end;
|
|
21
|
-
|
|
21
|
+
padding-right: 124px;
|
|
22
22
|
width: 100%;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.dash {
|
|
26
|
-
background-color: $
|
|
26
|
+
background-color: $borders-gray;
|
|
27
27
|
height: 2px;
|
|
28
28
|
margin: 5px 0;
|
|
29
29
|
opacity: 0.3;
|
|
30
30
|
width: 100%;
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
.summaryTitle {
|
|
34
|
+
padding-bottom: 8px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.substractionContainer {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
height: 144px;
|
|
41
|
+
justify-content: space-around;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
@@ -69,14 +69,8 @@ var HistoryGraph = function HistoryGraph(_ref) {
|
|
|
69
69
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
70
70
|
className: _stylesModule.default.container
|
|
71
71
|
}, /*#__PURE__*/_react.default.createElement(_BarChart.default, {
|
|
72
|
-
data: consumptionHistoryData.periods,
|
|
73
|
-
dataKey: "period",
|
|
74
72
|
unit: consumptionHistoryData.unit,
|
|
75
|
-
|
|
76
|
-
key: 'consumption'
|
|
77
|
-
}],
|
|
78
|
-
currentPeriod: consumptionHistoryData.currentPeriod,
|
|
79
|
-
lastYearPeriod: consumptionHistoryData.lastYearPeriod,
|
|
73
|
+
data: consumptionHistoryData.periods,
|
|
80
74
|
isDesktop: isDesktopSize
|
|
81
75
|
}));
|
|
82
76
|
};
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = require("prop-types");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
13
13
|
|
|
14
14
|
var _numeral = _interopRequireDefault(require("config/numeral"));
|
|
15
15
|
|
|
@@ -40,8 +40,12 @@ var Reading = function Reading(_ref) {
|
|
|
40
40
|
config = contextApiInfo.config,
|
|
41
41
|
Label = contextApiInfo.Label,
|
|
42
42
|
Tooltip = contextApiInfo.Tooltip;
|
|
43
|
-
var texts = config.texts
|
|
44
|
-
|
|
43
|
+
var texts = config.texts,
|
|
44
|
+
colors = config.colors;
|
|
45
|
+
var InfoIcon = assets.InfoIcon,
|
|
46
|
+
ReadingDateIcon = assets.ReadingDateIcon,
|
|
47
|
+
ReadingTypeIcon = assets.ReadingTypeIcon,
|
|
48
|
+
EnergyIcon = assets.EnergyIcon;
|
|
45
49
|
|
|
46
50
|
var TitleLabel = function TitleLabel() {
|
|
47
51
|
return /*#__PURE__*/_react.default.createElement(Label, {
|
|
@@ -50,6 +54,14 @@ var Reading = function Reading(_ref) {
|
|
|
50
54
|
}, title);
|
|
51
55
|
};
|
|
52
56
|
|
|
57
|
+
var EnergyIconStyled = function EnergyIconStyled() {
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(EnergyIcon, {
|
|
59
|
+
style: {
|
|
60
|
+
fill: colors.primary
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
53
65
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
54
66
|
className: "".concat(_stylesModule.default.container, " ").concat(classes.container)
|
|
55
67
|
}, tooltip ? /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -57,18 +69,23 @@ var Reading = function Reading(_ref) {
|
|
|
57
69
|
}, /*#__PURE__*/_react.default.createElement(TitleLabel, null), /*#__PURE__*/_react.default.createElement(Tooltip, {
|
|
58
70
|
content: readingType === _readings.READING_TYPES.ESTIMATED ? texts.consumptionPeriod.estimatedReadingTooltip : texts.consumptionPeriod.faceToFaceReadingTooltip
|
|
59
71
|
}, /*#__PURE__*/_react.default.createElement(InfoIcon, {
|
|
72
|
+
style: {
|
|
73
|
+
fill: colors.tooltipIcon
|
|
74
|
+
},
|
|
60
75
|
className: _stylesModule.default.infoIconTooltip
|
|
61
|
-
}))) : /*#__PURE__*/_react.default.createElement(TitleLabel, null),
|
|
62
|
-
|
|
76
|
+
}))) : /*#__PURE__*/_react.default.createElement(TitleLabel, null), /*#__PURE__*/_react.default.createElement("div", {
|
|
77
|
+
className: _stylesModule.default.detailsContainer
|
|
78
|
+
}, date && /*#__PURE__*/_react.default.createElement(_IconAndDetails.default, {
|
|
79
|
+
Icon: ReadingDateIcon,
|
|
63
80
|
mainAlias: _aliases.READING_MAIN,
|
|
64
81
|
secondaryAlias: _aliases.READING_DETAIL,
|
|
65
|
-
mainText: (0,
|
|
82
|
+
mainText: (0, _dayjs.default)(date).format('DD/MM/YYYY'),
|
|
66
83
|
secondaryText: texts.consumptionPeriod.readingDate,
|
|
67
84
|
classes: {
|
|
68
85
|
container: _stylesModule.default.iconAndDetailsContainer
|
|
69
86
|
}
|
|
70
87
|
}), /*#__PURE__*/_react.default.createElement(_IconAndDetails.default, {
|
|
71
|
-
Icon:
|
|
88
|
+
Icon: ReadingTypeIcon,
|
|
72
89
|
mainAlias: _aliases.READING_MAIN,
|
|
73
90
|
secondaryAlias: _aliases.READING_DETAIL,
|
|
74
91
|
mainText: readingType === _readings.READING_TYPES.FACE_TO_FACE ? texts.commons.faceToFaceReading : readingType === _readings.READING_TYPES.ESTIMATED ? texts.commons.estimatedReading : '-',
|
|
@@ -77,7 +94,7 @@ var Reading = function Reading(_ref) {
|
|
|
77
94
|
container: _stylesModule.default.iconAndDetailsContainer
|
|
78
95
|
}
|
|
79
96
|
}), /*#__PURE__*/_react.default.createElement(_IconAndDetails.default, {
|
|
80
|
-
Icon:
|
|
97
|
+
Icon: EnergyIconStyled,
|
|
81
98
|
mainAlias: _aliases.READING_STATE,
|
|
82
99
|
secondaryAlias: _aliases.READING_STATE_DETAIL,
|
|
83
100
|
secondaryText: texts.consumptionPeriod.meterReading,
|
|
@@ -86,7 +103,7 @@ var Reading = function Reading(_ref) {
|
|
|
86
103
|
}
|
|
87
104
|
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
88
105
|
alias: _aliases.READING_STATE
|
|
89
|
-
}, (0, _numeral.default)(readingValue).format('0,0'))));
|
|
106
|
+
}, (0, _numeral.default)(readingValue).format('0,0')))));
|
|
90
107
|
};
|
|
91
108
|
|
|
92
109
|
Reading.propTypes = {
|