@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
@@ -5,21 +5,25 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
5
5
|
import React from 'react';
|
6
6
|
import { locales } from '@pisell/utils';
|
7
7
|
import { PisellText } from '@pisell/materials';
|
8
|
-
import { useSummary } from "../../../../../Sales";
|
8
|
+
import { useCart, useSummary } from "../../../../../Sales";
|
9
9
|
import useEngineContext from "../../../../../../hooks/useEngineContext";
|
10
10
|
import "./index.less";
|
11
11
|
import classNames from 'classnames';
|
12
12
|
var Total = function Total(_ref) {
|
13
|
-
var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$g;
|
13
|
+
var _context$appHelper, _context$appHelper$ge, _cartData$cartItems, _cartData$cartItems2, _context$appHelper2, _context$appHelper2$g;
|
14
14
|
var className = _ref.className,
|
15
15
|
isFooter = _ref.isFooter;
|
16
|
+
var _useCart = useCart(),
|
17
|
+
cartData = _useCart.cartData;
|
16
18
|
var _useSummary = useSummary(),
|
17
19
|
taxTitle = _useSummary.taxTitle,
|
18
20
|
totalTaxFee = _useSummary.totalTaxFee,
|
19
21
|
isPriceIncludeTax = _useSummary.isPriceIncludeTax,
|
20
|
-
total = _useSummary.total
|
22
|
+
total = _useSummary.total,
|
23
|
+
deposit = _useSummary.deposit;
|
21
24
|
var context = useEngineContext();
|
22
|
-
console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), 'wh97978');
|
25
|
+
console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), deposit, 'wh97978');
|
26
|
+
var showDeposit = (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && (deposit === null || deposit === void 0 ? void 0 : deposit.hasDeposit);
|
23
27
|
return /*#__PURE__*/React.createElement("div", {
|
24
28
|
className: "event-total-wrap ".concat(className)
|
25
29
|
}, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("div", {
|
@@ -31,8 +35,8 @@ var Total = function Total(_ref) {
|
|
31
35
|
className: classNames('event-total', _defineProperty({}, ['total-gst-wrap'], !isPriceIncludeTax && Number(totalTaxFee) > 0))
|
32
36
|
}, /*#__PURE__*/React.createElement("div", {
|
33
37
|
className: "left"
|
34
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
|
35
|
-
value: total,
|
38
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, isFooter && showDeposit ? locales.getText('pisell2.appointment.deposit') : locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
|
39
|
+
value: (cartData === null || cartData === void 0 || (_cartData$cartItems2 = cartData.cartItems) === null || _cartData$cartItems2 === void 0 ? void 0 : _cartData$cartItems2.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? deposit === null || deposit === void 0 ? void 0 : deposit.total : total,
|
36
40
|
showCurrencySymbol: true,
|
37
41
|
className: "event-amount"
|
38
42
|
}) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("span", {
|
@@ -5,8 +5,10 @@ import { useCart, useHolder, useSummary, useStep } from "../../../../../Sales";
|
|
5
5
|
import SelectHolderModal from "../../SelectHolderModal";
|
6
6
|
import ContinueButton from "../ContinueButton";
|
7
7
|
import Total from "./Total";
|
8
|
+
import Deposit from "../Deposit";
|
8
9
|
import "./index.less";
|
9
10
|
var CartItem = function CartItem() {
|
11
|
+
var _cartData$cartItems;
|
10
12
|
var _useHolder = useHolder(),
|
11
13
|
open = _useHolder.open,
|
12
14
|
holderData = _useHolder.holderData,
|
@@ -17,7 +19,7 @@ var CartItem = function CartItem() {
|
|
17
19
|
cartData = _useCart.cartData,
|
18
20
|
addNoteToCartItem = _useCart.addNoteToCartItem;
|
19
21
|
var _useSummary = useSummary(),
|
20
|
-
|
22
|
+
deposit = _useSummary.deposit;
|
21
23
|
var _useStep = useStep(),
|
22
24
|
isLastStep = _useStep.isLastStep;
|
23
25
|
var handleClickCard = function handleClickCard(e, type, key) {
|
@@ -56,7 +58,7 @@ var CartItem = function CartItem() {
|
|
56
58
|
}
|
57
59
|
})), /*#__PURE__*/React.createElement("div", {
|
58
60
|
className: "event-footer"
|
59
|
-
}, /*#__PURE__*/React.createElement(Total, null), /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
|
61
|
+
}, /*#__PURE__*/React.createElement(Total, null), (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? /*#__PURE__*/React.createElement(Deposit, null) : null, /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
|
60
62
|
open: open
|
61
63
|
}));
|
62
64
|
};
|
@@ -7,7 +7,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
8
8
|
import { isMobile, locales } from '@pisell/utils';
|
9
9
|
import { Skeleton } from 'antd';
|
10
|
-
import { useEvent, useSales, useEventDetail, useStep } from "../../../../Sales";
|
10
|
+
import { useEvent, useSales, useEventDetail, useStep, useCustomer } from "../../../../Sales";
|
11
11
|
import BookingServiceList from "../../bookingServiceList";
|
12
12
|
import BookingDetailModal from "../../bookingDetailModal";
|
13
13
|
import "./index.less";
|
@@ -31,6 +31,8 @@ var Event = function Event() {
|
|
31
31
|
lists = _useState2[0],
|
32
32
|
setLists = _useState2[1];
|
33
33
|
var customer = useLoginUser();
|
34
|
+
var _useCustomer = useCustomer(),
|
35
|
+
appUtils = _useCustomer.appUtils;
|
34
36
|
useEffect(function () {
|
35
37
|
var _data$stepData;
|
36
38
|
var eventList = (eventData === null || eventData === void 0 ? void 0 : eventData.eventList) || [];
|
@@ -45,16 +47,23 @@ var Event = function Event() {
|
|
45
47
|
}
|
46
48
|
}, [eventData === null || eventData === void 0 ? void 0 : eventData.eventList]);
|
47
49
|
useEffect(function () {
|
48
|
-
var _data$resourceData;
|
50
|
+
var _data$resourceData, _appUtils$getHistory, _history$location;
|
49
51
|
var id = data === null || data === void 0 || (_data$resourceData = data.resourceData) === null || _data$resourceData === void 0 || (_data$resourceData = _data$resourceData.currentResourceItem) === null || _data$resourceData === void 0 ? void 0 : _data$resourceData.id;
|
50
52
|
if (!id) return;
|
51
|
-
|
53
|
+
var history = (appUtils === null || appUtils === void 0 || (_appUtils$getHistory = appUtils.getHistory) === null || _appUtils$getHistory === void 0 ? void 0 : _appUtils$getHistory.call(appUtils)) || {};
|
54
|
+
var query = history === null || history === void 0 || (_history$location = history.location) === null || _history$location === void 0 ? void 0 : _history$location.query;
|
55
|
+
var params = {
|
52
56
|
event_item_resource_id: id,
|
53
57
|
skip: 1,
|
54
58
|
num: 100,
|
55
59
|
customer_id: customer === null || customer === void 0 ? void 0 : customer.id,
|
56
60
|
open_quotation: 1
|
57
|
-
}
|
61
|
+
};
|
62
|
+
if (query !== null && query !== void 0 && query.ids) {
|
63
|
+
var _query$ids;
|
64
|
+
params.ids = query === null || query === void 0 || (_query$ids = query.ids) === null || _query$ids === void 0 ? void 0 : _query$ids.split(',');
|
65
|
+
}
|
66
|
+
getEventList.run(params);
|
58
67
|
}, [data === null || data === void 0 || (_data$resourceData2 = data.resourceData) === null || _data$resourceData2 === void 0 || (_data$resourceData2 = _data$resourceData2.currentResourceItem) === null || _data$resourceData2 === void 0 ? void 0 : _data$resourceData2.id, customer === null || customer === void 0 ? void 0 : customer.id]);
|
59
68
|
|
60
69
|
/**
|
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
16
|
import React, { useMemo, useRef, useState, useEffect } from 'react';
|
17
17
|
import { PisellModal, PisellAnchor, PisellImageCarousels } from '@pisell/materials';
|
18
18
|
import EventCard from "../eventCard";
|
19
|
-
import { useCart, useEventDetail } from "../../../Sales";
|
19
|
+
import { useCart, useEventDetail, useInit } from "../../../Sales";
|
20
20
|
import { isMobile, locales } from '@pisell/utils';
|
21
21
|
import Schedule from "./components/Schedule";
|
22
22
|
import Resource from "./components/Resource";
|
@@ -25,7 +25,7 @@ import OrderProductModal from "../Provider/OrderProductModal/index";
|
|
25
25
|
import "./index.less";
|
26
26
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
27
27
|
var BookingDetailModal = function BookingDetailModal(props) {
|
28
|
-
var _detail$introduction2;
|
28
|
+
var _initData$boardSettin2, _detail$introduction2;
|
29
29
|
var modalContentRef = useRef(null);
|
30
30
|
var context = useEngineContext();
|
31
31
|
var _ref = context.appHelper || {},
|
@@ -43,6 +43,8 @@ var BookingDetailModal = function BookingDetailModal(props) {
|
|
43
43
|
addToCart = _useCart.addToCart,
|
44
44
|
checkBeforeAddToCart = _useCart.checkBeforeAddToCart,
|
45
45
|
checkBeforeAddToCartResquest = _useCart.checkBeforeAddToCartResquest;
|
46
|
+
var _useInit = useInit(),
|
47
|
+
initData = _useInit.initData;
|
46
48
|
var _useState = useState('introduction'),
|
47
49
|
_useState2 = _slicedToArray(_useState, 2),
|
48
50
|
activeTab = _useState2[0],
|
@@ -59,6 +61,20 @@ var BookingDetailModal = function BookingDetailModal(props) {
|
|
59
61
|
var isUserClickRef = useRef(false); // 添加用户点击标记
|
60
62
|
var scrollTimeoutRef = useRef(null);
|
61
63
|
|
64
|
+
/**
|
65
|
+
* @title: 按钮确认文案
|
66
|
+
* @description:
|
67
|
+
* @param {*} useMemo
|
68
|
+
* @return {*}
|
69
|
+
* @Author: WangHan
|
70
|
+
* @Date: 2025-06-26 15:34
|
71
|
+
*/
|
72
|
+
var buttonText = useMemo(function () {
|
73
|
+
var _initData$boardSettin, _utils$translation;
|
74
|
+
var config = (initData === null || initData === void 0 || (_initData$boardSettin = initData.boardSetting) === null || _initData$boardSettin === void 0 || (_initData$boardSettin = _initData$boardSettin.config) === null || _initData$boardSettin === void 0 ? void 0 : _initData$boardSettin.product_display_setting) || {};
|
75
|
+
return (utils === null || utils === void 0 || (_utils$translation = utils.translation) === null || _utils$translation === void 0 ? void 0 : _utils$translation.call(utils, config === null || config === void 0 ? void 0 : config.booking_event_v2_product_detail_button)) || locales.getText('pisell2.event.add.to.cart');
|
76
|
+
}, [initData === null || initData === void 0 || (_initData$boardSettin2 = initData.boardSetting) === null || _initData$boardSettin2 === void 0 || (_initData$boardSettin2 = _initData$boardSettin2.config) === null || _initData$boardSettin2 === void 0 ? void 0 : _initData$boardSettin2.product_display_setting]);
|
77
|
+
|
62
78
|
/**
|
63
79
|
* @title: 详情锚点
|
64
80
|
* @description:
|
@@ -288,7 +304,9 @@ var BookingDetailModal = function BookingDetailModal(props) {
|
|
288
304
|
utils === null || utils === void 0 || utils.action({
|
289
305
|
type: 'pisell1.productDetail',
|
290
306
|
data: {
|
291
|
-
detail: _objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}),
|
307
|
+
detail: _objectSpread(_objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}), {}, {
|
308
|
+
open_deposit: 1
|
309
|
+
}),
|
292
310
|
isOS: false
|
293
311
|
},
|
294
312
|
callback: function callback(data) {
|
@@ -377,7 +395,7 @@ var BookingDetailModal = function BookingDetailModal(props) {
|
|
377
395
|
destroyOnClose: true,
|
378
396
|
className: "booking-detail-modal",
|
379
397
|
onCancel: onCloseEventDetail,
|
380
|
-
okText:
|
398
|
+
okText: buttonText,
|
381
399
|
cancelVisible: false,
|
382
400
|
onOk: handleOk,
|
383
401
|
width: isMobile() ? '100%' : 600,
|
@@ -36,14 +36,28 @@ var Content = function Content() {
|
|
36
36
|
* @Author: WangHan
|
37
37
|
* @Date: 2025-01-17 14:25
|
38
38
|
*/
|
39
|
+
// useEffect(() => {
|
40
|
+
// if (!form_id) return;
|
41
|
+
|
42
|
+
// getResourceList.run({
|
43
|
+
// form_id: form_id,
|
44
|
+
// shop_id: shop_id,
|
45
|
+
// form_data_status: 'active',
|
46
|
+
// });
|
47
|
+
// }, [form_id]);
|
39
48
|
useEffect(function () {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
}
|
46
|
-
|
49
|
+
var _utils$getHistory, _history$location;
|
50
|
+
var history = (utils === null || utils === void 0 || (_utils$getHistory = utils.getHistory) === null || _utils$getHistory === void 0 ? void 0 : _utils$getHistory.call(utils)) || {};
|
51
|
+
var query = history === null || history === void 0 || (_history$location = history.location) === null || _history$location === void 0 ? void 0 : _history$location.query;
|
52
|
+
var params = {
|
53
|
+
front_end_cache_id: (query === null || query === void 0 ? void 0 : query.cacheId) || ''
|
54
|
+
};
|
55
|
+
if (query !== null && query !== void 0 && query.ids) {
|
56
|
+
var _query$ids;
|
57
|
+
params.event_item_ids = query === null || query === void 0 || (_query$ids = query.ids) === null || _query$ids === void 0 ? void 0 : _query$ids.split(',');
|
58
|
+
}
|
59
|
+
getResourceList.run(params);
|
60
|
+
}, []);
|
47
61
|
return /*#__PURE__*/React.createElement("div", {
|
48
62
|
className: "event-booking-wrap ".concat(isMobile() ? 'event-booking-mobile-wrap' : '')
|
49
63
|
}, /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(EventContent, null), isMobile() && (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key) !== 'select-category' ? /*#__PURE__*/React.createElement(Footer, null) : null);
|
@@ -71,6 +71,14 @@ declare const _default: {
|
|
71
71
|
'pisell2.event.capacity.limit.reached.tip': string;
|
72
72
|
'pisell2.event.schedule.item.expand': string;
|
73
73
|
'pisell2.event.schedule.item.collapse': string;
|
74
|
+
'pisell2.appointment.deposit': string;
|
75
|
+
'pisell2.appointment.deposit.agreed': string;
|
76
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
77
|
+
'pisell2.appointment.deposit.and': string;
|
78
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
79
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
80
|
+
'pisell2.appointment.deposit.close': string;
|
81
|
+
'pisell2.appointment.booking.empty.data': string;
|
74
82
|
};
|
75
83
|
'zh-CN': {
|
76
84
|
'pisell2.event.calendar.limit.unavailable': string;
|
@@ -144,6 +152,14 @@ declare const _default: {
|
|
144
152
|
'pisell2.event.capacity.limit.reached.tip': string;
|
145
153
|
'pisell2.event.schedule.item.expand': string;
|
146
154
|
'pisell2.event.schedule.item.collapse': string;
|
155
|
+
'pisell2.appointment.deposit': string;
|
156
|
+
'pisell2.appointment.deposit.agreed': string;
|
157
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
158
|
+
'pisell2.appointment.deposit.and': string;
|
159
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
160
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
161
|
+
'pisell2.appointment.deposit.close': string;
|
162
|
+
'pisell2.appointment.booking.empty.data': string;
|
147
163
|
};
|
148
164
|
'zh-HK': {
|
149
165
|
'pisell2.event.calendar.limit.unavailable': string;
|
@@ -217,6 +233,14 @@ declare const _default: {
|
|
217
233
|
'pisell2.event.capacity.limit.reached.tip': string;
|
218
234
|
'pisell2.event.schedule.item.expand': string;
|
219
235
|
'pisell2.event.schedule.item.collapse': string;
|
236
|
+
'pisell2.appointment.deposit': string;
|
237
|
+
'pisell2.appointment.deposit.agreed': string;
|
238
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
239
|
+
'pisell2.appointment.deposit.and': string;
|
240
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
241
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
242
|
+
'pisell2.appointment.deposit.close': string;
|
243
|
+
'pisell2.appointment.booking.empty.data': string;
|
220
244
|
};
|
221
245
|
};
|
222
246
|
export default _default;
|
@@ -35,7 +35,7 @@ export default {
|
|
35
35
|
'pisell2.event.campus': 'Campus',
|
36
36
|
'pisell2.event.resource': 'Location',
|
37
37
|
'pisell2.event.booking.options': 'Booking options',
|
38
|
-
'pisell2.event.add.to.cart': 'Add to
|
38
|
+
'pisell2.event.add.to.cart': 'Add to Cart',
|
39
39
|
'pisell2.event.description': 'Description',
|
40
40
|
'pisell2.event.view.more': 'View more',
|
41
41
|
'pisell2.event.view.less': 'View less',
|
@@ -82,7 +82,15 @@ export default {
|
|
82
82
|
'pisell2.event.capacity.limit.reached.title': 'Capacity limit reached',
|
83
83
|
'pisell2.event.capacity.limit.reached.tip': 'One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.',
|
84
84
|
'pisell2.event.schedule.item.expand': 'See more',
|
85
|
-
'pisell2.event.schedule.item.collapse': 'See less'
|
85
|
+
'pisell2.event.schedule.item.collapse': 'See less',
|
86
|
+
'pisell2.appointment.deposit': 'Deposit',
|
87
|
+
'pisell2.appointment.deposit.agreed': 'I have read and agree to the ',
|
88
|
+
'pisell2.appointment.deposit.agree.policy': 'You need to agree the policy to proceed',
|
89
|
+
'pisell2.appointment.deposit.and': ' & ',
|
90
|
+
'pisell2.appointment.deposit.amount.tip1': ' needs to be paid as deposit.',
|
91
|
+
'pisell2.appointment.deposit.amount.tip2': ' ',
|
92
|
+
'pisell2.appointment.deposit.close': 'Close',
|
93
|
+
'pisell2.appointment.booking.empty.data': 'No data'
|
86
94
|
},
|
87
95
|
'zh-CN': {
|
88
96
|
'pisell2.event.calendar.limit.unavailable': '不可预约',
|
@@ -120,7 +128,7 @@ export default {
|
|
120
128
|
'pisell2.event.campus': '校区',
|
121
129
|
'pisell2.event.resource': '资源',
|
122
130
|
'pisell2.event.booking.options': '预约选项',
|
123
|
-
'pisell2.event.add.to.cart': '
|
131
|
+
'pisell2.event.add.to.cart': '加入购物车',
|
124
132
|
'pisell2.event.description': '描述',
|
125
133
|
'pisell2.event.view.more': '查看更多',
|
126
134
|
'pisell2.event.view.less': '收起',
|
@@ -167,7 +175,15 @@ export default {
|
|
167
175
|
'pisell2.event.capacity.limit.reached.title': '活动名额已满',
|
168
176
|
'pisell2.event.capacity.limit.reached.tip': '购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。',
|
169
177
|
'pisell2.event.schedule.item.expand': '查看更多',
|
170
|
-
'pisell2.event.schedule.item.collapse': '收起'
|
178
|
+
'pisell2.event.schedule.item.collapse': '收起',
|
179
|
+
'pisell2.appointment.deposit': '定金',
|
180
|
+
'pisell2.appointment.deposit.agreed': '我已阅读并同意 ',
|
181
|
+
'pisell2.appointment.deposit.agree.policy': '您需要同意协议才能继续',
|
182
|
+
'pisell2.appointment.deposit.and': ' 和 ',
|
183
|
+
'pisell2.appointment.deposit.amount.tip1': '请支付 ',
|
184
|
+
'pisell2.appointment.deposit.amount.tip2': ' 定金。',
|
185
|
+
'pisell2.appointment.deposit.close': '关闭',
|
186
|
+
'pisell2.appointment.booking.empty.data': '暂无数据'
|
171
187
|
},
|
172
188
|
'zh-HK': {
|
173
189
|
'pisell2.event.calendar.limit.unavailable': '不可預約',
|
@@ -205,7 +221,7 @@ export default {
|
|
205
221
|
'pisell2.event.campus': '校區',
|
206
222
|
'pisell2.event.resource': '資源',
|
207
223
|
'pisell2.event.booking.options': '預約選項',
|
208
|
-
'pisell2.event.add.to.cart': '
|
224
|
+
'pisell2.event.add.to.cart': '加入購物車',
|
209
225
|
'pisell2.event.description': '描述',
|
210
226
|
'pisell2.event.view.more': '查看更多',
|
211
227
|
'pisell2.event.view.less': '收起',
|
@@ -252,6 +268,14 @@ export default {
|
|
252
268
|
'pisell2.event.capacity.limit.reached.title': '活動名額已滿',
|
253
269
|
'pisell2.event.capacity.limit.reached.tip': '購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。',
|
254
270
|
'pisell2.event.schedule.item.expand': '查看更多',
|
255
|
-
'pisell2.event.schedule.item.collapse': '收起'
|
271
|
+
'pisell2.event.schedule.item.collapse': '收起',
|
272
|
+
'pisell2.appointment.deposit': '定金',
|
273
|
+
'pisell2.appointment.deposit.agreed': '我已閱讀並同意 ',
|
274
|
+
'pisell2.appointment.deposit.agree.policy': '您需要同意協議才能繼續',
|
275
|
+
'pisell2.appointment.deposit.and': ' 和 ',
|
276
|
+
'pisell2.appointment.deposit.amount.tip1': '請支付 ',
|
277
|
+
'pisell2.appointment.deposit.amount.tip2': ' 定金。',
|
278
|
+
'pisell2.appointment.deposit.close': '关闭',
|
279
|
+
'pisell2.appointment.booking.empty.data': '暫無數據'
|
256
280
|
}
|
257
281
|
};
|
package/es/components/index.d.ts
CHANGED
@@ -15,4 +15,6 @@ import WorkspaceListDetail from './workSpaceListDetail/';
|
|
15
15
|
import WorkspaceList from './workSpaceList';
|
16
16
|
import PisellSelectCustomerModal from './pisellSelectCustomerModal';
|
17
17
|
import SubTotal from './subTotal';
|
18
|
-
|
18
|
+
import EditBookingModal from './booking/editBookingModal';
|
19
|
+
import StepController from './stepController';
|
20
|
+
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController };
|
package/es/components/index.js
CHANGED
@@ -15,4 +15,6 @@ import WorkspaceListDetail from "./workSpaceListDetail/";
|
|
15
15
|
import WorkspaceList from "./workSpaceList";
|
16
16
|
import PisellSelectCustomerModal from "./pisellSelectCustomerModal";
|
17
17
|
import SubTotal from "./subTotal";
|
18
|
-
|
18
|
+
import EditBookingModal from "./booking/editBookingModal";
|
19
|
+
import StepController from "./stepController";
|
20
|
+
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController };
|
@@ -9,7 +9,7 @@ import { PisellText } from '@pisell/materials';
|
|
9
9
|
import classNames from 'classnames';
|
10
10
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
11
11
|
var index = function index(props) {
|
12
|
-
var _context$appHelper$ut
|
12
|
+
var _context$appHelper$ut;
|
13
13
|
var context = useEngineContext();
|
14
14
|
var value = props.value;
|
15
15
|
var locale = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en';
|
@@ -31,8 +31,7 @@ var index = function index(props) {
|
|
31
31
|
marginRight: 4
|
32
32
|
}
|
33
33
|
}, _prefix) : null, /*#__PURE__*/React.createElement(PisellText.Amount, {
|
34
|
-
value: value
|
35
|
-
symbol: (_context$appHelper$ut2 = context.appHelper.utils) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getData) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.call(_context$appHelper$ut2, 'shop_symbol')
|
34
|
+
value: value
|
36
35
|
}), _suffix ? /*#__PURE__*/React.createElement("span", {
|
37
36
|
style: {
|
38
37
|
fontSize: '0.65em',
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import "./index.less";
|
3
|
+
var Content = function Content(_ref) {
|
4
|
+
var children = _ref.children;
|
5
|
+
return /*#__PURE__*/React.createElement("div", {
|
6
|
+
className: "pisell-step-controller-content"
|
7
|
+
}, children);
|
8
|
+
};
|
9
|
+
export default Content;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import classNames from 'classnames';
|
3
|
+
import "./index.less";
|
4
|
+
var Footer = function Footer(_ref) {
|
5
|
+
var isMobile = _ref.isMobile,
|
6
|
+
children = _ref.children;
|
7
|
+
return /*#__PURE__*/React.createElement("div", {
|
8
|
+
className: classNames('pisell-step-controller-footer-wrap', {
|
9
|
+
'pisell-step-controller-footer-wrap-mobile': isMobile
|
10
|
+
})
|
11
|
+
}, /*#__PURE__*/React.createElement("div", {
|
12
|
+
className: "pisell-step-controller-footer"
|
13
|
+
}, children));
|
14
|
+
};
|
15
|
+
export default Footer;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.pisell-step-controller-footer-wrap {
|
2
|
+
position: sticky;
|
3
|
+
left: 0;
|
4
|
+
right: 0;
|
5
|
+
bottom: 0;
|
6
|
+
width: 100%;
|
7
|
+
background: #fff;
|
8
|
+
// box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
|
9
|
+
padding: 24px;
|
10
|
+
z-index: 100;
|
11
|
+
border-top: 1px solid var(--Gray-100, #f2f4f7);
|
12
|
+
|
13
|
+
.pisell-step-controller-footer {
|
14
|
+
width: 1000px;
|
15
|
+
margin: 0 auto;
|
16
|
+
max-width: 100%;
|
17
|
+
display: flex;
|
18
|
+
gap: 12px;
|
19
|
+
justify-content: flex-end;
|
20
|
+
|
21
|
+
.pisell-section-headers-main {
|
22
|
+
color: var(--Gray-900, #101828);
|
23
|
+
font-size: 14px;
|
24
|
+
font-weight: 400;
|
25
|
+
line-height: 20px;
|
26
|
+
justify-content: start;
|
27
|
+
|
28
|
+
.select-text {
|
29
|
+
font-size: 18px;
|
30
|
+
font-weight: 600;
|
31
|
+
line-height: 24px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.pisell-step-controller-footer-wrap-mobile {
|
38
|
+
border-top: 1px solid #eaecf0;
|
39
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Step } from '../../types';
|
3
|
+
import './index.less';
|
4
|
+
export interface HeaderProps {
|
5
|
+
steps: Step[];
|
6
|
+
currentStepIndex: number;
|
7
|
+
className?: string;
|
8
|
+
style?: React.CSSProperties;
|
9
|
+
onBack?: (key: string) => void;
|
10
|
+
onClose?: () => void;
|
11
|
+
confirmCloseProps?: {
|
12
|
+
isConfirmClose?: boolean;
|
13
|
+
title?: string;
|
14
|
+
content?: string;
|
15
|
+
okText?: string;
|
16
|
+
cancelText?: string;
|
17
|
+
};
|
18
|
+
}
|
19
|
+
declare const Header: React.FC<HeaderProps>;
|
20
|
+
export default Header;
|