@pisell/private-materials 6.3.138 → 6.3.140
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 +2 -2
- package/build/lowcode/preview.js +153 -426
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +24 -5
- package/es/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.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/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- 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/info2/service/addTimeModal/index.d.ts +0 -1
- 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/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -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/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- 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/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +0 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/linkly/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/scanOrder/components/Cart/index.d.ts +2 -0
- package/es/components/scanOrder/components/Cart/index.js +181 -76
- package/es/components/scanOrder/components/Cart/index.less +72 -13
- package/es/components/scanOrder/components/Check/index.js +261 -75
- package/es/components/scanOrder/components/Check/index.less +30 -0
- package/es/components/scanOrder/components/Content/index.js +382 -144
- package/es/components/scanOrder/components/Footer/index.d.ts +2 -0
- package/es/components/scanOrder/components/Footer/index.js +4 -2
- package/es/components/scanOrder/components/Footer/index.less +16 -7
- package/es/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
- package/es/components/scanOrder/components/FulfillmentMode/index.js +90 -0
- package/es/components/scanOrder/components/FulfillmentMode/index.less +40 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.js +87 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
- package/es/components/scanOrder/components/Menu/index.d.ts +11 -0
- package/es/components/scanOrder/components/Menu/index.js +140 -169
- package/es/components/scanOrder/components/Voucher/index.d.ts +8 -0
- package/es/components/scanOrder/components/Voucher/index.js +250 -0
- package/es/components/scanOrder/context.js +123 -3
- package/es/components/scanOrder/hooks.js +4 -1
- package/es/components/scanOrder/locales.d.ts +120 -0
- package/es/components/scanOrder/locales.js +120 -0
- package/es/components/scanOrder/types.d.ts +33 -0
- package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +1 -0
- package/es/components/scanOrder/utils/toShoppingCartProducts.js +137 -9
- package/es/components/scanOrder/utils/transformProductDetail.js +21 -4
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/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/systemSettings/registry/components/GroupModal.js +8 -1
- package/es/components/systemSettings/registry/components/ItemModal.js +3 -0
- package/es/components/systemSettings/registry/index.js +3 -1
- package/es/components/systemSettings/registry/services.d.ts +2 -0
- package/es/components/systemSettings/registry/types.d.ts +3 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/venueBooking/components/Addons/index.js +42 -33
- package/es/components/venueBooking/components/Cart/index.js +26 -14
- package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +129 -17
- package/es/components/venueBooking/context.js +6 -6
- package/es/components/venueBooking/hooks.d.ts +16 -3
- package/es/components/venueBooking/hooks.js +16 -4
- package/es/components/venueBooking/types.d.ts +19 -2
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +19 -4
- package/lib/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.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/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- 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/info2/service/addTimeModal/index.d.ts +0 -1
- 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/model.d.ts +9 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -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/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- 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/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +0 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/linkly/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/scanOrder/components/Cart/index.d.ts +2 -0
- package/lib/components/scanOrder/components/Cart/index.js +117 -28
- package/lib/components/scanOrder/components/Cart/index.less +72 -13
- package/lib/components/scanOrder/components/Check/index.js +109 -15
- package/lib/components/scanOrder/components/Check/index.less +30 -0
- package/lib/components/scanOrder/components/Content/index.js +175 -48
- package/lib/components/scanOrder/components/Footer/index.d.ts +2 -0
- package/lib/components/scanOrder/components/Footer/index.js +2 -2
- package/lib/components/scanOrder/components/Footer/index.less +16 -7
- package/lib/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
- package/lib/components/scanOrder/components/FulfillmentMode/index.js +96 -0
- package/lib/components/scanOrder/components/FulfillmentMode/index.less +40 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.js +116 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
- package/lib/components/scanOrder/components/Menu/index.d.ts +11 -0
- package/lib/components/scanOrder/components/Menu/index.js +23 -36
- package/lib/components/scanOrder/components/Voucher/index.d.ts +8 -0
- package/lib/components/scanOrder/components/Voucher/index.js +162 -0
- package/lib/components/scanOrder/context.js +91 -2
- package/lib/components/scanOrder/hooks.js +4 -1
- package/lib/components/scanOrder/locales.d.ts +120 -0
- package/lib/components/scanOrder/locales.js +120 -0
- package/lib/components/scanOrder/types.d.ts +33 -0
- package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +1 -0
- package/lib/components/scanOrder/utils/toShoppingCartProducts.js +88 -6
- package/lib/components/scanOrder/utils/transformProductDetail.js +10 -3
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/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/systemSettings/registry/components/GroupModal.js +71 -72
- package/lib/components/systemSettings/registry/components/ItemModal.js +2 -1
- package/lib/components/systemSettings/registry/index.js +3 -1
- package/lib/components/systemSettings/registry/services.d.ts +2 -0
- package/lib/components/systemSettings/registry/types.d.ts +3 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/venueBooking/components/Addons/index.js +15 -8
- package/lib/components/venueBooking/components/Cart/index.js +8 -2
- package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +118 -18
- package/lib/components/venueBooking/context.js +2 -1
- package/lib/components/venueBooking/hooks.d.ts +16 -3
- package/lib/components/venueBooking/hooks.js +8 -2
- package/lib/components/venueBooking/types.d.ts +19 -2
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lowcode/admin-auth-channel-auth/meta.ts +116 -0
- package/lowcode/admin-auth-online-shop-auth/meta.ts +81 -5
- package/package.json +1 -1
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
align-items: center;
|
|
8
8
|
gap: 12px;
|
|
9
|
-
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
height: 70px;
|
|
11
|
+
padding: 0 16px;
|
|
10
12
|
border-top: 1px solid #eaecf0;
|
|
11
13
|
background: #f9fafb;
|
|
12
|
-
border-radius:
|
|
14
|
+
border-radius: 0;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.pisell-scan-order-footer-left {
|
|
@@ -33,8 +35,13 @@
|
|
|
33
35
|
|
|
34
36
|
.pisell-scan-order-footer-btn {
|
|
35
37
|
min-width: 128px;
|
|
36
|
-
height:
|
|
37
|
-
border-radius:
|
|
38
|
+
height: 48px;
|
|
39
|
+
border-radius: 12px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pisell-scan-order-footer-btn-disabled {
|
|
43
|
+
opacity: 0.45;
|
|
44
|
+
cursor: not-allowed;
|
|
38
45
|
}
|
|
39
46
|
|
|
40
47
|
.pisell-scan-order-footer-right {
|
|
@@ -57,8 +64,10 @@
|
|
|
57
64
|
right: 0;
|
|
58
65
|
bottom: 0;
|
|
59
66
|
z-index: 30;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
padding-bottom:
|
|
67
|
+
height: calc(70px + constant(safe-area-inset-bottom));
|
|
68
|
+
height: calc(70px + env(safe-area-inset-bottom, 0px));
|
|
69
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
70
|
+
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
71
|
+
border-radius: 0;
|
|
63
72
|
}
|
|
64
73
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
/**
|
|
4
|
+
* FulfillmentMode
|
|
5
|
+
*
|
|
6
|
+
* 通过 scanOrder module 读取 getFulfillmentModes() 返回的 { enableTableService, enablePickup }:
|
|
7
|
+
* - 两个都开启:渲染可切换的 Radio.Group,默认 Table service,挂载即同步一次 setPickupReferenceMode。
|
|
8
|
+
* - 只开启一个:仅渲染单行文案提示当前取餐方式,并同步一次 setPickupReferenceMode。
|
|
9
|
+
* - 都未开启:不渲染。
|
|
10
|
+
*/
|
|
11
|
+
export default function FulfillmentMode(): JSX.Element | null;
|
|
@@ -0,0 +1,96 @@
|
|
|
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/scanOrder/components/FulfillmentMode/index.tsx
|
|
30
|
+
var FulfillmentMode_exports = {};
|
|
31
|
+
__export(FulfillmentMode_exports, {
|
|
32
|
+
default: () => FulfillmentMode
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(FulfillmentMode_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_context = require("../../context");
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
|
+
function FulfillmentMode() {
|
|
41
|
+
const { scanOrderModule } = (0, import_context.useScanOrderContext)();
|
|
42
|
+
const [modes, setModes] = (0, import_react.useState)({});
|
|
43
|
+
const [mode, setMode] = (0, import_react.useState)("table_service");
|
|
44
|
+
(0, import_react.useEffect)(() => {
|
|
45
|
+
if (!scanOrderModule) return;
|
|
46
|
+
const next = (typeof scanOrderModule.getFulfillmentModes === "function" ? scanOrderModule.getFulfillmentModes() : void 0) || {};
|
|
47
|
+
setModes(next);
|
|
48
|
+
const onlyTable = !!next.enableTableService && !next.enablePickup;
|
|
49
|
+
const onlyPickup = !next.enableTableService && !!next.enablePickup;
|
|
50
|
+
const initial = onlyPickup ? "counter_pickup" : onlyTable ? "table_service" : "table_service";
|
|
51
|
+
setMode(initial);
|
|
52
|
+
if ((next.enableTableService || next.enablePickup) && typeof scanOrderModule.setPickupReferenceMode === "function") {
|
|
53
|
+
scanOrderModule.setPickupReferenceMode(initial);
|
|
54
|
+
}
|
|
55
|
+
}, [scanOrderModule]);
|
|
56
|
+
const { enableTableService, enablePickup } = modes;
|
|
57
|
+
const labelTitle = (0, import_react.useMemo)(
|
|
58
|
+
() => String(import_utils.locales.getText("pisell2.scan.order.fulfillment.title")),
|
|
59
|
+
[]
|
|
60
|
+
);
|
|
61
|
+
const tableServiceText = (0, import_react.useMemo)(
|
|
62
|
+
() => String(import_utils.locales.getText("pisell2.scan.order.fulfillment.table_service")),
|
|
63
|
+
[]
|
|
64
|
+
);
|
|
65
|
+
const pickupText = (0, import_react.useMemo)(
|
|
66
|
+
() => String(import_utils.locales.getText("pisell2.scan.order.fulfillment.pickup")),
|
|
67
|
+
[]
|
|
68
|
+
);
|
|
69
|
+
if (!enableTableService && !enablePickup) return null;
|
|
70
|
+
if (!enableTableService || !enablePickup) {
|
|
71
|
+
const singleLabel = enablePickup ? pickupText : tableServiceText;
|
|
72
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-fulfillment pisell-scan-order-fulfillment-single" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-scan-order-fulfillment-title" }, labelTitle), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-scan-order-fulfillment-value" }, singleLabel));
|
|
73
|
+
}
|
|
74
|
+
const handleChange = (next) => {
|
|
75
|
+
if (next === mode) return;
|
|
76
|
+
setMode(next);
|
|
77
|
+
if (typeof (scanOrderModule == null ? void 0 : scanOrderModule.setPickupReferenceMode) === "function") {
|
|
78
|
+
scanOrderModule.setPickupReferenceMode(next);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-fulfillment" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-fulfillment-title" }, labelTitle), /* @__PURE__ */ import_react.default.createElement(
|
|
82
|
+
import_antd.Radio.Group,
|
|
83
|
+
{
|
|
84
|
+
className: "pisell-scan-order-fulfillment-group",
|
|
85
|
+
optionType: "button",
|
|
86
|
+
buttonStyle: "solid",
|
|
87
|
+
value: mode,
|
|
88
|
+
onChange: (event) => {
|
|
89
|
+
var _a;
|
|
90
|
+
return handleChange((_a = event == null ? void 0 : event.target) == null ? void 0 : _a.value);
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Radio.Button, { value: "table_service" }, tableServiceText),
|
|
94
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Radio.Button, { value: "counter_pickup" }, pickupText)
|
|
95
|
+
));
|
|
96
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.pisell-scan-order-fulfillment {
|
|
2
|
+
padding: 4px 16px;
|
|
3
|
+
margin-bottom: 12px;
|
|
4
|
+
background: #fff;
|
|
5
|
+
border-radius: 12px;
|
|
6
|
+
|
|
7
|
+
.pisell-scan-order-fulfillment-title {
|
|
8
|
+
color: #101828;
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
margin-bottom: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pisell-scan-order-fulfillment-group {
|
|
15
|
+
display: flex;
|
|
16
|
+
width: 100%;
|
|
17
|
+
|
|
18
|
+
.pisell-lowcode-radio-button-wrapper {
|
|
19
|
+
flex: 1;
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pisell-scan-order-fulfillment-single {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
gap: 12px;
|
|
30
|
+
|
|
31
|
+
.pisell-scan-order-fulfillment-title {
|
|
32
|
+
margin-bottom: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.pisell-scan-order-fulfillment-value {
|
|
36
|
+
color: #344054;
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ManualPickupRefModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
confirmLoading?: boolean;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
onConfirm: (value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* ManualPickupRefModal
|
|
11
|
+
*
|
|
12
|
+
* 当 scanOrder.checkManualPickupRef() 返回 enabled=true 时,弹出让用户输入
|
|
13
|
+
* 昵称/buzzer 的弹窗。确认时回调 onConfirm(value),由外部负责 setPickupRef 与下单。
|
|
14
|
+
*/
|
|
15
|
+
export default function ManualPickupRefModal({ open, confirmLoading, onCancel, onConfirm, }: ManualPickupRefModalProps): JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,116 @@
|
|
|
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/scanOrder/components/ManualPickupRefModal/index.tsx
|
|
30
|
+
var ManualPickupRefModal_exports = {};
|
|
31
|
+
__export(ManualPickupRefModal_exports, {
|
|
32
|
+
default: () => ManualPickupRefModal
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ManualPickupRefModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
|
+
function ManualPickupRefModal({
|
|
41
|
+
open,
|
|
42
|
+
confirmLoading = false,
|
|
43
|
+
onCancel,
|
|
44
|
+
onConfirm
|
|
45
|
+
}) {
|
|
46
|
+
const [value, setValue] = (0, import_react.useState)("");
|
|
47
|
+
(0, import_react.useEffect)(() => {
|
|
48
|
+
if (open) setValue("");
|
|
49
|
+
}, [open]);
|
|
50
|
+
const title = (0, import_react.useMemo)(
|
|
51
|
+
() => String(import_utils.locales.getText("pisell2.scan.order.pickup.ref.title")),
|
|
52
|
+
[]
|
|
53
|
+
);
|
|
54
|
+
const heading = (0, import_react.useMemo)(
|
|
55
|
+
() => String(import_utils.locales.getText("pisell2.scan.order.pickup.ref.heading")),
|
|
56
|
+
[]
|
|
57
|
+
);
|
|
58
|
+
const description = (0, import_react.useMemo)(
|
|
59
|
+
() => String(import_utils.locales.getText("pisell2.scan.order.pickup.ref.description")),
|
|
60
|
+
[]
|
|
61
|
+
);
|
|
62
|
+
const placeholder = (0, import_react.useMemo)(
|
|
63
|
+
() => String(import_utils.locales.getText("pisell2.scan.order.pickup.ref.placeholder")),
|
|
64
|
+
[]
|
|
65
|
+
);
|
|
66
|
+
const confirmText = (0, import_react.useMemo)(
|
|
67
|
+
() => String(import_utils.locales.getText("pisell2.event.confirm") || "Confirm"),
|
|
68
|
+
[]
|
|
69
|
+
);
|
|
70
|
+
const trimmed = value.trim();
|
|
71
|
+
const canConfirm = !!trimmed && !confirmLoading;
|
|
72
|
+
const handleConfirm = () => {
|
|
73
|
+
if (!canConfirm) return;
|
|
74
|
+
onConfirm(trimmed);
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
77
|
+
import_antd.Modal,
|
|
78
|
+
{
|
|
79
|
+
open,
|
|
80
|
+
title,
|
|
81
|
+
footer: null,
|
|
82
|
+
onCancel,
|
|
83
|
+
maskClosable: false,
|
|
84
|
+
destroyOnClose: true,
|
|
85
|
+
centered: true,
|
|
86
|
+
className: "pisell-scan-order-pickup-ref-modal"
|
|
87
|
+
},
|
|
88
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-pickup-ref-body" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-pickup-ref-heading" }, heading), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-pickup-ref-desc" }, description), /* @__PURE__ */ import_react.default.createElement(
|
|
89
|
+
import_antd.Input,
|
|
90
|
+
{
|
|
91
|
+
size: "large",
|
|
92
|
+
placeholder,
|
|
93
|
+
value,
|
|
94
|
+
onChange: (event) => {
|
|
95
|
+
var _a;
|
|
96
|
+
return setValue(((_a = event == null ? void 0 : event.target) == null ? void 0 : _a.value) || "");
|
|
97
|
+
},
|
|
98
|
+
onPressEnter: handleConfirm,
|
|
99
|
+
className: "pisell-scan-order-pickup-ref-input",
|
|
100
|
+
maxLength: 32,
|
|
101
|
+
allowClear: true
|
|
102
|
+
}
|
|
103
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
104
|
+
import_materials.Button,
|
|
105
|
+
{
|
|
106
|
+
type: "primary",
|
|
107
|
+
block: true,
|
|
108
|
+
size: "large",
|
|
109
|
+
disabled: !canConfirm,
|
|
110
|
+
loading: confirmLoading,
|
|
111
|
+
onClick: handleConfirm
|
|
112
|
+
},
|
|
113
|
+
confirmText
|
|
114
|
+
))
|
|
115
|
+
);
|
|
116
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.pisell-scan-order-pickup-ref-modal {
|
|
2
|
+
.pisell-lowcode-modal-content {
|
|
3
|
+
border-radius: 16px;
|
|
4
|
+
padding: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pisell-lowcode-modal-header {
|
|
8
|
+
padding: 16px 20px;
|
|
9
|
+
border-bottom: 1px solid #eaecf0;
|
|
10
|
+
margin-bottom: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pisell-lowcode-modal-title {
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
color: #101828;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pisell-lowcode-modal-body {
|
|
20
|
+
padding: 24px 20px 28px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pisell-lowcode-modal-close {
|
|
24
|
+
top: 14px;
|
|
25
|
+
inset-inline-end: 16px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pisell-scan-order-pickup-ref-body {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: 12px;
|
|
33
|
+
align-items: stretch;
|
|
34
|
+
|
|
35
|
+
.pisell-scan-order-pickup-ref-heading {
|
|
36
|
+
text-align: center;
|
|
37
|
+
color: #101828;
|
|
38
|
+
font-size: 24px;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
line-height: 1.3;
|
|
41
|
+
margin-top: 4px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pisell-scan-order-pickup-ref-desc {
|
|
45
|
+
text-align: center;
|
|
46
|
+
color: #667085;
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
margin-bottom: 12px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.pisell-scan-order-pickup-ref-input {
|
|
53
|
+
height: 48px;
|
|
54
|
+
border-radius: 10px;
|
|
55
|
+
|
|
56
|
+
input {
|
|
57
|
+
text-align: center;
|
|
58
|
+
font-size: 16px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface MenuProps {
|
|
3
3
|
onCheckout: () => void;
|
|
4
|
+
/**
|
|
5
|
+
* 商品列表(由上层 ReadyState 持有,配合 onEnsureProductList 做幂等拉取与持久化:
|
|
6
|
+
* 切 step 回到 product 时 Menu 会 remount,但 productList 在 ReadyState 不会丢)
|
|
7
|
+
*/
|
|
8
|
+
productList: any[];
|
|
9
|
+
/**
|
|
10
|
+
* 幂等触发商品列表拉取。Menu mount 时调用:
|
|
11
|
+
* - 首次:真发请求
|
|
12
|
+
* - 后续(如从 check 返回 product):命中缓存,直接短路,不重复发请求
|
|
13
|
+
*/
|
|
14
|
+
onEnsureProductList: () => Promise<void>;
|
|
4
15
|
}
|
|
5
16
|
export default function Menu(props: MenuProps): JSX.Element;
|
|
6
17
|
export {};
|
|
@@ -37,12 +37,11 @@ var import_productSelect = __toESM(require("../../../../plus/productSelect"));
|
|
|
37
37
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
38
38
|
var import_context = require("../../context");
|
|
39
39
|
var import_utils = require("@pisell/utils");
|
|
40
|
-
var import_antd = require("antd");
|
|
41
40
|
var import_materials = require("@pisell/materials");
|
|
42
41
|
var import_transformProductDetail = require("../../utils/transformProductDetail");
|
|
43
42
|
function Menu(props) {
|
|
44
43
|
var _a;
|
|
45
|
-
const { onCheckout } = props;
|
|
44
|
+
const { onCheckout, productList, onEnsureProductList } = props;
|
|
46
45
|
const context = (0, import_useEngineContext.default)();
|
|
47
46
|
const { utils } = context.appHelper || {};
|
|
48
47
|
const {
|
|
@@ -51,34 +50,18 @@ function Menu(props) {
|
|
|
51
50
|
viewModel
|
|
52
51
|
} = (0, import_context.useScanOrderContext)();
|
|
53
52
|
const [dineInConfig, setDineInConfig] = (0, import_react.useState)(null);
|
|
54
|
-
const getConfig = async () => {
|
|
53
|
+
const getConfig = (0, import_react.useCallback)(async () => {
|
|
55
54
|
const otherParams = await runModuleAction("getOtherParams");
|
|
56
55
|
console.log("otherParams >>>>> ", otherParams);
|
|
57
56
|
const dineInConfig2 = (otherParams == null ? void 0 : otherParams.dineInConfig) ?? {};
|
|
58
57
|
setDineInConfig(dineInConfig2);
|
|
59
|
-
};
|
|
60
|
-
getConfig();
|
|
61
|
-
const [productList, setProductList] = (0, import_react.useState)([]);
|
|
58
|
+
}, [runModuleAction]);
|
|
62
59
|
(0, import_react.useEffect)(() => {
|
|
63
|
-
|
|
64
|
-
const res = await runModuleAction("getProductList");
|
|
65
|
-
console.log("getProductList >>>>> ", res);
|
|
66
|
-
if (Array.isArray(res)) {
|
|
67
|
-
setProductList(res);
|
|
68
|
-
} else {
|
|
69
|
-
import_antd.Modal.confirm({
|
|
70
|
-
title: res.message,
|
|
71
|
-
okText: String(import_utils.locales.getText("pisell2.event.confirm") || "OK"),
|
|
72
|
-
cancelButtonProps: { style: { display: "none" } },
|
|
73
|
-
maskClosable: false,
|
|
74
|
-
onOk: () => {
|
|
75
|
-
location.replace("/");
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
fetchProductList();
|
|
60
|
+
getConfig();
|
|
81
61
|
}, []);
|
|
62
|
+
(0, import_react.useEffect)(() => {
|
|
63
|
+
void onEnsureProductList();
|
|
64
|
+
}, [onEnsureProductList]);
|
|
82
65
|
const scrollRef = (0, import_react.useRef)(null);
|
|
83
66
|
const isMobileView = (0, import_utils.isMobile)();
|
|
84
67
|
const height = window.innerHeight - 100;
|
|
@@ -96,11 +79,12 @@ function Menu(props) {
|
|
|
96
79
|
}
|
|
97
80
|
};
|
|
98
81
|
const removeOrderProduct = async (params) => {
|
|
99
|
-
const { product_id, product_variant_id, sourceData } = params;
|
|
82
|
+
const { product_id, product_variant_id, identity_key, sourceData } = params;
|
|
100
83
|
try {
|
|
101
84
|
await runModuleAction("removeProductFromOrder", {
|
|
102
85
|
product_id,
|
|
103
|
-
product_variant_id
|
|
86
|
+
product_variant_id,
|
|
87
|
+
...identity_key ? { identity_key } : {}
|
|
104
88
|
});
|
|
105
89
|
await refreshViewModel();
|
|
106
90
|
} catch (error) {
|
|
@@ -108,16 +92,18 @@ function Menu(props) {
|
|
|
108
92
|
error,
|
|
109
93
|
sourceData,
|
|
110
94
|
product_id,
|
|
111
|
-
product_variant_id
|
|
95
|
+
product_variant_id,
|
|
96
|
+
identity_key
|
|
112
97
|
});
|
|
113
98
|
}
|
|
114
99
|
};
|
|
115
100
|
const updateOrderProduct = async (params) => {
|
|
116
|
-
const { product_id, product_variant_id, updates, sourceData } = params;
|
|
101
|
+
const { product_id, product_variant_id, identity_key, updates, sourceData } = params;
|
|
117
102
|
try {
|
|
118
103
|
await runModuleAction("updateProductInOrder", {
|
|
119
104
|
product_id,
|
|
120
105
|
product_variant_id,
|
|
106
|
+
...identity_key ? { identity_key } : {},
|
|
121
107
|
updates
|
|
122
108
|
});
|
|
123
109
|
await refreshViewModel();
|
|
@@ -127,6 +113,7 @@ function Menu(props) {
|
|
|
127
113
|
sourceData,
|
|
128
114
|
product_id,
|
|
129
115
|
product_variant_id,
|
|
116
|
+
identity_key,
|
|
130
117
|
updates
|
|
131
118
|
});
|
|
132
119
|
}
|
|
@@ -162,18 +149,20 @@ function Menu(props) {
|
|
|
162
149
|
return;
|
|
163
150
|
}
|
|
164
151
|
const normalizedQuantity = Number.isNaN(nextQuantity) ? 0 : Math.max(0, Math.floor(nextQuantity));
|
|
152
|
+
const cartItems = Array.isArray(viewModel == null ? void 0 : viewModel.cartItems) ? viewModel.cartItems : [];
|
|
153
|
+
const existedCartItem = cartItems.find((cartItem) => {
|
|
154
|
+
return String((cartItem == null ? void 0 : cartItem.product_id) ?? null) === String((orderProduct == null ? void 0 : orderProduct.product_id) ?? null) && Number((cartItem == null ? void 0 : cartItem.product_variant_id) ?? 0) === productVariantId;
|
|
155
|
+
});
|
|
156
|
+
const existedIdentityKey = typeof (existedCartItem == null ? void 0 : existedCartItem.identity_key) === "string" && existedCartItem.identity_key.length > 0 ? existedCartItem.identity_key : void 0;
|
|
165
157
|
if (normalizedQuantity <= 0) {
|
|
166
158
|
await removeOrderProduct({
|
|
167
159
|
product_id: (orderProduct == null ? void 0 : orderProduct.product_id) ?? null,
|
|
168
160
|
product_variant_id: productVariantId,
|
|
161
|
+
identity_key: existedIdentityKey,
|
|
169
162
|
sourceData: quantityData
|
|
170
163
|
});
|
|
171
164
|
return;
|
|
172
165
|
}
|
|
173
|
-
const cartItems = Array.isArray(viewModel == null ? void 0 : viewModel.cartItems) ? viewModel.cartItems : [];
|
|
174
|
-
const existedCartItem = cartItems.find((cartItem) => {
|
|
175
|
-
return String((cartItem == null ? void 0 : cartItem.product_id) ?? null) === String((orderProduct == null ? void 0 : orderProduct.product_id) ?? null) && Number((cartItem == null ? void 0 : cartItem.product_variant_id) ?? 0) === productVariantId;
|
|
176
|
-
});
|
|
177
166
|
if (!existedCartItem) {
|
|
178
167
|
await addOrderProduct({
|
|
179
168
|
orderProduct: {
|
|
@@ -187,6 +176,7 @@ function Menu(props) {
|
|
|
187
176
|
await updateOrderProduct({
|
|
188
177
|
product_id: (orderProduct == null ? void 0 : orderProduct.product_id) ?? null,
|
|
189
178
|
product_variant_id: productVariantId,
|
|
179
|
+
identity_key: existedIdentityKey,
|
|
190
180
|
updates: {
|
|
191
181
|
num: normalizedQuantity,
|
|
192
182
|
_origin: orderProduct == null ? void 0 : orderProduct._origin
|
|
@@ -198,7 +188,7 @@ function Menu(props) {
|
|
|
198
188
|
type: "pisell1.productDetail",
|
|
199
189
|
data: {
|
|
200
190
|
detail: { ...sourceItem, open_deposit: 1 },
|
|
201
|
-
setting: { can_input: true, item_max_length: 1, is_detail_open:
|
|
191
|
+
setting: { can_input: true, item_max_length: 1, is_detail_open: false }
|
|
202
192
|
},
|
|
203
193
|
callback: async (data) => {
|
|
204
194
|
if (data == null ? void 0 : data.isCancel) return;
|
|
@@ -248,8 +238,5 @@ function Menu(props) {
|
|
|
248
238
|
cartElementId: "#scan-order-v2-cart-btn"
|
|
249
239
|
}
|
|
250
240
|
);
|
|
251
|
-
if (isMobileView) {
|
|
252
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-menu pisell-scan-menu-mobile" }, productSelectNode);
|
|
253
|
-
}
|
|
254
241
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-menu" }, /* @__PURE__ */ import_react.default.createElement(import_materials.PisellScrollView, { height, overflow: "y", ref: scrollRef }, productSelectNode));
|
|
255
242
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '../../../booking/components/voucher/index.less';
|
|
3
|
+
import '../../../appointmentBooking/components/Voucher/index.less';
|
|
4
|
+
/**
|
|
5
|
+
* VoucherCard -- 优惠券/Promotion 区块
|
|
6
|
+
* 嵌入购物车底部,提供券列表展示、勾选、扫码兑码、未登录引导等能力
|
|
7
|
+
*/
|
|
8
|
+
export default function VoucherCard(): JSX.Element;
|