@pisell/private-materials 6.2.10 → 6.2.11
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/Sales/index.d.ts +24 -0
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Checkout/index.d.ts +37 -0
- package/es/components/Sales/Checkout/serve.d.ts +15 -0
- package/es/components/Sales/Checkout/utils.d.ts +40 -0
- package/es/components/Sales/Customer/index.d.ts +25 -0
- package/es/components/Sales/Resource/index.d.ts +26 -0
- package/es/components/Sales/Resource/serve.d.ts +12 -0
- package/es/components/Sales/Summary/index.d.ts +35 -0
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/es/components/appointmentBooking/index.d.ts +3 -0
- 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.d.ts +38 -0
- package/es/components/booking/components/customSelect/index.js +1 -0
- package/es/components/booking/components/footer/index.d.ts +11 -0
- package/es/components/booking/components/footer/utils.d.ts +41 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/editBookingModal/index.d.ts +5 -0
- package/es/components/booking/editBookingModal/locales.d.ts +21 -0
- package/es/components/booking/editBookingModal/mock.d.ts +807 -0
- package/es/components/booking/editBookingModal/serve.d.ts +51 -0
- package/es/components/booking/editBookingModal/type.d.ts +12 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +2 -0
- package/es/components/booking/hooks/useClearCart.js +11 -8
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +6 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- 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.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
- package/es/components/booking/info/index.d.ts +3 -0
- package/es/components/booking/info/model.d.ts +5 -0
- package/es/components/booking/info/service/Lists.d.ts +2 -0
- package/es/components/booking/info/service/Lists.js +36 -26
- package/es/components/booking/info/service/addService/index.d.ts +11 -0
- 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/index.d.ts +7 -0
- 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/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/utils.d.ts +247 -0
- package/es/components/booking/info/service2/utils.js +20 -21
- package/es/components/booking/info/utils.d.ts +50 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/index.js +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/es/components/booking/info2/service/addService/utils.js +6 -3
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/es/components/booking/info2/service/editService/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/index.js +258 -165
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/service/index.js +19 -15
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/es/components/booking/locales.d.ts +828 -0
- package/es/components/booking/materiels/duration/index.d.ts +13 -0
- 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.js +1 -1
- package/es/components/booking/model.d.ts +108 -0
- 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.js +5 -5
- 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/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/const.d.ts +184 -0
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/payo/config.d.ts +12 -0
- package/es/components/eftposPay/store/index.d.ts +355 -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/Cart/ContinueButton/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +3 -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/bookingDetailModal/index.d.ts +7 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +3 -0
- package/es/components/eventBooking/locales.d.ts +246 -0
- package/es/components/index.d.ts +20 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/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/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +289 -0
- 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/productSelect/components/pisellPriceText/index.d.ts +11 -0
- 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.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.d.ts +4 -0
- package/es/components/shoppingCart/components/Cart/Product.js +48 -41
- package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
- 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/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/components/Header/index.d.ts +20 -0
- package/es/components/stepController/index.d.ts +5 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +175 -157
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/es/components/ticketBooking/components/timeBar/index.js +78 -71
- package/es/components/ticketBooking/serve.d.ts +287 -0
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/es/components/ticketBooking/utils/index.d.ts +23 -0
- 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/es/hooks/useWindowSize.d.ts +5 -0
- package/es/index.d.ts +47 -0
- package/es/utils/index.d.ts +23 -0
- package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Checkout/index.d.ts +37 -0
- package/lib/components/Sales/Checkout/serve.d.ts +15 -0
- package/lib/components/Sales/Checkout/utils.d.ts +40 -0
- package/lib/components/Sales/Customer/index.d.ts +25 -0
- package/lib/components/Sales/Resource/index.d.ts +26 -0
- package/lib/components/Sales/Resource/serve.d.ts +12 -0
- package/lib/components/Sales/Summary/index.d.ts +35 -0
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/lib/components/appointmentBooking/index.d.ts +3 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.d.ts +38 -0
- package/lib/components/booking/components/customSelect/index.js +1 -0
- package/lib/components/booking/components/footer/index.d.ts +11 -0
- package/lib/components/booking/components/footer/utils.d.ts +41 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/editBookingModal/index.d.ts +5 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
- package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
- package/lib/components/booking/editBookingModal/type.d.ts +12 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
- package/lib/components/booking/hooks/useClearCart.js +16 -13
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +6 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- 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.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
- package/lib/components/booking/info/index.d.ts +3 -0
- package/lib/components/booking/info/model.d.ts +5 -0
- package/lib/components/booking/info/service/Lists.d.ts +2 -0
- package/lib/components/booking/info/service/Lists.js +35 -23
- package/lib/components/booking/info/service/addService/index.d.ts +11 -0
- 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/index.d.ts +7 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/utils.d.ts +247 -0
- package/lib/components/booking/info/service2/utils.js +17 -17
- package/lib/components/booking/info/utils.d.ts +50 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/lib/components/booking/info2/service/addService/utils.js +4 -2
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/index.js +132 -70
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/service/index.js +13 -9
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/lib/components/booking/locales.d.ts +828 -0
- package/lib/components/booking/materiels/duration/index.d.ts +13 -0
- 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/model.d.ts +108 -0
- 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/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/const.d.ts +184 -0
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/payo/config.d.ts +12 -0
- package/lib/components/eftposPay/store/index.d.ts +355 -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/Cart/ContinueButton/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +3 -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/bookingDetailModal/index.d.ts +7 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +3 -0
- package/lib/components/eventBooking/locales.d.ts +246 -0
- package/lib/components/index.d.ts +20 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -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/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +289 -0
- 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/productSelect/components/pisellPriceText/index.d.ts +11 -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/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.d.ts +4 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
- package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
- 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/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/stepController/components/Header/index.d.ts +20 -0
- package/lib/components/stepController/index.d.ts +5 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +143 -127
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
- package/lib/components/ticketBooking/serve.d.ts +287 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/lib/components/ticketBooking/utils/index.d.ts +23 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/index.d.ts +47 -0
- package/lib/utils/index.d.ts +23 -0
- package/package.json +3 -3
@@ -0,0 +1,24 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface SalesProviderProps {
|
3
|
+
children: React.ReactNode;
|
4
|
+
hooks?: any;
|
5
|
+
config?: {
|
6
|
+
useSessionStorage?: boolean;
|
7
|
+
};
|
8
|
+
}
|
9
|
+
interface SalesContextProps {
|
10
|
+
data: {
|
11
|
+
[key: string]: any;
|
12
|
+
};
|
13
|
+
setData: any;
|
14
|
+
hooks: any;
|
15
|
+
setHooks: any;
|
16
|
+
getCurrentData: any;
|
17
|
+
setSessionStorage: () => void;
|
18
|
+
getSessionStorage: () => any;
|
19
|
+
removeSessionStorage: () => void;
|
20
|
+
}
|
21
|
+
export declare const SalesContext: React.Context<SalesContextProps>;
|
22
|
+
export declare const SalesProvider: React.FC<SalesProviderProps>;
|
23
|
+
export declare const useSales: () => SalesContextProps;
|
24
|
+
export {};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TUpdateDisabledCartItem } from './types';
|
3
|
+
interface CartItem {
|
4
|
+
_id: string;
|
5
|
+
[key: string]: any;
|
6
|
+
}
|
7
|
+
interface CartData {
|
8
|
+
cartItems: CartItem[];
|
9
|
+
currentCartItem: CartItem | null;
|
10
|
+
}
|
11
|
+
interface CartContextType {
|
12
|
+
createCartItem: () => CartItem;
|
13
|
+
createCartItemFromEvent: (eventItem: any) => CartItem;
|
14
|
+
createCartItemFromHolder: (holderItem: any) => CartItem;
|
15
|
+
addToCart: () => void;
|
16
|
+
updateCartItem: (cartItem: CartItem) => CartItem;
|
17
|
+
deleteCartItem: (cartItem: CartItem) => void;
|
18
|
+
clickCartItem: (cartItem: CartItem) => void;
|
19
|
+
updateCurrentCartItem: (cartItem: Partial<CartItem>) => void;
|
20
|
+
clearCurrentCartItem: () => void;
|
21
|
+
currentCartItem: CartItem | null;
|
22
|
+
checkHolder: () => boolean;
|
23
|
+
cartData: CartData;
|
24
|
+
openCart: boolean;
|
25
|
+
onOpenCart: any;
|
26
|
+
onCloseCart: any;
|
27
|
+
deleteCartItemByHolder: (holder_id: number) => void;
|
28
|
+
addHolderToCartItem: (holderItem: any) => void;
|
29
|
+
cartDataHolderList: any;
|
30
|
+
addNoteToCartItem: (cartItem: CartItem) => void;
|
31
|
+
updateDisabledCartItem: TUpdateDisabledCartItem;
|
32
|
+
getWithoutCartItemsHolderNames: () => Array<string>;
|
33
|
+
checkBeforeAddToCartResquest: any;
|
34
|
+
checkBeforeAddToCart: () => Promise<{
|
35
|
+
result: boolean;
|
36
|
+
num: number;
|
37
|
+
}>;
|
38
|
+
}
|
39
|
+
interface CartProviderProps {
|
40
|
+
children: React.ReactNode;
|
41
|
+
}
|
42
|
+
export declare const CartContext: React.Context<CartContextType | undefined>;
|
43
|
+
export declare const CartProvider: React.FC<CartProviderProps>;
|
44
|
+
/**
|
45
|
+
* 使用步骤管理的Hook
|
46
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
47
|
+
* @returns {StepContextType} 步骤管理上下文
|
48
|
+
*/
|
49
|
+
export declare const useCart: () => CartContextType;
|
50
|
+
declare const _default: {
|
51
|
+
defaultState: CartData;
|
52
|
+
};
|
53
|
+
export default _default;
|
@@ -0,0 +1,63 @@
|
|
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
|
+
};
|
@@ -0,0 +1,37 @@
|
|
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;
|
@@ -0,0 +1,15 @@
|
|
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>;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* @title: 套餐单规格信息
|
3
|
+
* @description:
|
4
|
+
* @param {any} option
|
5
|
+
* @return {*}
|
6
|
+
* @Author: zhiwei.Wang
|
7
|
+
* @Date: 2024-02-19 09:26
|
8
|
+
*/
|
9
|
+
export declare const formatProductOption: (option: any) => any;
|
10
|
+
/**
|
11
|
+
* @title: 套餐信息
|
12
|
+
* @description:
|
13
|
+
* @param {any} bundle
|
14
|
+
* @return {*}
|
15
|
+
* @Author: zhiwei.Wang
|
16
|
+
* @Date: 2024-02-19 09:26
|
17
|
+
*/
|
18
|
+
export declare const formatProductBundle: (bundle: any) => any;
|
19
|
+
/**
|
20
|
+
* @title: 格式化下单接口数据
|
21
|
+
* @description:
|
22
|
+
* @param {any} state saledModel数据源
|
23
|
+
* @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
|
24
|
+
* @Author: xiangfeng.xue
|
25
|
+
* @Date: 2025-01-21 17:57
|
26
|
+
*/
|
27
|
+
export declare const formatValues: (params: {
|
28
|
+
state: any;
|
29
|
+
platform: 'h5' | 'pc';
|
30
|
+
excludeDisabled?: boolean;
|
31
|
+
extra?: Record<string, any>;
|
32
|
+
}) => any;
|
33
|
+
/**
|
34
|
+
* @title: 获取拉开表单弹窗参数
|
35
|
+
* @param state
|
36
|
+
*/
|
37
|
+
export declare const getFormParams: (state: any) => {
|
38
|
+
product_id: any;
|
39
|
+
appointment_type: string;
|
40
|
+
};
|
@@ -0,0 +1,25 @@
|
|
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;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface ResourceData {
|
3
|
+
}
|
4
|
+
interface ResourceContextType {
|
5
|
+
getResourceList: {
|
6
|
+
run: (params: any) => void;
|
7
|
+
loading: boolean;
|
8
|
+
data?: any;
|
9
|
+
};
|
10
|
+
selectResource: (newResourceData: Partial<ResourceData>) => void;
|
11
|
+
}
|
12
|
+
interface ResourceProviderProps {
|
13
|
+
children: React.ReactNode;
|
14
|
+
}
|
15
|
+
export declare const ResourceContext: React.Context<ResourceContextType | undefined>;
|
16
|
+
export declare const ResourceProvider: React.FC<ResourceProviderProps>;
|
17
|
+
/**
|
18
|
+
* 使用步骤管理的Hook
|
19
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
20
|
+
* @returns {StepContextType} 步骤管理上下文
|
21
|
+
*/
|
22
|
+
export declare const useResource: () => ResourceContextType;
|
23
|
+
declare const _default: {
|
24
|
+
defaultState: ResourceData;
|
25
|
+
};
|
26
|
+
export default _default;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare const getResourceListApi: (params: {
|
2
|
+
form_id: string;
|
3
|
+
shop_id: string;
|
4
|
+
form_data_status: string;
|
5
|
+
}) => Promise<any>;
|
6
|
+
/**
|
7
|
+
* @title: 获取特殊资源列表
|
8
|
+
* @Author: xiangfeng.xue
|
9
|
+
*/
|
10
|
+
export declare const getSpecialResourceListApi: (params: {
|
11
|
+
event_item_ids?: string | number[];
|
12
|
+
}) => Promise<any>;
|
@@ -0,0 +1,35 @@
|
|
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;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getDepositProtocolApi: (id: string) => Promise<any>;
|
@@ -0,0 +1,51 @@
|
|
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[]) => "0.00" | Decimal;
|
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 {};
|
@@ -0,0 +1,9 @@
|
|
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;
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
5
|
-
function _iterableToArrayLimit(
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
7
7
|
import React, { useMemo, useState, useEffect, forwardRef, useImperativeHandle } from "react";
|
8
8
|
import classNames from "classnames";
|
@@ -13,6 +13,10 @@ import "./index.less";
|
|
13
13
|
|
14
14
|
// tabs 子组件定义
|
15
15
|
|
16
|
+
// 定义主键类型
|
17
|
+
|
18
|
+
// Tabs 可传递的参数
|
19
|
+
|
16
20
|
var Tabs = function Tabs(_ref, ref) {
|
17
21
|
var renderTab = _ref.renderTab,
|
18
22
|
rowKey = _ref.rowKey,
|
@@ -29,7 +29,7 @@ var BrowserSelect = function BrowserSelect(props) {
|
|
29
29
|
onChange: function onChange(e) {
|
30
30
|
var _resetProps$onChange;
|
31
31
|
e.persist();
|
32
|
-
(_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0
|
32
|
+
(_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 || _resetProps$onChange.call(resetProps, e);
|
33
33
|
}
|
34
34
|
}), _options);
|
35
35
|
};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
interface CustomSelectProps {
|
4
|
+
options: any[];
|
5
|
+
onValueChange: (value: any[]) => void;
|
6
|
+
value: any[];
|
7
|
+
rowKey: string;
|
8
|
+
previewItemRender?: (item: any) => React.ReactNode;
|
9
|
+
previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
|
10
|
+
addButtonRender?: () => React.ReactNode;
|
11
|
+
optionRender: (item: any) => React.ReactNode;
|
12
|
+
addButtonProps?: any;
|
13
|
+
drawerProps?: any;
|
14
|
+
createItemText?: string;
|
15
|
+
loading?: boolean;
|
16
|
+
previewItemClassName?: string;
|
17
|
+
optionClassName?: string;
|
18
|
+
mode?: 'single' | 'multiple' | 'form';
|
19
|
+
filterItem?: (item: any, search: string) => boolean;
|
20
|
+
isPreview?: boolean;
|
21
|
+
name?: string;
|
22
|
+
handleCreateItem?: () => void;
|
23
|
+
handleViewItem?: (item: any) => void;
|
24
|
+
searchChange?: (e: string) => void;
|
25
|
+
loadMore?: any;
|
26
|
+
virtualListHeight?: number;
|
27
|
+
disabled?: boolean;
|
28
|
+
searchValue?: string;
|
29
|
+
onVirtualListScroll?: any;
|
30
|
+
modalOpen?: boolean;
|
31
|
+
closeCallback?: () => any;
|
32
|
+
autoFocus?: boolean;
|
33
|
+
showDropDown?: boolean;
|
34
|
+
handleOpenModal?: () => void;
|
35
|
+
handleDayChange?: (value: any) => void;
|
36
|
+
}
|
37
|
+
declare const _default: React.ForwardRefExoticComponent<CustomSelectProps & React.RefAttributes<unknown>>;
|
38
|
+
export default _default;
|
@@ -74,6 +74,7 @@ var CustomSelect = function CustomSelect(props, ref) {
|
|
74
74
|
showDropDown = _props$showDropDown === void 0 ? true : _props$showDropDown,
|
75
75
|
propsHandleOpenModal = props.handleOpenModal,
|
76
76
|
handleDayChange = props.handleDayChange;
|
77
|
+
console.log('custom select');
|
77
78
|
var searchRef = useRef();
|
78
79
|
|
79
80
|
// 当前选择的值
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* @title: 套餐单规格信息
|
3
|
+
* @description:
|
4
|
+
* @param {any} option
|
5
|
+
* @return {*}
|
6
|
+
* @Author: zhiwei.Wang
|
7
|
+
* @Date: 2024-02-19 09:26
|
8
|
+
*/
|
9
|
+
export declare const formatProductOption: (option: any) => any;
|
10
|
+
/**
|
11
|
+
* @title: 套餐信息
|
12
|
+
* @description:
|
13
|
+
* @param {any} bundle
|
14
|
+
* @return {*}
|
15
|
+
* @Author: zhiwei.Wang
|
16
|
+
* @Date: 2024-02-19 09:26
|
17
|
+
*/
|
18
|
+
export declare const formatProductBundle: (bundle: any) => any;
|
19
|
+
export interface ResourceItem {
|
20
|
+
[key: string]: any;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
|
24
|
+
* @description:
|
25
|
+
* @param {object} resource
|
26
|
+
* @return {*}
|
27
|
+
* @Author: jinglin.tan
|
28
|
+
*/
|
29
|
+
export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
|
30
|
+
export declare const checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
|
31
|
+
/**
|
32
|
+
* @title: 格式化商品单价
|
33
|
+
* @description:
|
34
|
+
* @param {any} item
|
35
|
+
* @return {*}
|
36
|
+
* @Author: WangHan
|
37
|
+
* @Date: 2024-12-23 12:05
|
38
|
+
*/
|
39
|
+
export declare const formatProductPrice: (item: any) => number;
|
40
|
+
export declare const formatValues: (state: any) => any;
|
41
|
+
export declare const checkHolderIsError: (state: any) => any;
|