@pisell/private-materials 6.4.51 → 6.4.53
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 +12 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/footer/amount.js +3 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/checkout/components/CashPaymentModule/index.js +9 -9
- package/es/components/checkout/components/PaymentOptionsModule/index.js +4 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +4 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +35 -13
- package/es/components/eftposPay/payo/config.js +10 -10
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +20 -10
- package/es/pro/priceKeyboard/components/cashKeyboard/index.less +1 -2
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/checkout/components/CashPaymentModule/index.js +0 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +3 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +4 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +43 -11
- package/lib/components/eftposPay/payo/config.js +9 -9
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +61 -27
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +1 -2
- package/package.json +12 -12
|
@@ -1 +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,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
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
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -105,4 +106,11 @@ export declare const walkInData: {
|
|
|
105
106
|
id: number;
|
|
106
107
|
nickname: string;
|
|
107
108
|
};
|
|
108
|
-
export declare const Provider: any, Context:
|
|
109
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
110
|
+
state: FormState;
|
|
111
|
+
} & {
|
|
112
|
+
dispatch: (params: {
|
|
113
|
+
type: string;
|
|
114
|
+
payload: any;
|
|
115
|
+
}) => void;
|
|
116
|
+
}>;
|
|
@@ -1 +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 +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
|
+
}>;
|
|
@@ -122,7 +122,6 @@ function CashPaymentModule({
|
|
|
122
122
|
} else {
|
|
123
123
|
const cleanValue = finalValue.replace(/[$\s]/g, "");
|
|
124
124
|
const numValue = parseFloat(cleanValue);
|
|
125
|
-
debugger;
|
|
126
125
|
const balanceDue = parseFloat((orderInfo == null ? void 0 : orderInfo.isDeposit) ? balanceDueTotalAmount || "0" : balanceDueAmount);
|
|
127
126
|
const shouldApplyRounding = Math.abs(numValue - balanceDue) < 0.01;
|
|
128
127
|
let finalAmount = numValue;
|
|
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
|
|
|
17
17
|
cardData: any;
|
|
18
18
|
handleSelectWallet: (value: number[]) => void;
|
|
19
19
|
selectedWalletIds: any[];
|
|
20
|
-
expiredWalletIds: any
|
|
20
|
+
expiredWalletIds: any;
|
|
21
21
|
expiredWalletData: any;
|
|
22
22
|
disabledWalletData: any[];
|
|
23
23
|
clearAllSelectedWallet: () => void;
|
|
@@ -242,7 +242,10 @@ var useWalletPass = (props) => {
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
setDisabledWalletData(isDisabledData);
|
|
245
|
-
|
|
245
|
+
let newValues = [...selectedWalletRef.current];
|
|
246
|
+
if (isAvailableData.length === 1) {
|
|
247
|
+
newValues = [...selectedWalletRef.current, ...isAvailableData];
|
|
248
|
+
}
|
|
246
249
|
setSearchIdentificationCodeList(cachedSearchResults);
|
|
247
250
|
setWalletSelect(newValues);
|
|
248
251
|
handleFetchUserIdentificationCodes(newValues.map((item) => item.id));
|
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
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<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -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/eftposPay/linkly/hooks/useTimeQuery.ts
|
|
@@ -24,15 +34,16 @@ __export(useTimeQuery_exports, {
|
|
|
24
34
|
module.exports = __toCommonJS(useTimeQuery_exports);
|
|
25
35
|
var import_react = require("react");
|
|
26
36
|
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
27
38
|
var import_store = require("../../store");
|
|
28
39
|
var import_hooks = require("../../hooks");
|
|
29
40
|
var import_const = require("../../const");
|
|
30
41
|
var import_const2 = require("../const");
|
|
31
|
-
var GlobalTimeout = 1e3 * 60;
|
|
42
|
+
var GlobalTimeout = 1e3 * 60 * 2;
|
|
32
43
|
var RequestTimeout = 1e3 * 5;
|
|
33
44
|
var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
34
45
|
const dispatch = (0, import_store.useDispatch)();
|
|
35
|
-
const { numRef, modeRef, deviceRef } = (0, import_hooks.useStoreRef)();
|
|
46
|
+
const { numRef, modeRef, deviceRef, orderIdRef } = (0, import_hooks.useStoreRef)();
|
|
36
47
|
const fail = (0, import_hooks.useFail)(0);
|
|
37
48
|
const failRef = (0, import_react.useRef)(fail);
|
|
38
49
|
const isPay = modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay;
|
|
@@ -80,7 +91,6 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
80
91
|
console.log("Success: 全局超时或不需要处理结果,终止查询");
|
|
81
92
|
return;
|
|
82
93
|
}
|
|
83
|
-
_log("Success" /* Success */, result);
|
|
84
94
|
isQueryFinishedRef.current = true;
|
|
85
95
|
const data = (result == null ? void 0 : result.data) || {};
|
|
86
96
|
if (data.status == 1) {
|
|
@@ -95,8 +105,11 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
95
105
|
}
|
|
96
106
|
if ((data == null ? void 0 : data.status) == 0 && (data == null ? void 0 : data.signature_flag) != 1) {
|
|
97
107
|
console.log("交易状态为0需要继续查询");
|
|
108
|
+
_log("Querying" /* Querying */, result);
|
|
98
109
|
isQueryFinishedRef.current = false;
|
|
99
|
-
|
|
110
|
+
setTimeout(() => {
|
|
111
|
+
_resultQuery();
|
|
112
|
+
}, 1500);
|
|
100
113
|
return;
|
|
101
114
|
}
|
|
102
115
|
if (data.status < 0) {
|
|
@@ -132,7 +145,18 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
132
145
|
_log("AbortError" /* AbortError */);
|
|
133
146
|
console.log("Error: 请求被取消,将继续查询");
|
|
134
147
|
isQueryFinishedRef.current = false;
|
|
135
|
-
|
|
148
|
+
setTimeout(() => {
|
|
149
|
+
_resultQuery();
|
|
150
|
+
}, 1500);
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (!(error == null ? void 0 : error.code) || `${error.code}` === import_const.PayStatus.Timeout) {
|
|
154
|
+
_log("NetworkError" /* NetworkError */);
|
|
155
|
+
console.log("Error: 网关类报错,将继续查询");
|
|
156
|
+
isQueryFinishedRef.current = false;
|
|
157
|
+
setTimeout(() => {
|
|
158
|
+
_resultQuery();
|
|
159
|
+
}, 1500);
|
|
136
160
|
return;
|
|
137
161
|
}
|
|
138
162
|
_log("Error" /* Error */, error);
|
|
@@ -197,13 +221,21 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
197
221
|
session_id: numRef.current
|
|
198
222
|
};
|
|
199
223
|
const content = [
|
|
200
|
-
{
|
|
224
|
+
{
|
|
225
|
+
key: "description",
|
|
226
|
+
value: JSON.stringify({
|
|
227
|
+
queryId: queryIdRef.current,
|
|
228
|
+
orderId: orderIdRef.current,
|
|
229
|
+
type,
|
|
230
|
+
date: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")
|
|
231
|
+
})
|
|
232
|
+
},
|
|
201
233
|
{ key: "params", value: JSON.stringify(params) }
|
|
202
234
|
];
|
|
203
|
-
if (type === "
|
|
204
|
-
content.push({ key: "response", value: JSON.stringify(res) });
|
|
205
|
-
} else if (type === "Error" /* Error */) {
|
|
235
|
+
if (type === "Error" /* Error */) {
|
|
206
236
|
content.push({ key: "error", value: JSON.stringify(res) });
|
|
237
|
+
} else {
|
|
238
|
+
content.push({ key: "response", value: JSON.stringify(res) });
|
|
207
239
|
}
|
|
208
240
|
(0, import_utils.sendWarningLog)({
|
|
209
241
|
title: `Linkly-${isPay ? "Pay" : "Refund"}-交易结果轮询`,
|
|
@@ -212,8 +244,6 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
212
244
|
};
|
|
213
245
|
const run = () => {
|
|
214
246
|
reset();
|
|
215
|
-
console.log("开始查询linkly结果---->>>>>>>");
|
|
216
|
-
_log("Start" /* Start */);
|
|
217
247
|
globalTimeoutIdRef.current = setTimeout(() => {
|
|
218
248
|
var _a;
|
|
219
249
|
console.log("全局超时,终止所有重试");
|
|
@@ -224,6 +254,8 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
224
254
|
startTimeRef.current = Date.now();
|
|
225
255
|
isQueryFinishedRef.current = false;
|
|
226
256
|
queryIdRef.current = (0, import_utils.getUniqueId)();
|
|
257
|
+
console.log("开始查询linkly结果---->>>>>>>");
|
|
258
|
+
_log("Start" /* Start */);
|
|
227
259
|
return _resultQuery();
|
|
228
260
|
};
|
|
229
261
|
return { run, stop: reset };
|
|
@@ -148,15 +148,15 @@ var POS = ({
|
|
|
148
148
|
const resultPromise = modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay ? api.pay(
|
|
149
149
|
{
|
|
150
150
|
...(custom == null ? void 0 : custom.platform) ? {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
151
|
+
operator_id: custom.operator_id,
|
|
152
|
+
operator_type: custom.operator_type,
|
|
153
|
+
platform: custom.platform,
|
|
154
|
+
custom_payment_id: custom.custom_payment_id,
|
|
155
|
+
service_charge: {
|
|
156
|
+
amount: payRef.current.surMoney,
|
|
157
|
+
percentage: payRef.current.surPercentRate
|
|
158
158
|
},
|
|
159
|
-
|
|
159
|
+
original_amount: payRef.current.amount
|
|
160
160
|
} : {},
|
|
161
161
|
order_id: orderIdRef.current,
|
|
162
162
|
amount: payRef.current.total,
|
|
@@ -215,7 +215,7 @@ var POS = ({
|
|
|
215
215
|
if (unloadRef.current || !netRef.current) {
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
|
-
if (err
|
|
218
|
+
if (!(err == null ? void 0 : err.code) || `${err.code}` === import_const.PayStatus.Timeout) {
|
|
219
219
|
checkApi();
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
@@ -297,8 +297,8 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
301
|
-
action?: "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -28,4 +29,11 @@ export interface PayGroup {
|
|
|
28
29
|
pay_number?: string;
|
|
29
30
|
_order: any;
|
|
30
31
|
}
|
|
31
|
-
export declare const Provider: any, Context:
|
|
32
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
33
|
+
state: FormState;
|
|
34
|
+
} & {
|
|
35
|
+
dispatch: (params: {
|
|
36
|
+
type: string;
|
|
37
|
+
payload: any;
|
|
38
|
+
}) => void;
|
|
39
|
+
}>;
|
|
@@ -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,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
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
|
+
}>;
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
addWalletCard: any;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
walletDetailState: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
setup?: 'menu' | 'list' | 'detail' | string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
7
|
+
state: RechargeState;
|
|
8
|
+
} & {
|
|
9
|
+
dispatch: (params: {
|
|
10
|
+
type: string;
|
|
11
|
+
payload: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
selectedGiftOptionId: string | null;
|
|
4
|
+
cardList: Array<{
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
price: number;
|
|
8
|
+
}>;
|
|
9
|
+
selectedItem: {
|
|
10
|
+
id?: string;
|
|
11
|
+
gift_price?: number;
|
|
12
|
+
price?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
variant_id?: string;
|
|
15
|
+
};
|
|
16
|
+
productId?: string;
|
|
17
|
+
detailId?: string;
|
|
18
|
+
total: string | number;
|
|
19
|
+
rechargeModalOpen: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
+
state: RechargeState;
|
|
23
|
+
} & {
|
|
24
|
+
dispatch: (params: {
|
|
25
|
+
type: string;
|
|
26
|
+
payload: any;
|
|
27
|
+
}) => void;
|
|
28
|
+
}>;
|
|
29
|
+
export {};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: 0;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { IWalletListItemProps } from './serve';
|
|
2
3
|
export interface WalletCardItemProps {
|
|
3
4
|
id: string;
|
|
@@ -26,4 +27,11 @@ export interface WalletListProps {
|
|
|
26
27
|
currentSearchListItemCode?: string;
|
|
27
28
|
[key: string]: any;
|
|
28
29
|
}
|
|
29
|
-
export declare const Provider: any, Context:
|
|
30
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
31
|
+
global_wallet: WalletListProps;
|
|
32
|
+
} & {
|
|
33
|
+
dispatch: (params: {
|
|
34
|
+
type: string;
|
|
35
|
+
payload: any;
|
|
36
|
+
}) => void;
|
|
37
|
+
}>;
|
|
@@ -33,6 +33,7 @@ __export(CashKeyboardIntact_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(CashKeyboardIntact_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
36
37
|
var import_ahooks = require("ahooks");
|
|
37
38
|
var import_lodash = require("lodash");
|
|
38
39
|
var import_utils = require("@pisell/utils");
|
|
@@ -234,17 +235,35 @@ var CashKeyboardIntact = (props) => {
|
|
|
234
235
|
},
|
|
235
236
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-label" }, mergedDisplayField.balanceDue.label),
|
|
236
237
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-value" }, /* @__PURE__ */ import_react.default.createElement(
|
|
237
|
-
|
|
238
|
+
import_antd.Tooltip,
|
|
238
239
|
{
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
title: (0, import_utils3.formatAmountWithOptions)(
|
|
241
|
+
originalValue || "",
|
|
242
|
+
amountSymbol,
|
|
243
|
+
{
|
|
244
|
+
precision: 2,
|
|
245
|
+
hideDecimalForWholeNumbers: false,
|
|
246
|
+
showCurrencySymbol: true
|
|
247
|
+
}
|
|
248
|
+
)
|
|
242
249
|
},
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
250
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
251
|
+
import_materials2.AutoResizeText,
|
|
252
|
+
{
|
|
253
|
+
minFontSizePx: 10,
|
|
254
|
+
maxFontSizePx: 18,
|
|
255
|
+
fontSizePrecisionPx: 0.5
|
|
256
|
+
},
|
|
257
|
+
(0, import_utils3.formatAmountWithOptions)(
|
|
258
|
+
originalValue || "",
|
|
259
|
+
amountSymbol,
|
|
260
|
+
{
|
|
261
|
+
precision: 2,
|
|
262
|
+
hideDecimalForWholeNumbers: false,
|
|
263
|
+
showCurrencySymbol: true
|
|
264
|
+
}
|
|
265
|
+
)
|
|
266
|
+
)
|
|
248
267
|
))
|
|
249
268
|
), ((_b = mergedDisplayField.cashReceived) == null ? void 0 : _b.visible) && /* @__PURE__ */ import_react.default.createElement(
|
|
250
269
|
"div",
|
|
@@ -281,19 +300,15 @@ var CashKeyboardIntact = (props) => {
|
|
|
281
300
|
},
|
|
282
301
|
mergedDisplayField.cashReceived.label
|
|
283
302
|
),
|
|
284
|
-
value: internalValue ?
|
|
285
|
-
|
|
303
|
+
value: internalValue ? (0, import_utils3.formatAmountWithOptions)(
|
|
304
|
+
internalValue || "",
|
|
305
|
+
amountSymbol,
|
|
286
306
|
{
|
|
287
|
-
minFontSizePx: 10,
|
|
288
|
-
maxFontSizePx: 14,
|
|
289
|
-
fontSizePrecisionPx: 0.5
|
|
290
|
-
},
|
|
291
|
-
(0, import_utils3.formatAmountWithOptions)(internalValue || "", amountSymbol, {
|
|
292
307
|
value: internalValue,
|
|
293
308
|
hideDecimalForWholeNumbers: false,
|
|
294
309
|
precision: 2,
|
|
295
310
|
showCurrencySymbol: true
|
|
296
|
-
}
|
|
311
|
+
}
|
|
297
312
|
) : "",
|
|
298
313
|
height: 30,
|
|
299
314
|
fontSize: 20,
|
|
@@ -315,18 +330,37 @@ var CashKeyboardIntact = (props) => {
|
|
|
315
330
|
},
|
|
316
331
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-label" }, mergedDisplayField.changeDue.label),
|
|
317
332
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-value" }, /* @__PURE__ */ import_react.default.createElement(
|
|
318
|
-
|
|
333
|
+
import_antd.Tooltip,
|
|
319
334
|
{
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
335
|
+
title: (0, import_utils3.formatAmountWithOptions)(
|
|
336
|
+
hiddenChangeDue ? 0 : changeDue,
|
|
337
|
+
amountSymbol,
|
|
338
|
+
{
|
|
339
|
+
value: hiddenChangeDue ? 0 : changeDue,
|
|
340
|
+
showCurrencySymbol: true,
|
|
341
|
+
hideDecimalForWholeNumbers: false,
|
|
342
|
+
precision: 2
|
|
343
|
+
}
|
|
344
|
+
)
|
|
323
345
|
},
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
346
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
347
|
+
import_materials2.AutoResizeText,
|
|
348
|
+
{
|
|
349
|
+
minFontSizePx: 10,
|
|
350
|
+
maxFontSizePx: 18,
|
|
351
|
+
fontSizePrecisionPx: 0.5
|
|
352
|
+
},
|
|
353
|
+
(0, import_utils3.formatAmountWithOptions)(
|
|
354
|
+
hiddenChangeDue ? 0 : changeDue,
|
|
355
|
+
amountSymbol,
|
|
356
|
+
{
|
|
357
|
+
value: hiddenChangeDue ? 0 : changeDue,
|
|
358
|
+
showCurrencySymbol: true,
|
|
359
|
+
hideDecimalForWholeNumbers: false,
|
|
360
|
+
precision: 2
|
|
361
|
+
}
|
|
362
|
+
)
|
|
363
|
+
)
|
|
330
364
|
))
|
|
331
365
|
)), /* @__PURE__ */ import_react.default.createElement(
|
|
332
366
|
import_shortcuts.default,
|
package/package.json
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.4.
|
|
4
|
-
"scripts": {
|
|
5
|
-
"dev": "father dev",
|
|
6
|
-
"build": "father build",
|
|
7
|
-
"lowcode:dev": "build-scripts start --config ./build.lowcode.js",
|
|
8
|
-
"lowcode:build": " build-scripts build --config ./build.lowcode.js"
|
|
9
|
-
},
|
|
3
|
+
"version": "6.4.53",
|
|
10
4
|
"main": "./lib/index.js",
|
|
11
5
|
"module": "./es/index.js",
|
|
12
6
|
"types": "./lib/index.d.ts",
|
|
@@ -56,10 +50,6 @@
|
|
|
56
50
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
57
51
|
"@dnd-kit/sortable": "^7.0.2",
|
|
58
52
|
"@dnd-kit/utilities": "^3.2.1",
|
|
59
|
-
"@pisell/date-picker": "workspace:*",
|
|
60
|
-
"@pisell/icon": "workspace:*",
|
|
61
|
-
"@pisell/materials": "workspace:*",
|
|
62
|
-
"@pisell/utils": "workspace:*",
|
|
63
53
|
"ahooks": "^3.7.6",
|
|
64
54
|
"antd": "^5.6.3",
|
|
65
55
|
"classnames": "^2.3.2",
|
|
@@ -68,7 +58,11 @@
|
|
|
68
58
|
"rc-virtual-list": "^3.11.3",
|
|
69
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
70
60
|
"react-resizable": "^3.0.5",
|
|
71
|
-
"styled-components": "^6.0.0-rc.3"
|
|
61
|
+
"styled-components": "^6.0.0-rc.3",
|
|
62
|
+
"@pisell/materials": "6.4.12",
|
|
63
|
+
"@pisell/utils": "3.0.2",
|
|
64
|
+
"@pisell/date-picker": "3.0.7",
|
|
65
|
+
"@pisell/icon": "0.0.11"
|
|
72
66
|
},
|
|
73
67
|
"peerDependencies": {
|
|
74
68
|
"react": "^18.0.0",
|
|
@@ -76,5 +70,11 @@
|
|
|
76
70
|
},
|
|
77
71
|
"componentConfig": {
|
|
78
72
|
"materialSchema": "https://unpkg.com/@pisell/materials@1.0.1/build/lowcode/assets-prod.json"
|
|
73
|
+
},
|
|
74
|
+
"scripts": {
|
|
75
|
+
"dev": "father dev",
|
|
76
|
+
"build": "father build",
|
|
77
|
+
"lowcode:dev": "build-scripts start --config ./build.lowcode.js",
|
|
78
|
+
"lowcode:build": " build-scripts build --config ./build.lowcode.js"
|
|
79
79
|
}
|
|
80
80
|
}
|