@pisell/private-materials 3.4.72 → 3.4.73

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.
Files changed (131) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/Sales/Cart/index.d.ts +1 -1
  10. package/es/components/Sales/Cart/index.js +18 -3
  11. package/es/components/Sales/Checkout/utils.js +57 -1
  12. package/es/components/Sales/Summary/index.d.ts +2 -0
  13. package/es/components/Sales/Summary/index.js +7 -2
  14. package/es/components/Sales/Summary/utils.d.ts +10 -3
  15. package/es/components/Sales/Summary/utils.js +57 -10
  16. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Cart/Item/index.js +62 -4
  18. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/components/Deposit/index.d.ts +5 -2
  20. package/es/components/appointmentBooking/components/Deposit/index.js +9 -4
  21. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  22. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  23. package/es/components/booking/forms/footer.d.ts +0 -1
  24. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  25. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  26. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  27. package/es/components/eftposPay/app.d.ts +1 -1
  28. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  29. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  30. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +4 -2
  31. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +4 -1
  32. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  33. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +79 -6
  34. package/es/components/eventBooking/components/Provider/Cart/Item/index.less +7 -6
  35. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  36. package/es/components/eventBooking/components/Provider/Cart/index.js +2 -7
  37. package/es/components/eventBooking/components/Provider/Content/index.less +1 -1
  38. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  39. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  40. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  41. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  42. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  43. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  44. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  45. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  46. package/es/components/eventBooking/components/Voucher/index.js +1 -1
  47. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  48. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  49. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  50. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  51. package/es/components/index.d.ts +1 -2
  52. package/es/components/index.js +1 -2
  53. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  54. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  55. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  56. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  57. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  58. package/es/components/subTotal/index.d.ts +2 -0
  59. package/es/components/subTotal/index.js +42 -20
  60. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  61. package/es/plus/orderList/components/HandleActions.d.ts +0 -1
  62. package/es/plus/orderList/components/QuickFilter.d.ts +0 -1
  63. package/es/plus/orderList/components/Reset.d.ts +0 -1
  64. package/es/plus/orderList/components/Toolbar.d.ts +0 -1
  65. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  66. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  67. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  68. package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  69. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  70. package/lib/components/Sales/Cart/index.d.ts +1 -1
  71. package/lib/components/Sales/Cart/index.js +20 -7
  72. package/lib/components/Sales/Checkout/utils.js +64 -1
  73. package/lib/components/Sales/Summary/index.d.ts +2 -0
  74. package/lib/components/Sales/Summary/index.js +8 -2
  75. package/lib/components/Sales/Summary/utils.d.ts +10 -3
  76. package/lib/components/Sales/Summary/utils.js +38 -13
  77. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  78. package/lib/components/appointmentBooking/components/Cart/Item/index.js +52 -4
  79. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  80. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +5 -2
  81. package/lib/components/appointmentBooking/components/Deposit/index.js +7 -4
  82. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  83. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  84. package/lib/components/booking/forms/footer.d.ts +0 -1
  85. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  86. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  87. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  88. package/lib/components/eftposPay/app.d.ts +1 -1
  89. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  90. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  91. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +4 -2
  92. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +3 -1
  93. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  94. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +77 -5
  95. package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +7 -6
  96. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  97. package/lib/components/eventBooking/components/Provider/Cart/index.js +2 -2
  98. package/lib/components/eventBooking/components/Provider/Content/index.less +1 -1
  99. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  100. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  101. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  102. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  103. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  104. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  105. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  106. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  107. package/lib/components/eventBooking/components/Voucher/index.js +1 -1
  108. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  109. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  110. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  111. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  112. package/lib/components/index.d.ts +1 -2
  113. package/lib/components/index.js +0 -3
  114. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  115. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  116. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  117. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  118. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  119. package/lib/components/subTotal/index.d.ts +2 -0
  120. package/lib/components/subTotal/index.js +34 -20
  121. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  122. package/lib/plus/orderList/components/HandleActions.d.ts +0 -1
  123. package/lib/plus/orderList/components/QuickFilter.d.ts +0 -1
  124. package/lib/plus/orderList/components/Reset.d.ts +0 -1
  125. package/lib/plus/orderList/components/Toolbar.d.ts +0 -1
  126. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  127. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  128. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  129. package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  130. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  131. package/package.json +2 -2
@@ -1,8 +1,12 @@
1
1
  .cart-item-wrap {
2
2
  height: 100%;
3
+ display: flex;
4
+ flex-direction: column;
3
5
  .content {
4
6
  background: #fff;
5
7
  padding: 20px;
8
+ height: auto;
9
+ overflow: auto;
6
10
  .pisell-lowcode__shopping-cart-content {
7
11
  .ant-card-body {
8
12
  padding: 0;
@@ -71,15 +75,12 @@
71
75
 
72
76
  .content {
73
77
  flex: 1;
74
- overflow-y: auto;
75
- padding: 0 0 140px;
78
+ padding: 20px 20px 4px;
79
+ max-height: 100%;
76
80
  }
77
81
  .event-footer {
78
82
  z-index: 10;
79
- position: fixed;
80
- bottom: 0;
81
- left: 0;
82
- right: 0;
83
+ flex: none;
83
84
  border-top: 1px solid #eaecf0;
84
85
  padding: 14px 24px 24px;
85
86
  margin-top: 0;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
4
3
  export default Cart;
@@ -47,13 +47,13 @@ var Cart = ({ open, onCancel }) => {
47
47
  closable: true,
48
48
  onCancel: () => onCancel(),
49
49
  bodyStyle: {
50
- padding: "20px"
50
+ padding: 0
51
51
  },
52
52
  destroyOnClose: true,
53
53
  className: `event-cart-modal`,
54
54
  footer: null
55
55
  },
56
- /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, overflowY: "auto" } }, /* @__PURE__ */ import_react.default.createElement(import_Item.default, null))
56
+ /* @__PURE__ */ import_react.default.createElement(import_Item.default, null)
57
57
  );
58
58
  };
59
59
  var Cart_default = Cart;
@@ -14,7 +14,7 @@
14
14
  width: 360px;
15
15
  position: sticky;
16
16
  top: 93px;
17
- height: fit-content;
17
+ height: calc(var(--vh, 1vh) * 100 - 110px);
18
18
  }
19
19
  }
20
20
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EmptyHolderModal: (props: any) => JSX.Element;
4
3
  export default EmptyHolderModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Event: () => JSX.Element;
4
3
  export default Event;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: () => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Information: () => JSX.Element;
4
3
  export default Information;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const OrderProductModal: (props: any) => JSX.Element;
4
3
  export default OrderProductModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
3
2
  export default RemoveOptionConfirmModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resource: () => JSX.Element;
4
3
  export default Resource;
@@ -78,7 +78,7 @@ var VoucherCard = () => {
78
78
  const batchUpdateCart = (productList) => {
79
79
  if (!(productList == null ? void 0 : productList.length)) return;
80
80
  productList.forEach((product) => {
81
- updateCartItem(product);
81
+ updateCartItem(product, "deposit");
82
82
  });
83
83
  };
84
84
  (0, import_react.useEffect)(() => {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingOptions: (props: {
3
2
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
4
3
  export default ScheduleTimeItem;
@@ -10,7 +10,6 @@ import RuleSetting from './ruleSetting';
10
10
  import TaxSelect from './taxSelect';
11
11
  import ToCPay from './pay/toC';
12
12
  import WalletList from './walletList';
13
- import Wallet from './wallet';
14
13
  import WorkspaceListDetail from './workSpaceListDetail/';
15
14
  import WorkspaceList from './workSpaceList';
16
15
  import PisellSelectCustomerModal from './pisellSelectCustomerModal';
@@ -21,4 +20,4 @@ import PinModal from './pinModal';
21
20
  import PinVerifyModal from './pinVerifyModal';
22
21
  import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './authentication/admin';
23
22
  import Registry from './systemSettings/registry';
24
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, };
23
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, };
@@ -56,7 +56,6 @@ __export(components_exports, {
56
56
  SubTotal: () => import_subTotal.default,
57
57
  TaxSelect: () => import_taxSelect.default,
58
58
  ToCPay: () => import_toC.default,
59
- Wallet: () => import_wallet.default,
60
59
  WalletList: () => import_walletList.default,
61
60
  WorkspaceList: () => import_workSpaceList.default,
62
61
  WorkspaceListDetail: () => import_workSpaceListDetail.default
@@ -74,7 +73,6 @@ var import_ruleSetting = __toESM(require("./ruleSetting"));
74
73
  var import_taxSelect = __toESM(require("./taxSelect"));
75
74
  var import_toC = __toESM(require("./pay/toC"));
76
75
  var import_walletList = __toESM(require("./walletList"));
77
- var import_wallet = __toESM(require("./wallet"));
78
76
  var import_workSpaceListDetail = __toESM(require("./workSpaceListDetail/"));
79
77
  var import_workSpaceList = __toESM(require("./workSpaceList"));
80
78
  var import_pisellSelectCustomerModal = __toESM(require("./pisellSelectCustomerModal"));
@@ -114,7 +112,6 @@ var import_registry = __toESM(require("./systemSettings/registry"));
114
112
  SubTotal,
115
113
  TaxSelect,
116
114
  ToCPay,
117
- Wallet,
118
115
  WalletList,
119
116
  WorkspaceList,
120
117
  WorkspaceListDetail
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface CustomerListProps {
4
3
  value: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
3
2
  export default useAddService;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (key?: number | undefined) => JSX.Element | null;
3
2
  export default useClearCart;
@@ -12,11 +12,13 @@ export interface SubTotalItem extends React.HTMLAttributes<HTMLDivElement> {
12
12
  is_price_include_tax?: boolean;
13
13
  title?: string;
14
14
  };
15
+ bold?: boolean;
15
16
  }
16
17
  interface SubTotalProps extends React.HTMLAttributes<HTMLDivElement> {
17
18
  list: SubTotalItem[];
18
19
  mode?: 'column1' | 'column2';
19
20
  describe?: string;
21
+ children?: React.ReactNode;
20
22
  }
21
23
  declare const SubTotal: (props: SubTotalProps) => JSX.Element;
22
24
  export default SubTotal;
@@ -35,21 +35,22 @@ module.exports = __toCommonJS(subTotal_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_index = require("./index.less");
38
- var import_locales = require("../../utils/locales");
39
- var import_locales2 = __toESM(require("./locales"));
38
+ var import_locales = __toESM(require("./locales"));
40
39
  var import_classnames = __toESM(require("classnames"));
41
40
  var import_materials = require("@pisell/materials");
42
41
  var import_utils = require("@pisell/utils");
43
- import_utils.locales.init(import_locales2.default, (0, import_locales.getLocale)());
44
- var labelMaps = {
45
- deposit: import_utils.locales.getText("pisell2.subtotal.deposit"),
46
- total: import_utils.locales.getText("pisell2.subtotal.total"),
47
- sub_total: import_utils.locales.getText("pisell2.subtotal.subtotal"),
48
- tax: import_utils.locales.getText("pisell2.subtotal.tax"),
49
- delivery_fee: import_utils.locales.getText("pisell2.subtotal.delivery-fee"),
50
- discount: import_utils.locales.getText("pisell2.subtotal.discount"),
51
- point_deduction: import_utils.locales.getText("pisell2.subtotal.point-deduction"),
52
- member_deduction: import_utils.locales.getText("pisell2.subtotal.member-deduction")
42
+ var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
43
+ var getLabelMaps = () => {
44
+ return {
45
+ deposit: import_utils.locales.getText("pisell2.subtotal.deposit"),
46
+ total: import_utils.locales.getText("pisell2.subtotal.total"),
47
+ sub_total: import_utils.locales.getText("pisell2.subtotal.subtotal"),
48
+ tax: import_utils.locales.getText("pisell2.subtotal.tax"),
49
+ delivery_fee: import_utils.locales.getText("pisell2.subtotal.delivery-fee"),
50
+ discount: import_utils.locales.getText("pisell2.subtotal.discount"),
51
+ point_deduction: import_utils.locales.getText("pisell2.subtotal.point-deduction"),
52
+ member_deduction: import_utils.locales.getText("pisell2.subtotal.member-deduction")
53
+ };
53
54
  };
54
55
  var groupByMod = (arr, groupCount) => {
55
56
  if (groupCount < 1) {
@@ -66,7 +67,7 @@ var groupByMod = (arr, groupCount) => {
66
67
  }, result);
67
68
  };
68
69
  var Item = (props) => {
69
- const { item, bold } = props;
70
+ const { item, bold, labelMaps } = props;
70
71
  const { label, key, count, value, tax, hidden, ...rest } = item;
71
72
  const taxText = (0, import_react.useMemo)(() => {
72
73
  if (!tax) {
@@ -99,13 +100,13 @@ var Item = (props) => {
99
100
  )));
100
101
  }
101
102
  return labelMaps[key];
102
- }, [label, key, count, taxText]);
103
+ }, [label, key, count, taxText, labelMaps]);
103
104
  if (hidden) return null;
104
105
  return /* @__PURE__ */ import_react.default.createElement(
105
106
  "div",
106
107
  {
107
108
  className: (0, import_classnames.default)("pisell-lowcode__subtotal-item", {
108
- "pisell-lowcode__subtotal-item-bold": bold
109
+ "pisell-lowcode__subtotal-item-bold": bold || (item == null ? void 0 : item.bold)
109
110
  }),
110
111
  ...rest
111
112
  },
@@ -124,9 +125,22 @@ var Describe = (props) => {
124
125
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { className: "pisell-lowcode__subtotal-divider" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__subtotal-describe" }, describe));
125
126
  };
126
127
  var SubTotal = (props) => {
127
- const { list = [], mode = "column1", describe = "", ...rest } = props;
128
+ var _a, _b;
129
+ const {
130
+ list = [],
131
+ mode = "column1",
132
+ describe = "",
133
+ children,
134
+ ...rest
135
+ } = props;
136
+ const context = (0, import_useEngineContext.default)();
137
+ const locale = ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en";
138
+ import_utils.locales.init(import_locales.default, locale);
139
+ const labelMaps = (0, import_react.useMemo)(() => {
140
+ return getLabelMaps();
141
+ }, [locale]);
128
142
  const depositItem = (0, import_react.useMemo)(() => {
129
- return list.find((item) => item.key === "deposit");
143
+ return list.find((item) => item.key === "deposit" && !(item == null ? void 0 : item.hidden));
130
144
  }, [list]);
131
145
  const totalItem = (0, import_react.useMemo)(() => {
132
146
  return list.find((item) => item.key === "total");
@@ -160,7 +174,7 @@ var SubTotal = (props) => {
160
174
  (0, import_react.useEffect)(() => {
161
175
  document.body.id = "body";
162
176
  }, []);
163
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__subtotal-wrap", ...rest }, headerItem && /* @__PURE__ */ import_react.default.createElement(Item, { key: headerItem.key, item: headerItem, bold: true }), depositItem ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { className: "pisell-lowcode__subtotal-divider" }), totalItem ? /* @__PURE__ */ import_react.default.createElement(Item, { key: totalItem.key, item: totalItem }) : null) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__subtotal-list" }, mapData.map((items, index) => {
177
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__subtotal-wrap", ...rest }, headerItem && /* @__PURE__ */ import_react.default.createElement(Item, { key: headerItem.key, item: headerItem, bold: true, labelMaps }), depositItem ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { className: "pisell-lowcode__subtotal-divider" }), totalItem ? /* @__PURE__ */ import_react.default.createElement(Item, { key: totalItem.key, item: totalItem, labelMaps }) : null) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__subtotal-list" }, mapData.map((items, index) => {
164
178
  const isLast = index === mapData.length - 1;
165
179
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__subtotal-item-block" }, /* @__PURE__ */ import_react.default.createElement(
166
180
  "div",
@@ -168,8 +182,8 @@ var SubTotal = (props) => {
168
182
  key: index,
169
183
  className: "pisell-lowcode__subtotal-item-wrap"
170
184
  },
171
- items.map((d) => /* @__PURE__ */ import_react.default.createElement(Item, { key: d.key, item: d }))
185
+ items.map((d) => /* @__PURE__ */ import_react.default.createElement(Item, { key: d.key, item: d, labelMaps }))
172
186
  )), mode === "column2" && !isLast ? /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { type: "vertical", style: { height: "auto" } }) : null);
173
- })), describe ? /* @__PURE__ */ import_react.default.createElement(Describe, { describe }) : null);
187
+ })), describe ? /* @__PURE__ */ import_react.default.createElement(Describe, { describe }) : null, children ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { className: "pisell-lowcode__subtotal-divider" }), children) : null);
174
188
  };
175
189
  var subTotal_default = SubTotal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const HandleActions: (props: {
3
2
  locales: any;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const QuickFilter: (props: {
3
2
  locales: any;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Reset: (props: {
3
2
  locales: any;
4
3
  setValueType: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Toolbar: (props: {
3
2
  locales: any;
4
3
  clearSelectedData: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../index.less';
3
2
  declare const VertifyEmail: (props: {
4
3
  email: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * 单规格商品卡片,点击后需要拉起弹窗展示具体的规格信息
3
3
  */
4
- /// <reference types="react" />
5
4
  import { RenderItemProps } from '../../../../pro/Selector/types';
6
5
  import './index.less';
7
6
  declare const OptionsCard: (props: RenderItemProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IPassListProps {
3
2
  dataSource: any[];
4
3
  value?: string | number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface TimelineSectionProps {
4
3
  code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.4.72",
3
+ "version": "3.4.73",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -77,7 +77,7 @@
77
77
  "react-resizable": "^3.0.5",
78
78
  "styled-components": "^6.0.0-rc.3",
79
79
  "@pisell/utils": "3.0.2",
80
- "@pisell/materials": "3.3.79",
80
+ "@pisell/materials": "3.3.80",
81
81
  "@pisell/icon": "0.0.11",
82
82
  "@pisell/date-picker": "3.0.4"
83
83
  },