@pisell/private-materials 3.4.87 → 3.4.89

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 (149) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/components/footer/utils.js +4 -4
  13. package/es/components/booking/forms/model.d.ts +1 -10
  14. package/es/components/booking/hooks/useClearCart.d.ts +1 -1
  15. package/es/components/booking/hooks/useClearCart.js +39 -9
  16. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  17. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  18. package/es/components/booking/info/model.d.ts +1 -10
  19. package/es/components/booking/info/service/index.less +4 -2
  20. package/es/components/booking/info2/service/editService/index.js +36 -6
  21. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  22. package/es/components/booking/info2/service/editService/utils.js +76 -0
  23. package/es/components/booking/locales.d.ts +20 -0
  24. package/es/components/booking/locales.js +20 -0
  25. package/es/components/booking/model.d.ts +1 -9
  26. package/es/components/booking/notes/model.d.ts +1 -10
  27. package/es/components/booking/payments/model.d.ts +1 -10
  28. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  29. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  30. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  31. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  32. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  33. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  34. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  35. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  36. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  37. package/es/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
  38. package/es/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
  39. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
  40. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +65 -21
  41. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
  42. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
  43. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +28 -16
  44. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
  45. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +14 -1
  46. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
  47. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
  48. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +167 -56
  49. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
  50. package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
  51. package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +83 -0
  52. package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
  53. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
  54. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +260 -33
  55. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
  56. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +292 -115
  57. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  58. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  59. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  60. package/es/components/pay/toC/PaymentMethods/index.js +12 -2
  61. package/es/components/pay/toC/index.js +53 -18
  62. package/es/components/pay/toC/locales.d.ts +115 -0
  63. package/es/components/pay/toC/locales.js +143 -18
  64. package/es/components/pay/toC/model.d.ts +1 -9
  65. package/es/components/pay/toC/serve.d.ts +10 -0
  66. package/es/components/pay/toC/serve.js +40 -1
  67. package/es/components/pay/toC/utils.d.ts +5 -0
  68. package/es/components/pay/toC/utils.js +10 -0
  69. package/es/components/schedules/model.d.ts +1 -9
  70. package/es/components/shoppingCart/components/Cart/index.less +1 -0
  71. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  72. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
  73. package/es/components/shoppingCart/hooks/useClearCart.js +41 -11
  74. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  75. package/es/plus/walletPassGallery/components/recharge/index.js +13 -5
  76. package/es/plus/walletPassGallery/components/recharge/index.less +70 -1
  77. package/es/plus/walletPassGallery/locales.d.ts +10 -0
  78. package/es/plus/walletPassGallery/locales.js +26 -5
  79. package/lib/components/booking/addons/model.d.ts +1 -10
  80. package/lib/components/booking/components/footer/utils.js +2 -2
  81. package/lib/components/booking/forms/model.d.ts +1 -10
  82. package/lib/components/booking/hooks/useClearCart.d.ts +1 -1
  83. package/lib/components/booking/hooks/useClearCart.js +28 -6
  84. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  85. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  86. package/lib/components/booking/info/model.d.ts +1 -10
  87. package/lib/components/booking/info/service/index.less +4 -2
  88. package/lib/components/booking/info2/service/editService/index.js +24 -1
  89. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  90. package/lib/components/booking/info2/service/editService/utils.js +38 -2
  91. package/lib/components/booking/locales.d.ts +20 -0
  92. package/lib/components/booking/locales.js +20 -0
  93. package/lib/components/booking/model.d.ts +1 -9
  94. package/lib/components/booking/notes/model.d.ts +1 -10
  95. package/lib/components/booking/payments/model.d.ts +1 -10
  96. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  97. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  98. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  99. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  100. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  101. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  102. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  103. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  104. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  105. package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
  106. package/lib/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
  107. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
  108. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +40 -17
  109. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
  110. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
  111. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +17 -5
  112. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
  113. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +8 -2
  114. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
  115. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
  116. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +98 -24
  117. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
  118. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
  119. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +107 -0
  120. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
  121. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
  122. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +149 -5
  123. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
  124. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +99 -16
  125. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  126. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  127. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  128. package/lib/components/pay/toC/PaymentMethods/index.js +19 -14
  129. package/lib/components/pay/toC/index.js +34 -3
  130. package/lib/components/pay/toC/locales.d.ts +115 -0
  131. package/lib/components/pay/toC/locales.js +133 -18
  132. package/lib/components/pay/toC/model.d.ts +1 -9
  133. package/lib/components/pay/toC/serve.d.ts +10 -0
  134. package/lib/components/pay/toC/serve.js +10 -0
  135. package/lib/components/pay/toC/utils.d.ts +5 -0
  136. package/lib/components/pay/toC/utils.js +17 -0
  137. package/lib/components/schedules/model.d.ts +1 -9
  138. package/lib/components/shoppingCart/components/Cart/index.less +1 -0
  139. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  140. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
  141. package/lib/components/shoppingCart/hooks/useClearCart.js +42 -11
  142. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  143. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -5
  144. package/lib/plus/walletPassGallery/components/recharge/index.less +70 -1
  145. package/lib/plus/walletPassGallery/locales.d.ts +10 -0
  146. package/lib/plus/walletPassGallery/locales.js +20 -5
  147. package/lowcode/eco-cup-list/meta.ts +20 -56
  148. package/lowcode/eco-customer-list/meta.ts +20 -56
  149. package/package.json +3 -3
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
17
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
28
 
19
29
  // src/components/pay/toC/utils.ts
@@ -27,11 +37,14 @@ __export(utils_exports, {
27
37
  getAvailableMaxAmount: () => getAvailableMaxAmount,
28
38
  getFranchiseeShopId: () => getFranchiseeShopId,
29
39
  getIsWalletPassAndTripartitePayment: () => getIsWalletPassAndTripartitePayment,
40
+ getUniqueIdempotencyToken: () => getUniqueIdempotencyToken,
30
41
  isFranchiseeShop: () => isFranchiseeShop
31
42
  });
32
43
  module.exports = __toCommonJS(utils_exports);
33
44
  var import_decimal = require("decimal.js");
34
45
  var import_status = require("./status");
46
+ var import_dayjs = __toESM(require("dayjs"));
47
+ var import_utils = require("@pisell/utils");
35
48
  var calcWalletPassListAmount = (list) => {
36
49
  return list.reduce((pre, cur) => pre.add(new import_decimal.Decimal(String(getAvailableMaxAmount(cur) || 0))), new import_decimal.Decimal("0")).toNumber();
37
50
  };
@@ -99,6 +112,9 @@ var clientPayment = (params) => {
99
112
  }
100
113
  });
101
114
  };
115
+ var getUniqueIdempotencyToken = () => {
116
+ return `${(0, import_dayjs.default)().format("YYYYMMDDHHmmssSSS")}-${(0, import_utils.getUniqueId)()}`;
117
+ };
102
118
  // Annotate the CommonJS export names for ESM import in node:
103
119
  0 && (module.exports = {
104
120
  calcWalletPassListAmount,
@@ -109,5 +125,6 @@ var clientPayment = (params) => {
109
125
  getAvailableMaxAmount,
110
126
  getFranchiseeShopId,
111
127
  getIsWalletPassAndTripartitePayment,
128
+ getUniqueIdempotencyToken,
112
129
  isFranchiseeShop
113
130
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -40,6 +40,7 @@
40
40
  line-height: 24px; /* 150% */
41
41
  display: flex;
42
42
  align-items: center;
43
+ width: max-content;
43
44
  .anticon {
44
45
  font-size: 18px;
45
46
  margin-right: 6px;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => import("react").JSX.Element;
3
4
  export default Empty;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const useClearCart: (key?: number | undefined) => React.JSX.Element | null;
2
+ declare const useClearCart: (key?: number | undefined) => React.JSX.Element;
3
3
  export default useClearCart;
@@ -38,6 +38,7 @@ var import_materials = require("@pisell/materials");
38
38
  var import_useContext = require("./useContext");
39
39
  var import_utils = require("@pisell/utils");
40
40
  var useClearCart = (key) => {
41
+ const [open, setOpen] = (0, import_react.useState)(false);
41
42
  const { state, onChange } = (0, import_useContext.useContext)();
42
43
  const { isProductList, disabledEdit, holders, isHideClearCart } = state;
43
44
  const handleClear = () => {
@@ -47,20 +48,50 @@ var useClearCart = (key) => {
47
48
  } else {
48
49
  const ids = products == null ? void 0 : products.map((item) => item == null ? void 0 : item._id);
49
50
  onChange(ids, "delete_holders", key);
51
+ setOpen(false);
50
52
  return;
51
53
  products = products.filter((item) => (item == null ? void 0 : item.holder_id) !== key);
52
54
  }
53
55
  };
54
- return !disabledEdit && (holders == null ? void 0 : holders.length) > 0 && !isHideClearCart ? /* @__PURE__ */ import_react.default.createElement(
55
- "span",
56
- {
57
- className: (0, import_classnames.default)("pisell-lowcode__shopping-cart-clear-btn", {
58
- "pisell-lowcode__shopping-cart-clear-btn-empty": isProductList
59
- }),
60
- onClick: handleClear
61
- },
62
- /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-trash-01" }),
63
- /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.booking.info.text.clear-cart"))
64
- ) : null;
56
+ const handleOpenModal = (0, import_react.useCallback)(() => {
57
+ setOpen(true);
58
+ }, []);
59
+ const handleCancel = (0, import_react.useCallback)(() => {
60
+ setOpen(false);
61
+ }, []);
62
+ return (0, import_react.useMemo)(() => {
63
+ const showClearBtn = !disabledEdit && (holders == null ? void 0 : holders.length) > 0 && !isHideClearCart;
64
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showClearBtn ? /* @__PURE__ */ import_react.default.createElement(
65
+ "span",
66
+ {
67
+ className: (0, import_classnames.default)("pisell-lowcode__shopping-cart-clear-btn", {
68
+ "pisell-lowcode__shopping-cart-clear-btn-empty": isProductList
69
+ }),
70
+ onClick: handleOpenModal
71
+ },
72
+ /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-trash-01" }),
73
+ /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.booking.info.text.clear-cart"))
74
+ ) : null, /* @__PURE__ */ import_react.default.createElement(
75
+ import_materials.PisellModal,
76
+ {
77
+ open,
78
+ title: import_utils.locales.getText(
79
+ "pisell2.booking.info.text.clear-cart-modal.title"
80
+ ),
81
+ onOk: handleClear,
82
+ onCancel: handleCancel,
83
+ okText: import_utils.locales.getText(
84
+ "pisell2.booking.info.text.clear-cart-modal.confirm"
85
+ ),
86
+ cancelText: import_utils.locales.getText(
87
+ "pisell2.booking.info.text.clear-cart-modal.cancel"
88
+ ),
89
+ destroyOnClose: true
90
+ },
91
+ /* @__PURE__ */ import_react.default.createElement("div", { style: { margin: "24px 0" } }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText(
92
+ "pisell2.booking.info.text.clear-cart-modal.content"
93
+ )))
94
+ ));
95
+ }, [open, disabledEdit, holders == null ? void 0 : holders.length, isHideClearCart, isProductList]);
65
96
  };
66
97
  var useClearCart_default = useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => import("react").JSX.Element;
3
4
  export default ErrorTip;
@@ -128,23 +128,25 @@ var Recharge = ({
128
128
  {
129
129
  className: `pisell-card-item ${item.id === (chargeItem == null ? void 0 : chargeItem.id) ? "pisell-card-selected" : ""}`
130
130
  },
131
- /* @__PURE__ */ import_react.default.createElement("div", { className: "card-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "card-content-left" }, /* @__PURE__ */ import_react.default.createElement("p", { className: "pisell-card-amount-item-name" }, item.name), /* @__PURE__ */ import_react.default.createElement(
131
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "card-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "card-content-left" }, /* @__PURE__ */ import_react.default.createElement("p", { className: "pisell-card-amount-item-name" }, item.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-arrival" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-card-amount-item-label" }, import_utils.locales.getText(
132
+ "wallet-pass-gallery.rechargeArrivalAmount"
133
+ )), /* @__PURE__ */ import_react.default.createElement(
132
134
  import_materials.PisellText.Amount,
133
135
  {
134
136
  showCurrencySymbol: true,
135
- className: "pisell-card-amount-item-value",
137
+ className: "highlight-amount",
136
138
  useThousandsSeparator: true,
137
139
  value: item.gift_price
138
140
  }
139
- )), /* @__PURE__ */ import_react.default.createElement(
141
+ ))), /* @__PURE__ */ import_react.default.createElement("div", { className: "card-content-right" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pay-label" }, import_utils.locales.getText("wallet-pass-gallery.rechargePayAmount")), /* @__PURE__ */ import_react.default.createElement(
140
142
  import_materials.PisellText.Amount,
141
143
  {
142
144
  showCurrencySymbol: true,
143
- className: "pisell-card-amount-item-value",
145
+ className: "pay-amount",
144
146
  useThousandsSeparator: true,
145
147
  value: item.price
146
148
  }
147
- ))
149
+ )))
148
150
  )
149
151
  ))))
150
152
  );
@@ -7,10 +7,79 @@
7
7
 
8
8
  &-card-item {
9
9
  cursor: pointer;
10
+ min-width: 0;
11
+ }
12
+
13
+ .pisell-card-item {
14
+ border-radius: 8px;
15
+ border: 1px solid transparent;
16
+ transition: all 0.3s;
17
+ background: #fff;
18
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
19
+ min-width: 0;
10
20
  }
11
21
 
12
22
  .pisell-card-selected {
13
- border: 1px solid var(--theme-color, #7f56d9);
23
+ border-color: var(--theme-color, #7f56d9);
14
24
  background: var(--Primary-50, #f9f5ff);
25
+ box-shadow: 0 4px 12px rgba(127, 86, 217, 0.1);
26
+ }
27
+
28
+ .card-content {
29
+ display: flex;
30
+ justify-content: space-between;
31
+ align-items: center;
32
+ gap: 16px;
33
+ }
34
+
35
+ .card-content-left {
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: 8px;
39
+ flex: 1;
40
+ min-width: 0;
41
+ }
42
+
43
+ .pisell-card-amount-item-name {
44
+ font-size: 16px;
45
+ font-weight: 600;
46
+ color: #333;
47
+ margin: 0;
48
+ white-space: nowrap;
49
+ overflow: hidden;
50
+ text-overflow: ellipsis;
51
+ }
52
+
53
+ .pisell-card-amount-item-arrival {
54
+ display: flex;
55
+ align-items: center;
56
+ gap: 4px;
57
+ font-size: 13px;
58
+ color: #666;
59
+ flex-wrap: wrap;
60
+
61
+ .highlight-amount {
62
+ color: #ff4d4f;
63
+ font-weight: 500;
64
+ }
65
+ }
66
+
67
+ .card-content-right {
68
+ display: flex;
69
+ flex-direction: column;
70
+ align-items: flex-end;
71
+ margin-top: 4px;
72
+ flex-shrink: 0;
73
+ }
74
+
75
+ .pay-label {
76
+ font-size: 12px;
77
+ color: #666;
78
+ }
79
+
80
+ .pay-amount {
81
+ font-size: 20px;
82
+ font-weight: bold;
83
+ color: var(--theme-color, #7f56d9);
15
84
  }
16
85
  }
@@ -92,6 +92,8 @@ declare const _default: {
92
92
  'page.wallet.tempHolderSelector.confirm': string;
93
93
  'page.wallet.notValidDate': string;
94
94
  'page.wallet.includedDate': string;
95
+ 'wallet-pass-gallery.rechargeArrivalAmount': string;
96
+ 'wallet-pass-gallery.rechargePayAmount': string;
95
97
  };
96
98
  'zh-CN': {
97
99
  'wallet-pass-gallery.rechargeableCard': string;
@@ -186,6 +188,8 @@ declare const _default: {
186
188
  'page.wallet.tempHolderSelector.confirm': string;
187
189
  'page.wallet.notValidDate': string;
188
190
  'page.wallet.includedDate': string;
191
+ 'wallet-pass-gallery.rechargeArrivalAmount': string;
192
+ 'wallet-pass-gallery.rechargePayAmount': string;
189
193
  };
190
194
  'zh-HK': {
191
195
  'wallet-pass-gallery.rechargeableCard': string;
@@ -280,6 +284,8 @@ declare const _default: {
280
284
  'page.wallet.tempHolderSelector.confirm': string;
281
285
  'page.wallet.notValidDate': string;
282
286
  'page.wallet.includedDate': string;
287
+ 'wallet-pass-gallery.rechargeArrivalAmount': string;
288
+ 'wallet-pass-gallery.rechargePayAmount': string;
283
289
  };
284
290
  ja: {
285
291
  'wallet-pass-gallery.rechargeableCard': string;
@@ -374,6 +380,8 @@ declare const _default: {
374
380
  'page.wallet.tempHolderSelector.confirm': string;
375
381
  'page.wallet.notValidDate': string;
376
382
  'page.wallet.includedDate': string;
383
+ 'wallet-pass-gallery.rechargeArrivalAmount': string;
384
+ 'wallet-pass-gallery.rechargePayAmount': string;
377
385
  };
378
386
  pt: {
379
387
  'wallet-pass-gallery.rechargeableCard': string;
@@ -468,6 +476,8 @@ declare const _default: {
468
476
  'page.wallet.tempHolderSelector.confirm': string;
469
477
  'page.wallet.notValidDate': string;
470
478
  'page.wallet.includedDate': string;
479
+ 'wallet-pass-gallery.rechargeArrivalAmount': string;
480
+ 'wallet-pass-gallery.rechargePayAmount': string;
471
481
  };
472
482
  };
473
483
  export default _default;
@@ -124,8 +124,11 @@ var locales_default = {
124
124
  // temp
125
125
  "page.wallet.notValidDate": "Not valid on",
126
126
  // 不可用日期
127
- "page.wallet.includedDate": "Included dates"
127
+ "page.wallet.includedDate": "Included dates",
128
128
  // 包含日期
129
+ // recharge
130
+ "wallet-pass-gallery.rechargeArrivalAmount": "You get",
131
+ "wallet-pass-gallery.rechargePayAmount": "Pay"
129
132
  },
130
133
  "zh-CN": {
131
134
  "wallet-pass-gallery.rechargeableCard": "充值卡",
@@ -222,8 +225,11 @@ var locales_default = {
222
225
  // temp
223
226
  "page.wallet.notValidDate": "不可用日期",
224
227
  // 不可用日期
225
- "page.wallet.includedDate": "包含日期"
228
+ "page.wallet.includedDate": "包含日期",
226
229
  // 包含日期
230
+ // recharge
231
+ "wallet-pass-gallery.rechargeArrivalAmount": "到账金额",
232
+ "wallet-pass-gallery.rechargePayAmount": "支付金额"
227
233
  },
228
234
  "zh-HK": {
229
235
  "wallet-pass-gallery.rechargeableCard": "充值卡",
@@ -320,8 +326,11 @@ var locales_default = {
320
326
  // temp
321
327
  "page.wallet.notValidDate": "不可用日期",
322
328
  // 不可用日期
323
- "page.wallet.includedDate": "包含日期"
329
+ "page.wallet.includedDate": "包含日期",
324
330
  // 包含日期
331
+ // recharge
332
+ "wallet-pass-gallery.rechargeArrivalAmount": "到帳金額",
333
+ "wallet-pass-gallery.rechargePayAmount": "支付金額"
325
334
  },
326
335
  ja: {
327
336
  "wallet-pass-gallery.rechargeableCard": "チャージ可能なカード",
@@ -417,7 +426,10 @@ var locales_default = {
417
426
  "page.wallet.tempHolderSelector.create": "新規作成",
418
427
  "page.wallet.tempHolderSelector.confirm": "確認",
419
428
  "page.wallet.notValidDate": "利用不可日",
420
- "page.wallet.includedDate": "含まれる日付"
429
+ "page.wallet.includedDate": "含まれる日付",
430
+ // recharge
431
+ "wallet-pass-gallery.rechargeArrivalAmount": "チャージ後残高",
432
+ "wallet-pass-gallery.rechargePayAmount": "支払金額"
421
433
  },
422
434
  pt: {
423
435
  "wallet-pass-gallery.rechargeableCard": "Cartão recarregável",
@@ -513,6 +525,9 @@ var locales_default = {
513
525
  "page.wallet.tempHolderSelector.create": "Criar Novo",
514
526
  "page.wallet.tempHolderSelector.confirm": "Confirmar",
515
527
  "page.wallet.notValidDate": "Não válido em",
516
- "page.wallet.includedDate": "Datas incluídas"
528
+ "page.wallet.includedDate": "Datas incluídas",
529
+ // recharge
530
+ "wallet-pass-gallery.rechargeArrivalAmount": "Recebe",
531
+ "wallet-pass-gallery.rechargePayAmount": "Paga"
517
532
  }
518
533
  };
@@ -1,63 +1,27 @@
1
-
2
- import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
-
4
- const EcoCupListMeta: ComponentMetadata = {
5
- "componentName": "EcoCupList",
6
- "title": "EcoCupList",
7
- "docUrl": "",
8
- "screenshot": "",
9
- "devMode": "proCode",
10
- "npm": {
11
- "package": "@pisell/private-materials",
12
- "version": "3.4.86",
13
- "exportName": "EcoCupList",
14
- "main": "src/index.ts",
15
- "destructuring": true,
16
- "subName": ""
1
+ const EcoCupListMeta = {
2
+ componentName: 'EcoCupList',
3
+ title: 'EcoCupList',
4
+ docUrl: '',
5
+ screenshot: '',
6
+ devMode: 'proCode',
7
+ npm: {
8
+ package: '@pisell/private-materials',
9
+ version: '3.4.87',
10
+ exportName: 'EcoCupList',
11
+ main: 'src/index.ts',
12
+ destructuring: true,
13
+ subName: '',
17
14
  },
18
- "configure": {
19
- "props": [
20
- {
21
- "title": {
22
- "label": {
23
- "type": "i18n",
24
- "en-US": "data",
25
- "zh-CN": "data"
26
- }
27
- },
28
- "name": "data",
29
- "setter": {
30
- "componentName": "ArraySetter",
31
- "props": {
32
- "itemSetter": {
33
- "componentName": "MixedSetter",
34
- "isRequired": false,
35
- "props": {}
36
- }
37
- },
38
- "isRequired": true,
39
- "initialValue": []
40
- }
41
- }
42
- ],
43
- "supports": {
44
- "style": true
15
+ configure: {
16
+ props: [],
17
+ supports: {
18
+ style: true,
45
19
  },
46
- "component": {}
47
- }
20
+ component: {},
21
+ },
48
22
  };
49
- const snippets: Snippet[] = [
50
- {
51
- "title": "EcoCupList",
52
- "screenshot": "",
53
- "schema": {
54
- "componentName": "EcoCupList",
55
- "props": {}
56
- }
57
- }
58
- ];
59
23
 
60
24
  export default {
61
25
  ...EcoCupListMeta,
62
- snippets
26
+ snippets: [],
63
27
  };
@@ -1,63 +1,27 @@
1
-
2
- import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
-
4
- const EcoCustomerListMeta: ComponentMetadata = {
5
- "componentName": "EcoCustomerList",
6
- "title": "EcoCustomerList",
7
- "docUrl": "",
8
- "screenshot": "",
9
- "devMode": "proCode",
10
- "npm": {
11
- "package": "@pisell/private-materials",
12
- "version": "3.4.86",
13
- "exportName": "EcoCustomerList",
14
- "main": "src/index.ts",
15
- "destructuring": true,
16
- "subName": ""
1
+ const EcoCustomerListMeta = {
2
+ componentName: 'EcoCustomerList',
3
+ title: 'EcoCustomerList',
4
+ docUrl: '',
5
+ screenshot: '',
6
+ devMode: 'proCode',
7
+ npm: {
8
+ package: '@pisell/private-materials',
9
+ version: '3.4.87',
10
+ exportName: 'EcoCustomerList',
11
+ main: 'src/index.ts',
12
+ destructuring: true,
13
+ subName: '',
17
14
  },
18
- "configure": {
19
- "props": [
20
- {
21
- "title": {
22
- "label": {
23
- "type": "i18n",
24
- "en-US": "data",
25
- "zh-CN": "data"
26
- }
27
- },
28
- "name": "data",
29
- "setter": {
30
- "componentName": "ArraySetter",
31
- "props": {
32
- "itemSetter": {
33
- "componentName": "MixedSetter",
34
- "isRequired": false,
35
- "props": {}
36
- }
37
- },
38
- "isRequired": true,
39
- "initialValue": []
40
- }
41
- }
42
- ],
43
- "supports": {
44
- "style": true
15
+ configure: {
16
+ props: [],
17
+ supports: {
18
+ style: true,
45
19
  },
46
- "component": {}
47
- }
20
+ component: {},
21
+ },
48
22
  };
49
- const snippets: Snippet[] = [
50
- {
51
- "title": "EcoCustomerList",
52
- "screenshot": "",
53
- "schema": {
54
- "componentName": "EcoCustomerList",
55
- "props": {}
56
- }
57
- }
58
- ];
59
23
 
60
24
  export default {
61
25
  ...EcoCustomerListMeta,
62
- snippets
26
+ snippets: [],
63
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.4.87",
3
+ "version": "3.4.89",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -77,9 +77,9 @@
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.89",
80
81
  "@pisell/icon": "0.0.11",
81
- "@pisell/date-picker": "3.0.4",
82
- "@pisell/materials": "3.3.88"
82
+ "@pisell/date-picker": "3.0.4"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "^18.0.0",