@pisell/private-materials 6.4.73 → 6.4.75
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.css +1 -1
- package/build/lowcode/render/default/view.js +5 -5
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +5 -5
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +62 -53
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- 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/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- 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/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentModal.js +178 -108
- package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/es/components/checkout/components/AdditionalModule/index.js +50 -12
- package/es/components/checkout/components/AmountSummary/index.js +9 -76
- package/es/components/checkout/components/AmountSummary/index.less +1 -1
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +3 -0
- package/es/components/checkout/locales.js +3 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- 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 +4 -4
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/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/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +112 -7
- package/es/components/ticketBooking/components/timeBar/index.less +59 -0
- package/es/components/ticketBooking/locales.d.ts +6 -0
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/utils/index.d.ts +1 -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/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/pro/pisellPaymentList/example.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +11 -7
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
- package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +15 -8
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- 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/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- 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/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentModal.js +73 -11
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +50 -11
- package/lib/components/checkout/components/AmountSummary/index.js +5 -46
- package/lib/components/checkout/components/AmountSummary/index.less +1 -1
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +3 -0
- package/lib/components/checkout/locales.js +3 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- 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 +4 -4
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/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/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
- package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
- package/lib/components/ticketBooking/locales.d.ts +6 -0
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/utils/index.d.ts +1 -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/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/pro/pisellPaymentList/example.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +9 -5
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/package.json +1 -1
|
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/checkout/components/PaymentOptionsModule/index.tsx
|
|
30
30
|
var PaymentOptionsModule_exports = {};
|
|
31
31
|
__export(PaymentOptionsModule_exports, {
|
|
32
|
+
SHOW_METHODS_CODE: () => SHOW_METHODS_CODE,
|
|
32
33
|
default: () => PaymentOptionsModule_default
|
|
33
34
|
});
|
|
34
35
|
module.exports = __toCommonJS(PaymentOptionsModule_exports);
|
|
@@ -125,6 +126,7 @@ function PaymentOptionsModule({
|
|
|
125
126
|
filteredPaymentMethods.map((method) => /* @__PURE__ */ import_react.default.createElement(
|
|
126
127
|
import_PaymentMethodItem.default,
|
|
127
128
|
{
|
|
129
|
+
size: (filteredPaymentMethods == null ? void 0 : filteredPaymentMethods.length) === 2 ? "large" : "default",
|
|
128
130
|
key: method.id,
|
|
129
131
|
method,
|
|
130
132
|
amountSymbol,
|
|
@@ -138,3 +140,7 @@ function PaymentOptionsModule({
|
|
|
138
140
|
);
|
|
139
141
|
}
|
|
140
142
|
var PaymentOptionsModule_default = PaymentOptionsModule;
|
|
143
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
144
|
+
0 && (module.exports = {
|
|
145
|
+
SHOW_METHODS_CODE
|
|
146
|
+
});
|
package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ interface ShowPaymentResultToastConfig {
|
|
|
23
23
|
onClose?: () => void;
|
|
24
24
|
/** 是否显示右上角关闭按钮 */
|
|
25
25
|
closable?: boolean;
|
|
26
|
+
/** 是否启用点击外部区域关闭弹窗(使用纯JS实现) */
|
|
27
|
+
clickOutsideToClose?: boolean;
|
|
28
|
+
/** 是否显示遮罩 */
|
|
29
|
+
mask?: boolean;
|
|
26
30
|
}
|
|
27
31
|
interface PaymentResultToastContextType {
|
|
28
32
|
/** 显示成功弹窗 */
|
|
@@ -205,6 +205,10 @@ var GlobalToastManager = class {
|
|
|
205
205
|
instance.offsetIndex = index;
|
|
206
206
|
const bottomPosition = this.calculateBottomPosition(index, totalCount);
|
|
207
207
|
if (instance.container) {
|
|
208
|
+
const hasMask = instance.container.getAttribute("data-mask") === "true";
|
|
209
|
+
if (hasMask) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
208
212
|
instance.container.classList.add("toast-moving");
|
|
209
213
|
instance.container.style.position = "fixed";
|
|
210
214
|
instance.container.style.left = `${this.LEFT_OFFSET}px`;
|
|
@@ -240,22 +244,36 @@ var GlobalToastManager = class {
|
|
|
240
244
|
autoClose: config.autoClose,
|
|
241
245
|
autoCloseDelay: config.autoCloseDelay || 30,
|
|
242
246
|
showCountdownProgress: config.showCountdownProgress,
|
|
247
|
+
clickOutsideToClose: config.clickOutsideToClose,
|
|
243
248
|
onCountdownComplete: config.onCountdownComplete,
|
|
244
249
|
onClose: () => {
|
|
245
250
|
var _a;
|
|
246
251
|
(_a = config.onClose) == null ? void 0 : _a.call(config);
|
|
247
252
|
this.removeToast(id);
|
|
248
253
|
},
|
|
249
|
-
closable: config.closable !== void 0 ? config.closable : DEFAULT_TOAST_CONFIG.closable
|
|
254
|
+
closable: config.closable !== void 0 ? config.closable : DEFAULT_TOAST_CONFIG.closable,
|
|
255
|
+
mask: config.mask || false
|
|
250
256
|
};
|
|
251
257
|
const container = document.createElement("div");
|
|
252
258
|
container.setAttribute("data-toast-id", id);
|
|
259
|
+
if (config.mask) {
|
|
260
|
+
container.setAttribute("data-mask", "true");
|
|
261
|
+
}
|
|
253
262
|
const dynamicBottomOffset = this.calculateAndCacheBottomOffset();
|
|
254
263
|
container.style.position = "fixed";
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
264
|
+
if (config.mask) {
|
|
265
|
+
container.style.left = "50%";
|
|
266
|
+
container.style.top = "50%";
|
|
267
|
+
container.style.transform = "translate(-50%, -50%)";
|
|
268
|
+
container.style.bottom = "auto";
|
|
269
|
+
container.style.right = "auto";
|
|
270
|
+
} else {
|
|
271
|
+
container.style.left = `${this.LEFT_OFFSET}px`;
|
|
272
|
+
container.style.bottom = `${dynamicBottomOffset}px`;
|
|
273
|
+
container.style.top = "auto";
|
|
274
|
+
container.style.right = "auto";
|
|
275
|
+
container.style.transform = "none";
|
|
276
|
+
}
|
|
259
277
|
container.style.pointerEvents = "none";
|
|
260
278
|
container.style.width = "auto";
|
|
261
279
|
container.style.height = "auto";
|
|
@@ -225,8 +225,8 @@ var PaymentResultToast = (0, import_react.memo)((props) => {
|
|
|
225
225
|
mask,
|
|
226
226
|
maskClosable,
|
|
227
227
|
closable: false,
|
|
228
|
-
className: getBaseClassName(`${className} ${statusClassName}`),
|
|
229
|
-
wrapClassName: "toast-modal-wrap"
|
|
228
|
+
className: getBaseClassName(`${className} ${statusClassName} ${mask ? "payment-result-toast-with-mask" : ""}`),
|
|
229
|
+
wrapClassName: `toast-modal-wrap ${mask ? "toast-modal-wrap-with-mask" : ""}`,
|
|
230
230
|
style: {
|
|
231
231
|
...height ? { height: `${height}px` } : {},
|
|
232
232
|
// 确保Modal不会被默认定位影响
|
|
@@ -246,8 +246,8 @@ var PaymentResultToast = (0, import_react.memo)((props) => {
|
|
|
246
246
|
focusTriggerAfterClose: false,
|
|
247
247
|
transitionName: "",
|
|
248
248
|
maskTransitionName: "",
|
|
249
|
-
centered:
|
|
250
|
-
getContainer: false
|
|
249
|
+
centered: mask,
|
|
250
|
+
getContainer: mask ? void 0 : false
|
|
251
251
|
},
|
|
252
252
|
/* @__PURE__ */ import_react.default.createElement(
|
|
253
253
|
"div",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
margin: 0 !important;
|
|
18
18
|
pointer-events: none !important; // 让Toast Modal Wrap点击穿透
|
|
19
19
|
|
|
20
|
+
// 非 mask 模式下的样式
|
|
20
21
|
.ant-modal {
|
|
21
22
|
position: static !important;
|
|
22
23
|
top: auto !important;
|
|
@@ -32,11 +33,47 @@
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
// mask 模式下的全局样式(Modal 渲染到 body)
|
|
37
|
+
.toast-modal-wrap-with-mask {
|
|
38
|
+
position: fixed !important;
|
|
39
|
+
top: 0 !important;
|
|
40
|
+
left: 0 !important;
|
|
41
|
+
right: 0 !important;
|
|
42
|
+
bottom: 0 !important;
|
|
43
|
+
width: 100vw !important;
|
|
44
|
+
height: 100vh !important;
|
|
45
|
+
display: flex !important;
|
|
46
|
+
align-items: center !important;
|
|
47
|
+
justify-content: center !important;
|
|
48
|
+
pointer-events: auto !important; // mask 模式下需要响应点击
|
|
49
|
+
|
|
50
|
+
.ant-modal-mask {
|
|
51
|
+
position: fixed !important;
|
|
52
|
+
top: 0 !important;
|
|
53
|
+
left: 0 !important;
|
|
54
|
+
right: 0 !important;
|
|
55
|
+
bottom: 0 !important;
|
|
56
|
+
width: 100vw !important;
|
|
57
|
+
height: 100vh !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ant-modal {
|
|
61
|
+
position: relative !important;
|
|
62
|
+
top: auto !important;
|
|
63
|
+
left: auto !important;
|
|
64
|
+
transform: none !important;
|
|
65
|
+
margin: 0 !important;
|
|
66
|
+
padding: 0 !important;
|
|
67
|
+
width: auto !important;
|
|
68
|
+
max-width: none !important;
|
|
69
|
+
pointer-events: auto !important; // Modal 内容可以响应点击
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
35
73
|
// Toast容器样式 - 用于多实例定位
|
|
36
74
|
[data-toast-id] {
|
|
37
75
|
z-index: 1000;
|
|
38
76
|
position: fixed !important;
|
|
39
|
-
left: 96px !important;
|
|
40
77
|
/* 注意:不设置bottom的!important,让JavaScript可以动态更新 */
|
|
41
78
|
/* 移除强制的z-index设置,让Toast使用默认层级 */
|
|
42
79
|
pointer-events: none !important; // 让Toast容器本身点击穿透
|
|
@@ -45,6 +82,23 @@
|
|
|
45
82
|
width: auto !important;
|
|
46
83
|
height: auto !important;
|
|
47
84
|
|
|
85
|
+
// 非 mask 模式下使用左下角定位
|
|
86
|
+
&:not([data-mask="true"]) {
|
|
87
|
+
left: 96px !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// mask 模式下,Modal 会渲染到 body,容器只作为占位符
|
|
91
|
+
// 不需要设置定位,因为 Modal 已经独立渲染
|
|
92
|
+
&[data-mask="true"] {
|
|
93
|
+
// 容器在 mask 模式下不需要定位,Modal 会独立渲染到 body
|
|
94
|
+
position: static !important;
|
|
95
|
+
left: auto !important;
|
|
96
|
+
top: auto !important;
|
|
97
|
+
bottom: auto !important;
|
|
98
|
+
right: auto !important;
|
|
99
|
+
transform: none !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
48
102
|
/* 新Toast进入动画 */
|
|
49
103
|
&.toast-entering {
|
|
50
104
|
opacity: 0;
|
|
@@ -81,42 +135,49 @@
|
|
|
81
135
|
}
|
|
82
136
|
|
|
83
137
|
// 强制覆盖Ant Design Modal的默认定位
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
138
|
+
// 非 mask 模式下使用 static 定位
|
|
139
|
+
&:not([data-mask="true"]) {
|
|
140
|
+
.ant-modal-wrap {
|
|
141
|
+
position: static !important;
|
|
142
|
+
pointer-events: none !important; // 让Modal wrap点击穿透
|
|
143
|
+
}
|
|
88
144
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
145
|
+
.ant-modal {
|
|
146
|
+
position: static !important;
|
|
147
|
+
top: auto !important;
|
|
148
|
+
left: auto !important;
|
|
149
|
+
transform: none !important;
|
|
150
|
+
margin: 0 !important;
|
|
151
|
+
padding: 0 !important;
|
|
152
|
+
pointer-events: none !important; // 让Modal本身点击穿透
|
|
153
|
+
}
|
|
97
154
|
}
|
|
98
155
|
|
|
156
|
+
// mask 模式下,Modal 会渲染到 body,容器内的样式不再需要
|
|
157
|
+
// 样式已通过全局 .toast-modal-wrap-with-mask 类名设置
|
|
99
158
|
|
|
100
|
-
// 覆盖所有可能的Ant Design Modal
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
159
|
+
// 覆盖所有可能的Ant Design Modal定位(非 mask 模式)
|
|
160
|
+
&:not([data-mask="true"]) {
|
|
161
|
+
.ant-modal-wrap {
|
|
162
|
+
position: static !important;
|
|
163
|
+
display: block !important;
|
|
164
|
+
overflow: visible !important;
|
|
165
|
+
pointer-events: none !important; // 让Modal wrap点击穿透
|
|
166
|
+
}
|
|
107
167
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
168
|
+
.ant-modal {
|
|
169
|
+
position: static !important;
|
|
170
|
+
top: auto !important;
|
|
171
|
+
left: auto !important;
|
|
172
|
+
right: auto !important;
|
|
173
|
+
bottom: auto !important;
|
|
174
|
+
transform: none !important;
|
|
175
|
+
margin: 0 !important;
|
|
176
|
+
padding: 0 !important;
|
|
177
|
+
width: 100% !important;
|
|
178
|
+
max-width: none !important;
|
|
179
|
+
pointer-events: none !important; // 让Modal点击穿透
|
|
180
|
+
}
|
|
120
181
|
}
|
|
121
182
|
|
|
122
183
|
// Toast进入动画
|
|
@@ -401,7 +462,7 @@
|
|
|
401
462
|
// 副标题样式
|
|
402
463
|
&-subtitle {
|
|
403
464
|
&-text {
|
|
404
|
-
font-size:
|
|
465
|
+
font-size: 48px; // 与图片一致
|
|
405
466
|
font-weight: 600; // 与图片一致
|
|
406
467
|
text-shadow: none; // 移除阴影
|
|
407
468
|
|
|
@@ -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;
|
|
@@ -141,6 +141,7 @@ declare const _default: {
|
|
|
141
141
|
'pisell2.checkout.modal.close-price-adjustment': string;
|
|
142
142
|
'pisell2.checkout.modal.reset-price-adjustment': string;
|
|
143
143
|
'pisell2.checkout.modal.done-price-adjustment': string;
|
|
144
|
+
'pisell2.checkout.modal.price-adjustment-tips': string;
|
|
144
145
|
'pisell2.checkout.send-payment-link.modal-title': string;
|
|
145
146
|
'pisell2.checkout.send-payment-link.email-address': string;
|
|
146
147
|
'pisell2.checkout.send-payment-link.email-placeholder': string;
|
|
@@ -302,6 +303,7 @@ declare const _default: {
|
|
|
302
303
|
'pisell2.checkout.modal.close-price-adjustment': string;
|
|
303
304
|
'pisell2.checkout.modal.reset-price-adjustment': string;
|
|
304
305
|
'pisell2.checkout.modal.done-price-adjustment': string;
|
|
306
|
+
'pisell2.checkout.modal.price-adjustment-tips': string;
|
|
305
307
|
'pisell2.checkout.send-payment-link.modal-title': string;
|
|
306
308
|
'pisell2.checkout.send-payment-link.email-address': string;
|
|
307
309
|
'pisell2.checkout.send-payment-link.email-placeholder': string;
|
|
@@ -479,6 +481,7 @@ declare const _default: {
|
|
|
479
481
|
'pisell2.checkout.modal.close-price-adjustment': string;
|
|
480
482
|
'pisell2.checkout.modal.reset-price-adjustment': string;
|
|
481
483
|
'pisell2.checkout.modal.done-price-adjustment': string;
|
|
484
|
+
'pisell2.checkout.modal.price-adjustment-tips': string;
|
|
482
485
|
'pisell2.checkout.send-payment-link.modal-title': string;
|
|
483
486
|
'pisell2.checkout.send-payment-link.email-address': string;
|
|
484
487
|
'pisell2.checkout.send-payment-link.email-placeholder': string;
|
|
@@ -192,6 +192,7 @@ var locales_default = {
|
|
|
192
192
|
"pisell2.checkout.modal.close-price-adjustment": "Close price adjustment modal",
|
|
193
193
|
"pisell2.checkout.modal.reset-price-adjustment": "Reset",
|
|
194
194
|
"pisell2.checkout.modal.done-price-adjustment": "Done",
|
|
195
|
+
"pisell2.checkout.modal.price-adjustment-tips": "Changing amount will update order total",
|
|
195
196
|
// Send Payment Link Modal
|
|
196
197
|
"pisell2.checkout.send-payment-link.modal-title": "Send Payment Link",
|
|
197
198
|
"pisell2.checkout.send-payment-link.email-address": "Email Address",
|
|
@@ -382,6 +383,7 @@ var locales_default = {
|
|
|
382
383
|
"pisell2.checkout.modal.close-price-adjustment": "关闭价格调整弹窗",
|
|
383
384
|
"pisell2.checkout.modal.reset-price-adjustment": "重置",
|
|
384
385
|
"pisell2.checkout.modal.done-price-adjustment": "完成",
|
|
386
|
+
"pisell2.checkout.modal.price-adjustment-tips": "修改金额将更新订单总额",
|
|
385
387
|
// Send Payment Link Modal
|
|
386
388
|
"pisell2.checkout.send-payment-link.modal-title": "发送支付链接",
|
|
387
389
|
"pisell2.checkout.send-payment-link.email-address": "邮箱地址",
|
|
@@ -604,6 +606,7 @@ var locales_default = {
|
|
|
604
606
|
"pisell2.checkout.modal.close-price-adjustment": "關閉價格調整彈窗",
|
|
605
607
|
"pisell2.checkout.modal.reset-price-adjustment": "重置",
|
|
606
608
|
"pisell2.checkout.modal.done-price-adjustment": "完成",
|
|
609
|
+
"pisell2.checkout.modal.price-adjustment-tips": "修改金額將更新訂單總額",
|
|
607
610
|
// Send Payment Link Modal
|
|
608
611
|
"pisell2.checkout.send-payment-link.modal-title": "發送支付鏈接",
|
|
609
612
|
"pisell2.checkout.send-payment-link.email-address": "郵箱地址",
|
|
@@ -150,6 +150,7 @@ var displayPaymentResultToast = async (params, config) => {
|
|
|
150
150
|
const { getData, onToastClose } = config;
|
|
151
151
|
if (paymentStatus === "paid") {
|
|
152
152
|
await (0, import_PaymentResultToast.showPaymentResultToastSuccess)({
|
|
153
|
+
mask: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
153
154
|
title: calculateTitle(paymentStatus),
|
|
154
155
|
subtitle: calculateSubtitle(
|
|
155
156
|
paymentStatus,
|
|
@@ -159,16 +160,18 @@ var displayPaymentResultToast = async (params, config) => {
|
|
|
159
160
|
),
|
|
160
161
|
autoClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
161
162
|
autoCloseDelay: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoCloseDelay) || 3e3,
|
|
163
|
+
clickOutsideToClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
162
164
|
showCountdownProgress: true,
|
|
163
165
|
actionButtons: actionButtons || [],
|
|
164
166
|
onClose: onToastClose || (() => {
|
|
165
167
|
}),
|
|
166
168
|
// 提供默认空函数
|
|
167
|
-
closable:
|
|
169
|
+
closable: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose)
|
|
168
170
|
// 控制关闭按钮显示
|
|
169
171
|
});
|
|
170
172
|
} else if (paymentStatus === "partially_paid") {
|
|
171
173
|
await (0, import_PaymentResultToast.showPaymentResultToastSuccess)({
|
|
174
|
+
mask: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
172
175
|
title: calculateTitle(paymentStatus),
|
|
173
176
|
subtitle: calculateSubtitle(
|
|
174
177
|
paymentStatus,
|
|
@@ -178,12 +181,16 @@ var displayPaymentResultToast = async (params, config) => {
|
|
|
178
181
|
),
|
|
179
182
|
autoClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
180
183
|
actionButtons: actionButtons || [],
|
|
184
|
+
clickOutsideToClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
185
|
+
closable: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose),
|
|
186
|
+
// 控制关闭按钮显示
|
|
181
187
|
onClose: onToastClose || (() => {
|
|
182
188
|
})
|
|
183
189
|
// 提供默认空函数
|
|
184
190
|
});
|
|
185
191
|
} else if (paymentStatus === "failed" || paymentStatus === "error") {
|
|
186
192
|
await (0, import_PaymentResultToast.showPaymentResultToastFailed)({
|
|
193
|
+
mask: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
187
194
|
title: calculateTitle(paymentStatus, failureReason),
|
|
188
195
|
subtitle: calculateSubtitle(
|
|
189
196
|
paymentStatus,
|
|
@@ -193,6 +200,9 @@ var displayPaymentResultToast = async (params, config) => {
|
|
|
193
200
|
),
|
|
194
201
|
autoClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
195
202
|
actionButtons: actionButtons || [],
|
|
203
|
+
clickOutsideToClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
204
|
+
closable: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose),
|
|
205
|
+
// 控制关闭按钮显示
|
|
196
206
|
onClose: onToastClose || (() => {
|
|
197
207
|
})
|
|
198
208
|
// 提供默认空函数
|
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
10
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "
|
|
11
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
12
12
|
[keys: string]: unknown;
|
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
|
14
14
|
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: "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "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<"
|
|
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<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "
|
|
177
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -295,9 +295,9 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
295
295
|
name?: string | undefined;
|
|
296
296
|
symbol?: string | undefined;
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
|
-
mode?: "pay" | "
|
|
298
|
+
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
311
|
+
status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|