@pisell/private-materials 6.2.18 → 6.2.20
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.js +2 -2
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Checkout/utils.d.ts +1 -0
- package/es/components/Sales/Checkout/utils.js +3 -2
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/customSelect/index.js +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/editBookingModal/index.js +29 -58
- package/es/components/booking/editBookingModal/serve.d.ts +0 -1
- package/es/components/booking/editBookingModal/serve.js +11 -19
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.js +11 -8
- package/es/components/booking/info/client/index.js +3 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/Lists.js +36 -26
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.js +3 -0
- package/es/components/booking/info/service/editService/index.js +15 -10
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +20 -21
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/index.js +1 -0
- package/es/components/booking/info2/service/addService/utils.js +7 -4
- package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/es/components/booking/info2/service/editService/index.js +264 -168
- package/es/components/booking/info2/service/index.js +19 -15
- package/es/components/booking/materiels/duration/index.js +9 -2
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +48 -41
- package/es/components/shoppingCart/components/Cart/index.js +21 -18
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +177 -157
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +78 -71
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Checkout/utils.d.ts +1 -0
- package/lib/components/Sales/Checkout/utils.js +3 -2
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/editBookingModal/index.js +21 -56
- package/lib/components/booking/editBookingModal/serve.d.ts +0 -1
- package/lib/components/booking/editBookingModal/serve.js +6 -12
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.js +16 -13
- package/lib/components/booking/info/client/index.js +5 -4
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/Lists.js +35 -23
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.js +31 -0
- package/lib/components/booking/info/service/editService/index.js +7 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +17 -17
- package/lib/components/booking/info/utils.js +2 -1
- package/lib/components/booking/info2/service/addService/utils.js +5 -3
- package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/lib/components/booking/info2/service/editService/index.js +137 -72
- package/lib/components/booking/info2/service/index.js +13 -9
- package/lib/components/booking/materiels/duration/index.js +7 -2
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
- package/lib/components/shoppingCart/components/Cart/index.js +18 -15
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +145 -127
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/Sales/Cart/utils.d.ts +0 -63
- package/es/components/Sales/Checkout/index.d.ts +0 -37
- package/es/components/Sales/Checkout/serve.d.ts +0 -15
- package/es/components/Sales/Customer/index.d.ts +0 -25
- package/es/components/Sales/Event/Detail.d.ts +0 -30
- package/es/components/Sales/Event/serve.d.ts +0 -49
- package/es/components/Sales/Summary/index.d.ts +0 -35
- package/es/components/Sales/Summary/serve.d.ts +0 -1
- package/es/components/Sales/Summary/utils.d.ts +0 -51
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/hooks.d.ts +0 -106
- package/es/components/appointmentBooking/index.d.ts +0 -3
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/hooks/useClearCart.d.ts +0 -2
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/client/index.d.ts +0 -4
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service2/utils.d.ts +0 -247
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
- package/es/components/booking/locales.d.ts +0 -828
- package/es/components/booking/materiels/duration/index.d.ts +0 -13
- package/es/components/booking/model.d.ts +0 -116
- package/es/components/eftposPay/const.d.ts +0 -184
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/linkly/const.d.ts +0 -23
- package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/service.d.ts +0 -32
- package/es/components/eftposPay/manufacturer.d.ts +0 -7
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/store/index.d.ts +0 -355
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/eventBooking/index.d.ts +0 -3
- package/es/components/eventBooking/locales.d.ts +0 -246
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -289
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/index.d.ts +0 -26
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/index.d.ts +0 -7
- package/es/components/ticketBooking/locales.d.ts +0 -174
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/walletList/index.d.ts +0 -28
- package/es/utils/index.d.ts +0 -23
- package/lib/components/Sales/Cart/utils.d.ts +0 -63
- package/lib/components/Sales/Checkout/index.d.ts +0 -37
- package/lib/components/Sales/Checkout/serve.d.ts +0 -15
- package/lib/components/Sales/Customer/index.d.ts +0 -25
- package/lib/components/Sales/Event/Detail.d.ts +0 -30
- package/lib/components/Sales/Event/serve.d.ts +0 -49
- package/lib/components/Sales/Summary/index.d.ts +0 -35
- package/lib/components/Sales/Summary/serve.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +0 -51
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/hooks.d.ts +0 -106
- package/lib/components/appointmentBooking/index.d.ts +0 -3
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -2
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/client/index.d.ts +0 -4
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service2/utils.d.ts +0 -247
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
- package/lib/components/booking/locales.d.ts +0 -828
- package/lib/components/booking/materiels/duration/index.d.ts +0 -13
- package/lib/components/booking/model.d.ts +0 -116
- package/lib/components/eftposPay/const.d.ts +0 -184
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/linkly/const.d.ts +0 -23
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/service.d.ts +0 -32
- package/lib/components/eftposPay/manufacturer.d.ts +0 -7
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/store/index.d.ts +0 -355
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/eventBooking/index.d.ts +0 -3
- package/lib/components/eventBooking/locales.d.ts +0 -246
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -289
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/index.d.ts +0 -26
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/index.d.ts +0 -7
- package/lib/components/ticketBooking/locales.d.ts +0 -174
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/utils/index.d.ts +0 -23
@@ -1,31 +0,0 @@
|
|
1
|
-
import 'dayjs/locale/zh-cn';
|
2
|
-
import 'dayjs/locale/en';
|
3
|
-
import 'dayjs/locale/zh-tw';
|
4
|
-
/**
|
5
|
-
* @title: 是否英文
|
6
|
-
* @description:
|
7
|
-
* @param {any} item
|
8
|
-
* @return {*}
|
9
|
-
* @Author: WangHan
|
10
|
-
* @Date: 2024-12-28 22:49
|
11
|
-
*/
|
12
|
-
export declare const isEn: (item: any) => boolean;
|
13
|
-
/**
|
14
|
-
* @title: 跨日预约时间
|
15
|
-
* @description:
|
16
|
-
* @param {any} item
|
17
|
-
* @return {*}
|
18
|
-
* @Author: WangHan
|
19
|
-
* @Date: 2024-12-28 22:50
|
20
|
-
*/
|
21
|
-
export declare const formatMultiDayDate: (item: any) => string;
|
22
|
-
/**
|
23
|
-
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
24
|
-
* @description:
|
25
|
-
* @param {any} item
|
26
|
-
* @param {any} currentDate
|
27
|
-
* @return {*}
|
28
|
-
* @Author: zhiwei.Wang
|
29
|
-
* @Date: 2024-04-26 14:04
|
30
|
-
*/
|
31
|
-
export declare const getServiceTime: (item: any, currentDate: any, utils: any) => string;
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.less';
|
3
|
-
declare module 'react' {
|
4
|
-
interface HTMLAttributes<T> {
|
5
|
-
role?: string;
|
6
|
-
}
|
7
|
-
}
|
8
|
-
declare global {
|
9
|
-
namespace JSX {
|
10
|
-
interface IntrinsicElements {
|
11
|
-
div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
12
|
-
children?: React.ReactNode;
|
13
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
14
|
-
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
15
|
-
onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
|
16
|
-
onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
|
17
|
-
onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
|
18
|
-
role?: string;
|
19
|
-
};
|
20
|
-
img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
|
21
|
-
span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
|
22
|
-
children?: React.ReactNode;
|
23
|
-
};
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
declare const WalletList: (props: any) => JSX.Element;
|
28
|
-
export default WalletList;
|
package/es/utils/index.d.ts
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
import type { ModalStaticFunctions } from 'antd/es/modal/confirm';
|
2
|
-
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
3
|
-
declare class Request {
|
4
|
-
private request;
|
5
|
-
constructor();
|
6
|
-
setRequest(val: any): void;
|
7
|
-
withCustomToast(config?: any): any;
|
8
|
-
getRequest(): {
|
9
|
-
get: (url: string, params: any, config?: any) => Promise<any>;
|
10
|
-
post: (url: string, params: any, config?: any) => Promise<any>;
|
11
|
-
put: RType;
|
12
|
-
remove: RType;
|
13
|
-
custom: RType;
|
14
|
-
};
|
15
|
-
}
|
16
|
-
export declare const request: Request;
|
17
|
-
declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
18
|
-
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
19
|
-
export declare const saveConfirm: () => Promise<{
|
20
|
-
destroy: () => void;
|
21
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
22
|
-
}>;
|
23
|
-
export { modal };
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import Decimal from 'decimal.js';
|
2
|
-
import { ICalculatePriceParams } from './types';
|
3
|
-
export declare const handleProductInfo: (eventDetail: any, num: number) => {
|
4
|
-
totalPrice: number;
|
5
|
-
originTotal: any;
|
6
|
-
is_charge_tax: any;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* 获取商品总价
|
10
|
-
* @description 当前总价计算基于商品数量为1
|
11
|
-
* @param item 商品
|
12
|
-
* @returns 商品总价
|
13
|
-
*/
|
14
|
-
export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
|
15
|
-
/**
|
16
|
-
* 获取商品原始总价
|
17
|
-
* @description 当前总价计算基于商品数量为1
|
18
|
-
* @param item 商品
|
19
|
-
* @returns 商品原始总价
|
20
|
-
*/
|
21
|
-
export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
|
22
|
-
export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
|
23
|
-
export declare const formatBundleToOrigin: (bundle: any) => any;
|
24
|
-
export declare const formatOptionsToOrigin: (options: any) => any;
|
25
|
-
export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
|
26
|
-
total: number;
|
27
|
-
protocols: any;
|
28
|
-
} | null;
|
29
|
-
/**
|
30
|
-
* 获取商品定金
|
31
|
-
* @description 定金基于商品售价来算,最终乘商品数量
|
32
|
-
* 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
33
|
-
* 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
|
34
|
-
* 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
35
|
-
* @param params 参数
|
36
|
-
* @returns 商品定金
|
37
|
-
*/
|
38
|
-
export declare const getProductDeposit: (params: {
|
39
|
-
cartItem: any;
|
40
|
-
product: any;
|
41
|
-
bundle?: any;
|
42
|
-
options?: any;
|
43
|
-
num?: number;
|
44
|
-
}) => {
|
45
|
-
total: number;
|
46
|
-
protocols: any;
|
47
|
-
} | null;
|
48
|
-
/**
|
49
|
-
* 计算商品定金
|
50
|
-
* @param params 参数
|
51
|
-
* @returns 商品定金
|
52
|
-
*/
|
53
|
-
export declare const calculateProductDeposit: (params: {
|
54
|
-
depositData: {
|
55
|
-
deposit_fixed?: string;
|
56
|
-
deposit_percentage?: string;
|
57
|
-
};
|
58
|
-
total: string | number;
|
59
|
-
num: number;
|
60
|
-
}) => {
|
61
|
-
result: boolean;
|
62
|
-
depositTotal: Decimal;
|
63
|
-
};
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface CheckoutData {
|
3
|
-
}
|
4
|
-
interface PayProps {
|
5
|
-
order_id: string;
|
6
|
-
amount: number;
|
7
|
-
sale_channel?: string;
|
8
|
-
is_deposit?: number;
|
9
|
-
deposit_amount?: number;
|
10
|
-
total_amount?: number;
|
11
|
-
}
|
12
|
-
interface CheckoutContextType {
|
13
|
-
onCheckBeforeBooking: (data: any) => Promise<{
|
14
|
-
result: boolean;
|
15
|
-
num: number;
|
16
|
-
}>;
|
17
|
-
onCheckout: (data: any) => Promise<any>;
|
18
|
-
onPay: (payProps: PayProps) => void;
|
19
|
-
createBooking: any;
|
20
|
-
checkBeforeBooking: any;
|
21
|
-
freePay: any;
|
22
|
-
}
|
23
|
-
interface CheckoutProviderProps {
|
24
|
-
children: React.ReactNode;
|
25
|
-
}
|
26
|
-
export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
|
27
|
-
export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
|
28
|
-
/**
|
29
|
-
* 使用步骤管理的Hook
|
30
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
31
|
-
* @returns {StepContextType} 步骤管理上下文
|
32
|
-
*/
|
33
|
-
export declare const useCheckout: () => CheckoutContextType;
|
34
|
-
declare const _default: {
|
35
|
-
defaultState: CheckoutData;
|
36
|
-
};
|
37
|
-
export default _default;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @title: 下单前置校验接口
|
3
|
-
* @param {any} data
|
4
|
-
*/
|
5
|
-
export declare const checkBeforeBookingApi: (data: any) => Promise<any>;
|
6
|
-
/**
|
7
|
-
* @title: 创建订单
|
8
|
-
* @param {any} data
|
9
|
-
*/
|
10
|
-
export declare const createBookingApi: (data: any) => Promise<any>;
|
11
|
-
/**
|
12
|
-
* @title: 免费支付
|
13
|
-
* @param {string} orderId
|
14
|
-
*/
|
15
|
-
export declare const freePayApi: (orderId: string) => Promise<any>;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface CustomerData {
|
3
|
-
}
|
4
|
-
interface CustomerContextType {
|
5
|
-
appContext: any;
|
6
|
-
appUtils: any;
|
7
|
-
isLogin: () => boolean;
|
8
|
-
openLoginModal: (params: any) => void;
|
9
|
-
getUserInfo: () => any;
|
10
|
-
}
|
11
|
-
interface CustomerProviderProps {
|
12
|
-
children: React.ReactNode;
|
13
|
-
}
|
14
|
-
export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
|
15
|
-
export declare const CustomerProvider: React.FC<CustomerProviderProps>;
|
16
|
-
/**
|
17
|
-
* 使用步骤管理的Hook
|
18
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
19
|
-
* @returns {StepContextType} 步骤管理上下文
|
20
|
-
*/
|
21
|
-
export declare const useCustomer: () => CustomerContextType;
|
22
|
-
declare const _default: {
|
23
|
-
defaultState: CustomerData;
|
24
|
-
};
|
25
|
-
export default _default;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface EventDetailContextType {
|
3
|
-
detail: any;
|
4
|
-
open: boolean;
|
5
|
-
onOpenEventDetail: (eventItem: any) => void;
|
6
|
-
onCloseEventDetail: () => void;
|
7
|
-
onSelectEventDetail: () => void;
|
8
|
-
selectEventDetailBookingOptions: (v: any) => void;
|
9
|
-
getEventDetailSelectDate: {
|
10
|
-
run: (id: number, params: any) => void;
|
11
|
-
loading: boolean;
|
12
|
-
data?: any;
|
13
|
-
};
|
14
|
-
currentBookingOption: any;
|
15
|
-
selectEventDetailProductDetail: (productDetail: any) => void;
|
16
|
-
checkBeforeSelectEventDetail: () => boolean;
|
17
|
-
getProductDetailRequest: any;
|
18
|
-
}
|
19
|
-
interface EventDetailProviderProps {
|
20
|
-
children: React.ReactNode;
|
21
|
-
}
|
22
|
-
export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
|
23
|
-
export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
|
24
|
-
/**
|
25
|
-
* 使用步骤管理的Hook
|
26
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
27
|
-
* @returns {StepContextType} 步骤管理上下文
|
28
|
-
*/
|
29
|
-
export declare const useEventDetail: () => EventDetailContextType;
|
30
|
-
export {};
|
@@ -1,49 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @title: 获取活动列表
|
3
|
-
* @description: https://menutech.w.eolink.com/home/api-studio/inside/K2bI3n465fe7244b3dbd6679d87caedfbb0636bf8c29eda/api/3102494/detail/55349999?spaceKey=menutech
|
4
|
-
* @param {any} params
|
5
|
-
* @return {*}
|
6
|
-
* @Author: zhiwei.Wang
|
7
|
-
*/
|
8
|
-
export declare const getEventListApi: (params: {
|
9
|
-
event_item_resource_id: number | string;
|
10
|
-
title?: string;
|
11
|
-
skip?: number;
|
12
|
-
num?: number;
|
13
|
-
open_quotation: number;
|
14
|
-
}) => Promise<any>;
|
15
|
-
export declare const getEventDetailIntroductionApi: (eventItemId: number | string) => Promise<any>;
|
16
|
-
export declare const getEventDetailTeacherApi: (params: {
|
17
|
-
event_item_id: number | string;
|
18
|
-
}) => Promise<any>;
|
19
|
-
export declare const getEventDetailBookingOptionsApi: (params: {
|
20
|
-
ids: number | string;
|
21
|
-
num: number;
|
22
|
-
skip: number;
|
23
|
-
customer_id?: number;
|
24
|
-
open_quotation?: number;
|
25
|
-
is_eject?: number;
|
26
|
-
}) => Promise<any>;
|
27
|
-
export declare const getEventDetailSelectDateApi: (id: number | string, params: {
|
28
|
-
days: number;
|
29
|
-
start_date?: string;
|
30
|
-
}) => Promise<any>;
|
31
|
-
/**
|
32
|
-
* 批量查询指定商品的最新价格
|
33
|
-
* @param params
|
34
|
-
*/
|
35
|
-
export declare const getProductPrice: (params: {
|
36
|
-
ids: number[];
|
37
|
-
customer_id: number;
|
38
|
-
schedule_date?: string;
|
39
|
-
}) => Promise<any>;
|
40
|
-
/**
|
41
|
-
* 获取商品详情
|
42
|
-
* @param id 商品id
|
43
|
-
* @param params 参数
|
44
|
-
* @returns
|
45
|
-
*/
|
46
|
-
export declare const getProductDetailApi: (id: number, params: {
|
47
|
-
open_deposit?: string | number;
|
48
|
-
front_end_cache_id?: string;
|
49
|
-
}) => Promise<any>;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface SummaryData {
|
3
|
-
}
|
4
|
-
interface SummaryContextType {
|
5
|
-
subtotal: number | string;
|
6
|
-
total: number | string;
|
7
|
-
taxTitle?: string;
|
8
|
-
totalTaxFee?: string;
|
9
|
-
isPriceIncludeTax?: 0 | 1;
|
10
|
-
deposit?: {
|
11
|
-
total: string;
|
12
|
-
protocols: any[];
|
13
|
-
hasDeposit: boolean;
|
14
|
-
};
|
15
|
-
isAgreeDepositPolicy: boolean;
|
16
|
-
setIsAgreeDepositPolicy: (value: boolean) => void;
|
17
|
-
getDepositProtocol: (params: {
|
18
|
-
id: string;
|
19
|
-
}) => Promise<any>;
|
20
|
-
}
|
21
|
-
interface SummaryProviderProps {
|
22
|
-
children: React.ReactNode;
|
23
|
-
}
|
24
|
-
export declare const SummaryContext: React.Context<SummaryContextType | undefined>;
|
25
|
-
export declare const SummaryProvider: React.FC<SummaryProviderProps>;
|
26
|
-
/**
|
27
|
-
* 使用步骤管理的Hook
|
28
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
29
|
-
* @returns {StepContextType} 步骤管理上下文
|
30
|
-
*/
|
31
|
-
export declare const useSummary: () => SummaryContextType;
|
32
|
-
declare const _default: {
|
33
|
-
defaultState: SummaryData;
|
34
|
-
};
|
35
|
-
export default _default;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const getDepositProtocolApi: (id: string) => Promise<any>;
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import Decimal from 'decimal.js';
|
2
|
-
interface CartItem {
|
3
|
-
price: number | string;
|
4
|
-
quantity?: number;
|
5
|
-
[k: string]: any;
|
6
|
-
}
|
7
|
-
interface PriceDetail {
|
8
|
-
subtotal: string;
|
9
|
-
total: string;
|
10
|
-
taxTitle?: string;
|
11
|
-
totalTaxFee?: string;
|
12
|
-
isPriceIncludeTax?: 0 | 1;
|
13
|
-
deposit?: {
|
14
|
-
total: string;
|
15
|
-
protocols: any[];
|
16
|
-
hasDeposit: boolean;
|
17
|
-
};
|
18
|
-
}
|
19
|
-
/**
|
20
|
-
* 计算商品小计(不含其他费用)
|
21
|
-
* @param items - 购物车商品数组
|
22
|
-
* @returns 商品总价字符串,保留2位小数
|
23
|
-
*/
|
24
|
-
export declare const calculateSubtotal: (items: CartItem[]) => string;
|
25
|
-
/**
|
26
|
-
* @title: 单个商品的税费
|
27
|
-
* @description:
|
28
|
-
* 单个商品的税费 = 商品销售单价(折扣后) * 税率 * is_charge_tax /( 1+ 税率 * is_price_include_tax)
|
29
|
-
* $taxFee = $price * $taxRate * $isChargeTax / (1 + $taxRate * $isPriceIncludeTax);
|
30
|
-
* @return {*}
|
31
|
-
* @Author: xiangfeng.xue
|
32
|
-
*/
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
|
34
|
-
/**
|
35
|
-
* 计算所有价格明细
|
36
|
-
* @param items - 购物车商品数组
|
37
|
-
* @param options - 其他费用配置
|
38
|
-
* @returns 价格明细对象
|
39
|
-
*/
|
40
|
-
export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
|
41
|
-
/**
|
42
|
-
* @title: 计算定金
|
43
|
-
* @param items - 购物车商品数组
|
44
|
-
* @returns 定金字符串,保留2位小数
|
45
|
-
*/
|
46
|
-
export declare const calculateDeposit: (items: CartItem[]) => {
|
47
|
-
total: string;
|
48
|
-
protocols: any[];
|
49
|
-
hasDeposit: never;
|
50
|
-
} | undefined;
|
51
|
-
export {};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
interface CheckLoginParams {
|
2
|
-
isLogin: boolean;
|
3
|
-
openLoginModal: (params: {
|
4
|
-
callback: (status: string) => void;
|
5
|
-
}) => void;
|
6
|
-
isFormSubject: boolean;
|
7
|
-
utils: any;
|
8
|
-
accountLists: any[];
|
9
|
-
appointmentBooking: any;
|
10
|
-
getHolders: () => void;
|
11
|
-
}
|
12
|
-
export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
|
13
|
-
interface CheckHolderParams {
|
14
|
-
isFormSubject: boolean;
|
15
|
-
checkAccount: (type: string) => boolean;
|
16
|
-
carts: any[];
|
17
|
-
}
|
18
|
-
export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
|
19
|
-
interface CheckResourceParams {
|
20
|
-
carts: any[];
|
21
|
-
resources: any[];
|
22
|
-
}
|
23
|
-
/**
|
24
|
-
* @title: 检测资源数据
|
25
|
-
* @description:
|
26
|
-
* @param {CheckResourceParams} param1
|
27
|
-
* @return {*}
|
28
|
-
* @Author: WangHan
|
29
|
-
* @Date: 2025-04-29 18:02
|
30
|
-
*/
|
31
|
-
export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
|
32
|
-
interface CheckResourceParams {
|
33
|
-
carts: any[];
|
34
|
-
}
|
35
|
-
export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
|
36
|
-
interface AddHolderParams {
|
37
|
-
res: any;
|
38
|
-
bookingSubject: any;
|
39
|
-
accountLists: any[];
|
40
|
-
cartItem: any;
|
41
|
-
getHolders: () => void;
|
42
|
-
appointmentBooking: any;
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* @title: 添加holder
|
46
|
-
* @description:
|
47
|
-
* @param {any} res
|
48
|
-
* @param {any} bookingSubject
|
49
|
-
* @param {any} accountLists
|
50
|
-
* @param {any} e
|
51
|
-
* @return {*}
|
52
|
-
* @Author: WangHan
|
53
|
-
* @Date: 2025-05-10 18:25
|
54
|
-
*/
|
55
|
-
export declare const handleAddHolder: ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }: AddHolderParams) => Promise<any>;
|
56
|
-
export {};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import './index.less';
|
2
|
-
export declare const DepositContent: (props: {
|
3
|
-
isAgreeDepositPolicy: boolean;
|
4
|
-
setIsAgreeDepositPolicy: (value: boolean) => void;
|
5
|
-
deposit: any;
|
6
|
-
depositProtocolRequest?: any;
|
7
|
-
}) => JSX.Element;
|
8
|
-
declare const Deposit: () => JSX.Element;
|
9
|
-
export default Deposit;
|
@@ -1,106 +0,0 @@
|
|
1
|
-
export declare const useAppointmentBooking: () => any;
|
2
|
-
export declare const useShopDiscount: () => any;
|
3
|
-
export declare const contextUtils: () => any;
|
4
|
-
/**
|
5
|
-
* @title: 监听步骤发生变化
|
6
|
-
* @description:
|
7
|
-
* @return {*}
|
8
|
-
* @Author: WangHan
|
9
|
-
* @Date: 2025-04-15 11:11
|
10
|
-
*/
|
11
|
-
export declare const useAppointmentBookingStep: () => {
|
12
|
-
getStepIndex: (type: string, skipNumber?: number) => any;
|
13
|
-
stepList: any;
|
14
|
-
removeStep: (key: string) => any;
|
15
|
-
addStep: (props: any, stepKey?: string) => any;
|
16
|
-
updateStep: (key: string, step: any) => void;
|
17
|
-
nextStep: () => any;
|
18
|
-
};
|
19
|
-
/**
|
20
|
-
* @title: 获取商品数据
|
21
|
-
* @description:
|
22
|
-
* @return {*}
|
23
|
-
* @Author: WangHan
|
24
|
-
* @Date: 2025-04-15 11:12
|
25
|
-
*/
|
26
|
-
export declare const useAppointmentBookingProduct: () => {
|
27
|
-
checkProductType: (productId: number) => Promise<any>;
|
28
|
-
getProducts: () => Promise<any>;
|
29
|
-
};
|
30
|
-
/**
|
31
|
-
* @title: 更新购物车数据
|
32
|
-
* @description:
|
33
|
-
* @return {*}
|
34
|
-
* @Author: WangHan
|
35
|
-
* @Date: 2025-04-15 11:12
|
36
|
-
*/
|
37
|
-
export declare const useAppointmentBookingCart: () => void;
|
38
|
-
/**
|
39
|
-
* @title: 获取登录状态
|
40
|
-
* @description:
|
41
|
-
* @return {*}
|
42
|
-
* @Author: WangHan
|
43
|
-
* @Date: 2025-04-15 11:14
|
44
|
-
*/
|
45
|
-
export declare const useAppointmentBookingLogin: () => {
|
46
|
-
isLogin: boolean;
|
47
|
-
openLoginModal: (params: {
|
48
|
-
callback: any;
|
49
|
-
}) => void;
|
50
|
-
};
|
51
|
-
/**
|
52
|
-
* @title: 获取账户
|
53
|
-
* @description:
|
54
|
-
* @return {*}
|
55
|
-
* @Author: WangHan
|
56
|
-
* @Date: 2025-04-15 11:15
|
57
|
-
*/
|
58
|
-
export declare const useAppointmentBookingAccount: () => {
|
59
|
-
accountLists: any;
|
60
|
-
getHolders: () => Promise<any>;
|
61
|
-
form_id: any;
|
62
|
-
addAccount: (val: any, type?: string) => Promise<any>;
|
63
|
-
checkAccount: (type: any) => any;
|
64
|
-
};
|
65
|
-
/**
|
66
|
-
* @title: 获取资源数据
|
67
|
-
* @description:
|
68
|
-
* @return {*}
|
69
|
-
* @Author: WangHan
|
70
|
-
* @Date: 2025-04-15 11:29
|
71
|
-
*/
|
72
|
-
export declare const useAppointmentBookingResource: () => {
|
73
|
-
getResourceTimeSlot: (index?: number) => Promise<void>;
|
74
|
-
getResourceList: () => {
|
75
|
-
resources: any;
|
76
|
-
resourceCodes: any;
|
77
|
-
};
|
78
|
-
};
|
79
|
-
/**
|
80
|
-
* @title: 是否跳过资源选择步骤
|
81
|
-
* @description:
|
82
|
-
* @return {*}
|
83
|
-
* @Author: WangHan
|
84
|
-
* @Date: 2025-04-21 11:47
|
85
|
-
*/
|
86
|
-
export declare const useIsSkipResourceStep: () => {
|
87
|
-
checkSkipResourceStep: () => Promise<boolean>;
|
88
|
-
};
|
89
|
-
/**
|
90
|
-
* @title: 获取预约配置
|
91
|
-
* @description:
|
92
|
-
* @return {*}
|
93
|
-
* @Author: WangHan
|
94
|
-
* @Date: 2025-04-24 18:15
|
95
|
-
*/
|
96
|
-
export declare const useAppointmentBookingSetting: () => {
|
97
|
-
isDateSelectedFirst: boolean;
|
98
|
-
isFormSubject: boolean;
|
99
|
-
isRetailTemplate: any;
|
100
|
-
customPageId: any;
|
101
|
-
channel: any;
|
102
|
-
bookingSubject: any;
|
103
|
-
setOtherData: (key: string, val: any) => any;
|
104
|
-
getOtherData: (key: string) => any;
|
105
|
-
formName: any;
|
106
|
-
};
|