@widergy/utilitygo-smart-bill-web 1.13.3 → 2.0.0
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 +19 -0
- package/dist/components/Advice/index.js +3 -14
- package/dist/components/Amount/index.js +11 -29
- package/dist/components/Amount/styles.module.scss +1 -2
- package/dist/components/Amount/utils.js +0 -3
- package/dist/components/Banner/index.js +3 -12
- package/dist/components/BarChart/index.js +13 -33
- package/dist/components/BarChart/styles.module.scss +5 -5
- package/dist/components/BarChart/utils.js +1 -6
- package/dist/components/BillCalculation/components/ConceptCard/index.js +31 -36
- package/dist/components/BillCalculation/components/Glossary/index.js +30 -50
- package/dist/components/BillCalculation/components/Glossary/styles.module.scss +0 -6
- package/dist/components/BillCalculation/index.js +13 -46
- package/dist/components/BillCalculation/utils.js +3 -15
- package/dist/components/BillSummary/components/BilledConcepts/components/Concept/index.js +11 -29
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/index.js +3 -16
- package/dist/components/BillSummary/components/BilledConcepts/constants.js +0 -4
- package/dist/components/BillSummary/components/BilledConcepts/index.js +11 -40
- package/dist/components/BillSummary/components/BilledConcepts/styles.module.scss +1 -1
- package/dist/components/BillSummary/components/BilledConcepts/utils.js +13 -38
- package/dist/components/BillSummary/index.js +7 -42
- package/dist/components/BillSummary/styles.module.scss +0 -4
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/index.js +0 -8
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/index.js +5 -20
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/utils.js +0 -7
- package/dist/components/ConsumptionComparison/components/ComparisonTable/constants.js +18 -39
- package/dist/components/ConsumptionComparison/components/ComparisonTable/index.js +2 -16
- package/dist/components/ConsumptionComparison/components/ComparisonTable/utils.js +15 -37
- package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/index.js +8 -16
- package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/utils.js +0 -7
- package/dist/components/ConsumptionComparison/components/PercentageComparison/index.js +12 -25
- package/dist/components/ConsumptionComparison/components/PercentageComparison/styles.module.scss +0 -10
- package/dist/components/ConsumptionComparison/components/PercentageComparison/utils.js +4 -11
- package/dist/components/ConsumptionComparison/index.js +9 -44
- package/dist/components/ConsumptionComparison/styles.module.scss +0 -5
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/index.js +13 -38
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionInDaysLabel/index.js +9 -20
- package/dist/components/ConsumptionEnergyDetails/components/EnergyTotalConsumption/index.js +14 -26
- package/dist/components/ConsumptionEnergyDetails/components/EnergyTotalConsumption/styles.module.scss +0 -6
- package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/index.js +10 -24
- package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/utils.js +0 -6
- package/dist/components/ConsumptionEnergyDetails/index.js +14 -41
- package/dist/components/ConsumptionEnergyDetails/styles.module.scss +2 -6
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/index.js +39 -55
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/styles.module.scss +2 -8
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/utils.js +0 -3
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/index.js +7 -23
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/styles.module.scss +0 -4
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderSettlement/index.js +4 -15
- package/dist/components/ConsumptionIncluded/components/TimelineRow/index.js +17 -34
- package/dist/components/ConsumptionIncluded/index.js +1 -18
- package/dist/components/ConsumptionIncluded/utils.js +2 -30
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/components/ReadingRow/index.js +7 -19
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/index.js +12 -27
- package/dist/components/ConsumptionPeriod/components/HistoryGraph/index.js +6 -30
- package/dist/components/ConsumptionPeriod/components/Reading/index.js +15 -33
- package/dist/components/ConsumptionPeriod/components/Reading/styles.module.scss +0 -1
- package/dist/components/ConsumptionPeriod/index.js +2 -21
- package/dist/components/ConsumptionPeriod/utils.js +0 -6
- package/dist/components/Date/index.js +6 -17
- package/dist/components/Date/styles.module.scss +2 -4
- package/dist/components/DebtState/index.js +6 -16
- package/dist/components/DebtState/styles.module.scss +2 -11
- package/dist/components/IconAndDetails/index.js +13 -26
- package/dist/components/Magnitude/index.js +18 -39
- package/dist/components/Magnitude/utils.js +0 -29
- package/dist/components/MainBillData/components/BillAlert/components/BillParticularConditions/index.js +6 -17
- package/dist/components/MainBillData/components/BillAlert/index.js +12 -39
- package/dist/components/MainBillData/components/BillAlert/styles.module.scss +4 -1
- package/dist/components/MainBillData/components/BillBody/components/ClientData/index.js +5 -19
- package/dist/components/MainBillData/components/BillBody/components/ClientData/styles.module.scss +1 -3
- package/dist/components/MainBillData/components/BillBody/components/Consumption/index.js +4 -20
- package/dist/components/MainBillData/components/BillBody/components/Consumption/utils.js +0 -2
- package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/index.js +16 -30
- package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/utils.js +0 -5
- package/dist/components/MainBillData/components/BillBody/index.js +3 -35
- package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/index.js +7 -19
- package/dist/components/MainBillData/components/BillHeader/index.js +5 -28
- package/dist/components/MainBillData/index.js +1 -16
- package/dist/components/MainBillData/theme.js +0 -3
- package/dist/components/MainBillData/utils.js +0 -3
- package/dist/components/Period/index.js +18 -44
- package/dist/components/Period/styles.module.scss +9 -9
- package/dist/components/PowerProgresBar/components/PowerConsumption/index.js +21 -28
- package/dist/components/PowerProgresBar/components/PowerConsumption/styles.module.scss +0 -7
- package/dist/components/PowerProgresBar/index.js +8 -29
- package/dist/components/PowerProgresBar/styles.module.scss +5 -9
- package/dist/components/RateAndCategory/index.js +8 -26
- package/dist/components/RateAndCategory/styles.module.scss +1 -4
- package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/index.js +11 -23
- package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/styles.module.scss +0 -1
- package/dist/components/RatesDefinition/components/BillRate/index.js +8 -20
- package/dist/components/RatesDefinition/components/BillRate/styles.module.scss +1 -2
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/index.js +5 -17
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/styles.module.scss +2 -4
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/index.js +8 -22
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/index.js +4 -18
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/utils.js +0 -7
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Legend/index.js +4 -14
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Legend/styles.module.scss +1 -9
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Stages/index.js +8 -16
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Stages/styles.module.scss +0 -4
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/constants.js +0 -1
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/index.js +12 -39
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/utils.js +14 -24
- package/dist/components/RatesDefinition/components/CategoryByConsumption/index.js +11 -38
- package/dist/components/RatesDefinition/components/CategoryByConsumption/utils.js +0 -3
- package/dist/components/RatesDefinition/components/PurchasedRate/index.js +11 -23
- package/dist/components/RatesDefinition/components/PurchasedRate/styles.module.scss +5 -4
- package/dist/components/RatesDefinition/index.js +4 -25
- package/dist/components/SmartBillProvider/index.js +7 -28
- package/dist/components/StyledAmount/constants.js +0 -3
- package/dist/components/StyledAmount/index.js +18 -38
- package/dist/components/StyledAmount/styles.module.scss +2 -3
- package/dist/components/WithContextApi/index.js +5 -16
- package/dist/components/WithContextApi/layout.js +0 -9
- package/dist/components/WithSeason/index.js +1 -7
- package/dist/constants/deviceSizes.js +4 -16
- package/dist/index.js +0 -18
- package/dist/scss/variables/_colors.scss +0 -6
- package/dist/scss/variables/_colorsExport.scss +0 -6
- package/dist/shared/Context/index.js +1 -5
- package/dist/shared/constants/aliases.js +86 -83
- package/dist/shared/types/assetsTypes.js +0 -3
- package/dist/shared/types/billDataTypes.js +13 -13
- package/dist/shared/types/componentsTypes.js +4 -10
- package/dist/shared/types/formattersTypes.js +0 -2
- package/dist/shared/types/rateStagesTypes.js +0 -2
- package/dist/shared/types/smartBillTypes.js +4 -10
- package/dist/shared/types/textsTypes.js +0 -2
- package/dist/shared/utils/billCalculation.js +0 -6
- package/dist/shared/utils/consumptions.js +1 -32
- package/dist/shared/utils/context.js +0 -6
- package/dist/shared/utils/expirations.js +0 -3
- package/dist/shared/utils/periods.js +0 -15
- package/dist/shared/utils/rates.js +0 -4
- package/dist/shared/utils/readings.js +0 -7
- package/dist/shared/utils/season.js +0 -3
- package/dist/shared/utils/stagesGraph.js +0 -11
- package/dist/utils/hooks.js +0 -2
- package/dist/utils.js +0 -8
- package/package.json +1 -1
|
@@ -4,40 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = require("prop-types");
|
|
11
|
-
|
|
12
9
|
var _smartBillTypes = require("../../../../shared/types/smartBillTypes");
|
|
13
|
-
|
|
14
10
|
var _WithContextApi = _interopRequireDefault(require("../../../WithContextApi"));
|
|
15
|
-
|
|
16
11
|
var _aliases = require("../../../../shared/constants/aliases");
|
|
17
|
-
|
|
18
12
|
var _utils = require("./utils");
|
|
19
|
-
|
|
20
13
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
21
|
-
|
|
22
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
15
|
var PercentageComparison = function PercentageComparison(_ref) {
|
|
25
16
|
var contextApiInfo = _ref.contextApiInfo,
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
savingsPercentage = _ref.savingsPercentage,
|
|
18
|
+
multipleSettlements = _ref.multipleSettlements;
|
|
28
19
|
var assets = contextApiInfo.assets,
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
config = contextApiInfo.config,
|
|
21
|
+
Label = contextApiInfo.Label;
|
|
31
22
|
var _config$texts$billSum = config.texts.billSummary,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
consumptionComparissonWithLasYear = _config$texts$billSum.consumptionComparissonWithLasYear,
|
|
24
|
+
activeEnergycomparisonWithLastYear = _config$texts$billSum.activeEnergycomparisonWithLastYear;
|
|
35
25
|
var _getProps = (0, _utils.getProps)(savingsPercentage, assets),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
26
|
+
Icon = _getProps.Icon,
|
|
27
|
+
sign = _getProps.sign,
|
|
28
|
+
value = _getProps.value,
|
|
29
|
+
background = _getProps.background;
|
|
41
30
|
return savingsPercentage === 0 || savingsPercentage ? /*#__PURE__*/_react.default.createElement("div", {
|
|
42
31
|
className: "".concat(_stylesModule.default.container, " ").concat(background)
|
|
43
32
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -50,13 +39,10 @@ var PercentageComparison = function PercentageComparison(_ref) {
|
|
|
50
39
|
alias: _aliases.PERCENTAGE_COMPARISON_DETAIL
|
|
51
40
|
}, multipleSettlements ? consumptionComparissonWithLasYear : activeEnergycomparisonWithLastYear)) : null;
|
|
52
41
|
};
|
|
53
|
-
|
|
54
42
|
PercentageComparison.propTypes = {
|
|
55
43
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
56
44
|
savingsPercentage: _propTypes.number,
|
|
57
45
|
multipleSettlements: _propTypes.bool
|
|
58
46
|
};
|
|
59
|
-
|
|
60
47
|
var _default = (0, _WithContextApi.default)()(PercentageComparison);
|
|
61
|
-
|
|
62
48
|
exports.default = _default;
|
|
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getProps = void 0;
|
|
7
|
-
|
|
8
7
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var getProps = function getProps(savingsPercentage, assets) {
|
|
13
10
|
if (savingsPercentage > 0) {
|
|
14
11
|
return {
|
|
@@ -18,7 +15,6 @@ var getProps = function getProps(savingsPercentage, assets) {
|
|
|
18
15
|
background: _stylesModule.default.consumptionReductionBackground
|
|
19
16
|
};
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
if (savingsPercentage < 0) {
|
|
23
19
|
return {
|
|
24
20
|
Icon: assets.ConsumptionIncrementIcon,
|
|
@@ -27,7 +23,6 @@ var getProps = function getProps(savingsPercentage, assets) {
|
|
|
27
23
|
background: _stylesModule.default.consumptionIncrementBackground
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
31
26
|
return {
|
|
32
27
|
Icon: assets.ConsumptionInvariantIcon,
|
|
33
28
|
sign: '',
|
|
@@ -35,5 +30,4 @@ var getProps = function getProps(savingsPercentage, assets) {
|
|
|
35
30
|
background: _stylesModule.default.consumptionInvariantBackground
|
|
36
31
|
};
|
|
37
32
|
};
|
|
38
|
-
|
|
39
33
|
exports.getProps = getProps;
|
|
@@ -1,65 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = require("prop-types");
|
|
13
|
-
|
|
14
10
|
var _aliases = require("../../shared/constants/aliases");
|
|
15
|
-
|
|
16
11
|
var _billDataTypes = require("../../shared/types/billDataTypes");
|
|
17
|
-
|
|
18
12
|
var _smartBillTypes = require("../../shared/types/smartBillTypes");
|
|
19
|
-
|
|
20
13
|
var _consumptions = require("../../shared/utils/consumptions");
|
|
21
|
-
|
|
22
14
|
var _periods = require("../../shared/utils/periods");
|
|
23
|
-
|
|
24
15
|
var _consumptions2 = require("../../shared/constants/consumptions");
|
|
25
|
-
|
|
26
16
|
var _WithContextApi = _interopRequireDefault(require("../WithContextApi"));
|
|
27
|
-
|
|
28
17
|
var _utils = require("../../utils");
|
|
29
|
-
|
|
30
18
|
var _Magnitude = _interopRequireDefault(require("../Magnitude"));
|
|
31
|
-
|
|
32
19
|
var _ConsumptionEnergyComparison = _interopRequireDefault(require("./components/ConsumptionEnergyComparison"));
|
|
33
|
-
|
|
34
20
|
var _EnergyTotalConsumption = _interopRequireDefault(require("./components/EnergyTotalConsumption"));
|
|
35
|
-
|
|
36
21
|
var _PercentageComparison = _interopRequireDefault(require("./components/PercentageComparison"));
|
|
37
|
-
|
|
38
22
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
39
|
-
|
|
40
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
41
|
-
|
|
42
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
43
|
-
|
|
44
25
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
45
|
-
|
|
46
26
|
var ConsumptionEnergyDetails = function ConsumptionEnergyDetails(_ref) {
|
|
47
27
|
var contextApiInfo = _ref.contextApiInfo,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
28
|
+
currentPeriod = _ref.currentPeriod,
|
|
29
|
+
billData = _ref.billData,
|
|
30
|
+
multipleSettlements = _ref.multipleSettlements,
|
|
31
|
+
consumptionComparison = _ref.consumptionComparison,
|
|
32
|
+
withPercentage = _ref.withPercentage;
|
|
53
33
|
var config = contextApiInfo.config,
|
|
54
|
-
|
|
55
|
-
|
|
34
|
+
Label = contextApiInfo.Label,
|
|
35
|
+
assets = contextApiInfo.assets;
|
|
56
36
|
var texts = config.texts,
|
|
57
|
-
|
|
37
|
+
validations = config.validations;
|
|
58
38
|
var RedAlertIcon = assets.RedAlertIcon;
|
|
59
39
|
var useCosinePhi = validations.useCosinePhi,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
40
|
+
showMultipleSettlementsConsumption = validations.showMultipleSettlementsConsumption,
|
|
41
|
+
showPercentageComparison = validations.showPercentageComparison,
|
|
42
|
+
showSingleSettlementDays = validations.showSingleSettlementDays;
|
|
63
43
|
var currentConsumption = (0, _consumptions.getCurrentConsumption)(currentPeriod, _consumptions2.ENERGY_TYPES.ACTIVE);
|
|
64
44
|
var remainingConsumption = (0, _consumptions.getRemainingConsumption)(currentPeriod, _consumptions2.ENERGY_TYPES.ACTIVE);
|
|
65
45
|
var totalConsumption = (0, _consumptions.getTotalConsumption)(currentPeriod, _consumptions2.ENERGY_TYPES.ACTIVE);
|
|
@@ -67,24 +47,20 @@ var ConsumptionEnergyDetails = function ConsumptionEnergyDetails(_ref) {
|
|
|
67
47
|
var powerFactor = (0, _consumptions.getTotalConsumption)(currentPeriod, powerFactorType);
|
|
68
48
|
var totalReactiveConsumption = (0, _consumptions.getTotalConsumption)(currentPeriod, _consumptions2.ENERGY_TYPES.REACTIVE);
|
|
69
49
|
var savingsPercentage = (0, _periods.getSavingsPercentage)(currentPeriod);
|
|
70
|
-
|
|
71
50
|
var dataValidation = function dataValidation(data) {
|
|
72
51
|
return (0, _utils.stringOrDash)(data);
|
|
73
52
|
};
|
|
74
|
-
|
|
75
53
|
var settlements = currentPeriod === null || currentPeriod === void 0 ? void 0 : currentPeriod.settlements;
|
|
76
54
|
var periodicity = settlements === null || settlements === void 0 ? void 0 : settlements.periodicity;
|
|
77
55
|
var periodNumber = currentPeriod === null || currentPeriod === void 0 ? void 0 : currentPeriod.number;
|
|
78
56
|
var year = currentPeriod === null || currentPeriod === void 0 ? void 0 : currentPeriod.year;
|
|
79
57
|
var currentIsFirstSettlement = multipleSettlements && settlements.current.number === 1;
|
|
80
|
-
|
|
81
58
|
var Title = function Title(style) {
|
|
82
59
|
return /*#__PURE__*/_react.default.createElement(Label, {
|
|
83
60
|
alias: _aliases.TITLE,
|
|
84
|
-
className: style && _stylesModule.default.title
|
|
61
|
+
className: "".concat(style && _stylesModule.default.title)
|
|
85
62
|
}, texts.billSummary.consumptionTitle);
|
|
86
63
|
};
|
|
87
|
-
|
|
88
64
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
89
65
|
className: _stylesModule.default.container
|
|
90
66
|
}, showMultipleSettlementsConsumption(billData) ? consumptionComparison ? /*#__PURE__*/_react.default.createElement(_ConsumptionEnergyComparison.default, {
|
|
@@ -147,13 +123,12 @@ var ConsumptionEnergyDetails = function ConsumptionEnergyDetails(_ref) {
|
|
|
147
123
|
className: _stylesModule.default.labelIcon
|
|
148
124
|
}), /*#__PURE__*/_react.default.createElement(Label, {
|
|
149
125
|
alias: _aliases.POWER_FACTOR_EXCEEDED_MESSAGE,
|
|
150
|
-
|
|
151
|
-
}, "".concat(powerFactor.alert_message)))))), showPercentageComparison(billData) && withPercentage && savingsPercentage && /*#__PURE__*/_react.default.createElement(_PercentageComparison.default, {
|
|
126
|
+
colorTheme: "error"
|
|
127
|
+
}, "".concat(powerFactor.alert_message)))))), showPercentageComparison(billData) && withPercentage && (savingsPercentage === 0 || savingsPercentage) && /*#__PURE__*/_react.default.createElement(_PercentageComparison.default, {
|
|
152
128
|
savingsPercentage: dataValidation(savingsPercentage),
|
|
153
129
|
multipleSettlements: !consumptionComparison
|
|
154
130
|
}));
|
|
155
131
|
};
|
|
156
|
-
|
|
157
132
|
ConsumptionEnergyDetails.propTypes = {
|
|
158
133
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
159
134
|
currentPeriod: _billDataTypes.periodTypes,
|
|
@@ -162,7 +137,5 @@ ConsumptionEnergyDetails.propTypes = {
|
|
|
162
137
|
consumptionComparison: _propTypes.bool,
|
|
163
138
|
withPercentage: _propTypes.bool
|
|
164
139
|
};
|
|
165
|
-
|
|
166
140
|
var _default = (0, _WithContextApi.default)()(ConsumptionEnergyDetails);
|
|
167
|
-
|
|
168
141
|
exports.default = _default;
|
|
@@ -124,21 +124,17 @@ $border-radius: 5px;
|
|
|
124
124
|
.energyExceededFine {
|
|
125
125
|
@extend %exceededPower;
|
|
126
126
|
align-items: center;
|
|
127
|
-
background-color:
|
|
127
|
+
background-color: var(--semanticError01);
|
|
128
128
|
justify-content: center;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.energyExceededFineLabel {
|
|
132
|
-
color: $exceeded-power;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
131
|
.iconAndLabel {
|
|
136
132
|
align-items: center;
|
|
137
133
|
display: flex;
|
|
138
134
|
}
|
|
139
135
|
|
|
140
136
|
.labelIcon {
|
|
141
|
-
fill:
|
|
137
|
+
fill: var(--semanticError05);
|
|
142
138
|
height: 24px;
|
|
143
139
|
margin-right: 3px;
|
|
144
140
|
width: 24px;
|
|
@@ -1,52 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = require("prop-types");
|
|
13
|
-
|
|
14
10
|
var _smartBillTypes = require("../../../../../../shared/types/smartBillTypes");
|
|
15
|
-
|
|
16
11
|
var _Magnitude = _interopRequireDefault(require("../../../../../Magnitude"));
|
|
17
|
-
|
|
18
12
|
var _WithContextApi = _interopRequireDefault(require("../../../../../WithContextApi"));
|
|
19
|
-
|
|
20
13
|
var _HeaderConsumption = _interopRequireDefault(require("../HeaderConsumption"));
|
|
21
|
-
|
|
22
14
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
23
|
-
|
|
24
15
|
var _utils = require("./utils");
|
|
25
|
-
|
|
26
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
|
|
28
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
-
|
|
30
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
-
|
|
19
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
32
20
|
var Card = function Card(_ref) {
|
|
33
21
|
var contextApiInfo = _ref.contextApiInfo,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
22
|
+
cardTitle = _ref.cardTitle,
|
|
23
|
+
cardSubtitle = _ref.cardSubtitle,
|
|
24
|
+
cardDescription1 = _ref.cardDescription1,
|
|
25
|
+
cardDescription2 = _ref.cardDescription2,
|
|
26
|
+
consumption = _ref.consumption,
|
|
27
|
+
remaining = _ref.remaining,
|
|
28
|
+
current = _ref.current,
|
|
29
|
+
settlementNumber = _ref.settlementNumber,
|
|
30
|
+
currentIsFirstSettlement = _ref.currentIsFirstSettlement,
|
|
31
|
+
unit = _ref.unit,
|
|
32
|
+
value = _ref.value,
|
|
33
|
+
initialDate = _ref.initialDate,
|
|
34
|
+
finalDate = _ref.finalDate;
|
|
47
35
|
var Label = contextApiInfo.Label,
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
assets = contextApiInfo.assets,
|
|
37
|
+
config = contextApiInfo.config;
|
|
50
38
|
var colors = config.colors;
|
|
51
39
|
var consumptionIncluded = config.texts.consumptionIncluded;
|
|
52
40
|
var EnergyIcon = assets.EnergyIcon;
|
|
@@ -77,18 +65,16 @@ var Card = function Card(_ref) {
|
|
|
77
65
|
});
|
|
78
66
|
}
|
|
79
67
|
};
|
|
80
|
-
|
|
81
68
|
var _getAliases = (0, _utils.getAliases)(consumption, current, remaining),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
69
|
+
magnitudeAlias = _getAliases.magnitudeAlias,
|
|
70
|
+
unitAlias = _getAliases.unitAlias,
|
|
71
|
+
consumptionAlias = _getAliases.consumptionAlias,
|
|
72
|
+
cardTitleAlias = _getAliases.cardTitleAlias,
|
|
73
|
+
cardDescriptionAlias = _getAliases.cardDescriptionAlias,
|
|
74
|
+
cardDescriptionRemainingAlias = _getAliases.cardDescriptionRemainingAlias,
|
|
75
|
+
cardSubtitleAlias = _getAliases.cardSubtitleAlias,
|
|
76
|
+
cardConsumptionDescriptionAlias = _getAliases.cardConsumptionDescriptionAlias,
|
|
77
|
+
cardConsumptionTextAlias = _getAliases.cardConsumptionTextAlias;
|
|
92
78
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
93
79
|
className: "".concat(_stylesModule.default.container, " ").concat(current && _stylesModule.default.containerCurrent, " ").concat(remaining && _stylesModule.default.containerRemaining),
|
|
94
80
|
style: current && {
|
|
@@ -96,10 +82,11 @@ var Card = function Card(_ref) {
|
|
|
96
82
|
}
|
|
97
83
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
98
84
|
className: _stylesModule.default.header
|
|
99
|
-
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
100
|
-
alias: cardTitleAlias
|
|
101
|
-
|
|
102
|
-
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement(Label, _extends({
|
|
86
|
+
alias: cardTitleAlias
|
|
87
|
+
}, consumption ? {
|
|
88
|
+
colorTheme: 'dark'
|
|
89
|
+
} : {}), cardTitle), consumption ? /*#__PURE__*/_react.default.createElement("div", {
|
|
103
90
|
className: _stylesModule.default.datesContainer
|
|
104
91
|
}, /*#__PURE__*/_react.default.createElement(_HeaderConsumption.default, {
|
|
105
92
|
contextApiInfo: contextApiInfo,
|
|
@@ -107,7 +94,7 @@ var Card = function Card(_ref) {
|
|
|
107
94
|
endDate: finalDate
|
|
108
95
|
}), /*#__PURE__*/_react.default.createElement(Label, {
|
|
109
96
|
alias: cardDescriptionAlias,
|
|
110
|
-
|
|
97
|
+
colorTheme: "dark"
|
|
111
98
|
}, cardDescription1)) : /*#__PURE__*/_react.default.createElement(Label, {
|
|
112
99
|
alias: cardSubtitleAlias,
|
|
113
100
|
className: _stylesModule.default.subtitle
|
|
@@ -115,19 +102,20 @@ var Card = function Card(_ref) {
|
|
|
115
102
|
className: _stylesModule.default.daysRank
|
|
116
103
|
}, /*#__PURE__*/_react.default.createElement(assets.CalendarIcon, {
|
|
117
104
|
className: "".concat(_stylesModule.default.calendarIcon, " ").concat(remaining && _stylesModule.default.calendarIconRemaining)
|
|
118
|
-
}), /*#__PURE__*/_react.default.createElement(Label, {
|
|
119
|
-
alias: cardDescriptionRemainingAlias
|
|
120
|
-
|
|
121
|
-
|
|
105
|
+
}), /*#__PURE__*/_react.default.createElement(Label, _extends({
|
|
106
|
+
alias: cardDescriptionRemainingAlias
|
|
107
|
+
}, consumption ? {
|
|
108
|
+
colorTheme: 'dark'
|
|
109
|
+
} : {}), cardDescription2))), /*#__PURE__*/_react.default.createElement("div", {
|
|
122
110
|
className: "".concat(_stylesModule.default.content, " ").concat(current && _stylesModule.default.currentContent, " ").concat(remaining && _stylesModule.default.remainingContent),
|
|
123
111
|
style: current && {
|
|
124
112
|
backgroundColor: colors.primary
|
|
125
113
|
}
|
|
126
114
|
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
127
115
|
alias: consumptionAlias,
|
|
128
|
-
className: !consumption && _stylesModule.default.consumptionLabel
|
|
116
|
+
className: "".concat(!consumption && _stylesModule.default.consumptionLabel)
|
|
129
117
|
}, "".concat(consumptionIncluded.consumption, ":")), /*#__PURE__*/_react.default.createElement("div", {
|
|
130
|
-
className: !consumption && _stylesModule.default.consumptionRank
|
|
118
|
+
className: "".concat(!consumption && _stylesModule.default.consumptionRank)
|
|
131
119
|
}, /*#__PURE__*/_react.default.createElement(_Magnitude.default, {
|
|
132
120
|
numberAlias: magnitudeAlias,
|
|
133
121
|
unitAlias: unitAlias,
|
|
@@ -144,11 +132,9 @@ var Card = function Card(_ref) {
|
|
|
144
132
|
}, cardDescription1)))), !consumption && /*#__PURE__*/_react.default.createElement("div", {
|
|
145
133
|
className: "".concat(_stylesModule.default.footer, " ").concat(current && currentIsFirstSettlement ? _stylesModule.default.currentFooter : _stylesModule.default.footerDisabled, " ").concat(remaining && !currentIsFirstSettlement ? _stylesModule.default.currentFooter : _stylesModule.default.footerDisabled)
|
|
146
134
|
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
147
|
-
alias: cardConsumptionTextAlias
|
|
148
|
-
className: _stylesModule.default.footerLabel
|
|
135
|
+
alias: cardConsumptionTextAlias
|
|
149
136
|
}, consumptionText)));
|
|
150
137
|
};
|
|
151
|
-
|
|
152
138
|
Card.propTypes = {
|
|
153
139
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
154
140
|
cardTitle: _propTypes.string,
|
|
@@ -165,7 +151,5 @@ Card.propTypes = {
|
|
|
165
151
|
initialDate: _propTypes.string,
|
|
166
152
|
finalDate: _propTypes.string
|
|
167
153
|
};
|
|
168
|
-
|
|
169
154
|
var _default = (0, _WithContextApi.default)()(Card);
|
|
170
|
-
|
|
171
155
|
exports.default = _default;
|
|
@@ -38,10 +38,6 @@ $container-margin-bottom-size: 24px;
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.titleAndSubtitles {
|
|
42
|
-
color: $title-and-subtitle-included-consumption-card;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
41
|
.subtitle {
|
|
46
42
|
padding: 5px;
|
|
47
43
|
}
|
|
@@ -104,8 +100,8 @@ $container-margin-bottom-size: 24px;
|
|
|
104
100
|
}
|
|
105
101
|
|
|
106
102
|
.cardConsumptionDescription {
|
|
107
|
-
padding-left: 4px;
|
|
108
103
|
margin-bottom: 2px;
|
|
104
|
+
padding-left: 4px;
|
|
109
105
|
}
|
|
110
106
|
|
|
111
107
|
.footer {
|
|
@@ -134,7 +130,7 @@ $container-margin-bottom-size: 24px;
|
|
|
134
130
|
}
|
|
135
131
|
|
|
136
132
|
.footerDisabled {
|
|
137
|
-
|
|
133
|
+
background-color: $borders-gray;
|
|
138
134
|
}
|
|
139
135
|
|
|
140
136
|
.datesContainer {
|
|
@@ -171,7 +167,5 @@ $container-margin-bottom-size: 24px;
|
|
|
171
167
|
|
|
172
168
|
.unitLabel {
|
|
173
169
|
align-items: center;
|
|
174
|
-
font-size: 16px;
|
|
175
|
-
font-weight: 500;
|
|
176
170
|
margin: 0 0 0 5px;
|
|
177
171
|
}
|
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getAliases = void 0;
|
|
7
|
-
|
|
8
7
|
var _aliases = require("../../../../../../shared/constants/aliases");
|
|
9
|
-
|
|
10
8
|
var getAliases = function getAliases(consumption, current, remaining) {
|
|
11
9
|
return {
|
|
12
10
|
magnitudeAlias: consumption ? _aliases.CARD_PRIMARY_MAGNITUDE : current ? _aliases.CARD_WHITE_MAGNITUDE : _aliases.CARD_GRAY_MAGNITUDE,
|
|
@@ -20,5 +18,4 @@ var getAliases = function getAliases(consumption, current, remaining) {
|
|
|
20
18
|
cardConsumptionTextAlias: current ? _aliases.CARD_CONSUMPTION_TEXT_CURRENT : _aliases.CARD_CONSUMPTION_TEXT_REMAINING
|
|
21
19
|
};
|
|
22
20
|
};
|
|
23
|
-
|
|
24
21
|
exports.getAliases = getAliases;
|
|
@@ -4,43 +4,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = require("prop-types");
|
|
11
|
-
|
|
12
9
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
13
|
-
|
|
14
10
|
var _smartBillTypes = require("../../../../../../shared/types/smartBillTypes");
|
|
15
|
-
|
|
16
11
|
var _WithContextApi = _interopRequireDefault(require("../../../../../WithContextApi"));
|
|
17
|
-
|
|
18
12
|
var _aliases = require("../../../../../../shared/constants/aliases");
|
|
19
|
-
|
|
20
13
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
21
|
-
|
|
22
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
15
|
var HeaderConsumption = function HeaderConsumption(_ref) {
|
|
25
16
|
var contextApiInfo = _ref.contextApiInfo,
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
startDate = _ref.startDate,
|
|
18
|
+
endDate = _ref.endDate;
|
|
28
19
|
var Label = contextApiInfo.Label,
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
assets = contextApiInfo.assets,
|
|
21
|
+
config = contextApiInfo.config;
|
|
31
22
|
var _config$texts$commons = config.texts.commons,
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
ofPreposition = _config$texts$commons.ofPreposition,
|
|
24
|
+
toPreposition = _config$texts$commons.toPreposition;
|
|
34
25
|
var CalendarIcon = assets.CalendarIcon;
|
|
35
|
-
|
|
36
26
|
var parseDate = function parseDate(date) {
|
|
37
27
|
return (0, _dayjs.default)(date, 'DD/MM/YYYY');
|
|
38
28
|
};
|
|
39
|
-
|
|
40
29
|
var formatDate = function formatDate(date) {
|
|
41
30
|
return "".concat(parseDate(date).format('DD'), " ").concat(ofPreposition, " ").concat(parseDate(date).format('MMM'));
|
|
42
31
|
};
|
|
43
|
-
|
|
44
32
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
45
33
|
className: _stylesModule.default.container
|
|
46
34
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -48,17 +36,13 @@ var HeaderConsumption = function HeaderConsumption(_ref) {
|
|
|
48
36
|
}, /*#__PURE__*/_react.default.createElement(CalendarIcon, {
|
|
49
37
|
className: _stylesModule.default.calendarIcon
|
|
50
38
|
}), /*#__PURE__*/_react.default.createElement(Label, {
|
|
51
|
-
alias: _aliases.HEADER_CONSUMPTION
|
|
52
|
-
className: _stylesModule.default.label
|
|
39
|
+
alias: _aliases.HEADER_CONSUMPTION
|
|
53
40
|
}, "".concat(formatDate(startDate), " ").concat(toPreposition, " ").concat(formatDate(endDate)))));
|
|
54
41
|
};
|
|
55
|
-
|
|
56
42
|
HeaderConsumption.propTypes = {
|
|
57
43
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
58
44
|
startDate: _propTypes.string,
|
|
59
45
|
endDate: _propTypes.string
|
|
60
46
|
};
|
|
61
|
-
|
|
62
47
|
var _default = (0, _WithContextApi.default)()(HeaderConsumption);
|
|
63
|
-
|
|
64
48
|
exports.default = _default;
|
|
@@ -4,28 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = require("prop-types");
|
|
11
|
-
|
|
12
9
|
var _smartBillTypes = require("../../../../../../shared/types/smartBillTypes");
|
|
13
|
-
|
|
14
10
|
var _WithContextApi = _interopRequireDefault(require("../../../../../WithContextApi"));
|
|
15
|
-
|
|
16
11
|
var _aliases = require("../../../../../../shared/constants/aliases");
|
|
17
|
-
|
|
18
12
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
var HeaderSettlement = function HeaderSettlement(_ref) {
|
|
23
15
|
var contextApiInfo = _ref.contextApiInfo,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
date = _ref.date,
|
|
17
|
+
settlementNumber = _ref.settlementNumber,
|
|
18
|
+
isRemaining = _ref.isRemaining;
|
|
27
19
|
var Label = contextApiInfo.Label,
|
|
28
|
-
|
|
20
|
+
config = contextApiInfo.config;
|
|
29
21
|
var consumptionIncluded = config.texts.consumptionIncluded;
|
|
30
22
|
var mainLabelAlias = isRemaining ? _aliases.HEADER_SETTLEMENT_REMAINING : _aliases.HEADER_SETTLEMENT;
|
|
31
23
|
var dateLabelAlias = isRemaining ? _aliases.HEADER_SETTLEMENT_REMAINING_DATE : _aliases.HEADER_SETTLEMENT_DATE;
|
|
@@ -39,14 +31,11 @@ var HeaderSettlement = function HeaderSettlement(_ref) {
|
|
|
39
31
|
alias: dateLabelAlias
|
|
40
32
|
}, date));
|
|
41
33
|
};
|
|
42
|
-
|
|
43
34
|
HeaderSettlement.propTypes = {
|
|
44
35
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
45
36
|
date: _propTypes.string,
|
|
46
37
|
settlementNumber: _propTypes.number,
|
|
47
38
|
isRemaining: _propTypes.bool
|
|
48
39
|
};
|
|
49
|
-
|
|
50
40
|
var _default = (0, _WithContextApi.default)()(HeaderSettlement);
|
|
51
|
-
|
|
52
41
|
exports.default = _default;
|