@widergy/utilitygo-smart-bill-web 1.13.4 → 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 +12 -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 +12 -32
- 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 +2 -15
- 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 +16 -33
- 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 +1 -20
- 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 +4 -27
- 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 +5 -26
- 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 +4 -15
- package/dist/components/WithContextApi/layout.js +0 -9
- package/dist/components/WithSeason/index.js +0 -6
- 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 +84 -82
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [2.0.0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v1.13.4...v2.0.0) (2023-01-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* labels & buttons ([#29](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/29)) ([78f3875](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/78f38751da0e49b62298768b114a102d78613d41))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* Using new components
|
|
12
|
+
|
|
1
13
|
## [1.13.4](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v1.13.3...v1.13.4) (2022-09-16)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -4,27 +4,19 @@ 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 Advice = function Advice(_ref) {
|
|
23
15
|
var contextApiInfo = _ref.contextApiInfo,
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
title = _ref.title,
|
|
17
|
+
contentText = _ref.contentText;
|
|
26
18
|
var assets = contextApiInfo.assets,
|
|
27
|
-
|
|
19
|
+
Label = contextApiInfo.Label;
|
|
28
20
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
29
21
|
className: _stylesModule.default.container
|
|
30
22
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -38,13 +30,10 @@ var Advice = function Advice(_ref) {
|
|
|
38
30
|
alias: _aliases.ADVICE_CONTENT
|
|
39
31
|
}, contentText));
|
|
40
32
|
};
|
|
41
|
-
|
|
42
33
|
Advice.propTypes = {
|
|
43
34
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
44
35
|
title: _propTypes.string,
|
|
45
36
|
contentText: _propTypes.string
|
|
46
37
|
};
|
|
47
|
-
|
|
48
38
|
var _default = (0, _WithContextApi.default)()(Advice);
|
|
49
|
-
|
|
50
39
|
exports.default = _default;
|
|
@@ -4,45 +4,32 @@ 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 _dayjs = _interopRequireDefault(require("dayjs"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = require("prop-types");
|
|
13
|
-
|
|
14
10
|
var _aliases = require("../../shared/constants/aliases");
|
|
15
|
-
|
|
16
11
|
var _expirations = require("../../shared/utils/expirations");
|
|
17
|
-
|
|
18
12
|
var _smartBillTypes = require("../../shared/types/smartBillTypes");
|
|
19
|
-
|
|
20
13
|
var _billDataTypes = require("../../shared/types/billDataTypes");
|
|
21
|
-
|
|
22
14
|
var _WithContextApi = _interopRequireDefault(require("../WithContextApi"));
|
|
23
|
-
|
|
24
15
|
var _StyledAmount = _interopRequireDefault(require("../StyledAmount"));
|
|
25
|
-
|
|
26
16
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
27
|
-
|
|
28
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
-
|
|
30
18
|
var Amount = function Amount(_ref) {
|
|
31
19
|
var _expirations$;
|
|
32
|
-
|
|
33
20
|
var contextApiInfo = _ref.contextApiInfo,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
billData = _ref.billData,
|
|
22
|
+
containerClassName = _ref.containerClassName,
|
|
23
|
+
withBottomMargin = _ref.withBottomMargin;
|
|
37
24
|
var config = contextApiInfo.config,
|
|
38
|
-
|
|
25
|
+
Label = contextApiInfo.Label;
|
|
39
26
|
var useBriefExpiration = config.useBriefExpiration;
|
|
40
27
|
var _config$texts$commons = config.texts.commons,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
amountTitle = _config$texts$commons.amountTitle,
|
|
29
|
+
firstExpirationDate = _config$texts$commons.firstExpirationDate,
|
|
30
|
+
firstExpirationDateBrief = _config$texts$commons.firstExpirationDateBrief,
|
|
31
|
+
secondExpirationDateBrief = _config$texts$commons.secondExpirationDateBrief,
|
|
32
|
+
currency = _config$texts$commons.currency;
|
|
46
33
|
var isBrief = useBriefExpiration && firstExpirationDateBrief && secondExpirationDateBrief;
|
|
47
34
|
var firstText = isBrief ? firstExpirationDateBrief : firstExpirationDate;
|
|
48
35
|
var expirations = [{
|
|
@@ -52,12 +39,11 @@ var Amount = function Amount(_ref) {
|
|
|
52
39
|
text: secondExpirationDateBrief,
|
|
53
40
|
expiration: (0, _expirations.getExpiration)(billData, 2)
|
|
54
41
|
}];
|
|
55
|
-
|
|
56
42
|
var getExpirationComponent = function getExpirationComponent(item) {
|
|
57
43
|
var _item$expiration;
|
|
58
|
-
|
|
59
44
|
return (item === null || item === void 0 ? void 0 : (_item$expiration = item.expiration) === null || _item$expiration === void 0 ? void 0 : _item$expiration.date) && /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
-
className: "".concat(_stylesModule.default.firstExpirationDateContainer, " ").concat(withBottomMargin && _stylesModule.default.withBottomMargin)
|
|
45
|
+
className: "".concat(_stylesModule.default.firstExpirationDateContainer, " ").concat(withBottomMargin && _stylesModule.default.withBottomMargin),
|
|
46
|
+
key: item.text
|
|
61
47
|
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
62
48
|
alias: _aliases.DETAIL
|
|
63
49
|
}, item.text), /*#__PURE__*/_react.default.createElement(Label, {
|
|
@@ -65,7 +51,6 @@ var Amount = function Amount(_ref) {
|
|
|
65
51
|
className: _stylesModule.default.expiration
|
|
66
52
|
}, (0, _dayjs.default)(item.expiration.date, 'YYYY-MM-DD').format('DD/MM/YYYY')));
|
|
67
53
|
};
|
|
68
|
-
|
|
69
54
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
70
55
|
className: "".concat(_stylesModule.default.container, " ").concat(containerClassName)
|
|
71
56
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -84,14 +69,11 @@ var Amount = function Amount(_ref) {
|
|
|
84
69
|
return getExpirationComponent(exp);
|
|
85
70
|
})));
|
|
86
71
|
};
|
|
87
|
-
|
|
88
72
|
Amount.propTypes = {
|
|
89
73
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
90
74
|
billData: _billDataTypes.billDataTypes,
|
|
91
75
|
containerClassName: _propTypes.string,
|
|
92
76
|
withBottomMargin: _propTypes.bool
|
|
93
77
|
};
|
|
94
|
-
|
|
95
78
|
var _default = (0, _WithContextApi.default)()(Amount);
|
|
96
|
-
|
|
97
79
|
exports.default = _default;
|
|
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getFirstExpiration = void 0;
|
|
7
|
-
|
|
8
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
9
|
-
|
|
10
8
|
var getFirstExpiration = function getFirstExpiration(billData) {
|
|
11
9
|
return (0, _seamlessImmutable.getIn)(billData, ['expirations'], []).find(function (expiration) {
|
|
12
10
|
return expiration.number === 1;
|
|
13
11
|
}) || {};
|
|
14
12
|
};
|
|
15
|
-
|
|
16
13
|
exports.getFirstExpiration = getFirstExpiration;
|
|
@@ -4,22 +4,16 @@ 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
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
12
|
var Banner = function Banner(_ref) {
|
|
19
13
|
var contextApiInfo = _ref.contextApiInfo,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
image = _ref.image,
|
|
15
|
+
styleBanner = _ref.styleBanner,
|
|
16
|
+
externalLink = _ref.externalLink;
|
|
23
17
|
var ExternalLink = contextApiInfo.ExternalLink;
|
|
24
18
|
return /*#__PURE__*/_react.default.createElement(ExternalLink, {
|
|
25
19
|
key: externalLink,
|
|
@@ -30,14 +24,11 @@ var Banner = function Banner(_ref) {
|
|
|
30
24
|
alt: "banner"
|
|
31
25
|
}));
|
|
32
26
|
};
|
|
33
|
-
|
|
34
27
|
Banner.propTypes = {
|
|
35
28
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
36
29
|
image: _propTypes.string,
|
|
37
30
|
styleBanner: _propTypes.string,
|
|
38
31
|
externalLink: _propTypes.string
|
|
39
32
|
};
|
|
40
|
-
|
|
41
33
|
var _default = (0, _WithContextApi.default)()(Banner);
|
|
42
|
-
|
|
43
34
|
exports.default = _default;
|
|
@@ -1,58 +1,41 @@
|
|
|
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 _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
|
var _utils = require("./utils");
|
|
23
|
-
|
|
24
15
|
var _constants = require("./constants");
|
|
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
|
-
|
|
32
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); }
|
|
33
|
-
|
|
34
20
|
var BarChartSection = function BarChartSection(_ref) {
|
|
35
21
|
var _colors$barChart;
|
|
36
|
-
|
|
37
22
|
var contextApiInfo = _ref.contextApiInfo,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
23
|
+
data = _ref.data,
|
|
24
|
+
isDesktop = _ref.isDesktop,
|
|
25
|
+
unit = _ref.unit;
|
|
41
26
|
var BarChart = contextApiInfo.BarChart,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
27
|
+
Label = contextApiInfo.Label,
|
|
28
|
+
config = contextApiInfo.config,
|
|
29
|
+
assets = contextApiInfo.assets;
|
|
45
30
|
var CalendarIcon = assets.CalendarIcon,
|
|
46
|
-
|
|
31
|
+
EnergyIcon = assets.EnergyIcon;
|
|
47
32
|
var texts = config.texts,
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
colors = config.colors;
|
|
50
34
|
var _useMemo = (0, _react.useMemo)(function () {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
35
|
+
return (0, _utils.getProcessedData)(data, colors.barChart);
|
|
36
|
+
}, [data]),
|
|
37
|
+
processedData = _useMemo.processedData,
|
|
38
|
+
xAxisDefinition = _useMemo.xAxisDefinition;
|
|
56
39
|
var yAxisLabel = unit && "".concat(texts.consumptionPeriod.consumption, " (").concat(unit, ")");
|
|
57
40
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
58
41
|
className: _stylesModule.default.sectionContainer
|
|
@@ -89,7 +72,6 @@ var BarChartSection = function BarChartSection(_ref) {
|
|
|
89
72
|
minBarWidth: isDesktop ? _constants.DESKTOP_BAR_WIDTH : _constants.RESPONSIVE_BAR_WIDTH
|
|
90
73
|
})))));
|
|
91
74
|
};
|
|
92
|
-
|
|
93
75
|
BarChartSection.propTypes = {
|
|
94
76
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
95
77
|
data: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
|
|
@@ -99,7 +81,5 @@ BarChartSection.propTypes = {
|
|
|
99
81
|
isDesktop: _propTypes.bool,
|
|
100
82
|
unit: _propTypes.string
|
|
101
83
|
};
|
|
102
|
-
|
|
103
84
|
var _default = (0, _WithContextApi.default)()(BarChartSection);
|
|
104
|
-
|
|
105
85
|
exports.default = _default;
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.yAxisLabel {
|
|
35
|
+
margin: 0 0 32px 12px;
|
|
35
36
|
transform: rotate(-90deg);
|
|
36
37
|
transform-origin: left;
|
|
37
|
-
margin: 0px 0px 32px 12px;
|
|
38
38
|
width: max-content;
|
|
39
39
|
|
|
40
40
|
@media #{$tablet-mobile} {
|
|
41
|
-
margin:
|
|
41
|
+
margin: 0 0 16px 12px;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.energyIcon {
|
|
66
|
-
margin: 0 0 128px
|
|
66
|
+
margin: 0 0 128px;
|
|
67
67
|
|
|
68
68
|
@media #{$tablet-mobile} {
|
|
69
|
-
margin: 16px 0 116px
|
|
69
|
+
margin: 16px 0 116px;
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
}
|
|
@@ -4,21 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getProcessedData = void 0;
|
|
7
|
-
|
|
8
7
|
var getProcessedData = function getProcessedData(data) {
|
|
9
8
|
var colors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10
|
-
|
|
11
9
|
var getBarColor = function getBarColor(index) {
|
|
12
10
|
return index === 0 ? colors.first : index === data.length - 1 ? colors.last : colors.main;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
var getLabelColor = function getLabelColor(index) {
|
|
16
13
|
return index === 0 ? colors.valueFirst : index === data.length - 1 ? colors.last : colors.valueMain;
|
|
17
14
|
};
|
|
18
|
-
|
|
19
15
|
var processedData = data.map(function (_ref, index) {
|
|
20
16
|
var period = _ref.period,
|
|
21
|
-
|
|
17
|
+
consumption = _ref.consumption;
|
|
22
18
|
return {
|
|
23
19
|
value: consumption,
|
|
24
20
|
mainLabel: period,
|
|
@@ -39,5 +35,4 @@ var getProcessedData = function getProcessedData(data) {
|
|
|
39
35
|
xAxisDefinition: xAxisDefinition
|
|
40
36
|
};
|
|
41
37
|
};
|
|
42
|
-
|
|
43
38
|
exports.getProcessedData = getProcessedData;
|
|
@@ -4,47 +4,36 @@ 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 _array = require("@widergy/web-utils/lib/array");
|
|
11
|
-
|
|
12
9
|
var _propTypes = require("prop-types");
|
|
13
|
-
|
|
14
10
|
var _aliases = require("../../../../shared/constants/aliases");
|
|
15
|
-
|
|
16
11
|
var _smartBillTypes = require("../../../../shared/types/smartBillTypes");
|
|
17
|
-
|
|
18
12
|
var _WithContextApi = _interopRequireDefault(require("../../../WithContextApi"));
|
|
19
|
-
|
|
20
13
|
var _StyledAmount = _interopRequireDefault(require("../../../StyledAmount"));
|
|
21
|
-
|
|
22
14
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
23
|
-
|
|
24
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
16
|
+
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); }
|
|
26
17
|
var ConceptCard = function ConceptCard(_ref) {
|
|
27
18
|
var contextApiInfo = _ref.contextApiInfo,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
isOpen = _ref.isOpen,
|
|
20
|
+
onClick = _ref.onClick,
|
|
21
|
+
index = _ref.index,
|
|
22
|
+
titleHeader = _ref.titleHeader,
|
|
23
|
+
total = _ref.total,
|
|
24
|
+
_ref$lines = _ref.lines,
|
|
25
|
+
lines = _ref$lines === void 0 ? [] : _ref$lines;
|
|
35
26
|
var Card = contextApiInfo.Card,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
Label = contextApiInfo.Label,
|
|
28
|
+
config = contextApiInfo.config,
|
|
29
|
+
assets = contextApiInfo.assets;
|
|
39
30
|
var showZeroConcepts = config.showZeroConcepts,
|
|
40
|
-
|
|
31
|
+
colors = config.colors;
|
|
41
32
|
var ArrowDownwardIcon = assets.ArrowDownwardIcon,
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
ArrowUpwardIcon = assets.ArrowUpwardIcon;
|
|
44
34
|
var handleOnClick = function handleOnClick() {
|
|
45
35
|
return onClick(index);
|
|
46
36
|
};
|
|
47
|
-
|
|
48
37
|
var Header = /*#__PURE__*/_react.default.createElement("div", {
|
|
49
38
|
className: _stylesModule.default.headerContainer
|
|
50
39
|
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
@@ -55,7 +44,6 @@ var ConceptCard = function ConceptCard(_ref) {
|
|
|
55
44
|
amount: total,
|
|
56
45
|
variant: "xlarge"
|
|
57
46
|
}));
|
|
58
|
-
|
|
59
47
|
var handleRenderLines = function handleRenderLines(list) {
|
|
60
48
|
return (list.amount !== 0 || showZeroConcepts) && /*#__PURE__*/_react.default.createElement("div", {
|
|
61
49
|
className: _stylesModule.default.lineContainer,
|
|
@@ -73,20 +61,30 @@ var ConceptCard = function ConceptCard(_ref) {
|
|
|
73
61
|
alias: _aliases.LINE_DESCRIPTION
|
|
74
62
|
}, list.description));
|
|
75
63
|
};
|
|
76
|
-
|
|
77
64
|
var iconsStyle = {
|
|
78
65
|
fill: colors.primary
|
|
79
66
|
};
|
|
80
67
|
return /*#__PURE__*/_react.default.createElement(Card, {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
68
|
+
classNames: {
|
|
69
|
+
base: "".concat(_stylesModule.default.container, " ").concat((0, _array.isEmpty)(lines) && _stylesModule.default.containerWithoutLines),
|
|
70
|
+
expandButtonIcon: _stylesModule.default.expandIcon,
|
|
71
|
+
expandableContent: "".concat(isOpen && _stylesModule.default.expandableContent)
|
|
72
|
+
},
|
|
73
|
+
expandableIconProps: {
|
|
74
|
+
size: 'small'
|
|
85
75
|
},
|
|
86
|
-
|
|
87
|
-
|
|
76
|
+
ExpandedIcon: ArrowUpwardIcon && function (_ref2) {
|
|
77
|
+
var className = _ref2.className;
|
|
78
|
+
return /*#__PURE__*/_react.default.createElement(ArrowUpwardIcon, _extends({
|
|
79
|
+
className: className
|
|
80
|
+
}, iconsStyle));
|
|
81
|
+
},
|
|
82
|
+
NonExpandedIcon: ArrowDownwardIcon && function (_ref3) {
|
|
83
|
+
var className = _ref3.className;
|
|
84
|
+
return /*#__PURE__*/_react.default.createElement(ArrowDownwardIcon, _extends({
|
|
85
|
+
className: className
|
|
86
|
+
}, iconsStyle));
|
|
88
87
|
},
|
|
89
|
-
expandableContentClassName: "".concat(isOpen && _stylesModule.default.expandableContent),
|
|
90
88
|
header: Header,
|
|
91
89
|
horizontal: true,
|
|
92
90
|
style: {
|
|
@@ -99,7 +97,6 @@ var ConceptCard = function ConceptCard(_ref) {
|
|
|
99
97
|
className: _stylesModule.default.emptySpace
|
|
100
98
|
}), lines.map(handleRenderLines));
|
|
101
99
|
};
|
|
102
|
-
|
|
103
100
|
ConceptCard.propTypes = {
|
|
104
101
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes,
|
|
105
102
|
isOpen: _propTypes.bool,
|
|
@@ -113,7 +110,5 @@ ConceptCard.propTypes = {
|
|
|
113
110
|
amount: _propTypes.number
|
|
114
111
|
}))
|
|
115
112
|
};
|
|
116
|
-
|
|
117
113
|
var _default = (0, _WithContextApi.default)()(ConceptCard);
|
|
118
|
-
|
|
119
114
|
exports.default = _default;
|
|
@@ -1,79 +1,58 @@
|
|
|
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 _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
|
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); }
|
|
25
|
-
|
|
26
16
|
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; }
|
|
27
|
-
|
|
28
17
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
-
|
|
30
18
|
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."); }
|
|
31
|
-
|
|
32
19
|
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); }
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
20
|
+
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; }
|
|
21
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
38
22
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
-
|
|
40
23
|
var Glossary = function Glossary(_ref) {
|
|
41
24
|
var glossaryConcepts = _ref.glossaryConcepts,
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
contextApiInfo = _ref.contextApiInfo,
|
|
26
|
+
isDesktopSize = _ref.isDesktopSize;
|
|
44
27
|
var assets = contextApiInfo.assets,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
28
|
+
config = contextApiInfo.config,
|
|
29
|
+
Button = contextApiInfo.Button,
|
|
30
|
+
Label = contextApiInfo.Label,
|
|
31
|
+
Touchable = contextApiInfo.Touchable,
|
|
32
|
+
Dialog = contextApiInfo.Dialog,
|
|
33
|
+
Card = contextApiInfo.Card;
|
|
51
34
|
var texts = config.texts,
|
|
52
|
-
|
|
35
|
+
colors = config.colors;
|
|
53
36
|
var _texts$billCalculatio = texts.billCalculation,
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
glossaryTitle = _texts$billCalculatio.glossaryTitle,
|
|
38
|
+
seeGlossary = _texts$billCalculatio.seeGlossary;
|
|
56
39
|
var InfoIcon = assets.InfoIcon;
|
|
57
|
-
|
|
58
40
|
var _useState = (0, _react.useState)(),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
41
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
42
|
+
open = _useState2[0],
|
|
43
|
+
setOpen = _useState2[1];
|
|
63
44
|
var _useState3 = (0, _react.useState)(),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
45
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
46
|
+
openItem = _useState4[0],
|
|
47
|
+
setOpenItem = _useState4[1];
|
|
68
48
|
var toggleItem = function toggleItem(i) {
|
|
69
49
|
return i === openItem ? setOpenItem() : setOpenItem(i);
|
|
70
50
|
};
|
|
71
|
-
|
|
72
51
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(Dialog, {
|
|
73
52
|
isOpen: open,
|
|
74
53
|
title: glossaryTitle,
|
|
75
|
-
|
|
76
|
-
|
|
54
|
+
acceptButton: {
|
|
55
|
+
onClick: function onClick() {
|
|
77
56
|
return setOpen(false);
|
|
78
57
|
},
|
|
79
58
|
text: texts.commons.close
|
|
@@ -87,10 +66,12 @@ var Glossary = function Glossary(_ref) {
|
|
|
87
66
|
return /*#__PURE__*/_react.default.createElement(Card, {
|
|
88
67
|
horizontal: true,
|
|
89
68
|
isCollapsible: true,
|
|
90
|
-
|
|
91
|
-
|
|
69
|
+
classNames: {
|
|
70
|
+
base: _stylesModule.default.itemContainer,
|
|
71
|
+
expandableContent: _stylesModule.default.expandableContent
|
|
72
|
+
},
|
|
92
73
|
header: /*#__PURE__*/_react.default.createElement(Label, {
|
|
93
|
-
|
|
74
|
+
weight: "medium"
|
|
94
75
|
}, concept.title),
|
|
95
76
|
isOpen: i === openItem,
|
|
96
77
|
onClick: function onClick() {
|
|
@@ -115,19 +96,18 @@ var Glossary = function Glossary(_ref) {
|
|
|
115
96
|
}), /*#__PURE__*/_react.default.createElement(Label, {
|
|
116
97
|
alias: _aliases.GLOSSARY_LINK
|
|
117
98
|
}, seeGlossary)) : /*#__PURE__*/_react.default.createElement(Button, {
|
|
118
|
-
|
|
99
|
+
onClick: function onClick() {
|
|
119
100
|
return setOpen(true);
|
|
120
101
|
},
|
|
121
|
-
|
|
102
|
+
classNames: {
|
|
103
|
+
root: _stylesModule.default.button
|
|
104
|
+
}
|
|
122
105
|
}, seeGlossary));
|
|
123
106
|
};
|
|
124
|
-
|
|
125
107
|
Glossary.propTypes = {
|
|
126
108
|
isDesktopSize: _propTypes.bool,
|
|
127
109
|
glossaryConcepts: (0, _propTypes.arrayOf)(_propTypes.any),
|
|
128
110
|
contextApiInfo: _smartBillTypes.contextApiInfoTypes
|
|
129
111
|
};
|
|
130
|
-
|
|
131
112
|
var _default = (0, _WithContextApi.default)()(Glossary);
|
|
132
|
-
|
|
133
113
|
exports.default = _default;
|