@pisell/private-materials 6.3.78 → 6.3.79
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.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.d.ts +1 -1
- package/es/components/Sales/Cart/index.js +18 -3
- package/es/components/Sales/Cart/utils.d.ts +68 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Checkout/utils.js +57 -1
- package/es/components/Sales/Summary/index.d.ts +2 -0
- package/es/components/Sales/Summary/index.js +7 -2
- package/es/components/Sales/Summary/utils.d.ts +58 -0
- package/es/components/Sales/Summary/utils.js +57 -10
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +62 -4
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +5 -1
- package/es/components/appointmentBooking/components/Deposit/index.js +9 -4
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/appointmentBooking/locales.d.ts +366 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +4 -4
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/editService/utils.d.ts +13 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/addNote/index.d.ts +3 -0
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/const.d.ts +184 -0
- package/es/components/eftposPay/device.d.ts +1 -2
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/linkly/index.d.ts +0 -1
- package/es/components/eftposPay/locales.d.ts +330 -0
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +355 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +4 -2
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +4 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +79 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.less +7 -6
- package/es/components/eventBooking/components/Provider/Cart/index.js +2 -7
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.less +1 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/es/components/eventBooking/components/Voucher/index.js +1 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -2
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +40 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/subTotal/index.d.ts +2 -0
- package/es/components/subTotal/index.js +42 -20
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/locales.d.ts +174 -0
- package/es/hooks/useEngineContext.d.ts +10 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/selectHolder/locales.d.ts +21 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/types.d.ts +429 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/pro/NumericStepper/index.d.ts +43 -0
- package/es/pro/Selector/Selector.d.ts +14 -0
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Indicator/index.d.ts +19 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
- package/es/pro/Selector/demo.d.ts +0 -1
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/types.d.ts +173 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.d.ts +1 -1
- package/lib/components/Sales/Cart/index.js +20 -7
- package/lib/components/Sales/Cart/utils.d.ts +68 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Checkout/utils.js +64 -1
- package/lib/components/Sales/Summary/index.d.ts +2 -0
- package/lib/components/Sales/Summary/index.js +8 -2
- package/lib/components/Sales/Summary/utils.d.ts +58 -0
- package/lib/components/Sales/Summary/utils.js +38 -13
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +52 -4
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +5 -1
- package/lib/components/appointmentBooking/components/Deposit/index.js +7 -4
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/appointmentBooking/locales.d.ts +366 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +4 -4
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/editService/utils.d.ts +13 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/addNote/index.d.ts +3 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/const.d.ts +184 -0
- package/lib/components/eftposPay/device.d.ts +1 -2
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/linkly/index.d.ts +0 -1
- package/lib/components/eftposPay/locales.d.ts +330 -0
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +355 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +4 -2
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +3 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +77 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +7 -6
- package/lib/components/eventBooking/components/Provider/Cart/index.js +2 -2
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.less +1 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/lib/components/eventBooking/components/Voucher/index.js +1 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +0 -3
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +40 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/subTotal/index.d.ts +2 -0
- package/lib/components/subTotal/index.js +34 -20
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/locales.d.ts +174 -0
- package/lib/hooks/useEngineContext.d.ts +10 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/selectHolder/locales.d.ts +21 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +429 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/pro/NumericStepper/index.d.ts +43 -0
- package/lib/pro/Selector/Selector.d.ts +14 -0
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Indicator/index.d.ts +19 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
- package/lib/pro/Selector/demo.d.ts +0 -1
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/types.d.ts +173 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DeviceStatusType, StatusType, ModeType, RouteType, ClientEnum } from '../const';
|
|
3
|
+
import { ThunkDispatch } from './useThunkReducer';
|
|
4
|
+
export declare enum EActionTypes {
|
|
5
|
+
UPDATE_INIT = "UPDATE_INIT",
|
|
6
|
+
UPDATE_CUSTOM = "UPDATE_CUSTOM",
|
|
7
|
+
UPDATE_KEY = "UPDATE_KEY",
|
|
8
|
+
UPDATE_STEP_KEY = "UPDATE_STEP_KEY",
|
|
9
|
+
UPDATE_DEVICE = "UPDATE_DEVICE",
|
|
10
|
+
UPDATE_NEXT_STEP = "UPDATE_NEXT_STEP",
|
|
11
|
+
UPDATE_STATUS = "UPDATE_STATUS",
|
|
12
|
+
UPDATE_TITLE = "UPDATE_TITLE",
|
|
13
|
+
UPDATE_LOADING = "UPDATE_LOADING",
|
|
14
|
+
UPDATE_COMPONENT = "UPDATE_COMPONENT",
|
|
15
|
+
UPDATE_STEPS = "UPDATE_STEPS",
|
|
16
|
+
UPDATE_STEP_CURRENT_ITEM_CUSTOM = "UPDATE_STEP_CURRENT_ITEM_CUSTOM",
|
|
17
|
+
UPDATE_STEP_ITEM = "UPDATE_STEP_ITEM",
|
|
18
|
+
BACKUP_PRODUCTION = "BACKUP_PRODUCTION",
|
|
19
|
+
BACKUP_FREE = "BACKUP_FREE",
|
|
20
|
+
UPDATE_CLIENT = "UPDATE_CLIENT"
|
|
21
|
+
}
|
|
22
|
+
export declare type State = {
|
|
23
|
+
/** 支付名称 */
|
|
24
|
+
name: string;
|
|
25
|
+
/** 金额单位 */
|
|
26
|
+
symbol: string;
|
|
27
|
+
/** 支付原始金额 */
|
|
28
|
+
amount: string | number;
|
|
29
|
+
/** 模式 */
|
|
30
|
+
mode: ModeType;
|
|
31
|
+
/** 订单号 */
|
|
32
|
+
order_id: string | number;
|
|
33
|
+
/** 厂商 */
|
|
34
|
+
eftpos: DeviceStatusType;
|
|
35
|
+
action?: RouteType;
|
|
36
|
+
/** 用于重置页面特指 =》全部步骤 */
|
|
37
|
+
key: number;
|
|
38
|
+
/** 当前执行到哪一步了 */
|
|
39
|
+
step: number;
|
|
40
|
+
/** 标题 */
|
|
41
|
+
title: string;
|
|
42
|
+
/** 标题 */
|
|
43
|
+
subTitle?: string;
|
|
44
|
+
/** step : 常规步骤页面 ,unset 自定义页面 */
|
|
45
|
+
type: 'step' | 'unset';
|
|
46
|
+
render: boolean;
|
|
47
|
+
/** 网络 */
|
|
48
|
+
net?: boolean;
|
|
49
|
+
/** 上面 unset 自定义页面,这里需要指定到具体页面 */
|
|
50
|
+
component: string;
|
|
51
|
+
form?: string;
|
|
52
|
+
/** 页面状态 */
|
|
53
|
+
status: StatusType;
|
|
54
|
+
/** 警告文案 */
|
|
55
|
+
warn: string;
|
|
56
|
+
steps: {
|
|
57
|
+
/** 用于重置当前步骤 */
|
|
58
|
+
key: number;
|
|
59
|
+
title?: string;
|
|
60
|
+
text?: string;
|
|
61
|
+
warn?: string;
|
|
62
|
+
tip?: string;
|
|
63
|
+
success?: string;
|
|
64
|
+
fail?: string;
|
|
65
|
+
loading?: string;
|
|
66
|
+
/** 步骤状态 */
|
|
67
|
+
status: StatusType;
|
|
68
|
+
custom?: {
|
|
69
|
+
/** 步骤自定义 */
|
|
70
|
+
[key: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
}[];
|
|
73
|
+
/** 支付流水号 */
|
|
74
|
+
number?: string | number;
|
|
75
|
+
/** 设备信息 */
|
|
76
|
+
device?: {
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
/** 支付信息 */
|
|
80
|
+
pay?: {
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
custom?: {
|
|
84
|
+
[key: string]: unknown;
|
|
85
|
+
};
|
|
86
|
+
manual?: {
|
|
87
|
+
title: string;
|
|
88
|
+
text: string;
|
|
89
|
+
status?: boolean;
|
|
90
|
+
money?: number;
|
|
91
|
+
};
|
|
92
|
+
backup?: Omit<State, 'backup'>;
|
|
93
|
+
client: ClientEnum;
|
|
94
|
+
};
|
|
95
|
+
export declare type Action = {
|
|
96
|
+
type: EActionTypes;
|
|
97
|
+
payload: Partial<State>;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* @title: 刷新 key
|
|
101
|
+
* @description: 用户重置组件生命周期,
|
|
102
|
+
* @param {number} key
|
|
103
|
+
* @Author: hongbing.wang
|
|
104
|
+
* @Date: 2024-08-19 09:56
|
|
105
|
+
*/
|
|
106
|
+
export declare const updateKey: (key: number) => {
|
|
107
|
+
type: EActionTypes;
|
|
108
|
+
payload: {
|
|
109
|
+
key: number;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @title: 更新设备信息
|
|
114
|
+
* @description: 用户选择设备将回填到此处
|
|
115
|
+
* @param {object} payload
|
|
116
|
+
* @Author: hongbing.wang
|
|
117
|
+
* @Date: 2024-08-19 09:57
|
|
118
|
+
*/
|
|
119
|
+
export declare const updateDevice: (payload: {
|
|
120
|
+
device: State['device'];
|
|
121
|
+
}) => {
|
|
122
|
+
type: EActionTypes;
|
|
123
|
+
payload: {
|
|
124
|
+
device: State['device'];
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* @title: 刷新 步骤key
|
|
129
|
+
* @description: 重置某一步生命周期
|
|
130
|
+
* @Author: hongbing.wang
|
|
131
|
+
* @Date: 2024-08-19 09:58
|
|
132
|
+
*/
|
|
133
|
+
export declare const updateStepKey: () => {
|
|
134
|
+
type: EActionTypes;
|
|
135
|
+
payload: {};
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* @title: 更新至下一步
|
|
139
|
+
* @description: 更新至下一步
|
|
140
|
+
* @param {string} warn?: 错误信息
|
|
141
|
+
* @Author: hongbing.wang
|
|
142
|
+
* @Date: 2024-08-19 09:58
|
|
143
|
+
*/
|
|
144
|
+
export declare const updateNextStep: (warn?: string) => {
|
|
145
|
+
type: EActionTypes;
|
|
146
|
+
payload: {
|
|
147
|
+
warn: string;
|
|
148
|
+
} | {
|
|
149
|
+
warn?: undefined;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* @title: 更新自定义信息
|
|
154
|
+
* @description: 更新自定义信息
|
|
155
|
+
* @param {object} payload
|
|
156
|
+
* @Author: hongbing.wang
|
|
157
|
+
* @Date: 2024-08-19 10:03
|
|
158
|
+
*/
|
|
159
|
+
export declare const updateCustom: (payload: {
|
|
160
|
+
[key: string]: unknown;
|
|
161
|
+
}) => {
|
|
162
|
+
type: EActionTypes;
|
|
163
|
+
payload: {
|
|
164
|
+
[key: string]: unknown;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* @title: 更新 全局状态
|
|
169
|
+
* @description: 更新 全局状态
|
|
170
|
+
* @param {string} status : 状态
|
|
171
|
+
* * @Author: hongbing.wang
|
|
172
|
+
* @Date: 2024-08-19 10:03
|
|
173
|
+
*/
|
|
174
|
+
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
|
+
type: EActionTypes;
|
|
176
|
+
payload: {
|
|
177
|
+
status: "warn" | "success" | "loading" | "fail" | "question";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* @title: 更新自定义组件
|
|
182
|
+
* @description: 更新自定义组件
|
|
183
|
+
* @param {string} component 组件名称
|
|
184
|
+
* @param {boolean} render : true : 隐藏 原组件(维持原组件内状态) ;false : 卸载
|
|
185
|
+
* @return {*}
|
|
186
|
+
* @Author: hongbing.wang
|
|
187
|
+
* @Date: 2024-08-19 10:04
|
|
188
|
+
*/
|
|
189
|
+
export declare const updateComponent: (component: string, render?: boolean) => {
|
|
190
|
+
type: EActionTypes;
|
|
191
|
+
payload: {
|
|
192
|
+
readonly component: string;
|
|
193
|
+
readonly type: "unset";
|
|
194
|
+
readonly render: boolean;
|
|
195
|
+
} | {
|
|
196
|
+
readonly type: "step";
|
|
197
|
+
readonly render: boolean;
|
|
198
|
+
readonly component?: undefined;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* @title: 更新步骤信息
|
|
203
|
+
* @description: 更新某一步骤信息
|
|
204
|
+
* @param {State} steps 某一步骤信息
|
|
205
|
+
* @Author: hongbing.wang
|
|
206
|
+
* @Date: 2024-08-19 10:07
|
|
207
|
+
*/
|
|
208
|
+
export declare const updateSteps: (steps: State['steps']) => {
|
|
209
|
+
type: EActionTypes;
|
|
210
|
+
payload: {
|
|
211
|
+
steps: {
|
|
212
|
+
/** 用于重置当前步骤 */
|
|
213
|
+
key: number;
|
|
214
|
+
title?: string | undefined;
|
|
215
|
+
text?: string | undefined;
|
|
216
|
+
warn?: string | undefined;
|
|
217
|
+
tip?: string | undefined;
|
|
218
|
+
success?: string | undefined;
|
|
219
|
+
fail?: string | undefined;
|
|
220
|
+
loading?: string | undefined;
|
|
221
|
+
/** 步骤状态 */
|
|
222
|
+
status: StatusType;
|
|
223
|
+
custom?: {
|
|
224
|
+
[key: string]: unknown;
|
|
225
|
+
} | undefined;
|
|
226
|
+
}[];
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* @title: 更新状态管理信息
|
|
231
|
+
* @description: 更新状态管理信息
|
|
232
|
+
* @param {Partial} payload
|
|
233
|
+
* @return {*}
|
|
234
|
+
* @Author: hongbing.wang
|
|
235
|
+
* @Date: 2024-08-19 10:08
|
|
236
|
+
*/
|
|
237
|
+
export declare const updateState: (payload: Partial<State>) => {
|
|
238
|
+
type: EActionTypes;
|
|
239
|
+
payload: Partial<State>;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* @title: 更新当前步骤自定义信息
|
|
243
|
+
* @description: 更新当前步骤自定义信息
|
|
244
|
+
* @Author: hongbing.wang
|
|
245
|
+
* @Date: 2024-08-19 10:09
|
|
246
|
+
*/
|
|
247
|
+
export declare const updateCurrentCustomStemItem: (payload: NonNullable<Partial<State['steps'][number]['custom']>>) => {
|
|
248
|
+
type: EActionTypes;
|
|
249
|
+
payload: Partial<{
|
|
250
|
+
[key: string]: unknown;
|
|
251
|
+
}>;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* @title: 更新当前步骤信息
|
|
255
|
+
* @description: 更新当前步骤信息
|
|
256
|
+
* @Author: hongbing.wang
|
|
257
|
+
* @Date: 2024-08-19 10:09
|
|
258
|
+
*/
|
|
259
|
+
export declare const updateCurrentStemItem: (payload: any) => {
|
|
260
|
+
type: EActionTypes;
|
|
261
|
+
payload: any;
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* @title: 更新当前步骤信息
|
|
265
|
+
* @description: 更新当前步骤信息
|
|
266
|
+
* @Author: hongbing.wang
|
|
267
|
+
* @Date: 2024-08-19 10:09
|
|
268
|
+
*/
|
|
269
|
+
export declare const updateClient: (payload: ClientEnum) => {
|
|
270
|
+
type: EActionTypes;
|
|
271
|
+
payload: {
|
|
272
|
+
client: ClientEnum;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* @title: 更新备份信息
|
|
277
|
+
* @description: 更新备份信息
|
|
278
|
+
* @Author: hongbing.wang
|
|
279
|
+
* @Date: 2024-08-19 10:25
|
|
280
|
+
*/
|
|
281
|
+
export declare const backUpProduction: (payload: Partial<State>) => {
|
|
282
|
+
type: EActionTypes;
|
|
283
|
+
payload: Partial<State>;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* @title: 释放备份信息
|
|
287
|
+
* @description: 释放备份信息
|
|
288
|
+
* @param {Partial} payload
|
|
289
|
+
* @Author: hongbing.wang
|
|
290
|
+
* @Date: 2024-08-19 10:27
|
|
291
|
+
*/
|
|
292
|
+
export declare const backUpFree: (payload: Partial<State>) => {
|
|
293
|
+
type: EActionTypes;
|
|
294
|
+
payload: {
|
|
295
|
+
name?: string | undefined;
|
|
296
|
+
symbol?: string | undefined;
|
|
297
|
+
amount?: string | number | undefined;
|
|
298
|
+
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
|
+
order_id?: string | number | undefined;
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
|
+
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
|
+
key?: number | undefined;
|
|
303
|
+
step?: number | undefined;
|
|
304
|
+
title?: string | undefined;
|
|
305
|
+
subTitle?: string | undefined;
|
|
306
|
+
type?: "unset" | "step" | undefined;
|
|
307
|
+
render?: boolean | undefined;
|
|
308
|
+
net?: boolean | undefined;
|
|
309
|
+
component?: string | undefined;
|
|
310
|
+
form?: string | undefined;
|
|
311
|
+
status?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
|
+
warn?: string | undefined;
|
|
313
|
+
steps?: {
|
|
314
|
+
/** 用于重置当前步骤 */
|
|
315
|
+
key: number;
|
|
316
|
+
title?: string | undefined;
|
|
317
|
+
text?: string | undefined;
|
|
318
|
+
warn?: string | undefined;
|
|
319
|
+
tip?: string | undefined;
|
|
320
|
+
success?: string | undefined;
|
|
321
|
+
fail?: string | undefined;
|
|
322
|
+
loading?: string | undefined;
|
|
323
|
+
/** 步骤状态 */
|
|
324
|
+
status: StatusType;
|
|
325
|
+
custom?: {
|
|
326
|
+
[key: string]: unknown;
|
|
327
|
+
} | undefined;
|
|
328
|
+
}[] | undefined;
|
|
329
|
+
number?: string | number | undefined;
|
|
330
|
+
device?: {
|
|
331
|
+
[key: string]: unknown;
|
|
332
|
+
} | undefined;
|
|
333
|
+
pay?: {
|
|
334
|
+
[key: string]: unknown;
|
|
335
|
+
} | undefined;
|
|
336
|
+
custom?: {
|
|
337
|
+
[key: string]: unknown;
|
|
338
|
+
} | undefined;
|
|
339
|
+
manual?: {
|
|
340
|
+
title: string;
|
|
341
|
+
text: string;
|
|
342
|
+
status?: boolean | undefined;
|
|
343
|
+
money?: number | undefined;
|
|
344
|
+
} | undefined;
|
|
345
|
+
backup?: Omit<State, "backup"> | undefined;
|
|
346
|
+
client?: ClientEnum | undefined;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
export declare function reducers(state: State, action: Action): State;
|
|
350
|
+
export declare const Provider: ({ children, state: providerState, }: {
|
|
351
|
+
children: ReactNode;
|
|
352
|
+
state?: State | undefined;
|
|
353
|
+
}) => JSX.Element;
|
|
354
|
+
export declare function useContextData(): State;
|
|
355
|
+
export declare function useDispatch(): ThunkDispatch<State, Action>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: ({ api, onChange, children, url, version, }: {
|
|
3
|
+
api: any;
|
|
4
|
+
onChange: any;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
url?: string | undefined;
|
|
7
|
+
version?: string | undefined;
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
export default _default;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useSummary } from "../../../../../Sales";
|
|
3
3
|
import { DepositContent } from "../../../../../appointmentBooking/components/Deposit";
|
|
4
|
-
var Deposit = function Deposit() {
|
|
4
|
+
var Deposit = function Deposit(props) {
|
|
5
|
+
var _props$showTitle = props.showTitle,
|
|
6
|
+
showTitle = _props$showTitle === void 0 ? true : _props$showTitle;
|
|
5
7
|
var _useSummary = useSummary(),
|
|
6
8
|
deposit = _useSummary.deposit,
|
|
7
9
|
isAgreeDepositPolicy = _useSummary.isAgreeDepositPolicy,
|
|
8
10
|
setIsAgreeDepositPolicy = _useSummary.setIsAgreeDepositPolicy,
|
|
9
11
|
getDepositProtocol = _useSummary.getDepositProtocol;
|
|
10
12
|
return /*#__PURE__*/React.createElement(DepositContent, {
|
|
13
|
+
showTitle: showTitle,
|
|
11
14
|
isAgreeDepositPolicy: !!isAgreeDepositPolicy,
|
|
12
15
|
setIsAgreeDepositPolicy: setIsAgreeDepositPolicy,
|
|
13
16
|
deposit: deposit,
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
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
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
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; }
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
2
8
|
import { isMobile, locales } from '@pisell/utils';
|
|
3
9
|
import ShoppingCart from "../../../../../shoppingCart";
|
|
4
10
|
import { useCart, useHolder, useSummary, useStep } from "../../../../../Sales";
|
|
5
11
|
import SelectHolderModal from "../../SelectHolderModal";
|
|
6
12
|
import ContinueButton from "../ContinueButton";
|
|
7
|
-
import
|
|
13
|
+
import { SubTotal } from "../../../../../index";
|
|
14
|
+
import useEngineContext from "../../../../../../hooks/useEngineContext";
|
|
8
15
|
import Deposit from "../Deposit";
|
|
9
16
|
import Voucher from "../../../Voucher";
|
|
10
17
|
import "./index.less";
|
|
11
18
|
var CartItem = function CartItem() {
|
|
12
|
-
var _cartData$
|
|
19
|
+
var _context$appHelper, _cartData$cartItems2;
|
|
13
20
|
var _useHolder = useHolder(),
|
|
14
21
|
open = _useHolder.open,
|
|
15
22
|
holderData = _useHolder.holderData,
|
|
@@ -20,14 +27,24 @@ var CartItem = function CartItem() {
|
|
|
20
27
|
cartData = _useCart.cartData,
|
|
21
28
|
addNoteToCartItem = _useCart.addNoteToCartItem;
|
|
22
29
|
var _useSummary = useSummary(),
|
|
23
|
-
|
|
30
|
+
taxTitle = _useSummary.taxTitle,
|
|
31
|
+
taxRate = _useSummary.taxRate,
|
|
32
|
+
totalTaxFee = _useSummary.totalTaxFee,
|
|
33
|
+
isPriceIncludeTax = _useSummary.isPriceIncludeTax,
|
|
34
|
+
total = _useSummary.total,
|
|
35
|
+
deposit = _useSummary.deposit,
|
|
36
|
+
subtotal = _useSummary.subtotal,
|
|
37
|
+
surcharge = _useSummary.surcharge;
|
|
24
38
|
var _useStep = useStep(),
|
|
25
39
|
isLastStep = _useStep.isLastStep;
|
|
40
|
+
var context = useEngineContext();
|
|
41
|
+
var _ref = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
42
|
+
translation = _ref.translation;
|
|
26
43
|
var handleClickCard = function handleClickCard(e, type, key) {
|
|
27
44
|
if (type === 'note') {
|
|
28
45
|
return addNoteToCartItem(e);
|
|
29
46
|
}
|
|
30
|
-
|
|
47
|
+
|
|
31
48
|
// 删除
|
|
32
49
|
if (type === 'delete') {
|
|
33
50
|
return deleteCartItem(e);
|
|
@@ -36,6 +53,54 @@ var CartItem = function CartItem() {
|
|
|
36
53
|
return deleteCartItemByHolder(key);
|
|
37
54
|
}
|
|
38
55
|
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @description: 是否显示定金
|
|
59
|
+
* @param {*} useMemo
|
|
60
|
+
* @return {*}
|
|
61
|
+
*/
|
|
62
|
+
var showDeposit = useMemo(function () {
|
|
63
|
+
var _cartData$cartItems;
|
|
64
|
+
return (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && (deposit === null || deposit === void 0 ? void 0 : deposit.hasDeposit);
|
|
65
|
+
}, [cartData === null || cartData === void 0 || (_cartData$cartItems2 = cartData.cartItems) === null || _cartData$cartItems2 === void 0 ? void 0 : _cartData$cartItems2.length, deposit === null || deposit === void 0 ? void 0 : deposit.hasDeposit]);
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @description: 结算列表数据
|
|
69
|
+
* @param {*} useMemo
|
|
70
|
+
* @return {*}
|
|
71
|
+
*/
|
|
72
|
+
var subTotalList = useMemo(function () {
|
|
73
|
+
var surchargeList = ((surcharge === null || surcharge === void 0 ? void 0 : surcharge.surchargeList) || []).map(function (d, index) {
|
|
74
|
+
return {
|
|
75
|
+
key: "custom_surcharge_".concat(index),
|
|
76
|
+
label: translation(d === null || d === void 0 ? void 0 : d.name),
|
|
77
|
+
value: d.amount
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
return [{
|
|
81
|
+
key: 'deposit',
|
|
82
|
+
value: deposit === null || deposit === void 0 ? void 0 : deposit.total,
|
|
83
|
+
label: locales.getText('pisell2.appointment.deposit'),
|
|
84
|
+
hidden: !showDeposit
|
|
85
|
+
}, {
|
|
86
|
+
key: 'sub_total',
|
|
87
|
+
value: subtotal
|
|
88
|
+
}].concat(_toConsumableArray(surchargeList), [{
|
|
89
|
+
key: 'tax',
|
|
90
|
+
value: totalTaxFee,
|
|
91
|
+
hidden: Number(totalTaxFee) <= 0,
|
|
92
|
+
tax: {
|
|
93
|
+
rate: taxRate,
|
|
94
|
+
is_price_include_tax: isPriceIncludeTax,
|
|
95
|
+
title: taxTitle
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
key: 'custom_total',
|
|
99
|
+
value: total,
|
|
100
|
+
label: locales.getText('pisell2.event.total'),
|
|
101
|
+
bold: !showDeposit
|
|
102
|
+
}]);
|
|
103
|
+
}, [total, subtotal, surcharge === null || surcharge === void 0 ? void 0 : surcharge.surchargeList, deposit === null || deposit === void 0 ? void 0 : deposit.total, taxRate, isPriceIncludeTax, totalTaxFee, taxTitle, showDeposit]);
|
|
39
104
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
40
105
|
className: "cart-item-wrap ".concat(isMobile() ? 'cart-mobile-item-wrap' : '')
|
|
41
106
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -59,7 +124,15 @@ var CartItem = function CartItem() {
|
|
|
59
124
|
}
|
|
60
125
|
})), /*#__PURE__*/React.createElement("div", {
|
|
61
126
|
className: "event-footer"
|
|
62
|
-
}, /*#__PURE__*/React.createElement(Voucher, null), /*#__PURE__*/React.createElement(
|
|
127
|
+
}, /*#__PURE__*/React.createElement(Voucher, null), /*#__PURE__*/React.createElement(SubTotal, {
|
|
128
|
+
list: subTotalList,
|
|
129
|
+
style: {
|
|
130
|
+
padding: 0
|
|
131
|
+
},
|
|
132
|
+
children: showDeposit ? /*#__PURE__*/React.createElement(Deposit, {
|
|
133
|
+
showTitle: false
|
|
134
|
+
}) : null
|
|
135
|
+
}), /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
|
|
63
136
|
open: open
|
|
64
137
|
}));
|
|
65
138
|
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
.cart-item-wrap {
|
|
2
2
|
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
3
5
|
.content {
|
|
4
6
|
background: #fff;
|
|
5
7
|
padding: 20px;
|
|
8
|
+
height: auto;
|
|
9
|
+
overflow: auto;
|
|
6
10
|
.pisell-lowcode__shopping-cart-content {
|
|
7
11
|
.ant-card-body {
|
|
8
12
|
padding: 0;
|
|
@@ -71,15 +75,12 @@
|
|
|
71
75
|
|
|
72
76
|
.content {
|
|
73
77
|
flex: 1;
|
|
74
|
-
|
|
75
|
-
|
|
78
|
+
padding: 20px 20px 4px;
|
|
79
|
+
max-height: 100%;
|
|
76
80
|
}
|
|
77
81
|
.event-footer {
|
|
78
82
|
z-index: 10;
|
|
79
|
-
|
|
80
|
-
bottom: 0;
|
|
81
|
-
left: 0;
|
|
82
|
-
right: 0;
|
|
83
|
+
flex: none;
|
|
83
84
|
border-top: 1px solid #eaecf0;
|
|
84
85
|
padding: 14px 24px 24px;
|
|
85
86
|
margin-top: 0;
|
|
@@ -15,16 +15,11 @@ var Cart = function Cart(_ref) {
|
|
|
15
15
|
return _onCancel();
|
|
16
16
|
},
|
|
17
17
|
bodyStyle: {
|
|
18
|
-
padding:
|
|
18
|
+
padding: 0
|
|
19
19
|
},
|
|
20
20
|
destroyOnClose: true,
|
|
21
21
|
className: "event-cart-modal",
|
|
22
22
|
footer: null
|
|
23
|
-
}, /*#__PURE__*/React.createElement(
|
|
24
|
-
style: {
|
|
25
|
-
flex: 1,
|
|
26
|
-
overflowY: 'auto'
|
|
27
|
-
}
|
|
28
|
-
}, /*#__PURE__*/React.createElement(CartItem, null)));
|
|
23
|
+
}, /*#__PURE__*/React.createElement(CartItem, null));
|
|
29
24
|
};
|
|
30
25
|
export default Cart;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voucher 组件多语言配置
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: {
|
|
5
|
+
en: {
|
|
6
|
+
'pisell2.voucher.title': string;
|
|
7
|
+
'pisell2.voucher.details': string;
|
|
8
|
+
'pisell2.voucher.login': string;
|
|
9
|
+
'pisell2.voucher.login-tip': string;
|
|
10
|
+
'pisell2.voucher.code': string;
|
|
11
|
+
'pisell2.voucher.enter-code': string;
|
|
12
|
+
'pisell2.voucher.apply': string;
|
|
13
|
+
'pisell2.voucher.code-invalid': string;
|
|
14
|
+
'pisell2.voucher.code-invalid-cart': string;
|
|
15
|
+
};
|
|
16
|
+
'zh-CN': {
|
|
17
|
+
'pisell2.voucher.title': string;
|
|
18
|
+
'pisell2.voucher.details': string;
|
|
19
|
+
'pisell2.voucher.login': string;
|
|
20
|
+
'pisell2.voucher.login-tip': string;
|
|
21
|
+
'pisell2.voucher.code': string;
|
|
22
|
+
'pisell2.voucher.enter-code': string;
|
|
23
|
+
'pisell2.voucher.apply': string;
|
|
24
|
+
'pisell2.voucher.code-invalid': string;
|
|
25
|
+
'pisell2.voucher.code-invalid-cart': string;
|
|
26
|
+
};
|
|
27
|
+
'zh-HK': {
|
|
28
|
+
'pisell2.voucher.title': string;
|
|
29
|
+
'pisell2.voucher.details': string;
|
|
30
|
+
'pisell2.voucher.login': string;
|
|
31
|
+
'pisell2.voucher.login-tip': string;
|
|
32
|
+
'pisell2.voucher.code': string;
|
|
33
|
+
'pisell2.voucher.enter-code': string;
|
|
34
|
+
'pisell2.voucher.apply': string;
|
|
35
|
+
'pisell2.voucher.code-invalid': string;
|
|
36
|
+
'pisell2.voucher.code-invalid-cart': string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
@@ -102,7 +102,7 @@ var VoucherCard = function VoucherCard() {
|
|
|
102
102
|
var batchUpdateCart = function batchUpdateCart(productList) {
|
|
103
103
|
if (!(productList !== null && productList !== void 0 && productList.length)) return;
|
|
104
104
|
productList.forEach(function (product) {
|
|
105
|
-
updateCartItem(product);
|
|
105
|
+
updateCartItem(product, 'deposit');
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
108
|
|