@pisell/private-materials 6.1.1 → 6.2.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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/businessModel/SalesModel/Sales/index.js +37 -4
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +13 -4
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +171 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.d.ts +6 -1
- package/es/components/Sales/Checkout/utils.js +15 -4
- package/es/components/Sales/Customer/index.d.ts +1 -0
- package/es/components/Sales/Customer/index.js +1 -0
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +7 -0
- package/es/components/Sales/Resource/serve.js +10 -0
- package/es/components/Sales/Summary/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +15 -0
- package/es/components/Sales/Summary/utils.js +43 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/es/components/appointmentBooking/components/Content/index.js +15 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Form/index.js +1 -1
- package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Form/utils.js +17 -15
- package/es/components/appointmentBooking/components/Header/index.js +2 -1
- package/es/components/appointmentBooking/components/Resource/index.js +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +9 -33
- package/es/components/booking/components/footer/utils.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +47 -18
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/{pay/toB/store/provider.js → booking/components/reloadResourceModal/index.js} +48 -52
- package/es/components/booking/components/reloadResourceModal/index.less +6 -0
- package/es/components/booking/components/voucher/index.js +2 -2
- package/es/components/booking/editBookingModal/index.d.ts +5 -0
- package/es/components/booking/editBookingModal/index.js +386 -0
- package/es/components/booking/editBookingModal/index.less +8 -0
- package/es/components/booking/editBookingModal/locales.d.ts +21 -0
- package/es/components/booking/editBookingModal/locales.js +20 -0
- package/es/components/booking/editBookingModal/mock.d.ts +807 -0
- package/es/components/booking/editBookingModal/mock.js +2993 -0
- package/es/components/booking/editBookingModal/serve.d.ts +51 -0
- package/es/components/booking/editBookingModal/serve.js +288 -0
- package/es/components/booking/editBookingModal/type.d.ts +12 -0
- package/es/components/booking/editBookingModal/type.js +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/editBookingModal/utils.js +157 -0
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useIsBooking4Shop.js +2 -2
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.js +2 -2
- package/es/components/booking/info/client/index.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +8 -1
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/index.js +4 -5
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.js +1 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceManager/index.js +4 -4
- package/es/components/booking/info/service2/utils.js +6 -4
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/index.js +45 -13
- package/es/components/booking/info2/service/addService/index.js +22 -9
- package/es/components/booking/info2/service/addService/utils.d.ts +10 -0
- package/es/components/booking/info2/service/addService/utils.js +48 -14
- package/es/components/booking/info2/service/addTimeModal/index.js +32 -9
- package/es/components/booking/info2/service/editService/Resources/index.js +22 -8
- package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/es/components/booking/info2/service/editService/index.js +12 -15
- package/es/components/booking/info2/utils.js +13 -16
- package/es/components/booking/info2/utilsByBooking.js +10 -1
- package/es/components/booking/locales.d.ts +12 -0
- package/es/components/booking/locales.js +12 -0
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/model.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/const.d.ts +4 -1
- package/es/components/eftposPay/const.js +3 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/hooks.js +3 -1
- package/es/components/eftposPay/index.js +1 -1
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/const.js +82 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/hooks/index.js +2 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/{pay/toB/store/hooks.js → eftposPay/linkly/hooks/useTimeQuery.js} +252 -59
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/index.js +197 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/linkly/service.js +81 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/pay.d.ts +1 -1
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/payo/config.js +30 -3
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/index.js +22 -4
- package/es/components/eventBooking/index.js +21 -7
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +30 -6
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productSelect/components/pisellPriceText/index.js +2 -3
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/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/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Content/index.js +9 -0
- package/es/components/stepController/components/Content/index.less +8 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/components/Footer/index.js +15 -0
- package/es/components/stepController/components/Footer/index.less +39 -0
- package/es/components/stepController/components/Header/index.d.ts +20 -0
- package/es/components/stepController/components/Header/index.js +97 -0
- package/es/components/stepController/components/Header/index.less +21 -0
- package/es/components/stepController/index.d.ts +5 -0
- package/es/components/stepController/index.js +64 -0
- package/es/components/stepController/index.less +11 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/locales.js +32 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/stepController/types.js +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +19 -9
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +141 -142
- package/es/components/ticketBooking/index.js +4 -3
- package/es/components/ticketBooking/serve.d.ts +0 -1
- package/es/components/ticketBooking/serve.js +0 -26
- package/es/components/ticketBooking/utils/index.js +2 -1
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/hooks/useWindowSize.js +26 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/lib/businessModel/SalesModel/Sales/index.js +22 -8
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +9 -4
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +120 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.d.ts +6 -1
- package/lib/components/Sales/Checkout/utils.js +7 -3
- package/lib/components/Sales/Customer/index.d.ts +1 -0
- package/lib/components/Sales/Customer/index.js +1 -0
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +7 -0
- package/lib/components/Sales/Resource/serve.js +9 -2
- package/lib/components/Sales/Summary/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +15 -0
- package/lib/components/Sales/Summary/utils.js +30 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/lib/components/appointmentBooking/components/Content/index.js +6 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Form/index.js +6 -1
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
- package/lib/components/appointmentBooking/components/Header/index.js +1 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +4 -23
- package/lib/components/booking/components/footer/utils.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +27 -7
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
- package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
- package/lib/components/booking/components/voucher/index.js +2 -2
- package/lib/components/booking/editBookingModal/index.d.ts +5 -0
- package/lib/components/booking/editBookingModal/index.js +363 -0
- package/lib/components/booking/editBookingModal/index.less +8 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
- package/lib/components/booking/editBookingModal/locales.js +44 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
- package/lib/components/booking/editBookingModal/mock.js +3314 -0
- package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
- package/lib/components/booking/editBookingModal/serve.js +178 -0
- package/lib/components/booking/editBookingModal/type.d.ts +12 -0
- package/lib/components/{pay/toB/store/context.js → booking/editBookingModal/type.js} +3 -18
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/editBookingModal/utils.js +158 -0
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.js +2 -2
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.js +3 -3
- package/lib/components/booking/info/client/index.js +19 -57
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +6 -1
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/index.js +6 -4
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.js +3 -3
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.js +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceManager/index.js +3 -3
- package/lib/components/booking/info/service2/utils.js +5 -4
- package/lib/components/booking/info/utils.js +2 -1
- package/lib/components/booking/info2/index.js +64 -25
- package/lib/components/booking/info2/service/addService/index.js +20 -7
- package/lib/components/booking/info2/service/addService/utils.d.ts +10 -0
- package/lib/components/booking/info2/service/addService/utils.js +32 -5
- package/lib/components/booking/info2/service/addTimeModal/index.js +26 -10
- package/lib/components/booking/info2/service/editService/Resources/index.js +54 -10
- package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/lib/components/booking/info2/service/editService/index.js +25 -28
- package/lib/components/booking/info2/utils.js +0 -15
- package/lib/components/booking/info2/utilsByBooking.js +7 -1
- package/lib/components/booking/locales.d.ts +12 -0
- package/lib/components/booking/locales.js +12 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/model.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/const.d.ts +4 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/hooks.js +11 -4
- package/lib/components/eftposPay/index.js +1 -1
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/const.js +102 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/{pay/toB/types → eftposPay/linkly/hooks}/index.js +7 -5
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/index.js +208 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/linkly/service.js +55 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/pay.d.ts +1 -1
- package/lib/components/eftposPay/pay.js +13 -2
- package/lib/components/eftposPay/payo/config.js +22 -2
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/{pay/toB/components → eventBooking/components/Provider/Cart/Deposit}/index.js +26 -22
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +10 -4
- package/lib/components/eventBooking/index.js +11 -7
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +30 -6
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productSelect/components/pisellPriceText/index.js +2 -8
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/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/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/{pay/toB/components/Content/Header.js → stepController/components/Content/index.js} +9 -9
- package/lib/components/stepController/components/Content/index.less +8 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/{pay/toB/components/CardGroup → stepController/components/Footer}/index.js +17 -11
- package/lib/components/stepController/components/Footer/index.less +39 -0
- package/lib/components/stepController/components/Header/index.d.ts +20 -0
- package/lib/components/stepController/components/Header/index.js +104 -0
- package/lib/components/stepController/components/Header/index.less +21 -0
- package/lib/components/stepController/index.d.ts +5 -0
- package/lib/components/stepController/index.js +89 -0
- package/lib/components/stepController/index.less +11 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/locales.js +50 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/{pay/toB/store/index.js → stepController/types.js} +3 -13
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +22 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +147 -143
- package/lib/components/ticketBooking/index.js +5 -16
- package/lib/components/ticketBooking/serve.d.ts +0 -1
- package/lib/components/ticketBooking/serve.js +0 -11
- package/lib/components/ticketBooking/utils/index.js +2 -1
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/hooks/useWindowSize.js +51 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lowcode/edit-booking-modal/meta.ts +53 -0
- package/lowcode/step-controller/meta.ts +88 -0
- package/package.json +3 -3
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/es/components/pay/toB/components/Cache/index.js +0 -94
- package/es/components/pay/toB/components/Cache/index.less +0 -41
- package/es/components/pay/toB/components/Card/index.d.ts +0 -7
- package/es/components/pay/toB/components/Card/index.js +0 -32
- package/es/components/pay/toB/components/Card/index.less +0 -26
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/es/components/pay/toB/components/CardGroup/index.js +0 -22
- package/es/components/pay/toB/components/CardGroup/index.less +0 -18
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/es/components/pay/toB/components/ConfirmedPayment/index.js +0 -67
- package/es/components/pay/toB/components/ConfirmedPayment/index.less +0 -69
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/es/components/pay/toB/components/Content/Footer.js +0 -36
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/es/components/pay/toB/components/Content/Header.js +0 -12
- package/es/components/pay/toB/components/Content/index.d.ts +0 -4
- package/es/components/pay/toB/components/Content/index.js +0 -277
- package/es/components/pay/toB/components/Content/index.less +0 -9
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/Content/utils.js +0 -76
- package/es/components/pay/toB/components/index.d.ts +0 -5
- package/es/components/pay/toB/components/index.js +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/hooks.js +0 -30
- package/es/components/pay/toB/index.d.ts +0 -3
- package/es/components/pay/toB/index.js +0 -24
- package/es/components/pay/toB/locales.d.ts +0 -54
- package/es/components/pay/toB/locales.js +0 -65
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/context.js +0 -2
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/index.js +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/store/utils.js +0 -66
- package/es/components/pay/toB/types/index.d.ts +0 -1
- package/es/components/pay/toB/types/index.js +0 -1
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -141
- package/es/components/pay/toB/types/storeTypes.js +0 -24
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/lib/components/pay/toB/components/Cache/index.js +0 -108
- package/lib/components/pay/toB/components/Cache/index.less +0 -41
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -7
- package/lib/components/pay/toB/components/Card/index.js +0 -66
- package/lib/components/pay/toB/components/Card/index.less +0 -26
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/lib/components/pay/toB/components/CardGroup/index.less +0 -18
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/lib/components/pay/toB/components/ConfirmedPayment/index.js +0 -77
- package/lib/components/pay/toB/components/ConfirmedPayment/index.less +0 -69
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/lib/components/pay/toB/components/Content/Footer.js +0 -63
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.js +0 -209
- package/lib/components/pay/toB/components/Content/index.less +0 -9
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/Content/utils.js +0 -91
- package/lib/components/pay/toB/components/index.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/hooks.js +0 -60
- package/lib/components/pay/toB/index.d.ts +0 -3
- package/lib/components/pay/toB/index.js +0 -54
- package/lib/components/pay/toB/locales.d.ts +0 -54
- package/lib/components/pay/toB/locales.js +0 -77
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/hooks.js +0 -85
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/store/provider.js +0 -70
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/store/utils.js +0 -72
- package/lib/components/pay/toB/types/index.d.ts +0 -1
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -141
- package/lib/components/pay/toB/types/storeTypes.js +0 -36
- package/lowcode/tob-pay/meta.ts +0 -44
@@ -1,54 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
en: {
|
3
|
-
'tobPay.text.back': string;
|
4
|
-
'tobPay.text.waitPay': string;
|
5
|
-
'tobPay.text.card.edit.amount': string;
|
6
|
-
'tobPay.text.group.normalPay': string;
|
7
|
-
'tobPay.text.group.thirdPay': string;
|
8
|
-
'tobPay.text.cancel': string;
|
9
|
-
'tobPay.text.submit': string;
|
10
|
-
'tobPay.text.confirmed.payment': string;
|
11
|
-
'tobPay.text.cash.modal.amount.toPay': string;
|
12
|
-
'tobPay.text.cash.modal.input.title': string;
|
13
|
-
'tobPay.text.cash.modal.no.change.given': string;
|
14
|
-
'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
|
15
|
-
'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
|
16
|
-
'tobPay.text.cash.modal.ok': string;
|
17
|
-
'tobPay.text.payment.with.surcharge': string;
|
18
|
-
};
|
19
|
-
'zh-CN': {
|
20
|
-
'tobPay.text.back': string;
|
21
|
-
'tobPay.text.waitPay': string;
|
22
|
-
'tobPay.text.card.edit.amount': string;
|
23
|
-
'tobPay.text.group.normalPay': string;
|
24
|
-
'tobPay.text.group.thirdPay': string;
|
25
|
-
'tobPay.text.cancel': string;
|
26
|
-
'tobPay.text.submit': string;
|
27
|
-
'tobPay.text.confirmed.payment': string;
|
28
|
-
'tobPay.text.cash.modal.amount.toPay': string;
|
29
|
-
'tobPay.text.cash.modal.input.title': string;
|
30
|
-
'tobPay.text.cash.modal.no.change.given': string;
|
31
|
-
'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
|
32
|
-
'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
|
33
|
-
'tobPay.text.cash.modal.ok': string;
|
34
|
-
'tobPay.text.payment.with.surcharge': string;
|
35
|
-
};
|
36
|
-
'zh-HK': {
|
37
|
-
'tobPay.text.back': string;
|
38
|
-
'tobPay.text.waitPay': string;
|
39
|
-
'tobPay.text.card.edit.amount': string;
|
40
|
-
'tobPay.text.group.normalPay': string;
|
41
|
-
'tobPay.text.group.thirdPay': string;
|
42
|
-
'tobPay.text.cancel': string;
|
43
|
-
'tobPay.text.submit': string;
|
44
|
-
'tobPay.text.confirmed.payment': string;
|
45
|
-
'tobPay.text.cash.modal.amount.toPay': string;
|
46
|
-
'tobPay.text.cash.modal.input.title': string;
|
47
|
-
'tobPay.text.cash.modal.no.change.given': string;
|
48
|
-
'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
|
49
|
-
'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
|
50
|
-
'tobPay.text.cash.modal.ok': string;
|
51
|
-
'tobPay.text.payment.with.surcharge': string;
|
52
|
-
};
|
53
|
-
};
|
54
|
-
export default _default;
|
@@ -1,65 +0,0 @@
|
|
1
|
-
export default {
|
2
|
-
en: {
|
3
|
-
'tobPay.text.back': 'Back',
|
4
|
-
'tobPay.text.waitPay': 'Wait Pay: ',
|
5
|
-
'tobPay.text.card.edit.amount': 'Edit Amount',
|
6
|
-
'tobPay.text.group.normalPay': 'Payment Method',
|
7
|
-
'tobPay.text.group.thirdPay': 'Third Party Payment Providers',
|
8
|
-
'tobPay.text.cancel': 'Cancel',
|
9
|
-
'tobPay.text.submit': 'Confirm Payment',
|
10
|
-
'tobPay.text.confirmed.payment': 'Confirmed Payment Method',
|
11
|
-
'tobPay.text.cash.modal.amount.toPay': 'Amount to pay',
|
12
|
-
'tobPay.text.cash.modal.input.title': 'Amount given by customer',
|
13
|
-
'tobPay.text.cash.modal.no.change.given': 'No change given',
|
14
|
-
'tobPay.text.cash.modal.amount.pay.change': function tobPayTextCashModalAmountPayChange(money) {
|
15
|
-
return "".concat(money, " change");
|
16
|
-
},
|
17
|
-
'tobPay.text.cash.modal.amount.left.pay.paid': function tobPayTextCashModalAmountLeftPayPaid(money) {
|
18
|
-
return "".concat(money, " left to be paid");
|
19
|
-
},
|
20
|
-
'tobPay.text.cash.modal.ok': 'Collect cash',
|
21
|
-
'tobPay.text.payment.with.surcharge': 'Inc. Surcharge'
|
22
|
-
},
|
23
|
-
'zh-CN': {
|
24
|
-
'tobPay.text.back': '返回',
|
25
|
-
'tobPay.text.waitPay': '待支付:',
|
26
|
-
'tobPay.text.card.edit.amount': '编辑金额',
|
27
|
-
'tobPay.text.group.normalPay': '支付方式',
|
28
|
-
'tobPay.text.group.thirdPay': '第三方支付提供商',
|
29
|
-
'tobPay.text.cancel': '取消',
|
30
|
-
'tobPay.text.submit': '确认支付',
|
31
|
-
'tobPay.text.confirmed.payment': '已确认支付方式',
|
32
|
-
'tobPay.text.cash.modal.amount.toPay': '剩余待支付金额',
|
33
|
-
'tobPay.text.cash.modal.input.title': '客户给的金额',
|
34
|
-
'tobPay.text.cash.modal.no.change.given': '无需找零',
|
35
|
-
'tobPay.text.cash.modal.amount.pay.change': function tobPayTextCashModalAmountPayChange(money) {
|
36
|
-
return "\u627E\u96F6 ".concat(money);
|
37
|
-
},
|
38
|
-
'tobPay.text.cash.modal.amount.left.pay.paid': function tobPayTextCashModalAmountLeftPayPaid(money) {
|
39
|
-
return "\u8FD8\u9700\u652F\u4ED8 ".concat(money);
|
40
|
-
},
|
41
|
-
'tobPay.text.cash.modal.ok': '现金支付',
|
42
|
-
'tobPay.text.payment.with.surcharge': '包含手续费'
|
43
|
-
},
|
44
|
-
'zh-HK': {
|
45
|
-
'tobPay.text.back': '返回',
|
46
|
-
'tobPay.text.waitPay': '待支付:',
|
47
|
-
'tobPay.text.card.edit.amount': '編輯金額',
|
48
|
-
'tobPay.text.group.normalPay': '支付方式',
|
49
|
-
'tobPay.text.group.thirdPay': '第三方支付提供商',
|
50
|
-
'tobPay.text.cancel': '取消',
|
51
|
-
'tobPay.text.submit': '確認支付',
|
52
|
-
'tobPay.text.confirmed.payment': '已確認支付方式',
|
53
|
-
'tobPay.text.cash.modal.amount.toPay': '剩餘待支付金額',
|
54
|
-
'tobPay.text.cash.modal.input.title': '客戶給的金額',
|
55
|
-
'tobPay.text.cash.modal.no.change.given': '無需找零',
|
56
|
-
'tobPay.text.cash.modal.amount.pay.change': function tobPayTextCashModalAmountPayChange(money) {
|
57
|
-
return "\u627E\u96F6 ".concat(money, " ");
|
58
|
-
},
|
59
|
-
'tobPay.text.cash.modal.amount.left.pay.paid': function tobPayTextCashModalAmountLeftPayPaid(money) {
|
60
|
-
return "\u9084\u9700\u652F\u4ED8 ".concat(money);
|
61
|
-
},
|
62
|
-
'tobPay.text.cash.modal.ok': '現金支付',
|
63
|
-
'tobPay.text.payment.with.surcharge': '包含手續費'
|
64
|
-
}
|
65
|
-
};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { ToBPayContextType } from '../types';
|
2
|
-
/**
|
3
|
-
* 使用商家端支付的Hook
|
4
|
-
* @throws {Error} 如果在ToBPayProvider外部使用会抛出错误
|
5
|
-
* @returns {ToBPayContextType} 商家端支付上下文
|
6
|
-
*/
|
7
|
-
export declare const useToBPay: () => ToBPayContextType;
|
8
|
-
export declare const useOSPayment: () => any;
|
9
|
-
/**
|
10
|
-
* 使用OS支付的Hook
|
11
|
-
*/
|
12
|
-
export declare const useOSPaymentEffect: () => {
|
13
|
-
osPaymentEffectOn: () => void;
|
14
|
-
osPaymentEffectOff: () => void;
|
15
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { PayMethod, PayMethodGroup } from '../types';
|
2
|
-
/**
|
3
|
-
* 处理支付方式列表
|
4
|
-
* @param payMethodList 支付方式列表
|
5
|
-
* @returns 处理后的支付方式列表
|
6
|
-
*/
|
7
|
-
export declare const handlePayMethodList: (payMethodList: PayMethod[]) => PayMethodGroup[];
|
8
|
-
/**
|
9
|
-
* inputNumber过滤
|
10
|
-
* @param value
|
11
|
-
* @returns string
|
12
|
-
*/
|
13
|
-
export declare const limitDecimals: (value: any) => any;
|
@@ -1,66 +0,0 @@
|
|
1
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
2
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
3
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
4
|
-
import { locales } from '@pisell/utils';
|
5
|
-
import { PayMethodCode } from "../types";
|
6
|
-
|
7
|
-
/**
|
8
|
-
* 处理支付方式列表
|
9
|
-
* @param payMethodList 支付方式列表
|
10
|
-
* @returns 处理后的支付方式列表
|
11
|
-
*/
|
12
|
-
export var handlePayMethodList = function handlePayMethodList(payMethodList) {
|
13
|
-
if (payMethodList.length <= 0) {
|
14
|
-
return [];
|
15
|
-
}
|
16
|
-
var list = [];
|
17
|
-
var normalPay = {
|
18
|
-
title: locales.getText('tobPay.text.group.normalPay'),
|
19
|
-
list: []
|
20
|
-
};
|
21
|
-
var thirdPay = {
|
22
|
-
title: locales.getText('tobPay.text.group.thirdPay'),
|
23
|
-
list: []
|
24
|
-
};
|
25
|
-
var _iterator = _createForOfIteratorHelper(payMethodList),
|
26
|
-
_step;
|
27
|
-
try {
|
28
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
29
|
-
var item = _step.value;
|
30
|
-
if ((item === null || item === void 0 ? void 0 : item.status) === 1) {
|
31
|
-
if (item.code === PayMethodCode.CASHMANUAL) {
|
32
|
-
normalPay.list.push(item);
|
33
|
-
} else if (item.type === 'eftpos') {
|
34
|
-
thirdPay.list.push(item);
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
} catch (err) {
|
39
|
-
_iterator.e(err);
|
40
|
-
} finally {
|
41
|
-
_iterator.f();
|
42
|
-
}
|
43
|
-
if (normalPay.list.length > 0) {
|
44
|
-
list.push(normalPay);
|
45
|
-
}
|
46
|
-
if (thirdPay.list.length > 0) {
|
47
|
-
list.push(thirdPay);
|
48
|
-
}
|
49
|
-
return list;
|
50
|
-
};
|
51
|
-
|
52
|
-
/**
|
53
|
-
* inputNumber过滤
|
54
|
-
* @param value
|
55
|
-
* @returns string
|
56
|
-
*/
|
57
|
-
export var limitDecimals = function limitDecimals(value) {
|
58
|
-
var reg = /^(\-)*(\d+)\.(\d\d).*$/;
|
59
|
-
if (typeof value === 'string') {
|
60
|
-
return !isNaN(Number(value)) ? value.replace(reg, '$1$2.$3') : '';
|
61
|
-
} else if (typeof value === 'number') {
|
62
|
-
return !isNaN(value) ? String(value).replace(reg, '$1$2.$3') : '';
|
63
|
-
} else {
|
64
|
-
return '';
|
65
|
-
}
|
66
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './storeTypes';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./storeTypes";
|
@@ -1,141 +0,0 @@
|
|
1
|
-
export interface ToBPayContextType {
|
2
|
-
/** 订单 */
|
3
|
-
order: Order;
|
4
|
-
/** 设置订单 */
|
5
|
-
setOrder: (order: Order) => void;
|
6
|
-
/** 订单信息 */
|
7
|
-
orderInfo: OrderInfo;
|
8
|
-
/** 设置订单信息 */
|
9
|
-
setOrderInfo: (orderInfo: OrderInfo) => void;
|
10
|
-
/** 支付方式列表 */
|
11
|
-
payMethodGroupList: PayMethodGroup[];
|
12
|
-
/** 获取支付方式列表 */
|
13
|
-
getPayMethodList: () => Promise<void>;
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* OS支付的订单信息
|
17
|
-
*/
|
18
|
-
export interface Order {
|
19
|
-
/** 订单唯一标识 */
|
20
|
-
uuid: string;
|
21
|
-
/** 订单 id */
|
22
|
-
id: number;
|
23
|
-
/** 订单信息 */
|
24
|
-
order_info: OrderInfo;
|
25
|
-
/** 作废的支付项 */
|
26
|
-
adjust_offline_payments: any[];
|
27
|
-
/** 支付项 */
|
28
|
-
payment: Payment[];
|
29
|
-
/** 支付状态 */
|
30
|
-
payment_status: string;
|
31
|
-
/** 税费 */
|
32
|
-
tax_fee: string;
|
33
|
-
/** 订单总金额 */
|
34
|
-
total_amount: string;
|
35
|
-
/** 待付金额 */
|
36
|
-
expect_amount: string;
|
37
|
-
}
|
38
|
-
/**
|
39
|
-
* 订单信息
|
40
|
-
*/
|
41
|
-
export interface OrderInfo {
|
42
|
-
/** 订单 id */
|
43
|
-
order_id: number;
|
44
|
-
/** 订单总金额 */
|
45
|
-
total_amount: string;
|
46
|
-
/** 是否是定金订单 */
|
47
|
-
is_deposit: 0 | 1;
|
48
|
-
/** 定金金额 */
|
49
|
-
deposit_amount: string;
|
50
|
-
}
|
51
|
-
/**
|
52
|
-
* 支付方式
|
53
|
-
*/
|
54
|
-
export interface PayMethod {
|
55
|
-
/** 支付方式 id */
|
56
|
-
id: number;
|
57
|
-
/** 店铺 id */
|
58
|
-
shop_id: number;
|
59
|
-
/** 支付方式代码 */
|
60
|
-
code: PayMethodCode;
|
61
|
-
/** 支付方式类型 */
|
62
|
-
type: string;
|
63
|
-
/** 支付方式名称 */
|
64
|
-
name: string;
|
65
|
-
/** 支付方式描述 */
|
66
|
-
description: string;
|
67
|
-
/** 支付方式通道 */
|
68
|
-
channel_application: string[];
|
69
|
-
/** 支付方式状态 */
|
70
|
-
status: 0 | 1;
|
71
|
-
/** 是否是附加费用 */
|
72
|
-
is_surcharge: 0 | 1;
|
73
|
-
/** 是否禁用 */
|
74
|
-
disable: 0 | 1;
|
75
|
-
/** 支付方式公司 */
|
76
|
-
companies: any;
|
77
|
-
/** 支付方式额外数据 */
|
78
|
-
metadata?: {
|
79
|
-
order_rounding_switch: number;
|
80
|
-
};
|
81
|
-
/** 创建时间 */
|
82
|
-
created_at: string;
|
83
|
-
/** 更新时间 */
|
84
|
-
updated_at: string;
|
85
|
-
/** 删除时间 */
|
86
|
-
deleted_at: string | null;
|
87
|
-
/** 固定费用 */
|
88
|
-
fixed: string;
|
89
|
-
/** 百分比费用 */
|
90
|
-
percentage: string;
|
91
|
-
}
|
92
|
-
export declare enum PayMethodCode {
|
93
|
-
/** 现金支付 */
|
94
|
-
CASHMANUAL = "CASHMANUAL",
|
95
|
-
/** eftpos payo */
|
96
|
-
EFTPOS_PAYO = "EFTPOS_PAYO",
|
97
|
-
/** eftpos windcave */
|
98
|
-
EFTPOS_WINDCAVE = "EFTPOS_WINDCAVE",
|
99
|
-
/** eftpos tyro */
|
100
|
-
EFTPOS_TYRO = "EFTPOS_TYRO",
|
101
|
-
/** eftpos linkly */
|
102
|
-
EFTPOS_LINKLY = "EFTPOS_LINKLY"
|
103
|
-
}
|
104
|
-
export interface PayMethodGroup {
|
105
|
-
title: string;
|
106
|
-
list: PayMethod[];
|
107
|
-
}
|
108
|
-
/**
|
109
|
-
* 已经支付的信息
|
110
|
-
*/
|
111
|
-
export interface Payment {
|
112
|
-
/** 当前支付项的唯一 ID,用于标记支付项的唯一性 */
|
113
|
-
uuid: string;
|
114
|
-
/** 当前支付方式付出去多少钱 */
|
115
|
-
amount: number;
|
116
|
-
/** 支付类型,跟支付列表上对应的支付方式保持一致 */
|
117
|
-
code: PayMethodCode;
|
118
|
-
/** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
119
|
-
id: number;
|
120
|
-
/** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
121
|
-
name: string;
|
122
|
-
/** 支付类型type,跟支付列表上对应的支付方式保持一致 */
|
123
|
-
type: string;
|
124
|
-
/** 代金券、充值卡、积分卡 等wallet pass id,通过order/deduction 查出来的,本期都为空 */
|
125
|
-
voucher_id?: string | null;
|
126
|
-
/** 该支付项是否已经同步给后端 */
|
127
|
-
isSynced?: boolean;
|
128
|
-
/** 支付时间 */
|
129
|
-
created_at?: string;
|
130
|
-
/** 支付方式额外数据 */
|
131
|
-
metadata?: {
|
132
|
-
unique_payment_number: string;
|
133
|
-
};
|
134
|
-
/** 手续费 */
|
135
|
-
service_charge?: {
|
136
|
-
/** 手续费百分比 */
|
137
|
-
percentage?: number | string;
|
138
|
-
/** 手续费固定金额 */
|
139
|
-
amount?: number | string;
|
140
|
-
};
|
141
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* OS支付的订单信息
|
3
|
-
*/
|
4
|
-
|
5
|
-
/**
|
6
|
-
* 订单信息
|
7
|
-
*/
|
8
|
-
|
9
|
-
/**
|
10
|
-
* 支付方式
|
11
|
-
*/
|
12
|
-
|
13
|
-
export var PayMethodCode = /*#__PURE__*/function (PayMethodCode) {
|
14
|
-
PayMethodCode["CASHMANUAL"] = "CASHMANUAL";
|
15
|
-
PayMethodCode["EFTPOS_PAYO"] = "EFTPOS_PAYO";
|
16
|
-
PayMethodCode["EFTPOS_WINDCAVE"] = "EFTPOS_WINDCAVE";
|
17
|
-
PayMethodCode["EFTPOS_TYRO"] = "EFTPOS_TYRO";
|
18
|
-
PayMethodCode["EFTPOS_LINKLY"] = "EFTPOS_LINKLY";
|
19
|
-
return PayMethodCode;
|
20
|
-
}({});
|
21
|
-
|
22
|
-
/**
|
23
|
-
* 已经支付的信息
|
24
|
-
*/
|
@@ -1,108 +0,0 @@
|
|
1
|
-
var __create = Object.create;
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
-
};
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
-
for (let key of __getOwnPropNames(from))
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
-
}
|
17
|
-
return to;
|
18
|
-
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
-
mod
|
26
|
-
));
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
-
|
29
|
-
// src/components/pay/toB/components/Cache/index.tsx
|
30
|
-
var Cache_exports = {};
|
31
|
-
__export(Cache_exports, {
|
32
|
-
default: () => Cache_default
|
33
|
-
});
|
34
|
-
module.exports = __toCommonJS(Cache_exports);
|
35
|
-
var import_react = __toESM(require("react"));
|
36
|
-
var import_utils = require("@pisell/utils");
|
37
|
-
var import_antd = require("antd");
|
38
|
-
var import_materials = require("@pisell/materials");
|
39
|
-
var import_utils2 = require("../../store/utils");
|
40
|
-
var import_store = require("../../store");
|
41
|
-
var import_hooks = require("../../hooks");
|
42
|
-
var import_index = require("./index.less");
|
43
|
-
var ToBPayCache = (props) => {
|
44
|
-
const { open, title, uuid, expect_amount = "", onCancel, onOk } = props;
|
45
|
-
const osPayment = (0, import_store.useOSPayment)();
|
46
|
-
const symbol = (0, import_hooks.useSymbol)();
|
47
|
-
const [inputAmount, setInputAmount] = (0, import_react.useState)(expect_amount);
|
48
|
-
const [payDesc, setPayDesc] = (0, import_react.useState)("");
|
49
|
-
(0, import_react.useEffect)(() => {
|
50
|
-
setInputAmount(expect_amount);
|
51
|
-
}, [expect_amount]);
|
52
|
-
(0, import_react.useEffect)(() => {
|
53
|
-
osPayment.getRemainingOrderAmountWithInputAsync(inputAmount, uuid).then((res) => {
|
54
|
-
if (Number(res) === 0) {
|
55
|
-
setPayDesc(import_utils.locales.getText("tobPay.text.cash.modal.no.change.given"));
|
56
|
-
}
|
57
|
-
if (Number(res) < 0) {
|
58
|
-
setPayDesc(
|
59
|
-
import_utils.locales.getText("tobPay.text.cash.modal.amount.pay.change")(
|
60
|
-
`${symbol}${Math.abs(Number(res))}`
|
61
|
-
)
|
62
|
-
);
|
63
|
-
}
|
64
|
-
if (Number(res) > 0) {
|
65
|
-
setPayDesc(
|
66
|
-
import_utils.locales.getText("tobPay.text.cash.modal.amount.left.pay.paid")(
|
67
|
-
`${symbol}${res}`
|
68
|
-
)
|
69
|
-
);
|
70
|
-
}
|
71
|
-
});
|
72
|
-
}, [inputAmount]);
|
73
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
74
|
-
import_materials.PisellModal,
|
75
|
-
{
|
76
|
-
title,
|
77
|
-
open,
|
78
|
-
onCancel,
|
79
|
-
okButtonProps: {
|
80
|
-
disabled: Number(inputAmount) <= 0
|
81
|
-
},
|
82
|
-
okText: import_utils.locales.getText("tobPay.text.cash.modal.ok"),
|
83
|
-
onOk: () => {
|
84
|
-
onOk(inputAmount);
|
85
|
-
},
|
86
|
-
destroyOnClose: true
|
87
|
-
},
|
88
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "tob-pay-cache" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "tob-pay-cache-money" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "tob-pay-cache-text" }, import_utils.locales.getText("tobPay.text.cash.modal.amount.toPay")), /* @__PURE__ */ import_react.default.createElement("div", { className: "tob-pay-cache-num" }, symbol, Number(expect_amount).toFixed(2))), /* @__PURE__ */ import_react.default.createElement("div", { className: "tob-pay-cache-title" }, import_utils.locales.getText("tobPay.text.cash.modal.input.title")), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
89
|
-
import_antd.InputNumber,
|
90
|
-
{
|
91
|
-
precision: 2,
|
92
|
-
value: inputAmount,
|
93
|
-
min: 0,
|
94
|
-
formatter: import_utils2.limitDecimals,
|
95
|
-
parser: import_utils2.limitDecimals,
|
96
|
-
onChange: (event) => {
|
97
|
-
if (event !== null && event !== void 0) {
|
98
|
-
setInputAmount(event);
|
99
|
-
} else {
|
100
|
-
setInputAmount("0");
|
101
|
-
}
|
102
|
-
},
|
103
|
-
style: { width: "100%" }
|
104
|
-
}
|
105
|
-
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "tob-pay-cache-desc" }, payDesc))
|
106
|
-
);
|
107
|
-
};
|
108
|
-
var Cache_default = ToBPayCache;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
.tob-pay-cache {
|
2
|
-
padding: 24px 0;
|
3
|
-
|
4
|
-
.tob-pay-cache-money {
|
5
|
-
display: flex;
|
6
|
-
align-items: center;
|
7
|
-
justify-content: space-between;
|
8
|
-
|
9
|
-
.tob-pay-cache-text {
|
10
|
-
height: 22px;
|
11
|
-
font-size: 16px;
|
12
|
-
font-weight: 650;
|
13
|
-
line-height: 22px;
|
14
|
-
color: #1a1a1a;
|
15
|
-
}
|
16
|
-
|
17
|
-
.tob-pay-cache-num {
|
18
|
-
height: 22px;
|
19
|
-
font-size: 16px;
|
20
|
-
|
21
|
-
font-weight: 600;
|
22
|
-
line-height: 22px;
|
23
|
-
color: #1a1a1a;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
.tob-pay-cache-title {
|
28
|
-
margin: 24px 0 8px 0;
|
29
|
-
font-size: 16px;
|
30
|
-
font-weight: 600;
|
31
|
-
line-height: 22px;
|
32
|
-
color: #1a1a1a;
|
33
|
-
}
|
34
|
-
|
35
|
-
.tob-pay-cache-desc {
|
36
|
-
margin-top: 8px;
|
37
|
-
font-size: 14px;
|
38
|
-
font-weight: 400;
|
39
|
-
color: #8c8c8c;
|
40
|
-
}
|
41
|
-
}
|
@@ -1,66 +0,0 @@
|
|
1
|
-
var __create = Object.create;
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
-
};
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
-
for (let key of __getOwnPropNames(from))
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
-
}
|
17
|
-
return to;
|
18
|
-
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
-
mod
|
26
|
-
));
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
-
|
29
|
-
// src/components/pay/toB/components/Card/index.tsx
|
30
|
-
var Card_exports = {};
|
31
|
-
__export(Card_exports, {
|
32
|
-
default: () => Card_default
|
33
|
-
});
|
34
|
-
module.exports = __toCommonJS(Card_exports);
|
35
|
-
var import_react = __toESM(require("react"));
|
36
|
-
var import_utils = require("@pisell/utils");
|
37
|
-
var import_materials = require("@pisell/materials");
|
38
|
-
var import_index = require("./index.less");
|
39
|
-
var ToBPayCard = ({
|
40
|
-
data,
|
41
|
-
onChange
|
42
|
-
}) => {
|
43
|
-
const { name, type } = data;
|
44
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "tob-pay-card", onClick: () => onChange(data, "pay") }, /* @__PURE__ */ import_react.default.createElement(
|
45
|
-
import_materials.Iconfont,
|
46
|
-
{
|
47
|
-
type: "icona-zu6491",
|
48
|
-
style: {
|
49
|
-
color: "var(--theme-color)",
|
50
|
-
fontSize: "30px",
|
51
|
-
marginBottom: "10px"
|
52
|
-
}
|
53
|
-
}
|
54
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: "tob-pay-card-name" }, name || ""), type === "eftpos" ? /* @__PURE__ */ import_react.default.createElement(
|
55
|
-
import_materials.Button,
|
56
|
-
{
|
57
|
-
type: "link",
|
58
|
-
onClick: (e) => {
|
59
|
-
e.stopPropagation();
|
60
|
-
onChange(data, "fullPay");
|
61
|
-
}
|
62
|
-
},
|
63
|
-
import_utils.locales.getText("tobPay.text.card.edit.amount")
|
64
|
-
) : null);
|
65
|
-
};
|
66
|
-
var Card_default = ToBPayCard;
|