@widergy/utilitygo-smart-bill-web 1.10.0 → 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 +7 -0
- package/dist/components/Advice/index.js +6 -10
- package/dist/components/Amount/index.js +21 -26
- package/dist/components/Amount/utils.js +5 -1
- package/dist/components/Banner/index.js +6 -10
- package/dist/components/BarChart/constants.js +3 -3
- package/dist/components/BarChart/index.js +25 -28
- package/dist/components/BarChart/utils.js +15 -15
- package/dist/components/BillCalculation/components/ConceptCard/index.js +48 -47
- package/dist/components/BillCalculation/constants.js +1 -1
- package/dist/components/BillCalculation/index.js +54 -44
- package/dist/components/BillCalculation/utils.js +14 -17
- package/dist/components/BillSummary/components/BilledConcepts/components/Concept/index.js +25 -26
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/constants.js +9 -3
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/index.js +31 -34
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/styles.module.scss +2 -2
- package/dist/components/BillSummary/components/BilledConcepts/constants.js +14 -12
- package/dist/components/BillSummary/components/BilledConcepts/index.js +49 -31
- package/dist/components/BillSummary/components/BilledConcepts/utils.js +76 -44
- package/dist/components/BillSummary/index.js +78 -76
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/index.js +8 -8
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/index.js +12 -17
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/utils.js +1 -1
- package/dist/components/ConsumptionComparison/components/ComparisonTable/constants.js +135 -148
- package/dist/components/ConsumptionComparison/components/ComparisonTable/index.js +14 -16
- package/dist/components/ConsumptionComparison/components/ComparisonTable/utils.js +94 -89
- package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/index.js +11 -21
- package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/utils.js +1 -1
- package/dist/components/ConsumptionComparison/components/PercentageComparison/index.js +16 -21
- package/dist/components/ConsumptionComparison/components/PercentageComparison/utils.js +9 -13
- package/dist/components/ConsumptionComparison/index.js +56 -42
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/index.js +26 -30
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionInDaysLabel/index.js +13 -18
- package/dist/components/ConsumptionEnergyDetails/components/EnergyTotalConsumption/index.js +15 -17
- package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/index.js +17 -21
- package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/utils.js +1 -1
- package/dist/components/ConsumptionEnergyDetails/index.js +47 -51
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/index.js +65 -66
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/utils.js +13 -11
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/index.js +19 -22
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderSettlement/index.js +10 -16
- package/dist/components/ConsumptionIncluded/components/TimelineRow/index.js +39 -43
- package/dist/components/ConsumptionIncluded/index.js +36 -34
- package/dist/components/ConsumptionIncluded/utils.js +33 -29
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/components/ReadingRow/index.js +10 -14
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/index.js +22 -25
- package/dist/components/ConsumptionPeriod/components/HistoryGraph/index.js +34 -18
- package/dist/components/ConsumptionPeriod/components/Reading/index.js +34 -37
- package/dist/components/ConsumptionPeriod/index.js +8 -12
- package/dist/components/ConsumptionPeriod/utils.js +15 -13
- package/dist/components/Date/index.js +9 -12
- package/dist/components/DebtState/index.js +8 -14
- package/dist/components/IconAndDetails/index.js +17 -19
- package/dist/components/Magnitude/index.js +12 -15
- package/dist/components/Magnitude/utils.js +8 -2
- package/dist/components/MainBillData/components/BillAlert/components/BillParticularConditions/index.js +16 -20
- package/dist/components/MainBillData/components/BillAlert/index.js +45 -28
- package/dist/components/MainBillData/components/BillBody/components/ClientData/index.js +11 -19
- package/dist/components/MainBillData/components/BillBody/components/Consumption/index.js +11 -14
- package/dist/components/MainBillData/components/BillBody/components/Consumption/utils.js +3 -1
- package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/index.js +15 -23
- package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/utils.js +1 -1
- package/dist/components/MainBillData/components/BillBody/index.js +50 -45
- package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/index.js +9 -15
- package/dist/components/MainBillData/components/BillHeader/index.js +26 -29
- package/dist/components/MainBillData/index.js +5 -7
- package/dist/components/MainBillData/theme.js +9 -7
- package/dist/components/MainBillData/utils.js +5 -1
- package/dist/components/Period/index.js +47 -55
- package/dist/components/PowerProgresBar/components/PowerConsumption/index.js +11 -15
- package/dist/components/PowerProgresBar/index.js +36 -36
- package/dist/components/RateAndCategory/index.js +31 -30
- package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/index.js +13 -20
- package/dist/components/RatesDefinition/components/BillRate/index.js +14 -24
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/index.js +9 -14
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/components/LimitsLine/index.js +7 -5
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/components/SubStage/index.js +12 -18
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/components/SubStage/utils.js +3 -1
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/index.js +18 -18
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/index.js +19 -19
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/index.js +21 -26
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/index.js +12 -15
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/utils.js +37 -35
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/LegendItem/index.js +23 -26
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/constants.js +18 -18
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/index.js +32 -12
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/utils.js +20 -12
- package/dist/components/RatesDefinition/components/CategoryByConsumption/index.js +50 -32
- package/dist/components/RatesDefinition/components/PurchasedRate/index.js +13 -19
- package/dist/components/RatesDefinition/index.js +15 -20
- package/dist/components/SmartBillProvider/index.js +47 -12
- package/dist/components/StyledAmount/constants.js +1 -1
- package/dist/components/StyledAmount/index.js +35 -19
- package/dist/components/WithContextApi/index.js +27 -16
- package/dist/components/WithContextApi/layout.js +2 -2
- package/dist/components/WithSeason/index.js +9 -5
- package/dist/constants/deviceSizes.js +17 -27
- package/dist/constants/seasons.js +2 -2
- package/dist/index.js +16 -14
- package/dist/shared/Context/index.js +3 -5
- package/dist/shared/constants/aliases.js +550 -683
- package/dist/shared/constants/components.js +2 -1
- package/dist/shared/constants/consumptions.js +4 -4
- package/dist/shared/constants/periodicities.js +1 -1
- package/dist/shared/constants/rates.js +1 -1
- package/dist/shared/constants/readings.js +2 -2
- package/dist/shared/constants/seasons.js +2 -2
- package/dist/shared/constants/stagesGraph.js +4 -4
- package/dist/shared/types/assetsTypes.js +1 -1
- package/dist/shared/types/billDataTypes.js +4 -4
- package/dist/shared/types/componentsTypes.js +13 -18
- package/dist/shared/types/formattersTypes.js +1 -1
- package/dist/shared/types/rateStagesTypes.js +3 -3
- package/dist/shared/types/smartBillTypes.js +10 -5
- package/dist/shared/types/textsTypes.js +1 -1
- package/dist/shared/utils/billCalculation.js +9 -9
- package/dist/shared/utils/consumptions.js +62 -28
- package/dist/shared/utils/context.js +8 -7
- package/dist/shared/utils/expirations.js +5 -1
- package/dist/shared/utils/periods.js +20 -14
- package/dist/shared/utils/rates.js +5 -1
- package/dist/shared/utils/readings.js +10 -2
- package/dist/shared/utils/season.js +5 -1
- package/dist/shared/utils/stagesGraph.js +15 -11
- package/dist/utils/hooks.js +58 -19
- package/dist/utils.js +8 -4
- package/package.json +1 -2
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/utils.js +0 -27
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
exports.PIE_CHART_CUSTOMIZATION = void 0;
|
|
7
|
+
var PIE_CHART_CUSTOMIZATION = {
|
|
8
|
+
animationLength: 800,
|
|
9
|
+
height: 200,
|
|
10
|
+
minAngle: 0.1,
|
|
11
|
+
outerRadius: 100,
|
|
12
|
+
width: 200
|
|
13
|
+
};
|
|
14
|
+
exports.PIE_CHART_CUSTOMIZATION = PIE_CHART_CUSTOMIZATION;
|
package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/index.js
CHANGED
|
@@ -7,55 +7,52 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _recharts = require("recharts");
|
|
11
|
-
|
|
12
10
|
var _propTypes = require("prop-types");
|
|
13
11
|
|
|
12
|
+
var _smartBillTypes = require("../../../../../../shared/types/smartBillTypes");
|
|
13
|
+
|
|
14
|
+
var _WithContextApi = _interopRequireDefault(require("../../../../../WithContextApi"));
|
|
15
|
+
|
|
14
16
|
var _utils = require("../../utils");
|
|
15
17
|
|
|
16
|
-
var
|
|
18
|
+
var _constants = require("./constants");
|
|
17
19
|
|
|
18
20
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
25
|
+
|
|
26
|
+
var PieChartContainer = function PieChartContainer(_ref) {
|
|
27
|
+
var concepts = _ref.concepts,
|
|
28
|
+
additionalInfo = _ref.additionalInfo,
|
|
29
|
+
contextApiInfo = _ref.contextApiInfo;
|
|
30
|
+
var PieChart = contextApiInfo.PieChart;
|
|
31
|
+
var pieConceptsData = concepts.map(function (concept) {
|
|
32
|
+
return {
|
|
33
|
+
color: concept.color,
|
|
34
|
+
name: concept.title,
|
|
35
|
+
value: concept.total
|
|
36
|
+
};
|
|
37
|
+
});
|
|
32
38
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
39
|
className: _stylesModule.default.container
|
|
34
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
35
|
-
className: _stylesModule.default.
|
|
36
|
-
}, !additionalInfo.negativeAmmount && /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
37
|
-
height: 250
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.PieChart, {
|
|
39
|
-
width: 400,
|
|
40
|
-
height: 250
|
|
41
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.Pie, {
|
|
40
|
+
}, !additionalInfo.negativeAmmount && /*#__PURE__*/_react.default.createElement(PieChart, _extends({
|
|
41
|
+
className: _stylesModule.default.pie,
|
|
42
42
|
data: pieConceptsData,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
fill: "#8884d8",
|
|
49
|
-
dataKey: "value"
|
|
50
|
-
}, concepts === null || concepts === void 0 ? void 0 : concepts.map(concept => /*#__PURE__*/_react.default.createElement(_recharts.Cell, {
|
|
51
|
-
fill: concept.color,
|
|
52
|
-
stroke: "none"
|
|
53
|
-
})))))), concepts.map((concept, index) => (0, _utils.renderConcept)(concept, additionalInfo, index === 0)));
|
|
43
|
+
withLabels: false,
|
|
44
|
+
withLegend: false
|
|
45
|
+
}, _constants.PIE_CHART_CUSTOMIZATION)), concepts.map(function (concept, index) {
|
|
46
|
+
return (0, _utils.renderConcept)(concept, additionalInfo, index === 0);
|
|
47
|
+
}));
|
|
54
48
|
};
|
|
55
49
|
|
|
56
50
|
PieChartContainer.propTypes = {
|
|
51
|
+
additionalInfo: (0, _propTypes.shape)((0, _propTypes.objectOf)(_propTypes.any)),
|
|
57
52
|
concepts: (0, _propTypes.shape)((0, _propTypes.objectOf)(_propTypes.any)),
|
|
58
|
-
|
|
53
|
+
contextApiInfo: _smartBillTypes.contextApiInfoTypes
|
|
59
54
|
};
|
|
60
|
-
|
|
55
|
+
|
|
56
|
+
var _default = (0, _WithContextApi.default)()(PieChartContainer);
|
|
57
|
+
|
|
61
58
|
exports.default = _default;
|
|
@@ -7,21 +7,23 @@ exports.toggleOptions = exports.progressBar = exports.pieChart = exports.COLORS
|
|
|
7
7
|
|
|
8
8
|
var _colorsExport = require("../../../../scss/variables/_colorsExport.scss");
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
var pieChart = 'pieChart';
|
|
11
11
|
exports.pieChart = pieChart;
|
|
12
|
-
|
|
12
|
+
var progressBar = 'progressBar';
|
|
13
13
|
exports.progressBar = progressBar;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
var toggleOptions = function toggleOptions(assets) {
|
|
16
|
+
return [{
|
|
17
|
+
value: progressBar,
|
|
18
|
+
Icon: assets.ListGrayIcon,
|
|
19
|
+
SelectedIcon: assets.ListWhiteIcon
|
|
20
|
+
}, {
|
|
21
|
+
value: pieChart,
|
|
22
|
+
Icon: assets.PieGrayIcon,
|
|
23
|
+
SelectedIcon: assets.PieWhiteIcon
|
|
24
|
+
}];
|
|
25
|
+
};
|
|
24
26
|
|
|
25
27
|
exports.toggleOptions = toggleOptions;
|
|
26
|
-
|
|
28
|
+
var COLORS = [_colorsExport.primary, _colorsExport.darkGray, _colorsExport.pieChartGray, _colorsExport.pieChartLightGray];
|
|
27
29
|
exports.COLORS = COLORS;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -25,45 +27,59 @@ var _utils = require("./utils");
|
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
29
|
|
|
28
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
+
|
|
36
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
37
|
+
|
|
38
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
29
39
|
|
|
30
|
-
function
|
|
40
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
31
41
|
|
|
32
|
-
|
|
42
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
43
|
+
|
|
44
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
+
|
|
46
|
+
var BilledConcepts = function BilledConcepts(_ref) {
|
|
33
47
|
var _billData$detail;
|
|
34
48
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const totalAmount = billData === null || billData === void 0 ? void 0 : (_billData$detail = billData.detail) === null || _billData$detail === void 0 ? void 0 : _billData$detail.total_amount;
|
|
57
|
-
const concepts = (0, _react.useMemo)(() => {
|
|
49
|
+
var contextApiInfo = _ref.contextApiInfo,
|
|
50
|
+
billData = _ref.billData;
|
|
51
|
+
var config = contextApiInfo.config,
|
|
52
|
+
Label = contextApiInfo.Label,
|
|
53
|
+
Toggle = contextApiInfo.Toggle,
|
|
54
|
+
assets = contextApiInfo.assets;
|
|
55
|
+
var showZeroConcepts = config.showZeroConcepts,
|
|
56
|
+
colors = config.colors;
|
|
57
|
+
var billedConceptsTitle = config.texts.billSummary.billedConceptsTitle;
|
|
58
|
+
|
|
59
|
+
var _useState = (0, _react.useState)(_constants.progressBar),
|
|
60
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
61
|
+
toggleOption = _useState2[0],
|
|
62
|
+
setToggleOption = _useState2[1];
|
|
63
|
+
|
|
64
|
+
var handleChangeToggleOption = function handleChangeToggleOption(newOption) {
|
|
65
|
+
return setToggleOption(newOption);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var totalAmount = billData === null || billData === void 0 ? void 0 : (_billData$detail = billData.detail) === null || _billData$detail === void 0 ? void 0 : _billData$detail.total_amount;
|
|
69
|
+
var concepts = (0, _react.useMemo)(function () {
|
|
58
70
|
var _billData$detail2;
|
|
59
71
|
|
|
60
72
|
return (0, _utils.getOrderedAndColoredConcepts)(billData === null || billData === void 0 ? void 0 : (_billData$detail2 = billData.detail) === null || _billData$detail2 === void 0 ? void 0 : _billData$detail2.concepts, totalAmount, showZeroConcepts, (0, _utils.getColorsDefinition)(colors));
|
|
61
73
|
}, []);
|
|
62
|
-
|
|
63
|
-
|
|
74
|
+
var negativeAmmount = concepts.some(function (concept) {
|
|
75
|
+
return concept.total < 0;
|
|
76
|
+
});
|
|
77
|
+
var additionalInfo = {
|
|
64
78
|
showProgressBar: toggleOption === _constants.progressBar,
|
|
65
|
-
negativeAmmount: concepts.some(
|
|
66
|
-
|
|
79
|
+
negativeAmmount: concepts.some(function (concept) {
|
|
80
|
+
return concept.total < 0;
|
|
81
|
+
}),
|
|
82
|
+
totalAmount: totalAmount
|
|
67
83
|
};
|
|
68
84
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
69
85
|
className: _stylesModule.default.container
|
|
@@ -79,7 +95,9 @@ const BilledConcepts = _ref => {
|
|
|
79
95
|
className: _stylesModule.default.toggle,
|
|
80
96
|
optionClassName: _stylesModule.default.toggleOption,
|
|
81
97
|
orientation: "horizontal"
|
|
82
|
-
})), !negativeAmmount && toggleOption === _constants.progressBar ? concepts.map(
|
|
98
|
+
})), !negativeAmmount && toggleOption === _constants.progressBar ? concepts.map(function (concept, index) {
|
|
99
|
+
return (0, _utils.renderConcept)(concept, additionalInfo, index === 0);
|
|
100
|
+
}) : /*#__PURE__*/_react.default.createElement(_PieChartContainer.default, {
|
|
83
101
|
concepts: concepts,
|
|
84
102
|
additionalInfo: additionalInfo
|
|
85
103
|
}));
|
|
@@ -13,32 +13,56 @@ var _Concept = _interopRequireDefault(require("./components/Concept"));
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
22
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
23
|
+
|
|
24
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
25
|
+
|
|
26
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
27
|
+
|
|
28
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
29
|
+
|
|
30
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
31
|
+
|
|
32
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
33
|
+
|
|
34
|
+
var roundPercentage = function roundPercentage(value) {
|
|
35
|
+
return Math.round(value * 10) / 10;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var calculatePercentages = function calculatePercentages(billConcepts, totalAmount) {
|
|
39
|
+
var indexToAdjust = billConcepts.findIndex(function (concept) {
|
|
40
|
+
return concept.total !== 0;
|
|
41
|
+
});
|
|
42
|
+
var adjustValue = 100 - billConcepts.reduce(function (accum, concept) {
|
|
43
|
+
return accum + roundPercentage(concept.total / totalAmount * 100);
|
|
44
|
+
}, 0);
|
|
45
|
+
return billConcepts.map(function (concept, index) {
|
|
46
|
+
return roundPercentage(concept.total / totalAmount * 100 + (index === indexToAdjust ? adjustValue : 0));
|
|
47
|
+
});
|
|
22
48
|
};
|
|
23
49
|
|
|
24
50
|
exports.calculatePercentages = calculatePercentages;
|
|
25
51
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} = additionalInfo;
|
|
41
|
-
const showPercentage = !(percentage === 0);
|
|
52
|
+
var getProgressBarPercentage = function getProgressBarPercentage(maxPercentage, percentage) {
|
|
53
|
+
return percentage / maxPercentage * 100;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var renderConcept = function renderConcept(conceptData, additionalInfo, isFirst) {
|
|
57
|
+
var title = conceptData.title,
|
|
58
|
+
total = conceptData.total,
|
|
59
|
+
color = conceptData.color,
|
|
60
|
+
percentage = conceptData.percentage,
|
|
61
|
+
progressBarPercentage = conceptData.progressBarPercentage;
|
|
62
|
+
var showProgressBar = additionalInfo.showProgressBar,
|
|
63
|
+
negativeAmmount = additionalInfo.negativeAmmount,
|
|
64
|
+
totalAmount = additionalInfo.totalAmount;
|
|
65
|
+
var showPercentage = !(percentage === 0);
|
|
42
66
|
return /*#__PURE__*/_react.default.createElement(_Concept.default, {
|
|
43
67
|
key: title,
|
|
44
68
|
title: title,
|
|
@@ -56,43 +80,51 @@ const renderConcept = (conceptData, additionalInfo, isFirst) => {
|
|
|
56
80
|
|
|
57
81
|
exports.renderConcept = renderConcept;
|
|
58
82
|
|
|
59
|
-
|
|
83
|
+
var isZeroConcept = function isZeroConcept(concept) {
|
|
84
|
+
return concept.total === 0;
|
|
85
|
+
};
|
|
60
86
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
87
|
+
var getSortedData = function getSortedData(concepts, showZeroConcepts) {
|
|
88
|
+
var nonZeroConcepts = concepts === null || concepts === void 0 ? void 0 : concepts.filter(function (concept) {
|
|
89
|
+
return !isZeroConcept(concept);
|
|
90
|
+
});
|
|
91
|
+
var zeroConcepts = showZeroConcepts && (concepts === null || concepts === void 0 ? void 0 : concepts.filter(isZeroConcept)) || [];
|
|
64
92
|
return {
|
|
65
|
-
sortedConcepts: [
|
|
93
|
+
sortedConcepts: [].concat(_toConsumableArray(nonZeroConcepts), _toConsumableArray(zeroConcepts)),
|
|
66
94
|
nonZeroLength: nonZeroConcepts.length
|
|
67
95
|
};
|
|
68
96
|
};
|
|
69
97
|
|
|
70
|
-
|
|
98
|
+
var getColorsDefinition = function getColorsDefinition(externalColors) {
|
|
99
|
+
return [externalColors.primary || _constants.COLORS.primary].concat(_toConsumableArray(_constants.COLORS.slice(1)));
|
|
100
|
+
};
|
|
71
101
|
|
|
72
102
|
exports.getColorsDefinition = getColorsDefinition;
|
|
73
103
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
104
|
+
var getItemColor = function getItemColor(index, nonZeroLength, colorsDefinition) {
|
|
105
|
+
var colorsLen = _constants.COLORS.length;
|
|
106
|
+
var colorIndex = index % colorsLen;
|
|
107
|
+
var isLastNonZero = index === nonZeroLength - 1;
|
|
108
|
+
var nextColorIndex = (index + 1) % colorsLen;
|
|
79
109
|
return colorsDefinition[isLastNonZero && colorsDefinition[colorIndex] === colorsDefinition[0] ? nextColorIndex : colorIndex];
|
|
80
110
|
};
|
|
81
111
|
|
|
82
112
|
exports.getItemColor = getItemColor;
|
|
83
113
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return sortedConcepts.map((concept, index)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
114
|
+
var getOrderedAndColoredConcepts = function getOrderedAndColoredConcepts(concepts, totalAmount, showZeroConcepts, colorsDefinition) {
|
|
115
|
+
var _getSortedData = getSortedData(concepts, showZeroConcepts),
|
|
116
|
+
sortedConcepts = _getSortedData.sortedConcepts,
|
|
117
|
+
nonZeroLength = _getSortedData.nonZeroLength;
|
|
118
|
+
|
|
119
|
+
var percentages = calculatePercentages(sortedConcepts, totalAmount);
|
|
120
|
+
var maxPercentage = Math.max.apply(Math, _toConsumableArray(percentages));
|
|
121
|
+
return sortedConcepts.map(function (concept, index) {
|
|
122
|
+
return _objectSpread(_objectSpread({}, concept), {}, {
|
|
123
|
+
percentage: percentages[index],
|
|
124
|
+
progressBarPercentage: getProgressBarPercentage(maxPercentage, percentages[index]),
|
|
125
|
+
color: !isZeroConcept(concept) && getItemColor(index, nonZeroLength, colorsDefinition)
|
|
126
|
+
});
|
|
127
|
+
});
|
|
96
128
|
};
|
|
97
129
|
|
|
98
130
|
exports.getOrderedAndColoredConcepts = getOrderedAndColoredConcepts;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -41,86 +43,86 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
41
43
|
|
|
42
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
45
|
|
|
44
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
46
|
+
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); }
|
|
45
47
|
|
|
46
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null ||
|
|
48
|
+
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; }
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
var BillSummary = function BillSummary(_ref) {
|
|
49
51
|
var _billData$client, _billData$client$rate, _billData$client2, _billData$client2$rat, _currentPeriod$settle, _currentPeriod$settle2, _currentPeriod$settle3;
|
|
50
52
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
53
|
+
var contextApiInfo = _ref.contextApiInfo,
|
|
54
|
+
billData = _ref.billData;
|
|
55
|
+
var config = contextApiInfo.config,
|
|
56
|
+
assets = contextApiInfo.assets;
|
|
57
|
+
var consumptionDetail = config.externalLinks.consumptionDetail;
|
|
58
|
+
var _config$validations = config.validations,
|
|
59
|
+
showBillSummaryBanner = _config$validations.showBillSummaryBanner,
|
|
60
|
+
showPower = _config$validations.showPower,
|
|
61
|
+
showCategory = _config$validations.showCategory;
|
|
62
|
+
var texts = config.texts;
|
|
63
|
+
var ConsumptionBannerIcon = assets.ConsumptionBannerIcon,
|
|
64
|
+
ConsumptionBannerResponsiveIcon = assets.ConsumptionBannerResponsiveIcon;
|
|
65
|
+
var currentPeriod = (0, _periods.getCurrentPeriod)(billData);
|
|
66
|
+
var hiredPowerConsumption = (0, _consumptions.getTotalConsumption)(currentPeriod, _consumptions2.POWER_TYPES.PURCHASED);
|
|
67
|
+
var registeredPowerConsumption = (0, _consumptions.getTotalConsumption)(currentPeriod, _consumptions2.POWER_TYPES.REGISTERED);
|
|
68
|
+
var exceededPower = (0, _consumptions.getTotalConsumption)(currentPeriod, _consumptions2.POWER_TYPES.EXCEEDED);
|
|
69
|
+
var rate = billData === null || billData === void 0 ? void 0 : (_billData$client = billData.client) === null || _billData$client === void 0 ? void 0 : (_billData$client$rate = _billData$client.rate) === null || _billData$client$rate === void 0 ? void 0 : _billData$client$rate.purchased;
|
|
70
|
+
var category = billData === null || billData === void 0 ? void 0 : (_billData$client2 = billData.client) === null || _billData$client2 === void 0 ? void 0 : (_billData$client2$rat = _billData$client2.rate) === null || _billData$client2$rat === void 0 ? void 0 : _billData$client2$rat.category;
|
|
71
|
+
var multipleSettlements = (currentPeriod === null || currentPeriod === void 0 ? void 0 : (_currentPeriod$settle = currentPeriod.settlements) === null || _currentPeriod$settle === void 0 ? void 0 : _currentPeriod$settle.total_settlements) > 1;
|
|
72
|
+
var issueedDate = currentPeriod === null || currentPeriod === void 0 ? void 0 : (_currentPeriod$settle2 = currentPeriod.settlements) === null || _currentPeriod$settle2 === void 0 ? void 0 : (_currentPeriod$settle3 = _currentPeriod$settle2.current) === null || _currentPeriod$settle3 === void 0 ? void 0 : _currentPeriod$settle3.issued_on;
|
|
73
|
+
|
|
74
|
+
var _useScreenSize = (0, _hooks.useScreenSize)(),
|
|
75
|
+
isDesktopSize = _useScreenSize.isDesktopSize;
|
|
76
|
+
|
|
77
|
+
var withBanner = ConsumptionBannerIcon && ConsumptionBannerResponsiveIcon && showBillSummaryBanner(billData);
|
|
78
|
+
|
|
79
|
+
var RenderPeriod = function RenderPeriod() {
|
|
80
|
+
return /*#__PURE__*/_react.default.createElement(_Period.default, {
|
|
81
|
+
billData: billData,
|
|
82
|
+
alias: _aliases.SUMMARY_PERIOD,
|
|
83
|
+
currentPeriod: currentPeriod,
|
|
84
|
+
multipleSettlements: multipleSettlements,
|
|
85
|
+
issueedDate: issueedDate
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
var RenderConsumptionEnergyDetails = function RenderConsumptionEnergyDetails() {
|
|
90
|
+
return /*#__PURE__*/_react.default.createElement(_ConsumptionEnergyDetails.default, {
|
|
91
|
+
billData: billData,
|
|
92
|
+
currentPeriod: currentPeriod,
|
|
93
|
+
multipleSettlements: multipleSettlements,
|
|
94
|
+
withPercentage: true
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
var RenderRateAndCategory = function RenderRateAndCategory() {
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(_RateAndCategory.default, {
|
|
100
|
+
rate: rate,
|
|
101
|
+
category: category,
|
|
102
|
+
title: texts.billSummary.rateTitle,
|
|
103
|
+
classes: {
|
|
104
|
+
container: _stylesModule.default.rateContainer,
|
|
105
|
+
title: _stylesModule.default.title,
|
|
106
|
+
purchasedRate: _stylesModule.default.purchasedRate,
|
|
107
|
+
category: showCategory(billData) ? _stylesModule.default.category : _stylesModule.default.hidden
|
|
108
|
+
},
|
|
109
|
+
showCategory: showCategory(billData)
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
var RenderPowerProgresBar = function RenderPowerProgresBar() {
|
|
114
|
+
return /*#__PURE__*/_react.default.createElement(_PowerProgresBar.default, {
|
|
115
|
+
hiredPowerConsumption: hiredPowerConsumption,
|
|
116
|
+
registeredPowerConsumption: registeredPowerConsumption,
|
|
117
|
+
exceededPower: exceededPower
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
var RenderBilledConcepts = function RenderBilledConcepts() {
|
|
122
|
+
return /*#__PURE__*/_react.default.createElement(_BilledConcepts.default, {
|
|
123
|
+
billData: billData
|
|
124
|
+
});
|
|
125
|
+
};
|
|
124
126
|
|
|
125
127
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, isDesktopSize ? /*#__PURE__*/_react.default.createElement("div", {
|
|
126
128
|
className: _stylesModule.default.container
|
|
@@ -17,16 +17,16 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
fields
|
|
23
|
-
} = _ref;
|
|
20
|
+
var DataLine = function DataLine(_ref) {
|
|
21
|
+
var fields = _ref.fields;
|
|
24
22
|
return !(0, _object.objectIsEmpty)(fields) && /*#__PURE__*/_react.default.createElement("div", {
|
|
25
23
|
className: _stylesModule.default.container
|
|
26
|
-
}, fields === null || fields === void 0 ? void 0 : fields.map(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
}, fields === null || fields === void 0 ? void 0 : fields.map(function (field) {
|
|
25
|
+
return field && /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
+
key: field.id,
|
|
27
|
+
className: _stylesModule.default.cell
|
|
28
|
+
}, field.Component);
|
|
29
|
+
}));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
DataLine.propTypes = {
|