@pisell/private-materials 6.6.24 → 6.6.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- 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/Voucher/index.js +22 -7
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/booking/addons/index.js +3 -2
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.js +7 -0
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +7 -5
- package/es/components/booking/components/voucher/index.js +6 -0
- package/es/components/booking/components/voucher/index.less +4 -1
- package/es/components/booking/components/voucherModal/index.less +1 -0
- package/es/components/booking/dashboard/index.js +21 -5
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/editService/index.js +33 -2
- package/es/components/booking/locales.d.ts +951 -0
- package/es/components/checkout/PaymentModal.js +42 -2
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/es/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/index.js +1 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
- package/es/components/checkout/constants.d.ts +2 -0
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/es/components/checkout/hooks/useWalletPass.js +322 -194
- package/es/components/checkout/locales.d.ts +513 -0
- package/es/components/checkout/styles.d.ts +67 -0
- package/es/components/checkout/types.d.ts +130 -0
- package/es/components/checkout/utils.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.js +1 -1
- package/es/components/eftposPay/const.d.ts +195 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/locales.d.ts +366 -0
- package/es/components/eftposPay/manufacturer.d.ts +8 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/store/index.d.ts +362 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.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/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/es/components/list/components/Tab/Tab.d.ts +5 -0
- package/es/components/list/components/Tab/index.d.ts +2 -0
- package/es/components/list/components/Tab/types.d.ts +14 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/es/components/list/components/WaterfallList/index.d.ts +2 -0
- package/es/components/list/hooks/index.d.ts +5 -0
- package/es/components/list/hooks/useDevice.d.ts +24 -0
- package/es/components/list/hooks/useListState.d.ts +43 -0
- package/es/components/list/hooks/useWaterfall.d.ts +34 -0
- package/es/components/list/locales.d.ts +66 -0
- package/es/components/list/types.d.ts +177 -0
- package/es/components/list/utils/getText.d.ts +53 -0
- package/es/components/list/utils/index.d.ts +4 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/hooks.d.ts +12 -0
- package/es/components/pay/toB/locales.d.ts +54 -0
- package/es/components/pay/toB/store/context.d.ts +3 -0
- package/es/components/pay/toB/store/index.d.ts +3 -0
- package/es/components/pay/toB/store/provider.d.ts +4 -0
- package/es/components/pay/toB/types/index.d.ts +61 -0
- package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- 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 +3 -1
- package/es/components/pay/toC/index.js +66 -27
- package/es/components/pay/toC/locales.d.ts +307 -0
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/status.d.ts +13 -0
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/ruleSetting/locales.d.ts +48 -0
- 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/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/locales.d.ts +36 -0
- package/es/components/shoppingCart/type.d.ts +50 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image.png +0 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -4
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/es/components/ticketBooking/locales.d.ts +198 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/walletList/locales.d.ts +27 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +3 -0
- package/es/hooks/useLogger.d.ts +2 -0
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/types.d.ts +134 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/locales.d.ts +108 -0
- package/es/plus/clinetSearch/types.d.ts +70 -0
- package/es/plus/noteModal/locales.d.ts +33 -0
- package/es/plus/noteModal/types.d.ts +19 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/selectHolder/locales.d.ts +24 -0
- package/es/plus/selectHolder/types.d.ts +104 -0
- package/es/plus/selectHolder/utils.d.ts +9 -0
- package/es/plus/walletEditor/locales.d.ts +135 -0
- package/es/plus/walletPassGallery/locales.d.ts +285 -0
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/types.d.ts +32 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/es/pro/skuDetailModal/locales.d.ts +48 -0
- package/es/pro/skuDetailModal/types.d.ts +348 -0
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- 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/Voucher/index.js +10 -2
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/booking/addons/index.js +3 -2
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +9 -0
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +5 -3
- package/lib/components/booking/components/voucher/index.js +6 -0
- package/lib/components/booking/components/voucher/index.less +4 -1
- package/lib/components/booking/components/voucherModal/index.less +1 -0
- package/lib/components/booking/dashboard/index.js +11 -1
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/editService/index.js +48 -24
- package/lib/components/booking/locales.d.ts +951 -0
- package/lib/components/checkout/PaymentModal.js +24 -1
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/lib/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
- package/lib/components/checkout/constants.d.ts +2 -0
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/lib/components/checkout/hooks/useWalletPass.js +160 -107
- package/lib/components/checkout/locales.d.ts +513 -0
- package/lib/components/checkout/styles.d.ts +67 -0
- package/lib/components/checkout/types.d.ts +130 -0
- package/lib/components/checkout/utils.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.js +1 -1
- package/lib/components/eftposPay/const.d.ts +195 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/locales.d.ts +366 -0
- package/lib/components/eftposPay/manufacturer.d.ts +8 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/store/index.d.ts +362 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.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/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/lib/components/list/components/Tab/Tab.d.ts +5 -0
- package/lib/components/list/components/Tab/index.d.ts +2 -0
- package/lib/components/list/components/Tab/types.d.ts +14 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
- package/lib/components/list/hooks/index.d.ts +5 -0
- package/lib/components/list/hooks/useDevice.d.ts +24 -0
- package/lib/components/list/hooks/useListState.d.ts +43 -0
- package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
- package/lib/components/list/locales.d.ts +66 -0
- package/lib/components/list/types.d.ts +177 -0
- package/lib/components/list/utils/getText.d.ts +53 -0
- package/lib/components/list/utils/index.d.ts +4 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/hooks.d.ts +12 -0
- package/lib/components/pay/toB/locales.d.ts +54 -0
- package/lib/components/pay/toB/store/context.d.ts +3 -0
- package/lib/components/pay/toB/store/index.d.ts +3 -0
- package/lib/components/pay/toB/store/provider.d.ts +4 -0
- package/lib/components/pay/toB/types/index.d.ts +61 -0
- package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- 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 +3 -1
- package/lib/components/pay/toC/index.js +52 -11
- package/lib/components/pay/toC/locales.d.ts +307 -0
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/status.d.ts +13 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +4 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- 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/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/locales.d.ts +36 -0
- package/lib/components/shoppingCart/type.d.ts +50 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image.png +0 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +11 -7
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/lib/components/ticketBooking/locales.d.ts +198 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/walletList/locales.d.ts +27 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +3 -0
- package/lib/hooks/useLogger.d.ts +2 -0
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/types.d.ts +134 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/locales.d.ts +108 -0
- package/lib/plus/clinetSearch/types.d.ts +70 -0
- package/lib/plus/noteModal/locales.d.ts +33 -0
- package/lib/plus/noteModal/types.d.ts +19 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/selectHolder/locales.d.ts +24 -0
- package/lib/plus/selectHolder/types.d.ts +104 -0
- package/lib/plus/selectHolder/utils.d.ts +9 -0
- package/lib/plus/walletEditor/locales.d.ts +135 -0
- package/lib/plus/walletPassGallery/locales.d.ts +285 -0
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/lib/pro/skuDetailModal/locales.d.ts +48 -0
- package/lib/pro/skuDetailModal/types.d.ts +348 -0
- package/lowcode/eco-cup-list/meta.ts +63 -0
- package/lowcode/eco-customer-list/meta.ts +63 -0
- package/package.json +4 -4
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DeviceStatusType, StatusType, ModeType, RouteType, ClientEnum } from '../const';
|
|
3
|
+
import { ThunkDispatch } from './useThunkReducer';
|
|
4
|
+
export declare enum EActionTypes {
|
|
5
|
+
UPDATE_INIT = "UPDATE_INIT",
|
|
6
|
+
UPDATE_CUSTOM = "UPDATE_CUSTOM",
|
|
7
|
+
UPDATE_KEY = "UPDATE_KEY",
|
|
8
|
+
UPDATE_STEP_KEY = "UPDATE_STEP_KEY",
|
|
9
|
+
UPDATE_DEVICE = "UPDATE_DEVICE",
|
|
10
|
+
UPDATE_NEXT_STEP = "UPDATE_NEXT_STEP",
|
|
11
|
+
UPDATE_STATUS = "UPDATE_STATUS",
|
|
12
|
+
UPDATE_TITLE = "UPDATE_TITLE",
|
|
13
|
+
UPDATE_LOADING = "UPDATE_LOADING",
|
|
14
|
+
UPDATE_COMPONENT = "UPDATE_COMPONENT",
|
|
15
|
+
UPDATE_STEPS = "UPDATE_STEPS",
|
|
16
|
+
UPDATE_STEP_CURRENT_ITEM_CUSTOM = "UPDATE_STEP_CURRENT_ITEM_CUSTOM",
|
|
17
|
+
UPDATE_STEP_ITEM = "UPDATE_STEP_ITEM",
|
|
18
|
+
BACKUP_PRODUCTION = "BACKUP_PRODUCTION",
|
|
19
|
+
BACKUP_FREE = "BACKUP_FREE",
|
|
20
|
+
UPDATE_CLIENT = "UPDATE_CLIENT"
|
|
21
|
+
}
|
|
22
|
+
export declare type State = {
|
|
23
|
+
/** 支付名称 */
|
|
24
|
+
name: string;
|
|
25
|
+
/** 金额单位 */
|
|
26
|
+
symbol: string;
|
|
27
|
+
/** 支付原始金额 */
|
|
28
|
+
amount: string | number;
|
|
29
|
+
/** 模式 */
|
|
30
|
+
mode: ModeType;
|
|
31
|
+
/** 订单号 */
|
|
32
|
+
order_id: string | number;
|
|
33
|
+
/** 厂商 */
|
|
34
|
+
eftpos: DeviceStatusType;
|
|
35
|
+
action?: RouteType;
|
|
36
|
+
/** 用于重置页面特指 =》全部步骤 */
|
|
37
|
+
key: number;
|
|
38
|
+
/** 当前执行到哪一步了 */
|
|
39
|
+
step: number;
|
|
40
|
+
/** 标题 */
|
|
41
|
+
title: string;
|
|
42
|
+
/** 标题 */
|
|
43
|
+
subTitle?: string;
|
|
44
|
+
/** step : 常规步骤页面 ,unset 自定义页面 */
|
|
45
|
+
type: 'step' | 'unset';
|
|
46
|
+
render: boolean;
|
|
47
|
+
/** 网络 */
|
|
48
|
+
net?: boolean;
|
|
49
|
+
/** 上面 unset 自定义页面,这里需要指定到具体页面 */
|
|
50
|
+
component: string;
|
|
51
|
+
form?: string;
|
|
52
|
+
/** 页面状态 */
|
|
53
|
+
status: StatusType;
|
|
54
|
+
/** 警告文案 */
|
|
55
|
+
warn: string;
|
|
56
|
+
steps: {
|
|
57
|
+
/** 用于重置当前步骤 */
|
|
58
|
+
key: number;
|
|
59
|
+
title?: string;
|
|
60
|
+
text?: string;
|
|
61
|
+
warn?: string;
|
|
62
|
+
tip?: string;
|
|
63
|
+
success?: string;
|
|
64
|
+
fail?: string;
|
|
65
|
+
loading?: string;
|
|
66
|
+
/** 步骤状态 */
|
|
67
|
+
status: StatusType;
|
|
68
|
+
custom?: {
|
|
69
|
+
/** 步骤自定义 */
|
|
70
|
+
[key: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
}[];
|
|
73
|
+
/** 支付流水号 */
|
|
74
|
+
number?: string | number;
|
|
75
|
+
/** 设备信息 */
|
|
76
|
+
device?: {
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
/** 支付信息 */
|
|
80
|
+
pay?: {
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
custom?: {
|
|
84
|
+
[key: string]: unknown;
|
|
85
|
+
};
|
|
86
|
+
manual?: {
|
|
87
|
+
title: string;
|
|
88
|
+
text: string;
|
|
89
|
+
status?: boolean;
|
|
90
|
+
money?: number;
|
|
91
|
+
};
|
|
92
|
+
backup?: Omit<State, 'backup'>;
|
|
93
|
+
client: ClientEnum;
|
|
94
|
+
/** 原始参数 - 用于 retry 时完整恢复 */
|
|
95
|
+
originalParams?: {
|
|
96
|
+
[key: string]: unknown;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export declare type Action = {
|
|
100
|
+
type: EActionTypes;
|
|
101
|
+
payload: Partial<State>;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* @title: 刷新 key
|
|
105
|
+
* @description: 用户重置组件生命周期,
|
|
106
|
+
* @param {number} key
|
|
107
|
+
* @Author: hongbing.wang
|
|
108
|
+
* @Date: 2024-08-19 09:56
|
|
109
|
+
*/
|
|
110
|
+
export declare const updateKey: (key: number) => {
|
|
111
|
+
type: EActionTypes;
|
|
112
|
+
payload: {
|
|
113
|
+
key: number;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* @title: 更新设备信息
|
|
118
|
+
* @description: 用户选择设备将回填到此处
|
|
119
|
+
* @param {object} payload
|
|
120
|
+
* @Author: hongbing.wang
|
|
121
|
+
* @Date: 2024-08-19 09:57
|
|
122
|
+
*/
|
|
123
|
+
export declare const updateDevice: (payload: {
|
|
124
|
+
device: State['device'];
|
|
125
|
+
}) => {
|
|
126
|
+
type: EActionTypes;
|
|
127
|
+
payload: {
|
|
128
|
+
device: State['device'];
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @title: 刷新 步骤key
|
|
133
|
+
* @description: 重置某一步生命周期
|
|
134
|
+
* @Author: hongbing.wang
|
|
135
|
+
* @Date: 2024-08-19 09:58
|
|
136
|
+
*/
|
|
137
|
+
export declare const updateStepKey: () => {
|
|
138
|
+
type: EActionTypes;
|
|
139
|
+
payload: {};
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* @title: 更新至下一步
|
|
143
|
+
* @description: 更新至下一步
|
|
144
|
+
* @param {string} warn?: 错误信息
|
|
145
|
+
* @Author: hongbing.wang
|
|
146
|
+
* @Date: 2024-08-19 09:58
|
|
147
|
+
*/
|
|
148
|
+
export declare const updateNextStep: (warn?: string) => {
|
|
149
|
+
type: EActionTypes;
|
|
150
|
+
payload: {
|
|
151
|
+
warn: string;
|
|
152
|
+
} | {
|
|
153
|
+
warn?: undefined;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* @title: 更新自定义信息
|
|
158
|
+
* @description: 更新自定义信息
|
|
159
|
+
* @param {object} payload
|
|
160
|
+
* @Author: hongbing.wang
|
|
161
|
+
* @Date: 2024-08-19 10:03
|
|
162
|
+
*/
|
|
163
|
+
export declare const updateCustom: (payload: {
|
|
164
|
+
[key: string]: unknown;
|
|
165
|
+
}) => {
|
|
166
|
+
type: EActionTypes;
|
|
167
|
+
payload: {
|
|
168
|
+
[key: string]: unknown;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* @title: 更新 全局状态
|
|
173
|
+
* @description: 更新 全局状态
|
|
174
|
+
* @param {string} status : 状态
|
|
175
|
+
* * @Author: hongbing.wang
|
|
176
|
+
* @Date: 2024-08-19 10:03
|
|
177
|
+
*/
|
|
178
|
+
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
179
|
+
type: EActionTypes;
|
|
180
|
+
payload: {
|
|
181
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* @title: 更新自定义组件
|
|
186
|
+
* @description: 更新自定义组件
|
|
187
|
+
* @param {string} component 组件名称
|
|
188
|
+
* @param {boolean} render : true : 隐藏 原组件(维持原组件内状态) ;false : 卸载
|
|
189
|
+
* @return {*}
|
|
190
|
+
* @Author: hongbing.wang
|
|
191
|
+
* @Date: 2024-08-19 10:04
|
|
192
|
+
*/
|
|
193
|
+
export declare const updateComponent: (component: string, render?: boolean) => {
|
|
194
|
+
type: EActionTypes;
|
|
195
|
+
payload: {
|
|
196
|
+
readonly component: string;
|
|
197
|
+
readonly type: "unset";
|
|
198
|
+
readonly render: boolean;
|
|
199
|
+
} | {
|
|
200
|
+
readonly type: "step";
|
|
201
|
+
readonly render: boolean;
|
|
202
|
+
readonly component?: undefined;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* @title: 更新步骤信息
|
|
207
|
+
* @description: 更新某一步骤信息
|
|
208
|
+
* @param {State} steps 某一步骤信息
|
|
209
|
+
* @Author: hongbing.wang
|
|
210
|
+
* @Date: 2024-08-19 10:07
|
|
211
|
+
*/
|
|
212
|
+
export declare const updateSteps: (steps: State['steps']) => {
|
|
213
|
+
type: EActionTypes;
|
|
214
|
+
payload: {
|
|
215
|
+
steps: {
|
|
216
|
+
/** 用于重置当前步骤 */
|
|
217
|
+
key: number;
|
|
218
|
+
title?: string | undefined;
|
|
219
|
+
text?: string | undefined;
|
|
220
|
+
warn?: string | undefined;
|
|
221
|
+
tip?: string | undefined;
|
|
222
|
+
success?: string | undefined;
|
|
223
|
+
fail?: string | undefined;
|
|
224
|
+
loading?: string | undefined;
|
|
225
|
+
/** 步骤状态 */
|
|
226
|
+
status: StatusType;
|
|
227
|
+
custom?: {
|
|
228
|
+
[key: string]: unknown;
|
|
229
|
+
} | undefined;
|
|
230
|
+
}[];
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* @title: 更新状态管理信息
|
|
235
|
+
* @description: 更新状态管理信息
|
|
236
|
+
* @param {Partial} payload
|
|
237
|
+
* @return {*}
|
|
238
|
+
* @Author: hongbing.wang
|
|
239
|
+
* @Date: 2024-08-19 10:08
|
|
240
|
+
*/
|
|
241
|
+
export declare const updateState: (payload: Partial<State>) => {
|
|
242
|
+
type: EActionTypes;
|
|
243
|
+
payload: Partial<State>;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* @title: 更新当前步骤自定义信息
|
|
247
|
+
* @description: 更新当前步骤自定义信息
|
|
248
|
+
* @Author: hongbing.wang
|
|
249
|
+
* @Date: 2024-08-19 10:09
|
|
250
|
+
*/
|
|
251
|
+
export declare const updateCurrentCustomStemItem: (payload: NonNullable<Partial<State['steps'][number]['custom']>>) => {
|
|
252
|
+
type: EActionTypes;
|
|
253
|
+
payload: Partial<{
|
|
254
|
+
[key: string]: unknown;
|
|
255
|
+
}>;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* @title: 更新当前步骤信息
|
|
259
|
+
* @description: 更新当前步骤信息
|
|
260
|
+
* @Author: hongbing.wang
|
|
261
|
+
* @Date: 2024-08-19 10:09
|
|
262
|
+
*/
|
|
263
|
+
export declare const updateCurrentStemItem: (payload: any) => {
|
|
264
|
+
type: EActionTypes;
|
|
265
|
+
payload: any;
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* @title: 更新当前步骤信息
|
|
269
|
+
* @description: 更新当前步骤信息
|
|
270
|
+
* @Author: hongbing.wang
|
|
271
|
+
* @Date: 2024-08-19 10:09
|
|
272
|
+
*/
|
|
273
|
+
export declare const updateClient: (payload: ClientEnum) => {
|
|
274
|
+
type: EActionTypes;
|
|
275
|
+
payload: {
|
|
276
|
+
client: ClientEnum;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* @title: 更新备份信息
|
|
281
|
+
* @description: 更新备份信息
|
|
282
|
+
* @Author: hongbing.wang
|
|
283
|
+
* @Date: 2024-08-19 10:25
|
|
284
|
+
*/
|
|
285
|
+
export declare const backUpProduction: (payload: Partial<State>) => {
|
|
286
|
+
type: EActionTypes;
|
|
287
|
+
payload: Partial<State>;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* @title: 释放备份信息
|
|
291
|
+
* @description: 释放备份信息
|
|
292
|
+
* @param {Partial} payload
|
|
293
|
+
* @Author: hongbing.wang
|
|
294
|
+
* @Date: 2024-08-19 10:27
|
|
295
|
+
*/
|
|
296
|
+
export declare const backUpFree: (payload: Partial<State>) => {
|
|
297
|
+
type: EActionTypes;
|
|
298
|
+
payload: {
|
|
299
|
+
name?: string | undefined;
|
|
300
|
+
symbol?: string | undefined;
|
|
301
|
+
amount?: string | number | undefined;
|
|
302
|
+
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
|
303
|
+
order_id?: string | number | undefined;
|
|
304
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu" | undefined;
|
|
305
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
306
|
+
key?: number | undefined;
|
|
307
|
+
step?: number | undefined;
|
|
308
|
+
title?: string | undefined;
|
|
309
|
+
subTitle?: string | undefined;
|
|
310
|
+
type?: "unset" | "step" | undefined;
|
|
311
|
+
render?: boolean | undefined;
|
|
312
|
+
net?: boolean | undefined;
|
|
313
|
+
component?: string | undefined;
|
|
314
|
+
form?: string | undefined;
|
|
315
|
+
status?: "loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
316
|
+
warn?: string | undefined;
|
|
317
|
+
steps?: {
|
|
318
|
+
/** 用于重置当前步骤 */
|
|
319
|
+
key: number;
|
|
320
|
+
title?: string | undefined;
|
|
321
|
+
text?: string | undefined;
|
|
322
|
+
warn?: string | undefined;
|
|
323
|
+
tip?: string | undefined;
|
|
324
|
+
success?: string | undefined;
|
|
325
|
+
fail?: string | undefined;
|
|
326
|
+
loading?: string | undefined;
|
|
327
|
+
/** 步骤状态 */
|
|
328
|
+
status: StatusType;
|
|
329
|
+
custom?: {
|
|
330
|
+
[key: string]: unknown;
|
|
331
|
+
} | undefined;
|
|
332
|
+
}[] | undefined;
|
|
333
|
+
number?: string | number | undefined;
|
|
334
|
+
device?: {
|
|
335
|
+
[key: string]: unknown;
|
|
336
|
+
} | undefined;
|
|
337
|
+
pay?: {
|
|
338
|
+
[key: string]: unknown;
|
|
339
|
+
} | undefined;
|
|
340
|
+
custom?: {
|
|
341
|
+
[key: string]: unknown;
|
|
342
|
+
} | undefined;
|
|
343
|
+
manual?: {
|
|
344
|
+
title: string;
|
|
345
|
+
text: string;
|
|
346
|
+
status?: boolean | undefined;
|
|
347
|
+
money?: number | undefined;
|
|
348
|
+
} | undefined;
|
|
349
|
+
backup?: Omit<State, "backup"> | undefined;
|
|
350
|
+
client?: ClientEnum | undefined;
|
|
351
|
+
originalParams?: {
|
|
352
|
+
[key: string]: unknown;
|
|
353
|
+
} | undefined;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
export declare function reducers(state: State, action: Action): State;
|
|
357
|
+
export declare const Provider: ({ children, state: providerState, }: {
|
|
358
|
+
children: ReactNode;
|
|
359
|
+
state?: State | undefined;
|
|
360
|
+
}) => JSX.Element;
|
|
361
|
+
export declare function useContextData(): State;
|
|
362
|
+
export declare function useDispatch(): ThunkDispatch<State, Action>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ListItemSkeleton.less';
|
|
3
|
+
interface ListItemSkeletonProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
displayStyle?: 'grid' | 'waterfall';
|
|
7
|
+
showImage?: boolean;
|
|
8
|
+
imageWidth?: number;
|
|
9
|
+
imageHeight?: number;
|
|
10
|
+
rows?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const ListItemSkeleton: React.FC<ListItemSkeletonProps>;
|
|
13
|
+
export default ListItemSkeleton;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ScrollLoader.less';
|
|
3
|
+
export interface ScrollLoadState {
|
|
4
|
+
canLoadMore: boolean;
|
|
5
|
+
totalLoaded: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ScrollLoaderProps {
|
|
8
|
+
/** 是否正在加载 */
|
|
9
|
+
loading: boolean;
|
|
10
|
+
/** 滚动加载状态 */
|
|
11
|
+
scrollLoadState?: ScrollLoadState | null;
|
|
12
|
+
/** 布局方向 */
|
|
13
|
+
layoutDirection: 'horizontal' | 'vertical';
|
|
14
|
+
/** 分页类型 */
|
|
15
|
+
paginationType: 'all' | 'scroll' | 'pager' | 'more';
|
|
16
|
+
}
|
|
17
|
+
declare const ScrollLoader: React.FC<ScrollLoaderProps>;
|
|
18
|
+
export default ScrollLoader;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TabItem } from '../../types';
|
|
3
|
+
export interface TabProps {
|
|
4
|
+
/** 类名 */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** 样式 */
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
/** 当前激活的tab */
|
|
9
|
+
activeKey?: string;
|
|
10
|
+
/** tab项 */
|
|
11
|
+
items: TabItem[];
|
|
12
|
+
/** tab切换回调 */
|
|
13
|
+
onChange?: (key: string) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './TabSkeleton.less';
|
|
3
|
+
interface TabSkeletonProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
tabCount?: number;
|
|
7
|
+
animated?: boolean;
|
|
8
|
+
tabStyle?: 'switch' | 'anchor';
|
|
9
|
+
}
|
|
10
|
+
declare const TabSkeleton: React.FC<TabSkeletonProps>;
|
|
11
|
+
export default TabSkeleton;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { WaterfallLayout } from '../../hooks/useWaterfall';
|
|
3
|
+
import './WaterfallList.less';
|
|
4
|
+
export interface WaterfallListProps<TItem extends {
|
|
5
|
+
id: string | number;
|
|
6
|
+
height?: number;
|
|
7
|
+
width?: number;
|
|
8
|
+
} = any> {
|
|
9
|
+
/** 瀑布流布局数据 */
|
|
10
|
+
layout: WaterfallLayout<TItem>;
|
|
11
|
+
/** 布局方向 */
|
|
12
|
+
layoutDirection: 'horizontal' | 'vertical';
|
|
13
|
+
/** 列间距 */
|
|
14
|
+
columnGap: number;
|
|
15
|
+
/** 行间距 */
|
|
16
|
+
rowGap: number;
|
|
17
|
+
/** 列数 */
|
|
18
|
+
columns: number;
|
|
19
|
+
/** 行数 */
|
|
20
|
+
rows: number;
|
|
21
|
+
/** 注册元素引用的函数 */
|
|
22
|
+
registerItemRef: (id: string | number, element: HTMLElement | null) => void;
|
|
23
|
+
/** 子元素 */
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
/** 自定义渲染函数 */
|
|
26
|
+
renderItem?: (item: TItem, index: number) => ReactNode;
|
|
27
|
+
}
|
|
28
|
+
declare const WaterfallList: <TItem extends {
|
|
29
|
+
id: string | number;
|
|
30
|
+
height?: number | undefined;
|
|
31
|
+
width?: number | undefined;
|
|
32
|
+
} = any>(props: WaterfallListProps<TItem>) => React.ReactElement;
|
|
33
|
+
export default WaterfallList;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { useDevice, getUserAgentInfo } from './useDevice';
|
|
2
|
+
export type { DeviceType, DeviceInfo } from './useDevice';
|
|
3
|
+
export { default as useWaterfall } from './useWaterfall';
|
|
4
|
+
export { useListState } from './useListState';
|
|
5
|
+
export type { ListState, ListAction, UseListStateProps, UseListStateReturn } from './useListState';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare type DeviceType = 'pc' | 'pad' | 'mobile';
|
|
2
|
+
export interface DeviceInfo {
|
|
3
|
+
type: DeviceType;
|
|
4
|
+
isMobile: boolean;
|
|
5
|
+
isPad: boolean;
|
|
6
|
+
isPc: boolean;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 设备检测Hook
|
|
12
|
+
* 根据屏幕宽度和用户代理判断当前设备类型
|
|
13
|
+
*/
|
|
14
|
+
export declare const useDevice: () => DeviceInfo;
|
|
15
|
+
/**
|
|
16
|
+
* 获取用户代理信息
|
|
17
|
+
* @returns 用户代理相关信息
|
|
18
|
+
*/
|
|
19
|
+
export declare const getUserAgentInfo: () => {
|
|
20
|
+
isMobileUA: boolean;
|
|
21
|
+
isTabletUA: boolean;
|
|
22
|
+
isDesktopUA: boolean;
|
|
23
|
+
userAgent: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { TabItem, LoadDataParams } from '../types';
|
|
2
|
+
export interface ListState {
|
|
3
|
+
activeTab: string;
|
|
4
|
+
currentPage: number;
|
|
5
|
+
isStickyActive: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare type ListAction = {
|
|
8
|
+
type: 'SET_ACTIVE_TAB';
|
|
9
|
+
payload: string;
|
|
10
|
+
} | {
|
|
11
|
+
type: 'SET_CURRENT_PAGE';
|
|
12
|
+
payload: number;
|
|
13
|
+
} | {
|
|
14
|
+
type: 'SET_STICKY_ACTIVE';
|
|
15
|
+
payload: boolean;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'RESET_PAGE';
|
|
18
|
+
};
|
|
19
|
+
export interface UseListStateProps {
|
|
20
|
+
/** 外部传入的当前页码 */
|
|
21
|
+
externalCurrentPage?: number;
|
|
22
|
+
/** tab数据 */
|
|
23
|
+
tabItems: TabItem[];
|
|
24
|
+
/** 默认页面大小 */
|
|
25
|
+
defaultPageSize: number;
|
|
26
|
+
/** 数据加载回调 */
|
|
27
|
+
onLoadData?: (params: LoadDataParams) => void;
|
|
28
|
+
}
|
|
29
|
+
export interface UseListStateReturn {
|
|
30
|
+
state: ListState;
|
|
31
|
+
setActiveTab: (tab: string) => void;
|
|
32
|
+
setCurrentPage: (page: number) => void;
|
|
33
|
+
setStickyActive: (active: boolean) => void;
|
|
34
|
+
resetPage: () => void;
|
|
35
|
+
handleTabChange: (key: string) => void;
|
|
36
|
+
handlePageChange: (page: number, size?: number) => void;
|
|
37
|
+
handleShowSizeChange: (current: number, size: number) => void;
|
|
38
|
+
handleLoadMore: () => void;
|
|
39
|
+
handleViewLess: () => void;
|
|
40
|
+
handleScrollLoad: () => void;
|
|
41
|
+
actualCurrentPage: number;
|
|
42
|
+
}
|
|
43
|
+
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, }: UseListStateProps) => UseListStateReturn;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface WaterfallItem {
|
|
2
|
+
id: string | number;
|
|
3
|
+
data: any;
|
|
4
|
+
height?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface WaterfallTrack<T = any> {
|
|
8
|
+
items: T[];
|
|
9
|
+
size: number;
|
|
10
|
+
}
|
|
11
|
+
export interface WaterfallLayoutOptions {
|
|
12
|
+
tracks: number;
|
|
13
|
+
trackGap: number;
|
|
14
|
+
itemGap: number;
|
|
15
|
+
direction: 'vertical' | 'horizontal';
|
|
16
|
+
}
|
|
17
|
+
export interface WaterfallLayout<T = any> {
|
|
18
|
+
tracks: WaterfallTrack<T>[];
|
|
19
|
+
totalSize: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const useWaterfall: <T extends {
|
|
22
|
+
id: string | number;
|
|
23
|
+
height?: number | undefined;
|
|
24
|
+
width?: number | undefined;
|
|
25
|
+
}>(items: T[], options: WaterfallLayoutOptions) => {
|
|
26
|
+
layout: WaterfallLayout<T>;
|
|
27
|
+
registerItemRef: (id: string | number, element: HTMLElement | null) => void;
|
|
28
|
+
measureItemSize: (id: string | number) => {
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
};
|
|
32
|
+
recalculateLayout: () => void;
|
|
33
|
+
};
|
|
34
|
+
export default useWaterfall;
|