@widergy/utilitygo-smart-bill-web 3.9.2 → 3.10.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.10.0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.9.2...v3.10.0) (2025-08-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* [UGEE-416] import value instead of energy in billing ([#60](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/60)) ([c873842](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/c873842e2a8ccab0265b4792c777cef952f4325d))
|
|
7
|
+
|
|
1
8
|
## [3.9.2](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.9.1...v3.9.2) (2025-08-13)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.TAG_ICON_SIZE = exports.DEFAULT_TAG_ICON = exports.DEFAULT_TAG_COLOR_THEME = void 0;
|
|
6
|
+
exports.TAG_ICON_SIZE = exports.RIGHT_UNIT_ALIGNMENT = exports.DEFAULT_TAG_ICON = exports.DEFAULT_TAG_COLOR_THEME = void 0;
|
|
7
7
|
const DEFAULT_TAG_ICON = exports.DEFAULT_TAG_ICON = 'IconCalendarEvent';
|
|
8
8
|
const TAG_ICON_SIZE = exports.TAG_ICON_SIZE = 14;
|
|
9
|
-
const DEFAULT_TAG_COLOR_THEME = exports.DEFAULT_TAG_COLOR_THEME = 'gray';
|
|
9
|
+
const DEFAULT_TAG_COLOR_THEME = exports.DEFAULT_TAG_COLOR_THEME = 'gray';
|
|
10
|
+
const RIGHT_UNIT_ALIGNMENT = exports.RIGHT_UNIT_ALIGNMENT = 'right';
|
|
@@ -16,7 +16,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
16
16
|
const Billing = _ref => {
|
|
17
17
|
let {
|
|
18
18
|
smartBill,
|
|
19
|
-
texts
|
|
19
|
+
texts,
|
|
20
|
+
unitAlignment = _constants.RIGHT_UNIT_ALIGNMENT,
|
|
21
|
+
unit
|
|
20
22
|
} = _ref;
|
|
21
23
|
const {
|
|
22
24
|
title,
|
|
@@ -55,10 +57,10 @@ const Billing = _ref => {
|
|
|
55
57
|
}, /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
|
|
56
58
|
variant: "title3",
|
|
57
59
|
weight: "medium"
|
|
58
|
-
}, consumptionValue), /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
|
|
60
|
+
}, unitAlignment === _constants.RIGHT_UNIT_ALIGNMENT ? consumptionValue : `${unit || consumptionUnit}${consumptionValue}`), /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
|
|
59
61
|
variant: "subtitle1",
|
|
60
62
|
weight: "medium"
|
|
61
|
-
}, consumptionUnit)), /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
+
}, unitAlignment === _constants.RIGHT_UNIT_ALIGNMENT && (unit || consumptionUnit))), /*#__PURE__*/_react.default.createElement("div", {
|
|
62
64
|
className: `${_stylesModule.default.tag} ${current ? _stylesModule.default.billedTag : ''}`
|
|
63
65
|
}, /*#__PURE__*/_react.default.createElement(_energyUi.UTIcon, {
|
|
64
66
|
colorTheme: colorTheme || _constants.DEFAULT_TAG_COLOR_THEME,
|
|
@@ -85,6 +87,8 @@ const Billing = _ref => {
|
|
|
85
87
|
};
|
|
86
88
|
Billing.propTypes = {
|
|
87
89
|
smartBill: _billDataTypes.billDataTypes,
|
|
88
|
-
texts: _propTypes.object
|
|
90
|
+
texts: _propTypes.object,
|
|
91
|
+
unitAlignment: _propTypes.string,
|
|
92
|
+
unit: _propTypes.string
|
|
89
93
|
};
|
|
90
94
|
var _default = exports.default = Billing;
|