@pisell/private-materials 6.6.41 → 6.6.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +16 -16
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.js +13 -13
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Summary/index.d.ts +35 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/appointmentBooking/locales.d.ts +603 -0
- package/es/components/booking/components/voucher/utils.d.ts +5 -0
- package/es/components/booking/dashboard/serve.d.ts +2 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- 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 +7 -0
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/es/components/booking/info/index.d.ts +4 -0
- 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/constants.d.ts +1 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info2/cartClientCard/locales.d.ts +33 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/locales.d.ts +1619 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentProvider.d.ts +13 -0
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/es/components/checkout/components/PaymentResultToast/index.d.ts +9 -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 +11 -0
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/DiscountTextMode.d.ts +7 -0
- package/es/components/checkout/components/WalletPassModule/components/WalletPassTextMode/index.d.ts +5 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/constants.d.ts +2 -0
- package/es/components/checkout/export.d.ts +9 -0
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/es/components/checkout/index.d.ts +5 -0
- package/es/components/checkout/locales.d.ts +853 -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/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/hooks.d.ts +33 -0
- package/es/components/eftpos/locales.d.ts +163 -0
- package/es/components/eftposPay/EFTPos.d.ts +14 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/const.d.ts +195 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- 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 +608 -0
- package/es/components/eftposPay/manufacturer.d.ts +8 -0
- package/es/components/eftposPay/serve.d.ts +16 -0
- package/es/components/eftposPay/store/index.d.ts +362 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
- package/es/components/list/List.d.ts +5 -0
- package/es/components/list/ResponsiveWrapper.d.ts +16 -0
- package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/es/components/list/components/EmptyState/EmptyState.d.ts +20 -0
- package/es/components/list/components/EmptyState/index.d.ts +2 -0
- 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/Pagination/Pagination.d.ts +30 -0
- package/es/components/list/components/Pagination/index.d.ts +1 -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/examples/GroupedListExample.d.ts +3 -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/index.d.ts +10 -0
- package/es/components/list/locales.d.ts +108 -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 +8 -0
- package/es/components/pay/toB/components/Content/index.d.ts +4 -0
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/components/EFTPOS/index.d.ts +8 -0
- package/es/components/pay/toB/components/index.d.ts +5 -0
- package/es/components/pay/toB/hooks.d.ts +12 -0
- package/es/components/pay/toB/locales.d.ts +88 -0
- package/es/components/pay/toB/paymentMethods/index.d.ts +11 -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/GlobePayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -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 +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
- package/es/components/ruleSetting/locales.d.ts +78 -0
- package/es/components/schedules/locales.d.ts +143 -0
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/locales.d.ts +58 -0
- package/es/components/shoppingCart/mock.d.ts +40 -0
- package/es/components/shoppingCart/type.d.ts +50 -0
- package/es/components/shoppingCart/utils.d.ts +63 -0
- package/es/components/subTotal/locales.d.ts +68 -0
- package/es/components/systemSettings/registry/locales.d.ts +456 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/types.d.ts +128 -0
- package/es/components/taxSelect/locales.d.ts +38 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +9 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -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/useProducts.d.ts +12 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/es/components/ticketBooking/locales.d.ts +328 -0
- package/es/components/ticketBooking/serve.d.ts +288 -0
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/es/components/walletList/serve.d.ts +43 -0
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +11 -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/SearchBar/index.d.ts +17 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +4 -0
- package/es/components/workSpaceList/components/Sort/index.d.ts +7 -0
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
- package/es/hooks/index.d.ts +10 -0
- package/es/hooks/useEngineContext.d.ts +3 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/useLogger.d.ts +2 -0
- package/es/hooks/useModal.d.ts +35 -0
- package/es/hooks/useModal.example.d.ts +12 -0
- package/es/hooks/useModal.integration.example.d.ts +15 -0
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/noteModal/locales.d.ts +53 -0
- package/es/plus/noteModal/types.d.ts +19 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +5 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +9 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +164 -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/productSelect/components/pisellPriceText/index.d.ts +14 -0
- package/es/plus/saasAttendance/locales.d.ts +528 -0
- package/es/plus/saasAttendance/settings/types.d.ts +130 -0
- package/es/plus/selectHolder/locales.d.ts +38 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +3 -3
- package/es/plus/walletPassGallery/components/timelineSection/index.js +6 -1
- package/es/pro/Login2.0/locales.d.ts +903 -0
- package/es/pro/Login2.0/shared/types.d.ts +234 -0
- package/es/pro/NumberKeyboardPopover/index.d.ts +36 -0
- package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -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/pisellPriceRadio/index.d.ts +26 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -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 +28 -0
- package/es/pro/priceKeyboard/index.d.ts +3 -0
- package/es/pro/skuDetailModal/locales.d.ts +78 -0
- package/es/pro/skuDetailModal/types.d.ts +352 -0
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Summary/index.d.ts +35 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/appointmentBooking/locales.d.ts +603 -0
- package/lib/components/booking/components/voucher/utils.d.ts +5 -0
- package/lib/components/booking/dashboard/serve.d.ts +2 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- 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 +7 -0
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/lib/components/booking/info/index.d.ts +4 -0
- 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/constants.d.ts +1 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +33 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/locales.d.ts +1619 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentProvider.d.ts +13 -0
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/lib/components/checkout/components/PaymentResultToast/index.d.ts +9 -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 +11 -0
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/DiscountTextMode.d.ts +7 -0
- package/lib/components/checkout/components/WalletPassModule/components/WalletPassTextMode/index.d.ts +5 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/constants.d.ts +2 -0
- package/lib/components/checkout/export.d.ts +9 -0
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/lib/components/checkout/index.d.ts +5 -0
- package/lib/components/checkout/locales.d.ts +853 -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/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/hooks.d.ts +33 -0
- package/lib/components/eftpos/locales.d.ts +163 -0
- package/lib/components/eftposPay/EFTPos.d.ts +14 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/const.d.ts +195 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- 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 +608 -0
- package/lib/components/eftposPay/manufacturer.d.ts +8 -0
- package/lib/components/eftposPay/serve.d.ts +16 -0
- package/lib/components/eftposPay/store/index.d.ts +362 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
- package/lib/components/list/List.d.ts +5 -0
- package/lib/components/list/ResponsiveWrapper.d.ts +16 -0
- package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +20 -0
- package/lib/components/list/components/EmptyState/index.d.ts +2 -0
- 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/Pagination/Pagination.d.ts +30 -0
- package/lib/components/list/components/Pagination/index.d.ts +1 -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/examples/GroupedListExample.d.ts +3 -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/index.d.ts +10 -0
- package/lib/components/list/locales.d.ts +108 -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 +8 -0
- package/lib/components/pay/toB/components/Content/index.d.ts +4 -0
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/components/EFTPOS/index.d.ts +8 -0
- package/lib/components/pay/toB/components/index.d.ts +5 -0
- package/lib/components/pay/toB/hooks.d.ts +12 -0
- package/lib/components/pay/toB/locales.d.ts +88 -0
- package/lib/components/pay/toB/paymentMethods/index.d.ts +11 -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/GlobePayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -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 +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/lib/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
- package/lib/components/ruleSetting/locales.d.ts +78 -0
- package/lib/components/schedules/locales.d.ts +143 -0
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/locales.d.ts +58 -0
- package/lib/components/shoppingCart/mock.d.ts +40 -0
- package/lib/components/shoppingCart/type.d.ts +50 -0
- package/lib/components/shoppingCart/utils.d.ts +63 -0
- package/lib/components/subTotal/locales.d.ts +68 -0
- package/lib/components/systemSettings/registry/locales.d.ts +456 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/types.d.ts +128 -0
- package/lib/components/taxSelect/locales.d.ts +38 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +9 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -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/useProducts.d.ts +12 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/lib/components/ticketBooking/locales.d.ts +328 -0
- package/lib/components/ticketBooking/serve.d.ts +288 -0
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/lib/components/walletList/serve.d.ts +43 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +11 -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/SearchBar/index.d.ts +17 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +4 -0
- package/lib/components/workSpaceList/components/Sort/index.d.ts +7 -0
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
- package/lib/hooks/index.d.ts +10 -0
- package/lib/hooks/useEngineContext.d.ts +3 -0
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/useLogger.d.ts +2 -0
- package/lib/hooks/useModal.d.ts +35 -0
- package/lib/hooks/useModal.example.d.ts +12 -0
- package/lib/hooks/useModal.integration.example.d.ts +15 -0
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/noteModal/locales.d.ts +53 -0
- package/lib/plus/noteModal/types.d.ts +19 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +20 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +5 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +9 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +164 -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/productSelect/components/pisellPriceText/index.d.ts +14 -0
- package/lib/plus/saasAttendance/locales.d.ts +528 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +130 -0
- package/lib/plus/selectHolder/locales.d.ts +38 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +15 -8
- package/lib/pro/Login2.0/locales.d.ts +903 -0
- package/lib/pro/Login2.0/shared/types.d.ts +234 -0
- package/lib/pro/NumberKeyboardPopover/index.d.ts +36 -0
- package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -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/pisellPriceRadio/index.d.ts +26 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -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 +28 -0
- package/lib/pro/priceKeyboard/index.d.ts +3 -0
- package/lib/pro/skuDetailModal/locales.d.ts +78 -0
- package/lib/pro/skuDetailModal/types.d.ts +352 -0
- package/package.json +2 -2
|
@@ -175,10 +175,10 @@ export declare const getProductOriginTotalPrice: (item: any) => number;
|
|
|
175
175
|
export declare const getDuration: (duration: number | {
|
|
176
176
|
type: string;
|
|
177
177
|
value: number;
|
|
178
|
-
}) => number |
|
|
178
|
+
}) => number | {
|
|
179
179
|
type: string;
|
|
180
180
|
value: number;
|
|
181
|
-
};
|
|
181
|
+
} | "flexible";
|
|
182
182
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
183
183
|
export declare const getIsEdit: (state: any) => boolean;
|
|
184
184
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaymentModalProps } from './PaymentModal';
|
|
3
|
+
interface PaymentContextType {
|
|
4
|
+
openPaymentModal: (props: PaymentModalProps) => void;
|
|
5
|
+
closePaymentModal: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const PaymentProvider: React.FC<{
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const usePaymentModal: () => PaymentContextType;
|
|
11
|
+
export declare const openPaymentModal: (props: PaymentModalProps) => void;
|
|
12
|
+
export declare const closePaymentModal: () => void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.text.others': string;
|
|
4
|
+
'pisell2.text.order-note': string;
|
|
5
|
+
'pisell2.text.print-receipt': string;
|
|
6
|
+
'pisell2.text.save-pay-later': string;
|
|
7
|
+
'pisell2.text.send-link': string;
|
|
8
|
+
'pisell2.text.manual-order-discount': string;
|
|
9
|
+
'pisell2.text.order-no-payment-required': string;
|
|
10
|
+
'pisell2.text.order-no-payment-cannot-send-link': string;
|
|
11
|
+
'pisell2.text.additional-module.order-discount': string;
|
|
12
|
+
};
|
|
13
|
+
'zh-CN': {
|
|
14
|
+
'pisell2.text.others': string;
|
|
15
|
+
'pisell2.text.order-note': string;
|
|
16
|
+
'pisell2.text.print-receipt': string;
|
|
17
|
+
'pisell2.text.save-pay-later': string;
|
|
18
|
+
'pisell2.text.send-link': string;
|
|
19
|
+
'pisell2.text.manual-order-discount': string;
|
|
20
|
+
'pisell2.text.order-no-payment-required': string;
|
|
21
|
+
'pisell2.text.order-no-payment-cannot-send-link': string;
|
|
22
|
+
'pisell2.text.additional-module.order-discount': string;
|
|
23
|
+
};
|
|
24
|
+
'zh-HK': {
|
|
25
|
+
'pisell2.text.others': string;
|
|
26
|
+
'pisell2.text.order-note': string;
|
|
27
|
+
'pisell2.text.print-receipt': string;
|
|
28
|
+
'pisell2.text.save-pay-later': string;
|
|
29
|
+
'pisell2.text.send-link': string;
|
|
30
|
+
'pisell2.text.manual-order-discount': string;
|
|
31
|
+
'pisell2.text.order-no-payment-required': string;
|
|
32
|
+
'pisell2.text.order-no-payment-cannot-send-link': string;
|
|
33
|
+
'pisell2.text.additional-module.order-discount': string;
|
|
34
|
+
};
|
|
35
|
+
ja: {
|
|
36
|
+
'pisell2.text.others': string;
|
|
37
|
+
'pisell2.text.order-note': string;
|
|
38
|
+
'pisell2.text.print-receipt': string;
|
|
39
|
+
'pisell2.text.save-pay-later': string;
|
|
40
|
+
'pisell2.text.send-link': string;
|
|
41
|
+
'pisell2.text.manual-order-discount': string;
|
|
42
|
+
'pisell2.text.order-no-payment-required': string;
|
|
43
|
+
'pisell2.text.order-no-payment-cannot-send-link': string;
|
|
44
|
+
'pisell2.text.additional-module.order-discount': string;
|
|
45
|
+
};
|
|
46
|
+
pt: {
|
|
47
|
+
'pisell2.text.others': string;
|
|
48
|
+
'pisell2.text.order-note': string;
|
|
49
|
+
'pisell2.text.print-receipt': string;
|
|
50
|
+
'pisell2.text.save-pay-later': string;
|
|
51
|
+
'pisell2.text.send-link': string;
|
|
52
|
+
'pisell2.text.manual-order-discount': string;
|
|
53
|
+
'pisell2.text.order-no-payment-required': string;
|
|
54
|
+
'pisell2.text.order-no-payment-cannot-send-link': string;
|
|
55
|
+
'pisell2.text.additional-module.order-discount': string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StatusClassName, ActionButtonGroupList } from './types';
|
|
3
|
+
interface ShowPaymentResultToastConfig {
|
|
4
|
+
/** 状态样式类名 */
|
|
5
|
+
statusClassName: StatusClassName;
|
|
6
|
+
/** 标题 */
|
|
7
|
+
title: string;
|
|
8
|
+
/** 副标题 */
|
|
9
|
+
subtitle?: React.ReactNode;
|
|
10
|
+
/** 找零文本 */
|
|
11
|
+
changeDueText?: string;
|
|
12
|
+
/** 操作按钮 */
|
|
13
|
+
actionButtons?: ActionButtonGroupList;
|
|
14
|
+
/** 自动关闭配置 */
|
|
15
|
+
autoClose?: boolean;
|
|
16
|
+
/** 自动关闭延迟时间(秒) */
|
|
17
|
+
autoCloseDelay?: number;
|
|
18
|
+
/** 是否显示倒计时进度 */
|
|
19
|
+
showCountdownProgress?: boolean;
|
|
20
|
+
/** 倒计时完成回调 */
|
|
21
|
+
onCountdownComplete?: () => void;
|
|
22
|
+
/** 自定义关闭回调 */
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
/** 是否显示右上角关闭按钮 */
|
|
25
|
+
closable?: boolean;
|
|
26
|
+
/** 是否启用点击外部区域关闭弹窗(使用纯JS实现) */
|
|
27
|
+
clickOutsideToClose?: boolean;
|
|
28
|
+
/** 是否显示遮罩 */
|
|
29
|
+
mask?: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface PaymentResultToastContextType {
|
|
32
|
+
/** 显示成功弹窗 */
|
|
33
|
+
showSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
|
|
34
|
+
/** 显示失败弹窗 */
|
|
35
|
+
showFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
|
|
36
|
+
/** 显示钱包通行证失败弹窗 */
|
|
37
|
+
showWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
|
|
38
|
+
/** 显示部分支付弹窗 */
|
|
39
|
+
showPartiallyPaid: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
|
|
40
|
+
/** 显示自定义状态弹窗 */
|
|
41
|
+
showToast: (config: ShowPaymentResultToastConfig) => string;
|
|
42
|
+
/** 关闭弹窗 */
|
|
43
|
+
closeToast: () => void;
|
|
44
|
+
/** 是否正在显示弹窗 */
|
|
45
|
+
isVisible: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare const PaymentResultToastProvider: React.FC<{
|
|
48
|
+
children: React.ReactNode;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const usePaymentResultToast: () => PaymentResultToastContextType;
|
|
51
|
+
declare class GlobalToastManager {
|
|
52
|
+
private instances;
|
|
53
|
+
private nextId;
|
|
54
|
+
private readonly TOAST_HEIGHT;
|
|
55
|
+
private readonly TOAST_MARGIN;
|
|
56
|
+
private readonly BOTTOM_OFFSET;
|
|
57
|
+
private readonly LEFT_OFFSET;
|
|
58
|
+
private cachedBottomOffset;
|
|
59
|
+
private cachedCenterOffset;
|
|
60
|
+
private tillButton;
|
|
61
|
+
setTillButton(tillButton: any): void;
|
|
62
|
+
private generateId;
|
|
63
|
+
private calculateAndCacheBottomOffset;
|
|
64
|
+
private calculateAndCacheCenterOffset;
|
|
65
|
+
private resetBottomOffsetCache;
|
|
66
|
+
private calculateBottomPosition;
|
|
67
|
+
private updatePositions;
|
|
68
|
+
addToast(config: ShowPaymentResultToastConfig): string;
|
|
69
|
+
removeToast(id: string): void;
|
|
70
|
+
clearAll(): void;
|
|
71
|
+
getCount(): number;
|
|
72
|
+
initializeResizeListener(): () => void;
|
|
73
|
+
}
|
|
74
|
+
declare const globalToastManager: GlobalToastManager;
|
|
75
|
+
export declare const showPaymentResultToastSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
|
76
|
+
export declare const showPaymentResultToastFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
|
77
|
+
export declare const showPaymentResultToastWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
|
78
|
+
export declare const showPaymentResultToastPartiallyPaid: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
|
79
|
+
export declare const showPaymentResultToast: (config: ShowPaymentResultToastConfig) => Promise<string>;
|
|
80
|
+
export declare const closePaymentResultToast: (id?: string) => void;
|
|
81
|
+
export declare const clearAllPaymentResultToasts: () => void;
|
|
82
|
+
export declare const getPaymentResultToastCount: () => number;
|
|
83
|
+
export type { ShowPaymentResultToastConfig, PaymentResultToastContextType };
|
|
84
|
+
export declare const setTillButton: (tillButton: any) => void;
|
|
85
|
+
export { globalToastManager };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaymentResultToastProps, PaymentResultToastConfig } from './types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare const PaymentResultToast: React.FC<PaymentResultToastProps & PaymentResultToastConfig>;
|
|
5
|
+
export default PaymentResultToast;
|
|
6
|
+
export { PaymentResultToastProvider, usePaymentResultToast, showPaymentResultToastSuccess, showPaymentResultToastFailed, showPaymentResultToastWalletPassFailed, showPaymentResultToastPartiallyPaid, showPaymentResultToast, closePaymentResultToast, clearAllPaymentResultToasts, getPaymentResultToastCount, setTillButton, globalToastManager } from './PaymentResultToastProvider';
|
|
7
|
+
export { closeAllPaymentResultToasts, hasActivePaymentResultToasts, getToastCount, debounce, getDefaultModalConfig } from './utils';
|
|
8
|
+
export type { PaymentResultToastProps, PaymentResultToastConfig, ActionButtonProps, ActionButtonGroupList, StatusClassName } from './types';
|
|
9
|
+
export type { ShowPaymentResultToastConfig, PaymentResultToastContextType } from './PaymentResultToastProvider';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MenuProps, ButtonProps } from 'antd';
|
|
3
|
+
/** 操作按钮配置 */
|
|
4
|
+
export interface ActionButtonProps {
|
|
5
|
+
/** 按钮唯一标识 */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** 是否为更多操作按钮(下拉菜单) */
|
|
8
|
+
isMore?: boolean;
|
|
9
|
+
/** 下拉菜单数据,仅在 isMore 为 true 时生效 */
|
|
10
|
+
menuData?: MenuProps['items'];
|
|
11
|
+
/** 按钮属性配置 */
|
|
12
|
+
buttonProps?: ButtonProps;
|
|
13
|
+
}
|
|
14
|
+
/** 操作按钮组列表,支持多行按钮组 */
|
|
15
|
+
export declare type ActionButtonGroupList = ActionButtonProps[][];
|
|
16
|
+
/** 状态样式类型 */
|
|
17
|
+
export declare type StatusClassName = 'success' | 'failed' | 'wallet-pass-failed' | 'partially-paid';
|
|
18
|
+
export interface PaymentResultToastProps {
|
|
19
|
+
/** 是否可见 */
|
|
20
|
+
visible?: boolean;
|
|
21
|
+
/** 关闭回调 */
|
|
22
|
+
onClose?: () => void;
|
|
23
|
+
/** 状态样式类名,用于控制样式主题 */
|
|
24
|
+
statusClassName?: StatusClassName;
|
|
25
|
+
/** 标题文本(已计算好的显示文本)- 已不再显示 */
|
|
26
|
+
title?: string;
|
|
27
|
+
/** 副标题内容(已计算好的金额显示内容,支持自定义样式) */
|
|
28
|
+
subtitle?: React.ReactNode;
|
|
29
|
+
/** 找零信息文本(已计算好的找零显示文本) */
|
|
30
|
+
changeDueText?: string;
|
|
31
|
+
/** 底部操作按钮组配置 */
|
|
32
|
+
actionButtons?: ActionButtonGroupList;
|
|
33
|
+
/** 是否启用自动关闭 */
|
|
34
|
+
autoClose?: boolean;
|
|
35
|
+
/** 倒计时秒数,控制自动关闭的时间(秒) */
|
|
36
|
+
autoCloseDelay?: number;
|
|
37
|
+
/** 是否显示倒计时进度条 */
|
|
38
|
+
showCountdownProgress?: boolean;
|
|
39
|
+
/** 倒计时完成回调 */
|
|
40
|
+
onCountdownComplete?: () => void;
|
|
41
|
+
/** 自定义样式类名,用于样式隔离和扩展 */
|
|
42
|
+
className?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface PaymentResultToastConfig {
|
|
45
|
+
/** 弹窗宽度 */
|
|
46
|
+
width?: number;
|
|
47
|
+
/** 弹窗高度 */
|
|
48
|
+
height?: number;
|
|
49
|
+
/** 是否显示遮罩 */
|
|
50
|
+
mask?: boolean;
|
|
51
|
+
/** 是否可通过点击遮罩关闭(已由外部计算确定) */
|
|
52
|
+
maskClosable?: boolean;
|
|
53
|
+
/** 是否显示右上角关闭按钮 */
|
|
54
|
+
closable?: boolean;
|
|
55
|
+
/** 弹窗层级 */
|
|
56
|
+
zIndex?: number;
|
|
57
|
+
/** 是否启用点击外部区域关闭弹窗(使用纯JS实现) */
|
|
58
|
+
clickOutsideToClose?: boolean;
|
|
59
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 防抖函数
|
|
3
|
+
* @param func 要防抖的函数
|
|
4
|
+
* @param wait 等待时间(毫秒)
|
|
5
|
+
* @returns 防抖后的函数
|
|
6
|
+
*/
|
|
7
|
+
export declare const debounce: <T extends (...args: any[]) => any>(func: T, wait: number) => (...args: Parameters<T>) => void;
|
|
8
|
+
/**
|
|
9
|
+
* 获取弹窗配置的默认值
|
|
10
|
+
* @returns 默认的弹窗配置
|
|
11
|
+
*/
|
|
12
|
+
export declare const getDefaultModalConfig: () => {
|
|
13
|
+
width: number;
|
|
14
|
+
mask: boolean;
|
|
15
|
+
maskClosable: boolean;
|
|
16
|
+
closable: boolean;
|
|
17
|
+
zIndex: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 一键关闭当前页面上所有的 PaymentResultToast
|
|
21
|
+
* 这个函数是对现有 clearAllPaymentResultToasts 函数的封装,
|
|
22
|
+
* 提供了更友好的 API 和额外的配置选项
|
|
23
|
+
*
|
|
24
|
+
* 使用方法:
|
|
25
|
+
* - closeAllPaymentResultToasts() // 带动画关闭
|
|
26
|
+
* - closeAllPaymentResultToasts({ immediate: true }) // 立即关闭
|
|
27
|
+
*
|
|
28
|
+
* @param options 配置选项
|
|
29
|
+
* @param options.immediate 是否立即关闭(跳过退出动画),默认 false
|
|
30
|
+
* @returns Promise<void> 返回 Promise,在所有 Toast 关闭完成后 resolve
|
|
31
|
+
*/
|
|
32
|
+
export declare const closeAllPaymentResultToasts: (options?: {
|
|
33
|
+
immediate?: boolean;
|
|
34
|
+
}) => Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* 获取当前页面上 PaymentResultToast 的数量
|
|
37
|
+
* @returns number 当前显示的 Toast 数量
|
|
38
|
+
*/
|
|
39
|
+
export declare const getToastCount: () => number;
|
|
40
|
+
/**
|
|
41
|
+
* 检查当前页面是否有正在显示的 PaymentResultToast
|
|
42
|
+
* @returns boolean 是否有 Toast 正在显示
|
|
43
|
+
*/
|
|
44
|
+
export declare const hasActivePaymentResultToasts: () => boolean;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties, UIEvent } from 'react';
|
|
2
|
+
export interface ScrollableListProps {
|
|
3
|
+
/** 列表项数据 */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** 容器高度 */
|
|
6
|
+
height?: number | string;
|
|
7
|
+
/** 最大高度 */
|
|
8
|
+
maxHeight?: number | string;
|
|
9
|
+
/** 渐变高度 */
|
|
10
|
+
gradientHeight?: number;
|
|
11
|
+
/** 渐变颜色 */
|
|
12
|
+
gradientColor?: string;
|
|
13
|
+
/** 列表容器样式 */
|
|
14
|
+
containerStyle?: CSSProperties;
|
|
15
|
+
/** 列表内容样式 */
|
|
16
|
+
contentStyle?: CSSProperties;
|
|
17
|
+
/** 自定义渐变样式 */
|
|
18
|
+
gradientStyle?: CSSProperties;
|
|
19
|
+
/** 是否显示滚动条 */
|
|
20
|
+
showScrollbar?: boolean;
|
|
21
|
+
/** 滚动事件回调 */
|
|
22
|
+
onScroll?: (event: UIEvent<HTMLDivElement>) => void;
|
|
23
|
+
/** 是否需要滚动状态改变回调 */
|
|
24
|
+
onScrollableChange?: (isScrollable: boolean) => void;
|
|
25
|
+
/** 列数设置,1为单列,大于1为多列,'auto'为自适应列数 */
|
|
26
|
+
columnCount?: number | 'auto';
|
|
27
|
+
/** 列间距,默认为16px */
|
|
28
|
+
columnGap?: number | string;
|
|
29
|
+
/** 行间距,默认为16px */
|
|
30
|
+
rowGap?: number | string;
|
|
31
|
+
/** 每列最小宽度(当columnCount为'auto'时生效) */
|
|
32
|
+
minColumnWidth?: number | string;
|
|
33
|
+
}
|
|
34
|
+
export interface ScrollState {
|
|
35
|
+
/** 是否需要滚动 */
|
|
36
|
+
isScrollable: boolean;
|
|
37
|
+
/** 是否显示顶部渐变 */
|
|
38
|
+
showTopGradient: boolean;
|
|
39
|
+
/** 是否显示底部渐变 */
|
|
40
|
+
showBottomGradient: boolean;
|
|
41
|
+
/** 当前滚动位置 */
|
|
42
|
+
scrollTop: number;
|
|
43
|
+
/** 可滚动的最大距离 */
|
|
44
|
+
maxScrollTop: number;
|
|
45
|
+
}
|
|
46
|
+
export interface GradientConfig {
|
|
47
|
+
/** 渐变高度 */
|
|
48
|
+
height: number;
|
|
49
|
+
/** 渐变颜色 */
|
|
50
|
+
color: string;
|
|
51
|
+
/** 自定义样式 */
|
|
52
|
+
style?: CSSProperties;
|
|
53
|
+
}
|
package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellWalletPassCardProps } from '../../types';
|
|
3
|
+
export declare const TestModule: () => React.JSX.Element;
|
|
4
|
+
declare const ConflictModal: (props: {
|
|
5
|
+
currentItem: PisellWalletPassCardProps;
|
|
6
|
+
newItem: PisellWalletPassCardProps;
|
|
7
|
+
onSwitch: (val: PisellWalletPassCardProps) => void;
|
|
8
|
+
onSave: (val: PisellWalletPassCardProps) => void;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export default ConflictModal;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { CurrentOrderInfo } from '../../types';
|
|
2
|
+
export interface PisellWalletPassCardProps {
|
|
3
|
+
id: number;
|
|
4
|
+
/** 卡片样式 */
|
|
5
|
+
type: 'default' | 'mini';
|
|
6
|
+
/** 商品名称 */
|
|
7
|
+
name: string;
|
|
8
|
+
/** 二维码 */
|
|
9
|
+
qrCode: string;
|
|
10
|
+
/** 共享店铺名称 */
|
|
11
|
+
storeName: string;
|
|
12
|
+
/** 余额 */
|
|
13
|
+
balance?: number;
|
|
14
|
+
/** 识别码编号 */
|
|
15
|
+
code: string;
|
|
16
|
+
/** 有效期 */
|
|
17
|
+
validDate: string;
|
|
18
|
+
/** 使用金额 */
|
|
19
|
+
redeem?: number;
|
|
20
|
+
/** 是否禁用 */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** 禁用原因 */
|
|
23
|
+
disabledReason?: string;
|
|
24
|
+
/** 是否展示禁用原因 */
|
|
25
|
+
showDisabledReason?: boolean;
|
|
26
|
+
/** 封面图 */
|
|
27
|
+
cover?: string;
|
|
28
|
+
/** 余额标题文案 */
|
|
29
|
+
balanceTitle?: string;
|
|
30
|
+
/** 使用金额标题文案 */
|
|
31
|
+
redeemTitle?: string;
|
|
32
|
+
/** 是否选中 */
|
|
33
|
+
active?: boolean;
|
|
34
|
+
/** 是否展示商品名称 */
|
|
35
|
+
showName?: boolean;
|
|
36
|
+
/** 是否展示共享店铺名称 */
|
|
37
|
+
showStoreName?: boolean;
|
|
38
|
+
/** 是否展示使用金额 */
|
|
39
|
+
showRedeem?: boolean;
|
|
40
|
+
/** 是否展示余额 */
|
|
41
|
+
showBalance?: boolean;
|
|
42
|
+
/** 是否展示识别码编号 */
|
|
43
|
+
showCode?: boolean;
|
|
44
|
+
/** 是否展示有效期 */
|
|
45
|
+
showValidDate?: boolean;
|
|
46
|
+
/** 是否展示右上角详情按钮 */
|
|
47
|
+
showDetail?: boolean;
|
|
48
|
+
/** 是否展示qrCode */
|
|
49
|
+
showQrCode?: boolean;
|
|
50
|
+
/** 是否展示封面 */
|
|
51
|
+
showCover?: boolean;
|
|
52
|
+
/** 是否展示余额货币符号 */
|
|
53
|
+
showBalanceSymbol?: boolean;
|
|
54
|
+
/** 展示操作按钮 */
|
|
55
|
+
showActions?: boolean;
|
|
56
|
+
/** 操作按钮配置 */
|
|
57
|
+
actions?: {
|
|
58
|
+
/** 按钮展示方式 */
|
|
59
|
+
layout: 'expanded' | 'collapsed';
|
|
60
|
+
/** detail 按钮配置 */
|
|
61
|
+
detail?: {
|
|
62
|
+
visible: boolean;
|
|
63
|
+
iconColor: string;
|
|
64
|
+
};
|
|
65
|
+
/** edit按钮配置 */
|
|
66
|
+
edit?: {
|
|
67
|
+
visible: boolean;
|
|
68
|
+
iconColor: string;
|
|
69
|
+
dialogTitle: string;
|
|
70
|
+
enableDialog: boolean;
|
|
71
|
+
fields: {
|
|
72
|
+
name: string;
|
|
73
|
+
label: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
78
|
+
beforeEdit?: (value: any) => Promise<any> | boolean | void;
|
|
79
|
+
/** 编辑弹窗点击提交 */
|
|
80
|
+
onConfirmEdit?: (value: any) => void;
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}
|
|
83
|
+
export interface WalletPassModuleProps {
|
|
84
|
+
orderInfo?: CurrentOrderInfo;
|
|
85
|
+
onSelectChange?: (select: {
|
|
86
|
+
voucher_id: number;
|
|
87
|
+
amount: number;
|
|
88
|
+
}[]) => void;
|
|
89
|
+
paymentItems?: PaymentItem[];
|
|
90
|
+
customAmount?: string;
|
|
91
|
+
clientId?: number;
|
|
92
|
+
}
|
|
93
|
+
export interface WalletPassHeaderProps {
|
|
94
|
+
customerName: string;
|
|
95
|
+
selectedCount: number;
|
|
96
|
+
expiredCount: number;
|
|
97
|
+
isCardMode: boolean;
|
|
98
|
+
onExpiredClick: () => void;
|
|
99
|
+
onBestSaving: () => void;
|
|
100
|
+
onClearAll: () => void;
|
|
101
|
+
onToggleDisplayMode: () => void;
|
|
102
|
+
}
|
|
103
|
+
export interface WalletPassCardDisplayProps {
|
|
104
|
+
isCardMode: boolean;
|
|
105
|
+
cardData: PisellWalletPassCardProps[];
|
|
106
|
+
selectedWalletIds: number[];
|
|
107
|
+
onSelectWallet: (selectedIds: number[]) => void;
|
|
108
|
+
onDetail: (record: any, index: number) => void;
|
|
109
|
+
onConfirmEditAmount: (value: number, index: number, data: any) => void;
|
|
110
|
+
onBeforeEditAmount: (value: any, index: number, data: any) => Promise<any> | boolean | void;
|
|
111
|
+
}
|
|
112
|
+
export interface WalletPassTextModeProps {
|
|
113
|
+
cardData: any[];
|
|
114
|
+
selectedWalletIds: number[];
|
|
115
|
+
}
|
|
116
|
+
export interface WalletModalProps {
|
|
117
|
+
visible: boolean;
|
|
118
|
+
walletData: any[];
|
|
119
|
+
onClose: () => void;
|
|
120
|
+
title?: string;
|
|
121
|
+
emptyText?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface WalletPassModuleRef {
|
|
124
|
+
handleSearchIdentificationCode: (value: string) => void;
|
|
125
|
+
getWalletPassData: (select: {
|
|
126
|
+
voucher_id: number;
|
|
127
|
+
amount: number;
|
|
128
|
+
code?: string;
|
|
129
|
+
}[]) => {
|
|
130
|
+
selectedWallet?: any[];
|
|
131
|
+
availableDiscountList?: any[];
|
|
132
|
+
selectedDiscountList?: number[];
|
|
133
|
+
};
|
|
134
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default } from "./index";
|
|
2
|
+
export { default as Checkout } from "./index";
|
|
3
|
+
export { default as AmountSummary } from "./components/AmountSummary/index";
|
|
4
|
+
export { default as WalletPassModule } from "./components/WalletPassModule/index";
|
|
5
|
+
export { default as PaymentOptionsModule } from "./components/PaymentOptionsModule/index";
|
|
6
|
+
export { default as CashPaymentModule } from "./components/CashPaymentModule/index";
|
|
7
|
+
export { default as AdditionalModule } from "./components/AdditionalModule/index";
|
|
8
|
+
export type { CheckoutProps, PaymentData, PaymentItem, PaymentResult, ModuleConfig, StatusConfig, CheckoutCallbacks, AmountSummaryProps, WalletPassModuleProps, CashPaymentModuleProps, PaymentOptionsModuleProps, AdditionalModuleProps, } from "./types";
|
|
9
|
+
export { checkoutStyles, calculateModalHeight } from "./styles";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as PaymentModal } from './PaymentModal';
|
|
2
|
+
export { PaymentProvider, usePaymentModal } from './PaymentProvider';
|
|
3
|
+
export type { PaymentModalProps, PaymentModalData } from './PaymentModal';
|
|
4
|
+
export { default as PaymentResultToast, PaymentResultToastProvider, usePaymentResultToast, showPaymentResultToastSuccess, showPaymentResultToastFailed, showPaymentResultToastWalletPassFailed, showPaymentResultToast, closePaymentResultToast, setTillButton } from './components/PaymentResultToast';
|
|
5
|
+
export type { ShowPaymentResultToastConfig, PaymentResultToastContextType, PaymentResultToastProps, PaymentResultToastConfig, ActionButtonProps, ActionButtonGroupList, StatusClassName } from './components/PaymentResultToast';
|