@pisell/private-materials 3.4.86 → 3.4.88
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/meta.js +2 -2
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -1
- package/es/components/booking/hooks/useClearCart.js +39 -9
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/index.less +4 -2
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/locales.d.ts +20 -0
- package/es/components/booking/locales.js +20 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentList/serve.js +2 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/serve.js +2 -2
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Cart/index.less +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/es/components/shoppingCart/hooks/useClearCart.js +41 -11
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.js +11 -1
- package/es/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletPassGallery/components/recharge/index.js +13 -5
- package/es/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/es/plus/walletPassGallery/locales.d.ts +10 -0
- package/es/plus/walletPassGallery/locales.js +26 -5
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -1
- package/lib/components/booking/hooks/useClearCart.js +28 -6
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/index.less +4 -2
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/locales.d.ts +20 -0
- package/lib/components/booking/locales.js +20 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentList/serve.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/serve.js +1 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Cart/index.less +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/lib/components/shoppingCart/hooks/useClearCart.js +42 -11
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.js +5 -2
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -5
- package/lib/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/lib/plus/walletPassGallery/locales.d.ts +10 -0
- package/lib/plus/walletPassGallery/locales.js +20 -5
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lowcode/eco-cup-list/meta.ts +20 -56
- package/lowcode/eco-customer-list/meta.ts +20 -56
- package/package.json +4 -4
|
@@ -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: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "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, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "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<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "success" | "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<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -176,7 +176,7 @@ export declare const updateCustom: (payload: {
|
|
|
176
176
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
177
177
|
type: EActionTypes;
|
|
178
178
|
payload: {
|
|
179
|
-
status: "
|
|
179
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
182
|
/**
|
|
@@ -197,7 +197,7 @@ export declare const updateComponent: (component: string, render?: boolean) => {
|
|
|
197
197
|
} | {
|
|
198
198
|
readonly type: "step";
|
|
199
199
|
readonly render: boolean;
|
|
200
|
-
component?: undefined;
|
|
200
|
+
readonly component?: undefined;
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
203
|
/**
|
|
@@ -297,10 +297,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
name?: string | undefined;
|
|
298
298
|
symbol?: string | undefined;
|
|
299
299
|
amount?: string | number | undefined;
|
|
300
|
-
mode?: "
|
|
300
|
+
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
|
301
301
|
order_id?: string | number | undefined;
|
|
302
|
-
eftpos?: "
|
|
303
|
-
action?: "
|
|
302
|
+
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
|
|
303
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
304
304
|
key?: number | undefined;
|
|
305
305
|
step?: number | undefined;
|
|
306
306
|
title?: string | undefined;
|
|
@@ -310,7 +310,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
310
310
|
net?: boolean | undefined;
|
|
311
311
|
component?: string | undefined;
|
|
312
312
|
form?: string | undefined;
|
|
313
|
-
status?: "
|
|
313
|
+
status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
314
314
|
warn?: string | undefined;
|
|
315
315
|
steps?: {
|
|
316
316
|
/** 用于重置当前步骤 */
|
|
@@ -55,7 +55,7 @@ var filterPaymentList = (list, platform = "h5", isApp, amount) => {
|
|
|
55
55
|
if (platform === "h5") {
|
|
56
56
|
arr = arr.concat(["globepay.wechat.qrcode", "globepay.alipay.qrcode"]);
|
|
57
57
|
}
|
|
58
|
-
if (!(0, import_utils2.isIOS)()) {
|
|
58
|
+
if (!(0, import_utils2.isIOS)() && !(0, import_utils2.isSafari)()) {
|
|
59
59
|
arr = arr.concat(["mw.apple"]);
|
|
60
60
|
}
|
|
61
61
|
if ((0, import_utils2.isIOS)() && isApp) {
|
|
@@ -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:
|
|
34
|
-
state: FormState;
|
|
35
|
-
} & {
|
|
36
|
-
dispatch: (params: {
|
|
37
|
-
type: string;
|
|
38
|
-
payload: any;
|
|
39
|
-
}) => void;
|
|
40
|
-
}>;
|
|
32
|
+
export declare const Provider: any, Context: any;
|
|
@@ -42,7 +42,7 @@ var getPaymentList = async (values) => {
|
|
|
42
42
|
if (!(0, import_utils2.isWx)()) {
|
|
43
43
|
arr = arr.concat(["globepay.wechat.jsapi", "superpay.wechat.h5"]);
|
|
44
44
|
}
|
|
45
|
-
if (!(0, import_utils2.isIOS)()) {
|
|
45
|
+
if (!(0, import_utils2.isIOS)() && !(0, import_utils2.isSafari)()) {
|
|
46
46
|
arr = arr.concat(["mw.apple"]);
|
|
47
47
|
}
|
|
48
48
|
paymentList = paymentList.filter((d) => !arr.includes(d.service));
|
|
@@ -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:
|
|
73
|
-
state: FormState;
|
|
74
|
-
} & {
|
|
75
|
-
dispatch: (params: {
|
|
76
|
-
type: string;
|
|
77
|
-
payload: any;
|
|
78
|
-
}) => void;
|
|
79
|
-
}>;
|
|
71
|
+
export declare const Provider: any, Context: any;
|
|
@@ -38,6 +38,7 @@ var import_materials = require("@pisell/materials");
|
|
|
38
38
|
var import_useContext = require("./useContext");
|
|
39
39
|
var import_utils = require("@pisell/utils");
|
|
40
40
|
var useClearCart = (key) => {
|
|
41
|
+
const [open, setOpen] = (0, import_react.useState)(false);
|
|
41
42
|
const { state, onChange } = (0, import_useContext.useContext)();
|
|
42
43
|
const { isProductList, disabledEdit, holders, isHideClearCart } = state;
|
|
43
44
|
const handleClear = () => {
|
|
@@ -47,20 +48,50 @@ var useClearCart = (key) => {
|
|
|
47
48
|
} else {
|
|
48
49
|
const ids = products == null ? void 0 : products.map((item) => item == null ? void 0 : item._id);
|
|
49
50
|
onChange(ids, "delete_holders", key);
|
|
51
|
+
setOpen(false);
|
|
50
52
|
return;
|
|
51
53
|
products = products.filter((item) => (item == null ? void 0 : item.holder_id) !== key);
|
|
52
54
|
}
|
|
53
55
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
const handleOpenModal = (0, import_react.useCallback)(() => {
|
|
57
|
+
setOpen(true);
|
|
58
|
+
}, []);
|
|
59
|
+
const handleCancel = (0, import_react.useCallback)(() => {
|
|
60
|
+
setOpen(false);
|
|
61
|
+
}, []);
|
|
62
|
+
return (0, import_react.useMemo)(() => {
|
|
63
|
+
const showClearBtn = !disabledEdit && (holders == null ? void 0 : holders.length) > 0 && !isHideClearCart;
|
|
64
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showClearBtn ? /* @__PURE__ */ import_react.default.createElement(
|
|
65
|
+
"span",
|
|
66
|
+
{
|
|
67
|
+
className: (0, import_classnames.default)("pisell-lowcode__shopping-cart-clear-btn", {
|
|
68
|
+
"pisell-lowcode__shopping-cart-clear-btn-empty": isProductList
|
|
69
|
+
}),
|
|
70
|
+
onClick: handleOpenModal
|
|
71
|
+
},
|
|
72
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-trash-01" }),
|
|
73
|
+
/* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.booking.info.text.clear-cart"))
|
|
74
|
+
) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
75
|
+
import_materials.PisellModal,
|
|
76
|
+
{
|
|
77
|
+
open,
|
|
78
|
+
title: import_utils.locales.getText(
|
|
79
|
+
"pisell2.booking.info.text.clear-cart-modal.title"
|
|
80
|
+
),
|
|
81
|
+
onOk: handleClear,
|
|
82
|
+
onCancel: handleCancel,
|
|
83
|
+
okText: import_utils.locales.getText(
|
|
84
|
+
"pisell2.booking.info.text.clear-cart-modal.confirm"
|
|
85
|
+
),
|
|
86
|
+
cancelText: import_utils.locales.getText(
|
|
87
|
+
"pisell2.booking.info.text.clear-cart-modal.cancel"
|
|
88
|
+
),
|
|
89
|
+
destroyOnClose: true
|
|
90
|
+
},
|
|
91
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { margin: "24px 0" } }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText(
|
|
92
|
+
"pisell2.booking.info.text.clear-cart-modal.content"
|
|
93
|
+
)))
|
|
94
|
+
));
|
|
95
|
+
}, [open, disabledEdit, holders == null ? void 0 : holders.length, isHideClearCart, isProductList]);
|
|
65
96
|
};
|
|
66
97
|
var useClearCart_default = useClearCart;
|
|
@@ -120,7 +120,9 @@ var BookingFormsPreview = (props) => {
|
|
|
120
120
|
);
|
|
121
121
|
return matchedRecord;
|
|
122
122
|
}, [activeTable, relationRecords]);
|
|
123
|
-
if (tableItems.length === 0)
|
|
123
|
+
if (tableItems.length === 0) {
|
|
124
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { minWidth: 88, textAlign: "center" } }, "-");
|
|
125
|
+
}
|
|
124
126
|
const tooltipContent = /* @__PURE__ */ import_react.default.createElement(
|
|
125
127
|
"div",
|
|
126
128
|
{
|
|
@@ -156,7 +158,8 @@ var BookingFormsPreview = (props) => {
|
|
|
156
158
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
157
159
|
"div",
|
|
158
160
|
{
|
|
159
|
-
onClick: (event) => event.stopPropagation()
|
|
161
|
+
onClick: (event) => event.stopPropagation(),
|
|
162
|
+
style: { minWidth: 88 }
|
|
160
163
|
},
|
|
161
164
|
showAll ? /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", flexDirection: "column" } }, displayItems.map((item, idx) => /* @__PURE__ */ import_react.default.createElement(
|
|
162
165
|
"div",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const getBookingStatusMap: () => Record<string, string>;
|
|
2
3
|
export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
|
|
3
4
|
export declare const getBookingPlatformMap: () => Record<string, string>;
|
|
@@ -19,7 +20,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
19
20
|
}[];
|
|
20
21
|
minInputNumberProps?: undefined;
|
|
21
22
|
maxInputNumberProps?: undefined;
|
|
22
|
-
component?: undefined;
|
|
23
|
+
readonly component?: undefined;
|
|
23
24
|
isSearchServer?: undefined;
|
|
24
25
|
showSearch?: undefined;
|
|
25
26
|
showTime?: undefined;
|
|
@@ -45,7 +46,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
45
46
|
mode?: undefined;
|
|
46
47
|
maxTagCount?: undefined;
|
|
47
48
|
options?: undefined;
|
|
48
|
-
component?: undefined;
|
|
49
|
+
readonly component?: undefined;
|
|
49
50
|
isSearchServer?: undefined;
|
|
50
51
|
showSearch?: undefined;
|
|
51
52
|
showTime?: undefined;
|
|
@@ -90,7 +91,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
90
91
|
options: () => Promise<any>;
|
|
91
92
|
minInputNumberProps?: undefined;
|
|
92
93
|
maxInputNumberProps?: undefined;
|
|
93
|
-
component?: undefined;
|
|
94
|
+
readonly component?: undefined;
|
|
94
95
|
isSearchServer?: undefined;
|
|
95
96
|
showSearch?: undefined;
|
|
96
97
|
showTime?: undefined;
|
|
@@ -110,7 +111,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
110
111
|
options?: undefined;
|
|
111
112
|
minInputNumberProps?: undefined;
|
|
112
113
|
maxInputNumberProps?: undefined;
|
|
113
|
-
component?: undefined;
|
|
114
|
+
readonly component?: undefined;
|
|
114
115
|
isSearchServer?: undefined;
|
|
115
116
|
showSearch?: undefined;
|
|
116
117
|
showTime?: undefined;
|
|
@@ -132,7 +133,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
132
133
|
maxTagCount?: undefined;
|
|
133
134
|
minInputNumberProps?: undefined;
|
|
134
135
|
maxInputNumberProps?: undefined;
|
|
135
|
-
component?: undefined;
|
|
136
|
+
readonly component?: undefined;
|
|
136
137
|
showTime?: undefined;
|
|
137
138
|
};
|
|
138
139
|
sort?: undefined;
|
|
@@ -151,7 +152,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
151
152
|
options?: undefined;
|
|
152
153
|
minInputNumberProps?: undefined;
|
|
153
154
|
maxInputNumberProps?: undefined;
|
|
154
|
-
component?: undefined;
|
|
155
|
+
readonly component?: undefined;
|
|
155
156
|
isSearchServer?: undefined;
|
|
156
157
|
showSearch?: undefined;
|
|
157
158
|
};
|
|
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
|
|
|
3
3
|
value?: string;
|
|
4
4
|
onChange?: (val: string) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const getBaseTime: (size: number) =>
|
|
6
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
|
|
7
7
|
declare const ImageUpload: React.FC<ImageUploadProps>;
|
|
8
8
|
export default ImageUpload;
|
|
@@ -128,23 +128,25 @@ var Recharge = ({
|
|
|
128
128
|
{
|
|
129
129
|
className: `pisell-card-item ${item.id === (chargeItem == null ? void 0 : chargeItem.id) ? "pisell-card-selected" : ""}`
|
|
130
130
|
},
|
|
131
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "card-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "card-content-left" }, /* @__PURE__ */ import_react.default.createElement("p", { className: "pisell-card-amount-item-name" }, item.name), /* @__PURE__ */ import_react.default.createElement(
|
|
131
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "card-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "card-content-left" }, /* @__PURE__ */ import_react.default.createElement("p", { className: "pisell-card-amount-item-name" }, item.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-arrival" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-card-amount-item-label" }, import_utils.locales.getText(
|
|
132
|
+
"wallet-pass-gallery.rechargeArrivalAmount"
|
|
133
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
132
134
|
import_materials.PisellText.Amount,
|
|
133
135
|
{
|
|
134
136
|
showCurrencySymbol: true,
|
|
135
|
-
className: "
|
|
137
|
+
className: "highlight-amount",
|
|
136
138
|
useThousandsSeparator: true,
|
|
137
139
|
value: item.gift_price
|
|
138
140
|
}
|
|
139
|
-
)), /* @__PURE__ */ import_react.default.createElement(
|
|
141
|
+
))), /* @__PURE__ */ import_react.default.createElement("div", { className: "card-content-right" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pay-label" }, import_utils.locales.getText("wallet-pass-gallery.rechargePayAmount")), /* @__PURE__ */ import_react.default.createElement(
|
|
140
142
|
import_materials.PisellText.Amount,
|
|
141
143
|
{
|
|
142
144
|
showCurrencySymbol: true,
|
|
143
|
-
className: "
|
|
145
|
+
className: "pay-amount",
|
|
144
146
|
useThousandsSeparator: true,
|
|
145
147
|
value: item.price
|
|
146
148
|
}
|
|
147
|
-
))
|
|
149
|
+
)))
|
|
148
150
|
)
|
|
149
151
|
))))
|
|
150
152
|
);
|
|
@@ -7,10 +7,79 @@
|
|
|
7
7
|
|
|
8
8
|
&-card-item {
|
|
9
9
|
cursor: pointer;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pisell-card-item {
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
border: 1px solid transparent;
|
|
16
|
+
transition: all 0.3s;
|
|
17
|
+
background: #fff;
|
|
18
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
19
|
+
min-width: 0;
|
|
10
20
|
}
|
|
11
21
|
|
|
12
22
|
.pisell-card-selected {
|
|
13
|
-
border:
|
|
23
|
+
border-color: var(--theme-color, #7f56d9);
|
|
14
24
|
background: var(--Primary-50, #f9f5ff);
|
|
25
|
+
box-shadow: 0 4px 12px rgba(127, 86, 217, 0.1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.card-content {
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: 16px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.card-content-left {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 8px;
|
|
39
|
+
flex: 1;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pisell-card-amount-item-name {
|
|
44
|
+
font-size: 16px;
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
color: #333;
|
|
47
|
+
margin: 0;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pisell-card-amount-item-arrival {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: 4px;
|
|
57
|
+
font-size: 13px;
|
|
58
|
+
color: #666;
|
|
59
|
+
flex-wrap: wrap;
|
|
60
|
+
|
|
61
|
+
.highlight-amount {
|
|
62
|
+
color: #ff4d4f;
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.card-content-right {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
align-items: flex-end;
|
|
71
|
+
margin-top: 4px;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pay-label {
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
color: #666;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.pay-amount {
|
|
81
|
+
font-size: 20px;
|
|
82
|
+
font-weight: bold;
|
|
83
|
+
color: var(--theme-color, #7f56d9);
|
|
15
84
|
}
|
|
16
85
|
}
|
|
@@ -92,6 +92,8 @@ declare const _default: {
|
|
|
92
92
|
'page.wallet.tempHolderSelector.confirm': string;
|
|
93
93
|
'page.wallet.notValidDate': string;
|
|
94
94
|
'page.wallet.includedDate': string;
|
|
95
|
+
'wallet-pass-gallery.rechargeArrivalAmount': string;
|
|
96
|
+
'wallet-pass-gallery.rechargePayAmount': string;
|
|
95
97
|
};
|
|
96
98
|
'zh-CN': {
|
|
97
99
|
'wallet-pass-gallery.rechargeableCard': string;
|
|
@@ -186,6 +188,8 @@ declare const _default: {
|
|
|
186
188
|
'page.wallet.tempHolderSelector.confirm': string;
|
|
187
189
|
'page.wallet.notValidDate': string;
|
|
188
190
|
'page.wallet.includedDate': string;
|
|
191
|
+
'wallet-pass-gallery.rechargeArrivalAmount': string;
|
|
192
|
+
'wallet-pass-gallery.rechargePayAmount': string;
|
|
189
193
|
};
|
|
190
194
|
'zh-HK': {
|
|
191
195
|
'wallet-pass-gallery.rechargeableCard': string;
|
|
@@ -280,6 +284,8 @@ declare const _default: {
|
|
|
280
284
|
'page.wallet.tempHolderSelector.confirm': string;
|
|
281
285
|
'page.wallet.notValidDate': string;
|
|
282
286
|
'page.wallet.includedDate': string;
|
|
287
|
+
'wallet-pass-gallery.rechargeArrivalAmount': string;
|
|
288
|
+
'wallet-pass-gallery.rechargePayAmount': string;
|
|
283
289
|
};
|
|
284
290
|
ja: {
|
|
285
291
|
'wallet-pass-gallery.rechargeableCard': string;
|
|
@@ -374,6 +380,8 @@ declare const _default: {
|
|
|
374
380
|
'page.wallet.tempHolderSelector.confirm': string;
|
|
375
381
|
'page.wallet.notValidDate': string;
|
|
376
382
|
'page.wallet.includedDate': string;
|
|
383
|
+
'wallet-pass-gallery.rechargeArrivalAmount': string;
|
|
384
|
+
'wallet-pass-gallery.rechargePayAmount': string;
|
|
377
385
|
};
|
|
378
386
|
pt: {
|
|
379
387
|
'wallet-pass-gallery.rechargeableCard': string;
|
|
@@ -468,6 +476,8 @@ declare const _default: {
|
|
|
468
476
|
'page.wallet.tempHolderSelector.confirm': string;
|
|
469
477
|
'page.wallet.notValidDate': string;
|
|
470
478
|
'page.wallet.includedDate': string;
|
|
479
|
+
'wallet-pass-gallery.rechargeArrivalAmount': string;
|
|
480
|
+
'wallet-pass-gallery.rechargePayAmount': string;
|
|
471
481
|
};
|
|
472
482
|
};
|
|
473
483
|
export default _default;
|
|
@@ -124,8 +124,11 @@ var locales_default = {
|
|
|
124
124
|
// temp
|
|
125
125
|
"page.wallet.notValidDate": "Not valid on",
|
|
126
126
|
// 不可用日期
|
|
127
|
-
"page.wallet.includedDate": "Included dates"
|
|
127
|
+
"page.wallet.includedDate": "Included dates",
|
|
128
128
|
// 包含日期
|
|
129
|
+
// recharge
|
|
130
|
+
"wallet-pass-gallery.rechargeArrivalAmount": "You get",
|
|
131
|
+
"wallet-pass-gallery.rechargePayAmount": "Pay"
|
|
129
132
|
},
|
|
130
133
|
"zh-CN": {
|
|
131
134
|
"wallet-pass-gallery.rechargeableCard": "充值卡",
|
|
@@ -222,8 +225,11 @@ var locales_default = {
|
|
|
222
225
|
// temp
|
|
223
226
|
"page.wallet.notValidDate": "不可用日期",
|
|
224
227
|
// 不可用日期
|
|
225
|
-
"page.wallet.includedDate": "包含日期"
|
|
228
|
+
"page.wallet.includedDate": "包含日期",
|
|
226
229
|
// 包含日期
|
|
230
|
+
// recharge
|
|
231
|
+
"wallet-pass-gallery.rechargeArrivalAmount": "到账金额",
|
|
232
|
+
"wallet-pass-gallery.rechargePayAmount": "支付金额"
|
|
227
233
|
},
|
|
228
234
|
"zh-HK": {
|
|
229
235
|
"wallet-pass-gallery.rechargeableCard": "充值卡",
|
|
@@ -320,8 +326,11 @@ var locales_default = {
|
|
|
320
326
|
// temp
|
|
321
327
|
"page.wallet.notValidDate": "不可用日期",
|
|
322
328
|
// 不可用日期
|
|
323
|
-
"page.wallet.includedDate": "包含日期"
|
|
329
|
+
"page.wallet.includedDate": "包含日期",
|
|
324
330
|
// 包含日期
|
|
331
|
+
// recharge
|
|
332
|
+
"wallet-pass-gallery.rechargeArrivalAmount": "到帳金額",
|
|
333
|
+
"wallet-pass-gallery.rechargePayAmount": "支付金額"
|
|
325
334
|
},
|
|
326
335
|
ja: {
|
|
327
336
|
"wallet-pass-gallery.rechargeableCard": "チャージ可能なカード",
|
|
@@ -417,7 +426,10 @@ var locales_default = {
|
|
|
417
426
|
"page.wallet.tempHolderSelector.create": "新規作成",
|
|
418
427
|
"page.wallet.tempHolderSelector.confirm": "確認",
|
|
419
428
|
"page.wallet.notValidDate": "利用不可日",
|
|
420
|
-
"page.wallet.includedDate": "含まれる日付"
|
|
429
|
+
"page.wallet.includedDate": "含まれる日付",
|
|
430
|
+
// recharge
|
|
431
|
+
"wallet-pass-gallery.rechargeArrivalAmount": "チャージ後残高",
|
|
432
|
+
"wallet-pass-gallery.rechargePayAmount": "支払金額"
|
|
421
433
|
},
|
|
422
434
|
pt: {
|
|
423
435
|
"wallet-pass-gallery.rechargeableCard": "Cartão recarregável",
|
|
@@ -513,6 +525,9 @@ var locales_default = {
|
|
|
513
525
|
"page.wallet.tempHolderSelector.create": "Criar Novo",
|
|
514
526
|
"page.wallet.tempHolderSelector.confirm": "Confirmar",
|
|
515
527
|
"page.wallet.notValidDate": "Não válido em",
|
|
516
|
-
"page.wallet.includedDate": "Datas incluídas"
|
|
528
|
+
"page.wallet.includedDate": "Datas incluídas",
|
|
529
|
+
// recharge
|
|
530
|
+
"wallet-pass-gallery.rechargeArrivalAmount": "Recebe",
|
|
531
|
+
"wallet-pass-gallery.rechargePayAmount": "Paga"
|
|
517
532
|
}
|
|
518
533
|
};
|
|
@@ -3,7 +3,7 @@ import { ItemLayout, ItemProps, PresetConfig, SelectorProps, SelectorVariant } f
|
|
|
3
3
|
import './selector.less';
|
|
4
4
|
export declare const SelectorContext: React.Context<{
|
|
5
5
|
disabled?: boolean | undefined;
|
|
6
|
-
mode?: "
|
|
6
|
+
mode?: "single" | "multiple" | undefined;
|
|
7
7
|
itemLayout?: ItemLayout | undefined;
|
|
8
8
|
valueType?: "object" | "primitive" | undefined;
|
|
9
9
|
variant?: SelectorVariant | undefined;
|