@pisell/private-materials 3.0.124 → 3.0.126
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.js +13 -11
- package/build/lowcode/view.js +12 -10
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +2 -1
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +2 -1
- package/es/components/booking/payments/model.d.ts +2 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/pay/toC/index.js +96 -24
- package/es/components/pay/toC/locales.d.ts +9 -0
- package/es/components/pay/toC/locales.js +12 -3
- package/es/components/pay/toC/status.d.ts +9 -0
- package/es/components/pay/toC/status.js +38 -4
- package/es/components/pay/toC/utils.d.ts +8 -0
- package/es/components/pay/toC/utils.js +13 -0
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +2 -1
- package/lib/components/booking/addons/model.d.ts +2 -1
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +2 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +2 -1
- package/lib/components/booking/payments/model.d.ts +2 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/pay/toC/index.js +30 -0
- package/lib/components/pay/toC/locales.d.ts +9 -0
- package/lib/components/pay/toC/locales.js +12 -3
- package/lib/components/pay/toC/status.d.ts +9 -0
- package/lib/components/pay/toC/status.js +35 -5
- package/lib/components/pay/toC/utils.d.ts +8 -0
- package/lib/components/pay/toC/utils.js +9 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +2 -1
- package/package.json +4 -4
|
@@ -90,7 +90,10 @@ var locales_default = {
|
|
|
90
90
|
"tocPay.text.walletPassNoExtraPay": "No extra pay needed",
|
|
91
91
|
"tocPay.text.walletCanPay": "You can use the balance in your wallet pass or other eligible types of voucher to pay.",
|
|
92
92
|
"tocPay.text.paymentInstructions": "Instructions",
|
|
93
|
-
"tocPay.text.walletSearchEmpty": "No results found."
|
|
93
|
+
"tocPay.text.walletSearchEmpty": "No results found.",
|
|
94
|
+
"tocPay.text.detectIncognitoConfirm": "You are currently in private mode, wallet payment may not succeed. Please copy the link and continue payment in a non-private browsing tab.",
|
|
95
|
+
"tocPay.text.copyLink": "Copy link",
|
|
96
|
+
"tocPay.text.copySuccess": "Copy Success"
|
|
94
97
|
},
|
|
95
98
|
"zh-CN": {
|
|
96
99
|
"tocPay.text.checkout": "结账",
|
|
@@ -158,7 +161,10 @@ var locales_default = {
|
|
|
158
161
|
"tocPay.text.walletPassCompleteTitle": "请点击底部的“提交”按钮完成支付",
|
|
159
162
|
"tocPay.text.walletPassNoExtraPay": "无需额外支付金额",
|
|
160
163
|
"tocPay.text.walletCanPay": "您可以使用钱包内的余额或其他符合条件的代金券进行支付。",
|
|
161
|
-
"tocPay.text.walletSearchEmpty": "没有查询到任何结果。"
|
|
164
|
+
"tocPay.text.walletSearchEmpty": "没有查询到任何结果。",
|
|
165
|
+
"tocPay.text.detectIncognitoConfirm": "当前处于无痕模式,钱包支付可能失败,请复制链接在非无痕模式下继续支付。",
|
|
166
|
+
"tocPay.text.copyLink": "复制链接",
|
|
167
|
+
"tocPay.text.copySuccess": "复制成功"
|
|
162
168
|
},
|
|
163
169
|
"zh-HK": {
|
|
164
170
|
"tocPay.text.checkout": "結帳",
|
|
@@ -226,6 +232,9 @@ var locales_default = {
|
|
|
226
232
|
"tocPay.text.walletPassCompleteTitle": "請點擊底部的“提交”按鈕完成支付",
|
|
227
233
|
"tocPay.text.walletPassNoExtraPay": "無需額外支付金額",
|
|
228
234
|
"tocPay.text.walletCanPay": "您可以使用錢包內的餘額或其他符合資格的代金券進行支付。",
|
|
229
|
-
"tocPay.text.walletSearchEmpty": "沒有查詢到任何結果。"
|
|
235
|
+
"tocPay.text.walletSearchEmpty": "沒有查詢到任何結果。",
|
|
236
|
+
"tocPay.text.detectIncognitoConfirm": "目前處於無痕模式,錢包支付可能失敗,請複製連結在非無痕模式下繼續支付。",
|
|
237
|
+
"tocPay.text.copyLink": "復製链接",
|
|
238
|
+
"tocPay.text.copySuccess": "復製成功"
|
|
230
239
|
}
|
|
231
240
|
};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
export declare const paymentServices: any;
|
|
2
2
|
export declare const paymentTypes: any[];
|
|
3
|
+
export declare const tripartitePaymentKeys: string[];
|
|
3
4
|
export declare const paymentKeys: string[];
|
|
5
|
+
/**
|
|
6
|
+
* @title: 判断是否是三方支付
|
|
7
|
+
* @description:
|
|
8
|
+
* @return: *
|
|
9
|
+
* @Author: shengjie.zuo
|
|
10
|
+
* @Date: 2024-08-30 10:16:26
|
|
11
|
+
*/
|
|
12
|
+
export declare const isTripartitePayment: (service: string) => boolean;
|
|
@@ -19,57 +19,72 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/pay/toC/status.ts
|
|
20
20
|
var status_exports = {};
|
|
21
21
|
__export(status_exports, {
|
|
22
|
+
isTripartitePayment: () => isTripartitePayment,
|
|
22
23
|
paymentKeys: () => paymentKeys,
|
|
23
24
|
paymentServices: () => paymentServices,
|
|
24
|
-
paymentTypes: () => paymentTypes
|
|
25
|
+
paymentTypes: () => paymentTypes,
|
|
26
|
+
tripartitePaymentKeys: () => tripartitePaymentKeys
|
|
25
27
|
});
|
|
26
28
|
module.exports = __toCommonJS(status_exports);
|
|
27
29
|
var paymentServices = {
|
|
28
30
|
// stripe支付
|
|
29
31
|
stripe: {
|
|
30
32
|
// url: stripe,
|
|
33
|
+
isTripartitePayment: true
|
|
31
34
|
},
|
|
32
35
|
// 微信支付
|
|
33
36
|
"globepay.wechat.jsapi": {
|
|
34
37
|
// url: wxpay,
|
|
38
|
+
isTripartitePayment: true
|
|
35
39
|
},
|
|
36
40
|
// 微信H5支付
|
|
37
41
|
"superpay.wechat.h5": {
|
|
38
42
|
// url: wxpay,
|
|
39
|
-
channel: ["wx"]
|
|
43
|
+
channel: ["wx"],
|
|
44
|
+
isTripartitePayment: true
|
|
40
45
|
},
|
|
41
46
|
// 支付包H5支付
|
|
42
47
|
"globepay.alipay.h5": {
|
|
43
48
|
// url: alipay,
|
|
44
|
-
channel: ["nowx", "phone", "ios"]
|
|
49
|
+
channel: ["nowx", "phone", "ios"],
|
|
50
|
+
isTripartitePayment: true
|
|
45
51
|
},
|
|
46
52
|
"globepay.paypal.h5": {
|
|
47
53
|
// url: paypal,
|
|
48
|
-
channel: ["wx", "nowx", "phone", "ios"]
|
|
54
|
+
channel: ["wx", "nowx", "phone", "ios"],
|
|
55
|
+
isTripartitePayment: false
|
|
49
56
|
},
|
|
50
57
|
"superpay.alipay.h5": {
|
|
51
58
|
// url: alipay,
|
|
59
|
+
isTripartitePayment: true
|
|
52
60
|
},
|
|
53
61
|
"mw.google": {
|
|
54
62
|
// url: google_pay,
|
|
63
|
+
isTripartitePayment: true
|
|
55
64
|
},
|
|
56
65
|
"mw.apple": {
|
|
57
66
|
// url: apple_pay,
|
|
67
|
+
isTripartitePayment: true
|
|
58
68
|
},
|
|
59
69
|
"mw.credit_card": {
|
|
60
70
|
// url: credit_card,
|
|
71
|
+
isTripartitePayment: true
|
|
61
72
|
},
|
|
62
73
|
"pisell.bank_deposit": {
|
|
63
74
|
// url: bank_deposit,
|
|
75
|
+
isTripartitePayment: false
|
|
64
76
|
},
|
|
65
77
|
"pisell.offline_payment": {
|
|
66
78
|
// url: offline_payment,
|
|
79
|
+
isTripartitePayment: false
|
|
67
80
|
},
|
|
68
81
|
"pisell.other.cashmanual": {
|
|
69
82
|
// url: custom,
|
|
83
|
+
isTripartitePayment: false
|
|
70
84
|
},
|
|
71
85
|
"pisell.custom_payment": {
|
|
72
86
|
// url: custom,
|
|
87
|
+
isTripartitePayment: false
|
|
73
88
|
}
|
|
74
89
|
};
|
|
75
90
|
var getPaymentTypes = () => {
|
|
@@ -82,11 +97,26 @@ var getPaymentTypes = () => {
|
|
|
82
97
|
}
|
|
83
98
|
return arr;
|
|
84
99
|
};
|
|
100
|
+
var getTripartitePaymentKeys = () => {
|
|
101
|
+
let arr = [];
|
|
102
|
+
for (let key in paymentServices) {
|
|
103
|
+
if (paymentServices[key].isTripartitePayment) {
|
|
104
|
+
arr.push(key);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return arr;
|
|
108
|
+
};
|
|
85
109
|
var paymentTypes = getPaymentTypes();
|
|
110
|
+
var tripartitePaymentKeys = getTripartitePaymentKeys();
|
|
86
111
|
var paymentKeys = Object.keys(paymentServices);
|
|
112
|
+
var isTripartitePayment = (service) => {
|
|
113
|
+
return tripartitePaymentKeys.includes(service);
|
|
114
|
+
};
|
|
87
115
|
// Annotate the CommonJS export names for ESM import in node:
|
|
88
116
|
0 && (module.exports = {
|
|
117
|
+
isTripartitePayment,
|
|
89
118
|
paymentKeys,
|
|
90
119
|
paymentServices,
|
|
91
|
-
paymentTypes
|
|
120
|
+
paymentTypes,
|
|
121
|
+
tripartitePaymentKeys
|
|
92
122
|
});
|
|
@@ -28,3 +28,11 @@ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
|
|
|
28
28
|
wallet_pass_usage_unit: any;
|
|
29
29
|
}[];
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @title: 获取是否walletPass和三方支付的组合支付
|
|
33
|
+
* @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
|
|
34
|
+
* @return: *
|
|
35
|
+
* @Author: shengjie.zuo
|
|
36
|
+
* @Date: 2024-08-30 10:06:17
|
|
37
|
+
*/
|
|
38
|
+
export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
|
|
@@ -21,10 +21,12 @@ var utils_exports = {};
|
|
|
21
21
|
__export(utils_exports, {
|
|
22
22
|
calcWalletPassListAmount: () => calcWalletPassListAmount,
|
|
23
23
|
formatWalletPassList2PreparePayments: () => formatWalletPassList2PreparePayments,
|
|
24
|
-
formatWalletPassParams: () => formatWalletPassParams
|
|
24
|
+
formatWalletPassParams: () => formatWalletPassParams,
|
|
25
|
+
getIsWalletPassAndTripartitePayment: () => getIsWalletPassAndTripartitePayment
|
|
25
26
|
});
|
|
26
27
|
module.exports = __toCommonJS(utils_exports);
|
|
27
28
|
var import_decimal = require("decimal.js");
|
|
29
|
+
var import_status = require("./status");
|
|
28
30
|
var calcWalletPassListAmount = (list) => {
|
|
29
31
|
return list.reduce((pre, cur) => pre.add(new import_decimal.Decimal(String(cur.available_max_amount || 0))), new import_decimal.Decimal("0")).toNumber();
|
|
30
32
|
};
|
|
@@ -54,9 +56,14 @@ var formatWalletPassParams = (payGroup) => {
|
|
|
54
56
|
payments
|
|
55
57
|
};
|
|
56
58
|
};
|
|
59
|
+
var getIsWalletPassAndTripartitePayment = (payGroup) => {
|
|
60
|
+
var _a, _b, _c;
|
|
61
|
+
return ((_b = (_a = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a.cards) == null ? void 0 : _b.length) && (0, import_status.isTripartitePayment)((_c = payGroup == null ? void 0 : payGroup.otherPayment) == null ? void 0 : _c.service);
|
|
62
|
+
};
|
|
57
63
|
// Annotate the CommonJS export names for ESM import in node:
|
|
58
64
|
0 && (module.exports = {
|
|
59
65
|
calcWalletPassListAmount,
|
|
60
66
|
formatWalletPassList2PreparePayments,
|
|
61
|
-
formatWalletPassParams
|
|
67
|
+
formatWalletPassParams,
|
|
68
|
+
getIsWalletPassAndTripartitePayment
|
|
62
69
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,7 +69,7 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
72
73
|
state: FormState;
|
|
73
74
|
} & {
|
|
74
75
|
dispatch: (params: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.126",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
|
-
"@pisell/utils": "1.0.
|
|
63
|
-
"@pisell/materials": "3.0.39",
|
|
62
|
+
"@pisell/utils": "1.0.29",
|
|
64
63
|
"@pisell/icon": "0.0.11",
|
|
65
|
-
"@pisell/
|
|
64
|
+
"@pisell/materials": "3.0.41",
|
|
65
|
+
"@pisell/date-picker": "1.0.98"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|