@pisell/private-materials 6.9.6 → 6.10.2
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/README.md +1 -5
- 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 +164 -150
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Cart/index.js +3 -20
- package/es/components/Sales/Cart/utils.d.ts +0 -5
- package/es/components/Sales/Cart/utils.js +0 -16
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/Sales/Summary/utils.js +4 -5
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.js +12 -12
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +5 -46
- package/es/components/appointmentBooking/components/Voucher/index.js +5 -26
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/hooks.d.ts +1 -1
- package/es/components/appointmentBooking/hooks.js +13 -6
- package/es/components/appointmentBooking/locales.d.ts +0 -3
- package/es/components/appointmentBooking/locales.js +0 -3
- package/es/components/appointmentBooking/utils.d.ts +0 -23
- package/es/components/appointmentBooking/utils.js +0 -159
- package/es/components/booking/addons/index.js +2 -3
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/actionButtons/index.js +0 -10
- package/es/components/booking/components/customiseItemModal/index.js +7 -4
- package/es/components/booking/components/footer/amount.d.ts +0 -1
- package/es/components/booking/components/footer/amount.js +165 -358
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +170 -497
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +83 -144
- package/es/components/booking/components/voucher/index.js +6 -15
- package/es/components/booking/components/voucher/index.less +1 -4
- package/es/components/booking/components/voucherModal/index.less +0 -1
- package/es/components/booking/dashboard/index.js +92 -78
- package/es/components/booking/dashboard/serve.d.ts +0 -1
- package/es/components/booking/dashboard/serve.js +0 -22
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +10 -32
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/client/index.js +6 -16
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Group/utils.js +2 -2
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +41 -45
- package/es/components/booking/info2/cartClientCard/index.js +10 -16
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editNormalService/index.js +17 -22
- package/es/components/booking/info2/service/editService/index.js +2 -33
- package/es/components/booking/info2/service/editService/utils.js +5 -9
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +0 -3
- package/es/components/booking/locales.js +3 -6
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/booking/utils.js +4 -4
- package/es/components/checkout/PaymentModal.d.ts +0 -1
- package/es/components/checkout/PaymentModal.js +64 -175
- package/es/components/checkout/components/PaymentDetailModal/index.less +429 -426
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -3
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -0
- package/es/components/checkout/components/PaymentResultToast/index.js +0 -2
- package/es/components/checkout/components/WalletPassModule/index.js +0 -1
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/utils.js +3 -17
- package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/es/components/checkout/hooks/useWalletPass.js +198 -324
- package/es/components/checkout/index.less +0 -6
- package/es/components/checkout/plugin.js +12 -59
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/EFTPos.js +6 -15
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.js +0 -5
- package/es/components/eftposPay/component/fail/failCustom.js +12 -16
- package/es/components/eftposPay/component/fail/index.js +5 -12
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/const.d.ts +1 -6
- package/es/components/eftposPay/const.js +0 -3
- package/es/components/eftposPay/hooks.d.ts +2 -3
- package/es/components/eftposPay/hooks.js +0 -12
- package/es/components/eftposPay/index.js +1 -5
- package/es/components/eftposPay/locales.d.ts +0 -36
- package/es/components/eftposPay/locales.js +3 -42
- package/es/components/eftposPay/manufacturer.d.ts +0 -1
- package/es/components/eftposPay/manufacturer.js +0 -5
- package/es/components/eftposPay/pay.js +2 -6
- package/es/components/eftposPay/store/index.d.ts +5 -12
- package/es/components/eftposPay/tyro/index.js +4 -97
- package/es/components/eftposPay/windcave/windcave.js +9 -9
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +1 -2
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/kioskSkuDetail/index.d.ts +0 -3
- package/es/components/kioskSkuDetail/index.js +173 -268
- package/es/components/kioskSkuDetail/index.less +7 -49
- package/es/components/kioskSkuDetail/locales.d.ts +0 -6
- package/es/components/kioskSkuDetail/locales.js +3 -9
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +1 -8
- package/es/components/pay/toB/components/MX51/index.js +1 -2
- package/es/components/pay/toB/paymentMethods/index.js +1 -2
- package/es/components/pay/toB/types/index.d.ts +0 -9
- package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/index.js +5 -54
- package/es/components/pay/toC/PaymentList/index.less +1 -58
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +0 -22
- package/es/components/pay/toC/PaymentList/utils.d.ts +0 -26
- package/es/components/pay/toC/PaymentList/utils.js +6 -188
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +42 -139
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +145 -166
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/index.js +1 -3
- package/es/components/pay/toC/index.js +28 -68
- package/es/components/pay/toC/locales.d.ts +0 -6
- package/es/components/pay/toC/locales.js +3 -9
- package/es/components/pay/toC/model.d.ts +1 -10
- package/es/components/pay/toC/serve.d.ts +0 -18
- package/es/components/pay/toC/serve.js +1 -29
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +0 -4
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/systemSettings/registry/components/SectionList.js +1 -5
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +8 -5
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +63 -142
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +1 -2
- package/es/components/ticketBooking/components/ticketBooking/index.js +5 -19
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -3
- package/es/components/ticketBooking/context/OsKeyContext.js +2 -12
- package/es/components/ticketBooking/context/index.d.ts +1 -1
- package/es/components/ticketBooking/context/index.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +11 -14
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +10 -69
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.js +1 -2
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +2 -7
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/index.d.ts +4 -7
- package/es/index.js +4 -7
- 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/clinetSearch/index.d.ts +0 -1
- package/es/plus/clinetSearch/index.js +5 -27
- package/es/plus/clinetSearch/locales.d.ts +0 -3
- package/es/plus/clinetSearch/locales.js +3 -6
- package/es/plus/clinetSearch/types.d.ts +0 -9
- package/es/plus/myTeamLogin/MyTeamLoginCpt.d.ts +9 -0
- package/es/plus/myTeamLogin/MyTeamLoginCpt.js +205 -0
- package/es/plus/myTeamLogin/index.d.ts +11 -0
- package/es/{components/ecocup/cupList/hooks/useCupApi.js → plus/myTeamLogin/index.js} +259 -129
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/index.js +3 -12
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +4 -6
- package/es/plus/productSelect/ProductList/gridComponents.js +10 -30
- package/es/plus/productSelect/index.d.ts +1 -3
- package/es/plus/productSelect/index.js +14 -85
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -3
- package/es/plus/skuOptionsSelection/locales.js +0 -3
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +2 -11
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +0 -10
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +0 -1
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +0 -2
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +0 -10
- package/es/plus/walletPassGallery/components/passDetail/index.js +5 -6
- package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
- package/es/plus/walletPassGallery/components/timelineSection/index.js +3 -9
- package/es/plus/walletPassGallery/index.js +2 -2
- package/es/plus/walletPassGallery/index.less +1 -1
- package/es/plus/walletPassGallery/serve.d.ts +0 -8
- package/es/plus/walletPassGallery/serve.js +50 -78
- package/es/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/es/plus/webPosLogin/WebPosLogin.js +2 -7
- package/es/plus/webPosLogin/components/LoginPanel/index.js +3 -0
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +5 -5
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +6 -10
- package/es/plus/webPosLogin/service.js +1 -2
- package/es/pro/Login2.0/AuthModal.js +4 -12
- package/es/pro/Login2.0/Login2.js +10 -16
- package/es/pro/Login2.0/components/LoginCodeInput.js +3 -36
- package/es/pro/Login2.0/index.less +3 -15
- package/es/pro/Login2.0/shared/types.d.ts +4 -0
- package/es/pro/Login2.0/steps/CodeInput.js +7 -37
- package/es/pro/NumericStepper/index.d.ts +1 -27
- package/es/pro/NumericStepper/index.js +68 -84
- package/es/pro/NumericStepper/index.less +136 -261
- package/es/pro/Selector/Selector.js +10 -17
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/es/pro/Selector/hooks/usePresetProps.js +2 -4
- package/es/pro/Selector/types.d.ts +0 -1
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +1 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +1 -2
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +3 -6
- package/es/pro/skuDetailModal/index.js +55 -61
- package/es/pro/skuDetailModal/index.less +4 -46
- package/es/pro/skuDetailModal/types.d.ts +0 -7
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Cart/index.js +7 -25
- package/lib/components/Sales/Cart/utils.d.ts +0 -5
- package/lib/components/Sales/Cart/utils.js +1 -13
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.js +4 -2
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.js +8 -3
- package/lib/components/appointmentBooking/components/Services/index.js +1 -5
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -27
- package/lib/components/appointmentBooking/components/Voucher/index.js +6 -37
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/hooks.d.ts +1 -1
- package/lib/components/appointmentBooking/hooks.js +11 -6
- package/lib/components/appointmentBooking/locales.d.ts +0 -3
- package/lib/components/appointmentBooking/locales.js +0 -3
- package/lib/components/appointmentBooking/utils.d.ts +0 -23
- package/lib/components/appointmentBooking/utils.js +0 -103
- package/lib/components/booking/addons/index.js +2 -3
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/actionButtons/index.js +0 -10
- package/lib/components/booking/components/customiseItemModal/index.js +5 -4
- package/lib/components/booking/components/footer/amount.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.js +25 -122
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +5 -244
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +22 -59
- package/lib/components/booking/components/voucher/index.js +4 -18
- package/lib/components/booking/components/voucher/index.less +1 -4
- package/lib/components/booking/components/voucherModal/index.less +0 -1
- package/lib/components/booking/dashboard/index.js +59 -38
- package/lib/components/booking/dashboard/serve.d.ts +0 -1
- package/lib/components/booking/dashboard/serve.js +2 -8
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +21 -65
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/client/index.js +8 -16
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +2 -6
- package/lib/components/booking/info2/cartClientCard/index.js +11 -17
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +16 -20
- package/lib/components/booking/info2/service/editService/index.js +24 -48
- package/lib/components/booking/info2/service/editService/utils.js +4 -7
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +0 -3
- package/lib/components/booking/locales.js +3 -6
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/booking/utils.js +3 -3
- package/lib/components/checkout/PaymentModal.d.ts +0 -1
- package/lib/components/checkout/PaymentModal.js +30 -98
- package/lib/components/checkout/components/PaymentDetailModal/index.less +429 -426
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +2 -6
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -0
- package/lib/components/checkout/components/PaymentResultToast/index.js +0 -2
- package/lib/components/checkout/components/WalletPassModule/index.js +0 -1
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/utils.js +2 -18
- package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/lib/components/checkout/hooks/useWalletPass.js +109 -160
- package/lib/components/checkout/index.less +0 -6
- package/lib/components/checkout/plugin.js +150 -195
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/EFTPos.js +7 -11
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.js +0 -5
- package/lib/components/eftposPay/component/fail/failCustom.js +9 -15
- package/lib/components/eftposPay/component/fail/index.js +1 -4
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/const.d.ts +1 -6
- package/lib/components/eftposPay/const.js +0 -3
- package/lib/components/eftposPay/hooks.d.ts +2 -3
- package/lib/components/eftposPay/hooks.js +0 -16
- package/lib/components/eftposPay/index.js +1 -5
- package/lib/components/eftposPay/locales.d.ts +0 -36
- package/lib/components/eftposPay/locales.js +3 -42
- package/lib/components/eftposPay/manufacturer.d.ts +0 -1
- package/lib/components/eftposPay/manufacturer.js +0 -7
- package/lib/components/eftposPay/pay.js +2 -3
- package/lib/components/eftposPay/store/index.d.ts +5 -12
- package/lib/components/eftposPay/tyro/index.js +7 -64
- package/lib/components/eftposPay/windcave/windcave.js +9 -9
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +1 -2
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/kioskSkuDetail/index.d.ts +0 -3
- package/lib/components/kioskSkuDetail/index.js +113 -180
- package/lib/components/kioskSkuDetail/index.less +7 -49
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -6
- package/lib/components/kioskSkuDetail/locales.js +3 -9
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +1 -8
- package/lib/components/pay/toB/components/MX51/index.js +1 -2
- package/lib/components/pay/toB/paymentMethods/index.js +1 -2
- package/lib/components/pay/toB/types/index.d.ts +0 -9
- package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/index.js +5 -36
- package/lib/components/pay/toC/PaymentList/index.less +1 -58
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +1 -21
- package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -26
- package/lib/components/pay/toC/PaymentList/utils.js +7 -156
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -97
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +103 -90
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/index.js +1 -3
- package/lib/components/pay/toC/index.js +11 -53
- package/lib/components/pay/toC/locales.d.ts +0 -6
- package/lib/components/pay/toC/locales.js +3 -9
- package/lib/components/pay/toC/model.d.ts +1 -10
- package/lib/components/pay/toC/serve.d.ts +0 -18
- package/lib/components/pay/toC/serve.js +0 -6
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +0 -4
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.js +1 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/systemSettings/registry/components/SectionList.js +1 -4
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +7 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +16 -46
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +2 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.js +7 -21
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -3
- package/lib/components/ticketBooking/context/OsKeyContext.js +3 -13
- package/lib/components/ticketBooking/context/index.d.ts +1 -1
- package/lib/components/ticketBooking/context/index.js +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +2 -3
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +0 -59
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.js +1 -5
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/index.d.ts +4 -7
- package/lib/index.js +6 -15
- 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/clinetSearch/index.d.ts +0 -1
- package/lib/plus/clinetSearch/index.js +7 -31
- package/lib/plus/clinetSearch/locales.d.ts +0 -3
- package/lib/plus/clinetSearch/locales.js +3 -6
- package/lib/plus/clinetSearch/types.d.ts +0 -9
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.d.ts +9 -0
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.js +188 -0
- package/lib/plus/myTeamLogin/index.d.ts +11 -0
- package/lib/plus/myTeamLogin/index.js +198 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/index.js +3 -3
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +4 -6
- package/lib/plus/productSelect/ProductList/gridComponents.js +1 -7
- package/lib/plus/productSelect/index.d.ts +1 -3
- package/lib/plus/productSelect/index.js +11 -56
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +0 -2
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -3
- package/lib/plus/skuOptionsSelection/locales.js +0 -3
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +0 -10
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +0 -10
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +0 -2
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +0 -10
- package/lib/plus/walletPassGallery/components/passDetail/index.js +6 -24
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +10 -17
- package/lib/plus/walletPassGallery/index.js +2 -2
- package/lib/plus/walletPassGallery/index.less +1 -1
- package/lib/plus/walletPassGallery/serve.d.ts +0 -8
- package/lib/plus/walletPassGallery/serve.js +8 -23
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/lib/plus/webPosLogin/WebPosLogin.js +2 -7
- package/lib/plus/webPosLogin/components/LoginPanel/index.js +3 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +1 -1
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +6 -10
- package/lib/plus/webPosLogin/service.js +1 -2
- package/lib/pro/Login2.0/AuthModal.js +7 -15
- package/lib/pro/Login2.0/Login2.js +15 -21
- package/lib/pro/Login2.0/components/LoginCodeInput.js +4 -26
- package/lib/pro/Login2.0/index.less +3 -15
- package/lib/pro/Login2.0/shared/types.d.ts +4 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +5 -27
- package/lib/pro/NumericStepper/index.d.ts +1 -27
- package/lib/pro/NumericStepper/index.js +70 -73
- package/lib/pro/NumericStepper/index.less +136 -261
- package/lib/pro/Selector/Selector.js +4 -11
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/lib/pro/Selector/hooks/usePresetProps.js +2 -4
- package/lib/pro/Selector/types.d.ts +0 -1
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +1 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +1 -2
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +3 -6
- package/lib/pro/skuDetailModal/index.js +64 -117
- package/lib/pro/skuDetailModal/index.less +4 -46
- package/lib/pro/skuDetailModal/types.d.ts +0 -7
- package/lowcode/kiosk-sku-detail/meta.ts +94 -229
- package/lowcode/login2/meta.ts +20 -15
- package/lowcode/my-team-login/meta.ts +71 -0
- package/package.json +23 -8
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -3
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +0 -82
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/es/components/ecocup/components/AddCustomerModal/index.js +0 -216
- package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/es/components/ecocup/components/CupActionList/index.js +0 -91
- package/es/components/ecocup/components/CupActionList/index.less +0 -102
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/es/components/ecocup/components/CupActionModal/index.js +0 -92
- package/es/components/ecocup/components/CupActionModal/index.less +0 -38
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -7
- package/es/components/ecocup/components/CupInfoCard/index.js +0 -12
- package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/es/components/ecocup/components/CupStatusModal/index.js +0 -147
- package/es/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -6
- package/es/components/ecocup/components/CustomerCard/index.js +0 -34
- package/es/components/ecocup/components/CustomerCard/index.less +0 -50
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -8
- package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
- package/es/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/es/components/ecocup/components/PageHeader/index.js +0 -37
- package/es/components/ecocup/components/PageHeader/index.less +0 -19
- package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/es/components/ecocup/components/SearchBar/const.js +0 -16
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/es/components/ecocup/components/SearchBar/index.js +0 -218
- package/es/components/ecocup/components/SearchBar/index.less +0 -88
- package/es/components/ecocup/cupList/const.d.ts +0 -133
- package/es/components/ecocup/cupList/const.js +0 -306
- package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/es/components/ecocup/cupList/hooks/index.js +0 -4
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/es/components/ecocup/cupList/hooks/useColumns.js +0 -168
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -2
- package/es/components/ecocup/cupList/hooks/useSummary.js +0 -40
- package/es/components/ecocup/cupList/index.d.ts +0 -6
- package/es/components/ecocup/cupList/index.js +0 -220
- package/es/components/ecocup/cupList/index.less +0 -113
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/ecocup/cupProject/const.js +0 -27
- package/es/components/ecocup/cupProject/index.d.ts +0 -3
- package/es/components/ecocup/cupProject/index.js +0 -103
- package/es/components/ecocup/cupProject/index.less +0 -41
- package/es/components/ecocup/customerList/const.d.ts +0 -44
- package/es/components/ecocup/customerList/const.js +0 -67
- package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/es/components/ecocup/customerList/hooks/index.js +0 -3
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
- package/es/components/ecocup/customerList/index.d.ts +0 -7
- package/es/components/ecocup/customerList/index.js +0 -127
- package/es/components/ecocup/customerList/index.less +0 -15
- package/es/components/ecocup/hooks.d.ts +0 -49
- package/es/components/ecocup/hooks.js +0 -151
- package/es/components/ecocup/locales.d.ts +0 -339
- package/es/components/ecocup/locales.js +0 -372
- package/es/components/ecocup/types.d.ts +0 -103
- package/es/components/ecocup/types.js +0 -36
- package/es/components/ecocup/utils/scanListener.d.ts +0 -20
- package/es/components/ecocup/utils/scanListener.js +0 -107
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +0 -7
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +0 -120
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/index.js +0 -3
- package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/es/components/eftposPay/aggregatePayment/service.js +0 -69
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/es/components/eftposPay/aggregatePayment/types.js +0 -65
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +0 -371
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +0 -1138
- package/es/components/eftposPay/huifu/Action.d.ts +0 -8
- package/es/components/eftposPay/huifu/Action.js +0 -146
- package/es/components/eftposPay/huifu/const.d.ts +0 -5
- package/es/components/eftposPay/huifu/const.js +0 -70
- package/es/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/es/components/eftposPay/huifu/hooks.js +0 -184
- package/es/components/eftposPay/huifu/index.d.ts +0 -5
- package/es/components/eftposPay/huifu/index.js +0 -196
- package/es/components/eftposPay/huifu/index.less +0 -180
- package/es/components/eftposPay/huifu/types.d.ts +0 -14
- package/es/components/eftposPay/huifu/types.js +0 -1
- package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +0 -20
- package/es/components/eventBooking/components/Voucher/components/Voucher.js +0 -99
- package/es/components/eventBooking/components/Voucher/components/index.less +0 -124
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/es/components/eventBooking/components/Voucher/components/locales.js +0 -38
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/es/components/eventBooking/components/Voucher/hooks.js +0 -212
- package/es/components/eventBooking/components/Voucher/index.d.ts +0 -2
- package/es/components/eventBooking/components/Voucher/index.js +0 -266
- package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/es/plus/orderList/components/BatchActionBar.js +0 -835
- package/es/plus/orderList/components/FilterList.d.ts +0 -8
- package/es/plus/orderList/components/FilterList.js +0 -78
- package/es/plus/orderList/components/HandleActions.d.ts +0 -5
- package/es/plus/orderList/components/HandleActions.js +0 -27
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -4
- package/es/plus/orderList/components/QuickFilter.js +0 -14
- package/es/plus/orderList/components/Reset.d.ts +0 -6
- package/es/plus/orderList/components/Reset.js +0 -23
- package/es/plus/orderList/components/Toolbar.d.ts +0 -6
- package/es/plus/orderList/components/Toolbar.js +0 -59
- package/es/plus/orderList/config.d.ts +0 -154
- package/es/plus/orderList/config.js +0 -786
- package/es/plus/orderList/index.d.ts +0 -10
- package/es/plus/orderList/index.js +0 -133
- package/es/plus/orderList/index.less +0 -125
- package/es/plus/orderList/locales.d.ts +0 -372
- package/es/plus/orderList/locales.js +0 -459
- package/es/plus/orderList/serve.d.ts +0 -42
- package/es/plus/orderList/serve.js +0 -351
- package/es/pro/keyboards/index.d.ts +0 -2
- package/es/pro/keyboards/index.js +0 -1
- package/es/pro/keyboards/locales.d.ts +0 -24
- package/es/pro/keyboards/locales.js +0 -35
- package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/es/pro/keyboards/numberKeyboard/index.js +0 -523
- package/es/pro/keyboards/numberKeyboard/index.less +0 -59
- package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/es/pro/keyboards/numberKeyboard/types.js +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -3
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +0 -89
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
- package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupActionList/index.js +0 -116
- package/lib/components/ecocup/components/CupActionList/index.less +0 -102
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
- package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -7
- package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
- package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupStatusModal/index.js +0 -140
- package/lib/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -6
- package/lib/components/ecocup/components/CustomerCard/index.js +0 -48
- package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -8
- package/lib/components/ecocup/components/MoreDropdown/index.js +0 -68
- package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/lib/components/ecocup/components/PageHeader/index.js +0 -59
- package/lib/components/ecocup/components/PageHeader/index.less +0 -19
- package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/lib/components/ecocup/components/SearchBar/const.js +0 -50
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/lib/components/ecocup/components/SearchBar/index.js +0 -213
- package/lib/components/ecocup/components/SearchBar/index.less +0 -88
- package/lib/components/ecocup/cupList/const.d.ts +0 -133
- package/lib/components/ecocup/cupList/const.js +0 -326
- package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/lib/components/ecocup/cupList/hooks/index.js +0 -39
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -202
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -112
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -2
- package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -75
- package/lib/components/ecocup/cupList/index.d.ts +0 -6
- package/lib/components/ecocup/cupList/index.js +0 -208
- package/lib/components/ecocup/cupList/index.less +0 -113
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/ecocup/cupProject/const.js +0 -58
- package/lib/components/ecocup/cupProject/index.d.ts +0 -3
- package/lib/components/ecocup/cupProject/index.js +0 -126
- package/lib/components/ecocup/cupProject/index.less +0 -41
- package/lib/components/ecocup/customerList/const.d.ts +0 -44
- package/lib/components/ecocup/customerList/const.js +0 -93
- package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/lib/components/ecocup/customerList/hooks/index.js +0 -32
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
- package/lib/components/ecocup/customerList/index.d.ts +0 -7
- package/lib/components/ecocup/customerList/index.js +0 -138
- package/lib/components/ecocup/customerList/index.less +0 -15
- package/lib/components/ecocup/hooks.d.ts +0 -49
- package/lib/components/ecocup/hooks.js +0 -155
- package/lib/components/ecocup/locales.d.ts +0 -339
- package/lib/components/ecocup/locales.js +0 -389
- package/lib/components/ecocup/types.d.ts +0 -103
- package/lib/components/ecocup/types.js +0 -57
- package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
- package/lib/components/ecocup/utils/scanListener.js +0 -90
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +0 -7
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +0 -133
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/index.js +0 -42
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/lib/components/eftposPay/aggregatePayment/service.js +0 -81
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/lib/components/eftposPay/aggregatePayment/types.js +0 -74
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +0 -294
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +0 -752
- package/lib/components/eftposPay/huifu/Action.d.ts +0 -8
- package/lib/components/eftposPay/huifu/Action.js +0 -174
- package/lib/components/eftposPay/huifu/const.d.ts +0 -5
- package/lib/components/eftposPay/huifu/const.js +0 -86
- package/lib/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/lib/components/eftposPay/huifu/hooks.js +0 -186
- package/lib/components/eftposPay/huifu/index.d.ts +0 -5
- package/lib/components/eftposPay/huifu/index.js +0 -200
- package/lib/components/eftposPay/huifu/index.less +0 -180
- package/lib/components/eftposPay/huifu/types.d.ts +0 -14
- package/lib/components/eftposPay/huifu/types.js +0 -17
- package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +0 -20
- package/lib/components/eventBooking/components/Voucher/components/Voucher.js +0 -116
- package/lib/components/eventBooking/components/Voucher/components/index.less +0 -124
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/lib/components/eventBooking/components/Voucher/components/locales.js +0 -59
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/lib/components/eventBooking/components/Voucher/hooks.js +0 -176
- package/lib/components/eventBooking/components/Voucher/index.d.ts +0 -2
- package/lib/components/eventBooking/components/Voucher/index.js +0 -197
- package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/lib/plus/orderList/components/BatchActionBar.js +0 -567
- package/lib/plus/orderList/components/FilterList.d.ts +0 -8
- package/lib/plus/orderList/components/FilterList.js +0 -121
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -5
- package/lib/plus/orderList/components/HandleActions.js +0 -52
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -4
- package/lib/plus/orderList/components/QuickFilter.js +0 -43
- package/lib/plus/orderList/components/Reset.d.ts +0 -6
- package/lib/plus/orderList/components/Reset.js +0 -58
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -6
- package/lib/plus/orderList/components/Toolbar.js +0 -68
- package/lib/plus/orderList/config.d.ts +0 -154
- package/lib/plus/orderList/config.js +0 -766
- package/lib/plus/orderList/index.d.ts +0 -10
- package/lib/plus/orderList/index.js +0 -132
- package/lib/plus/orderList/index.less +0 -125
- package/lib/plus/orderList/locales.d.ts +0 -372
- package/lib/plus/orderList/locales.js +0 -471
- package/lib/plus/orderList/serve.d.ts +0 -42
- package/lib/plus/orderList/serve.js +0 -177
- package/lib/pro/keyboards/index.d.ts +0 -2
- package/lib/pro/keyboards/index.js +0 -39
- package/lib/pro/keyboards/locales.d.ts +0 -24
- package/lib/pro/keyboards/locales.js +0 -47
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
- package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
- package/lowcode/eco-cup-list/meta.ts +0 -63
- package/lowcode/eco-customer-list/meta.ts +0 -63
- package/lowcode/ecocup-cup-list/meta.ts +0 -38
- package/lowcode/ecocup-cup-project/meta.ts +0 -35
- package/lowcode/ecocup-customer-list/meta.ts +0 -38
- package/lowcode/order-list/meta.ts +0 -87
|
@@ -18,7 +18,6 @@ import { useBookingTicket } from "./bookingTicket";
|
|
|
18
18
|
import { useState, useEffect, useRef } from 'react';
|
|
19
19
|
import useEngineContext, { usePlatform } from "../../../../hooks/useEngineContext";
|
|
20
20
|
import dayjs from 'dayjs';
|
|
21
|
-
import useLogger from "../../../../hooks/useLogger";
|
|
22
21
|
// 等待函数
|
|
23
22
|
var sleep = function sleep(ms) {
|
|
24
23
|
return new Promise(function (resolve) {
|
|
@@ -42,7 +41,6 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
42
41
|
var isFirstLoadDataRef = useRef(true);
|
|
43
42
|
var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
44
43
|
getApp = _ref.getApp;
|
|
45
|
-
var logger = useLogger();
|
|
46
44
|
var app = getApp();
|
|
47
45
|
|
|
48
46
|
// 日程时间段列表 HH:mm格式
|
|
@@ -61,47 +59,29 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
61
59
|
setLoading(true);
|
|
62
60
|
_context.prev = 1;
|
|
63
61
|
paramsRef.current = params;
|
|
64
|
-
|
|
65
|
-
title: 'useProducts: getProducts 调用',
|
|
66
|
-
metadata: {
|
|
67
|
-
params: params
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
_context.next = 6;
|
|
62
|
+
_context.next = 5;
|
|
71
63
|
return bookingTicket.loadProducts(params);
|
|
72
|
-
case
|
|
64
|
+
case 5:
|
|
73
65
|
_products = _context.sent;
|
|
74
|
-
logger.addLog({
|
|
75
|
-
title: 'useProducts: getProducts 返回',
|
|
76
|
-
metadata: {
|
|
77
|
-
products: (_products === null || _products === void 0 ? void 0 : _products.length) || 0
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
66
|
setProducts(_products);
|
|
81
67
|
setLoading(false);
|
|
82
68
|
isFirstLoadRef.current = false;
|
|
83
|
-
_context.next =
|
|
69
|
+
_context.next = 16;
|
|
84
70
|
break;
|
|
85
|
-
case
|
|
86
|
-
_context.prev =
|
|
71
|
+
case 11:
|
|
72
|
+
_context.prev = 11;
|
|
87
73
|
_context.t0 = _context["catch"](1);
|
|
88
|
-
logger.addLog({
|
|
89
|
-
title: 'useProducts: getProducts 错误',
|
|
90
|
-
metadata: {
|
|
91
|
-
error: _context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
74
|
// 只有在第一次加载或之前有数据时才显示 notAvailable
|
|
95
75
|
if ((_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.code) === 607100 && (isFirstLoadRef.current || products.length > 0)) {
|
|
96
76
|
(_notAvailableRef$curr = notAvailableRef.current) === null || _notAvailableRef$curr === void 0 || _notAvailableRef$curr.open();
|
|
97
77
|
}
|
|
98
78
|
setLoading(false);
|
|
99
79
|
isFirstLoadRef.current = false;
|
|
100
|
-
case
|
|
80
|
+
case 16:
|
|
101
81
|
case "end":
|
|
102
82
|
return _context.stop();
|
|
103
83
|
}
|
|
104
|
-
}, _callee, null, [[1,
|
|
84
|
+
}, _callee, null, [[1, 11]]);
|
|
105
85
|
}));
|
|
106
86
|
return function (_x) {
|
|
107
87
|
return _ref2.apply(this, arguments);
|
|
@@ -130,27 +110,13 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
130
110
|
case 0:
|
|
131
111
|
task = _ref3.task;
|
|
132
112
|
console.log('定时执行 getProducts,参数:', task.payload);
|
|
133
|
-
|
|
134
|
-
title: 'useProducts: 定时执行 getProducts',
|
|
135
|
-
metadata: {
|
|
136
|
-
payload: task.payload,
|
|
137
|
-
task: task
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
_context2.next = 5;
|
|
113
|
+
_context2.next = 4;
|
|
141
114
|
return getProducts(task.payload);
|
|
142
|
-
case
|
|
143
|
-
logger.addLog({
|
|
144
|
-
title: 'useProducts: 定时执行 getProducts 完成',
|
|
145
|
-
metadata: {
|
|
146
|
-
payload: task.payload,
|
|
147
|
-
task: task
|
|
148
|
-
}
|
|
149
|
-
});
|
|
115
|
+
case 4:
|
|
150
116
|
return _context2.abrupt("return", {
|
|
151
117
|
status: 'success'
|
|
152
118
|
});
|
|
153
|
-
case
|
|
119
|
+
case 5:
|
|
154
120
|
case "end":
|
|
155
121
|
return _context2.stop();
|
|
156
122
|
}
|
|
@@ -203,23 +169,10 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
203
169
|
module: 'scheduledTasks',
|
|
204
170
|
queueId: scheduledTaskQueueIdRef.current
|
|
205
171
|
});
|
|
206
|
-
logger.addLog({
|
|
207
|
-
title: 'useProducts: 创建定时任务',
|
|
208
|
-
metadata: {
|
|
209
|
-
tasks: tasks.length,
|
|
210
|
-
log: "\u5DF2\u4E3A ".concat(tasks.length, " \u4E2A\u65F6\u95F4\u70B9\u521B\u5EFA\u5B9A\u65F6\u4EFB\u52A1")
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
172
|
console.log("\u5DF2\u4E3A ".concat(tasks.length, " \u4E2A\u65F6\u95F4\u70B9\u521B\u5EFA\u5B9A\u65F6\u4EFB\u52A1"));
|
|
214
173
|
}
|
|
215
174
|
} catch (error) {
|
|
216
175
|
console.error('创建定时任务失败:', error);
|
|
217
|
-
logger.addLog({
|
|
218
|
-
title: 'useProducts: 创建定时任务失败',
|
|
219
|
-
metadata: {
|
|
220
|
-
error: error === null || error === void 0 ? void 0 : error.message
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
176
|
}
|
|
224
177
|
|
|
225
178
|
// 清理函数:组件卸载时清除定时任务
|
|
@@ -228,24 +181,12 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
228
181
|
var _context$appHelper3, _context$appHelper3$g;
|
|
229
182
|
var _app2 = context === null || context === void 0 || (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.utils) === null || _context$appHelper3 === void 0 || (_context$appHelper3$g = _context$appHelper3.getApp) === null || _context$appHelper3$g === void 0 ? void 0 : _context$appHelper3$g.call(_context$appHelper3);
|
|
230
183
|
if (_app2 && _app2.tasksManager) {
|
|
231
|
-
logger.addLog({
|
|
232
|
-
title: 'useProducts: 清理定时任务',
|
|
233
|
-
metadata: {
|
|
234
|
-
queueId: scheduledTaskQueueIdRef.current
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
184
|
_app2.tasksManager.clearTasks({
|
|
238
185
|
module: 'scheduledTasks',
|
|
239
186
|
queueId: scheduledTaskQueueIdRef.current
|
|
240
187
|
});
|
|
241
188
|
}
|
|
242
189
|
} catch (error) {
|
|
243
|
-
logger.addLog({
|
|
244
|
-
title: 'useProducts: 清理定时任务失败',
|
|
245
|
-
metadata: {
|
|
246
|
-
error: error === null || error === void 0 ? void 0 : error.message
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
190
|
console.error('清理定时任务失败:', error);
|
|
250
191
|
}
|
|
251
192
|
};
|
|
@@ -10,7 +10,6 @@ interface TicketBookingProps {
|
|
|
10
10
|
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
11
11
|
isActive?: boolean;
|
|
12
12
|
rulesHooks?: any;
|
|
13
|
-
businessCode?: string;
|
|
14
13
|
}
|
|
15
14
|
declare const _default: (props: TicketBookingProps) => JSX.Element;
|
|
16
15
|
export default _default;
|
|
@@ -241,8 +241,7 @@ export default (function (props) {
|
|
|
241
241
|
}), /*#__PURE__*/React.createElement(IsActiveProvider, {
|
|
242
242
|
isActive: isActive
|
|
243
243
|
}, /*#__PURE__*/React.createElement(OsKeyProvider, {
|
|
244
|
-
osKey: osKey
|
|
245
|
-
businessCode: props === null || props === void 0 ? void 0 : props.businessCode
|
|
244
|
+
osKey: osKey
|
|
246
245
|
}, /*#__PURE__*/React.createElement(Provider, {
|
|
247
246
|
store: storeRef.current,
|
|
248
247
|
key: activeNavKey
|
|
@@ -47,7 +47,7 @@ declare type ScanData = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
50
|
-
searchType: "
|
|
50
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
|
51
51
|
data: any;
|
|
52
52
|
scanCode: string;
|
|
53
53
|
} | null;
|
|
@@ -172,8 +172,7 @@ var DEFAULT_BALANCE = {
|
|
|
172
172
|
gift_card_balance: 0,
|
|
173
173
|
point_card_balance: 0,
|
|
174
174
|
voucher_count: 0,
|
|
175
|
-
discount_card_count: 0
|
|
176
|
-
good_pass_count: 0
|
|
175
|
+
discount_card_count: 0
|
|
177
176
|
};
|
|
178
177
|
var WalletList = Provider(function (props) {
|
|
179
178
|
var _utils$getStore, _context$engine, _store$getState;
|
|
@@ -777,7 +776,7 @@ var WalletList = Provider(function (props) {
|
|
|
777
776
|
return bi.wallet_id == item.wallet_id;
|
|
778
777
|
}) || DEFAULT_BALANCE;
|
|
779
778
|
|
|
780
|
-
// 字段映射关系
|
|
779
|
+
// 字段映射关系
|
|
781
780
|
var _balanceKeyMap = {
|
|
782
781
|
rechargeable: 'gift_card_balance',
|
|
783
782
|
point: 'point_card_balance',
|
|
@@ -787,10 +786,6 @@ var WalletList = Provider(function (props) {
|
|
|
787
786
|
var cardItems = showcaseWalletPassNew.map(function (showCaseItem) {
|
|
788
787
|
var balanceKey = _balanceKeyMap[showCaseItem.type];
|
|
789
788
|
var value = balanceKey ? balanceItem[balanceKey] || 0 : 0;
|
|
790
|
-
// voucher 类型需要额外处理 good_pass_count
|
|
791
|
-
if (showCaseItem.type === 'voucher') {
|
|
792
|
-
value += balanceItem.good_pass_count || 0;
|
|
793
|
-
}
|
|
794
789
|
return _objectSpread(_objectSpread({}, showCaseItem), {}, {
|
|
795
790
|
value: value
|
|
796
791
|
});
|
package/es/index.d.ts
CHANGED
|
@@ -69,16 +69,13 @@ export { default as ContactInfoModal } from './plus/contactInfoModal';
|
|
|
69
69
|
export { Login2, Register2, AuthModal } from './pro/Login2.0';
|
|
70
70
|
export { default as WalletEditor } from './plus/walletEditor';
|
|
71
71
|
export { default as WalletPassGallery } from './plus/walletPassGallery';
|
|
72
|
-
export { default as
|
|
73
|
-
export { default as Selector } from './pro/Selector';
|
|
72
|
+
export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
|
|
74
73
|
export { default as SelectHolder } from './plus/selectHolder';
|
|
75
74
|
export { default as HolderList } from './plus/selectHolder/components/HolderList';
|
|
76
|
-
export { default as
|
|
75
|
+
export { default as SettingsRegistry } from './components/systemSettings/registry';
|
|
76
|
+
export { default as Selector } from './pro/Selector';
|
|
77
77
|
export { default as WebPosLogin } from './plus/webPosLogin';
|
|
78
78
|
export { default as PaymentModal } from './components/checkout/plugin';
|
|
79
79
|
export { default as SKUOptionsSelection } from './plus/skuOptionsSelection';
|
|
80
80
|
export { default as KioskSkuDetail } from './components/kioskSkuDetail';
|
|
81
|
-
export { default as
|
|
82
|
-
export { default as EcoCupList } from './components/ecocup/cupList';
|
|
83
|
-
export { default as EcoCustomerList } from './components/ecocup/customerList';
|
|
84
|
-
export { default as OrderList } from './plus/orderList';
|
|
81
|
+
export { default as MyTeamLogin } from './plus/myTeamLogin';
|
package/es/index.js
CHANGED
|
@@ -72,16 +72,13 @@ export { default as ContactInfoModal } from "./plus/contactInfoModal";
|
|
|
72
72
|
export { Login2, Register2, AuthModal } from "./pro/Login2.0";
|
|
73
73
|
export { default as WalletEditor } from "./plus/walletEditor";
|
|
74
74
|
export { default as WalletPassGallery } from "./plus/walletPassGallery";
|
|
75
|
-
export { default as
|
|
76
|
-
export { default as Selector } from "./pro/Selector";
|
|
75
|
+
export { default as WalletPassDetail } from "./plus/walletPassGallery/components/passDetail";
|
|
77
76
|
export { default as SelectHolder } from "./plus/selectHolder";
|
|
78
77
|
export { default as HolderList } from "./plus/selectHolder/components/HolderList";
|
|
79
|
-
export { default as
|
|
78
|
+
export { default as SettingsRegistry } from "./components/systemSettings/registry";
|
|
79
|
+
export { default as Selector } from "./pro/Selector";
|
|
80
80
|
export { default as WebPosLogin } from "./plus/webPosLogin";
|
|
81
81
|
export { default as PaymentModal } from "./components/checkout/plugin";
|
|
82
82
|
export { default as SKUOptionsSelection } from "./plus/skuOptionsSelection";
|
|
83
83
|
export { default as KioskSkuDetail } from "./components/kioskSkuDetail";
|
|
84
|
-
export { default as
|
|
85
|
-
export { default as EcoCupList } from "./components/ecocup/cupList";
|
|
86
|
-
export { default as EcoCustomerList } from "./components/ecocup/customerList";
|
|
87
|
-
export { default as OrderList } from "./plus/orderList";
|
|
84
|
+
export { default as MyTeamLogin } from "./plus/myTeamLogin";
|
|
@@ -9,7 +9,6 @@ interface ClientSearchProps extends Omit<ComprehensiveSearchProps, 'resultDispla
|
|
|
9
9
|
resultProps?: TableProps<ClientData>;
|
|
10
10
|
hasMore?: boolean;
|
|
11
11
|
onLoadMore?: () => void;
|
|
12
|
-
state?: any;
|
|
13
12
|
}
|
|
14
13
|
export declare type ClientSearchRef = {
|
|
15
14
|
resetScrollPosition: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["onRowClick", "resultProps", "onAddClient", "hasMore", "onLoadMore"
|
|
1
|
+
var _excluded = ["onRowClick", "resultProps", "onAddClient", "hasMore", "onLoadMore"];
|
|
2
2
|
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); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
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."); }
|
|
@@ -22,13 +22,12 @@ import useEngineContext from "../../hooks/useEngineContext";
|
|
|
22
22
|
import useTranslationOriginal from "../../hooks/useTranslationOriginal";
|
|
23
23
|
import "./index.less";
|
|
24
24
|
var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
25
|
-
var _context$appHelper
|
|
25
|
+
var _context$appHelper;
|
|
26
26
|
var onRowClick = _ref.onRowClick,
|
|
27
27
|
resultProps = _ref.resultProps,
|
|
28
28
|
onAddClient = _ref.onAddClient,
|
|
29
29
|
hasMore = _ref.hasMore,
|
|
30
30
|
onLoadMore = _ref.onLoadMore,
|
|
31
|
-
state = _ref.state,
|
|
32
31
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
32
|
var _useState = useState(false),
|
|
34
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -40,8 +39,6 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
40
39
|
var translationOriginal = useTranslationOriginal();
|
|
41
40
|
var context = useEngineContext();
|
|
42
41
|
locales.init(localeTexts, ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.storage) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.get('umi_locale')) || 'en');
|
|
43
|
-
var appointmentSubject = (state === null || state === void 0 || (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.basic) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.appointment_subject) || {};
|
|
44
|
-
var translation = context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.translationShop;
|
|
45
42
|
var handleAdd = function handleAdd() {
|
|
46
43
|
setModalVisible(true);
|
|
47
44
|
};
|
|
@@ -75,12 +72,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
75
72
|
style: {
|
|
76
73
|
width: 180
|
|
77
74
|
}
|
|
78
|
-
}, locales.getText('pisell2.text.client-search.contact-info'))
|
|
79
|
-
className: "header-item",
|
|
80
|
-
style: {
|
|
81
|
-
width: 200
|
|
82
|
-
}
|
|
83
|
-
}, translation(appointmentSubject === null || appointmentSubject === void 0 ? void 0 : appointmentSubject.form_name) || locales.getText('pisell2.text.client-search.holder')));
|
|
75
|
+
}, locales.getText('pisell2.text.client-search.contact-info')));
|
|
84
76
|
};
|
|
85
77
|
|
|
86
78
|
// 自定义结果展示组件
|
|
@@ -122,7 +114,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
122
114
|
}, /*#__PURE__*/React.createElement(List, {
|
|
123
115
|
dataSource: searchResults,
|
|
124
116
|
renderItem: function renderItem(item, index) {
|
|
125
|
-
var _latest_wallet_detail, _item$contacts_info, _item$contacts_info2, _item$contacts_info3
|
|
117
|
+
var _latest_wallet_detail, _item$contacts_info, _item$contacts_info2, _item$contacts_info3;
|
|
126
118
|
var membershipText = (_latest_wallet_detail = item.latest_wallet_detail) === null || _latest_wallet_detail === void 0 || (_latest_wallet_detail = _latest_wallet_detail.wallet) === null || _latest_wallet_detail === void 0 ? void 0 : _latest_wallet_detail.name;
|
|
127
119
|
return /*#__PURE__*/React.createElement(List.Item, {
|
|
128
120
|
key: item.id,
|
|
@@ -183,21 +175,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
183
175
|
textOverflow: 'ellipsis',
|
|
184
176
|
whiteSpace: 'nowrap'
|
|
185
177
|
}
|
|
186
|
-
}, (item === null || item === void 0 || (_item$contacts_info3 = item.contacts_info) === null || _item$contacts_info3 === void 0 || (_item$contacts_info3 = _item$contacts_info3.value) === null || _item$contacts_info3 === void 0 ? void 0 : _item$contacts_info3.email) || '-'))
|
|
187
|
-
className: "item-cell",
|
|
188
|
-
style: {
|
|
189
|
-
width: 200
|
|
190
|
-
}
|
|
191
|
-
}, (item === null || item === void 0 || (_item$form_record = item.form_record) === null || _item$form_record === void 0 ? void 0 : _item$form_record.length) > 0 ? item === null || item === void 0 || (_item$form_record2 = item.form_record) === null || _item$form_record2 === void 0 ? void 0 : _item$form_record2.map(function (itemForm) {
|
|
192
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
193
|
-
key: itemForm === null || itemForm === void 0 ? void 0 : itemForm.id,
|
|
194
|
-
style: {
|
|
195
|
-
overflow: 'hidden',
|
|
196
|
-
textOverflow: 'ellipsis',
|
|
197
|
-
whiteSpace: 'nowrap'
|
|
198
|
-
}
|
|
199
|
-
}, (itemForm === null || itemForm === void 0 ? void 0 : itemForm.main_field) || '-');
|
|
200
|
-
}) : '-')));
|
|
178
|
+
}, (item === null || item === void 0 || (_item$contacts_info3 = item.contacts_info) === null || _item$contacts_info3 === void 0 || (_item$contacts_info3 = _item$contacts_info3.value) === null || _item$contacts_info3 === void 0 ? void 0 : _item$contacts_info3.email) || '-'))));
|
|
201
179
|
}
|
|
202
180
|
}))));
|
|
203
181
|
};
|
|
@@ -32,7 +32,6 @@ declare const _default: {
|
|
|
32
32
|
'pisell2.text.client-search.email': string;
|
|
33
33
|
'pisell2.text.client-search.membership': string;
|
|
34
34
|
'pisell2.text.client-search.contact-info': string;
|
|
35
|
-
'pisell2.text.client-search.holder': string;
|
|
36
35
|
};
|
|
37
36
|
'zh-CN': {
|
|
38
37
|
'pisell2.text.leave-empty-for-walk-in': string;
|
|
@@ -67,7 +66,6 @@ declare const _default: {
|
|
|
67
66
|
'pisell2.text.client-search.email': string;
|
|
68
67
|
'pisell2.text.client-search.membership': string;
|
|
69
68
|
'pisell2.text.client-search.contact-info': string;
|
|
70
|
-
'pisell2.text.client-search.holder': string;
|
|
71
69
|
};
|
|
72
70
|
'zh-HK': {
|
|
73
71
|
'pisell2.text.leave-empty-for-walk-in': string;
|
|
@@ -102,7 +100,6 @@ declare const _default: {
|
|
|
102
100
|
'pisell2.text.client-search.email': string;
|
|
103
101
|
'pisell2.text.client-search.membership': string;
|
|
104
102
|
'pisell2.text.client-search.contact-info': string;
|
|
105
|
-
'pisell2.text.client-search.holder': string;
|
|
106
103
|
};
|
|
107
104
|
};
|
|
108
105
|
export default _default;
|
|
@@ -31,8 +31,7 @@ export default {
|
|
|
31
31
|
'pisell2.text.client-search.phone': 'Phone Number',
|
|
32
32
|
'pisell2.text.client-search.email': 'Email Address',
|
|
33
33
|
'pisell2.text.client-search.membership': 'Membership',
|
|
34
|
-
'pisell2.text.client-search.contact-info': 'Contact info'
|
|
35
|
-
'pisell2.text.client-search.holder': 'Holder'
|
|
34
|
+
'pisell2.text.client-search.contact-info': 'Contact info'
|
|
36
35
|
},
|
|
37
36
|
'zh-CN': {
|
|
38
37
|
'pisell2.text.leave-empty-for-walk-in': '如未注册游客则留空',
|
|
@@ -66,8 +65,7 @@ export default {
|
|
|
66
65
|
'pisell2.text.client-search.phone': '电话号码',
|
|
67
66
|
'pisell2.text.client-search.email': '邮箱',
|
|
68
67
|
'pisell2.text.client-search.membership': '会员',
|
|
69
|
-
'pisell2.text.client-search.contact-info': '联系信息'
|
|
70
|
-
'pisell2.text.client-search.holder': '持有人'
|
|
68
|
+
'pisell2.text.client-search.contact-info': '联系信息'
|
|
71
69
|
},
|
|
72
70
|
'zh-HK': {
|
|
73
71
|
'pisell2.text.leave-empty-for-walk-in': '如未註冊遊客則留空',
|
|
@@ -101,7 +99,6 @@ export default {
|
|
|
101
99
|
'pisell2.text.client-search.phone': '電話號碼',
|
|
102
100
|
'pisell2.text.client-search.email': '電郵地址',
|
|
103
101
|
'pisell2.text.client-search.membership': '會員',
|
|
104
|
-
'pisell2.text.client-search.contact-info': '聯繫信息'
|
|
105
|
-
'pisell2.text.client-search.holder': '持有人'
|
|
102
|
+
'pisell2.text.client-search.contact-info': '聯繫信息'
|
|
106
103
|
}
|
|
107
104
|
};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export interface FormRecord {
|
|
3
|
-
form_id: number;
|
|
4
|
-
id: number;
|
|
5
|
-
main_field: string;
|
|
6
|
-
data?: {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
2
|
export interface ClientData {
|
|
11
3
|
id: number;
|
|
12
4
|
display_name: string;
|
|
@@ -30,7 +22,6 @@ export interface ClientData {
|
|
|
30
22
|
email?: string;
|
|
31
23
|
};
|
|
32
24
|
};
|
|
33
|
-
form_record: FormRecord[];
|
|
34
25
|
}
|
|
35
26
|
export interface ClientSearchProps {
|
|
36
27
|
dataSource?: any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WebPosLoginCptProps } from '../webPosLogin/types';
|
|
3
|
+
import '../webPosLogin/WebPosLoginCpt.less';
|
|
4
|
+
/**
|
|
5
|
+
* WebPosLoginCpt 主组件
|
|
6
|
+
* @description WebPOS 登录流程组件,包含登录、店铺选择、设备选择三个步骤
|
|
7
|
+
*/
|
|
8
|
+
declare const WebPosLoginCpt: React.FC<WebPosLoginCptProps>;
|
|
9
|
+
export default WebPosLoginCpt;
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import React, { memo, useEffect, useMemo, useState } from 'react';
|
|
14
|
+
import { locales } from '@pisell/utils';
|
|
15
|
+
import localeTexts from "../webPosLogin/locales";
|
|
16
|
+
import BrandPanel from "../webPosLogin/components/BrandPanel";
|
|
17
|
+
import LoginPanel from "../webPosLogin/components/LoginPanel";
|
|
18
|
+
import SelectStore from "../webPosLogin/components/SelectStore";
|
|
19
|
+
import UserFooter from "../webPosLogin/components/UserFooter";
|
|
20
|
+
import "../webPosLogin/WebPosLoginCpt.less";
|
|
21
|
+
|
|
22
|
+
/** 默认背景图片 */
|
|
23
|
+
var DEFAULT_BACKGROUND = 'http://static.pisellcdn.com/defaultBg1.jpg';
|
|
24
|
+
|
|
25
|
+
/** 登录卡片最小可视宽度 */
|
|
26
|
+
var LOGIN_CARD_MIN_WIDTH = 378;
|
|
27
|
+
|
|
28
|
+
/** 最小缩放比例,避免过度缩小导致操作困难 */
|
|
29
|
+
var LOGIN_CARD_MIN_SCALE = 0.82;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 获取登录卡片缩放比例
|
|
33
|
+
* @param viewportWidth 视口宽度
|
|
34
|
+
* @returns 缩放比例
|
|
35
|
+
*/
|
|
36
|
+
function getLoginCardScale(_ref) {
|
|
37
|
+
var viewportWidth = _ref.viewportWidth;
|
|
38
|
+
if (!viewportWidth) return 1;
|
|
39
|
+
if (viewportWidth >= LOGIN_CARD_MIN_WIDTH) return 1;
|
|
40
|
+
var rawScale = viewportWidth / LOGIN_CARD_MIN_WIDTH;
|
|
41
|
+
return Math.max(LOGIN_CARD_MIN_SCALE, rawScale);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* WebPosLoginCpt 主组件
|
|
46
|
+
* @description WebPOS 登录流程组件,包含登录、店铺选择、设备选择三个步骤
|
|
47
|
+
*/
|
|
48
|
+
var WebPosLoginCpt = /*#__PURE__*/memo(function (props) {
|
|
49
|
+
var _props$className = props.className,
|
|
50
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
51
|
+
style = props.style,
|
|
52
|
+
loginConfig = props.loginConfig,
|
|
53
|
+
backgroundImage = props.backgroundImage,
|
|
54
|
+
brandConfig = props.brandConfig,
|
|
55
|
+
_props$step = props.step,
|
|
56
|
+
step = _props$step === void 0 ? 'login' : _props$step,
|
|
57
|
+
_props$showBackButton = props.showBackButton,
|
|
58
|
+
showBackButton = _props$showBackButton === void 0 ? true : _props$showBackButton,
|
|
59
|
+
_props$storeList = props.storeList,
|
|
60
|
+
storeList = _props$storeList === void 0 ? [] : _props$storeList,
|
|
61
|
+
userInfo = props.userInfo,
|
|
62
|
+
selectedStore = props.selectedStore,
|
|
63
|
+
lastUsedStoreId = props.lastUsedStoreId,
|
|
64
|
+
_props$locale = props.locale,
|
|
65
|
+
locale = _props$locale === void 0 ? 'en' : _props$locale,
|
|
66
|
+
_props$loading = props.loading,
|
|
67
|
+
loading = _props$loading === void 0 ? false : _props$loading,
|
|
68
|
+
onStoreSelect = props.onStoreSelect,
|
|
69
|
+
onDeviceSelect = props.onDeviceSelect,
|
|
70
|
+
onChangeAccount = props.onChangeAccount,
|
|
71
|
+
onChangeStore = props.onChangeStore,
|
|
72
|
+
onBack = props.onBack,
|
|
73
|
+
onLoginSuccess = props.onLoginSuccess;
|
|
74
|
+
console.log(props, onLoginSuccess, 'onLoginSuccess');
|
|
75
|
+
var _useState = useState(1),
|
|
76
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
77
|
+
cardScale = _useState2[0],
|
|
78
|
+
setCardScale = _useState2[1];
|
|
79
|
+
|
|
80
|
+
// 初始化国际化
|
|
81
|
+
locales.init(localeTexts, locale);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 监听视口变化,计算卡片缩放比例
|
|
85
|
+
*/
|
|
86
|
+
useEffect(function () {
|
|
87
|
+
var _document$documentEle;
|
|
88
|
+
if (typeof window === 'undefined') return;
|
|
89
|
+
var viewportWidth = Math.min(window.innerWidth || 0, ((_document$documentEle = document.documentElement) === null || _document$documentEle === void 0 ? void 0 : _document$documentEle.clientWidth) || 0);
|
|
90
|
+
setCardScale(getLoginCardScale({
|
|
91
|
+
viewportWidth: viewportWidth
|
|
92
|
+
}));
|
|
93
|
+
}, []);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 获取当前步骤的标题
|
|
97
|
+
*/
|
|
98
|
+
var stepTitle = useMemo(function () {
|
|
99
|
+
var titles = {
|
|
100
|
+
login: '',
|
|
101
|
+
store: locales.getText('webpos-login-select-store-title'),
|
|
102
|
+
device: locales.getText('webpos-login-select-device-title')
|
|
103
|
+
};
|
|
104
|
+
return titles[step];
|
|
105
|
+
}, [step, locale]);
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* 是否显示返回按钮
|
|
109
|
+
* login 步骤默认不显示,其他步骤根据 showBackButton 配置
|
|
110
|
+
*/
|
|
111
|
+
var shouldShowBackButton = useMemo(function () {
|
|
112
|
+
if (step === 'login') return false;
|
|
113
|
+
return showBackButton;
|
|
114
|
+
}, [step, showBackButton]);
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* 渲染右侧交互区内容
|
|
118
|
+
*/
|
|
119
|
+
var renderRightContent = function renderRightContent() {
|
|
120
|
+
switch (step) {
|
|
121
|
+
case 'login':
|
|
122
|
+
// 登录组件
|
|
123
|
+
return /*#__PURE__*/React.createElement(LoginPanel, {
|
|
124
|
+
onLoginSuccess: onLoginSuccess,
|
|
125
|
+
config: loginConfig
|
|
126
|
+
});
|
|
127
|
+
case 'store':
|
|
128
|
+
// 店铺选择组件
|
|
129
|
+
return /*#__PURE__*/React.createElement(SelectStore, {
|
|
130
|
+
storeList: storeList,
|
|
131
|
+
locale: locale,
|
|
132
|
+
loading: loading,
|
|
133
|
+
lastUsedStoreId: lastUsedStoreId,
|
|
134
|
+
onSelect: onStoreSelect
|
|
135
|
+
});
|
|
136
|
+
default:
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* 渲染底部用户信息
|
|
143
|
+
*/
|
|
144
|
+
var renderFooter = function renderFooter() {
|
|
145
|
+
// 登录步骤不显示底部信息
|
|
146
|
+
if (step === 'login') return null;
|
|
147
|
+
return /*#__PURE__*/React.createElement(UserFooter, {
|
|
148
|
+
isShowChangeStore: storeList.length > 1,
|
|
149
|
+
userInfo: userInfo,
|
|
150
|
+
selectedStore: selectedStore,
|
|
151
|
+
step: step,
|
|
152
|
+
locale: locale,
|
|
153
|
+
onChangeAccount: onChangeAccount,
|
|
154
|
+
onChangeStore: onChangeStore
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
158
|
+
className: "webpos-login ".concat(className).trim(),
|
|
159
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
160
|
+
backgroundImage: "url(".concat(backgroundImage || DEFAULT_BACKGROUND, ")")
|
|
161
|
+
})
|
|
162
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
163
|
+
className: "webpos-login__backdrop"
|
|
164
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
165
|
+
className: "webpos-login__card",
|
|
166
|
+
style: {
|
|
167
|
+
width: cardScale < 1 ? "".concat(LOGIN_CARD_MIN_WIDTH, "px") : undefined,
|
|
168
|
+
maxWidth: cardScale < 1 ? "".concat(LOGIN_CARD_MIN_WIDTH, "px") : undefined,
|
|
169
|
+
minWidth: cardScale < 1 ? "".concat(LOGIN_CARD_MIN_WIDTH, "px") : undefined,
|
|
170
|
+
transform: "scale(".concat(cardScale, ")"),
|
|
171
|
+
transformOrigin: 'top center'
|
|
172
|
+
}
|
|
173
|
+
}, /*#__PURE__*/React.createElement(BrandPanel, {
|
|
174
|
+
config: brandConfig
|
|
175
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
176
|
+
className: "webpos-login__right-panel"
|
|
177
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
178
|
+
className: "webpos-login__header"
|
|
179
|
+
}, shouldShowBackButton && /*#__PURE__*/React.createElement("button", {
|
|
180
|
+
className: "webpos-login__back-btn",
|
|
181
|
+
onClick: onBack,
|
|
182
|
+
type: "button",
|
|
183
|
+
"aria-label": locales.getText('webpos-login-back')
|
|
184
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
185
|
+
width: "24",
|
|
186
|
+
height: "24",
|
|
187
|
+
viewBox: "0 0 24 24",
|
|
188
|
+
fill: "none",
|
|
189
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
190
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
191
|
+
d: "M15 18L9 12L15 6",
|
|
192
|
+
stroke: "currentColor",
|
|
193
|
+
strokeWidth: "2",
|
|
194
|
+
strokeLinecap: "round",
|
|
195
|
+
strokeLinejoin: "round"
|
|
196
|
+
}))), stepTitle && /*#__PURE__*/React.createElement("h1", {
|
|
197
|
+
className: "webpos-login__title"
|
|
198
|
+
}, stepTitle)), /*#__PURE__*/React.createElement("div", {
|
|
199
|
+
className: "webpos-login__content"
|
|
200
|
+
}, renderRightContent()), /*#__PURE__*/React.createElement("div", {
|
|
201
|
+
className: "webpos-login__footer"
|
|
202
|
+
}, renderFooter()))));
|
|
203
|
+
});
|
|
204
|
+
WebPosLoginCpt.displayName = 'WebPosLoginCpt';
|
|
205
|
+
export default WebPosLoginCpt;
|