@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
|
@@ -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;
|
|
@@ -180,6 +180,7 @@ export default {
|
|
|
180
180
|
'pisell2.checkout.modal.close-price-adjustment': 'Close price adjustment modal',
|
|
181
181
|
'pisell2.checkout.modal.reset-price-adjustment': 'Reset',
|
|
182
182
|
'pisell2.checkout.modal.done-price-adjustment': 'Done',
|
|
183
|
+
'pisell2.checkout.modal.price-adjustment-tips': 'Changing amount will update order total',
|
|
183
184
|
// Send Payment Link Modal
|
|
184
185
|
'pisell2.checkout.send-payment-link.modal-title': 'Send Payment Link',
|
|
185
186
|
'pisell2.checkout.send-payment-link.email-address': 'Email Address',
|
|
@@ -380,6 +381,7 @@ export default {
|
|
|
380
381
|
'pisell2.checkout.modal.close-price-adjustment': '关闭价格调整弹窗',
|
|
381
382
|
'pisell2.checkout.modal.reset-price-adjustment': '重置',
|
|
382
383
|
'pisell2.checkout.modal.done-price-adjustment': '完成',
|
|
384
|
+
'pisell2.checkout.modal.price-adjustment-tips': '修改金额将更新订单总额',
|
|
383
385
|
// Send Payment Link Modal
|
|
384
386
|
'pisell2.checkout.send-payment-link.modal-title': '发送支付链接',
|
|
385
387
|
'pisell2.checkout.send-payment-link.email-address': '邮箱地址',
|
|
@@ -618,6 +620,7 @@ export default {
|
|
|
618
620
|
'pisell2.checkout.modal.close-price-adjustment': '關閉價格調整彈窗',
|
|
619
621
|
'pisell2.checkout.modal.reset-price-adjustment': '重置',
|
|
620
622
|
'pisell2.checkout.modal.done-price-adjustment': '完成',
|
|
623
|
+
'pisell2.checkout.modal.price-adjustment-tips': '修改金額將更新訂單總額',
|
|
621
624
|
// Send Payment Link Modal
|
|
622
625
|
'pisell2.checkout.send-payment-link.modal-title': '發送支付鏈接',
|
|
623
626
|
'pisell2.checkout.send-payment-link.email-address': '郵箱地址',
|
|
@@ -140,15 +140,17 @@ export var displayPaymentResultToast = /*#__PURE__*/function () {
|
|
|
140
140
|
}
|
|
141
141
|
_context.next = 5;
|
|
142
142
|
return showPaymentResultToastSuccess({
|
|
143
|
+
mask: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose) || false,
|
|
143
144
|
title: calculateTitle(paymentStatus),
|
|
144
145
|
subtitle: calculateSubtitle(paymentStatus, orderTotalAmount, gapAmount, getData),
|
|
145
146
|
autoClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
|
|
146
147
|
autoCloseDelay: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoCloseDelay) || 3000,
|
|
148
|
+
clickOutsideToClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
|
|
147
149
|
showCountdownProgress: true,
|
|
148
150
|
actionButtons: actionButtons || [],
|
|
149
151
|
onClose: onToastClose || function () {},
|
|
150
152
|
// 提供默认空函数
|
|
151
|
-
closable:
|
|
153
|
+
closable: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose) // 控制关闭按钮显示
|
|
152
154
|
});
|
|
153
155
|
case 5:
|
|
154
156
|
_context.next = 15;
|
|
@@ -160,10 +162,14 @@ export var displayPaymentResultToast = /*#__PURE__*/function () {
|
|
|
160
162
|
}
|
|
161
163
|
_context.next = 10;
|
|
162
164
|
return showPaymentResultToastSuccess({
|
|
165
|
+
mask: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose) || false,
|
|
163
166
|
title: calculateTitle(paymentStatus),
|
|
164
167
|
subtitle: calculateSubtitle(paymentStatus, orderTotalAmount, gapAmount, getData),
|
|
165
168
|
autoClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
|
|
166
169
|
actionButtons: actionButtons || [],
|
|
170
|
+
clickOutsideToClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
|
|
171
|
+
closable: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose),
|
|
172
|
+
// 控制关闭按钮显示
|
|
167
173
|
onClose: onToastClose || function () {} // 提供默认空函数
|
|
168
174
|
});
|
|
169
175
|
case 10:
|
|
@@ -176,10 +182,14 @@ export var displayPaymentResultToast = /*#__PURE__*/function () {
|
|
|
176
182
|
}
|
|
177
183
|
_context.next = 15;
|
|
178
184
|
return showPaymentResultToastFailed({
|
|
185
|
+
mask: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose) || false,
|
|
179
186
|
title: calculateTitle(paymentStatus, failureReason),
|
|
180
187
|
subtitle: calculateSubtitle(paymentStatus, orderTotalAmount / 100, gapAmount, getData),
|
|
181
188
|
autoClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
|
|
182
189
|
actionButtons: actionButtons || [],
|
|
190
|
+
clickOutsideToClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
|
|
191
|
+
closable: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose),
|
|
192
|
+
// 控制关闭按钮显示
|
|
183
193
|
onClose: onToastClose || function () {} // 提供默认空函数
|
|
184
194
|
});
|
|
185
195
|
case 15:
|
|
@@ -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
|
/** 用于重置当前步骤 */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -29,4 +30,11 @@ export interface PayGroup {
|
|
|
29
30
|
_order: any;
|
|
30
31
|
front_order_uuid?: string;
|
|
31
32
|
}
|
|
32
|
-
export declare const Provider: any, Context:
|
|
33
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
34
|
+
state: FormState;
|
|
35
|
+
} & {
|
|
36
|
+
dispatch: (params: {
|
|
37
|
+
type: string;
|
|
38
|
+
payload: any;
|
|
39
|
+
}) => void;
|
|
40
|
+
}>;
|
|
@@ -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
|
+
}>;
|
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { useMemo } from 'react';
|
|
7
|
+
import React, { useMemo, useState, useEffect } from 'react';
|
|
8
8
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
|
|
9
9
|
import { DatePicker, SelectTime } from '@pisell/materials';
|
|
10
10
|
import { useMemoizedFn } from 'ahooks';
|
|
@@ -13,12 +13,65 @@ import dayjs from 'dayjs';
|
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { locales } from '@pisell/utils';
|
|
15
15
|
import "./index.less";
|
|
16
|
+
import { Iconfont } from '@pisell/materials';
|
|
16
17
|
var TimeBar = function TimeBar(props) {
|
|
17
|
-
var _state$
|
|
18
|
+
var _state$modalState7;
|
|
18
19
|
var state = props.globalState,
|
|
19
20
|
setGlobalState = props.setGlobalState,
|
|
20
21
|
locale = props.locale,
|
|
21
22
|
onCreateClick = props.onCreateClick;
|
|
23
|
+
var _useState = useState(true),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
collapsed = _useState2[0],
|
|
26
|
+
setCollapsed = _useState2[1];
|
|
27
|
+
var _useState3 = useState(1),
|
|
28
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
29
|
+
scaleCompensation = _useState4[0],
|
|
30
|
+
setScaleCompensation = _useState4[1];
|
|
31
|
+
|
|
32
|
+
// 获取 body 的 scale 值并计算补偿
|
|
33
|
+
useEffect(function () {
|
|
34
|
+
var getBodyScale = function getBodyScale() {
|
|
35
|
+
var body = document.body;
|
|
36
|
+
var computedStyle = window.getComputedStyle(body);
|
|
37
|
+
var transform = computedStyle.transform;
|
|
38
|
+
if (transform && transform !== 'none') {
|
|
39
|
+
// 解析 transform matrix 获取 scale 值
|
|
40
|
+
// matrix(scaleX, skewY, skewX, scaleY, translateX, translateY)
|
|
41
|
+
var matrix = transform.match(/matrix\(([^)]+)\)/);
|
|
42
|
+
if (matrix) {
|
|
43
|
+
var values = matrix[1].split(',').map(function (v) {
|
|
44
|
+
return parseFloat(v.trim());
|
|
45
|
+
});
|
|
46
|
+
// scaleX 通常是 matrix 的第一个值
|
|
47
|
+
var scale = values[0] || 1;
|
|
48
|
+
return scale;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return 1;
|
|
52
|
+
};
|
|
53
|
+
var updateScale = function updateScale() {
|
|
54
|
+
var scale = getBodyScale();
|
|
55
|
+
// 目标高度是 40px,需要补偿 scale 的影响
|
|
56
|
+
// 实际设置高度 = 目标高度 / scale
|
|
57
|
+
setScaleCompensation(scale);
|
|
58
|
+
};
|
|
59
|
+
updateScale();
|
|
60
|
+
|
|
61
|
+
// 监听 body 的 transform 变化(使用 MutationObserver)
|
|
62
|
+
var observer = new MutationObserver(updateScale);
|
|
63
|
+
observer.observe(document.body, {
|
|
64
|
+
attributes: true,
|
|
65
|
+
attributeFilter: ['style', 'class']
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// 也监听窗口大小变化(某些情况下 scale 可能随窗口变化)
|
|
69
|
+
window.addEventListener('resize', updateScale);
|
|
70
|
+
return function () {
|
|
71
|
+
observer.disconnect();
|
|
72
|
+
window.removeEventListener('resize', updateScale);
|
|
73
|
+
};
|
|
74
|
+
}, []);
|
|
22
75
|
var _onClickNext = useMemoizedFn(function () {
|
|
23
76
|
var _state$modalState, _props$onDateChange, _props$setIntervalTim;
|
|
24
77
|
var currentTime = (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.date) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
|
|
@@ -57,8 +110,52 @@ var TimeBar = function TimeBar(props) {
|
|
|
57
110
|
});
|
|
58
111
|
(_props$setIntervalTim5 = props.setIntervalTime) === null || _props$setIntervalTim5 === void 0 || _props$setIntervalTim5.call(props, timeString === dayjs().format('HH:mm'));
|
|
59
112
|
});
|
|
113
|
+
var _onToggleCollapse = useMemoizedFn(function () {
|
|
114
|
+
setCollapsed(!collapsed);
|
|
115
|
+
});
|
|
60
116
|
return useMemo(function () {
|
|
61
|
-
var _state$
|
|
117
|
+
var _state$modalState5, _state$modalState6;
|
|
118
|
+
// 收起状态
|
|
119
|
+
if (collapsed) {
|
|
120
|
+
var _state$modalState4;
|
|
121
|
+
var currentDate = state === null || state === void 0 || (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value;
|
|
122
|
+
var isToday = currentDate && currentDate.isSame(dayjs(), 'day');
|
|
123
|
+
var displayText = isToday ? locales.getText('pisell2.ticket-booking.today') : (currentDate === null || currentDate === void 0 ? void 0 : currentDate.format('YYYY-MM-DD')) || '';
|
|
124
|
+
|
|
125
|
+
// 计算补偿后的高度:目标高度 / scale
|
|
126
|
+
var targetHeight = 40;
|
|
127
|
+
var compensatedHeight = targetHeight / scaleCompensation;
|
|
128
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: classNames('pisell-ticket-booking-time-bar', 'collapsed'),
|
|
130
|
+
style: {
|
|
131
|
+
height: "".concat(compensatedHeight, "px"),
|
|
132
|
+
minHeight: "".concat(compensatedHeight, "px"),
|
|
133
|
+
maxHeight: "".concat(compensatedHeight, "px")
|
|
134
|
+
}
|
|
135
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: "pisell-ticket-booking-time-bar-collapsed-content",
|
|
137
|
+
style: {
|
|
138
|
+
height: "".concat(compensatedHeight, "px")
|
|
139
|
+
}
|
|
140
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
141
|
+
className: "pisell-ticket-booking-time-bar-collapsed-today",
|
|
142
|
+
style: {
|
|
143
|
+
lineHeight: "".concat(compensatedHeight, "px")
|
|
144
|
+
}
|
|
145
|
+
}, displayText), /*#__PURE__*/React.createElement(Button, {
|
|
146
|
+
type: "link",
|
|
147
|
+
size: "small",
|
|
148
|
+
className: "pisell-ticket-booking-time-bar-collapsed-expand",
|
|
149
|
+
onClick: _onToggleCollapse,
|
|
150
|
+
style: {
|
|
151
|
+
lineHeight: "".concat(compensatedHeight, "px")
|
|
152
|
+
}
|
|
153
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.ticket-booking.expand')), /*#__PURE__*/React.createElement(Iconfont, {
|
|
154
|
+
type: "pisell2-chevron-right-double"
|
|
155
|
+
}))));
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// 展开状态
|
|
62
159
|
return /*#__PURE__*/React.createElement("div", {
|
|
63
160
|
className: "pisell-ticket-booking-time-bar",
|
|
64
161
|
style: {
|
|
@@ -85,7 +182,7 @@ var TimeBar = function TimeBar(props) {
|
|
|
85
182
|
}
|
|
86
183
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
87
184
|
inputReadOnly: true,
|
|
88
|
-
value: state === null || state === void 0 || (_state$
|
|
185
|
+
value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value,
|
|
89
186
|
format: locale === 'en' ? 'dddd, DD MMM YYYY' : 'YYYY年MM月DD日',
|
|
90
187
|
onChange: props === null || props === void 0 ? void 0 : props.onDateChange,
|
|
91
188
|
size: "large",
|
|
@@ -101,7 +198,7 @@ var TimeBar = function TimeBar(props) {
|
|
|
101
198
|
'booking-page-date-picker-select': state.isTimeChange
|
|
102
199
|
})
|
|
103
200
|
}, /*#__PURE__*/React.createElement(SelectTime, {
|
|
104
|
-
value: state === null || state === void 0 || (_state$
|
|
201
|
+
value: state === null || state === void 0 || (_state$modalState6 = state.modalState) === null || _state$modalState6 === void 0 || (_state$modalState6 = _state$modalState6.date) === null || _state$modalState6 === void 0 ? void 0 : _state$modalState6.value.format('HH:mm'),
|
|
105
202
|
onChange: _onDateTimeChange,
|
|
106
203
|
popoverProps: {
|
|
107
204
|
style: {
|
|
@@ -124,7 +221,15 @@ var TimeBar = function TimeBar(props) {
|
|
|
124
221
|
},
|
|
125
222
|
size: "large",
|
|
126
223
|
type: "primary"
|
|
127
|
-
}, locales.getText('pisell2.ticket-booking.create-new'))
|
|
128
|
-
|
|
224
|
+
}, locales.getText('pisell2.ticket-booking.create-new')), /*#__PURE__*/React.createElement(Button, {
|
|
225
|
+
type: "link",
|
|
226
|
+
style: {
|
|
227
|
+
marginLeft: 'auto'
|
|
228
|
+
},
|
|
229
|
+
onClick: _onToggleCollapse
|
|
230
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.ticket-booking.collapse')), /*#__PURE__*/React.createElement(Iconfont, {
|
|
231
|
+
type: "pisell2-chevron-left-double"
|
|
232
|
+
})));
|
|
233
|
+
}, [collapsed, (_state$modalState7 = state.modalState) === null || _state$modalState7 === void 0 || (_state$modalState7 = _state$modalState7.date) === null || _state$modalState7 === void 0 ? void 0 : _state$modalState7.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale, _onToggleCollapse, scaleCompensation]);
|
|
129
234
|
};
|
|
130
235
|
export default TimeBar;
|