@pisell/private-materials 6.3.159 → 6.3.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +5 -5
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +43 -4
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/utils.d.ts +6 -1
- package/es/components/appointmentBooking/utils.js +123 -32
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/hooks/useQuotation.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info2/service/addService/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 +1 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/es/components/ecocup/cupList/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellCashCounting/hooks.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/productStockCheckModal/index.d.ts +5 -0
- package/es/components/productStockCheckModal/index.js +148 -0
- package/es/components/productStockCheckModal/index.less +122 -0
- package/es/components/productStockCheckModal/locales.d.ts +63 -0
- package/es/components/productStockCheckModal/locales.js +62 -0
- package/es/components/productStockCheckModal/types.d.ts +26 -0
- package/es/components/productStockCheckModal/types.js +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/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/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/walletList/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useCartProductStockCheck.d.ts +10 -0
- package/es/hooks/useCartProductStockCheck.js +153 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/es/plus/orderList/config.d.ts +3 -2
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +169 -8
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +141 -5
- package/es/plus/saasDevice/devicePlanning/locales.d.ts +125 -0
- package/es/plus/saasDevice/devicePlanning/locales.js +125 -0
- package/es/plus/saasLogin/utils.d.ts +5 -5
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/plus/walletPassGallery/index.d.ts +1 -0
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +42 -5
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/utils.d.ts +6 -1
- package/lib/components/appointmentBooking/utils.js +36 -2
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/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 +1 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/lib/components/ecocup/cupList/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellCashCounting/hooks.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/productStockCheckModal/index.d.ts +5 -0
- package/lib/components/productStockCheckModal/index.js +134 -0
- package/lib/components/productStockCheckModal/index.less +122 -0
- package/lib/components/productStockCheckModal/locales.d.ts +63 -0
- package/lib/components/productStockCheckModal/locales.js +86 -0
- package/lib/components/productStockCheckModal/types.d.ts +26 -0
- package/lib/components/productStockCheckModal/types.js +17 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/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/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/walletList/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/hooks/useCartProductStockCheck.d.ts +10 -0
- package/lib/hooks/useCartProductStockCheck.js +97 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/lib/plus/orderList/config.d.ts +3 -2
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +174 -16
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +141 -5
- package/lib/plus/saasDevice/devicePlanning/locales.d.ts +125 -0
- package/lib/plus/saasDevice/devicePlanning/locales.js +125 -0
- package/lib/plus/saasLogin/utils.d.ts +5 -5
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/index.d.ts +1 -0
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lowcode/product-stock-check-modal/meta.ts +94 -0
- package/package.json +1 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/productStockCheckModal/index.tsx
|
|
30
|
+
var productStockCheckModal_exports = {};
|
|
31
|
+
__export(productStockCheckModal_exports, {
|
|
32
|
+
default: () => productStockCheckModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(productStockCheckModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
39
|
+
var import_locales = __toESM(require("./locales"));
|
|
40
|
+
var import_utils2 = require("../../utils");
|
|
41
|
+
var import_index = require("./index.less");
|
|
42
|
+
var MAX_COLLAPSED_ITEMS = 5;
|
|
43
|
+
var ProductStockCheckModal = (props, ref) => {
|
|
44
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
45
|
+
const context = (0, import_useEngineContext.default)();
|
|
46
|
+
import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
|
|
47
|
+
import_utils2.request.setRequest((_d = (_c = context == null ? void 0 : context.appHelper) == null ? void 0 : _c.utils) == null ? void 0 : _d.request);
|
|
48
|
+
const isTerminal = (_g = (_f = (_e = context == null ? void 0 : context.appHelper) == null ? void 0 : _e.utils) == null ? void 0 : _f.isTerminal) == null ? void 0 : _g.call(_f);
|
|
49
|
+
const [visible, setVisible] = (0, import_react.useState)(false);
|
|
50
|
+
const modalParamsRef = (0, import_react.useRef)();
|
|
51
|
+
const [items, setItems] = (0, import_react.useState)([]);
|
|
52
|
+
const [isAllItemsSoldOut, setIsAllItemsSoldOut] = (0, import_react.useState)(false);
|
|
53
|
+
const [listExpanded, setListExpanded] = (0, import_react.useState)(false);
|
|
54
|
+
const onOpen = (0, import_react.useCallback)(
|
|
55
|
+
(params) => {
|
|
56
|
+
var _a2;
|
|
57
|
+
modalParamsRef.current = params;
|
|
58
|
+
setItems((params == null ? void 0 : params.unavailableProducts) ?? []);
|
|
59
|
+
setIsAllItemsSoldOut((params == null ? void 0 : params.isAllItemsSoldOut) ?? false);
|
|
60
|
+
setListExpanded(false);
|
|
61
|
+
setVisible(true);
|
|
62
|
+
(_a2 = props.onOpen) == null ? void 0 : _a2.call(props);
|
|
63
|
+
},
|
|
64
|
+
[props]
|
|
65
|
+
);
|
|
66
|
+
const onClose = (0, import_react.useCallback)(() => {
|
|
67
|
+
var _a2;
|
|
68
|
+
modalParamsRef.current = void 0;
|
|
69
|
+
setItems([]);
|
|
70
|
+
setIsAllItemsSoldOut(false);
|
|
71
|
+
setVisible(false);
|
|
72
|
+
(_a2 = props.onClose) == null ? void 0 : _a2.call(props);
|
|
73
|
+
}, []);
|
|
74
|
+
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
75
|
+
open: onOpen,
|
|
76
|
+
close: onClose
|
|
77
|
+
}));
|
|
78
|
+
const handleReturn = (0, import_react.useCallback)(() => {
|
|
79
|
+
var _a2;
|
|
80
|
+
onClose();
|
|
81
|
+
(_a2 = props.onReturn) == null ? void 0 : _a2.call(props, items);
|
|
82
|
+
}, [props.onReturn, onClose, items]);
|
|
83
|
+
const handleContinue = (0, import_react.useCallback)(() => {
|
|
84
|
+
var _a2;
|
|
85
|
+
onClose();
|
|
86
|
+
if (isAllItemsSoldOut) {
|
|
87
|
+
handleReturn();
|
|
88
|
+
} else {
|
|
89
|
+
(_a2 = props.onContinue) == null ? void 0 : _a2.call(props, items);
|
|
90
|
+
}
|
|
91
|
+
}, [props.onContinue, onClose, isAllItemsSoldOut, items]);
|
|
92
|
+
const showListExpandToggle = (0, import_react.useMemo)(
|
|
93
|
+
() => items.length > MAX_COLLAPSED_ITEMS,
|
|
94
|
+
[items.length]
|
|
95
|
+
);
|
|
96
|
+
const displayItems = (0, import_react.useMemo)(() => {
|
|
97
|
+
if (!showListExpandToggle || listExpanded) {
|
|
98
|
+
return items;
|
|
99
|
+
}
|
|
100
|
+
return items.slice(0, MAX_COLLAPSED_ITEMS);
|
|
101
|
+
}, [items, listExpanded, showListExpandToggle]);
|
|
102
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
103
|
+
import_materials.PisellModal,
|
|
104
|
+
{
|
|
105
|
+
platform: isTerminal ? "h5" : void 0,
|
|
106
|
+
visible,
|
|
107
|
+
header: false,
|
|
108
|
+
footer: null,
|
|
109
|
+
maskClosable: false,
|
|
110
|
+
destroyOnClose: true,
|
|
111
|
+
closable: false,
|
|
112
|
+
onClose,
|
|
113
|
+
onCancel: onClose,
|
|
114
|
+
wrapClassName: "product-stock-check-modal",
|
|
115
|
+
style: { zIndex: 1001 }
|
|
116
|
+
},
|
|
117
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-inner" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-icon", "aria-hidden": true }, /* @__PURE__ */ import_react.default.createElement("span", { className: "product-stock-check-modal-icon-mark" }, "!")), /* @__PURE__ */ import_react.default.createElement("h2", { className: "product-stock-check-modal-title" }, isAllItemsSoldOut ? import_utils.locales.getText(
|
|
118
|
+
"pisell2.product.stock.check.modal.all_items_title"
|
|
119
|
+
) : import_utils.locales.getText("pisell2.product.stock.check.modal.title")), /* @__PURE__ */ import_react.default.createElement("p", { className: "product-stock-check-modal-subtitle" }, import_utils.locales.getText("pisell2.product.stock.check.modal.subtitle")), /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-list" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-list-items" }, displayItems.map((item, index) => /* @__PURE__ */ import_react.default.createElement("div", { key: index, className: "product-stock-check-modal-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-item-text" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "product-stock-check-modal-item-title" }, item.title), /* @__PURE__ */ import_react.default.createElement("span", { className: "product-stock-check-modal-item-qty" }, import_utils.locales.getText(
|
|
120
|
+
"pisell2.product.stock.check.modal.item.quantity.prefix"
|
|
121
|
+
), " ", "x", item.quantity)), /* @__PURE__ */ import_react.default.createElement("span", { className: "product-stock-check-modal-tag" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Tag, { color: "error" }, import_utils.locales.getText(
|
|
122
|
+
"pisell2.product.stock.check.modal.status.sold_out"
|
|
123
|
+
)))))), showListExpandToggle && /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-list-toggle", onClick: () => setListExpanded((v) => !v) }, listExpanded ? import_utils.locales.getText(
|
|
124
|
+
"pisell2.product.stock.check.modal.btn.collapse"
|
|
125
|
+
) : import_utils.locales.getText(
|
|
126
|
+
"pisell2.product.stock.check.modal.btn.expand"
|
|
127
|
+
), /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: listExpanded ? "pisell2-chevron-up-double" : "pisell2-chevron-down-double" }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-buttons" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "primary", onClick: handleContinue }, isAllItemsSoldOut ? import_utils.locales.getText(
|
|
128
|
+
"pisell2.product.stock.check.modal.btn.remove_all_continue"
|
|
129
|
+
) : import_utils.locales.getText(
|
|
130
|
+
"pisell2.product.stock.check.modal.btn.remove_continue"
|
|
131
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "text", onClick: handleReturn }, import_utils.locales.getText("pisell2.product.stock.check.modal.btn.go_back"))))
|
|
132
|
+
);
|
|
133
|
+
};
|
|
134
|
+
var productStockCheckModal_default = (0, import_react.forwardRef)(ProductStockCheckModal);
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
.product-stock-check-modal {
|
|
2
|
+
.pisell-lowcode-modal-body {
|
|
3
|
+
padding: 24px !important;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.product-stock-check-modal-inner {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: stretch;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.product-stock-check-modal-icon {
|
|
16
|
+
align-self: center;
|
|
17
|
+
width: 44px;
|
|
18
|
+
height: 44px;
|
|
19
|
+
margin-bottom: 16px;
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
background: #fbf3e0;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.product-stock-check-modal-icon-mark {
|
|
28
|
+
font-size: 22px;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
line-height: 1;
|
|
31
|
+
color: #f9a908;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.product-stock-check-modal-title {
|
|
35
|
+
margin: 0 0 8px;
|
|
36
|
+
text-align: center;
|
|
37
|
+
font-size: 18px;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
line-height: 26px;
|
|
40
|
+
color: #333333;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.product-stock-check-modal-subtitle {
|
|
44
|
+
margin: 0 0 20px;
|
|
45
|
+
text-align: center;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
line-height: 20px;
|
|
49
|
+
color: #999999;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.product-stock-check-modal-list {
|
|
53
|
+
margin: 0 0 20px;
|
|
54
|
+
padding: 0;
|
|
55
|
+
list-style: none;
|
|
56
|
+
max-height: auto;
|
|
57
|
+
overflow-y: auto;
|
|
58
|
+
flex: 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.product-stock-check-modal-list-toggle {
|
|
62
|
+
margin-top: 20px;
|
|
63
|
+
text-align: center;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
gap: 6px;
|
|
69
|
+
&:hover {
|
|
70
|
+
color: var(--theme-color);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.product-stock-check-modal-item {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: flex-start;
|
|
77
|
+
justify-content: space-between;
|
|
78
|
+
gap: 12px;
|
|
79
|
+
padding: 14px 16px;
|
|
80
|
+
margin-bottom: 10px;
|
|
81
|
+
border-radius: 8px;
|
|
82
|
+
background: #f9f9f9;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
|
|
85
|
+
&:last-child {
|
|
86
|
+
margin-bottom: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.product-stock-check-modal-item-text {
|
|
91
|
+
flex: 1;
|
|
92
|
+
min-width: 0;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
gap: 2px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.product-stock-check-modal-item-title {
|
|
99
|
+
font-size: 16px;
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
line-height: 22px;
|
|
102
|
+
color: #333333;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.product-stock-check-modal-item-qty {
|
|
106
|
+
font-size: 12px;
|
|
107
|
+
line-height: 18px;
|
|
108
|
+
color: #999999;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.product-stock-check-modal-tag {
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
.pisell-lowcode-tag{
|
|
114
|
+
border-radius: 40px;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.product-stock-check-modal-buttons{
|
|
119
|
+
display: flex;
|
|
120
|
+
gap: 10px;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.stock.check.modal.title': string;
|
|
4
|
+
'pisell2.product.stock.check.modal.all_items_title': string;
|
|
5
|
+
'pisell2.product.stock.check.modal.subtitle': string;
|
|
6
|
+
'pisell2.product.stock.check.modal.item.quantity.prefix': string;
|
|
7
|
+
'pisell2.product.stock.check.modal.status.sold_out': string;
|
|
8
|
+
'pisell2.product.stock.check.modal.btn.remove_continue': string;
|
|
9
|
+
'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
|
|
10
|
+
'pisell2.product.stock.check.modal.btn.go_back': string;
|
|
11
|
+
'pisell2.product.stock.check.modal.btn.expand': string;
|
|
12
|
+
'pisell2.product.stock.check.modal.btn.collapse': string;
|
|
13
|
+
};
|
|
14
|
+
'zh-CN': {
|
|
15
|
+
'pisell2.product.stock.check.modal.title': string;
|
|
16
|
+
'pisell2.product.stock.check.modal.all_items_title': string;
|
|
17
|
+
'pisell2.product.stock.check.modal.subtitle': string;
|
|
18
|
+
'pisell2.product.stock.check.modal.item.quantity.prefix': string;
|
|
19
|
+
'pisell2.product.stock.check.modal.status.sold_out': string;
|
|
20
|
+
'pisell2.product.stock.check.modal.btn.remove_continue': string;
|
|
21
|
+
'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
|
|
22
|
+
'pisell2.product.stock.check.modal.btn.go_back': string;
|
|
23
|
+
'pisell2.product.stock.check.modal.btn.expand': string;
|
|
24
|
+
'pisell2.product.stock.check.modal.btn.collapse': string;
|
|
25
|
+
};
|
|
26
|
+
'zh-TW': {
|
|
27
|
+
'pisell2.product.stock.check.modal.title': string;
|
|
28
|
+
'pisell2.product.stock.check.modal.all_items_title': string;
|
|
29
|
+
'pisell2.product.stock.check.modal.subtitle': string;
|
|
30
|
+
'pisell2.product.stock.check.modal.item.quantity.prefix': string;
|
|
31
|
+
'pisell2.product.stock.check.modal.status.sold_out': string;
|
|
32
|
+
'pisell2.product.stock.check.modal.btn.remove_continue': string;
|
|
33
|
+
'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
|
|
34
|
+
'pisell2.product.stock.check.modal.btn.go_back': string;
|
|
35
|
+
'pisell2.product.stock.check.modal.btn.expand': string;
|
|
36
|
+
'pisell2.product.stock.check.modal.btn.collapse': string;
|
|
37
|
+
};
|
|
38
|
+
ja: {
|
|
39
|
+
'pisell2.product.stock.check.modal.title': string;
|
|
40
|
+
'pisell2.product.stock.check.modal.all_items_title': string;
|
|
41
|
+
'pisell2.product.stock.check.modal.subtitle': string;
|
|
42
|
+
'pisell2.product.stock.check.modal.item.quantity.prefix': string;
|
|
43
|
+
'pisell2.product.stock.check.modal.status.sold_out': string;
|
|
44
|
+
'pisell2.product.stock.check.modal.btn.remove_continue': string;
|
|
45
|
+
'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
|
|
46
|
+
'pisell2.product.stock.check.modal.btn.go_back': string;
|
|
47
|
+
'pisell2.product.stock.check.modal.btn.expand': string;
|
|
48
|
+
'pisell2.product.stock.check.modal.btn.collapse': string;
|
|
49
|
+
};
|
|
50
|
+
pt: {
|
|
51
|
+
'pisell2.product.stock.check.modal.title': string;
|
|
52
|
+
'pisell2.product.stock.check.modal.all_items_title': string;
|
|
53
|
+
'pisell2.product.stock.check.modal.subtitle': string;
|
|
54
|
+
'pisell2.product.stock.check.modal.item.quantity.prefix': string;
|
|
55
|
+
'pisell2.product.stock.check.modal.status.sold_out': string;
|
|
56
|
+
'pisell2.product.stock.check.modal.btn.remove_continue': string;
|
|
57
|
+
'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
|
|
58
|
+
'pisell2.product.stock.check.modal.btn.go_back': string;
|
|
59
|
+
'pisell2.product.stock.check.modal.btn.expand': string;
|
|
60
|
+
'pisell2.product.stock.check.modal.btn.collapse': string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/productStockCheckModal/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
en: {
|
|
27
|
+
"pisell2.product.stock.check.modal.title": "Some Items Are Unavailable",
|
|
28
|
+
"pisell2.product.stock.check.modal.all_items_title": "All Items Are Unavailable",
|
|
29
|
+
"pisell2.product.stock.check.modal.subtitle": "The following items are out of stock. Please remove them to continue.",
|
|
30
|
+
"pisell2.product.stock.check.modal.item.quantity.prefix": "Selected quantity",
|
|
31
|
+
"pisell2.product.stock.check.modal.status.sold_out": "Sold Out",
|
|
32
|
+
"pisell2.product.stock.check.modal.btn.remove_continue": "Remove & Continue",
|
|
33
|
+
"pisell2.product.stock.check.modal.btn.remove_all_continue": "Cart is empty. Please add items.",
|
|
34
|
+
"pisell2.product.stock.check.modal.btn.go_back": "Go Back",
|
|
35
|
+
"pisell2.product.stock.check.modal.btn.expand": "Expand",
|
|
36
|
+
"pisell2.product.stock.check.modal.btn.collapse": "Collapse"
|
|
37
|
+
},
|
|
38
|
+
"zh-CN": {
|
|
39
|
+
"pisell2.product.stock.check.modal.title": "部分商品已售罄",
|
|
40
|
+
"pisell2.product.stock.check.modal.all_items_title": "全部商品已售罄",
|
|
41
|
+
"pisell2.product.stock.check.modal.subtitle": "以下商品库存不足,请移除后继续下单",
|
|
42
|
+
"pisell2.product.stock.check.modal.item.quantity.prefix": "已选数量",
|
|
43
|
+
"pisell2.product.stock.check.modal.status.sold_out": "已售罄",
|
|
44
|
+
"pisell2.product.stock.check.modal.btn.remove_continue": "移除售罄商品并继续",
|
|
45
|
+
"pisell2.product.stock.check.modal.btn.remove_all_continue": "购物车已空,请重新选择",
|
|
46
|
+
"pisell2.product.stock.check.modal.btn.go_back": "返回修改",
|
|
47
|
+
"pisell2.product.stock.check.modal.btn.expand": "展开",
|
|
48
|
+
"pisell2.product.stock.check.modal.btn.collapse": "收起"
|
|
49
|
+
},
|
|
50
|
+
"zh-TW": {
|
|
51
|
+
"pisell2.product.stock.check.modal.title": "部分商品已售罄",
|
|
52
|
+
"pisell2.product.stock.check.modal.all_items_title": "全部商品已售罄",
|
|
53
|
+
"pisell2.product.stock.check.modal.subtitle": "以下商品庫存不足,請移除後繼續下單",
|
|
54
|
+
"pisell2.product.stock.check.modal.item.quantity.prefix": "已選數量",
|
|
55
|
+
"pisell2.product.stock.check.modal.status.sold_out": "已售罄",
|
|
56
|
+
"pisell2.product.stock.check.modal.btn.remove_continue": "移除售罄商品並繼續",
|
|
57
|
+
"pisell2.product.stock.check.modal.btn.remove_all_continue": "購物車已空,請重新選擇",
|
|
58
|
+
"pisell2.product.stock.check.modal.btn.go_back": "返回修改",
|
|
59
|
+
"pisell2.product.stock.check.modal.btn.expand": "展開",
|
|
60
|
+
"pisell2.product.stock.check.modal.btn.collapse": "收起"
|
|
61
|
+
},
|
|
62
|
+
"ja": {
|
|
63
|
+
"pisell2.product.stock.check.modal.title": "一部の商品が購入不可",
|
|
64
|
+
"pisell2.product.stock.check.modal.all_items_title": "全ての商品が売り切れ",
|
|
65
|
+
"pisell2.product.stock.check.modal.subtitle": "下記の商品は在庫切れです。削除してからご注文を続けてください。",
|
|
66
|
+
"pisell2.product.stock.check.modal.item.quantity.prefix": "選択数量",
|
|
67
|
+
"pisell2.product.stock.check.modal.status.sold_out": "売り切れ",
|
|
68
|
+
"pisell2.product.stock.check.modal.btn.remove_continue": "売り切れ商品を削除して続行",
|
|
69
|
+
"pisell2.product.stock.check.modal.btn.remove_all_continue": "カートが空です。商品を追加してください。",
|
|
70
|
+
"pisell2.product.stock.check.modal.btn.go_back": "戻る",
|
|
71
|
+
"pisell2.product.stock.check.modal.btn.expand": "展開",
|
|
72
|
+
"pisell2.product.stock.check.modal.btn.collapse": "收起"
|
|
73
|
+
},
|
|
74
|
+
"pt": {
|
|
75
|
+
"pisell2.product.stock.check.modal.title": "Alguns itens estão indisponíveis",
|
|
76
|
+
"pisell2.product.stock.check.modal.all_items_title": "Todos os itens estão indisponíveis",
|
|
77
|
+
"pisell2.product.stock.check.modal.subtitle": "Os itens abaixo estão sem estoque. Remova-os para continuar.",
|
|
78
|
+
"pisell2.product.stock.check.modal.item.quantity.prefix": "Quantidade selecionada",
|
|
79
|
+
"pisell2.product.stock.check.modal.status.sold_out": "Esgotado",
|
|
80
|
+
"pisell2.product.stock.check.modal.btn.remove_continue": "Remover e continuar",
|
|
81
|
+
"pisell2.product.stock.check.modal.btn.remove_all_continue": "Carrinho vazio. Adicione itens.",
|
|
82
|
+
"pisell2.product.stock.check.modal.btn.go_back": "Voltar",
|
|
83
|
+
"pisell2.product.stock.check.modal.btn.expand": "Expandir",
|
|
84
|
+
"pisell2.product.stock.check.modal.btn.collapse": "Recolher"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ProductStockCheckModalProps {
|
|
2
|
+
onOpen?: () => void;
|
|
3
|
+
onClose?: () => void;
|
|
4
|
+
onReturn?: (data: any) => void;
|
|
5
|
+
onContinue?: (data: any) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface UnavailableProduct {
|
|
8
|
+
title: string;
|
|
9
|
+
quantity?: number;
|
|
10
|
+
cart_id?: number;
|
|
11
|
+
product_id?: number;
|
|
12
|
+
product_variant_id?: number;
|
|
13
|
+
cover?: string;
|
|
14
|
+
specifications?: string;
|
|
15
|
+
reason_code?: 'stock_not_enough' | string;
|
|
16
|
+
reason?: string;
|
|
17
|
+
selected_quantity?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ProductStockCheckModalRef {
|
|
20
|
+
open: (params: ModalParams) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
}
|
|
23
|
+
export interface ModalParams {
|
|
24
|
+
unavailableProducts?: UnavailableProduct[];
|
|
25
|
+
isAllItemsSoldOut?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/productStockCheckModal/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,11 +68,4 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider:
|
|
73
|
-
state: FormState;
|
|
74
|
-
} & {
|
|
75
|
-
dispatch: (params: {
|
|
76
|
-
type: string;
|
|
77
|
-
payload: any;
|
|
78
|
-
}) => void;
|
|
79
|
-
}>;
|
|
71
|
+
export declare const Provider: any, Context: any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 下单接口商品库存检测逻辑
|
|
3
|
+
* 购物车不可用商品清理 + 返回清空缓存 Hook
|
|
4
|
+
*/
|
|
5
|
+
declare const useCartProductStockCheck: () => {
|
|
6
|
+
handleContinue: ({ cartProducts, data, callback, appointmentBooking }: any) => void;
|
|
7
|
+
handleReturn: ({ cartProducts, data, callback, appointmentBooking, setTimes, isSkipClearData }: any) => Promise<void>;
|
|
8
|
+
checkProductStock: (productStockModalRef: any, res: any, cartProducts: any) => any;
|
|
9
|
+
};
|
|
10
|
+
export default useCartProductStockCheck;
|