@pisell/private-materials 6.5.3 → 6.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +150 -150
- 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 +7 -7
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/actionButtons/index.js +37 -42
- package/es/components/booking/components/actionButtons/index.less +0 -28
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/footer/amount.d.ts +3 -3
- package/es/components/booking/components/footer/amount.js +52 -31
- package/es/components/booking/components/footer/index.js +168 -68
- package/es/components/booking/components/footer/utils.js +62 -33
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- 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/single/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +0 -1
- 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/model.js +5 -0
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +2 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/index.js +42 -2
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.js +2 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +12 -4
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- 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.js +10 -5
- package/es/components/checkout/PaymentModal.d.ts +2 -0
- package/es/components/checkout/PaymentModal.js +402 -241
- package/es/components/checkout/PaymentPlugin.d.ts +0 -1
- package/es/components/checkout/components/AdditionalModule/index.less +1 -1
- package/es/components/checkout/components/AmountSummary/index.js +161 -54
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/es/components/checkout/components/CashPaymentModule/index.js +114 -131
- package/es/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +210 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/es/components/checkout/components/PaymentOptionsModule/index.js +12 -114
- package/es/components/checkout/components/PaymentOptionsModule/index.less +29 -0
- package/es/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
- package/es/components/checkout/components/WalletPassModule/index.js +4 -3
- package/es/components/checkout/components/WalletPassModule/utils.js +6 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +2 -0
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +33 -0
- package/es/components/checkout/locales.js +39 -3
- package/es/components/checkout/types.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/Product.js +143 -71
- package/es/components/shoppingCart/components/Cart/index.js +1 -1
- package/es/components/shoppingCart/components/Cart/index.less +31 -0
- package/es/components/shoppingCart/locales.d.ts +3 -0
- package/es/components/shoppingCart/locales.js +12 -3
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/ticketBooking/utils/index.js +2 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/es/plus/saasCreateOrganization/index.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/es/plus/saasRegister/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +1 -1
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +148 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.js +1 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.js +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +310 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +349 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +49 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.js +41 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +442 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +44 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +444 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.js +47 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +47 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/es/pro/priceKeyboard/hooks/keyActions.js +252 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
- package/es/pro/priceKeyboard/hooks/rightItems.js +50 -0
- package/es/pro/priceKeyboard/index.d.ts +3 -0
- package/es/pro/priceKeyboard/index.js +3 -0
- package/es/pro/priceKeyboard/index.less +215 -0
- package/es/pro/priceKeyboard/utils.d.ts +31 -0
- package/es/pro/priceKeyboard/utils.js +51 -0
- package/es/pro/skuDetailModal/index.js +19 -16
- package/es/utils/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/actionButtons/index.js +31 -28
- package/lib/components/booking/components/actionButtons/index.less +0 -28
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.d.ts +3 -3
- package/lib/components/booking/components/footer/amount.js +50 -34
- package/lib/components/booking/components/footer/index.js +107 -40
- package/lib/components/booking/components/footer/utils.js +35 -7
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- 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/single/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +0 -1
- 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/model.js +3 -0
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +2 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/index.js +18 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.js +2 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +12 -4
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- 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.js +10 -5
- package/lib/components/checkout/PaymentModal.d.ts +2 -0
- package/lib/components/checkout/PaymentModal.js +160 -73
- package/lib/components/checkout/PaymentPlugin.d.ts +0 -1
- package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
- package/lib/components/checkout/components/AmountSummary/index.js +114 -40
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/lib/components/checkout/components/CashPaymentModule/index.js +103 -134
- package/lib/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +172 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -123
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +29 -0
- package/lib/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
- package/lib/components/checkout/components/WalletPassModule/index.js +4 -3
- package/lib/components/checkout/components/WalletPassModule/utils.js +4 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +2 -0
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +33 -0
- package/lib/components/checkout/locales.js +39 -3
- package/lib/components/checkout/types.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +111 -51
- package/lib/components/shoppingCart/components/Cart/index.js +1 -1
- package/lib/components/shoppingCart/components/Cart/index.less +31 -0
- package/lib/components/shoppingCart/locales.d.ts +3 -0
- package/lib/components/shoppingCart/locales.js +6 -3
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/ticketBooking/utils/index.js +2 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/lib/plus/saasRegister/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +2 -2
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +144 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.js +35 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.js +17 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +332 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +399 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +76 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.js +65 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +485 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +68 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +488 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.js +71 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +79 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.js +176 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.js +81 -0
- package/lib/pro/priceKeyboard/index.d.ts +3 -0
- package/lib/pro/priceKeyboard/index.js +45 -0
- package/lib/pro/priceKeyboard/index.less +215 -0
- package/lib/pro/priceKeyboard/utils.d.ts +31 -0
- package/lib/pro/priceKeyboard/utils.js +75 -0
- package/lib/pro/skuDetailModal/index.js +18 -22
- package/lib/utils/index.d.ts +1 -1
- package/package.json +12 -12
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
|
|
17
17
|
export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
|
18
18
|
export declare const saveConfirm: () => Promise<{
|
19
19
|
destroy: () => void;
|
20
|
-
update: (configUpdate: import("antd
|
20
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
21
21
|
}>;
|
22
22
|
export { modal };
|
@@ -1,6 +1,12 @@
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
|
-
|
3
|
-
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
4
|
+
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); }
|
5
|
+
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; }
|
6
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
8
|
+
import React, { useMemo, useState } from 'react';
|
9
|
+
import { ProductCard, Iconfont } from '@pisell/materials';
|
4
10
|
// import ProductCard from '../../../../../../materials/src/components/productCard';
|
5
11
|
import useClearCart from "../../hooks/useClearCart";
|
6
12
|
import { useContext } from "../../hooks/useContext";
|
@@ -8,6 +14,9 @@ import useAddService from "../../hooks/useAddService";
|
|
8
14
|
import { useMemoizedFn } from 'ahooks';
|
9
15
|
import { isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
|
10
16
|
import PisellNumberSelector from "../../../../pro/pisellNumberSelector";
|
17
|
+
import { formatAmount } from "@pisell/utils";
|
18
|
+
import { locales } from '@pisell/utils';
|
19
|
+
import Decimal from 'decimal.js';
|
11
20
|
var Product = function Product(props) {
|
12
21
|
var id = props.id,
|
13
22
|
lists = props.lists,
|
@@ -32,6 +41,12 @@ var Product = function Product(props) {
|
|
32
41
|
productCardStyleConfig = _state$productCardSty === void 0 ? {} : _state$productCardSty;
|
33
42
|
var clearCart = useClearCart(id);
|
34
43
|
|
44
|
+
// 控制编辑区域展开收起状态
|
45
|
+
var _useState = useState(true),
|
46
|
+
_useState2 = _slicedToArray(_useState, 2),
|
47
|
+
isEditExpanded = _useState2[0],
|
48
|
+
setIsEditExpanded = _useState2[1];
|
49
|
+
|
35
50
|
/**
|
36
51
|
* @title: 更新商品数据
|
37
52
|
* @description:
|
@@ -44,6 +59,12 @@ var Product = function Product(props) {
|
|
44
59
|
if (disabledEdit && !(other !== null && other !== void 0 && other.disabled)) return;
|
45
60
|
onChange(item, type, other);
|
46
61
|
});
|
62
|
+
|
63
|
+
// 切换编辑区域展开收起状态
|
64
|
+
var toggleEditExpanded = useMemoizedFn(function (e) {
|
65
|
+
e === null || e === void 0 || e.preventDefault();
|
66
|
+
setIsEditExpanded(!isEditExpanded);
|
67
|
+
});
|
47
68
|
var productParams = useMemo(function () {
|
48
69
|
return {
|
49
70
|
isShowNote: isShowNote,
|
@@ -66,78 +87,129 @@ var Product = function Product(props) {
|
|
66
87
|
disabledEdit: true
|
67
88
|
};
|
68
89
|
});
|
90
|
+
|
91
|
+
// 预先根据是否处于编辑态切分列表,避免多次 filter 计算
|
92
|
+
var editItems = useMemo(function () {
|
93
|
+
return (lists || []).filter(function (item) {
|
94
|
+
var _item$_origin;
|
95
|
+
return item === null || item === void 0 || (_item$_origin = item._origin) === null || _item$_origin === void 0 ? void 0 : _item$_origin.edit;
|
96
|
+
});
|
97
|
+
}, [lists]);
|
98
|
+
var normalItems = useMemo(function () {
|
99
|
+
return (lists || []).filter(function (item) {
|
100
|
+
var _item$_origin2;
|
101
|
+
return !(item !== null && item !== void 0 && (_item$_origin2 = item._origin) !== null && _item$_origin2 !== void 0 && _item$_origin2.edit);
|
102
|
+
});
|
103
|
+
}, [lists]);
|
104
|
+
var editTotal = useMemo(function () {
|
105
|
+
var total = editItems.reduce(function (total, item) {
|
106
|
+
var itemTotal = new Decimal((item === null || item === void 0 ? void 0 : item.total) || 0).mul(item.num);
|
107
|
+
return total.add(itemTotal);
|
108
|
+
}, new Decimal(0));
|
109
|
+
return formatAmount(total.toNumber(), 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$');
|
110
|
+
}, [editItems]);
|
111
|
+
|
112
|
+
// 统一渲染单个商品卡片,去重映射逻辑
|
113
|
+
var renderProductItem = useMemoizedFn(function (item) {
|
114
|
+
var Comp = ProductCard;
|
115
|
+
var isRetail;
|
116
|
+
if (state.scenario === 'booking2') {
|
117
|
+
isRetail = isNormalProductByDurationSchedule(item === null || item === void 0 ? void 0 : item._origin);
|
118
|
+
Comp = ProductCard.V2;
|
119
|
+
}
|
120
|
+
return /*#__PURE__*/React.createElement(Comp, _extends({
|
121
|
+
type: isRetail ? 'a2' : 'a5',
|
122
|
+
rightActions: [{
|
123
|
+
key: 'update_number',
|
124
|
+
text: /*#__PURE__*/React.createElement(PisellNumberSelector, {
|
125
|
+
enablePriceAdjust: true,
|
126
|
+
min: 1,
|
127
|
+
className: "pisell-sku-card__pisell-number-setter",
|
128
|
+
value: item === null || item === void 0 ? void 0 : item.num,
|
129
|
+
onChange: function onChange(value) {
|
130
|
+
if (value < 1) {
|
131
|
+
handleChange(item, 'num', {
|
132
|
+
num: 1
|
133
|
+
});
|
134
|
+
} else {
|
135
|
+
handleChange(item, 'num', {
|
136
|
+
num: value
|
137
|
+
});
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}),
|
141
|
+
color: '#667085'
|
142
|
+
}],
|
143
|
+
escapeDom: ".pisell-number-selector-popover",
|
144
|
+
key: item._id,
|
145
|
+
dataSource: item,
|
146
|
+
onAction: function onAction(e) {
|
147
|
+
return _onAction === null || _onAction === void 0 ? void 0 : _onAction(e);
|
148
|
+
},
|
149
|
+
onDelete: function onDelete(e) {
|
150
|
+
return handleChange(e, 'delete', item);
|
151
|
+
},
|
152
|
+
onNote: function onNote(e) {
|
153
|
+
return handleChange(e, 'note', {
|
154
|
+
note: e.note
|
155
|
+
});
|
156
|
+
},
|
157
|
+
onLike: function onLike(e) {
|
158
|
+
return handleChange(e, 'like', {
|
159
|
+
like_status: e.like_status
|
160
|
+
});
|
161
|
+
},
|
162
|
+
onEditProduct: function onEditProduct(e) {
|
163
|
+
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'edit_product');
|
164
|
+
},
|
165
|
+
onCard: function onCard(e) {
|
166
|
+
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'view');
|
167
|
+
},
|
168
|
+
onChangeResource: function onChangeResource(e) {
|
169
|
+
return handleChange(item, 'change_resource', e);
|
170
|
+
},
|
171
|
+
onChangeHolder: function onChangeHolder(e) {
|
172
|
+
return handleChange(item, 'change_holder', e);
|
173
|
+
},
|
174
|
+
onAddHolder: function onAddHolder(e) {
|
175
|
+
return handleChange(item, 'add_holder', e);
|
176
|
+
}
|
177
|
+
}, productParams, getProductCardStyleProps(isRetail ? 'retail' : 'appointment'), {
|
178
|
+
scenario: state.scenario
|
179
|
+
}));
|
180
|
+
});
|
69
181
|
return useMemo(function () {
|
70
|
-
console.log('render cart');
|
182
|
+
console.log('render cart', lists);
|
71
183
|
return /*#__PURE__*/React.createElement("div", {
|
72
184
|
className: "pisell-lowcode__shopping-cart-content"
|
73
|
-
}, clearCart,
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
185
|
+
}, clearCart, editItems.length > 0 && /*#__PURE__*/React.createElement("div", {
|
186
|
+
className: "pisell-lowcode__shopping-cart-edit"
|
187
|
+
}, /*#__PURE__*/React.createElement("div", {
|
188
|
+
className: "pisell-lowcode__shopping-cart-edit-header",
|
189
|
+
onClick: toggleEditExpanded,
|
190
|
+
style: {
|
191
|
+
cursor: 'pointer'
|
79
192
|
}
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
color: '#667085'
|
102
|
-
}],
|
103
|
-
escapeDom: ".pisell-number-selector-popover",
|
104
|
-
key: item._id,
|
105
|
-
dataSource: item,
|
106
|
-
onAction: function onAction(e) {
|
107
|
-
return _onAction === null || _onAction === void 0 ? void 0 : _onAction(e);
|
108
|
-
},
|
109
|
-
onDelete: function onDelete(e) {
|
110
|
-
return handleChange(e, 'delete', item);
|
111
|
-
},
|
112
|
-
onNote: function onNote(e) {
|
113
|
-
return handleChange(e, 'note', {
|
114
|
-
note: e.note
|
115
|
-
});
|
116
|
-
},
|
117
|
-
onLike: function onLike(e) {
|
118
|
-
return handleChange(e, 'like', {
|
119
|
-
like_status: e.like_status
|
120
|
-
});
|
121
|
-
},
|
122
|
-
onEditProduct: function onEditProduct(e) {
|
123
|
-
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'edit_product');
|
124
|
-
},
|
125
|
-
onCard: function onCard(e) {
|
126
|
-
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'view');
|
127
|
-
},
|
128
|
-
onChangeResource: function onChangeResource(e) {
|
129
|
-
return handleChange(item, 'change_resource', e);
|
130
|
-
},
|
131
|
-
onChangeHolder: function onChangeHolder(e) {
|
132
|
-
return handleChange(item, 'change_holder', e);
|
133
|
-
},
|
134
|
-
onAddHolder: function onAddHolder(e) {
|
135
|
-
return handleChange(item, 'add_holder', e);
|
136
|
-
}
|
137
|
-
}, productParams, getProductCardStyleProps(isRetail ? 'retail' : 'appointment'), {
|
138
|
-
scenario: state.scenario
|
139
|
-
}));
|
140
|
-
}), !hideAddBtn && platform !== 'h5' && isAdd ? useAddService(id, 'more') : null);
|
141
|
-
}, [clearCart, lists, productParams, hideAddBtn, isAdd, platform]);
|
193
|
+
}, /*#__PURE__*/React.createElement("div", {
|
194
|
+
className: "pisell-lowcode__shopping-cart-edit-header-title"
|
195
|
+
}, locales.getText('pisell2.text.shopping-cart.save.items')(editItems.length)), /*#__PURE__*/React.createElement("div", {
|
196
|
+
className: "pisell-lowcode__shopping-cart-edit-header-summary"
|
197
|
+
}, editTotal), /*#__PURE__*/React.createElement("div", {
|
198
|
+
className: "pisell-lowcode__shopping-cart-edit-header-switch"
|
199
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
200
|
+
type: "pisell2-chevron-down",
|
201
|
+
style: {
|
202
|
+
transform: isEditExpanded ? 'rotate(180deg)' : 'rotate(0deg)',
|
203
|
+
transition: 'transform 0.3s ease'
|
204
|
+
}
|
205
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
206
|
+
className: "pisell-lowcode__shopping-cart-edit-content",
|
207
|
+
style: {
|
208
|
+
maxHeight: isEditExpanded ? 'unset' : '0',
|
209
|
+
overflow: 'hidden',
|
210
|
+
transition: 'max-height 0.3s ease'
|
211
|
+
}
|
212
|
+
}, editItems.map(renderProductItem))), normalItems.map(renderProductItem), !hideAddBtn && platform !== 'h5' && isAdd ? useAddService(id, 'more') : null);
|
213
|
+
}, [clearCart, editItems, normalItems, productParams, hideAddBtn, isAdd, platform, isEditExpanded]);
|
142
214
|
};
|
143
215
|
export default Product;
|
@@ -52,7 +52,7 @@ var Cart = function Cart() {
|
|
52
52
|
});
|
53
53
|
}, [carts, platform]);
|
54
54
|
return useMemo(function () {
|
55
|
-
console.log('render cart 22222');
|
55
|
+
console.log('render cart 22222', state.prodcuts);
|
56
56
|
return /*#__PURE__*/React.createElement("div", {
|
57
57
|
className: classNames('pisell-lowcode__shopping-cart')
|
58
58
|
}, isProductList ? /*#__PURE__*/React.createElement(Product, {
|
@@ -24,6 +24,37 @@
|
|
24
24
|
margin-bottom: 0;
|
25
25
|
}
|
26
26
|
}
|
27
|
+
|
28
|
+
.pisell-lowcode__shopping-cart-edit {
|
29
|
+
display: flex;
|
30
|
+
padding: 6px;
|
31
|
+
background: #EAECF0;
|
32
|
+
flex-direction: column;
|
33
|
+
color: black;
|
34
|
+
border-radius: 8px;
|
35
|
+
.pisell-lowcode__shopping-cart-edit-header {
|
36
|
+
display: flex;
|
37
|
+
font-size: 14px;
|
38
|
+
font-weight: 600;
|
39
|
+
.pisell-lowcode__shopping-cart-edit-header-title {
|
40
|
+
flex: 1;
|
41
|
+
}
|
42
|
+
.pisell-lowcode__shopping-cart-edit-header-summary {
|
43
|
+
margin-right: 4px;
|
44
|
+
}
|
45
|
+
// .pisell-lowcode__shopping-cart-edit-header-switch {
|
46
|
+
// font-size: 14px;
|
47
|
+
// font-weight: 400;
|
48
|
+
// line-height: 20px;
|
49
|
+
// }
|
50
|
+
}
|
51
|
+
.pisell-lowcode__shopping-cart-edit-content {
|
52
|
+
margin-top: 6px;
|
53
|
+
gap: 8px;
|
54
|
+
display: flex;
|
55
|
+
flex-direction: column;
|
56
|
+
}
|
57
|
+
}
|
27
58
|
|
28
59
|
.pisell-lowcode__shopping-cart-label {
|
29
60
|
color: var(--Base-Black, #000);
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
8
8
|
'pisell2.text.shopping-cart.confirm': string;
|
9
9
|
'pisell2.text.shopping-cart.cancel': string;
|
10
10
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
11
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
11
12
|
};
|
12
13
|
'zh-CN': {
|
13
14
|
'pisell2.text.shopping-cart.item': (num: number) => string;
|
@@ -18,6 +19,7 @@ declare const _default: {
|
|
18
19
|
'pisell2.text.shopping-cart.confirm': string;
|
19
20
|
'pisell2.text.shopping-cart.cancel': string;
|
20
21
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
22
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
21
23
|
};
|
22
24
|
'zh-HK': {
|
23
25
|
'pisell2.text.shopping-cart.item': (num: number) => string;
|
@@ -28,6 +30,7 @@ declare const _default: {
|
|
28
30
|
'pisell2.text.shopping-cart.confirm': string;
|
29
31
|
'pisell2.text.shopping-cart.cancel': string;
|
30
32
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
33
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
31
34
|
};
|
32
35
|
};
|
33
36
|
export default _default;
|
@@ -9,7 +9,10 @@ export default {
|
|
9
9
|
'pisell2.text.shopping-cart.no.selected': 'No items selected',
|
10
10
|
'pisell2.text.shopping-cart.confirm': 'Confirm',
|
11
11
|
'pisell2.text.shopping-cart.cancel': 'Cancel',
|
12
|
-
'pisell2.text.shopping-cart.select.holder.modal.title': 'Item Assignment'
|
12
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': 'Item Assignment',
|
13
|
+
'pisell2.text.shopping-cart.save.items': function pisell2TextShoppingCartSaveItems(num) {
|
14
|
+
return "".concat(num, " save ").concat(num > 1 ? 'items' : 'item');
|
15
|
+
}
|
13
16
|
},
|
14
17
|
'zh-CN': {
|
15
18
|
'pisell2.text.shopping-cart.item': function pisell2TextShoppingCartItem(num) {
|
@@ -21,7 +24,10 @@ export default {
|
|
21
24
|
'pisell2.text.shopping-cart.no.selected': '未选择任何项目',
|
22
25
|
'pisell2.text.shopping-cart.confirm': '确定',
|
23
26
|
'pisell2.text.shopping-cart.cancel': '取消',
|
24
|
-
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配'
|
27
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配',
|
28
|
+
'pisell2.text.shopping-cart.save.items': function pisell2TextShoppingCartSaveItems(num) {
|
29
|
+
return "".concat(num, " \u4E2A\u4FDD\u5B58\u5546\u54C1");
|
30
|
+
}
|
25
31
|
},
|
26
32
|
'zh-HK': {
|
27
33
|
'pisell2.text.shopping-cart.item': function pisell2TextShoppingCartItem(num) {
|
@@ -33,6 +39,9 @@ export default {
|
|
33
39
|
'pisell2.text.shopping-cart.no.selected': '未選擇任何項目',
|
34
40
|
'pisell2.text.shopping-cart.confirm': '確定',
|
35
41
|
'pisell2.text.shopping-cart.cancel': '取消',
|
36
|
-
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配'
|
42
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配',
|
43
|
+
'pisell2.text.shopping-cart.save.items': function pisell2TextShoppingCartSaveItems(num) {
|
44
|
+
return "".concat(num, " \u500B\u4FDD\u5B58\u5546\u54C1");
|
45
|
+
}
|
37
46
|
}
|
38
47
|
};
|
@@ -62,7 +62,7 @@ export var useCustomer = function useCustomer(props) {
|
|
62
62
|
if (!pisellos) {
|
63
63
|
return;
|
64
64
|
}
|
65
|
-
pisellos.effects.on('customer:onUpdate', function (state) {
|
65
|
+
var unlisten1 = pisellos.effects.on('customer:onUpdate', function (state) {
|
66
66
|
setCustomers(state.customerList);
|
67
67
|
setHasMore(state.hasMore);
|
68
68
|
setPagination(function (prev) {
|
@@ -73,20 +73,20 @@ export var useCustomer = function useCustomer(props) {
|
|
73
73
|
});
|
74
74
|
});
|
75
75
|
});
|
76
|
-
pisellos.effects.on('customer:onSelected', function (customer) {
|
76
|
+
var unlisten2 = pisellos.effects.on('customer:onSelected', function (customer) {
|
77
77
|
var _props$changeCustomer;
|
78
78
|
setSelectedCustomer(customer);
|
79
79
|
(_props$changeCustomer = props.changeCustomerToGlobalState) === null || _props$changeCustomer === void 0 || _props$changeCustomer.call(props, customer);
|
80
80
|
});
|
81
|
-
pisellos.effects.on('customer:onPaginationChange', function (paginationInfo) {
|
81
|
+
var unlisten3 = pisellos.effects.on('customer:onPaginationChange', function (paginationInfo) {
|
82
82
|
setPagination(paginationInfo);
|
83
83
|
});
|
84
84
|
return function () {
|
85
|
-
|
86
|
-
|
87
|
-
|
85
|
+
unlisten1();
|
86
|
+
unlisten2();
|
87
|
+
unlisten3();
|
88
88
|
};
|
89
|
-
}, [
|
89
|
+
}, []);
|
90
90
|
|
91
91
|
// 加载客户列表
|
92
92
|
var loadCustomers = useMemoizedFn( /*#__PURE__*/function () {
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
44
|
-
searchType: "
|
44
|
+
searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
|
45
45
|
data: any;
|
46
46
|
scanCode: string;
|
47
47
|
} | null;
|
@@ -150,7 +150,8 @@ export var addService = function addService(list, addItem, state) {
|
|
150
150
|
var isGoodPassDiscountProduct = (item.discount_list || []).some(function (item) {
|
151
151
|
return item.type === 'good_pass';
|
152
152
|
});
|
153
|
-
|
153
|
+
var isEdit = item === null || item === void 0 ? void 0 : item.edit;
|
154
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
|
154
155
|
var _item$_extend, _addItem$_extend, _item$_extend2;
|
155
156
|
isNotSame = false;
|
156
157
|
var quantity = ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend = addItem._extend) === null || _addItem$_extend === void 0 ? void 0 : _addItem$_extend.quantity) || 1);
|
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
addWalletCard: any;
|
4
|
+
}
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
+
walletDetailState: RechargeState;
|
7
|
+
} & {
|
8
|
+
dispatch: (params: {
|
9
|
+
type: string;
|
10
|
+
payload: any;
|
11
|
+
}) => void;
|
12
|
+
}>;
|
13
|
+
export {};
|
@@ -1 +1,14 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
total: number;
|
4
|
+
setup?: 'menu' | 'list' | 'detail' | string;
|
5
|
+
}
|
6
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
7
|
+
state: RechargeState;
|
8
|
+
} & {
|
9
|
+
dispatch: (params: {
|
10
|
+
type: string;
|
11
|
+
payload: any;
|
12
|
+
}) => void;
|
13
|
+
}>;
|
14
|
+
export {};
|
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
total: number;
|
4
|
+
}
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
+
state: RechargeState;
|
7
|
+
} & {
|
8
|
+
dispatch: (params: {
|
9
|
+
type: string;
|
10
|
+
payload: any;
|
11
|
+
}) => void;
|
12
|
+
}>;
|
13
|
+
export {};
|
@@ -1 +1,29 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
selectedGiftOptionId: string | null;
|
4
|
+
cardList: Array<{
|
5
|
+
id: string;
|
6
|
+
name: string;
|
7
|
+
price: number;
|
8
|
+
}>;
|
9
|
+
selectedItem: {
|
10
|
+
id?: string;
|
11
|
+
gift_price?: number;
|
12
|
+
price?: number;
|
13
|
+
name?: string;
|
14
|
+
variant_id?: string;
|
15
|
+
};
|
16
|
+
productId?: string;
|
17
|
+
detailId?: string;
|
18
|
+
total: string | number;
|
19
|
+
rechargeModalOpen: boolean;
|
20
|
+
}
|
21
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
22
|
+
state: RechargeState;
|
23
|
+
} & {
|
24
|
+
dispatch: (params: {
|
25
|
+
type: string;
|
26
|
+
payload: any;
|
27
|
+
}) => void;
|
28
|
+
}>;
|
29
|
+
export {};
|
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
total: 0;
|
4
|
+
}
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
+
state: RechargeState;
|
7
|
+
} & {
|
8
|
+
dispatch: (params: {
|
9
|
+
type: string;
|
10
|
+
payload: any;
|
11
|
+
}) => void;
|
12
|
+
}>;
|
13
|
+
export {};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { IWalletListItemProps } from './serve';
|
2
3
|
export interface WalletCardItemProps {
|
3
4
|
id: string;
|
@@ -26,4 +27,11 @@ export interface WalletListProps {
|
|
26
27
|
currentSearchListItemCode?: string;
|
27
28
|
[key: string]: any;
|
28
29
|
}
|
29
|
-
export declare const Provider: any, Context:
|
30
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
31
|
+
global_wallet: WalletListProps;
|
32
|
+
} & {
|
33
|
+
dispatch: (params: {
|
34
|
+
type: string;
|
35
|
+
payload: any;
|
36
|
+
}) => void;
|
37
|
+
}>;
|