@pisell/private-materials 3.2.1 → 3.2.2

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 (109) 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 +9 -9
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +3 -3
  9. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  10. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  11. package/es/components/booking/forms/table/index.d.ts +0 -1
  12. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  13. package/es/components/booking/info/service/like/index.d.ts +0 -1
  14. package/es/components/booking/utils.d.ts +2 -2
  15. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  16. package/es/components/eftpos/form/index.d.ts +0 -1
  17. package/es/components/eftpos/group/index.d.ts +0 -1
  18. package/es/components/eftpos/hooks.d.ts +0 -1
  19. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  20. package/es/components/eftpos/icon/device.d.ts +0 -1
  21. package/es/components/eftpos/receipt/index.d.ts +0 -1
  22. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  23. package/es/components/eftposPay/amount.d.ts +1 -1
  24. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  25. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  26. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  27. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  28. package/es/components/eftposPay/device.d.ts +1 -1
  29. package/es/components/eftposPay/hooks.d.ts +2 -2
  30. package/es/components/eftposPay/store/index.d.ts +4 -4
  31. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  32. package/es/components/login/index.d.ts +0 -1
  33. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  34. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  35. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  36. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  37. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  38. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  39. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  40. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  41. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  42. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  43. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  44. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  45. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  46. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  47. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  48. package/es/components/schedules/products/index.d.ts +0 -1
  49. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  50. package/es/components/wallet/Detail/index.js +57 -28
  51. package/es/components/wallet/Detail/locales.d.ts +6 -0
  52. package/es/components/wallet/Detail/locales.js +6 -0
  53. package/es/components/wallet/Detail/serve.js +3 -1
  54. package/es/components/wallet/components/FooterButtons/index.js +1 -1
  55. package/es/components/wallet/index.js +2 -1
  56. package/es/components/wallet/locales.js +1 -1
  57. package/es/components/walletList/index.less +0 -1
  58. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  59. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  60. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  61. package/lib/components/booking/forms/table/index.d.ts +0 -1
  62. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  63. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  64. package/lib/components/booking/utils.d.ts +2 -2
  65. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  66. package/lib/components/eftpos/form/index.d.ts +0 -1
  67. package/lib/components/eftpos/group/index.d.ts +0 -1
  68. package/lib/components/eftpos/hooks.d.ts +0 -1
  69. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  70. package/lib/components/eftpos/icon/device.d.ts +0 -1
  71. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  72. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  73. package/lib/components/eftposPay/amount.d.ts +1 -1
  74. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  75. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  76. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  77. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  78. package/lib/components/eftposPay/device.d.ts +1 -1
  79. package/lib/components/eftposPay/hooks.d.ts +2 -2
  80. package/lib/components/eftposPay/store/index.d.ts +4 -4
  81. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  82. package/lib/components/login/index.d.ts +0 -1
  83. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  84. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  85. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  86. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  87. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  88. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  89. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  90. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  91. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  92. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  93. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  94. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  95. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  96. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  97. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  98. package/lib/components/schedules/products/index.d.ts +0 -1
  99. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  100. package/lib/components/wallet/Detail/index.js +34 -21
  101. package/lib/components/wallet/Detail/locales.d.ts +6 -0
  102. package/lib/components/wallet/Detail/locales.js +6 -0
  103. package/lib/components/wallet/Detail/serve.js +1 -1
  104. package/lib/components/wallet/components/FooterButtons/index.js +2 -1
  105. package/lib/components/wallet/index.js +2 -1
  106. package/lib/components/wallet/locales.js +1 -1
  107. package/lib/components/walletList/index.less +0 -1
  108. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  109. package/package.json +2 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string | undefined;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "stripe" | "payo" | "windcave">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "success" | "loading" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,18 +297,18 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
300
+ eftpos?: "tyro" | "stripe" | "payo" | "windcave" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface LoginProps {
4
3
  title: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => JSX.Element;
3
2
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PageLoading: () => JSX.Element;
3
2
  export default PageLoading;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentRequestForm: () => JSX.Element | null;
3
2
  export default PaymentRequestForm;
@@ -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 './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -82,6 +82,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
82
82
  const [timeLineDetail, setTimeLineDetail] = (0, import_react.useState)({});
83
83
  const [wechatModalOpen, setWechatModalOpen] = (0, import_react.useState)(false);
84
84
  const [copyUrl, setCopyUrl] = (0, import_react.useState)("");
85
+ const [isLoading, setIsLoading] = (0, import_react.useState)(false);
85
86
  const [apple_wallet_url, setAppleWalletUrl] = (0, import_react.useState)("");
86
87
  const [google_wallet_url, setGoogleWalletUrl] = (0, import_react.useState)("");
87
88
  const stateTimeUnix = 1723255863;
@@ -142,6 +143,11 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
142
143
  label: import_utils.locales.getText("page.wallet.discount"),
143
144
  value: balance ? `${Number(balance)}%` : ""
144
145
  });
146
+ } else if (tag === "point_card") {
147
+ data.splice(2, 0, {
148
+ label: import_utils.locales.getText("page.wallet.points"),
149
+ value: balance ? `${balance}` : ""
150
+ });
145
151
  } else {
146
152
  data.splice(2, 0, {
147
153
  label: import_utils.locales.getText("page.wallet.balance"),
@@ -212,26 +218,33 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
212
218
  };
213
219
  const getTimeTreeList = async () => {
214
220
  var _a2, _b2, _c2, _d2;
215
- const { list = [] } = await (0, import_serve.getAssetList)({
216
- num: "99",
217
- skip: "1",
218
- card_id: code,
219
- sourceType: tag,
220
- tag,
221
- business_object: "customer"
222
- });
223
- let filterList = list.filter(
224
- (item) => !!assetActionEnum[item.action || ""]
225
- );
226
- for (let i = filterList.length - 1; i >= 0; i--) {
227
- if (((_a2 = filterList[i]) == null ? void 0 : _a2.action) === "order_expend" && import_dayjs.default.tz((_b2 = filterList[i]) == null ? void 0 : _b2.created_at, timezone2).unix() < stateTimeUnix) {
228
- filterList.splice(i, 1);
229
- }
230
- if (((_c2 = filterList[i]) == null ? void 0 : _c2.tag) === "point_card" && import_dayjs.default.tz((_d2 = filterList[i]) == null ? void 0 : _d2.created_at, timezone2).unix() < stateTimeUnix) {
231
- filterList.splice(i, 1);
221
+ setIsLoading(true);
222
+ try {
223
+ const { list = [] } = await (0, import_serve.getAssetList)({
224
+ num: "99",
225
+ skip: "1",
226
+ card_id: code,
227
+ sourceType: tag,
228
+ tag,
229
+ business_object: "customer"
230
+ });
231
+ let filterList = list.filter(
232
+ (item) => !!assetActionEnum[item.action || ""]
233
+ );
234
+ for (let i = filterList.length - 1; i >= 0; i--) {
235
+ if (((_a2 = filterList[i]) == null ? void 0 : _a2.action) === "order_expend" && import_dayjs.default.tz((_b2 = filterList[i]) == null ? void 0 : _b2.created_at, timezone2).unix() < stateTimeUnix) {
236
+ filterList.splice(i, 1);
237
+ }
238
+ if (((_c2 = filterList[i]) == null ? void 0 : _c2.tag) === "point_card" && import_dayjs.default.tz((_d2 = filterList[i]) == null ? void 0 : _d2.created_at, timezone2).unix() < stateTimeUnix) {
239
+ filterList.splice(i, 1);
240
+ }
232
241
  }
242
+ setTimeLineData(formatTimeLineDta(filterList));
243
+ } catch (error) {
244
+ console.error("Failed to fetch asset list:", error);
245
+ } finally {
246
+ setIsLoading(false);
233
247
  }
234
- setTimeLineData(formatTimeLineDta(filterList));
235
248
  };
236
249
  (0, import_react.useEffect)(() => {
237
250
  if (code) {
@@ -490,8 +503,8 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
490
503
  const assetActionEnum = {
491
504
  recharge: tag === "point_card" ? import_utils.locales.getText("page.wallet.pointsEarned") : import_utils.locales.getText("page.wallet.recharge"),
492
505
  order_expend: tag === "point_card" ? import_utils.locales.getText("page.wallet.pointsRedeemed") : import_utils.locales.getText("page.wallet.spending"),
493
- order_refund: "退款",
494
- expire: "过期"
506
+ order_refund: import_utils.locales.getText("page.wallet.refund"),
507
+ expire: import_utils.locales.getText("page.wallet.expire")
495
508
  };
496
509
  const handleRecharge = () => {
497
510
  if (props.buttonGroupList && props.buttonGroupList[0] && props.buttonGroupList[0][0]) {
@@ -577,7 +590,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
577
590
  className: "wallet-detail-card-content-section wallet-detail-card-content-section-timeline",
578
591
  "data-section": "activityLog"
579
592
  },
580
- tag !== "product_discount_card" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-card-content-section-subtitle" }, import_utils.locales.getText("page.wallet.activelog")), TimeLineData.length > 0 ? /* @__PURE__ */ import_react.default.createElement(
593
+ tag !== "product_discount_card" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-card-content-section-subtitle" }, import_utils.locales.getText("page.wallet.activelog")), isLoading ? /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-timeline-loading" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Skeleton, { active: true, paragraph: { rows: 6 }, round: true })) : TimeLineData.length > 0 ? /* @__PURE__ */ import_react.default.createElement(
581
594
  import_materials.Timeline,
582
595
  {
583
596
  items: TimeLineData,
@@ -13,6 +13,8 @@ declare const _default: {
13
13
  'page.wallet.recharge': string;
14
14
  'page.wallet.pointsEarned': string;
15
15
  'page.wallet.pointsRedeemed': string;
16
+ 'page.wallet.refund': string;
17
+ 'page.wallet.expire': string;
16
18
  'page.wallet.viewOrder': string;
17
19
  'page.wallet.done': string;
18
20
  'page.wallet.addIos': string;
@@ -34,6 +36,8 @@ declare const _default: {
34
36
  'page.wallet.recharge': string;
35
37
  'page.wallet.pointsEarned': string;
36
38
  'page.wallet.pointsRedeemed': string;
39
+ 'page.wallet.refund': string;
40
+ 'page.wallet.expire': string;
37
41
  'page.wallet.viewOrder': string;
38
42
  'page.wallet.done': string;
39
43
  'page.wallet.addIos': string;
@@ -55,6 +59,8 @@ declare const _default: {
55
59
  'page.wallet.recharge': string;
56
60
  'page.wallet.pointsEarned': string;
57
61
  'page.wallet.pointsRedeemed': string;
62
+ 'page.wallet.refund': string;
63
+ 'page.wallet.expire': string;
58
64
  'page.wallet.viewOrder': string;
59
65
  'page.wallet.done': string;
60
66
  'page.wallet.addIos': string;
@@ -40,6 +40,8 @@ var locales_default = {
40
40
  "page.wallet.recharge": "Recharge",
41
41
  "page.wallet.pointsEarned": "Points Earned",
42
42
  "page.wallet.pointsRedeemed": "Points Redeemed",
43
+ "page.wallet.refund": "Refund",
44
+ "page.wallet.expire": "Expire",
43
45
  "page.wallet.viewOrder": "View order",
44
46
  "page.wallet.done": "Done",
45
47
  "page.wallet.addIos": "Add to Apple Wallet",
@@ -64,6 +66,8 @@ var locales_default = {
64
66
  "page.wallet.recharge": "充值",
65
67
  "page.wallet.pointsEarned": "获得积分",
66
68
  "page.wallet.pointsRedeemed": "使用积分",
69
+ "page.wallet.refund": "退款",
70
+ "page.wallet.expire": "过期",
67
71
  "page.wallet.viewOrder": "浏览订单",
68
72
  "page.wallet.done": "完成",
69
73
  "page.wallet.addIos": "添加到苹果钱包",
@@ -88,6 +92,8 @@ var locales_default = {
88
92
  "page.wallet.recharge": "充值",
89
93
  "page.wallet.pointsEarned": "獲得積分",
90
94
  "page.wallet.pointsRedeemed": "使用積分",
95
+ "page.wallet.refund": "退款",
96
+ "page.wallet.expire": "過期",
91
97
  "page.wallet.viewOrder": "瀏覽訂單",
92
98
  "page.wallet.done": "完成",
93
99
  "page.wallet.addIos": "添加到蘋果錢包",
@@ -25,7 +25,7 @@ __export(serve_exports, {
25
25
  module.exports = __toCommonJS(serve_exports);
26
26
  var import_utils = require("./../../../utils");
27
27
  var getAssetList = async (params) => {
28
- const { data } = await import_utils.request.getRequest().get(`/h5/pay/asset/lowcode/list`, params);
28
+ const { data } = await import_utils.request.getRequest().get(`/h5/pay/asset/lowcode/list`, params, { abort: true });
29
29
  return data;
30
30
  };
31
31
  var getDetailApi = async (params) => {
@@ -59,7 +59,8 @@ var FooterButtons = ({
59
59
  disabled,
60
60
  size: "large",
61
61
  className: "wallet-footer-buttons-item wallet-footer-buttons-item-primary"
62
- }
62
+ },
63
+ import_utils.locales.getText("page.wallet.button.add")
63
64
  ));
64
65
  case "detail":
65
66
  const buttons = [];
@@ -451,6 +451,7 @@ var Wallet = (0, import_model.Provider)(() => {
451
451
  return /* @__PURE__ */ import_react.default.createElement(
452
452
  import_materials.PisellWalletPassCard,
453
453
  {
454
+ balanceTitle: global_wallet.currentTag === "point_card" ? import_utils.locales.getText("page.wallet.points") : void 0,
454
455
  showDetail: false,
455
456
  showRedeem: false,
456
457
  showQrCode: false,
@@ -459,7 +460,7 @@ var Wallet = (0, import_model.Provider)(() => {
459
460
  showDisabledReason: !isEnabled,
460
461
  disabledReason: title,
461
462
  propStyle: { marginBottom: 10 },
462
- showBalanceSymbol: true,
463
+ showBalanceSymbol: global_wallet.currentTag !== "point_card",
463
464
  showBalance: global_wallet.currentTag !== "product_discount_card",
464
465
  active: isActive,
465
466
  name: product_name,
@@ -27,7 +27,7 @@ var locales_default = {
27
27
  // English translations
28
28
  "page.wallet.rechargeableCard": "Rechargeable card",
29
29
  "page.wallet.voucher": "Voucher",
30
- "page.wallet.pointCard": "Points card",
30
+ "page.wallet.pointCard": "Points",
31
31
  "page.wallet.discountCard": "Discount card",
32
32
  "page.wallet.unavailable": "Unavailable",
33
33
  "page.wallet.available": "Available",
@@ -281,7 +281,6 @@
281
281
  border-radius: 50%;
282
282
  background-color: #F2F4F7;
283
283
  margin: 0 8px;
284
- cursor: pointer;
285
284
  transition: all 0.3s ease;
286
285
 
287
286
  &.active {
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,8 +60,8 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/utils": "1.0.42",
63
- "@pisell/materials": "3.2.1",
64
63
  "@pisell/icon": "0.0.11",
64
+ "@pisell/materials": "3.2.2",
65
65
  "@pisell/date-picker": "1.0.100"
66
66
  },
67
67
  "peerDependencies": {