@pisell/private-materials 6.3.137 → 6.3.139
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/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/utils.d.ts +227 -0
- 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/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- 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/footer/utils.d.ts +47 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.d.ts +7 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +248 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +1489 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +120 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- 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/amount.d.ts +21 -0
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- package/es/components/eftposPay/component/fail/network.d.ts +9 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +9 -0
- package/es/components/eftposPay/component/signature/index.d.ts +9 -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 +23 -0
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/payo/config.d.ts +13 -0
- package/es/components/eftposPay/payo/hooks.d.ts +10 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +10 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/utils/payLog.d.ts +81 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- 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/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +39 -0
- package/es/components/kioskSkuDetail/locales.d.ts +48 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -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/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +631 -0
- package/es/components/pay/toC/payGroup.d.ts +59 -0
- package/es/components/pay/toC/serve.d.ts +87 -0
- package/es/components/pay/toC/utils.d.ts +65 -0
- 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/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/locales.d.ts +78 -0
- 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 +58 -24
- package/es/components/scanOrder/components/Cart/index.less +61 -8
- package/es/components/scanOrder/components/Check/index.js +232 -51
- package/es/components/scanOrder/components/Check/index.less +30 -0
- package/es/components/scanOrder/components/Content/index.js +358 -121
- 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/context.js +104 -21
- package/es/components/scanOrder/locales.d.ts +55 -0
- package/es/components/scanOrder/locales.js +55 -0
- package/es/components/scanOrder/types.d.ts +23 -0
- package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/es/components/scanOrder/utils/toShoppingCartProducts.js +15 -9
- package/es/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/es/components/scanOrder/utils/transformProductDetail.js +7 -6
- 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/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/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/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/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/es/components/ticketBooking/index.d.ts +7 -0
- package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +130 -18
- package/es/components/venueBooking/context.js +38 -12
- 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 +87 -0
- 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/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/pisellSalesProductCard/index.js +16 -1
- package/es/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/es/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- 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 +6 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -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/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/es/plus/skuOptionsSelection/types.d.ts +458 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/NumericStepper/index.d.ts +19 -0
- package/es/pro/NumericStepper/index.js +37 -6
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/utils.d.ts +227 -0
- 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/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- 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/footer/utils.d.ts +47 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +248 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +1489 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +120 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- 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/amount.d.ts +21 -0
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +9 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +9 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +9 -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 +23 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/payo/config.d.ts +13 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +10 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/utils/payLog.d.ts +81 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- 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/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +39 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -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/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +631 -0
- package/lib/components/pay/toC/payGroup.d.ts +59 -0
- package/lib/components/pay/toC/serve.d.ts +87 -0
- package/lib/components/pay/toC/utils.d.ts +65 -0
- 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/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/locales.d.ts +78 -0
- 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 +43 -9
- package/lib/components/scanOrder/components/Cart/index.less +61 -8
- package/lib/components/scanOrder/components/Check/index.js +97 -8
- package/lib/components/scanOrder/components/Check/index.less +30 -0
- package/lib/components/scanOrder/components/Content/index.js +215 -69
- 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/context.js +80 -12
- package/lib/components/scanOrder/locales.d.ts +55 -0
- package/lib/components/scanOrder/locales.js +55 -0
- package/lib/components/scanOrder/types.d.ts +23 -0
- package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/lib/components/scanOrder/utils/toShoppingCartProducts.js +8 -5
- package/lib/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/lib/components/scanOrder/utils/transformProductDetail.js +1 -9
- 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/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/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/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/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/lib/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +119 -19
- package/lib/components/venueBooking/context.js +16 -7
- 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 +87 -0
- 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/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/pisellSalesProductCard/index.js +10 -0
- package/lib/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/lib/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- 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 +6 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -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/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/NumericStepper/index.d.ts +19 -0
- package/lib/pro/NumericStepper/index.js +21 -4
- 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
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PayGroup } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* 生成 `/h5/core/stash` 的 token:前缀 + 订单号
|
|
4
|
+
*/
|
|
5
|
+
export declare const buildPayGroupStashToken: (orderId: string) => string;
|
|
6
|
+
/**
|
|
7
|
+
* @title: 同步交易组到storage
|
|
8
|
+
* @description:
|
|
9
|
+
* @param {PayGroup} payGroup
|
|
10
|
+
* @return {*}
|
|
11
|
+
* @Author: zhiwei.Wang
|
|
12
|
+
* @Date: 2024-08-16 10:40
|
|
13
|
+
*/
|
|
14
|
+
export declare const syncPayGroupToStorage: (payGroup: PayGroup) => void;
|
|
15
|
+
/**
|
|
16
|
+
* @title: 通过订单id获取交易组
|
|
17
|
+
* @description:
|
|
18
|
+
* @param {string} orderId
|
|
19
|
+
* @return {*}
|
|
20
|
+
* @Author: zhiwei.Wang
|
|
21
|
+
* @Date: 2024-08-16 10:40
|
|
22
|
+
*/
|
|
23
|
+
export declare const getPayGroupFromStorage: (orderId: string) => PayGroup | null;
|
|
24
|
+
/**
|
|
25
|
+
* @title: 删除交易组
|
|
26
|
+
* @description:
|
|
27
|
+
* @param {string} orderId
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: zhiwei.Wang
|
|
30
|
+
* @Date: 2024-08-16 10:40
|
|
31
|
+
*/
|
|
32
|
+
export declare const removePayGroupFromStorage: (orderId: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* @title: 获取交易组参数
|
|
35
|
+
* @description:
|
|
36
|
+
* @param {string} orderId
|
|
37
|
+
* @param {any} rest
|
|
38
|
+
* @return {*}
|
|
39
|
+
* @Author: zhiwei.Wang
|
|
40
|
+
* @Date: 2024-08-16 10:40
|
|
41
|
+
*/
|
|
42
|
+
export declare const getPayGroupParamsFromStorage: (orderId: string, rest?: any) => any;
|
|
43
|
+
/**
|
|
44
|
+
* @title: 通过订单id设置交易号
|
|
45
|
+
* @description: 合并 pay_number 后调用 `/h5/core/stash` 最多 3 次;无论 stash 成败均写入 localStorage
|
|
46
|
+
* @param {string} orderId
|
|
47
|
+
* @param {string} payNumber
|
|
48
|
+
* @param {string} [token] 引擎 utils.token.get(),写入 stash 的 data.token
|
|
49
|
+
* @Author: zhiwei.Wang
|
|
50
|
+
* @Date: 2024-08-16 10:41
|
|
51
|
+
*/
|
|
52
|
+
export declare const setPayNumber: (orderId: string, payNumber: string, token?: string) => Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* @title: 清除服务端暂存
|
|
55
|
+
* @description:
|
|
56
|
+
* @param {string} orderId
|
|
57
|
+
* @return {*}
|
|
58
|
+
*/
|
|
59
|
+
export declare const clearStashPayGroup: (orderId: string) => Promise<void>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare const getPaymentList: (values: any) => Promise<{
|
|
2
|
+
message: string;
|
|
3
|
+
status: string;
|
|
4
|
+
paymentList?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
message: string;
|
|
7
|
+
status: string;
|
|
8
|
+
paymentList: any;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* @title: 聚合接口, 根据订单 返回支付列表和钱包
|
|
12
|
+
* @description:
|
|
13
|
+
* @param {object} values
|
|
14
|
+
* @return {*}
|
|
15
|
+
* @Author: zhiwei.Wang
|
|
16
|
+
* @Date: 2024-08-15 11:52
|
|
17
|
+
*/
|
|
18
|
+
export declare const getPaymentsAndWalletPass: (values: {
|
|
19
|
+
order_id: string;
|
|
20
|
+
total_amount: number;
|
|
21
|
+
sale_channel: string;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* @title: 初始化交易组
|
|
25
|
+
* @description:
|
|
26
|
+
* @param {object} values
|
|
27
|
+
* @return {*}
|
|
28
|
+
* @Author: zhiwei.Wang
|
|
29
|
+
* @Date: 2024-08-16 10:42
|
|
30
|
+
*/
|
|
31
|
+
export declare const getPaymentInit: (values: {
|
|
32
|
+
order_id?: string;
|
|
33
|
+
amount?: number;
|
|
34
|
+
}) => Promise<any>;
|
|
35
|
+
/**
|
|
36
|
+
* @title: 获取钱包名称和弹窗状态
|
|
37
|
+
* @description:
|
|
38
|
+
* @param {object} values
|
|
39
|
+
* @return {*}
|
|
40
|
+
* @Author: shengjie.zuo
|
|
41
|
+
* @member: 马天宇
|
|
42
|
+
* @Date: 2025-02-21 10:42
|
|
43
|
+
*/
|
|
44
|
+
export declare const getWalletNameAndPopupStatus: (values: {
|
|
45
|
+
setting_type?: string;
|
|
46
|
+
}) => Promise<{
|
|
47
|
+
wallet: {
|
|
48
|
+
name?: {
|
|
49
|
+
en: string;
|
|
50
|
+
'zh-CN': string;
|
|
51
|
+
'zh-HK': string;
|
|
52
|
+
'ja': string;
|
|
53
|
+
'pt': string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
wallet_setting: {
|
|
57
|
+
popup_status?: 1 | 0;
|
|
58
|
+
};
|
|
59
|
+
}>;
|
|
60
|
+
/**
|
|
61
|
+
* @title: 获取支付结果
|
|
62
|
+
* @description: 获取支付结果
|
|
63
|
+
*/
|
|
64
|
+
export declare const getPaymentResult: (values: any) => Promise<any>;
|
|
65
|
+
/**
|
|
66
|
+
* @title: 检测订单是否有正在处理中的交易
|
|
67
|
+
* @param {object} values - { order_id: string }
|
|
68
|
+
* @return {Promise<{ has_pending: boolean }>}
|
|
69
|
+
*/
|
|
70
|
+
export declare const checkPendingPayment: (values: {
|
|
71
|
+
order_id: string;
|
|
72
|
+
}) => Promise<{
|
|
73
|
+
has_pending: boolean;
|
|
74
|
+
}>;
|
|
75
|
+
/** `/h5/core/stash` 请求体 */
|
|
76
|
+
export interface CoreStashParams {
|
|
77
|
+
/** 缓存 key,由前端生成 */
|
|
78
|
+
token: string;
|
|
79
|
+
/** 暂存数据,如完整 PayGroup */
|
|
80
|
+
data: unknown;
|
|
81
|
+
/** 生命周期(秒),默认 86400(1 天) */
|
|
82
|
+
ttl?: number;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 调用服务端暂存接口,写入 payGroup 等数据。
|
|
86
|
+
*/
|
|
87
|
+
export declare const postCoreStash: (params: CoreStashParams) => Promise<void>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { PayGroup } from "./model";
|
|
2
|
+
import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
|
|
3
|
+
/**
|
|
4
|
+
* 计算walletPass列表数据的总金额
|
|
5
|
+
* @param list
|
|
6
|
+
*/
|
|
7
|
+
export declare const calcWalletPassListAmount: (list: any[]) => any;
|
|
8
|
+
/**
|
|
9
|
+
* 将walletPass列表数据转换为prepare_payments需要的数据格式
|
|
10
|
+
* @param list
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
|
|
13
|
+
voucher_id: any;
|
|
14
|
+
amount: number;
|
|
15
|
+
tag: any;
|
|
16
|
+
}[];
|
|
17
|
+
/**
|
|
18
|
+
* walletPass支付params
|
|
19
|
+
* @param payGroup
|
|
20
|
+
*/
|
|
21
|
+
export declare const formatWalletPassParams: (payGroup: PayGroup) => {
|
|
22
|
+
order_id: string;
|
|
23
|
+
payment_group_id: number;
|
|
24
|
+
payments: {
|
|
25
|
+
amount: string;
|
|
26
|
+
wallet_pass_use_value: any;
|
|
27
|
+
voucher_id: any;
|
|
28
|
+
tag: any;
|
|
29
|
+
wallet_pass_usage_unit: any;
|
|
30
|
+
metadata: {
|
|
31
|
+
unique_payment_number: any;
|
|
32
|
+
};
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @title: 获取是否walletPass和三方支付的组合支付
|
|
37
|
+
* @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
|
|
38
|
+
* @return: *
|
|
39
|
+
* @Author: shengjie.zuo
|
|
40
|
+
* @Date: 2024-08-30 10:06:17
|
|
41
|
+
*/
|
|
42
|
+
export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
|
|
43
|
+
export declare const isFranchiseeShop: (path?: any, history?: any) => any;
|
|
44
|
+
/**
|
|
45
|
+
* @title: 获取当前连锁加盟店铺shopid
|
|
46
|
+
* @description:
|
|
47
|
+
* @param {any} param1
|
|
48
|
+
* @return {*}
|
|
49
|
+
* @Author: chensheng.gu
|
|
50
|
+
* @Date: 2024-08-07 10:04
|
|
51
|
+
*/
|
|
52
|
+
export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
|
|
53
|
+
export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
|
|
54
|
+
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
|
|
55
|
+
export declare const clientPayment: (params: {
|
|
56
|
+
order_id: number;
|
|
57
|
+
type: "aliPay" | "wxPay" | 'google_pay';
|
|
58
|
+
values: any;
|
|
59
|
+
interaction?: any;
|
|
60
|
+
}) => void;
|
|
61
|
+
/**
|
|
62
|
+
* 获取唯一幂等token
|
|
63
|
+
* @returns
|
|
64
|
+
*/
|
|
65
|
+
export declare const getUniqueIdempotencyToken: () => string;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.text.satisfy_any_condition': string;
|
|
4
|
+
'pisell2.text.add': string;
|
|
5
|
+
'pisell2.text.and': string;
|
|
6
|
+
'pisell2.text.or': string;
|
|
7
|
+
'pisell2.text.all': string;
|
|
8
|
+
'pisell2.text.rule-setting.Contain': string;
|
|
9
|
+
'pisell2.text.rule-setting.Exclude': string;
|
|
10
|
+
'pisell2.text.rule-setting.order_type': string;
|
|
11
|
+
'pisell2.text.rule-setting.sales_channel': string;
|
|
12
|
+
'pisell2.text.rule-setting.staff': string;
|
|
13
|
+
'pisell2.text.rule-setting.payment_method': string;
|
|
14
|
+
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
15
|
+
'pisell2.text.rule-setting.current_device': string;
|
|
16
|
+
};
|
|
17
|
+
'zh-CN': {
|
|
18
|
+
'pisell2.text.satisfy_any_condition': string;
|
|
19
|
+
'pisell2.text.and': string;
|
|
20
|
+
'pisell2.text.or': string;
|
|
21
|
+
'pisell2.text.all': string;
|
|
22
|
+
'pisell2.text.add': string;
|
|
23
|
+
'pisell2.text.rule-setting.Contain': string;
|
|
24
|
+
'pisell2.text.rule-setting.Exclude': string;
|
|
25
|
+
'pisell2.text.rule-setting.order_type': string;
|
|
26
|
+
'pisell2.text.rule-setting.sales_channel': string;
|
|
27
|
+
'pisell2.text.rule-setting.staff': string;
|
|
28
|
+
'pisell2.text.rule-setting.payment_method': string;
|
|
29
|
+
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
30
|
+
'pisell2.text.rule-setting.current_device': string;
|
|
31
|
+
};
|
|
32
|
+
'zh-HK': {
|
|
33
|
+
'pisell2.text.satisfy_any_condition': string;
|
|
34
|
+
'pisell2.text.and': string;
|
|
35
|
+
'pisell2.text.or': string;
|
|
36
|
+
'pisell2.text.all': string;
|
|
37
|
+
'pisell2.text.add': string;
|
|
38
|
+
'pisell2.text.rule-setting.Contain': string;
|
|
39
|
+
'pisell2.text.rule-setting.Exclude': string;
|
|
40
|
+
'pisell2.text.rule-setting.order_type': string;
|
|
41
|
+
'pisell2.text.rule-setting.sales_channel': string;
|
|
42
|
+
'pisell2.text.rule-setting.staff': string;
|
|
43
|
+
'pisell2.text.rule-setting.payment_method': string;
|
|
44
|
+
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
45
|
+
'pisell2.text.rule-setting.current_device': string;
|
|
46
|
+
};
|
|
47
|
+
ja: {
|
|
48
|
+
'pisell2.text.satisfy_any_condition': string;
|
|
49
|
+
'pisell2.text.add': string;
|
|
50
|
+
'pisell2.text.and': string;
|
|
51
|
+
'pisell2.text.or': string;
|
|
52
|
+
'pisell2.text.all': string;
|
|
53
|
+
'pisell2.text.rule-setting.Contain': string;
|
|
54
|
+
'pisell2.text.rule-setting.Exclude': string;
|
|
55
|
+
'pisell2.text.rule-setting.order_type': string;
|
|
56
|
+
'pisell2.text.rule-setting.sales_channel': string;
|
|
57
|
+
'pisell2.text.rule-setting.staff': string;
|
|
58
|
+
'pisell2.text.rule-setting.payment_method': string;
|
|
59
|
+
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
60
|
+
'pisell2.text.rule-setting.current_device': string;
|
|
61
|
+
};
|
|
62
|
+
pt: {
|
|
63
|
+
'pisell2.text.satisfy_any_condition': string;
|
|
64
|
+
'pisell2.text.add': string;
|
|
65
|
+
'pisell2.text.and': string;
|
|
66
|
+
'pisell2.text.or': string;
|
|
67
|
+
'pisell2.text.all': string;
|
|
68
|
+
'pisell2.text.rule-setting.Contain': string;
|
|
69
|
+
'pisell2.text.rule-setting.Exclude': string;
|
|
70
|
+
'pisell2.text.rule-setting.order_type': string;
|
|
71
|
+
'pisell2.text.rule-setting.sales_channel': string;
|
|
72
|
+
'pisell2.text.rule-setting.staff': string;
|
|
73
|
+
'pisell2.text.rule-setting.payment_method': string;
|
|
74
|
+
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
75
|
+
'pisell2.text.rule-setting.current_device': string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export default _default;
|
|
@@ -9,6 +9,8 @@ interface CartProps {
|
|
|
9
9
|
embedded?: boolean;
|
|
10
10
|
confirmLoading?: boolean;
|
|
11
11
|
extraContent?: React.ReactNode;
|
|
12
|
+
/** 视觉禁用:按钮仍会触发 onNext,由父级自行拦截(用于弹 toast 等反馈) */
|
|
13
|
+
disabled?: boolean;
|
|
12
14
|
}
|
|
13
15
|
export default function Cart(props: CartProps): JSX.Element | null;
|
|
14
16
|
export {};
|
|
@@ -16,7 +16,6 @@ import { useScanOrderContext } from "../../context";
|
|
|
16
16
|
import SubTotal from "../../../subTotal";
|
|
17
17
|
import "./index.less";
|
|
18
18
|
export default function Cart(props) {
|
|
19
|
-
var _ref2, _ref3, _ref4, _summary$total_amount;
|
|
20
19
|
var open = props.open,
|
|
21
20
|
onCancel = props.onCancel,
|
|
22
21
|
onNext = props.onNext,
|
|
@@ -26,10 +25,13 @@ export default function Cart(props) {
|
|
|
26
25
|
embedded = _props$embedded === void 0 ? false : _props$embedded,
|
|
27
26
|
_props$confirmLoading = props.confirmLoading,
|
|
28
27
|
confirmLoading = _props$confirmLoading === void 0 ? false : _props$confirmLoading,
|
|
29
|
-
extraContent = props.extraContent
|
|
28
|
+
extraContent = props.extraContent,
|
|
29
|
+
_props$disabled = props.disabled,
|
|
30
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled;
|
|
30
31
|
var _useScanOrderContext = useScanOrderContext(),
|
|
31
32
|
runModuleAction = _useScanOrderContext.runModuleAction,
|
|
32
|
-
refreshViewModel = _useScanOrderContext.refreshViewModel
|
|
33
|
+
refreshViewModel = _useScanOrderContext.refreshViewModel,
|
|
34
|
+
scanOrderModule = _useScanOrderContext.scanOrderModule;
|
|
33
35
|
var isVisible = embedded || open;
|
|
34
36
|
if (!isVisible) return null;
|
|
35
37
|
var _useState = useState(null),
|
|
@@ -67,30 +69,49 @@ export default function Cart(props) {
|
|
|
67
69
|
var isShowNote = useMemo(function () {
|
|
68
70
|
return dineInConfig === null || dineInConfig === void 0 ? void 0 : dineInConfig['sale.allow_item_notes'];
|
|
69
71
|
}, [dineInConfig]);
|
|
70
|
-
|
|
72
|
+
|
|
73
|
+
/** 与 scanOrder Footer 同一套汇总字段与展示格式 */
|
|
74
|
+
var totalDisplayAmount = useMemo(function () {
|
|
75
|
+
var _ref2, _ref3, _ref4, _ref5, _ref6, _summary$total_amount;
|
|
76
|
+
var rawAmount = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_ref6 = (_summary$total_amount = summary === null || summary === void 0 ? void 0 : summary.total_amount) !== null && _summary$total_amount !== void 0 ? _summary$total_amount : summary === null || summary === void 0 ? void 0 : summary.expect_amount) !== null && _ref6 !== void 0 ? _ref6 : summary === null || summary === void 0 ? void 0 : summary.amount) !== null && _ref5 !== void 0 ? _ref5 : summary === null || summary === void 0 ? void 0 : summary.total) !== null && _ref4 !== void 0 ? _ref4 : summary === null || summary === void 0 ? void 0 : summary.totalAmount) !== null && _ref3 !== void 0 ? _ref3 : summary === null || summary === void 0 ? void 0 : summary.payable_amount) !== null && _ref2 !== void 0 ? _ref2 : 0;
|
|
77
|
+
var parsed = Number(rawAmount);
|
|
78
|
+
if (Number.isNaN(parsed)) return '0.00';
|
|
79
|
+
return parsed.toFixed(2);
|
|
80
|
+
}, [summary]);
|
|
71
81
|
var confirmOrderText = String(locales.getText('pisell2.scan.order.action.confirm.order') || locales.getText('pisell2.event.confirm') || 'Confirm');
|
|
72
82
|
var subTotalList = useMemo(function () {
|
|
73
|
-
var _summary$product_amou, _summary$tax_fee,
|
|
83
|
+
var _summary$product_amou, _summary$tax_fee, _ref7, _summary$total_amount2, _scanOrderModule$getT, _tempSummary$tax_rate, _ref8, _tempSummary$is_price;
|
|
74
84
|
var subTotal = Number((_summary$product_amou = summary === null || summary === void 0 ? void 0 : summary.product_amount) !== null && _summary$product_amou !== void 0 ? _summary$product_amou : 0);
|
|
75
85
|
var totalTaxFee = Number((_summary$tax_fee = summary === null || summary === void 0 ? void 0 : summary.tax_fee) !== null && _summary$tax_fee !== void 0 ? _summary$tax_fee : 0);
|
|
76
|
-
var total = Number((
|
|
86
|
+
var total = Number((_ref7 = (_summary$total_amount2 = summary === null || summary === void 0 ? void 0 : summary.total_amount) !== null && _summary$total_amount2 !== void 0 ? _summary$total_amount2 : summary === null || summary === void 0 ? void 0 : summary.expect_amount) !== null && _ref7 !== void 0 ? _ref7 : 0);
|
|
87
|
+
var tempOrder = scanOrderModule === null || scanOrderModule === void 0 || (_scanOrderModule$getT = scanOrderModule.getTempOrder) === null || _scanOrderModule$getT === void 0 ? void 0 : _scanOrderModule$getT.call(scanOrderModule);
|
|
88
|
+
var tempSummary = (tempOrder === null || tempOrder === void 0 ? void 0 : tempOrder.summary) || {};
|
|
89
|
+
var taxTitle = String((tempSummary === null || tempSummary === void 0 ? void 0 : tempSummary.tax_title) || (summary === null || summary === void 0 ? void 0 : summary.tax_title) || 'GST/Tax');
|
|
90
|
+
var rawTaxRate = Number((_tempSummary$tax_rate = tempSummary === null || tempSummary === void 0 ? void 0 : tempSummary.tax_rate) !== null && _tempSummary$tax_rate !== void 0 ? _tempSummary$tax_rate : summary === null || summary === void 0 ? void 0 : summary.tax_rate);
|
|
91
|
+
var normalizedTaxRate = Number.isNaN(rawTaxRate) ? 0 : rawTaxRate > 1 ? rawTaxRate / 100 : rawTaxRate;
|
|
92
|
+
var isPriceIncludeTax = Boolean((_ref8 = (_tempSummary$is_price = tempSummary === null || tempSummary === void 0 ? void 0 : tempSummary.is_price_include_tax) !== null && _tempSummary$is_price !== void 0 ? _tempSummary$is_price : tempSummary === null || tempSummary === void 0 ? void 0 : tempSummary.isPriceIncludeTax) !== null && _ref8 !== void 0 ? _ref8 : summary === null || summary === void 0 ? void 0 : summary.is_price_include_tax);
|
|
77
93
|
return [{
|
|
78
94
|
key: 'sub_total',
|
|
79
95
|
value: Number.isNaN(subTotal) ? 0 : subTotal
|
|
80
96
|
}, {
|
|
81
97
|
key: 'tax',
|
|
82
98
|
value: Number.isNaN(totalTaxFee) ? 0 : totalTaxFee,
|
|
83
|
-
hidden: Number.isNaN(totalTaxFee) ? true : totalTaxFee <= 0
|
|
99
|
+
hidden: Number.isNaN(totalTaxFee) ? true : totalTaxFee <= 0,
|
|
100
|
+
tax: {
|
|
101
|
+
title: taxTitle,
|
|
102
|
+
rate: normalizedTaxRate,
|
|
103
|
+
is_price_include_tax: isPriceIncludeTax
|
|
104
|
+
}
|
|
84
105
|
}, {
|
|
85
106
|
key: 'custom_total',
|
|
86
107
|
value: Number.isNaN(total) ? 0 : total,
|
|
87
108
|
label: locales.getText('pisell2.event.total'),
|
|
88
109
|
bold: true
|
|
89
110
|
}];
|
|
90
|
-
}, [summary]);
|
|
111
|
+
}, [summary, scanOrderModule]);
|
|
91
112
|
var handleCartChange = /*#__PURE__*/function () {
|
|
92
|
-
var
|
|
93
|
-
var
|
|
113
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item, type) {
|
|
114
|
+
var _ref10, _item$product_id, _item$product_variant;
|
|
94
115
|
var productId, productVariantId, identityKey;
|
|
95
116
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
96
117
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -101,7 +122,7 @@ export default function Cart(props) {
|
|
|
101
122
|
}
|
|
102
123
|
return _context2.abrupt("return");
|
|
103
124
|
case 2:
|
|
104
|
-
productId = (
|
|
125
|
+
productId = (_ref10 = (_item$product_id = item === null || item === void 0 ? void 0 : item.product_id) !== null && _item$product_id !== void 0 ? _item$product_id : item === null || item === void 0 ? void 0 : item.id) !== null && _ref10 !== void 0 ? _ref10 : null;
|
|
105
126
|
productVariantId = Number((_item$product_variant = item === null || item === void 0 ? void 0 : item.product_variant_id) !== null && _item$product_variant !== void 0 ? _item$product_variant : 0);
|
|
106
127
|
identityKey = (item === null || item === void 0 ? void 0 : item.identity_key) || (item === null || item === void 0 ? void 0 : item.rowKey) || undefined;
|
|
107
128
|
if (!(productId === null && Number.isNaN(productVariantId))) {
|
|
@@ -137,16 +158,14 @@ export default function Cart(props) {
|
|
|
137
158
|
}, _callee2, null, [[7, 14]]);
|
|
138
159
|
}));
|
|
139
160
|
return function handleCartChange(_x, _x2) {
|
|
140
|
-
return
|
|
161
|
+
return _ref9.apply(this, arguments);
|
|
141
162
|
};
|
|
142
163
|
}();
|
|
143
164
|
useEffect(function () {
|
|
144
165
|
if (!isVisible) return;
|
|
145
166
|
refreshViewModel();
|
|
146
167
|
}, [isVisible]);
|
|
147
|
-
var
|
|
148
|
-
className: "pisell-scan-order-cart-body"
|
|
149
|
-
}, /*#__PURE__*/React.createElement(ShoppingCart, {
|
|
168
|
+
var cartLineItems = /*#__PURE__*/React.createElement(ShoppingCart, {
|
|
150
169
|
productParams: {
|
|
151
170
|
products: items || [],
|
|
152
171
|
hideAddBtn: true,
|
|
@@ -163,7 +182,8 @@ export default function Cart(props) {
|
|
|
163
182
|
isOpenGroup: false,
|
|
164
183
|
isHideClearCart: true,
|
|
165
184
|
onChange: handleCartChange
|
|
166
|
-
})
|
|
185
|
+
});
|
|
186
|
+
var cartSubtotalSection = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubTotal, {
|
|
167
187
|
list: subTotalList,
|
|
168
188
|
style: {
|
|
169
189
|
padding: 0
|
|
@@ -171,6 +191,9 @@ export default function Cart(props) {
|
|
|
171
191
|
}), extraContent ? /*#__PURE__*/React.createElement("div", {
|
|
172
192
|
className: "pisell-scan-order-cart-extra-content"
|
|
173
193
|
}, extraContent) : null);
|
|
194
|
+
var cartBodyContent = /*#__PURE__*/React.createElement("div", {
|
|
195
|
+
className: "pisell-scan-order-cart-body"
|
|
196
|
+
}, cartLineItems, cartSubtotalSection);
|
|
174
197
|
if (embedded) {
|
|
175
198
|
return /*#__PURE__*/React.createElement(React.Fragment, null, cartBodyContent, /*#__PURE__*/React.createElement("div", {
|
|
176
199
|
className: "pisell-scan-order-cart-embedded-footer"
|
|
@@ -178,7 +201,8 @@ export default function Cart(props) {
|
|
|
178
201
|
type: "primary",
|
|
179
202
|
block: true,
|
|
180
203
|
onClick: onNext,
|
|
181
|
-
loading: confirmLoading
|
|
204
|
+
loading: confirmLoading,
|
|
205
|
+
className: disabled ? 'pisell-scan-order-cart-embedded-confirm-disabled' : undefined
|
|
182
206
|
}, confirmOrderText)));
|
|
183
207
|
}
|
|
184
208
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -188,16 +212,26 @@ export default function Cart(props) {
|
|
|
188
212
|
className: "pisell-scan-order-cart-drawer"
|
|
189
213
|
}, /*#__PURE__*/React.createElement("div", {
|
|
190
214
|
className: "pisell-scan-order-cart-header"
|
|
191
|
-
}, /*#__PURE__*/React.createElement("
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
},
|
|
215
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
216
|
+
className: "pisell-scan-order-cart-sheet-handle-wrap",
|
|
217
|
+
"aria-hidden": true
|
|
218
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
219
|
+
className: "pisell-scan-order-cart-sheet-handle"
|
|
220
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
221
|
+
className: "pisell-scan-order-cart-list-scroll"
|
|
222
|
+
}, cartLineItems), /*#__PURE__*/React.createElement("div", {
|
|
223
|
+
className: "pisell-scan-order-cart-bottom-panel"
|
|
224
|
+
}, cartSubtotalSection, /*#__PURE__*/React.createElement("div", {
|
|
195
225
|
className: "pisell-scan-order-cart-footer"
|
|
196
226
|
}, /*#__PURE__*/React.createElement("div", {
|
|
197
|
-
className: "pisell-scan-order-cart-total"
|
|
198
|
-
},
|
|
227
|
+
className: "pisell-scan-order-cart-footer-total-col"
|
|
228
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
229
|
+
className: "pisell-scan-order-cart-footer-total-label"
|
|
230
|
+
}, locales.getText('pisell2.event.total')), /*#__PURE__*/React.createElement("div", {
|
|
231
|
+
className: "pisell-scan-order-cart-footer-total-amount"
|
|
232
|
+
}, "$", totalDisplayAmount)), /*#__PURE__*/React.createElement(Button, {
|
|
199
233
|
type: "primary",
|
|
200
234
|
onClick: onNext,
|
|
201
235
|
loading: confirmLoading
|
|
202
|
-
}, locales.getText('pisell2.event.continue')))));
|
|
236
|
+
}, locales.getText('pisell2.event.continue'))))));
|
|
203
237
|
}
|
|
@@ -11,19 +11,51 @@
|
|
|
11
11
|
right: 0;
|
|
12
12
|
bottom: 0;
|
|
13
13
|
z-index: 91;
|
|
14
|
-
max-height:
|
|
15
|
-
|
|
14
|
+
max-height: 95vh;
|
|
15
|
+
max-height: 95dvh;
|
|
16
|
+
min-height: 0;
|
|
17
|
+
border-radius: 12px 12px 0 0;
|
|
16
18
|
background: #fff;
|
|
17
19
|
display: flex;
|
|
18
20
|
flex-direction: column;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
box-shadow: 0 -8px 40px rgba(16, 24, 40, 0.12);
|
|
19
23
|
}
|
|
20
24
|
|
|
25
|
+
/* 顶栏仅保留居中拖动手柄横线 */
|
|
21
26
|
.pisell-scan-order-cart-header {
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pisell-scan-order-cart-sheet-handle-wrap {
|
|
32
|
+
width: 100%;
|
|
22
33
|
display: flex;
|
|
23
|
-
justify-content:
|
|
34
|
+
justify-content: center;
|
|
24
35
|
align-items: center;
|
|
25
|
-
padding:
|
|
26
|
-
|
|
36
|
+
padding: 10px 0 8px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pisell-scan-order-cart-sheet-handle {
|
|
40
|
+
width: 36px;
|
|
41
|
+
height: 5px;
|
|
42
|
+
border-radius: 100px;
|
|
43
|
+
background: #d0d5dd;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.pisell-scan-order-cart-list-scroll {
|
|
47
|
+
flex: 1;
|
|
48
|
+
min-height: 0;
|
|
49
|
+
overflow-y: auto;
|
|
50
|
+
-webkit-overflow-scrolling: touch;
|
|
51
|
+
padding: 8px 16px 12px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pisell-scan-order-cart-bottom-panel {
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
border-top: 1px solid #eaecf0;
|
|
57
|
+
background: #fff;
|
|
58
|
+
padding: 12px 16px 0;
|
|
27
59
|
}
|
|
28
60
|
|
|
29
61
|
.pisell-scan-order-cart-body {
|
|
@@ -49,14 +81,30 @@
|
|
|
49
81
|
justify-content: space-between;
|
|
50
82
|
align-items: center;
|
|
51
83
|
gap: 12px;
|
|
52
|
-
|
|
84
|
+
margin-top: 12px;
|
|
85
|
+
padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px));
|
|
53
86
|
border-top: 1px solid #eaecf0;
|
|
54
87
|
}
|
|
55
88
|
|
|
56
|
-
|
|
89
|
+
/* 与 pisell-scan-order-footer 左侧合计样式一致 */
|
|
90
|
+
.pisell-scan-order-cart-footer-total-col {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.pisell-scan-order-cart-footer-total-label {
|
|
57
98
|
color: #101828;
|
|
58
99
|
font-size: 14px;
|
|
59
|
-
|
|
100
|
+
line-height: 20px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.pisell-scan-order-cart-footer-total-amount {
|
|
104
|
+
color: #e77d75;
|
|
105
|
+
font-size: 24px;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
line-height: 1;
|
|
60
108
|
}
|
|
61
109
|
|
|
62
110
|
.pisell-scan-order-cart-embedded-footer {
|
|
@@ -65,6 +113,11 @@
|
|
|
65
113
|
background: #fff;
|
|
66
114
|
}
|
|
67
115
|
|
|
116
|
+
.pisell-scan-order-cart-embedded-confirm-disabled {
|
|
117
|
+
opacity: 0.45;
|
|
118
|
+
cursor: not-allowed;
|
|
119
|
+
}
|
|
120
|
+
|
|
68
121
|
.pisell-scan-order-content-mobile-wrap {
|
|
69
122
|
.pisell-scan-order-cart-body {
|
|
70
123
|
padding-bottom: 96px;
|