@pisell/private-materials 6.4.42 → 6.5.2
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 +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- 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/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/actionButtons/index.js +8 -4
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/customiseItemModal/index.js +2 -2
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +42 -48
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +4 -18
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +20 -33
- package/es/components/booking/info2/cartClientCard/utils.d.ts +2 -2
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +443 -723
- package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -1
- package/es/components/checkout/components/AdditionalModule/index.js +49 -80
- package/es/components/checkout/components/AdditionalModule/index.less +34 -33
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -3
- package/es/components/checkout/components/AdditionalModule/locales.js +4 -7
- package/es/components/checkout/components/AmountSummary/index.d.ts +1 -2
- package/es/components/checkout/components/AmountSummary/index.js +31 -69
- package/es/components/checkout/components/AmountSummary/index.less +9 -27
- package/es/components/checkout/components/CashPaymentModule/index.less +2 -0
- package/es/components/checkout/components/PaymentDetailModal/index.js +10 -55
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.js +25 -40
- package/es/components/checkout/components/PaymentOptionsModule/index.less +6 -11
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +9 -42
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +82 -512
- package/es/components/checkout/components/PaymentResultToast/index.d.ts +1 -2
- package/es/components/checkout/components/PaymentResultToast/index.js +35 -90
- package/es/components/checkout/components/PaymentResultToast/index.less +77 -445
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -26
- package/es/components/checkout/components/PaymentResultToast/utils.js +2 -81
- package/es/components/checkout/components/ScrollableList/index.js +1 -0
- package/es/components/checkout/components/SearchAndClientModule/index.js +16 -17
- package/es/components/checkout/components/SearchAndClientModule/index.less +8 -29
- package/es/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +1 -3
- package/es/components/checkout/components/WalletPassModule/index.less +3 -3
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- 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 +38 -56
- package/es/components/checkout/locales.d.ts +0 -6
- package/es/components/checkout/locales.js +3 -9
- 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 +72 -111
- 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/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.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/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.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/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.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/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +58 -91
- package/es/components/pay/toB/components/MX51/index.js +44 -14
- package/es/components/pay/toB/types/index.d.ts +12 -0
- package/es/components/pay/toB/types/index.js +4 -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/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- 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/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- 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/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/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/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +13 -6
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
- 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.d.ts +4 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +5 -4
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- 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 +2 -4
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.js +5 -2
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/hooks/printer.d.ts +4 -0
- package/es/hooks/printer.js +35 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/plus/clientCard/index.js +2 -3
- package/es/plus/clientCard/index.less +32 -3
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +12 -9
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +19 -22
- package/es/utils/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -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/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/actionButtons/index.js +5 -4
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/customiseItemModal/index.js +2 -2
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +0 -3
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +3 -15
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +5 -16
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +2 -2
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +120 -247
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +34 -98
- package/lib/components/checkout/components/AdditionalModule/index.less +34 -33
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -3
- package/lib/components/checkout/components/AdditionalModule/locales.js +4 -7
- package/lib/components/checkout/components/AmountSummary/index.d.ts +1 -2
- package/lib/components/checkout/components/AmountSummary/index.js +47 -103
- package/lib/components/checkout/components/AmountSummary/index.less +9 -27
- package/lib/components/checkout/components/CashPaymentModule/index.less +2 -0
- package/lib/components/checkout/components/PaymentDetailModal/index.js +11 -56
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -2
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +8 -11
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +6 -11
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +9 -42
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +73 -279
- package/lib/components/checkout/components/PaymentResultToast/index.d.ts +1 -2
- package/lib/components/checkout/components/PaymentResultToast/index.js +22 -69
- package/lib/components/checkout/components/PaymentResultToast/index.less +77 -445
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -26
- package/lib/components/checkout/components/PaymentResultToast/utils.js +4 -58
- package/lib/components/checkout/components/ScrollableList/index.js +1 -0
- package/lib/components/checkout/components/SearchAndClientModule/index.js +15 -17
- package/lib/components/checkout/components/SearchAndClientModule/index.less +8 -29
- package/lib/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +2 -12
- package/lib/components/checkout/components/WalletPassModule/index.less +3 -3
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +2 -2
- package/lib/components/checkout/index.d.ts +1 -1
- package/lib/components/checkout/index.js +0 -2
- package/lib/components/checkout/index.less +38 -56
- package/lib/components/checkout/locales.d.ts +0 -6
- package/lib/components/checkout/locales.js +3 -9
- 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 +18 -26
- 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/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.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/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.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/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.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/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +10 -25
- package/lib/components/pay/toB/components/MX51/index.js +37 -12
- package/lib/components/pay/toB/types/index.d.ts +12 -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/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- 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/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- 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/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/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/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +15 -9
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
- 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.d.ts +4 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +12 -12
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +12 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +12 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +13 -5
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.js +2 -2
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/hooks/printer.d.ts +4 -0
- package/lib/hooks/printer.js +60 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/plus/clientCard/index.js +4 -5
- package/lib/plus/clientCard/index.less +32 -3
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +18 -6
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +19 -22
- package/lib/utils/index.d.ts +1 -1
- package/package.json +12 -12
@@ -1,10 +1,11 @@
|
|
1
|
-
import React from
|
2
|
-
import { Button, Dropdown } from
|
3
|
-
import { ClockCircleOutlined, LinkOutlined } from
|
1
|
+
import React from "react";
|
2
|
+
import { Button, Dropdown } from "antd";
|
3
|
+
import { FileTextOutlined, PrinterOutlined, ClockCircleOutlined, LinkOutlined, MoreOutlined } from "@ant-design/icons";
|
4
|
+
import { Calculator } from '@pisell/icon';
|
4
5
|
|
5
6
|
// @ts-ignore - @pisell/utils types not available
|
6
7
|
import { locales } from '@pisell/utils';
|
7
|
-
import {
|
8
|
+
import { Iconfont } from '@pisell/materials';
|
8
9
|
import "./index.less";
|
9
10
|
import { getLocale } from "../../../../utils/locales";
|
10
11
|
import localeTexts from "./locales";
|
@@ -24,6 +25,10 @@ function AdditionalModule(_ref) {
|
|
24
25
|
|
25
26
|
// 定义更多按钮的菜单项
|
26
27
|
var moreMenuItems = [{
|
28
|
+
key: 'manual-discount',
|
29
|
+
label: locales.getText('pisell2.text.manual-order-discount'),
|
30
|
+
icon: /*#__PURE__*/React.createElement(Calculator, null)
|
31
|
+
}, {
|
27
32
|
key: 'send-link',
|
28
33
|
label: locales.getText('pisell2.text.send-link'),
|
29
34
|
icon: /*#__PURE__*/React.createElement(LinkOutlined, null)
|
@@ -44,49 +49,31 @@ function AdditionalModule(_ref) {
|
|
44
49
|
className: "additional-module-button-base purple-theme ".concat(hasOrderNote ? 'note-button' : ''),
|
45
50
|
onClick: function onClick() {
|
46
51
|
handleButtonClick('order-note');
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
}),
|
52
|
-
size: "large"
|
53
|
-
}, locales.getText('pisell2.text.order-note'), hasOrderNote && /*#__PURE__*/React.createElement("span", {
|
52
|
+
}
|
53
|
+
}, /*#__PURE__*/React.createElement(FileTextOutlined, {
|
54
|
+
className: "additional-module-button-icon"
|
55
|
+
}), locales.getText('pisell2.text.order-note'), hasOrderNote && /*#__PURE__*/React.createElement("span", {
|
54
56
|
className: "note-indicator"
|
55
|
-
}, /*#__PURE__*/React.createElement(
|
57
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
56
58
|
type: "pisell2-info-circle2"
|
57
59
|
}))), /*#__PURE__*/React.createElement(Button, {
|
58
60
|
className: "additional-module-button-base purple-theme",
|
59
61
|
onClick: function onClick() {
|
60
62
|
handleButtonClick('print-receipt');
|
61
|
-
}
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
}),
|
66
|
-
size: "large"
|
67
|
-
}, locales.getText('pisell2.text.print-receipt'))), /*#__PURE__*/React.createElement("div", {
|
63
|
+
}
|
64
|
+
}, /*#__PURE__*/React.createElement(PrinterOutlined, {
|
65
|
+
className: "additional-module-button-icon"
|
66
|
+
}), locales.getText('pisell2.text.print-receipt'))), /*#__PURE__*/React.createElement("div", {
|
68
67
|
className: "additional-module-button-row"
|
69
68
|
}, /*#__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, {
|
80
69
|
className: "additional-module-button-base ".concat(disabled ? 'disabled-theme' : 'orange-theme'),
|
81
70
|
onClick: function onClick() {
|
82
71
|
handleButtonClick('save-pay-later');
|
83
72
|
},
|
84
|
-
disabled: disabled
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
})
|
89
|
-
}, locales.getText('pisell2.text.save-pay-later')), /*#__PURE__*/React.createElement(Dropdown, {
|
73
|
+
disabled: disabled
|
74
|
+
}, /*#__PURE__*/React.createElement(ClockCircleOutlined, {
|
75
|
+
className: "additional-module-button-icon"
|
76
|
+
}), locales.getText('pisell2.text.save-pay-later')), /*#__PURE__*/React.createElement(Dropdown, {
|
90
77
|
menu: {
|
91
78
|
items: moreMenuItems,
|
92
79
|
onClick: function onClick(_ref2) {
|
@@ -99,6 +86,9 @@ function AdditionalModule(_ref) {
|
|
99
86
|
Toast.fail(locales.getText('pisell2.text.order-no-payment-cannot-send-link'));
|
100
87
|
}
|
101
88
|
}
|
89
|
+
if (key === 'manual-discount') {
|
90
|
+
handleButtonClick('manual-discount');
|
91
|
+
}
|
102
92
|
}
|
103
93
|
},
|
104
94
|
trigger: ['click'],
|
@@ -112,13 +102,10 @@ function AdditionalModule(_ref) {
|
|
112
102
|
console.log('Dropdown state changed:', open);
|
113
103
|
}
|
114
104
|
}, /*#__PURE__*/React.createElement(Button, {
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
size: 20
|
120
|
-
})
|
121
|
-
})))) :
|
105
|
+
className: "additional-module-button-base more-button"
|
106
|
+
}, /*#__PURE__*/React.createElement(MoreOutlined, {
|
107
|
+
className: "additional-module-button-icon"
|
108
|
+
}))))) :
|
122
109
|
/*#__PURE__*/
|
123
110
|
// Flex布局模式:一行布局(不显示现金支付模块时)
|
124
111
|
React.createElement("div", {
|
@@ -127,47 +114,29 @@ function AdditionalModule(_ref) {
|
|
127
114
|
className: "additional-module-button-base purple-theme ".concat(hasOrderNote ? 'note-button' : ''),
|
128
115
|
onClick: function onClick() {
|
129
116
|
handleButtonClick('order-note');
|
130
|
-
}
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
className: "additional-module-button-icon"
|
135
|
-
})
|
136
|
-
}, locales.getText('pisell2.text.order-note'), hasOrderNote && /*#__PURE__*/React.createElement("span", {
|
117
|
+
}
|
118
|
+
}, /*#__PURE__*/React.createElement(FileTextOutlined, {
|
119
|
+
className: "additional-module-button-icon"
|
120
|
+
}), locales.getText('pisell2.text.order-note'), hasOrderNote && /*#__PURE__*/React.createElement("span", {
|
137
121
|
className: "note-indicator"
|
138
|
-
}, /*#__PURE__*/React.createElement(
|
122
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
139
123
|
type: "pisell2-info-circle2"
|
140
124
|
}))), /*#__PURE__*/React.createElement(Button, {
|
141
125
|
className: "additional-module-button-base purple-theme",
|
142
126
|
onClick: function onClick() {
|
143
127
|
handleButtonClick('print-receipt');
|
144
|
-
}
|
145
|
-
|
146
|
-
|
147
|
-
|
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, {
|
128
|
+
}
|
129
|
+
}, /*#__PURE__*/React.createElement(PrinterOutlined, {
|
130
|
+
className: "additional-module-button-icon"
|
131
|
+
}), locales.getText('pisell2.text.print-receipt')), /*#__PURE__*/React.createElement(Button, {
|
161
132
|
className: "additional-module-button-base ".concat(disabled ? 'disabled-theme' : 'orange-theme'),
|
162
133
|
onClick: function onClick() {
|
163
134
|
handleButtonClick('save-pay-later');
|
164
135
|
},
|
165
|
-
disabled: disabled
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
})
|
170
|
-
}, locales.getText('pisell2.text.save-pay-later')), /*#__PURE__*/React.createElement(Dropdown, {
|
136
|
+
disabled: disabled
|
137
|
+
}, /*#__PURE__*/React.createElement(ClockCircleOutlined, {
|
138
|
+
className: "additional-module-button-icon"
|
139
|
+
}), locales.getText('pisell2.text.save-pay-later')), /*#__PURE__*/React.createElement(Dropdown, {
|
171
140
|
menu: {
|
172
141
|
items: moreMenuItems,
|
173
142
|
onClick: function onClick(_ref3) {
|
@@ -180,6 +149,9 @@ function AdditionalModule(_ref) {
|
|
180
149
|
Toast.fail(locales.getText('pisell2.text.order-no-payment-cannot-send-link'));
|
181
150
|
}
|
182
151
|
}
|
152
|
+
if (key === 'manual-discount') {
|
153
|
+
handleButtonClick('manual-discount');
|
154
|
+
}
|
183
155
|
}
|
184
156
|
},
|
185
157
|
trigger: ['click'],
|
@@ -193,12 +165,9 @@ function AdditionalModule(_ref) {
|
|
193
165
|
console.log('Dropdown state changed:', open);
|
194
166
|
}
|
195
167
|
}, /*#__PURE__*/React.createElement(Button, {
|
196
|
-
className: "additional-module-button-base more-button"
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
size: 20
|
201
|
-
})
|
202
|
-
})))));
|
168
|
+
className: "additional-module-button-base more-button"
|
169
|
+
}, /*#__PURE__*/React.createElement(MoreOutlined, {
|
170
|
+
className: "additional-module-button-icon"
|
171
|
+
}))))));
|
203
172
|
}
|
204
173
|
export default AdditionalModule;
|
@@ -3,50 +3,50 @@
|
|
3
3
|
|
4
4
|
// 标题样式
|
5
5
|
&-title {
|
6
|
-
font-size:
|
6
|
+
font-size: 24px;
|
7
7
|
font-weight: 600;
|
8
8
|
color: #1a1a1a;
|
9
|
-
margin-bottom:
|
9
|
+
margin-bottom: 16px;
|
10
10
|
}
|
11
11
|
|
12
12
|
// 按钮容器 - 支持两种布局模式
|
13
13
|
&-buttons-container {
|
14
14
|
display: flex;
|
15
15
|
flex-direction: column;
|
16
|
-
gap:
|
16
|
+
gap: 12px;
|
17
17
|
}
|
18
18
|
|
19
19
|
// 按钮行容器
|
20
20
|
&-button-row {
|
21
21
|
display: flex;
|
22
|
-
gap:
|
22
|
+
gap: 12px;
|
23
23
|
}
|
24
24
|
|
25
25
|
// 基础按钮样式
|
26
26
|
&-button-base {
|
27
27
|
flex: 1;
|
28
|
-
|
29
|
-
border-
|
28
|
+
height: 56px;
|
29
|
+
border-width: 2px;
|
30
|
+
border-radius: 12px;
|
30
31
|
background-color: transparent;
|
31
|
-
font-size:
|
32
|
-
font-weight:
|
32
|
+
font-size: 18px;
|
33
|
+
font-weight: 500;
|
33
34
|
display: flex;
|
34
35
|
align-items: center;
|
35
36
|
justify-content: center;
|
36
|
-
|
37
|
-
padding-right: 12px;
|
37
|
+
gap: 12px;
|
38
38
|
|
39
39
|
// 紫色主题按钮(Order Note, Print Receipt)
|
40
40
|
&.purple-theme {
|
41
|
-
border-color: #
|
42
|
-
color: #
|
41
|
+
border-color: #7c4dff;
|
42
|
+
color: #7c4dff;
|
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: #ff9100;
|
49
|
+
color: #ff9100;
|
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: 56px; // 与高度相同,形成正方形
|
70
|
+
min-width: 56px;
|
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,28 +135,29 @@
|
|
135
135
|
}
|
136
136
|
}
|
137
137
|
|
138
|
+
|
138
139
|
// 更多按钮样式(保持与其他按钮一致)
|
139
140
|
.additional-module-button-base.more-button {
|
140
|
-
border-color: #
|
141
|
+
border-color: #D0D5DD;
|
141
142
|
color: #475467;
|
142
143
|
position: relative;
|
143
|
-
pointer-events: auto;
|
144
|
-
flex: none;
|
145
|
-
width:
|
146
|
-
min-width:
|
147
|
-
padding: 0;
|
144
|
+
pointer-events: auto !important;
|
145
|
+
flex: none !important;
|
146
|
+
width: 56px !important; // 与高度相同,形成正方形
|
147
|
+
min-width: 56px !important;
|
148
|
+
padding: 0 !important;
|
148
149
|
|
149
150
|
&:hover {
|
150
|
-
border-color: #7c4dff;
|
151
|
-
color: #7c4dff;
|
152
|
-
background-color: rgba(124, 77, 255, 0.04);
|
151
|
+
border-color: #7c4dff !important;
|
152
|
+
color: #7c4dff !important;
|
153
|
+
background-color: rgba(124, 77, 255, 0.04) !important;
|
153
154
|
}
|
154
155
|
|
155
156
|
&:focus {
|
156
|
-
border-color: #7c4dff;
|
157
|
-
color: #7c4dff;
|
157
|
+
border-color: #7c4dff !important;
|
158
|
+
color: #7c4dff !important;
|
158
159
|
}
|
159
|
-
|
160
|
+
|
160
161
|
// 确保按钮内容不会干扰hover检测
|
161
162
|
* {
|
162
163
|
pointer-events: none;
|
@@ -171,12 +172,12 @@
|
|
171
172
|
// 确保菜单项可以正常点击
|
172
173
|
:global(.ant-dropdown-menu-item) {
|
173
174
|
cursor: pointer !important;
|
174
|
-
|
175
|
+
|
175
176
|
&:hover {
|
176
177
|
background-color: #f5f5f5 !important;
|
177
178
|
}
|
178
|
-
|
179
|
+
|
179
180
|
&:active {
|
180
181
|
background-color: #e6f7ff !important;
|
181
182
|
}
|
182
|
-
}
|
183
|
+
}
|
@@ -8,7 +8,6 @@ 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;
|
12
11
|
};
|
13
12
|
'zh-CN': {
|
14
13
|
'pisell2.text.others': string;
|
@@ -19,7 +18,6 @@ declare const _default: {
|
|
19
18
|
'pisell2.text.manual-order-discount': string;
|
20
19
|
'pisell2.text.order-no-payment-required': string;
|
21
20
|
'pisell2.text.order-no-payment-cannot-send-link': string;
|
22
|
-
'pisell2.text.additional-module.order-discount': string;
|
23
21
|
};
|
24
22
|
'zh-HK': {
|
25
23
|
'pisell2.text.others': string;
|
@@ -30,7 +28,6 @@ declare const _default: {
|
|
30
28
|
'pisell2.text.manual-order-discount': string;
|
31
29
|
'pisell2.text.order-no-payment-required': string;
|
32
30
|
'pisell2.text.order-no-payment-cannot-send-link': string;
|
33
|
-
'pisell2.text.additional-module.order-discount': string;
|
34
31
|
};
|
35
32
|
};
|
36
33
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export default {
|
2
|
-
en: {
|
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,8 +7,7 @@ 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.'
|
11
|
-
'pisell2.text.additional-module.order-discount': 'Order Discount'
|
10
|
+
'pisell2.text.order-no-payment-cannot-send-link': 'Order requires no payment, cannot send payment link.'
|
12
11
|
},
|
13
12
|
'zh-CN': {
|
14
13
|
'pisell2.text.others': '其他',
|
@@ -18,8 +17,7 @@ export default {
|
|
18
17
|
'pisell2.text.send-link': '发送链接',
|
19
18
|
'pisell2.text.manual-order-discount': '手动订单折扣',
|
20
19
|
'pisell2.text.order-no-payment-required': '订单已无需支付,不可手动改价',
|
21
|
-
'pisell2.text.order-no-payment-cannot-send-link': '订单已无需支付,不可发送支付链接'
|
22
|
-
'pisell2.text.additional-module.order-discount': '订单折扣'
|
20
|
+
'pisell2.text.order-no-payment-cannot-send-link': '订单已无需支付,不可发送支付链接'
|
23
21
|
},
|
24
22
|
'zh-HK': {
|
25
23
|
'pisell2.text.others': '其他',
|
@@ -29,7 +27,6 @@ export default {
|
|
29
27
|
'pisell2.text.send-link': '發送鏈接',
|
30
28
|
'pisell2.text.manual-order-discount': '手動訂單折扣',
|
31
29
|
'pisell2.text.order-no-payment-required': '訂單已無需支付,不可手動改價',
|
32
|
-
'pisell2.text.order-no-payment-cannot-send-link': '訂單已無需支付,不可發送支付鏈接'
|
33
|
-
'pisell2.text.additional-module.order-discount': '订单折扣'
|
30
|
+
'pisell2.text.order-no-payment-cannot-send-link': '訂單已無需支付,不可發送支付鏈接'
|
34
31
|
}
|
35
32
|
};
|
@@ -11,7 +11,6 @@ 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;
|
15
14
|
paymentItems?: any[];
|
16
15
|
cartData?: any;
|
17
16
|
walletPassData?: {
|
@@ -22,5 +21,5 @@ interface AmountSummaryProps {
|
|
22
21
|
totalAmount?: number;
|
23
22
|
}
|
24
23
|
export declare type WalletBalanceConfirmAction = 'cancel' | 'save-without-deduct' | 'apply-deduct-now';
|
25
|
-
declare function AmountSummary({ amountSymbol, orderInfo, open_deposit, customAmount, balanceDueAmount, clientInfo, onAmountChange, onDepositStatusChange,
|
24
|
+
declare function AmountSummary({ amountSymbol, orderInfo, open_deposit, customAmount, balanceDueAmount, clientInfo, onAmountChange, onDepositStatusChange, onConfirm, paymentItems, cartData, walletPassData, totalAmount, }: AmountSummaryProps): JSX.Element;
|
26
25
|
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, formatAmount } from '@pisell/utils';
|
17
17
|
import Decimal from 'decimal.js';
|
18
18
|
import checkoutLocales from "../../locales";
|
19
19
|
import PaymentDetailModal from "../PaymentDetailModal";
|
@@ -64,7 +64,6 @@ function AmountSummary(_ref2) {
|
|
64
64
|
clientInfo = _ref2.clientInfo,
|
65
65
|
onAmountChange = _ref2.onAmountChange,
|
66
66
|
onDepositStatusChange = _ref2.onDepositStatusChange,
|
67
|
-
onBalanceDueAmountClick = _ref2.onBalanceDueAmountClick,
|
68
67
|
onConfirm = _ref2.onConfirm,
|
69
68
|
paymentItems = _ref2.paymentItems,
|
70
69
|
cartData = _ref2.cartData,
|
@@ -417,12 +416,7 @@ function AmountSummary(_ref2) {
|
|
417
416
|
className: classNames('payment-detail-label')
|
418
417
|
}, displayLabel), /*#__PURE__*/React.createElement("span", {
|
419
418
|
className: classNames('payment-detail-amount')
|
420
|
-
},
|
421
|
-
precision: 2,
|
422
|
-
hideDecimalForWholeNumbers: false,
|
423
|
-
useThousandsSeparator: true,
|
424
|
-
showCurrencySymbol: true
|
425
|
-
})));
|
419
|
+
}, formatAmount(item.value, 2, amountSymbol)));
|
426
420
|
});
|
427
421
|
};
|
428
422
|
|
@@ -510,12 +504,7 @@ function AmountSummary(_ref2) {
|
|
510
504
|
// }
|
511
505
|
|
512
506
|
// 格式化最终金额用于显示
|
513
|
-
var finalBalanceAmount =
|
514
|
-
precision: 2,
|
515
|
-
hideDecimalForWholeNumbers: false,
|
516
|
-
useThousandsSeparator: true,
|
517
|
-
showCurrencySymbol: true
|
518
|
-
});
|
507
|
+
var finalBalanceAmount = formatAmount(balanceDecimal.toNumber(), 2, amountSymbol);
|
519
508
|
return /*#__PURE__*/React.createElement("div", {
|
520
509
|
className: classNames('confirm-payment-container')
|
521
510
|
}, /*#__PURE__*/React.createElement("div", {
|
@@ -542,12 +531,7 @@ function AmountSummary(_ref2) {
|
|
542
531
|
className: classNames('partial-paid-label')
|
543
532
|
}, getText('partial.paid') || 'Partial Paid'), /*#__PURE__*/React.createElement("span", {
|
544
533
|
className: classNames('partial-paid-amount')
|
545
|
-
},
|
546
|
-
precision: 2,
|
547
|
-
hideDecimalForWholeNumbers: false,
|
548
|
-
useThousandsSeparator: true,
|
549
|
-
showCurrencySymbol: true
|
550
|
-
}))), renderSummaryItems(), hasMoreItems() && /*#__PURE__*/React.createElement("div", {
|
534
|
+
}, formatAmount(partialPaidAmount, 2, amountSymbol))), renderSummaryItems(), hasMoreItems() && /*#__PURE__*/React.createElement("div", {
|
551
535
|
className: classNames('more-section'),
|
552
536
|
onClick: handleMoreClick,
|
553
537
|
style: {
|
@@ -572,12 +556,7 @@ function AmountSummary(_ref2) {
|
|
572
556
|
className: classNames('partial-paid-label')
|
573
557
|
}, getText('partial.paid') || 'Partial Paid'), /*#__PURE__*/React.createElement("span", {
|
574
558
|
className: classNames('partial-paid-amount')
|
575
|
-
},
|
576
|
-
precision: 2,
|
577
|
-
hideDecimalForWholeNumbers: false,
|
578
|
-
useThousandsSeparator: true,
|
579
|
-
showCurrencySymbol: true
|
580
|
-
}))), renderSummaryItems(), hasMoreItems() && /*#__PURE__*/React.createElement("div", {
|
559
|
+
}, formatAmount(partialPaidAmount, 2, amountSymbol))), renderSummaryItems(), hasMoreItems() && /*#__PURE__*/React.createElement("div", {
|
581
560
|
className: classNames('more-section'),
|
582
561
|
onClick: handleMoreClick,
|
583
562
|
style: {
|
@@ -637,9 +616,7 @@ function AmountSummary(_ref2) {
|
|
637
616
|
})), /*#__PURE__*/React.createElement("div", {
|
638
617
|
className: classNames('middle-section')
|
639
618
|
}, getMiddleContent()), /*#__PURE__*/React.createElement("div", {
|
640
|
-
className: classNames('balance-due-card'
|
641
|
-
'confirm-mode': shouldShowConfirmMode()
|
642
|
-
})
|
619
|
+
className: classNames('balance-due-card')
|
643
620
|
},
|
644
621
|
// 如果应该显示确认模式,直接返回确认界面
|
645
622
|
shouldShowConfirmMode() ? renderConfirmMode() : /*#__PURE__*/React.createElement("div", {
|
@@ -647,46 +624,12 @@ function AmountSummary(_ref2) {
|
|
647
624
|
}, /*#__PURE__*/React.createElement("div", {
|
648
625
|
className: classNames('balance-due-label')
|
649
626
|
}, paymentType === 'deposit' ? getText('deposit.due') || 'Deposit Due' : getText('balance.due') || 'Balance Due'), /*#__PURE__*/React.createElement("div", {
|
650
|
-
className: classNames('balance-due-amount')
|
651
|
-
|
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, {
|
627
|
+
className: classNames('balance-due-amount')
|
628
|
+
}, formatAmount(balanceDueAmount, 2, amountSymbol))), !shouldShowConfirmMode() && /*#__PURE__*/React.createElement(PisellPriceKeyboardPopover, {
|
686
629
|
value: function () {
|
687
630
|
try {
|
688
631
|
return new Decimal(currentAmount || '0').toNumber();
|
689
|
-
} catch (
|
632
|
+
} catch (_unused7) {
|
690
633
|
return 0;
|
691
634
|
}
|
692
635
|
}()
|
@@ -699,9 +642,28 @@ function AmountSummary(_ref2) {
|
|
699
642
|
useThousandsSeparator: false,
|
700
643
|
selectType: "dark",
|
701
644
|
overlayClassName: "amount-summary-keyboard-popover"
|
702
|
-
}, /*#__PURE__*/React.createElement(
|
703
|
-
className: classNames('
|
704
|
-
|
645
|
+
}, /*#__PURE__*/React.createElement("div", {
|
646
|
+
className: classNames('pay-section'),
|
647
|
+
style: {
|
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, {
|
705
667
|
open: isPaymentDetailOpen,
|
706
668
|
onCancel: handlePaymentDetailClose,
|
707
669
|
footer: null,
|