@pisell/private-materials 6.6.36 → 6.6.38

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 (69) 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.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/booking/addons/model.d.ts +1 -10
  8. package/es/components/booking/components/footer/amount.js +4 -3
  9. package/es/components/booking/components/footer/index.js +34 -28
  10. package/es/components/booking/components/footer/utils.js +10 -3
  11. package/es/components/booking/components/voucher/index.js +1 -1
  12. package/es/components/booking/forms/model.d.ts +1 -10
  13. package/es/components/booking/info/model.d.ts +1 -10
  14. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/info/service2/utils.d.ts +1 -1
  16. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  17. package/es/components/booking/info2/service/editService/index.js +6 -2
  18. package/es/components/booking/info2/service/editService/utils.d.ts +1 -0
  19. package/es/components/booking/info2/service/editService/utils.js +23 -1
  20. package/es/components/booking/model.d.ts +1 -9
  21. package/es/components/booking/notes/model.d.ts +1 -10
  22. package/es/components/booking/payments/index.js +1 -1
  23. package/es/components/booking/payments/model.d.ts +1 -10
  24. package/es/components/eftposPay/amount.d.ts +1 -1
  25. package/es/components/eftposPay/device.d.ts +1 -1
  26. package/es/components/eftposPay/hooks.d.ts +2 -2
  27. package/es/components/eftposPay/store/index.d.ts +5 -5
  28. package/es/components/pay/toC/model.d.ts +1 -9
  29. package/es/components/schedules/model.d.ts +1 -9
  30. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  31. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  32. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  33. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  34. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  35. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  36. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  37. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  38. package/lib/components/booking/addons/model.d.ts +1 -10
  39. package/lib/components/booking/components/footer/amount.js +3 -3
  40. package/lib/components/booking/components/footer/index.js +5 -0
  41. package/lib/components/booking/components/footer/utils.js +12 -5
  42. package/lib/components/booking/components/voucher/index.js +1 -1
  43. package/lib/components/booking/forms/model.d.ts +1 -10
  44. package/lib/components/booking/info/model.d.ts +1 -10
  45. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  46. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  47. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  48. package/lib/components/booking/info2/service/editService/index.js +3 -0
  49. package/lib/components/booking/info2/service/editService/utils.d.ts +1 -0
  50. package/lib/components/booking/info2/service/editService/utils.js +26 -5
  51. package/lib/components/booking/model.d.ts +1 -9
  52. package/lib/components/booking/notes/model.d.ts +1 -10
  53. package/lib/components/booking/payments/index.js +1 -1
  54. package/lib/components/booking/payments/model.d.ts +1 -10
  55. package/lib/components/eftposPay/amount.d.ts +1 -1
  56. package/lib/components/eftposPay/device.d.ts +1 -1
  57. package/lib/components/eftposPay/hooks.d.ts +2 -2
  58. package/lib/components/eftposPay/store/index.d.ts +5 -5
  59. package/lib/components/pay/toC/model.d.ts +1 -9
  60. package/lib/components/schedules/model.d.ts +1 -9
  61. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  62. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  63. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  64. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  65. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  66. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  67. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  68. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  69. package/package.json +1 -1
@@ -322,7 +322,7 @@ var processItemsTax = (items, state, options) => {
322
322
  }
323
323
  }
324
324
  }
325
- return { originTax: expectedOriginTax, tax: expectedTax };
325
+ return { originTax: expectedOriginTax, tax: expectedTax, taxDecimal: preciseTax };
326
326
  };
327
327
  var clearTaxFee = (state) => {
328
328
  var _a, _b;
@@ -375,7 +375,7 @@ var getTax = (state, options) => {
375
375
  computed
376
376
  });
377
377
  totalOriginTax = totalOriginTax.plus(serviceResult.originTax);
378
- totalTax = totalTax.plus(serviceResult.tax);
378
+ totalTax = totalTax.plus(serviceResult.taxDecimal);
379
379
  }
380
380
  if ((_c = state == null ? void 0 : state.addons) == null ? void 0 : _c.value) {
381
381
  const addonsResult = processItemsTax(state.addons.value, state, {
@@ -384,7 +384,7 @@ var getTax = (state, options) => {
384
384
  computed
385
385
  });
386
386
  totalOriginTax = totalOriginTax.plus(addonsResult.originTax);
387
- totalTax = totalTax.plus(addonsResult.tax);
387
+ totalTax = totalTax.plus(addonsResult.taxDecimal);
388
388
  }
389
389
  }
390
390
  return {
@@ -639,6 +639,9 @@ var Footer = (props) => {
639
639
  }
640
640
  let _setLoading = type === "checkout" ? setCheckoutLoading : setLoading;
641
641
  _setLoading(true);
642
+ const loadingTimer = setTimeout(() => {
643
+ _setLoading(false);
644
+ }, 2e4);
642
645
  const { createBooking, editBooking } = getApis();
643
646
  const editApi = state.renderType === "eventBooking" ? import_serve2.editEventBooking : editBooking;
644
647
  const createApi = state.renderType === "eventBooking" ? import_serve2.createEventBooking : createBooking;
@@ -717,6 +720,7 @@ var Footer = (props) => {
717
720
  }
718
721
  }
719
722
  state == null ? void 0 : state.callback(callbackData, type);
723
+ clearTimeout(loadingTimer);
720
724
  _setLoading(false);
721
725
  return callbackData || values;
722
726
  } catch (err) {
@@ -724,6 +728,7 @@ var Footer = (props) => {
724
728
  if ((err == null ? void 0 : err.code) === 70101) {
725
729
  import_antd.message.error(err == null ? void 0 : err.message);
726
730
  }
731
+ clearTimeout(loadingTimer);
727
732
  _setLoading(false);
728
733
  }
729
734
  };
@@ -110,13 +110,14 @@ var formatProductBundle = (bundle) => {
110
110
  } catch (error) {
111
111
  }
112
112
  return bundle.map((d) => {
113
+ var _a;
113
114
  const option = formatProductOption(d.option);
114
115
  const option_price = option.reduce((temp, item) => {
115
116
  return temp + Number(item.num) * item.custom_add_price;
116
117
  }, 0);
117
118
  const product_discount_difference = ((d == null ? void 0 : d.discount_list) || []).reduce((pre, cur) => {
118
- var _a;
119
- return pre + (((_a = cur == null ? void 0 : cur.metadata) == null ? void 0 : _a.product_discount_difference) || 0);
119
+ var _a2;
120
+ return pre + (((_a2 = cur == null ? void 0 : cur.metadata) == null ? void 0 : _a2.product_discount_difference) || 0);
120
121
  }, 0);
121
122
  return {
122
123
  "is_charge_tax": d.is_charge_tax,
@@ -137,7 +138,7 @@ var formatProductBundle = (bundle) => {
137
138
  "bundle_selling_price": Math.abs(d == null ? void 0 : d.price),
138
139
  // "bundle_sum_price": d?.original_price || d?.original_total,
139
140
  "metadata": {
140
- custom_product_bundle_map_id: d._id,
141
+ custom_product_bundle_map_id: ((_a = d == null ? void 0 : d.metadata) == null ? void 0 : _a.custom_product_bundle_map_id) || d._id,
141
142
  // 子商品单数量附加费
142
143
  "surcharge_fee": d.surcharge_fee,
143
144
  // 可选,附加费均摊舍入金额
@@ -363,7 +364,7 @@ var getMainProductSellingPrice = (item) => {
363
364
  }
364
365
  return new import_decimal.default((_f = item._extend) == null ? void 0 : _f.main_product_selling_price).add(optionPrice).toNumber();
365
366
  };
366
- var formatProducts = (item, quantity) => {
367
+ var formatProducts = (item, quantity, options) => {
367
368
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
368
369
  const total = Number(item._extend.total);
369
370
  const origin_total = Number(item._extend.origin_total);
@@ -377,6 +378,9 @@ var formatProducts = (item, quantity) => {
377
378
  ...d.metadata,
378
379
  unique_identification_number: `${item._extend.unique_identification_number}_${d.discount.resource_id}`
379
380
  };
381
+ if ((options == null ? void 0 : options.isServiceEdit) && (options == null ? void 0 : options.isMultiDay)) {
382
+ delete d.id;
383
+ }
380
384
  });
381
385
  const notManualDiscount = discount_list.filter(
382
386
  (item2) => item2.type !== "product"
@@ -517,7 +521,10 @@ var formatBookings = (data, values) => {
517
521
  item._extend.unique_identification_number = unique_identification_number;
518
522
  }
519
523
  const booking = {
520
- product: formatProducts(item),
524
+ product: formatProducts(item, void 0, {
525
+ isServiceEdit: data.service.edit,
526
+ isMultiDay
527
+ }),
521
528
  relation_products: formatRelationDetails(item._extend.relation_details),
522
529
  id: item.booking_id || 0,
523
530
  relation_id: item._extend.relation_id || 0,
@@ -111,7 +111,7 @@ var VoucherCard = (props) => {
111
111
  const val = (_a2 = state.service.value || []) == null ? void 0 : _a2.map((value) => {
112
112
  var _a3, _b2, _c2;
113
113
  return {
114
- booking_id: value.booking_id,
114
+ // booking_id: value.booking_id,
115
115
  id: value.id,
116
116
  price: value.price,
117
117
  total: (_a3 = value == null ? void 0 : value._extend) == null ? void 0 : _a3.total,
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -216,4 +216,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
216
216
  * @Author: WangHan
217
217
  * @Date: 2024-12-24 11:32
218
218
  */
219
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
219
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -510,6 +510,7 @@ var Info = (_, ref) => {
510
510
  customer_id: (_e2 = (_d2 = state.client) == null ? void 0 : _d2.value) == null ? void 0 : _e2.id,
511
511
  value: {
512
512
  ...item._extend.other,
513
+ bundle: (0, import_utils8.mergeBundles)(item._extend.other),
513
514
  ...sessionValue,
514
515
  quantity: values.quantity || item._extend.quantity
515
516
  }
@@ -995,6 +996,8 @@ var Info = (_, ref) => {
995
996
  var _a2, _b2, _c2;
996
997
  delete cacheItem.discount_list;
997
998
  (_c2 = (_b2 = (_a2 = cacheItem._extend.other) == null ? void 0 : _a2.bundle) == null ? void 0 : _b2.forEach) == null ? void 0 : _c2.call(_b2, (bundle) => {
999
+ var _a3;
1000
+ (_a3 = bundle == null ? void 0 : bundle.metadata) == null ? true : delete _a3.custom_product_bundle_map_id;
998
1001
  bundle == null ? true : delete bundle.discount_list;
999
1002
  bundle == null ? true : delete bundle.booking_id;
1000
1003
  bundle == null ? true : delete bundle.bundle_selling_price;
@@ -32,3 +32,4 @@ export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total
32
32
  * @returns 折扣列表
33
33
  */
34
34
  export declare const getProductAllDiscountList: (cacheItem: any) => any;
35
+ export declare const mergeBundles: (other: any) => any[];
@@ -31,6 +31,7 @@ var utils_exports = {};
31
31
  __export(utils_exports, {
32
32
  getAutoAllocationStorage: () => getAutoAllocationStorage,
33
33
  getProductAllDiscountList: () => getProductAllDiscountList,
34
+ mergeBundles: () => mergeBundles,
34
35
  setAutoAllocationStorage: () => setAutoAllocationStorage,
35
36
  setProductPrice: () => setProductPrice
36
37
  });
@@ -57,19 +58,24 @@ var setAutoAllocationStorage = (data) => {
57
58
  }
58
59
  };
59
60
  var setProductPrice = (cacheItem, { newTotal, origin_total }) => {
60
- var _a, _b, _c, _d, _e, _f, _g, _h;
61
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
62
+ if (((_a = cacheItem == null ? void 0 : cacheItem.discount_list) == null ? void 0 : _a.length) && ((cacheItem == null ? void 0 : cacheItem.discount_list) || []).some((item) => ["good_pass", "discount_card", "product_discount_card"].includes(
63
+ item.type
64
+ ))) {
65
+ return cacheItem;
66
+ }
61
67
  const discountRatio = new import_decimal.default(newTotal).div(new import_decimal.default(origin_total));
62
68
  let subTotal = new import_decimal.default(0);
63
- if (((_a = cacheItem._extend.other) == null ? void 0 : _a.bundle) && (0, import_utils.isArr)((_b = cacheItem._extend.other) == null ? void 0 : _b.bundle)) {
64
- (_d = (_c = cacheItem._extend.other) == null ? void 0 : _c.bundle) == null ? void 0 : _d.forEach((bundle) => {
69
+ if (((_b = cacheItem._extend.other) == null ? void 0 : _b.bundle) && (0, import_utils.isArr)((_c = cacheItem._extend.other) == null ? void 0 : _c.bundle)) {
70
+ (_e = (_d = cacheItem._extend.other) == null ? void 0 : _d.bundle) == null ? void 0 : _e.forEach((bundle) => {
65
71
  const newPrice = new import_decimal.default(bundle.original_price || bundle.price).mul(discountRatio).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
66
72
  const quantity = bundle.num ?? bundle.quantity ?? 1;
67
73
  subTotal = subTotal.add(new import_decimal.default(newPrice).mul(quantity));
68
74
  bundle.price = newPrice;
69
75
  });
70
76
  }
71
- if (((_e = cacheItem._extend.other) == null ? void 0 : _e.option) && (0, import_utils.isArr)((_f = cacheItem._extend.other) == null ? void 0 : _f.option)) {
72
- (_h = (_g = cacheItem._extend.other) == null ? void 0 : _g.option) == null ? void 0 : _h.forEach((option) => {
77
+ if (((_f = cacheItem._extend.other) == null ? void 0 : _f.option) && (0, import_utils.isArr)((_g = cacheItem._extend.other) == null ? void 0 : _g.option)) {
78
+ (_i = (_h = cacheItem._extend.other) == null ? void 0 : _h.option) == null ? void 0 : _i.forEach((option) => {
73
79
  const newPrice = new import_decimal.default(option.price).mul(discountRatio).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
74
80
  const quantity = option.num ?? option.quantity ?? 1;
75
81
  subTotal = subTotal.add(new import_decimal.default(newPrice).mul(quantity));
@@ -87,10 +93,25 @@ var getProductAllDiscountList = (cacheItem) => {
87
93
  discountList.push(...bundleDiscountList);
88
94
  return discountList;
89
95
  };
96
+ var mergeBundles = (other) => {
97
+ const bundle = (other == null ? void 0 : other.bundle) || [];
98
+ const newBundle = [];
99
+ bundle.forEach((item) => {
100
+ const newItem = newBundle.find((newItem2) => newItem2.id === item.id);
101
+ if (newItem) {
102
+ newItem.num += item.num || 1;
103
+ newItem.quantity += item.quantity || 1;
104
+ } else {
105
+ newBundle.push({ ...item });
106
+ }
107
+ });
108
+ return newBundle;
109
+ };
90
110
  // Annotate the CommonJS export names for ESM import in node:
91
111
  0 && (module.exports = {
92
112
  getAutoAllocationStorage,
93
113
  getProductAllDiscountList,
114
+ mergeBundles,
94
115
  setAutoAllocationStorage,
95
116
  setProductPrice
96
117
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -110,11 +109,4 @@ export declare const walkInData: {
110
109
  id: number;
111
110
  nickname: string;
112
111
  };
113
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
- state: FormState;
115
- } & {
116
- dispatch: (params: {
117
- type: string;
118
- payload: any;
119
- }) => void;
120
- }>;
112
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -134,7 +134,7 @@ var Payments = (0, import_model.Provider)((props) => {
134
134
  item.service_fee,
135
135
  2,
136
136
  (state == null ? void 0 : state.amountSymbol) || "$"
137
- ), ")") : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-list-item-date" }, (0, import_dayjs.default)(item.payment_time).format(
137
+ ), ")") : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-list-item-date" }, (0, import_dayjs.default)(item.payment_time || item.created_at).format(
138
138
  "HH:mm YYYY/MM/DD"
139
139
  ), /* @__PURE__ */ import_react.default.createElement("span", { className: "payment-list-item-platform-type" }, item.platform && import_utils.locales.getText("pisell2.text.platform.type")(
140
140
  item.platform
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "print" | "page" | "fail" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "print" | "page" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  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" | "init" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "init" | "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<"stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
178
178
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
179
179
  type: EActionTypes;
180
180
  payload: {
181
- status: "loading" | "success" | "warn" | "fail" | "question";
181
+ status: "success" | "warn" | "loading" | "fail" | "question";
182
182
  };
183
183
  };
184
184
  /**
@@ -299,10 +299,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
299
299
  name?: string | undefined;
300
300
  symbol?: string | undefined;
301
301
  amount?: string | number | undefined;
302
- mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
302
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
303
303
  order_id?: string | number | undefined;
304
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu" | undefined;
305
- action?: "pay" | "amount" | "deviceList" | undefined;
304
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu" | undefined;
305
+ action?: "amount" | "pay" | "deviceList" | undefined;
306
306
  key?: number | undefined;
307
307
  step?: number | undefined;
308
308
  title?: string | undefined;
@@ -312,7 +312,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
312
312
  net?: boolean | undefined;
313
313
  component?: string | undefined;
314
314
  form?: string | undefined;
315
- status?: "loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
315
+ status?: "success" | "warn" | "loading" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
316
316
  warn?: string | undefined;
317
317
  steps?: {
318
318
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -30,11 +29,4 @@ export interface PayGroup {
30
29
  _order: any;
31
30
  front_order_uuid?: string;
32
31
  }
33
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
- state: FormState;
35
- } & {
36
- dispatch: (params: {
37
- type: string;
38
- payload: any;
39
- }) => void;
40
- }>;
32
+ export declare const Provider: any, Context: any;
@@ -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;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Capacity: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Capacity;
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const CardMask: ({ props }: {
5
5
  props: SkuStatusOverlayConfig;
6
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
6
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
7
7
  export default CardMask;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const Countdown: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
6
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
7
7
  export default Countdown;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Duration: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Duration;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const MemberPrice: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
6
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
7
7
  export default MemberPrice;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Resource: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Resource;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Stock: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Stock;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Time: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Time;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.6.36",
3
+ "version": "6.6.38",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",