@pisell/private-materials 3.3.46 → 3.3.48
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +3 -3
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -0
- package/es/components/appointmentBooking/components/Resource/index.js +19 -7
- package/es/components/appointmentBooking/components/Services/index.js +1 -1
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -4
- package/es/components/appointmentBooking/components/Voucher/index.js +2 -0
- package/es/components/appointmentBooking/context.js +7 -3
- package/es/components/appointmentBooking/hooks.js +126 -67
- package/es/components/appointmentBooking/utils.js +6 -1
- package/es/components/booking/addons/index.js +31 -26
- package/es/components/booking/components/footer/amount.js +2 -2
- package/es/components/booking/components/footer/utils.d.ts +9 -0
- package/es/components/booking/components/footer/utils.js +32 -10
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service2/utils.d.ts +4 -1
- package/es/components/booking/info/service2/utils.js +21 -2
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/addService/index.js +9 -6
- package/es/components/booking/info2/service/editService/index.js +56 -18
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +5 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +75 -26
- package/es/components/ticketBooking/components/notAvailable/index.js +39 -0
- package/es/components/ticketBooking/index.js +1 -1
- package/es/components/ticketBooking/locales.d.ts +6 -0
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/serve.js +98 -92
- package/es/components/ticketBooking/utils/index.d.ts +1 -0
- package/es/components/ticketBooking/utils/index.js +33 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +3 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +7 -4
- package/lib/components/appointmentBooking/components/Services/index.js +1 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +4 -3
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -0
- package/lib/components/appointmentBooking/context.js +7 -3
- package/lib/components/appointmentBooking/hooks.js +70 -11
- package/lib/components/appointmentBooking/utils.js +2 -0
- package/lib/components/booking/addons/index.js +27 -21
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/utils.d.ts +9 -0
- package/lib/components/booking/components/footer/utils.js +24 -7
- package/lib/components/booking/info/service/addService/index.js +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +4 -1
- package/lib/components/booking/info/service2/utils.js +21 -2
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/booking/info2/service/addService/index.js +8 -5
- package/lib/components/booking/info2/service/editService/index.js +59 -23
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +6 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +74 -20
- package/lib/components/ticketBooking/components/notAvailable/index.js +61 -0
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/locales.d.ts +6 -0
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/serve.js +6 -2
- package/lib/components/ticketBooking/utils/index.d.ts +1 -0
- package/lib/components/ticketBooking/utils/index.js +33 -0
- package/package.json +4 -4
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -3
- package/es/businessModel/index.d.ts +0 -0
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/serve.d.ts +0 -2
- package/es/components/Sales/Cart/types.d.ts +0 -31
- package/es/components/Sales/Cart/utils.d.ts +0 -23
- package/es/components/Sales/Checkout/index.d.ts +0 -33
- package/es/components/Sales/Checkout/serve.d.ts +0 -2
- package/es/components/Sales/Checkout/utils.d.ts +0 -35
- package/es/components/Sales/Customer/index.d.ts +0 -24
- package/es/components/Sales/Event/Detail.d.ts +0 -29
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/Sales/Event/serve.d.ts +0 -39
- package/es/components/Sales/Holder/index.d.ts +0 -33
- package/es/components/Sales/Holder/serve.d.ts +0 -8
- package/es/components/Sales/Init/index.d.ts +0 -25
- package/es/components/Sales/Init/serve.d.ts +0 -3
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/serve.d.ts +0 -5
- package/es/components/Sales/Step/index.d.ts +0 -39
- package/es/components/Sales/Summary/index.d.ts +0 -25
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/utils.d.ts +0 -36
- package/es/components/Sales/hooks/index.d.ts +0 -1
- package/es/components/Sales/index.d.ts +0 -20
- package/es/components/Sales/utils/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- 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/Guest/components/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
- 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/index.d.ts +0 -3
- package/es/components/appointmentBooking/locales.d.ts +0 -354
- package/es/components/appointmentBooking/mock.d.ts +0 -627
- package/es/components/appointmentBooking/status.d.ts +0 -21
- package/es/components/appointmentBooking/type.d.ts +0 -17
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/es/components/booking/forms/footer.d.ts +0 -6
- package/es/components/booking/forms/sendModal/index.d.ts +0 -27
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -9
- package/es/components/booking/forms/single/index.d.ts +0 -10
- package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/es/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
- 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/model.d.ts +0 -14
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/index.d.ts +0 -4
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
- 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/locales.d.ts +0 -813
- package/es/components/booking/materiels/contacts/index.d.ts +0 -15
- package/es/components/booking/materiels/holder/index.d.ts +0 -6
- package/es/components/booking/model.d.ts +0 -115
- package/es/components/booking/notes/addNote/index.d.ts +0 -3
- package/es/components/booking/payments/index.d.ts +0 -9
- package/es/components/eftpos/index.d.ts +0 -46
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -9
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/locales.d.ts +0 -330
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/payo/config.d.ts +0 -12
- package/es/components/eftposPay/payo/hooks.d.ts +0 -10
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/eftposPay/windcave/helper.d.ts +0 -23
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -3
- package/es/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- 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/Provider/Cart/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -4
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/es/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +0 -9
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/eventBooking/index.d.ts +0 -3
- package/es/components/eventBooking/locales.d.ts +0 -222
- package/es/components/eventBooking/mock.d.ts +0 -627
- package/es/components/eventBooking/status.d.ts +0 -21
- package/es/components/eventBooking/type.d.ts +0 -17
- package/es/components/eventBooking/utils.d.ts +0 -45
- package/es/components/index.d.ts +0 -18
- package/es/components/login/index.d.ts +0 -8
- package/es/components/login/locales.d.ts +0 -24
- package/es/components/pay/toC/PaymentList/index.d.ts +0 -19
- package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -18
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +0 -16
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +0 -17
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -7
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +0 -21
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -286
- package/es/components/pay/toC/model.d.ts +0 -39
- package/es/components/pay/toC/serve.d.ts +0 -57
- package/es/components/pay/toC/utils.d.ts +0 -51
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -15
- package/es/components/productExtension/index.d.ts +0 -7
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/es/components/productSelect/hooks/useToken.d.ts +0 -18
- package/es/components/productSelect/locales.d.ts +0 -18
- package/es/components/productSelect/mock.d.ts +0 -134
- package/es/components/productSelect/theme/token.d.ts +0 -17
- package/es/components/ruleSetting/index.d.ts +0 -9
- package/es/components/ruleSetting/server.d.ts +0 -4
- package/es/components/schedules/index.d.ts +0 -3
- package/es/components/schedules/schedules/utils.d.ts +0 -72
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- 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/shoppingCart/components/Empty/index.d.ts +0 -3
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -3
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/subTotal/index.d.ts +0 -22
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/taxSelect/index.d.ts +0 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/data.d.ts +0 -58
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/es/components/ticketBooking/miniRedux.d.ts +0 -22
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Detail/locales.d.ts +0 -96
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DiscountCard/index.d.ts +0 -3
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/PointCard/index.d.ts +0 -3
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/components/index.d.ts +0 -2
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/serve.d.ts +0 -143
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/walletList/index.d.ts +0 -28
- package/es/components/walletList/model.d.ts +0 -6
- package/es/components/walletList/serve.d.ts +0 -12
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/es/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/es/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/es/hooks/useEngineContext.d.ts +0 -10
- package/es/hooks/useLocale.d.ts +0 -2
- package/es/hooks/useLoginUser.d.ts +0 -2
- package/es/index.d.ts +0 -45
- package/es/utils/date.d.ts +0 -11
- package/es/utils/index.d.ts +0 -23
- package/es/utils/locales.d.ts +0 -1
- package/es/utils/tasks/index.d.ts +0 -16
- package/es/utils/tasks/type.d.ts +0 -4
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -3
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/serve.d.ts +0 -2
- package/lib/components/Sales/Cart/types.d.ts +0 -31
- package/lib/components/Sales/Cart/utils.d.ts +0 -23
- package/lib/components/Sales/Checkout/index.d.ts +0 -33
- package/lib/components/Sales/Checkout/serve.d.ts +0 -2
- package/lib/components/Sales/Checkout/utils.d.ts +0 -35
- package/lib/components/Sales/Customer/index.d.ts +0 -24
- package/lib/components/Sales/Event/Detail.d.ts +0 -29
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/Sales/Event/serve.d.ts +0 -39
- package/lib/components/Sales/Holder/index.d.ts +0 -33
- package/lib/components/Sales/Holder/serve.d.ts +0 -8
- package/lib/components/Sales/Init/index.d.ts +0 -25
- package/lib/components/Sales/Init/serve.d.ts +0 -3
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/serve.d.ts +0 -5
- package/lib/components/Sales/Step/index.d.ts +0 -39
- package/lib/components/Sales/Summary/index.d.ts +0 -25
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +0 -36
- package/lib/components/Sales/hooks/index.d.ts +0 -1
- package/lib/components/Sales/index.d.ts +0 -20
- package/lib/components/Sales/utils/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- 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/Guest/components/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
- 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/index.d.ts +0 -3
- package/lib/components/appointmentBooking/locales.d.ts +0 -354
- package/lib/components/appointmentBooking/mock.d.ts +0 -627
- package/lib/components/appointmentBooking/status.d.ts +0 -21
- package/lib/components/appointmentBooking/type.d.ts +0 -17
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/lib/components/booking/forms/footer.d.ts +0 -6
- package/lib/components/booking/forms/sendModal/index.d.ts +0 -27
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -9
- package/lib/components/booking/forms/single/index.d.ts +0 -10
- package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/lib/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
- 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/model.d.ts +0 -14
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/index.d.ts +0 -4
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
- 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/locales.d.ts +0 -813
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -15
- package/lib/components/booking/materiels/holder/index.d.ts +0 -6
- package/lib/components/booking/model.d.ts +0 -115
- package/lib/components/booking/notes/addNote/index.d.ts +0 -3
- package/lib/components/booking/payments/index.d.ts +0 -9
- package/lib/components/eftpos/index.d.ts +0 -46
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -9
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/locales.d.ts +0 -330
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/payo/config.d.ts +0 -12
- package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -3
- package/lib/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- 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/Provider/Cart/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +0 -9
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/eventBooking/index.d.ts +0 -3
- package/lib/components/eventBooking/locales.d.ts +0 -222
- package/lib/components/eventBooking/mock.d.ts +0 -627
- package/lib/components/eventBooking/status.d.ts +0 -21
- package/lib/components/eventBooking/type.d.ts +0 -17
- package/lib/components/eventBooking/utils.d.ts +0 -45
- package/lib/components/index.d.ts +0 -18
- package/lib/components/login/index.d.ts +0 -8
- package/lib/components/login/locales.d.ts +0 -24
- package/lib/components/pay/toC/PaymentList/index.d.ts +0 -19
- package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -18
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +0 -16
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +0 -17
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -7
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +0 -21
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -286
- package/lib/components/pay/toC/model.d.ts +0 -39
- package/lib/components/pay/toC/serve.d.ts +0 -57
- package/lib/components/pay/toC/utils.d.ts +0 -51
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -15
- package/lib/components/productExtension/index.d.ts +0 -7
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
- package/lib/components/productSelect/locales.d.ts +0 -18
- package/lib/components/productSelect/mock.d.ts +0 -134
- package/lib/components/productSelect/theme/token.d.ts +0 -17
- package/lib/components/ruleSetting/index.d.ts +0 -9
- package/lib/components/ruleSetting/server.d.ts +0 -4
- package/lib/components/schedules/index.d.ts +0 -3
- package/lib/components/schedules/schedules/utils.d.ts +0 -72
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- 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/shoppingCart/components/Empty/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -3
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/subTotal/index.d.ts +0 -22
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/taxSelect/index.d.ts +0 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/data.d.ts +0 -58
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Detail/locales.d.ts +0 -96
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/PointCard/index.d.ts +0 -3
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/components/index.d.ts +0 -2
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/serve.d.ts +0 -143
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/components/walletList/model.d.ts +0 -6
- package/lib/components/walletList/serve.d.ts +0 -12
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/lib/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/lib/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/lib/hooks/useEngineContext.d.ts +0 -10
- package/lib/hooks/useLocale.d.ts +0 -2
- package/lib/hooks/useLoginUser.d.ts +0 -2
- package/lib/index.d.ts +0 -45
- package/lib/utils/date.d.ts +0 -11
- package/lib/utils/index.d.ts +0 -23
- package/lib/utils/locales.d.ts +0 -1
- package/lib/utils/tasks/index.d.ts +0 -16
- package/lib/utils/tasks/type.d.ts +0 -4
- /package/es/components/{booking/components/footer/AppointmentProductModal → ticketBooking/components/notAvailable}/index.d.ts +0 -0
- /package/lib/components/{booking/components/footer/AppointmentProductModal → ticketBooking/components/notAvailable}/index.d.ts +0 -0
|
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/ticketBooking/utils/index.ts
|
|
30
30
|
var utils_exports = {};
|
|
31
31
|
__export(utils_exports, {
|
|
32
|
+
addService: () => addService,
|
|
32
33
|
formatBookingList: () => formatBookingList,
|
|
33
34
|
formatDateToStr: () => formatDateToStr,
|
|
34
35
|
getDefaultStartParam: () => getDefaultStartParam,
|
|
@@ -38,6 +39,7 @@ __export(utils_exports, {
|
|
|
38
39
|
});
|
|
39
40
|
module.exports = __toCommonJS(utils_exports);
|
|
40
41
|
var import_dayjs = __toESM(require("dayjs"));
|
|
42
|
+
var import_utils = require("../../booking/info/service2/utils");
|
|
41
43
|
var formatDateToStr = (date) => {
|
|
42
44
|
const format = (val) => {
|
|
43
45
|
return (0, import_dayjs.default)(val).format("YYYY-MM-DD HH:mm:ss");
|
|
@@ -120,8 +122,39 @@ var restoreProductOtherData = (data) => {
|
|
|
120
122
|
quantity: Number(detail.product_quantity)
|
|
121
123
|
};
|
|
122
124
|
};
|
|
125
|
+
var isSameProduct = (a, b) => {
|
|
126
|
+
var _a, _b, _c, _d;
|
|
127
|
+
return ((_b = (_a = a._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.rowKey) === ((_d = (_c = b._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.rowKey);
|
|
128
|
+
};
|
|
129
|
+
var addService = (list, addItem) => {
|
|
130
|
+
let value = list;
|
|
131
|
+
if (!(0, import_utils.isNormalProductByDurationSchedule)(addItem)) {
|
|
132
|
+
value.push(addItem);
|
|
133
|
+
} else {
|
|
134
|
+
let isNotSame = true;
|
|
135
|
+
value = list.map((item) => {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
if (isSameProduct(item, addItem)) {
|
|
138
|
+
isNotSame = false;
|
|
139
|
+
return {
|
|
140
|
+
...item,
|
|
141
|
+
_extend: {
|
|
142
|
+
...item._extend,
|
|
143
|
+
quantity: (((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.quantity) || 1) + (((_b = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _b.quantity) || 1)
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
return item;
|
|
148
|
+
});
|
|
149
|
+
if (isNotSame) {
|
|
150
|
+
value.push(addItem);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return value;
|
|
154
|
+
};
|
|
123
155
|
// Annotate the CommonJS export names for ESM import in node:
|
|
124
156
|
0 && (module.exports = {
|
|
157
|
+
addService,
|
|
125
158
|
formatBookingList,
|
|
126
159
|
formatDateToStr,
|
|
127
160
|
getDefaultStartParam,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.48",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@pisell/utils": "1.0.42",
|
|
63
|
-
"@pisell/materials": "3.3.
|
|
64
|
-
"@pisell/
|
|
65
|
-
"@pisell/
|
|
63
|
+
"@pisell/materials": "3.3.16",
|
|
64
|
+
"@pisell/icon": "0.0.11",
|
|
65
|
+
"@pisell/date-picker": "3.0.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|
|
@@ -1,24 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useHooks: () => any;
|
|
File without changes
|
|
@@ -1,53 +0,0 @@
|
|
|
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;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* available_capacity(容量)、deadline_day(截止日期)、future_day(预定天数)
|
|
3
|
-
*/
|
|
4
|
-
export declare type TCartItemUnavailableType = 'available_capacity' | 'deadline_day' | 'future_day';
|
|
5
|
-
/**
|
|
6
|
-
* 商品不可用原因
|
|
7
|
-
*/
|
|
8
|
-
export interface IUnavailableResult {
|
|
9
|
-
event_unique_identifier: number;
|
|
10
|
-
relation_id: number;
|
|
11
|
-
product_id: number;
|
|
12
|
-
details?: Array<{
|
|
13
|
-
type: TCartItemUnavailableType;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 更新失效的购物车商品
|
|
18
|
-
*/
|
|
19
|
-
export declare type TUpdateDisabledCartItem = (list: Array<IUnavailableResult>) => void;
|
|
20
|
-
export interface ICalculatePriceParams {
|
|
21
|
-
/** 商品 */
|
|
22
|
-
product: any;
|
|
23
|
-
/** 规格 */
|
|
24
|
-
variant?: any;
|
|
25
|
-
/** 套餐 */
|
|
26
|
-
bundle?: any[];
|
|
27
|
-
/** 规格 */
|
|
28
|
-
options?: any[];
|
|
29
|
-
/** 数量 */
|
|
30
|
-
num?: number;
|
|
31
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ICalculatePriceParams } from './types';
|
|
2
|
-
export declare const handleProductInfo: (eventDetail: any, num: number) => {
|
|
3
|
-
totalPrice: number;
|
|
4
|
-
originTotal: any;
|
|
5
|
-
is_charge_tax: any;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* 获取商品总价
|
|
9
|
-
* @description 当前总价计算基于商品数量为1
|
|
10
|
-
* @param item 商品
|
|
11
|
-
* @returns 商品总价
|
|
12
|
-
*/
|
|
13
|
-
export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
|
|
14
|
-
/**
|
|
15
|
-
* 获取商品原始总价
|
|
16
|
-
* @description 当前总价计算基于商品数量为1
|
|
17
|
-
* @param item 商品
|
|
18
|
-
* @returns 商品原始总价
|
|
19
|
-
*/
|
|
20
|
-
export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
|
|
21
|
-
export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
|
|
22
|
-
export declare const formatBundleToOrigin: (bundle: any) => any;
|
|
23
|
-
export declare const formatOptionsToOrigin: (options: any) => any;
|
|
@@ -1,33 +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
|
-
}
|
|
9
|
-
interface CheckoutContextType {
|
|
10
|
-
onCheckBeforeBooking: (data: any) => Promise<{
|
|
11
|
-
result: boolean;
|
|
12
|
-
num: number;
|
|
13
|
-
}>;
|
|
14
|
-
onCheckout: (data: any) => Promise<any>;
|
|
15
|
-
onPay: (payProps: PayProps) => void;
|
|
16
|
-
createBooking: any;
|
|
17
|
-
checkBeforeBooking: any;
|
|
18
|
-
}
|
|
19
|
-
interface CheckoutProviderProps {
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
|
|
23
|
-
export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
|
|
24
|
-
/**
|
|
25
|
-
* 使用步骤管理的Hook
|
|
26
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
27
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
28
|
-
*/
|
|
29
|
-
export declare const useCheckout: () => CheckoutContextType;
|
|
30
|
-
declare const _default: {
|
|
31
|
-
defaultState: CheckoutData;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
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: (state: any, excludeDisabled?: boolean, otherValue?: Record<string, any>) => any;
|
|
28
|
-
/**
|
|
29
|
-
* @title: 获取拉开表单弹窗参数
|
|
30
|
-
* @param state
|
|
31
|
-
*/
|
|
32
|
-
export declare const getFormParams: (state: any) => {
|
|
33
|
-
product_id: any;
|
|
34
|
-
appointment_type: string;
|
|
35
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface CustomerData {
|
|
3
|
-
}
|
|
4
|
-
interface CustomerContextType {
|
|
5
|
-
appUtils: any;
|
|
6
|
-
isLogin: () => boolean;
|
|
7
|
-
openLoginModal: (params: any) => void;
|
|
8
|
-
getUserInfo: () => any;
|
|
9
|
-
}
|
|
10
|
-
interface CustomerProviderProps {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
|
|
14
|
-
export declare const CustomerProvider: React.FC<CustomerProviderProps>;
|
|
15
|
-
/**
|
|
16
|
-
* 使用步骤管理的Hook
|
|
17
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
18
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
19
|
-
*/
|
|
20
|
-
export declare const useCustomer: () => CustomerContextType;
|
|
21
|
-
declare const _default: {
|
|
22
|
-
defaultState: CustomerData;
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,29 +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
|
-
}
|
|
18
|
-
interface EventDetailProviderProps {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
}
|
|
21
|
-
export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
|
|
22
|
-
export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
|
|
23
|
-
/**
|
|
24
|
-
* 使用步骤管理的Hook
|
|
25
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
26
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
27
|
-
*/
|
|
28
|
-
export declare const useEventDetail: () => EventDetailContextType;
|
|
29
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface EventData {
|
|
3
|
-
currentEventItem: any;
|
|
4
|
-
eventList: any[];
|
|
5
|
-
}
|
|
6
|
-
interface EventContextType {
|
|
7
|
-
eventData: EventData;
|
|
8
|
-
getEventList: {
|
|
9
|
-
run: (params: any) => void;
|
|
10
|
-
loading: boolean;
|
|
11
|
-
data?: EventData['eventList'];
|
|
12
|
-
};
|
|
13
|
-
getEventListByTitle: (title: string) => any;
|
|
14
|
-
selectEvent: (eventItem: any) => void;
|
|
15
|
-
}
|
|
16
|
-
interface EventProviderProps {
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
export declare const EventContext: React.Context<EventContextType | undefined>;
|
|
20
|
-
export declare const EventProvider: React.FC<EventProviderProps>;
|
|
21
|
-
/**
|
|
22
|
-
* 使用步骤管理的Hook
|
|
23
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
24
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
25
|
-
*/
|
|
26
|
-
export declare const useEvent: () => EventContextType;
|
|
27
|
-
declare const _default: {
|
|
28
|
-
defaultState: EventData;
|
|
29
|
-
};
|
|
30
|
-
export default _default;
|
|
@@ -1,39 +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>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface HolderData {
|
|
3
|
-
}
|
|
4
|
-
interface HolderContextType {
|
|
5
|
-
holderData: HolderData;
|
|
6
|
-
getHolderList: any;
|
|
7
|
-
selectHolder: any;
|
|
8
|
-
open: boolean;
|
|
9
|
-
onOpenCreateHolder: any;
|
|
10
|
-
onHolderOpen: any;
|
|
11
|
-
onHolderClose: any;
|
|
12
|
-
createHolder: any;
|
|
13
|
-
selectedHolderIds: any;
|
|
14
|
-
refreshHolder: () => void;
|
|
15
|
-
deleteHolderById: (holderId: number) => void;
|
|
16
|
-
updateHolderList: (holerItem: any) => void;
|
|
17
|
-
defaultSelectedHolder: any;
|
|
18
|
-
}
|
|
19
|
-
interface HolderProviderProps {
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export declare const HolderContext: React.Context<HolderContextType | undefined>;
|
|
23
|
-
export declare const HolderProvider: React.FC<HolderProviderProps>;
|
|
24
|
-
/**
|
|
25
|
-
* 使用步骤管理的Hook
|
|
26
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
27
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
28
|
-
*/
|
|
29
|
-
export declare const useHolder: () => HolderContextType;
|
|
30
|
-
declare const _default: {
|
|
31
|
-
defaultState: HolderData;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface InitData {
|
|
3
|
-
boardSetting?: any;
|
|
4
|
-
form_id?: number;
|
|
5
|
-
shop_id?: number;
|
|
6
|
-
shop?: any;
|
|
7
|
-
scheduleDisplayType?: 'calendarView' | 'textList';
|
|
8
|
-
}
|
|
9
|
-
interface InitContextType {
|
|
10
|
-
getBoardSetting: any;
|
|
11
|
-
initData: InitData;
|
|
12
|
-
resetInitPartData: () => void;
|
|
13
|
-
}
|
|
14
|
-
interface InitProviderProps {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
}
|
|
17
|
-
export declare const InitContext: React.Context<InitContextType | undefined>;
|
|
18
|
-
export declare const InitProvider: React.FC<InitProviderProps>;
|
|
19
|
-
/**
|
|
20
|
-
* 使用步骤管理的Hook
|
|
21
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
22
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
23
|
-
*/
|
|
24
|
-
export declare const useInit: () => InitContextType;
|
|
25
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
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;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Step {
|
|
3
|
-
key: StepKey;
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
}
|
|
7
|
-
declare type StepKey = 'select-category' | 'select-event' | 'confirm-information';
|
|
8
|
-
interface StepData {
|
|
9
|
-
currentStep: StepKey;
|
|
10
|
-
isAutoOperate?: boolean;
|
|
11
|
-
}
|
|
12
|
-
interface StepContextType {
|
|
13
|
-
setStepData: (data: Partial<StepData>) => void;
|
|
14
|
-
currentStepData: Step;
|
|
15
|
-
nextStep: () => void;
|
|
16
|
-
prevStep: () => void;
|
|
17
|
-
closePage: () => void;
|
|
18
|
-
toFirstStep: () => void;
|
|
19
|
-
isLastStep: boolean;
|
|
20
|
-
isFirstStep: boolean;
|
|
21
|
-
isTwoStep: boolean;
|
|
22
|
-
changeAutoOperate: (newAutoOperate: boolean) => void;
|
|
23
|
-
}
|
|
24
|
-
interface StepProviderProps {
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
}
|
|
27
|
-
export declare const steps: Step[];
|
|
28
|
-
export declare const StepContext: React.Context<StepContextType | undefined>;
|
|
29
|
-
export declare const StepProvider: React.FC<StepProviderProps>;
|
|
30
|
-
/**
|
|
31
|
-
* 使用步骤管理的Hook
|
|
32
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
33
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
34
|
-
*/
|
|
35
|
-
export declare const useStep: () => StepContextType;
|
|
36
|
-
declare const _default: {
|
|
37
|
-
defaultState: StepData;
|
|
38
|
-
};
|
|
39
|
-
export default _default;
|
|
@@ -1,25 +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
|
-
}
|
|
11
|
-
interface SummaryProviderProps {
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export declare const SummaryContext: React.Context<SummaryContextType | undefined>;
|
|
15
|
-
export declare const SummaryProvider: React.FC<SummaryProviderProps>;
|
|
16
|
-
/**
|
|
17
|
-
* 使用步骤管理的Hook
|
|
18
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
19
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
20
|
-
*/
|
|
21
|
-
export declare const useSummary: () => SummaryContextType;
|
|
22
|
-
declare const _default: {
|
|
23
|
-
defaultState: SummaryData;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
File without changes
|
|
@@ -1,36 +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
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 计算商品小计(不含其他费用)
|
|
16
|
-
* @param items - 购物车商品数组
|
|
17
|
-
* @returns 商品总价字符串,保留2位小数
|
|
18
|
-
*/
|
|
19
|
-
export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
20
|
-
/**
|
|
21
|
-
* @title: 单个商品的税费
|
|
22
|
-
* @description:
|
|
23
|
-
* 单个商品的税费 = 商品销售单价(折扣后) * 税率 * is_charge_tax /( 1+ 税率 * is_price_include_tax)
|
|
24
|
-
* $taxFee = $price * $taxRate * $isChargeTax / (1 + $taxRate * $isPriceIncludeTax);
|
|
25
|
-
* @return {*}
|
|
26
|
-
* @Author: xiangfeng.xue
|
|
27
|
-
*/
|
|
28
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
|
29
|
-
/**
|
|
30
|
-
* 计算所有价格明细
|
|
31
|
-
* @param items - 购物车商品数组
|
|
32
|
-
* @param options - 其他费用配置
|
|
33
|
-
* @returns 价格明细对象
|
|
34
|
-
*/
|
|
35
|
-
export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
|
|
36
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useCustomInit: () => {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useSales } from '../../businessModel/SalesModel';
|
|
3
|
-
import { useStep } from './Step';
|
|
4
|
-
import { useCheckout } from './Checkout';
|
|
5
|
-
import { useSummary } from './Summary';
|
|
6
|
-
import { useCart } from './Cart';
|
|
7
|
-
import { useHolder } from './Holder';
|
|
8
|
-
import { useEvent } from './Event';
|
|
9
|
-
import { useEventDetail } from './Event/Detail';
|
|
10
|
-
import { useResource } from './Resource';
|
|
11
|
-
import { useCustomer } from './Customer';
|
|
12
|
-
import { useInit } from './Init';
|
|
13
|
-
declare const SalesPage: ({ config, children, }: {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
config?: {
|
|
16
|
-
useSessionStorage?: boolean | undefined;
|
|
17
|
-
} | undefined;
|
|
18
|
-
}) => JSX.Element;
|
|
19
|
-
export default SalesPage;
|
|
20
|
-
export { useCustomer, useInit, useSales, useStep, useResource, useEvent, useEventDetail, useHolder, useSummary, useCheckout, useCart, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getIamgeFromMedia: (data: any, type?: 'findAll' | 'findOne') => any;
|