@pisell/private-materials 3.2.26 → 3.2.28

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.
@@ -69,8 +69,9 @@ var ContinueButton = function ContinueButton() {
69
69
  * @Date: 2025-04-16 17:55
70
70
  */
71
71
  var clearData = function clearData() {
72
+ var _shopDiscount$destroy;
72
73
  appointmentBooking.destroy();
73
- shopDiscount.destroy();
74
+ shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$destroy = shopDiscount.destroy) === null || _shopDiscount$destroy === void 0 || _shopDiscount$destroy.call(shopDiscount);
74
75
  };
75
76
 
76
77
  /**
@@ -70,9 +70,9 @@ var Header = function Header() {
70
70
  * @Date: 2025-01-22 13:43
71
71
  */
72
72
  var handleClose = function handleClose() {
73
- var _utils$history;
73
+ var _shopDiscount$destroy, _utils$history;
74
74
  appointmentBooking.destroy();
75
- shopDiscount.destroy();
75
+ shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$destroy = shopDiscount.destroy) === null || _shopDiscount$destroy === void 0 || _shopDiscount$destroy.call(shopDiscount);
76
76
  var utils = context.appHelper.utils || {};
77
77
  utils === null || utils === void 0 || (_utils$history = utils.history) === null || _utils$history === void 0 || _utils$history.replace('/');
78
78
  };
@@ -34,8 +34,6 @@ import { getSumTotal, is_price_include_tax } from "./amount";
34
34
  import "./index.less";
35
35
  import { createEventBooking, editEventBooking } from "./serve";
36
36
  import { formatValues } from "./utils";
37
- import VoucherCard from "../voucher";
38
-
39
37
  /**
40
38
  * @title: 底部
41
39
  * @description:
@@ -1168,10 +1166,7 @@ var Footer = function Footer(props) {
1168
1166
  round: true,
1169
1167
  loading: showFooter,
1170
1168
  active: true
1171
- }, /*#__PURE__*/React.createElement(VoucherCard, {
1172
- state: state,
1173
- dispatch: dispatch
1174
- }), /*#__PURE__*/React.createElement("div", {
1169
+ }, /*#__PURE__*/React.createElement("div", {
1175
1170
  className: "pisell-lowcode__booking-footer-total"
1176
1171
  }, /*#__PURE__*/React.createElement("span", {
1177
1172
  className: "pisell-lowcode__booking-footer-left"
@@ -69,8 +69,9 @@ var ContinueButton = () => {
69
69
  resourceOtherParams == null ? void 0 : resourceOtherParams.errorList
70
70
  ]);
71
71
  const clearData = () => {
72
+ var _a2;
72
73
  appointmentBooking.destroy();
73
- shopDiscount.destroy();
74
+ (_a2 = shopDiscount == null ? void 0 : shopDiscount.destroy) == null ? void 0 : _a2.call(shopDiscount);
74
75
  };
75
76
  const handleNextStep = async () => {
76
77
  var _a2, _b, _c;
@@ -69,11 +69,11 @@ var Header = () => {
69
69
  appointmentBooking.back();
70
70
  };
71
71
  const handleClose = () => {
72
- var _a2;
72
+ var _a2, _b2;
73
73
  appointmentBooking.destroy();
74
- shopDiscount.destroy();
74
+ (_a2 = shopDiscount == null ? void 0 : shopDiscount.destroy) == null ? void 0 : _a2.call(shopDiscount);
75
75
  const utils = context.appHelper.utils || {};
76
- (_a2 = utils == null ? void 0 : utils.history) == null ? void 0 : _a2.replace("/");
76
+ (_b2 = utils == null ? void 0 : utils.history) == null ? void 0 : _b2.replace("/");
77
77
  };
78
78
  return /* @__PURE__ */ import_react.default.createElement(
79
79
  import_progressBar.default,
@@ -49,7 +49,6 @@ var import_amount = require("./amount");
49
49
  var import_index = require("./index.less");
50
50
  var import_serve2 = require("./serve");
51
51
  var import_utils4 = require("./utils");
52
- var import_voucher = __toESM(require("../voucher"));
53
52
  var Footer = (props) => {
54
53
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
55
54
  const { state, buttons, dispatch, source } = props;
@@ -783,7 +782,7 @@ var Footer = (props) => {
783
782
  break;
784
783
  }
785
784
  };
786
- return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, /* @__PURE__ */ import_react.default.createElement(import_voucher.default, { state, dispatch }), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
785
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
787
786
  "span",
788
787
  {
789
788
  className: "pisell-lowcode__booking-footer-right",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.2.26",
3
+ "version": "3.2.28",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/materials": "3.2.24",
62
+ "@pisell/utils": "1.0.42",
63
+ "@pisell/materials": "3.2.25",
63
64
  "@pisell/icon": "0.0.11",
64
- "@pisell/date-picker": "3.0.2",
65
- "@pisell/utils": "1.0.42"
65
+ "@pisell/date-picker": "3.0.2"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",