@pisell/materials 1.8.48 → 1.8.49
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/productCard/cartSkuCard/components/weighing/index.js +2 -2
- package/lib/components/productCard/cartSkuCard/components/weighing/index.js +2 -2
- package/package.json +3 -3
|
@@ -25,9 +25,9 @@ const Weighing = (props) => {
|
|
|
25
25
|
const grossLabel = locales.getText("pisell2.cart.sku-card.weighing.gross");
|
|
26
26
|
const manualLabel = locales.getText("pisell2.cart.sku-card.weighing.manual");
|
|
27
27
|
const tareLabel = locales.getText("pisell2.cart.sku-card.weighing.tare");
|
|
28
|
-
locales.getText("pisell2.cart.sku-card.weighing.net");
|
|
28
|
+
const netLabel = locales.getText("pisell2.cart.sku-card.weighing.net");
|
|
29
29
|
const unitPriceText = `${symbol || ""}${unit_price !== null && unit_price !== void 0 ? unit_price : "0.00"}`;
|
|
30
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing` }, isManualWeight ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing-row` }, /* @__PURE__ */ React.createElement("span", null, manualLabel)) : null, tareValue > 0 ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing-row` }, /* @__PURE__ */ React.createElement("span", null, grossLabel, ":"), /* @__PURE__ */ React.createElement("span", null, formatWeight(weight, unit))) : null, tareValue > 0 ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing-row` }, /* @__PURE__ */ React.createElement("span", null, tareLabel, ":"), /* @__PURE__ */ React.createElement("span", null, formatWeight(tare === null || tare === void 0 ? void 0 : tare.value, (tare === null || tare === void 0 ? void 0 : tare.unit) || unit))) : null, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing-row` }, /* @__PURE__ */ React.createElement("span", null, `${formatWeight(net_weight, unit)}
|
|
30
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing` }, isManualWeight ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing-row` }, /* @__PURE__ */ React.createElement("span", null, manualLabel)) : null, tareValue > 0 ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing-row` }, /* @__PURE__ */ React.createElement("span", null, grossLabel, ":"), /* @__PURE__ */ React.createElement("span", null, formatWeight(weight, unit))) : null, tareValue > 0 ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing-row` }, /* @__PURE__ */ React.createElement("span", null, tareLabel, ":"), /* @__PURE__ */ React.createElement("span", null, formatWeight(tare === null || tare === void 0 ? void 0 : tare.value, (tare === null || tare === void 0 ? void 0 : tare.unit) || unit))) : null, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__weighing-row` }, /* @__PURE__ */ React.createElement("span", null, `${formatWeight(net_weight, unit)} ${netLabel} @ ${unitPriceText}/${unitLabel}`)));
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Weighing as default };
|
|
@@ -27,9 +27,9 @@ const Weighing = (props) => {
|
|
|
27
27
|
const grossLabel = _pisell_utils.locales.getText("pisell2.cart.sku-card.weighing.gross");
|
|
28
28
|
const manualLabel = _pisell_utils.locales.getText("pisell2.cart.sku-card.weighing.manual");
|
|
29
29
|
const tareLabel = _pisell_utils.locales.getText("pisell2.cart.sku-card.weighing.tare");
|
|
30
|
-
_pisell_utils.locales.getText("pisell2.cart.sku-card.weighing.net");
|
|
30
|
+
const netLabel = _pisell_utils.locales.getText("pisell2.cart.sku-card.weighing.net");
|
|
31
31
|
const unitPriceText = `${symbol || ""}${unit_price !== null && unit_price !== void 0 ? unit_price : "0.00"}`;
|
|
32
|
-
return /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing` }, isManualWeight ? /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing-row` }, /* @__PURE__ */ react.default.createElement("span", null, manualLabel)) : null, tareValue > 0 ? /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing-row` }, /* @__PURE__ */ react.default.createElement("span", null, grossLabel, ":"), /* @__PURE__ */ react.default.createElement("span", null, formatWeight(weight, unit))) : null, tareValue > 0 ? /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing-row` }, /* @__PURE__ */ react.default.createElement("span", null, tareLabel, ":"), /* @__PURE__ */ react.default.createElement("span", null, formatWeight(tare === null || tare === void 0 ? void 0 : tare.value, (tare === null || tare === void 0 ? void 0 : tare.unit) || unit))) : null, /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing-row` }, /* @__PURE__ */ react.default.createElement("span", null, `${formatWeight(net_weight, unit)}
|
|
32
|
+
return /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing` }, isManualWeight ? /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing-row` }, /* @__PURE__ */ react.default.createElement("span", null, manualLabel)) : null, tareValue > 0 ? /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing-row` }, /* @__PURE__ */ react.default.createElement("span", null, grossLabel, ":"), /* @__PURE__ */ react.default.createElement("span", null, formatWeight(weight, unit))) : null, tareValue > 0 ? /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing-row` }, /* @__PURE__ */ react.default.createElement("span", null, tareLabel, ":"), /* @__PURE__ */ react.default.createElement("span", null, formatWeight(tare === null || tare === void 0 ? void 0 : tare.value, (tare === null || tare === void 0 ? void 0 : tare.unit) || unit))) : null, /* @__PURE__ */ react.default.createElement("div", { className: `${require_index.PREFIX}__weighing-row` }, /* @__PURE__ */ react.default.createElement("span", null, `${formatWeight(net_weight, unit)} ${netLabel} @ ${unitPriceText}/${unitLabel}`)));
|
|
33
33
|
};
|
|
34
34
|
//#endregion
|
|
35
35
|
exports.default = Weighing;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.49",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"antd-mobile": "^5.38.1",
|
|
100
100
|
"vod-js-sdk-v6": "^1.4.11",
|
|
101
101
|
"@pisell/date-picker": "3.0.8",
|
|
102
|
-
"@pisell/
|
|
103
|
-
"@pisell/
|
|
102
|
+
"@pisell/utils": "3.0.2",
|
|
103
|
+
"@pisell/icon": "0.0.11"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react": "^18.0.0",
|