@widergy/utilitygo-smart-bill-web 3.13.1 → 3.14.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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [3.14.0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.13.1...v3.14.0) (2025-10-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* download button ([#65](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/65)) ([51fb1c1](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/51fb1c168d49b4cbe33019370c67610b0495bdf0))
|
|
7
|
+
|
|
1
8
|
## [3.13.1](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.13.0...v3.13.1) (2025-09-30)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -26,6 +26,7 @@ const SmartBillSummary = _ref => {
|
|
|
26
26
|
colors,
|
|
27
27
|
components,
|
|
28
28
|
constants,
|
|
29
|
+
downloadSmartbillEnabled,
|
|
29
30
|
handlers,
|
|
30
31
|
loading,
|
|
31
32
|
showOnboarding = false,
|
|
@@ -57,6 +58,7 @@ const SmartBillSummary = _ref => {
|
|
|
57
58
|
getGlossaryData,
|
|
58
59
|
getSmartBillAIAnswer,
|
|
59
60
|
getSmartBillAIQuestions,
|
|
61
|
+
handleDownloadSmartBill,
|
|
60
62
|
resetSmartBillAIAnswers,
|
|
61
63
|
trackAIFloatingButtonClick,
|
|
62
64
|
trackTabChange
|
|
@@ -147,6 +149,8 @@ const SmartBillSummary = _ref => {
|
|
|
147
149
|
billIssueDate: translations.billingTab.header.billIssueDate,
|
|
148
150
|
debtStatusValidation: smartBill.debt_status_label !== null,
|
|
149
151
|
debtStatusLabel: smartBill.debt_status_label,
|
|
152
|
+
downloadSmartbillEnabled,
|
|
153
|
+
handleDownloadSmartBill,
|
|
150
154
|
smartBill
|
|
151
155
|
}), _constants.TAB_COMPONENT_MAPPER?.[currentTab]?.({
|
|
152
156
|
assets,
|
|
@@ -209,6 +213,7 @@ SmartBillSummary.propTypes = {
|
|
|
209
213
|
[_propTypes.string]: _propTypes.elementType
|
|
210
214
|
}),
|
|
211
215
|
constants: _propTypes.object,
|
|
216
|
+
downloadSmartbillEnabled: _propTypes.bool,
|
|
212
217
|
handlers: (0, _propTypes.shape)({
|
|
213
218
|
[_propTypes.string]: _propTypes.func
|
|
214
219
|
}),
|
|
@@ -20,6 +20,8 @@ const BillHeader = _ref => {
|
|
|
20
20
|
billTypeHelpText,
|
|
21
21
|
debtStatusLabel,
|
|
22
22
|
debtStatusValidation,
|
|
23
|
+
downloadSmartbillEnabled,
|
|
24
|
+
handleDownloadSmartBill,
|
|
23
25
|
issuedOnDate,
|
|
24
26
|
smartBill,
|
|
25
27
|
UtilityLogo
|
|
@@ -52,10 +54,14 @@ const BillHeader = _ref => {
|
|
|
52
54
|
}, billIssueDate)), debtStatusValidation && /*#__PURE__*/_react.default.createElement(_DebtStatusLabel.default, {
|
|
53
55
|
debtStatusLabel: debtStatusLabel,
|
|
54
56
|
isWarning: smartBill?.warning
|
|
55
|
-
})), annex && /*#__PURE__*/_react.default.createElement(_energyUi.UTButton, {
|
|
57
|
+
})), /*#__PURE__*/_react.default.createElement("div", null, annex && /*#__PURE__*/_react.default.createElement(_energyUi.UTButton, {
|
|
56
58
|
variant: "text",
|
|
57
59
|
disabled: true
|
|
58
|
-
}, "Anexos")
|
|
60
|
+
}, "Anexos"), downloadSmartbillEnabled && /*#__PURE__*/_react.default.createElement(_energyUi.UTButton, {
|
|
61
|
+
onClick: handleDownloadSmartBill,
|
|
62
|
+
Icon: "IconDownload",
|
|
63
|
+
variant: "text"
|
|
64
|
+
})));
|
|
59
65
|
};
|
|
60
66
|
BillHeader.propTypes = {
|
|
61
67
|
annex: _propTypes.bool,
|
|
@@ -65,6 +71,8 @@ BillHeader.propTypes = {
|
|
|
65
71
|
billTypeHelpText: _propTypes.string,
|
|
66
72
|
debtStatusLabel: _propTypes.string,
|
|
67
73
|
debtStatusValidation: _propTypes.bool,
|
|
74
|
+
downloadSmartbillEnabled: _propTypes.bool,
|
|
75
|
+
handleDownloadSmartBill: _propTypes.func,
|
|
68
76
|
issuedOnDate: _propTypes.string,
|
|
69
77
|
smartBill: _propTypes.object,
|
|
70
78
|
UtilityLogo: _propTypes.elementType
|
|
@@ -107,7 +107,7 @@ const Billing = _ref => {
|
|
|
107
107
|
adherence_to_automatic_debit: adherenceToAutomaticDebit,
|
|
108
108
|
normalized_rate: normalizedRate,
|
|
109
109
|
subsidy_level: subsidy
|
|
110
|
-
} = currentAccount;
|
|
110
|
+
} = currentAccount || {};
|
|
111
111
|
const isAdheredToAutomaticDebit = adherenceToAutomaticDebit === adherenceStatus?.subscribed;
|
|
112
112
|
const renderTitularFooter = clientNumber || ivaCondition;
|
|
113
113
|
const actionCards = [{
|