@pisell/private-materials 6.5.2 → 6.5.3
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 +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/actionButtons/index.js +2 -2
- package/es/components/booking/components/customiseItemModal/index.js +2 -2
- package/es/components/booking/components/footer/index.js +48 -42
- package/es/components/booking/components/voucher/index.js +18 -4
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.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/serviceList/index.d.ts +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +33 -20
- package/es/components/booking/info2/cartClientCard/utils.d.ts +2 -2
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- 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/checkout/PaymentModal.js +719 -432
- package/es/components/checkout/PaymentPlugin.d.ts +1 -0
- package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -1
- package/es/components/checkout/components/AdditionalModule/index.js +80 -49
- package/es/components/checkout/components/AdditionalModule/index.less +33 -34
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +3 -0
- package/es/components/checkout/components/AdditionalModule/locales.js +7 -4
- package/es/components/checkout/components/AmountSummary/index.d.ts +2 -1
- package/es/components/checkout/components/AmountSummary/index.js +69 -31
- package/es/components/checkout/components/AmountSummary/index.less +27 -9
- package/es/components/checkout/components/CashPaymentModule/index.less +0 -2
- package/es/components/checkout/components/PaymentDetailModal/index.js +55 -10
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.js +40 -25
- package/es/components/checkout/components/PaymentOptionsModule/index.less +11 -6
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +42 -9
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +512 -82
- package/es/components/checkout/components/PaymentResultToast/index.d.ts +2 -1
- package/es/components/checkout/components/PaymentResultToast/index.js +90 -35
- package/es/components/checkout/components/PaymentResultToast/index.less +445 -77
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +26 -0
- package/es/components/checkout/components/PaymentResultToast/utils.js +81 -2
- package/es/components/checkout/components/SearchAndClientModule/index.js +17 -16
- package/es/components/checkout/components/SearchAndClientModule/index.less +29 -8
- package/es/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +3 -1
- package/es/components/checkout/components/WalletPassModule/index.less +3 -3
- package/es/components/checkout/hooks/useWalletPass.js +1 -1
- package/es/components/checkout/index.d.ts +1 -1
- package/es/components/checkout/index.js +1 -1
- package/es/components/checkout/index.less +56 -38
- package/es/components/checkout/locales.d.ts +6 -0
- package/es/components/checkout/locales.js +9 -3
- package/es/components/checkout/payment-modal-utils.js +5 -5
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +3 -3
- package/es/components/checkout/utils/PaymentResultToastUtils.js +111 -72
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +91 -58
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +4 -3
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +1 -1
- package/es/components/ticketBooking/components/menuBar/index.js +1 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +4 -2
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/plus/clientCard/index.js +3 -2
- package/es/plus/clientCard/index.less +3 -32
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +9 -12
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +22 -19
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/actionButtons/index.js +2 -1
- package/lib/components/booking/components/customiseItemModal/index.js +2 -2
- package/lib/components/booking/components/footer/index.js +3 -0
- package/lib/components/booking/components/voucher/index.js +15 -3
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.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/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +16 -5
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +2 -2
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- 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/checkout/PaymentModal.js +241 -109
- package/lib/components/checkout/PaymentPlugin.d.ts +1 -0
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +98 -34
- package/lib/components/checkout/components/AdditionalModule/index.less +33 -34
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +3 -0
- package/lib/components/checkout/components/AdditionalModule/locales.js +7 -4
- package/lib/components/checkout/components/AmountSummary/index.d.ts +2 -1
- package/lib/components/checkout/components/AmountSummary/index.js +103 -47
- package/lib/components/checkout/components/AmountSummary/index.less +27 -9
- package/lib/components/checkout/components/CashPaymentModule/index.less +0 -2
- package/lib/components/checkout/components/PaymentDetailModal/index.js +56 -11
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -8
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +11 -6
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +42 -9
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +279 -73
- package/lib/components/checkout/components/PaymentResultToast/index.d.ts +2 -1
- package/lib/components/checkout/components/PaymentResultToast/index.js +69 -22
- package/lib/components/checkout/components/PaymentResultToast/index.less +445 -77
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +26 -0
- package/lib/components/checkout/components/PaymentResultToast/utils.js +58 -4
- package/lib/components/checkout/components/SearchAndClientModule/index.js +17 -15
- package/lib/components/checkout/components/SearchAndClientModule/index.less +29 -8
- package/lib/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +12 -2
- package/lib/components/checkout/components/WalletPassModule/index.less +3 -3
- package/lib/components/checkout/hooks/useWalletPass.js +2 -2
- package/lib/components/checkout/index.d.ts +1 -1
- package/lib/components/checkout/index.js +2 -0
- package/lib/components/checkout/index.less +56 -38
- package/lib/components/checkout/locales.d.ts +6 -0
- package/lib/components/checkout/locales.js +9 -3
- package/lib/components/checkout/payment-modal-utils.js +5 -5
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +3 -3
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +26 -18
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +25 -10
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +2 -2
- package/lib/components/ticketBooking/components/menuBar/index.js +1 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -12
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -12
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +5 -13
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/plus/clientCard/index.js +5 -4
- package/lib/plus/clientCard/index.less +3 -32
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +6 -18
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +22 -19
- package/package.json +1 -1
@@ -1,11 +1,10 @@
|
|
1
|
-
import React from
|
2
|
-
import { Button, Dropdown } from
|
3
|
-
import {
|
4
|
-
import { Calculator } from '@pisell/icon';
|
1
|
+
import React from 'react';
|
2
|
+
import { Button, Dropdown } from 'antd';
|
3
|
+
import { ClockCircleOutlined, LinkOutlined } from '@ant-design/icons';
|
5
4
|
|
6
5
|
// @ts-ignore - @pisell/utils types not available
|
7
6
|
import { locales } from '@pisell/utils';
|
8
|
-
import {
|
7
|
+
import { Icon } from '@pisell/materials';
|
9
8
|
import "./index.less";
|
10
9
|
import { getLocale } from "../../../../utils/locales";
|
11
10
|
import localeTexts from "./locales";
|
@@ -25,10 +24,6 @@ function AdditionalModule(_ref) {
|
|
25
24
|
|
26
25
|
// 定义更多按钮的菜单项
|
27
26
|
var moreMenuItems = [{
|
28
|
-
key: 'manual-discount',
|
29
|
-
label: locales.getText('pisell2.text.manual-order-discount'),
|
30
|
-
icon: /*#__PURE__*/React.createElement(Calculator, null)
|
31
|
-
}, {
|
32
27
|
key: 'send-link',
|
33
28
|
label: locales.getText('pisell2.text.send-link'),
|
34
29
|
icon: /*#__PURE__*/React.createElement(LinkOutlined, null)
|
@@ -49,31 +44,49 @@ function AdditionalModule(_ref) {
|
|
49
44
|
className: "additional-module-button-base purple-theme ".concat(hasOrderNote ? 'note-button' : ''),
|
50
45
|
onClick: function onClick() {
|
51
46
|
handleButtonClick('order-note');
|
52
|
-
}
|
53
|
-
|
54
|
-
|
55
|
-
|
47
|
+
},
|
48
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
49
|
+
type: "pisell2-clipboard-minus",
|
50
|
+
className: "additional-module-button-icon"
|
51
|
+
}),
|
52
|
+
size: "large"
|
53
|
+
}, locales.getText('pisell2.text.order-note'), hasOrderNote && /*#__PURE__*/React.createElement("span", {
|
56
54
|
className: "note-indicator"
|
57
|
-
}, /*#__PURE__*/React.createElement(
|
55
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
58
56
|
type: "pisell2-info-circle2"
|
59
57
|
}))), /*#__PURE__*/React.createElement(Button, {
|
60
58
|
className: "additional-module-button-base purple-theme",
|
61
59
|
onClick: function onClick() {
|
62
60
|
handleButtonClick('print-receipt');
|
63
|
-
}
|
64
|
-
|
65
|
-
|
66
|
-
|
61
|
+
},
|
62
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
63
|
+
type: "pisell2-printer",
|
64
|
+
className: "additional-module-button-icon"
|
65
|
+
}),
|
66
|
+
size: "large"
|
67
|
+
}, locales.getText('pisell2.text.print-receipt'))), /*#__PURE__*/React.createElement("div", {
|
67
68
|
className: "additional-module-button-row"
|
68
69
|
}, /*#__PURE__*/React.createElement(Button, {
|
70
|
+
className: "additional-module-button-base purple-theme",
|
71
|
+
onClick: function onClick() {
|
72
|
+
handleButtonClick('manual-discount');
|
73
|
+
},
|
74
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
75
|
+
type: "pisell2-sale-01",
|
76
|
+
className: "additional-module-button-icon"
|
77
|
+
}),
|
78
|
+
size: "large"
|
79
|
+
}, locales.getText('pisell2.text.additional-module.order-discount')), /*#__PURE__*/React.createElement(Button, {
|
69
80
|
className: "additional-module-button-base ".concat(disabled ? 'disabled-theme' : 'orange-theme'),
|
70
81
|
onClick: function onClick() {
|
71
82
|
handleButtonClick('save-pay-later');
|
72
83
|
},
|
73
|
-
disabled: disabled
|
74
|
-
|
75
|
-
|
76
|
-
|
84
|
+
disabled: disabled,
|
85
|
+
size: "large",
|
86
|
+
icon: /*#__PURE__*/React.createElement(ClockCircleOutlined, {
|
87
|
+
className: "additional-module-button-icon"
|
88
|
+
})
|
89
|
+
}, locales.getText('pisell2.text.save-pay-later')), /*#__PURE__*/React.createElement(Dropdown, {
|
77
90
|
menu: {
|
78
91
|
items: moreMenuItems,
|
79
92
|
onClick: function onClick(_ref2) {
|
@@ -86,9 +99,6 @@ function AdditionalModule(_ref) {
|
|
86
99
|
Toast.fail(locales.getText('pisell2.text.order-no-payment-cannot-send-link'));
|
87
100
|
}
|
88
101
|
}
|
89
|
-
if (key === 'manual-discount') {
|
90
|
-
handleButtonClick('manual-discount');
|
91
|
-
}
|
92
102
|
}
|
93
103
|
},
|
94
104
|
trigger: ['click'],
|
@@ -102,10 +112,13 @@ function AdditionalModule(_ref) {
|
|
102
112
|
console.log('Dropdown state changed:', open);
|
103
113
|
}
|
104
114
|
}, /*#__PURE__*/React.createElement(Button, {
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
115
|
+
size: "large",
|
116
|
+
className: "additional-module-button-base more-button",
|
117
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
118
|
+
type: "pisell2-dots-vertical",
|
119
|
+
size: 20
|
120
|
+
})
|
121
|
+
})))) :
|
109
122
|
/*#__PURE__*/
|
110
123
|
// Flex布局模式:一行布局(不显示现金支付模块时)
|
111
124
|
React.createElement("div", {
|
@@ -114,29 +127,47 @@ function AdditionalModule(_ref) {
|
|
114
127
|
className: "additional-module-button-base purple-theme ".concat(hasOrderNote ? 'note-button' : ''),
|
115
128
|
onClick: function onClick() {
|
116
129
|
handleButtonClick('order-note');
|
117
|
-
}
|
118
|
-
|
119
|
-
|
120
|
-
|
130
|
+
},
|
131
|
+
size: "large",
|
132
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
133
|
+
type: "pisell2-clipboard-minus",
|
134
|
+
className: "additional-module-button-icon"
|
135
|
+
})
|
136
|
+
}, locales.getText('pisell2.text.order-note'), hasOrderNote && /*#__PURE__*/React.createElement("span", {
|
121
137
|
className: "note-indicator"
|
122
|
-
}, /*#__PURE__*/React.createElement(
|
138
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
123
139
|
type: "pisell2-info-circle2"
|
124
140
|
}))), /*#__PURE__*/React.createElement(Button, {
|
125
141
|
className: "additional-module-button-base purple-theme",
|
126
142
|
onClick: function onClick() {
|
127
143
|
handleButtonClick('print-receipt');
|
128
|
-
}
|
129
|
-
|
130
|
-
|
131
|
-
|
144
|
+
},
|
145
|
+
size: "large",
|
146
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
147
|
+
type: "pisell2-printer",
|
148
|
+
className: "additional-module-button-icon"
|
149
|
+
})
|
150
|
+
}, locales.getText('pisell2.text.print-receipt')), /*#__PURE__*/React.createElement(Button, {
|
151
|
+
className: "additional-module-button-base purple-theme",
|
152
|
+
onClick: function onClick() {
|
153
|
+
handleButtonClick('manual-discount');
|
154
|
+
},
|
155
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
156
|
+
type: "pisell2-sale-01",
|
157
|
+
className: "additional-module-button-icon"
|
158
|
+
}),
|
159
|
+
size: "large"
|
160
|
+
}, locales.getText('pisell2.text.additional-module.order-discount')), /*#__PURE__*/React.createElement(Button, {
|
132
161
|
className: "additional-module-button-base ".concat(disabled ? 'disabled-theme' : 'orange-theme'),
|
133
162
|
onClick: function onClick() {
|
134
163
|
handleButtonClick('save-pay-later');
|
135
164
|
},
|
136
|
-
disabled: disabled
|
137
|
-
|
138
|
-
|
139
|
-
|
165
|
+
disabled: disabled,
|
166
|
+
size: "large",
|
167
|
+
icon: /*#__PURE__*/React.createElement(ClockCircleOutlined, {
|
168
|
+
className: "additional-module-button-icon"
|
169
|
+
})
|
170
|
+
}, locales.getText('pisell2.text.save-pay-later')), /*#__PURE__*/React.createElement(Dropdown, {
|
140
171
|
menu: {
|
141
172
|
items: moreMenuItems,
|
142
173
|
onClick: function onClick(_ref3) {
|
@@ -149,9 +180,6 @@ function AdditionalModule(_ref) {
|
|
149
180
|
Toast.fail(locales.getText('pisell2.text.order-no-payment-cannot-send-link'));
|
150
181
|
}
|
151
182
|
}
|
152
|
-
if (key === 'manual-discount') {
|
153
|
-
handleButtonClick('manual-discount');
|
154
|
-
}
|
155
183
|
}
|
156
184
|
},
|
157
185
|
trigger: ['click'],
|
@@ -165,9 +193,12 @@ function AdditionalModule(_ref) {
|
|
165
193
|
console.log('Dropdown state changed:', open);
|
166
194
|
}
|
167
195
|
}, /*#__PURE__*/React.createElement(Button, {
|
168
|
-
className: "additional-module-button-base more-button"
|
169
|
-
|
170
|
-
|
171
|
-
|
196
|
+
className: "additional-module-button-base more-button",
|
197
|
+
size: "large",
|
198
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
199
|
+
type: "pisell2-dots-vertical",
|
200
|
+
size: 20
|
201
|
+
})
|
202
|
+
})))));
|
172
203
|
}
|
173
204
|
export default AdditionalModule;
|
@@ -3,50 +3,50 @@
|
|
3
3
|
|
4
4
|
// 标题样式
|
5
5
|
&-title {
|
6
|
-
font-size:
|
6
|
+
font-size: 16px;
|
7
7
|
font-weight: 600;
|
8
8
|
color: #1a1a1a;
|
9
|
-
margin-bottom:
|
9
|
+
margin-bottom: 8px;
|
10
10
|
}
|
11
11
|
|
12
12
|
// 按钮容器 - 支持两种布局模式
|
13
13
|
&-buttons-container {
|
14
14
|
display: flex;
|
15
15
|
flex-direction: column;
|
16
|
-
gap:
|
16
|
+
gap: 8px;
|
17
17
|
}
|
18
18
|
|
19
19
|
// 按钮行容器
|
20
20
|
&-button-row {
|
21
21
|
display: flex;
|
22
|
-
gap:
|
22
|
+
gap: 8px;
|
23
23
|
}
|
24
24
|
|
25
25
|
// 基础按钮样式
|
26
26
|
&-button-base {
|
27
27
|
flex: 1;
|
28
|
-
|
29
|
-
border-
|
30
|
-
border-radius: 12px;
|
28
|
+
border-width: 1px;
|
29
|
+
border-radius: 8px;
|
31
30
|
background-color: transparent;
|
32
|
-
font-size:
|
33
|
-
font-weight:
|
31
|
+
font-size: 14px;
|
32
|
+
font-weight: 600;
|
34
33
|
display: flex;
|
35
34
|
align-items: center;
|
36
35
|
justify-content: center;
|
37
|
-
|
36
|
+
padding-left: 12px;
|
37
|
+
padding-right: 12px;
|
38
38
|
|
39
39
|
// 紫色主题按钮(Order Note, Print Receipt)
|
40
40
|
&.purple-theme {
|
41
|
-
border-color: #
|
42
|
-
color: #
|
41
|
+
border-color: #5d3f9f;
|
42
|
+
color: #5d3f9f;
|
43
43
|
flex: 1; // 所有按钮等比例分配空间
|
44
44
|
}
|
45
45
|
|
46
46
|
// 橙色主题按钮(Save & Pay Later)
|
47
47
|
&.orange-theme {
|
48
|
-
border-color: #
|
49
|
-
color: #
|
48
|
+
border-color: #dc6803;
|
49
|
+
color: #dc6803;
|
50
50
|
flex: 1; // 与其他前三个按钮宽度相同
|
51
51
|
}
|
52
52
|
|
@@ -57,7 +57,7 @@
|
|
57
57
|
background-color: #f2f4f7;
|
58
58
|
cursor: not-allowed;
|
59
59
|
flex: 1; // 与其他前三个按钮宽度相同
|
60
|
-
|
60
|
+
|
61
61
|
.additional-module-button-icon {
|
62
62
|
color: #98a2b3;
|
63
63
|
}
|
@@ -66,8 +66,8 @@
|
|
66
66
|
// 更多按钮 - 显示为正方形
|
67
67
|
&.more-button {
|
68
68
|
flex: none;
|
69
|
-
width:
|
70
|
-
min-width:
|
69
|
+
width: 50px; // 与高度相同,形成正方形
|
70
|
+
min-width: 50px;
|
71
71
|
padding: 0;
|
72
72
|
gap: 0;
|
73
73
|
}
|
@@ -101,7 +101,7 @@
|
|
101
101
|
width: 24px;
|
102
102
|
height: 24px;
|
103
103
|
border-radius: 50%;
|
104
|
-
background-color: #
|
104
|
+
background-color: #7f56da;
|
105
105
|
color: #fff;
|
106
106
|
font-weight: 700;
|
107
107
|
display: flex;
|
@@ -135,29 +135,28 @@
|
|
135
135
|
}
|
136
136
|
}
|
137
137
|
|
138
|
-
|
139
138
|
// 更多按钮样式(保持与其他按钮一致)
|
140
139
|
.additional-module-button-base.more-button {
|
141
|
-
border-color: #
|
140
|
+
border-color: #d0d5dd;
|
142
141
|
color: #475467;
|
143
142
|
position: relative;
|
144
|
-
pointer-events: auto
|
145
|
-
flex: none
|
146
|
-
width:
|
147
|
-
min-width:
|
148
|
-
padding: 0
|
143
|
+
pointer-events: auto;
|
144
|
+
flex: none;
|
145
|
+
width: 50px; // 与高度相同,形成正方形
|
146
|
+
min-width: 50px;
|
147
|
+
padding: 0;
|
149
148
|
|
150
149
|
&:hover {
|
151
|
-
border-color: #7c4dff
|
152
|
-
color: #7c4dff
|
153
|
-
background-color: rgba(124, 77, 255, 0.04)
|
150
|
+
border-color: #7c4dff;
|
151
|
+
color: #7c4dff;
|
152
|
+
background-color: rgba(124, 77, 255, 0.04);
|
154
153
|
}
|
155
154
|
|
156
155
|
&:focus {
|
157
|
-
border-color: #7c4dff
|
158
|
-
color: #7c4dff
|
156
|
+
border-color: #7c4dff;
|
157
|
+
color: #7c4dff;
|
159
158
|
}
|
160
|
-
|
159
|
+
|
161
160
|
// 确保按钮内容不会干扰hover检测
|
162
161
|
* {
|
163
162
|
pointer-events: none;
|
@@ -172,12 +171,12 @@
|
|
172
171
|
// 确保菜单项可以正常点击
|
173
172
|
:global(.ant-dropdown-menu-item) {
|
174
173
|
cursor: pointer !important;
|
175
|
-
|
174
|
+
|
176
175
|
&:hover {
|
177
176
|
background-color: #f5f5f5 !important;
|
178
177
|
}
|
179
|
-
|
178
|
+
|
180
179
|
&:active {
|
181
180
|
background-color: #e6f7ff !important;
|
182
181
|
}
|
183
|
-
}
|
182
|
+
}
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
8
8
|
'pisell2.text.manual-order-discount': string;
|
9
9
|
'pisell2.text.order-no-payment-required': string;
|
10
10
|
'pisell2.text.order-no-payment-cannot-send-link': string;
|
11
|
+
'pisell2.text.additional-module.order-discount': string;
|
11
12
|
};
|
12
13
|
'zh-CN': {
|
13
14
|
'pisell2.text.others': string;
|
@@ -18,6 +19,7 @@ declare const _default: {
|
|
18
19
|
'pisell2.text.manual-order-discount': string;
|
19
20
|
'pisell2.text.order-no-payment-required': string;
|
20
21
|
'pisell2.text.order-no-payment-cannot-send-link': string;
|
22
|
+
'pisell2.text.additional-module.order-discount': string;
|
21
23
|
};
|
22
24
|
'zh-HK': {
|
23
25
|
'pisell2.text.others': string;
|
@@ -28,6 +30,7 @@ declare const _default: {
|
|
28
30
|
'pisell2.text.manual-order-discount': string;
|
29
31
|
'pisell2.text.order-no-payment-required': string;
|
30
32
|
'pisell2.text.order-no-payment-cannot-send-link': string;
|
33
|
+
'pisell2.text.additional-module.order-discount': string;
|
31
34
|
};
|
32
35
|
};
|
33
36
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export default {
|
2
|
-
|
2
|
+
en: {
|
3
3
|
'pisell2.text.others': 'Others',
|
4
4
|
'pisell2.text.order-note': 'Order Note',
|
5
5
|
'pisell2.text.print-receipt': 'Print Receipt',
|
@@ -7,7 +7,8 @@ export default {
|
|
7
7
|
'pisell2.text.send-link': 'Send Link',
|
8
8
|
'pisell2.text.manual-order-discount': 'Manual Order Discount',
|
9
9
|
'pisell2.text.order-no-payment-required': 'Order requires no payment, cannot manually adjust price',
|
10
|
-
'pisell2.text.order-no-payment-cannot-send-link': 'Order requires no payment, cannot send payment link.'
|
10
|
+
'pisell2.text.order-no-payment-cannot-send-link': 'Order requires no payment, cannot send payment link.',
|
11
|
+
'pisell2.text.additional-module.order-discount': 'Order Discount'
|
11
12
|
},
|
12
13
|
'zh-CN': {
|
13
14
|
'pisell2.text.others': '其他',
|
@@ -17,7 +18,8 @@ export default {
|
|
17
18
|
'pisell2.text.send-link': '发送链接',
|
18
19
|
'pisell2.text.manual-order-discount': '手动订单折扣',
|
19
20
|
'pisell2.text.order-no-payment-required': '订单已无需支付,不可手动改价',
|
20
|
-
'pisell2.text.order-no-payment-cannot-send-link': '订单已无需支付,不可发送支付链接'
|
21
|
+
'pisell2.text.order-no-payment-cannot-send-link': '订单已无需支付,不可发送支付链接',
|
22
|
+
'pisell2.text.additional-module.order-discount': '订单折扣'
|
21
23
|
},
|
22
24
|
'zh-HK': {
|
23
25
|
'pisell2.text.others': '其他',
|
@@ -27,6 +29,7 @@ export default {
|
|
27
29
|
'pisell2.text.send-link': '發送鏈接',
|
28
30
|
'pisell2.text.manual-order-discount': '手動訂單折扣',
|
29
31
|
'pisell2.text.order-no-payment-required': '訂單已無需支付,不可手動改價',
|
30
|
-
'pisell2.text.order-no-payment-cannot-send-link': '訂單已無需支付,不可發送支付鏈接'
|
32
|
+
'pisell2.text.order-no-payment-cannot-send-link': '訂單已無需支付,不可發送支付鏈接',
|
33
|
+
'pisell2.text.additional-module.order-discount': '订单折扣'
|
31
34
|
}
|
32
35
|
};
|
@@ -11,6 +11,7 @@ interface AmountSummaryProps {
|
|
11
11
|
onAmountChange?: (amount: string) => void;
|
12
12
|
onDepositStatusChange?: (isDeposit: boolean) => void;
|
13
13
|
onConfirm?: (action?: WalletBalanceConfirmAction) => void;
|
14
|
+
onBalanceDueAmountClick?: (action: string) => void;
|
14
15
|
paymentItems?: any[];
|
15
16
|
cartData?: any;
|
16
17
|
walletPassData?: {
|
@@ -21,5 +22,5 @@ interface AmountSummaryProps {
|
|
21
22
|
totalAmount?: number;
|
22
23
|
}
|
23
24
|
export declare type WalletBalanceConfirmAction = 'cancel' | 'save-without-deduct' | 'apply-deduct-now';
|
24
|
-
declare function AmountSummary({ amountSymbol, orderInfo, open_deposit, customAmount, balanceDueAmount, clientInfo, onAmountChange, onDepositStatusChange, onConfirm, paymentItems, cartData, walletPassData, totalAmount, }: AmountSummaryProps): JSX.Element;
|
25
|
+
declare function AmountSummary({ amountSymbol, orderInfo, open_deposit, customAmount, balanceDueAmount, clientInfo, onAmountChange, onDepositStatusChange, onBalanceDueAmountClick, onConfirm, paymentItems, cartData, walletPassData, totalAmount, }: AmountSummaryProps): JSX.Element;
|
25
26
|
export default AmountSummary;
|
@@ -13,7 +13,7 @@ import { Button, Dropdown } from 'antd';
|
|
13
13
|
import { CheckCircleOutlined, PieChartOutlined } from '@ant-design/icons';
|
14
14
|
import { Edit05 } from '@pisell/icon';
|
15
15
|
import { PisellModal } from '@pisell/materials';
|
16
|
-
import { locales,
|
16
|
+
import { locales, formatAmountWithOptions } from '@pisell/utils';
|
17
17
|
import Decimal from 'decimal.js';
|
18
18
|
import checkoutLocales from "../../locales";
|
19
19
|
import PaymentDetailModal from "../PaymentDetailModal";
|
@@ -64,6 +64,7 @@ function AmountSummary(_ref2) {
|
|
64
64
|
clientInfo = _ref2.clientInfo,
|
65
65
|
onAmountChange = _ref2.onAmountChange,
|
66
66
|
onDepositStatusChange = _ref2.onDepositStatusChange,
|
67
|
+
onBalanceDueAmountClick = _ref2.onBalanceDueAmountClick,
|
67
68
|
onConfirm = _ref2.onConfirm,
|
68
69
|
paymentItems = _ref2.paymentItems,
|
69
70
|
cartData = _ref2.cartData,
|
@@ -416,7 +417,12 @@ function AmountSummary(_ref2) {
|
|
416
417
|
className: classNames('payment-detail-label')
|
417
418
|
}, displayLabel), /*#__PURE__*/React.createElement("span", {
|
418
419
|
className: classNames('payment-detail-amount')
|
419
|
-
},
|
420
|
+
}, formatAmountWithOptions(item.value, amountSymbol, {
|
421
|
+
precision: 2,
|
422
|
+
hideDecimalForWholeNumbers: false,
|
423
|
+
useThousandsSeparator: true,
|
424
|
+
showCurrencySymbol: true
|
425
|
+
})));
|
420
426
|
});
|
421
427
|
};
|
422
428
|
|
@@ -504,7 +510,12 @@ function AmountSummary(_ref2) {
|
|
504
510
|
// }
|
505
511
|
|
506
512
|
// 格式化最终金额用于显示
|
507
|
-
var finalBalanceAmount =
|
513
|
+
var finalBalanceAmount = formatAmountWithOptions(balanceDecimal.toNumber(), amountSymbol, {
|
514
|
+
precision: 2,
|
515
|
+
hideDecimalForWholeNumbers: false,
|
516
|
+
useThousandsSeparator: true,
|
517
|
+
showCurrencySymbol: true
|
518
|
+
});
|
508
519
|
return /*#__PURE__*/React.createElement("div", {
|
509
520
|
className: classNames('confirm-payment-container')
|
510
521
|
}, /*#__PURE__*/React.createElement("div", {
|
@@ -531,7 +542,12 @@ function AmountSummary(_ref2) {
|
|
531
542
|
className: classNames('partial-paid-label')
|
532
543
|
}, getText('partial.paid') || 'Partial Paid'), /*#__PURE__*/React.createElement("span", {
|
533
544
|
className: classNames('partial-paid-amount')
|
534
|
-
},
|
545
|
+
}, formatAmountWithOptions(partialPaidAmount, amountSymbol, {
|
546
|
+
precision: 2,
|
547
|
+
hideDecimalForWholeNumbers: false,
|
548
|
+
useThousandsSeparator: true,
|
549
|
+
showCurrencySymbol: true
|
550
|
+
}))), renderSummaryItems(), hasMoreItems() && /*#__PURE__*/React.createElement("div", {
|
535
551
|
className: classNames('more-section'),
|
536
552
|
onClick: handleMoreClick,
|
537
553
|
style: {
|
@@ -556,7 +572,12 @@ function AmountSummary(_ref2) {
|
|
556
572
|
className: classNames('partial-paid-label')
|
557
573
|
}, getText('partial.paid') || 'Partial Paid'), /*#__PURE__*/React.createElement("span", {
|
558
574
|
className: classNames('partial-paid-amount')
|
559
|
-
},
|
575
|
+
}, formatAmountWithOptions(partialPaidAmount, amountSymbol, {
|
576
|
+
precision: 2,
|
577
|
+
hideDecimalForWholeNumbers: false,
|
578
|
+
useThousandsSeparator: true,
|
579
|
+
showCurrencySymbol: true
|
580
|
+
}))), renderSummaryItems(), hasMoreItems() && /*#__PURE__*/React.createElement("div", {
|
560
581
|
className: classNames('more-section'),
|
561
582
|
onClick: handleMoreClick,
|
562
583
|
style: {
|
@@ -616,7 +637,9 @@ function AmountSummary(_ref2) {
|
|
616
637
|
})), /*#__PURE__*/React.createElement("div", {
|
617
638
|
className: classNames('middle-section')
|
618
639
|
}, getMiddleContent()), /*#__PURE__*/React.createElement("div", {
|
619
|
-
className: classNames('balance-due-card'
|
640
|
+
className: classNames('balance-due-card', {
|
641
|
+
'confirm-mode': shouldShowConfirmMode()
|
642
|
+
})
|
620
643
|
},
|
621
644
|
// 如果应该显示确认模式,直接返回确认界面
|
622
645
|
shouldShowConfirmMode() ? renderConfirmMode() : /*#__PURE__*/React.createElement("div", {
|
@@ -624,12 +647,46 @@ function AmountSummary(_ref2) {
|
|
624
647
|
}, /*#__PURE__*/React.createElement("div", {
|
625
648
|
className: classNames('balance-due-label')
|
626
649
|
}, paymentType === 'deposit' ? getText('deposit.due') || 'Deposit Due' : getText('balance.due') || 'Balance Due'), /*#__PURE__*/React.createElement("div", {
|
627
|
-
className: classNames('balance-due-amount')
|
628
|
-
|
650
|
+
className: classNames('balance-due-amount'),
|
651
|
+
onClick: function onClick() {
|
652
|
+
onBalanceDueAmountClick === null || onBalanceDueAmountClick === void 0 || onBalanceDueAmountClick('manual-discount');
|
653
|
+
}
|
654
|
+
}, formatAmountWithOptions(balanceDueAmount, amountSymbol, {
|
655
|
+
precision: 2,
|
656
|
+
hideDecimalForWholeNumbers: false,
|
657
|
+
useThousandsSeparator: true,
|
658
|
+
showCurrencySymbol: true
|
659
|
+
}), /*#__PURE__*/React.createElement(Edit05, {
|
660
|
+
className: classNames('edit-icon'),
|
661
|
+
style: {
|
662
|
+
color: '#7F56DA'
|
663
|
+
}
|
664
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
665
|
+
className: classNames('pay-section'),
|
666
|
+
style: {
|
667
|
+
cursor: 'pointer'
|
668
|
+
},
|
669
|
+
role: "button"
|
670
|
+
}, /*#__PURE__*/React.createElement("span", {
|
671
|
+
className: classNames('pay-text')
|
672
|
+
}, getText('pay') || '支付'), /*#__PURE__*/React.createElement("span", {
|
673
|
+
className: classNames('pay-amount')
|
674
|
+
}, formatAmountWithOptions(function () {
|
675
|
+
try {
|
676
|
+
return new Decimal(currentAmount || '0').toNumber();
|
677
|
+
} catch (_unused7) {
|
678
|
+
return 0;
|
679
|
+
}
|
680
|
+
}(), amountSymbol, {
|
681
|
+
precision: 2,
|
682
|
+
hideDecimalForWholeNumbers: false,
|
683
|
+
useThousandsSeparator: true,
|
684
|
+
showCurrencySymbol: true
|
685
|
+
})))), !shouldShowConfirmMode() && /*#__PURE__*/React.createElement(PisellPriceKeyboardPopover, {
|
629
686
|
value: function () {
|
630
687
|
try {
|
631
688
|
return new Decimal(currentAmount || '0').toNumber();
|
632
|
-
} catch (
|
689
|
+
} catch (_unused8) {
|
633
690
|
return 0;
|
634
691
|
}
|
635
692
|
}()
|
@@ -642,28 +699,9 @@ function AmountSummary(_ref2) {
|
|
642
699
|
useThousandsSeparator: false,
|
643
700
|
selectType: "dark",
|
644
701
|
overlayClassName: "amount-summary-keyboard-popover"
|
645
|
-
}, /*#__PURE__*/React.createElement(
|
646
|
-
className: classNames('
|
647
|
-
|
648
|
-
cursor: 'pointer'
|
649
|
-
},
|
650
|
-
role: "button"
|
651
|
-
}, /*#__PURE__*/React.createElement("span", {
|
652
|
-
className: classNames('pay-text')
|
653
|
-
}, getText('pay') || '支付'), /*#__PURE__*/React.createElement("span", {
|
654
|
-
className: classNames('pay-amount')
|
655
|
-
}, formatAmount(function () {
|
656
|
-
try {
|
657
|
-
return new Decimal(currentAmount || '0').toNumber();
|
658
|
-
} catch (_unused8) {
|
659
|
-
return 0;
|
660
|
-
}
|
661
|
-
}(), 2, amountSymbol)), /*#__PURE__*/React.createElement(Edit05, {
|
662
|
-
className: classNames('edit-icon'),
|
663
|
-
style: {
|
664
|
-
color: '#7F56DA'
|
665
|
-
}
|
666
|
-
})))), /*#__PURE__*/React.createElement(PisellModal, {
|
702
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
703
|
+
className: classNames('split-payment-button')
|
704
|
+
}, getText('split.payment') || '拆分支付')), /*#__PURE__*/React.createElement(PisellModal, {
|
667
705
|
open: isPaymentDetailOpen,
|
668
706
|
onCancel: handlePaymentDetailClose,
|
669
707
|
footer: null,
|