@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
|
@@ -17,6 +17,30 @@ export default {
|
|
|
17
17
|
'pisell2.scan.order.store.status.exception': 'The store is currently closed or in an abnormal state. Please contact staff.',
|
|
18
18
|
'pisell2.scan.order.note.title': 'Order notes',
|
|
19
19
|
'pisell2.scan.order.note.placeholder': 'Add order notes',
|
|
20
|
+
'pisell2.scan.order.fulfillment.title': 'Fulfillment',
|
|
21
|
+
'pisell2.scan.order.fulfillment.table_service': 'Table service',
|
|
22
|
+
'pisell2.scan.order.fulfillment.pickup': 'Pickup',
|
|
23
|
+
'pisell2.scan.order.current.table': 'Current table',
|
|
24
|
+
'pisell2.scan.order.pickup.ref.title': 'Table Service',
|
|
25
|
+
'pisell2.scan.order.pickup.ref.heading': 'Use any name you like',
|
|
26
|
+
'pisell2.scan.order.pickup.ref.description': 'Enter your nickname, or anything fun!',
|
|
27
|
+
'pisell2.scan.order.pickup.ref.placeholder': 'e.g. John',
|
|
28
|
+
'pisell2.scan.order.products.title': 'Products',
|
|
29
|
+
'pisell2.scan.order.products.empty.tip': 'Please select products',
|
|
30
|
+
'pisell2.scan.order.check.cart.empty.tip': 'Please go back to add products',
|
|
31
|
+
'pisell2.scan.order.submit.disabled.default': 'Order submission is currently disabled.',
|
|
32
|
+
'pisell2.text.goodpass': 'Promotion',
|
|
33
|
+
'pisell2.text.goodpass.product-vouchers': 'Product Vouchers',
|
|
34
|
+
'pisell2.text.goodpass.view-more': 'View More',
|
|
35
|
+
'pisell2.text.goodpass.code': 'Code',
|
|
36
|
+
'pisell2.text.goodpass.enter-code': 'Enter Code',
|
|
37
|
+
'pisell2.text.goodpass.code-invalid': 'Current code is invalid',
|
|
38
|
+
'pisell2.text.goodpass.code-invalid-cart': 'No eligible items in the cart',
|
|
39
|
+
'pisell2.text.goodpass.code-invalid-expired': 'Current coupon is not valid in use',
|
|
40
|
+
'pisell2.text.goodpass.login': 'Login',
|
|
41
|
+
'pisell2.text.goodpass.login-tip': 'to access your promotions',
|
|
42
|
+
'pisell2.text.apply': 'Apply',
|
|
43
|
+
'pisell2.text.details': 'Details',
|
|
20
44
|
'pisell2.appointment.booking.empty.data': 'No data',
|
|
21
45
|
'pisell2.appointment.deposit.close': 'Close',
|
|
22
46
|
'pisell2.appointment.policy': 'You have read and agreed to this policy',
|
|
@@ -41,6 +65,30 @@ export default {
|
|
|
41
65
|
'pisell2.scan.order.store.status.exception': '当前店铺不在营业中或者状态异常,请联系工作人员',
|
|
42
66
|
'pisell2.scan.order.note.title': '备注',
|
|
43
67
|
'pisell2.scan.order.note.placeholder': '请输入备注',
|
|
68
|
+
'pisell2.scan.order.fulfillment.title': '取餐方式',
|
|
69
|
+
'pisell2.scan.order.fulfillment.table_service': '送餐到桌',
|
|
70
|
+
'pisell2.scan.order.fulfillment.pickup': '到店自取',
|
|
71
|
+
'pisell2.scan.order.current.table': '当前桌台',
|
|
72
|
+
'pisell2.scan.order.pickup.ref.title': '桌边服务',
|
|
73
|
+
'pisell2.scan.order.pickup.ref.heading': '随便起个名字吧',
|
|
74
|
+
'pisell2.scan.order.pickup.ref.description': '输入你的昵称,或任何有趣的名字!',
|
|
75
|
+
'pisell2.scan.order.pickup.ref.placeholder': '例如:小明',
|
|
76
|
+
'pisell2.scan.order.products.title': '商品',
|
|
77
|
+
'pisell2.scan.order.products.empty.tip': '请选择商品',
|
|
78
|
+
'pisell2.scan.order.check.cart.empty.tip': '请返回添加商品',
|
|
79
|
+
'pisell2.scan.order.submit.disabled.default': '当前暂不可下单',
|
|
80
|
+
'pisell2.text.goodpass': '促销',
|
|
81
|
+
'pisell2.text.goodpass.product-vouchers': '商品兑换券',
|
|
82
|
+
'pisell2.text.goodpass.view-more': '查看更多',
|
|
83
|
+
'pisell2.text.goodpass.code': '券码',
|
|
84
|
+
'pisell2.text.goodpass.enter-code': '请输入券码',
|
|
85
|
+
'pisell2.text.goodpass.code-invalid': '当前券码不可用',
|
|
86
|
+
'pisell2.text.goodpass.code-invalid-cart': '当前购物车中无可用商品',
|
|
87
|
+
'pisell2.text.goodpass.code-invalid-expired': '当前优惠券不在使用期限内',
|
|
88
|
+
'pisell2.text.goodpass.login': '登录',
|
|
89
|
+
'pisell2.text.goodpass.login-tip': '以获取会员福利或使用账户积分',
|
|
90
|
+
'pisell2.text.apply': '应用',
|
|
91
|
+
'pisell2.text.details': '详情',
|
|
44
92
|
'pisell2.appointment.booking.empty.data': '暂无数据',
|
|
45
93
|
'pisell2.appointment.deposit.close': '关闭',
|
|
46
94
|
'pisell2.appointment.policy': '您已仔细阅读并同意此协议',
|
|
@@ -65,6 +113,30 @@ export default {
|
|
|
65
113
|
'pisell2.scan.order.store.status.exception': '當前店鋪不在營業中或者狀態異常,請聯繫工作人員',
|
|
66
114
|
'pisell2.scan.order.note.title': '備註',
|
|
67
115
|
'pisell2.scan.order.note.placeholder': '請輸入備註',
|
|
116
|
+
'pisell2.scan.order.fulfillment.title': '取餐方式',
|
|
117
|
+
'pisell2.scan.order.fulfillment.table_service': '送餐到桌',
|
|
118
|
+
'pisell2.scan.order.fulfillment.pickup': '到店自取',
|
|
119
|
+
'pisell2.scan.order.current.table': '當前桌台',
|
|
120
|
+
'pisell2.scan.order.pickup.ref.title': '桌邊服務',
|
|
121
|
+
'pisell2.scan.order.pickup.ref.heading': '隨便起個名字吧',
|
|
122
|
+
'pisell2.scan.order.pickup.ref.description': '輸入你的暱稱,或任何有趣的名字!',
|
|
123
|
+
'pisell2.scan.order.pickup.ref.placeholder': '例如:小明',
|
|
124
|
+
'pisell2.scan.order.products.title': '商品',
|
|
125
|
+
'pisell2.scan.order.products.empty.tip': '請選擇商品',
|
|
126
|
+
'pisell2.scan.order.check.cart.empty.tip': '請返回添加商品',
|
|
127
|
+
'pisell2.scan.order.submit.disabled.default': '當前暫不可下單',
|
|
128
|
+
'pisell2.text.goodpass': '促銷',
|
|
129
|
+
'pisell2.text.goodpass.product-vouchers': '商品兌換券',
|
|
130
|
+
'pisell2.text.goodpass.view-more': '查看更多',
|
|
131
|
+
'pisell2.text.goodpass.code': '券碼',
|
|
132
|
+
'pisell2.text.goodpass.enter-code': '請輸入券碼',
|
|
133
|
+
'pisell2.text.goodpass.code-invalid': '當前券碼不可用',
|
|
134
|
+
'pisell2.text.goodpass.code-invalid-cart': '當前購物車中無可用商品',
|
|
135
|
+
'pisell2.text.goodpass.code-invalid-expired': '當前優惠券不在使用期限內',
|
|
136
|
+
'pisell2.text.goodpass.login': '登錄',
|
|
137
|
+
'pisell2.text.goodpass.login-tip': '以獲取會員福利或使用賬戶積分',
|
|
138
|
+
'pisell2.text.apply': '應用',
|
|
139
|
+
'pisell2.text.details': '詳情',
|
|
68
140
|
'pisell2.appointment.booking.empty.data': '暫無數據',
|
|
69
141
|
'pisell2.appointment.deposit.close': '关闭',
|
|
70
142
|
'pisell2.appointment.policy': '您已仔細閱讀並同意此協議',
|
|
@@ -89,6 +161,30 @@ export default {
|
|
|
89
161
|
'pisell2.scan.order.store.status.exception': '現在、店舗は営業時間外または状態が異常です。スタッフまでお問い合わせください。',
|
|
90
162
|
'pisell2.scan.order.note.title': '備考',
|
|
91
163
|
'pisell2.scan.order.note.placeholder': '備考を入力してください',
|
|
164
|
+
'pisell2.scan.order.fulfillment.title': '受け取り方法',
|
|
165
|
+
'pisell2.scan.order.fulfillment.table_service': 'テーブルサービス',
|
|
166
|
+
'pisell2.scan.order.fulfillment.pickup': 'ピックアップ',
|
|
167
|
+
'pisell2.scan.order.current.table': '現在のテーブル',
|
|
168
|
+
'pisell2.scan.order.pickup.ref.title': 'テーブルサービス',
|
|
169
|
+
'pisell2.scan.order.pickup.ref.heading': '好きな名前をどうぞ',
|
|
170
|
+
'pisell2.scan.order.pickup.ref.description': 'ニックネームや楽しい名前を入力してね!',
|
|
171
|
+
'pisell2.scan.order.pickup.ref.placeholder': '例: ジョン',
|
|
172
|
+
'pisell2.scan.order.products.title': '商品',
|
|
173
|
+
'pisell2.scan.order.products.empty.tip': '商品を選択してください',
|
|
174
|
+
'pisell2.scan.order.check.cart.empty.tip': '商品を追加するには、前の画面に戻ってください',
|
|
175
|
+
'pisell2.scan.order.submit.disabled.default': '現在、注文を送信できません。',
|
|
176
|
+
'pisell2.text.goodpass': 'プロモーション',
|
|
177
|
+
'pisell2.text.goodpass.product-vouchers': '商品バウチャー',
|
|
178
|
+
'pisell2.text.goodpass.view-more': 'もっと見る',
|
|
179
|
+
'pisell2.text.goodpass.code': 'コード',
|
|
180
|
+
'pisell2.text.goodpass.enter-code': 'コードを入力',
|
|
181
|
+
'pisell2.text.goodpass.code-invalid': '現在のコードは無効です',
|
|
182
|
+
'pisell2.text.goodpass.code-invalid-cart': 'カートに適格な項目がありません',
|
|
183
|
+
'pisell2.text.goodpass.code-invalid-expired': '現在のクーポンは使用期限外です',
|
|
184
|
+
'pisell2.text.goodpass.login': 'ログイン',
|
|
185
|
+
'pisell2.text.goodpass.login-tip': 'プロモーションにアクセスするため',
|
|
186
|
+
'pisell2.text.apply': '適用',
|
|
187
|
+
'pisell2.text.details': '詳細',
|
|
92
188
|
'pisell2.appointment.booking.empty.data': 'データなし',
|
|
93
189
|
'pisell2.appointment.deposit.close': '閉じる',
|
|
94
190
|
'pisell2.appointment.policy': 'このポリシーを読み、同意しました',
|
|
@@ -113,6 +209,30 @@ export default {
|
|
|
113
209
|
'pisell2.scan.order.store.status.exception': 'A loja está fechada no momento ou em estado anormal. Entre em contato com a equipe.',
|
|
114
210
|
'pisell2.scan.order.note.title': 'Observações do pedido',
|
|
115
211
|
'pisell2.scan.order.note.placeholder': 'Adicione observações do pedido',
|
|
212
|
+
'pisell2.scan.order.fulfillment.title': 'Forma de retirada',
|
|
213
|
+
'pisell2.scan.order.fulfillment.table_service': 'Serviço à mesa',
|
|
214
|
+
'pisell2.scan.order.fulfillment.pickup': 'Retirada',
|
|
215
|
+
'pisell2.scan.order.current.table': 'Mesa atual',
|
|
216
|
+
'pisell2.scan.order.pickup.ref.title': 'Serviço à mesa',
|
|
217
|
+
'pisell2.scan.order.pickup.ref.heading': 'Use o nome que quiser',
|
|
218
|
+
'pisell2.scan.order.pickup.ref.description': 'Digite seu apelido ou algo divertido!',
|
|
219
|
+
'pisell2.scan.order.pickup.ref.placeholder': 'Ex.: João',
|
|
220
|
+
'pisell2.scan.order.products.title': 'Produtos',
|
|
221
|
+
'pisell2.scan.order.products.empty.tip': 'Selecione produtos',
|
|
222
|
+
'pisell2.scan.order.check.cart.empty.tip': 'Volte para adicionar produtos',
|
|
223
|
+
'pisell2.scan.order.submit.disabled.default': 'No momento, não é possível enviar pedidos.',
|
|
224
|
+
'pisell2.text.goodpass': 'Promoção',
|
|
225
|
+
'pisell2.text.goodpass.product-vouchers': 'Vales de Produto',
|
|
226
|
+
'pisell2.text.goodpass.view-more': 'Ver Mais',
|
|
227
|
+
'pisell2.text.goodpass.code': 'Código',
|
|
228
|
+
'pisell2.text.goodpass.enter-code': 'Digite o Código',
|
|
229
|
+
'pisell2.text.goodpass.code-invalid': 'Código atual é inválido',
|
|
230
|
+
'pisell2.text.goodpass.code-invalid-cart': 'Nenhum item elegível no carrinho',
|
|
231
|
+
'pisell2.text.goodpass.code-invalid-expired': 'Cupom atual não está no período de uso',
|
|
232
|
+
'pisell2.text.goodpass.login': 'Entrar',
|
|
233
|
+
'pisell2.text.goodpass.login-tip': 'para acessar suas promoções',
|
|
234
|
+
'pisell2.text.apply': 'Aplicar',
|
|
235
|
+
'pisell2.text.details': 'Detalhes',
|
|
116
236
|
'pisell2.appointment.booking.empty.data': 'Sem dados',
|
|
117
237
|
'pisell2.appointment.deposit.close': 'Fechar',
|
|
118
238
|
'pisell2.appointment.policy': 'Você leu e concordou com esta política',
|
|
@@ -11,6 +11,15 @@ export interface ScanOrderProps {
|
|
|
11
11
|
entryContext?: ScanOrderEntryContext;
|
|
12
12
|
}
|
|
13
13
|
export declare type ScanOrderStepKey = 'init' | 'product' | 'check' | 'error';
|
|
14
|
+
export declare type ScanOrderEntryMode = 'default' | 'additional_order';
|
|
15
|
+
/** 步骤缓存中记录的 gate 标记(对应协议 / 表单 / 人数 modal 是否已走过) */
|
|
16
|
+
export declare type ScanOrderGateKey = 'policyAccepted' | 'formSubmitted' | 'paxEntered';
|
|
17
|
+
/** 存入 sessionStorage 桶内的 entryContext 快照(用于校验是否同一扫码场景) */
|
|
18
|
+
export interface ScanOrderCachedEntryContext {
|
|
19
|
+
resourceId?: string;
|
|
20
|
+
hasOrderId?: boolean;
|
|
21
|
+
biz?: string;
|
|
22
|
+
}
|
|
14
23
|
export interface ScanOrderViewModel {
|
|
15
24
|
menuItems: any[];
|
|
16
25
|
cartItems: any[];
|
|
@@ -30,8 +39,16 @@ export interface ScanOrderContextValue {
|
|
|
30
39
|
stepList: ScanOrderStepKey[];
|
|
31
40
|
viewModel: ScanOrderViewModel;
|
|
32
41
|
footerActionText: string;
|
|
42
|
+
tableName: string;
|
|
43
|
+
entryMode: ScanOrderEntryMode;
|
|
44
|
+
submitDisabledTips: string;
|
|
45
|
+
/** 折扣/优惠券列表(来自 scanOrder 模块 getDiscountList) */
|
|
46
|
+
discountList: any[];
|
|
33
47
|
isReady: boolean;
|
|
34
48
|
setCurrentStep: (step: ScanOrderStepKey) => void;
|
|
49
|
+
setTableName: (name: string) => void;
|
|
50
|
+
setEntryMode: (mode: ScanOrderEntryMode) => void;
|
|
51
|
+
setSubmitDisabledTips: (tips: string) => void;
|
|
35
52
|
goToStep: (step: ScanOrderStepKey) => void;
|
|
36
53
|
nextStep: () => void;
|
|
37
54
|
prevStep: () => void;
|
|
@@ -39,6 +56,22 @@ export interface ScanOrderContextValue {
|
|
|
39
56
|
runModuleAction: (actionName: string, ...args: any[]) => Promise<any>;
|
|
40
57
|
setFooterActionText: (text: string) => void;
|
|
41
58
|
updateOrderNote: (note: string) => Promise<void>;
|
|
59
|
+
/** 步骤缓存 hydrate 是否已完成(未完成时不建议写入 step,避免覆盖缓存) */
|
|
60
|
+
isCacheHydrated: boolean;
|
|
61
|
+
/** 将 gate 标记为已完成(写入 sessionStorage 桶) */
|
|
62
|
+
markGate: (flag: ScanOrderGateKey) => void;
|
|
63
|
+
/** 查询某个 gate 是否已完成 */
|
|
64
|
+
isGatePassed: (flag: ScanOrderGateKey) => boolean;
|
|
65
|
+
/** 整桶清空(提交成功 / restoreOrder 等场景) */
|
|
66
|
+
clearStepCache: () => void;
|
|
67
|
+
/**
|
|
68
|
+
* bootstrap 结束后要恢复到的目标 step(仅记录 `'product' | 'check'`)。
|
|
69
|
+
* hydrate 阶段不直接 `setCurrentStep`,避免在 checkResourceAvailable 之前让
|
|
70
|
+
* `<Menu>` / `<Check>` mount、提前发出缺 menu_list_ids 的请求。
|
|
71
|
+
*/
|
|
72
|
+
resumeStep: ScanOrderStepKey | null;
|
|
73
|
+
/** 消费并清空 resumeStep;建议在完成 goToStep 后立刻调用 */
|
|
74
|
+
consumeResumeStep: () => void;
|
|
42
75
|
}
|
|
43
76
|
export interface ScanOrderProviderProps {
|
|
44
77
|
entryContext: ScanOrderEntryContext;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
7
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
8
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
1
10
|
function toNumber(value) {
|
|
2
11
|
var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
3
12
|
var parsedValue = Number(value);
|
|
@@ -52,13 +61,117 @@ function normalizeOptions(product) {
|
|
|
52
61
|
};
|
|
53
62
|
});
|
|
54
63
|
}
|
|
64
|
+
|
|
65
|
+
/** 与 getDisplayName 一致:优先 metadata 上的完整商品快照 */
|
|
66
|
+
function getProductOriginRich(product) {
|
|
67
|
+
var _product$metadata2, _product$_origin4;
|
|
68
|
+
return (product === null || product === void 0 || (_product$metadata2 = product.metadata) === null || _product$metadata2 === void 0 ? void 0 : _product$metadata2.origin) || (product === null || product === void 0 || (_product$_origin4 = product._origin) === null || _product$_origin4 === void 0 || (_product$_origin4 = _product$_origin4.callbackData) === null || _product$_origin4 === void 0 ? void 0 : _product$_origin4.origin) || {};
|
|
69
|
+
}
|
|
70
|
+
function findVariantGroupById(groups, groupId) {
|
|
71
|
+
return groups.find(function (g) {
|
|
72
|
+
return Number(g === null || g === void 0 ? void 0 : g.id) === Number(groupId);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function findVariantItemDisplayName(variantGroup, variantItemId) {
|
|
76
|
+
var _ref, _found$name;
|
|
77
|
+
var items = Array.isArray(variantGroup === null || variantGroup === void 0 ? void 0 : variantGroup.variant_item) ? variantGroup.variant_item : [];
|
|
78
|
+
var found = items.find(function (it) {
|
|
79
|
+
return Number(it === null || it === void 0 ? void 0 : it.id) === Number(variantItemId);
|
|
80
|
+
});
|
|
81
|
+
var raw = (_ref = (_found$name = found === null || found === void 0 ? void 0 : found.name) !== null && _found$name !== void 0 ? _found$name : typeof (found === null || found === void 0 ? void 0 : found.title) === 'string' ? found.title : found === null || found === void 0 ? void 0 : found.title) !== null && _ref !== void 0 ? _ref : '';
|
|
82
|
+
return String(raw !== null && raw !== void 0 ? raw : '').trim();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 按 sku_ids(如 "7006:19533" 或 "g1:i1_g2:i2")与 variant_group 拼「组名: 选项名」,与选品器 transformSelectorValueToValue 风格一致(", " 连接)。
|
|
87
|
+
*/
|
|
88
|
+
function buildVariantStringFromSkuIds(origin, skuIdsRaw) {
|
|
89
|
+
var groups = Array.isArray(origin === null || origin === void 0 ? void 0 : origin.variant_group) ? origin.variant_group : [];
|
|
90
|
+
var parts = [];
|
|
91
|
+
var segments = String(skuIdsRaw || '').split('_').map(function (s) {
|
|
92
|
+
return s.trim();
|
|
93
|
+
}).filter(Boolean);
|
|
94
|
+
var _iterator = _createForOfIteratorHelper(segments),
|
|
95
|
+
_step;
|
|
96
|
+
try {
|
|
97
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
98
|
+
var _vg$name;
|
|
99
|
+
var seg = _step.value;
|
|
100
|
+
var colonIdx = seg.indexOf(':');
|
|
101
|
+
if (colonIdx <= 0) continue;
|
|
102
|
+
var groupId = Number(seg.slice(0, colonIdx));
|
|
103
|
+
var itemId = Number(seg.slice(colonIdx + 1));
|
|
104
|
+
if (Number.isNaN(groupId) || Number.isNaN(itemId)) continue;
|
|
105
|
+
var vg = findVariantGroupById(groups, groupId);
|
|
106
|
+
if (!vg) continue;
|
|
107
|
+
var groupName = String((_vg$name = vg === null || vg === void 0 ? void 0 : vg.name) !== null && _vg$name !== void 0 ? _vg$name : '').trim();
|
|
108
|
+
var itemName = findVariantItemDisplayName(vg, itemId);
|
|
109
|
+
if (groupName && itemName) parts.push("".concat(groupName, ": ").concat(itemName));else if (itemName) parts.push(itemName);else if (groupName) parts.push(groupName);
|
|
110
|
+
}
|
|
111
|
+
} catch (err) {
|
|
112
|
+
_iterator.e(err);
|
|
113
|
+
} finally {
|
|
114
|
+
_iterator.f();
|
|
115
|
+
}
|
|
116
|
+
return parts.join(', ');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** sku_ids 解析失败时用 variant 的 name/title 与 variant_group.position_id 对齐 */
|
|
120
|
+
function fallbackVariantLabelFromTitles(origin, variantRow) {
|
|
121
|
+
var groups = Array.isArray(origin === null || origin === void 0 ? void 0 : origin.variant_group) ? origin.variant_group : [];
|
|
122
|
+
var nameObj = (variantRow === null || variantRow === void 0 ? void 0 : variantRow.name) || (variantRow === null || variantRow === void 0 ? void 0 : variantRow.title);
|
|
123
|
+
if (!nameObj || _typeof(nameObj) !== 'object') return '';
|
|
124
|
+
var parts = [];
|
|
125
|
+
var _iterator2 = _createForOfIteratorHelper(groups),
|
|
126
|
+
_step2;
|
|
127
|
+
try {
|
|
128
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
129
|
+
var _String, _g$name;
|
|
130
|
+
var g = _step2.value;
|
|
131
|
+
var pid = g === null || g === void 0 ? void 0 : g.position_id;
|
|
132
|
+
if (pid == null) continue;
|
|
133
|
+
var val = (_String = nameObj[String(pid)]) !== null && _String !== void 0 ? _String : nameObj[pid];
|
|
134
|
+
if (val == null || val === '') continue;
|
|
135
|
+
var groupName = String((_g$name = g === null || g === void 0 ? void 0 : g.name) !== null && _g$name !== void 0 ? _g$name : '').trim();
|
|
136
|
+
var itemLabel = String(val).trim();
|
|
137
|
+
if (groupName && itemLabel) parts.push("".concat(groupName, ": ").concat(itemLabel));else if (itemLabel) parts.push(itemLabel);
|
|
138
|
+
}
|
|
139
|
+
} catch (err) {
|
|
140
|
+
_iterator2.e(err);
|
|
141
|
+
} finally {
|
|
142
|
+
_iterator2.f();
|
|
143
|
+
}
|
|
144
|
+
if (parts.length) return parts.join(', ');
|
|
145
|
+
var vals = Object.values(nameObj).filter(function (v) {
|
|
146
|
+
return v != null && String(v).trim() !== '';
|
|
147
|
+
});
|
|
148
|
+
return vals.map(function (v) {
|
|
149
|
+
return String(v).trim();
|
|
150
|
+
}).join(' / ');
|
|
151
|
+
}
|
|
152
|
+
function getVariantProductOptionString(product) {
|
|
153
|
+
var variantId = product === null || product === void 0 ? void 0 : product.product_variant_id;
|
|
154
|
+
if (variantId == null || variantId === '' || Number(variantId) <= 0) return '';
|
|
155
|
+
var origin = getProductOriginRich(product);
|
|
156
|
+
var variants = Array.isArray(origin === null || origin === void 0 ? void 0 : origin.variant) ? origin.variant : [];
|
|
157
|
+
var matched = variants.find(function (v) {
|
|
158
|
+
return Number(v === null || v === void 0 ? void 0 : v.id) === Number(variantId);
|
|
159
|
+
});
|
|
160
|
+
if (!matched) return '';
|
|
161
|
+
var skuIds = matched === null || matched === void 0 ? void 0 : matched.sku_ids;
|
|
162
|
+
if (skuIds != null && String(skuIds).trim() !== '') {
|
|
163
|
+
var fromSku = buildVariantStringFromSkuIds(origin, String(skuIds));
|
|
164
|
+
if (fromSku) return fromSku;
|
|
165
|
+
}
|
|
166
|
+
return fallbackVariantLabelFromTitles(origin, matched);
|
|
167
|
+
}
|
|
55
168
|
function normalizeBundles(product) {
|
|
56
|
-
var _product$
|
|
57
|
-
var callbackData = (product === null || product === void 0 || (_product$
|
|
169
|
+
var _product$_origin5;
|
|
170
|
+
var callbackData = (product === null || product === void 0 || (_product$_origin5 = product._origin) === null || _product$_origin5 === void 0 ? void 0 : _product$_origin5.callbackData) || {};
|
|
58
171
|
var sourceBundles = Array.isArray(callbackData === null || callbackData === void 0 ? void 0 : callbackData.bundle) ? callbackData.bundle : (product === null || product === void 0 ? void 0 : product.product_bundle) || [];
|
|
59
172
|
return sourceBundles.map(function (bundleItem, bundleIndex) {
|
|
60
|
-
var
|
|
61
|
-
var bundlePrice = toNumber((
|
|
173
|
+
var _ref2, _bundleItem$price, _bundleItem$id;
|
|
174
|
+
var bundlePrice = toNumber((_ref2 = (_bundleItem$price = bundleItem === null || bundleItem === void 0 ? void 0 : bundleItem.price) !== null && _bundleItem$price !== void 0 ? _bundleItem$price : bundleItem === null || bundleItem === void 0 ? void 0 : bundleItem.product_price) !== null && _ref2 !== void 0 ? _ref2 : bundleItem === null || bundleItem === void 0 ? void 0 : bundleItem.custom_price, 0);
|
|
62
175
|
var bundleNum = toSafeNum(bundleItem === null || bundleItem === void 0 ? void 0 : bundleItem.num);
|
|
63
176
|
var bundleOptions = Array.isArray(bundleItem === null || bundleItem === void 0 ? void 0 : bundleItem.option) ? bundleItem.option : [];
|
|
64
177
|
return {
|
|
@@ -90,17 +203,24 @@ export function toShoppingCartProducts(params) {
|
|
|
90
203
|
amountSymbol = _params$amountSymbol === void 0 ? '$' : _params$amountSymbol;
|
|
91
204
|
if (!Array.isArray(orderProducts)) return [];
|
|
92
205
|
return orderProducts.map(function (productItem, index) {
|
|
93
|
-
var _productItem$_origin, _productItem$
|
|
206
|
+
var _productItem$_origin, _productItem$product_, _productItem$metadata;
|
|
94
207
|
var productNum = toSafeNum(productItem === null || productItem === void 0 ? void 0 : productItem.num);
|
|
95
208
|
var unitPrice = getUnitPrice(productItem);
|
|
96
|
-
var
|
|
97
|
-
|
|
209
|
+
var callbackData = (productItem === null || productItem === void 0 || (_productItem$_origin = productItem._origin) === null || _productItem$_origin === void 0 ? void 0 : _productItem$_origin.callbackData) || {};
|
|
210
|
+
// 不透明 identity 契约:rowKey / _id 直接复用 SDK 回灌的 identity_key;
|
|
211
|
+
// 仅当(升级路径或非常规调用)identity_key 缺失时退到 SKU + index 兜底。
|
|
212
|
+
var identityKey = typeof (productItem === null || productItem === void 0 ? void 0 : productItem.identity_key) === 'string' && productItem.identity_key.length > 0 ? productItem.identity_key : undefined;
|
|
213
|
+
var rowKey = identityKey !== null && identityKey !== void 0 ? identityKey : "".concat((_productItem$product_ = productItem.product_id) !== null && _productItem$product_ !== void 0 ? _productItem$product_ : 'p', "_").concat(productItem.product_variant_id, "_").concat(index);
|
|
214
|
+
var fromCallbackOptionString = typeof (callbackData === null || callbackData === void 0 ? void 0 : callbackData.product_option_string) === 'string' ? callbackData.product_option_string.trim() : '';
|
|
215
|
+
var productOptionString = fromCallbackOptionString || getVariantProductOptionString(productItem) || undefined;
|
|
216
|
+
var base = _objectSpread({
|
|
98
217
|
_id: rowKey,
|
|
99
218
|
rowKey: rowKey,
|
|
100
|
-
identity_key:
|
|
219
|
+
identity_key: identityKey,
|
|
101
220
|
id: productItem.product_id,
|
|
102
221
|
product_id: productItem.product_id,
|
|
103
222
|
product_variant_id: productItem.product_variant_id,
|
|
223
|
+
note: (productItem === null || productItem === void 0 ? void 0 : productItem.note) != null ? String(productItem.note) : '',
|
|
104
224
|
name: getDisplayName(productItem),
|
|
105
225
|
image: getDisplayImage(productItem),
|
|
106
226
|
num: productNum,
|
|
@@ -112,7 +232,15 @@ export function toShoppingCartProducts(params) {
|
|
|
112
232
|
bundle: normalizeBundles(productItem),
|
|
113
233
|
_origin: productItem === null || productItem === void 0 ? void 0 : productItem._origin,
|
|
114
234
|
isNormalProduct: true
|
|
115
|
-
}
|
|
235
|
+
}, productOptionString ? {
|
|
236
|
+
product_option_string: productOptionString
|
|
237
|
+
} : {});
|
|
238
|
+
if (Array.isArray(productItem.product_option_item) && productItem.product_option_item.length) {
|
|
239
|
+
base.product_option_item = productItem.product_option_item;
|
|
240
|
+
}
|
|
241
|
+
if (Array.isArray(productItem.product_bundle) && productItem.product_bundle.length) {
|
|
242
|
+
base.product_bundle = productItem.product_bundle;
|
|
243
|
+
}
|
|
116
244
|
if (productItem !== null && productItem !== void 0 && (_productItem$metadata = productItem.metadata) !== null && _productItem$metadata !== void 0 && _productItem$metadata.venue_booking) {
|
|
117
245
|
var _origin$resources2;
|
|
118
246
|
var origin = productItem._origin || {};
|
|
@@ -49,8 +49,21 @@ function normalizeBundleItems(bundleItems) {
|
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 在商品 origin 数据中按 variant_id 命中对应的规格行,用于取「规格级」字段(price / base_price / is_charge_tax 等)。
|
|
55
|
+
* 主商品字段仅作为无规格或无法命中时的兜底,避免把主商品价误当成规格价写入订单行。
|
|
56
|
+
*/
|
|
57
|
+
function findVariantById(origin, variantId) {
|
|
58
|
+
if (!origin || !variantId || variantId <= 0) return null;
|
|
59
|
+
var variants = Array.isArray(origin === null || origin === void 0 ? void 0 : origin.variant) ? origin.variant : [];
|
|
60
|
+
var matched = variants.find(function (v) {
|
|
61
|
+
return Number(v === null || v === void 0 ? void 0 : v.id) === variantId;
|
|
62
|
+
});
|
|
63
|
+
return matched || null;
|
|
64
|
+
}
|
|
52
65
|
export function transformProductDetailToOrderProduct(params) {
|
|
53
|
-
var _ref, _ref2, _payload$product_id, _ref3, _payload$product_vari, _payload$_origin, _ref4, _ref5, _ref6, _ref7, _payload$price,
|
|
66
|
+
var _ref, _ref2, _payload$product_id, _ref3, _payload$product_vari, _payload$_origin, _findVariantById, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _payload$price, _ref10, _ref11, _payload$tax_fee, _ref12, _ref13, _payload$is_charge_ta, _payload$quantity, _payload$option, _payload$bundle;
|
|
54
67
|
var payload = params.payload,
|
|
55
68
|
_params$fallbackProdu = params.fallbackProductId,
|
|
56
69
|
fallbackProductId = _params$fallbackProdu === void 0 ? null : _params$fallbackProdu,
|
|
@@ -61,13 +74,17 @@ export function transformProductDetailToOrderProduct(params) {
|
|
|
61
74
|
if (productId === null) return null;
|
|
62
75
|
var productVariantId = toNumber((_ref3 = (_payload$product_vari = payload.product_variant_id) !== null && _payload$product_vari !== void 0 ? _payload$product_vari : payload.variant_id) !== null && _ref3 !== void 0 ? _ref3 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.product_variant_id, 0);
|
|
63
76
|
var callbackOrigin = (payload === null || payload === void 0 ? void 0 : payload.origin) || (payload === null || payload === void 0 || (_payload$_origin = payload._origin) === null || _payload$_origin === void 0 ? void 0 : _payload$_origin.sourceItem) || (payload === null || payload === void 0 ? void 0 : payload._origin) || {};
|
|
64
|
-
|
|
77
|
+
// 规格商品的价格、税率等字段必须以 variant 行为准;主商品上的 price 只是「起售价/默认价」。
|
|
78
|
+
// productDetail 弹窗回调 payload 里通常不会带 price,如果不做 variant 查找,
|
|
79
|
+
// 就会退到 callbackOrigin.price(主商品价),导致加购价格错位。
|
|
80
|
+
var matchedVariant = (_findVariantById = findVariantById(callbackOrigin, productVariantId)) !== null && _findVariantById !== void 0 ? _findVariantById : findVariantById(sourceItem, productVariantId);
|
|
81
|
+
var sellingPrice = toPriceString((_ref4 = (_ref5 = (_ref6 = (_ref7 = (_ref8 = (_ref9 = (_payload$price = payload === null || payload === void 0 ? void 0 : payload.price) !== null && _payload$price !== void 0 ? _payload$price : payload === null || payload === void 0 ? void 0 : payload.selling_price) !== null && _ref9 !== void 0 ? _ref9 : matchedVariant === null || matchedVariant === void 0 ? void 0 : matchedVariant.price) !== null && _ref8 !== void 0 ? _ref8 : matchedVariant === null || matchedVariant === void 0 ? void 0 : matchedVariant.base_price) !== null && _ref7 !== void 0 ? _ref7 : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.price) !== null && _ref6 !== void 0 ? _ref6 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.price) !== null && _ref5 !== void 0 ? _ref5 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.selling_price) !== null && _ref4 !== void 0 ? _ref4 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.base_price, '0.00');
|
|
65
82
|
// 入口不引入后台划线价(payload/source.original_price 可能承载 UI 划线展示用的原价)。
|
|
66
83
|
// 订单域 original_price 语义为「券前店铺售价」,初次加购恒等于 selling_price;
|
|
67
84
|
// 券应用后由 SDK Rules 引擎维护差异。
|
|
68
85
|
var originalPrice = sellingPrice;
|
|
69
|
-
var taxFee = toPriceString((
|
|
70
|
-
var isChargeTax = toNumber((
|
|
86
|
+
var taxFee = toPriceString((_ref10 = (_ref11 = (_payload$tax_fee = payload === null || payload === void 0 ? void 0 : payload.tax_fee) !== null && _payload$tax_fee !== void 0 ? _payload$tax_fee : matchedVariant === null || matchedVariant === void 0 ? void 0 : matchedVariant.tax_fee) !== null && _ref11 !== void 0 ? _ref11 : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.tax_fee) !== null && _ref10 !== void 0 ? _ref10 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.tax_fee, '0.00');
|
|
87
|
+
var isChargeTax = toNumber((_ref12 = (_ref13 = (_payload$is_charge_ta = payload === null || payload === void 0 ? void 0 : payload.is_charge_tax) !== null && _payload$is_charge_ta !== void 0 ? _payload$is_charge_ta : matchedVariant === null || matchedVariant === void 0 ? void 0 : matchedVariant.is_charge_tax) !== null && _ref13 !== void 0 ? _ref13 : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.is_charge_tax) !== null && _ref12 !== void 0 ? _ref12 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.is_charge_tax, 0);
|
|
71
88
|
return {
|
|
72
89
|
product_id: productId,
|
|
73
90
|
product_variant_id: productVariantId,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -43,7 +43,8 @@ var GroupModal = function GroupModal(_ref) {
|
|
|
43
43
|
if (type === 'edit' && data) {
|
|
44
44
|
form.setFieldsValue({
|
|
45
45
|
title: data.title,
|
|
46
|
-
code: data.code
|
|
46
|
+
code: data.code,
|
|
47
|
+
description: data === null || data === void 0 ? void 0 : data.description
|
|
47
48
|
});
|
|
48
49
|
} else {
|
|
49
50
|
form.resetFields();
|
|
@@ -155,6 +156,12 @@ var GroupModal = function GroupModal(_ref) {
|
|
|
155
156
|
}]
|
|
156
157
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
157
158
|
placeholder: locales.getText('registry.form.code.placeholder')
|
|
159
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
160
|
+
name: "description",
|
|
161
|
+
label: locales.getText('registry.form.description')
|
|
162
|
+
}, /*#__PURE__*/React.createElement(BaseTranslation, {
|
|
163
|
+
placeholder: locales.getText('registry.form.description.placeholder'),
|
|
164
|
+
renderMode: "edit"
|
|
158
165
|
}))));
|
|
159
166
|
};
|
|
160
167
|
export default GroupModal;
|