@pisell/private-materials 6.4.56 → 6.4.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +7 -12
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/booking/components/actionButtons/index.js +15 -7
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/footer/utils.js +7 -2
- package/es/components/booking/components/voucher/index.js +23 -19
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/index.js +7 -3
- package/es/components/checkout/PaymentModal.js +17 -12
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +36 -21
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/list/List.d.ts +5 -0
- package/es/components/list/List.js +957 -0
- package/es/components/list/List.less +2 -0
- package/es/components/list/ResponsiveWrapper.d.ts +16 -0
- package/es/components/list/ResponsiveWrapper.js +130 -0
- package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/es/components/list/TestResponsiveWrapper.js +816 -0
- package/es/components/list/TestResponsiveWrapper.less +968 -0
- package/es/components/list/components/EmptyState/EmptyState.d.ts +20 -0
- package/es/components/list/components/EmptyState/EmptyState.js +75 -0
- package/es/components/list/components/EmptyState/EmptyState.less +121 -0
- package/es/components/list/components/EmptyState/index.d.ts +2 -0
- package/es/components/list/components/EmptyState/index.js +1 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +39 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/es/components/list/components/ListItemSkeleton/index.js +2 -0
- package/es/components/list/components/Pagination/Pagination.d.ts +30 -0
- package/es/components/list/components/Pagination/Pagination.js +240 -0
- package/es/components/list/components/Pagination/Pagination.less +439 -0
- package/es/components/list/components/Pagination/index.d.ts +1 -0
- package/es/components/list/components/Pagination/index.js +1 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.js +18 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/es/components/list/components/ScrollLoader/index.js +1 -0
- package/es/components/list/components/Tab/Tab.d.ts +5 -0
- package/es/components/list/components/Tab/Tab.js +43 -0
- package/es/components/list/components/Tab/Tab.less +139 -0
- package/es/components/list/components/Tab/index.d.ts +2 -0
- package/es/components/list/components/Tab/index.js +1 -0
- package/es/components/list/components/Tab/types.d.ts +14 -0
- package/es/components/list/components/Tab/types.js +1 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.js +28 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/es/components/list/components/TabSkeleton/index.js +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/es/components/list/components/WaterfallList/WaterfallList.js +191 -0
- package/es/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/es/components/list/components/WaterfallList/index.d.ts +2 -0
- package/es/components/list/components/WaterfallList/index.js +1 -0
- package/es/components/list/examples/GroupedListExample.d.ts +3 -0
- package/es/components/list/examples/GroupedListExample.js +207 -0
- package/es/components/list/hooks/index.d.ts +5 -0
- package/es/components/list/hooks/index.js +3 -0
- package/es/components/list/hooks/useDevice.d.ts +24 -0
- package/es/components/list/hooks/useDevice.js +102 -0
- package/es/components/list/hooks/useListState.d.ts +43 -0
- package/es/components/list/hooks/useListState.js +176 -0
- package/es/components/list/hooks/useWaterfall.d.ts +34 -0
- package/es/components/list/hooks/useWaterfall.js +161 -0
- package/es/components/list/index.d.ts +10 -0
- package/es/components/list/index.js +7 -0
- package/es/components/list/locales.d.ts +66 -0
- package/es/components/list/locales.js +107 -0
- package/es/components/list/styles/base.less +39 -0
- package/es/components/list/styles/content.less +416 -0
- package/es/components/list/styles/floatButton.less +107 -0
- package/es/components/list/styles/footer.less +49 -0
- package/es/components/list/styles/header.less +69 -0
- package/es/components/list/styles/responsive.less +166 -0
- package/es/components/list/types.d.ts +177 -0
- package/es/components/list/types.js +1 -0
- package/es/components/list/utils/getText.d.ts +53 -0
- package/es/components/list/utils/getText.js +150 -0
- package/es/components/list/utils/index.d.ts +4 -0
- package/es/components/list/utils/index.js +5 -0
- package/es/components/pay/toB/store/hooks.js +19 -5
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +7 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +273 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +130 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
- package/es/components/ticketBooking/components/menuBar/index.d.ts +5 -1
- package/es/components/ticketBooking/components/menuBar/index.js +40 -17
- package/es/components/ticketBooking/components/menuBar/index.less +27 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +66 -23
- package/es/components/ticketBooking/components/timeBar/index.less +1 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/context/index.js +2 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
- package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +50 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +43 -9
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +5 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +7 -2
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +17 -0
- package/es/components/ticketBooking/index.d.ts +6 -0
- package/es/components/ticketBooking/index.js +86 -11
- package/es/components/ticketBooking/utils/index.d.ts +30 -2
- package/es/components/ticketBooking/utils/index.js +50 -1
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/es/components/ticketBooking/utils/productCache.js +184 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +100 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +32 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +239 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +33 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +75 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +53 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +58 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +85 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +121 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +47 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
- package/es/plus/saasLogin/utils.d.ts +5 -5
- package/lib/components/booking/components/actionButtons/index.js +22 -15
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/footer/utils.js +7 -2
- package/lib/components/booking/components/voucher/index.js +33 -40
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/index.js +7 -3
- package/lib/components/checkout/PaymentModal.js +15 -12
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +57 -45
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/list/List.d.ts +5 -0
- package/lib/components/list/List.js +771 -0
- package/lib/components/list/List.less +2 -0
- package/lib/components/list/ResponsiveWrapper.d.ts +16 -0
- package/lib/components/list/ResponsiveWrapper.js +145 -0
- package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/lib/components/list/TestResponsiveWrapper.js +493 -0
- package/lib/components/list/TestResponsiveWrapper.less +968 -0
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +20 -0
- package/lib/components/list/components/EmptyState/EmptyState.js +75 -0
- package/lib/components/list/components/EmptyState/EmptyState.less +121 -0
- package/lib/components/list/components/EmptyState/index.d.ts +2 -0
- package/lib/components/list/components/EmptyState/index.js +35 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +75 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/ListItemSkeleton/index.js +41 -0
- package/lib/components/list/components/Pagination/Pagination.d.ts +30 -0
- package/lib/components/list/components/Pagination/Pagination.js +205 -0
- package/lib/components/list/components/Pagination/Pagination.less +439 -0
- package/lib/components/list/components/Pagination/index.d.ts +1 -0
- package/lib/components/list/components/Pagination/index.js +35 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.js +37 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/lib/components/list/components/ScrollLoader/index.js +35 -0
- package/lib/components/list/components/Tab/Tab.d.ts +5 -0
- package/lib/components/list/components/Tab/Tab.js +72 -0
- package/lib/components/list/components/Tab/Tab.less +139 -0
- package/lib/components/list/components/Tab/index.d.ts +2 -0
- package/lib/components/list/components/Tab/index.js +35 -0
- package/lib/components/list/components/Tab/types.d.ts +14 -0
- package/lib/components/list/components/Tab/types.js +17 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.js +61 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/TabSkeleton/index.js +41 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.js +178 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
- package/lib/components/list/components/WaterfallList/index.js +35 -0
- package/lib/components/list/examples/GroupedListExample.d.ts +3 -0
- package/lib/components/list/examples/GroupedListExample.js +210 -0
- package/lib/components/list/hooks/index.d.ts +5 -0
- package/lib/components/list/hooks/index.js +47 -0
- package/lib/components/list/hooks/useDevice.d.ts +24 -0
- package/lib/components/list/hooks/useDevice.js +96 -0
- package/lib/components/list/hooks/useListState.d.ts +43 -0
- package/lib/components/list/hooks/useListState.js +149 -0
- package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
- package/lib/components/list/hooks/useWaterfall.js +124 -0
- package/lib/components/list/index.d.ts +10 -0
- package/lib/components/list/index.js +60 -0
- package/lib/components/list/locales.d.ts +66 -0
- package/lib/components/list/locales.js +113 -0
- package/lib/components/list/styles/base.less +39 -0
- package/lib/components/list/styles/content.less +416 -0
- package/lib/components/list/styles/floatButton.less +107 -0
- package/lib/components/list/styles/footer.less +49 -0
- package/lib/components/list/styles/header.less +69 -0
- package/lib/components/list/styles/responsive.less +166 -0
- package/lib/components/list/types.d.ts +177 -0
- package/lib/components/list/types.js +17 -0
- package/lib/components/list/utils/getText.d.ts +53 -0
- package/lib/components/list/utils/getText.js +95 -0
- package/lib/components/list/utils/index.d.ts +4 -0
- package/lib/components/list/utils/index.js +43 -0
- package/lib/components/pay/toB/store/hooks.js +16 -8
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +45 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +247 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +100 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +5 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +24 -18
- package/lib/components/ticketBooking/components/menuBar/index.less +27 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +56 -25
- package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/context/index.js +44 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +47 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +17 -10
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +26 -4
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +4 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +6 -2
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +37 -0
- package/lib/components/ticketBooking/index.d.ts +6 -0
- package/lib/components/ticketBooking/index.js +64 -8
- package/lib/components/ticketBooking/utils/index.d.ts +30 -2
- package/lib/components/ticketBooking/utils/index.js +70 -2
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/lib/components/ticketBooking/utils/productCache.js +144 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +129 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +178 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +63 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +131 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +62 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +78 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +94 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +115 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +139 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +49 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
- package/lib/plus/saasLogin/utils.d.ts +5 -5
- package/lowcode/sku-card/meta.ts +1812 -0
- package/lowcode/sku-card/snippets.ts +372 -0
- package/lowcode/sku-list/meta.ts +410 -0
- package/package.json +12 -12
|
@@ -32,6 +32,8 @@ import { useMemoizedFn } from 'ahooks';
|
|
|
32
32
|
import useEngineContext, { usePisellOS } from "../../../../hooks/useEngineContext";
|
|
33
33
|
import useScanManager from "../../../ticketBooking/hooks/pisellos/useScanManager";
|
|
34
34
|
import { DiscountKeyboard } from "../../../../pro/priceKeyboard";
|
|
35
|
+
import { useActiveExecute, useBookingTicket } from "../../../ticketBooking/hooks/pisellos";
|
|
36
|
+
import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
|
|
35
37
|
// Toast 内容包装器,统一设置行高
|
|
36
38
|
var createToastContent = function createToastContent(text) {
|
|
37
39
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -61,13 +63,17 @@ var ActionButtons = function ActionButtons(_ref) {
|
|
|
61
63
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
62
64
|
showVoucherModal = _useState8[0],
|
|
63
65
|
setShowVoucherModal = _useState8[1];
|
|
66
|
+
var _useActiveExecute = useActiveExecute(),
|
|
67
|
+
executeIfActive = _useActiveExecute.executeIfActive;
|
|
64
68
|
var context = useEngineContext();
|
|
65
69
|
var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
|
|
66
70
|
getData = _context$appHelper$ut.getData,
|
|
67
71
|
pisellosAllModule = _context$appHelper$ut.pisellosAllModule;
|
|
68
72
|
var Toast = useToast();
|
|
69
73
|
var pisellOS = usePisellOS();
|
|
74
|
+
var bookingTicket = useBookingTicket();
|
|
70
75
|
var ScheduleModule = pisellosAllModule.ScheduleModule;
|
|
76
|
+
var shopDiscount = useShopDiscountModule();
|
|
71
77
|
|
|
72
78
|
// 将选中的客户数据传递给状态管理
|
|
73
79
|
var changeCustomerToGlobalState = useMemoizedFn(function (value) {
|
|
@@ -88,7 +94,7 @@ var ActionButtons = function ActionButtons(_ref) {
|
|
|
88
94
|
|
|
89
95
|
// 监听客户选择变化,清空手动折扣
|
|
90
96
|
useEffect(function () {
|
|
91
|
-
if (!
|
|
97
|
+
if (!bookingTicket) return;
|
|
92
98
|
var handleCustomerSelected = function handleCustomerSelected() {
|
|
93
99
|
// 当客户选择改变时,清空 shop_discount
|
|
94
100
|
dispatch({
|
|
@@ -98,15 +104,16 @@ var ActionButtons = function ActionButtons(_ref) {
|
|
|
98
104
|
}
|
|
99
105
|
});
|
|
100
106
|
};
|
|
107
|
+
var wrappedHandleCustomerSelected = executeIfActive(handleCustomerSelected);
|
|
101
108
|
|
|
102
109
|
// 监听客户选择事件
|
|
103
|
-
|
|
110
|
+
bookingTicket.effectsOn('onCustomerSelected', wrappedHandleCustomerSelected);
|
|
104
111
|
|
|
105
112
|
// 清理函数
|
|
106
113
|
return function () {
|
|
107
|
-
|
|
114
|
+
bookingTicket.effectsOff('onCustomerSelected', wrappedHandleCustomerSelected);
|
|
108
115
|
};
|
|
109
|
-
}, [dispatch,
|
|
116
|
+
}, [dispatch, bookingTicket]);
|
|
110
117
|
|
|
111
118
|
// 同步获取金额计算所需配置
|
|
112
119
|
var getDataFromHost = function getDataFromHost() {
|
|
@@ -222,13 +229,14 @@ var ActionButtons = function ActionButtons(_ref) {
|
|
|
222
229
|
var _context$appHelper2;
|
|
223
230
|
var _ref2 = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils) || {},
|
|
224
231
|
pisellos = _ref2.pisellos;
|
|
225
|
-
if (!pisellos) return;
|
|
232
|
+
if (!pisellos || !shopDiscount) return;
|
|
226
233
|
var onDiscountListChange = function onDiscountListChange(discount) {
|
|
227
234
|
setDiscountList(discount);
|
|
228
235
|
};
|
|
229
|
-
|
|
236
|
+
var wrappedHandler = executeIfActive(onDiscountListChange);
|
|
237
|
+
shopDiscount.effectsOn('onDiscountListChange', wrappedHandler);
|
|
230
238
|
return function () {
|
|
231
|
-
|
|
239
|
+
shopDiscount.effectsOff('onDiscountListChange', wrappedHandler);
|
|
232
240
|
};
|
|
233
241
|
}, [(_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.utils]);
|
|
234
242
|
|
|
@@ -285,7 +285,7 @@ var getTax = function getTax(state, options) {
|
|
|
285
285
|
if (!isEdit) {
|
|
286
286
|
var _state$bookingDetail2;
|
|
287
287
|
return {
|
|
288
|
-
tax: Number((_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.tax_fee)
|
|
288
|
+
tax: Number((_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.tax_fee) || 0
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
var totalOriginTax = new Decimal(0);
|
|
@@ -46,7 +46,7 @@ import { Iconfont } from '@pisell/materials';
|
|
|
46
46
|
import { useCustomer } from "../../../ticketBooking/hooks/pisellos/useCustomer";
|
|
47
47
|
import { useDebounceEffect, useDebounceFn, useMemoizedFn } from 'ahooks';
|
|
48
48
|
import { cloneDeep } from 'lodash';
|
|
49
|
-
import {
|
|
49
|
+
import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* @title: 底部
|
|
@@ -1734,7 +1734,7 @@ var Footer = function Footer(props) {
|
|
|
1734
1734
|
changeCustomerToGlobalState: changeCustomerToGlobalState
|
|
1735
1735
|
}),
|
|
1736
1736
|
selectCustomer = _useCustomer.selectCustomer;
|
|
1737
|
-
var shopDiscount =
|
|
1737
|
+
var shopDiscount = useShopDiscountModule();
|
|
1738
1738
|
var _useScanManager2 = useScanManager(),
|
|
1739
1739
|
clearAllScanListenersTaskQueue = _useScanManager2.clearAllScanListenersTaskQueue;
|
|
1740
1740
|
// 清空所有内容并重置购物车
|
|
@@ -15,6 +15,7 @@ import { isArr, locales, sendWarningLog, getUniqueId } from '@pisell/utils';
|
|
|
15
15
|
import { PisellToast } from "@pisell/materials";
|
|
16
16
|
import { getClientName } from "../../../../plus/clientName/utils";
|
|
17
17
|
import { cloneDeep } from 'lodash';
|
|
18
|
+
import Decimal from 'decimal.js';
|
|
18
19
|
var formatNote = function formatNote(data) {
|
|
19
20
|
var _data$notes;
|
|
20
21
|
return ((_data$notes = data.notes) === null || _data$notes === void 0 ? void 0 : _data$notes.orderNote) || "";
|
|
@@ -100,6 +101,10 @@ export var formatProductBundle = function formatProductBundle(bundle) {
|
|
|
100
101
|
}
|
|
101
102
|
} catch (error) {}
|
|
102
103
|
return bundle.map(function (d) {
|
|
104
|
+
var option = formatProductOption(d.option);
|
|
105
|
+
var option_price = option.reduce(function (temp, item) {
|
|
106
|
+
return temp + Number(item.num) * item.custom_add_price;
|
|
107
|
+
}, 0);
|
|
103
108
|
return {
|
|
104
109
|
"bundle_group_id": d.group_id,
|
|
105
110
|
"bundle_id": d.id,
|
|
@@ -112,9 +117,9 @@ export var formatProductBundle = function formatProductBundle(bundle) {
|
|
|
112
117
|
// checkout 2.0 新增
|
|
113
118
|
"price_type": d === null || d === void 0 ? void 0 : d.price_type,
|
|
114
119
|
// checkout 2.0 新增
|
|
115
|
-
"custom_price": d === null || d === void 0 ? void 0 : d.price,
|
|
120
|
+
"custom_price": new Decimal(d === null || d === void 0 ? void 0 : d.price).sub(option_price).toNumber().toFixed(2),
|
|
116
121
|
"custom_price_type": d === null || d === void 0 ? void 0 : d.price_type,
|
|
117
|
-
"option":
|
|
122
|
+
"option": option
|
|
118
123
|
};
|
|
119
124
|
});
|
|
120
125
|
};
|
|
@@ -28,8 +28,9 @@ import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
|
|
|
28
28
|
import "./index.less";
|
|
29
29
|
import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
|
|
30
30
|
import { getServiceAddons } from "./utils";
|
|
31
|
-
import { useCustomer } from "../../../ticketBooking/hooks/pisellos";
|
|
31
|
+
import { useActiveExecute, useCustomer } from "../../../ticketBooking/hooks/pisellos";
|
|
32
32
|
import { getClientVariantClose } from "../../info/clientVariant/utils";
|
|
33
|
+
import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
|
|
33
34
|
var ShopDiscountHooks = {
|
|
34
35
|
onInited: 'shopDiscount:onInited',
|
|
35
36
|
onDestroy: 'shopDiscount:onDestroy',
|
|
@@ -66,7 +67,9 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
66
67
|
var serviceValueRef = useRef(state.service.value);
|
|
67
68
|
var addonsValueRef = useRef(state.addons.value);
|
|
68
69
|
var isBooking4Shop = useIsBooking4Shop(state);
|
|
69
|
-
var shopDiscount =
|
|
70
|
+
var shopDiscount = useShopDiscountModule();
|
|
71
|
+
var _useActiveExecute = useActiveExecute(),
|
|
72
|
+
executeIfActive = _useActiveExecute.executeIfActive;
|
|
70
73
|
services = state.service;
|
|
71
74
|
|
|
72
75
|
// 将选中的客户数据传递给状态管理
|
|
@@ -95,7 +98,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
95
98
|
|
|
96
99
|
// 设置productList
|
|
97
100
|
useEffect(function () {
|
|
98
|
-
if (isBooking4Shop) {
|
|
101
|
+
if (isBooking4Shop && shopDiscount) {
|
|
99
102
|
shopDiscount.setProductList([].concat(_toConsumableArray(state.service.value), _toConsumableArray(state.addons.value)));
|
|
100
103
|
}
|
|
101
104
|
}, [state.service.value, state.addons.value, isBooking4Shop]);
|
|
@@ -122,9 +125,10 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
122
125
|
onScanCode(e.detail.code);
|
|
123
126
|
});
|
|
124
127
|
useEffect(function () {
|
|
125
|
-
|
|
128
|
+
var wrappedOnScanWallPassCode = executeIfActive(onScanWallPassCode);
|
|
129
|
+
window.addEventListener('onScanWallPassCode', wrappedOnScanWallPassCode);
|
|
126
130
|
return function () {
|
|
127
|
-
window.removeEventListener('onScanWallPassCode',
|
|
131
|
+
window.removeEventListener('onScanWallPassCode', wrappedOnScanWallPassCode);
|
|
128
132
|
};
|
|
129
133
|
}, []);
|
|
130
134
|
var addonsMemo = useMemo(function () {
|
|
@@ -174,12 +178,11 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
174
178
|
run();
|
|
175
179
|
}, [JSON.stringify(serviceMemo), JSON.stringify(addonsMemo), isBooking4Shop]);
|
|
176
180
|
useEffect(function () {
|
|
177
|
-
if (
|
|
178
|
-
var
|
|
179
|
-
|
|
181
|
+
if (shopDiscount) {
|
|
182
|
+
var wrappedHandler = executeIfActive(fn);
|
|
183
|
+
shopDiscount === null || shopDiscount === void 0 || shopDiscount.effectsOn("onSelectedDiscountListChange", wrappedHandler);
|
|
180
184
|
return function () {
|
|
181
|
-
|
|
182
|
-
pisellos === null || pisellos === void 0 || (_pisellos$effects2 = pisellos.effects) === null || _pisellos$effects2 === void 0 || _pisellos$effects2.off("shopDiscount:onSelectedDiscountListChange", fn);
|
|
185
|
+
shopDiscount === null || shopDiscount === void 0 || shopDiscount.effectsOff("onSelectedDiscountListChange", wrappedHandler);
|
|
183
186
|
};
|
|
184
187
|
}
|
|
185
188
|
}, []);
|
|
@@ -195,7 +198,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
195
198
|
|
|
196
199
|
// 监听customer变化
|
|
197
200
|
useEffect(function () {
|
|
198
|
-
if (!isBooking4Shop) return;
|
|
201
|
+
if (!isBooking4Shop || !shopDiscount) return;
|
|
199
202
|
var onScanCustomerChange = function onScanCustomerChange(customer) {
|
|
200
203
|
var clientVariantClose = getClientVariantClose();
|
|
201
204
|
if (clientVariantClose) {
|
|
@@ -206,14 +209,17 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
206
209
|
var onDiscountListChange = function onDiscountListChange(discount) {
|
|
207
210
|
setDisCountList(discount);
|
|
208
211
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
+
var wrappedOnScanCustomerChangeHandler = executeIfActive(onScanCustomerChange);
|
|
213
|
+
var wrappedOnDiscountListChangeHandler = executeIfActive(onDiscountListChange);
|
|
214
|
+
var wrappedFn = executeIfActive(fn);
|
|
215
|
+
shopDiscount.effectsOn('onScanCustomerChange', wrappedOnScanCustomerChangeHandler);
|
|
216
|
+
shopDiscount.effectsOn('onLoadPrepareCalcResult', wrappedFn);
|
|
217
|
+
shopDiscount.effectsOn('onDiscountListChange', wrappedOnDiscountListChangeHandler);
|
|
212
218
|
return function () {
|
|
213
219
|
shopDiscount.clear();
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
220
|
+
shopDiscount.effectsOff('onScanCustomerChange', wrappedOnScanCustomerChangeHandler);
|
|
221
|
+
shopDiscount.effectsOff('onLoadPrepareCalcResult', wrappedFn);
|
|
222
|
+
shopDiscount.effectsOff('onDiscountListChange', wrappedOnDiscountListChangeHandler);
|
|
217
223
|
};
|
|
218
224
|
}, [state.bookingId, isBooking4Shop, fn]);
|
|
219
225
|
var productListToValue = useMemoizedFn(function (list, edit) {
|
|
@@ -282,7 +288,6 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
282
288
|
}();
|
|
283
289
|
var availableData = useMemo(function () {
|
|
284
290
|
if (!isBooking4Shop) return [];
|
|
285
|
-
var shopDiscount = pisellos.getModule('shopDiscount');
|
|
286
291
|
return discountList.filter(function (item) {
|
|
287
292
|
return !!item.isAvailable;
|
|
288
293
|
}).map(function (discount) {
|
|
@@ -325,7 +330,6 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
325
330
|
dataSource: (_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length ? availableData : [],
|
|
326
331
|
mixedSort: mixedSort,
|
|
327
332
|
onChange: function onChange(val) {
|
|
328
|
-
var shopDiscount = pisellos.getModule('shopDiscount');
|
|
329
333
|
var detail = shopDiscount.setDiscountSelected({
|
|
330
334
|
discountId: val.id,
|
|
331
335
|
isSelected: val.isSelected
|
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<any>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|
|
@@ -29,6 +29,7 @@ import useTranslationOriginal from "../../../../hooks/useTranslationOriginal";
|
|
|
29
29
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
30
30
|
import { Context } from "../../info/model";
|
|
31
31
|
import "./index.less";
|
|
32
|
+
import { useIsActive } from "../../../ticketBooking/context/IsActiveContext";
|
|
32
33
|
|
|
33
34
|
// 导出类型
|
|
34
35
|
|
|
@@ -60,6 +61,7 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
60
61
|
keyword = _useState8[0],
|
|
61
62
|
setKeyword = _useState8[1];
|
|
62
63
|
var keywordRef = useRef('');
|
|
64
|
+
var isActive = useIsActive();
|
|
63
65
|
keywordRef.current = keyword;
|
|
64
66
|
var Toast = useToast();
|
|
65
67
|
var _useScanCustomer = useScanCustomer(),
|
|
@@ -315,13 +317,15 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
315
317
|
setPendingCustomer(null);
|
|
316
318
|
};
|
|
317
319
|
useMemo(function () {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
+
if (isActive) {
|
|
321
|
+
setHandleSetClient(handleSetClient);
|
|
322
|
+
}
|
|
323
|
+
}, [isActive]);
|
|
320
324
|
useEffect(function () {
|
|
321
325
|
return function () {
|
|
322
326
|
setHandleSetClient(null);
|
|
323
327
|
};
|
|
324
|
-
}, []);
|
|
328
|
+
}, [isActive]);
|
|
325
329
|
var tags = useMemo(function () {
|
|
326
330
|
var _latest_wallet_detail;
|
|
327
331
|
if (!selectedCustomer) return;
|
|
@@ -47,6 +47,7 @@ import { getShopWalletPassId, reorderPaymentMethodList } from "./utils";
|
|
|
47
47
|
import usePaymentLogger from "./hooks/usePaymentLogger";
|
|
48
48
|
import { Button } from 'antd';
|
|
49
49
|
import { DiscountKeyboard } from "../../pro/priceKeyboard";
|
|
50
|
+
import { useActiveExecute } from "../ticketBooking/hooks/pisellos";
|
|
50
51
|
|
|
51
52
|
// Checkout 模块的事件常量
|
|
52
53
|
var CheckoutHooks = {
|
|
@@ -98,6 +99,8 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
98
99
|
pisellosAllModule = utils.pisellosAllModule,
|
|
99
100
|
interaction = utils.interaction;
|
|
100
101
|
var Toast = useToast();
|
|
102
|
+
var _useActiveExecute = useActiveExecute(),
|
|
103
|
+
executeIfActive = _useActiveExecute.executeIfActive;
|
|
101
104
|
// const paymentResultToast = usePaymentResultToast();
|
|
102
105
|
|
|
103
106
|
var checkoutRef = useRef(null);
|
|
@@ -491,7 +494,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
491
494
|
try {
|
|
492
495
|
var core = checkoutModule.core;
|
|
493
496
|
if (core.effects && typeof core.effects.on === 'function') {
|
|
494
|
-
var unsubscribe = core.effects.on(CheckoutHooks.OnStateAmountChanged, /*#__PURE__*/function () {
|
|
497
|
+
var unsubscribe = core.effects.on(CheckoutHooks.OnStateAmountChanged, executeIfActive( /*#__PURE__*/function () {
|
|
495
498
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(data) {
|
|
496
499
|
var _Toast$success, _Toast$success2, items;
|
|
497
500
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -521,17 +524,17 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
521
524
|
return function (_x4) {
|
|
522
525
|
return _ref7.apply(this, arguments);
|
|
523
526
|
};
|
|
524
|
-
}());
|
|
525
|
-
var amountChangedUnsubscribe = core.effects.on(CheckoutHooks.OnBalanceDueAmountChanged, function (data) {
|
|
527
|
+
}()));
|
|
528
|
+
var amountChangedUnsubscribe = core.effects.on(CheckoutHooks.OnBalanceDueAmountChanged, executeIfActive(function (data) {
|
|
526
529
|
setBalanceDueAmount(data.newAmount);
|
|
527
530
|
setBalanceDueTotalAmount(data.totalAmount || '0');
|
|
528
|
-
});
|
|
529
|
-
var orderSubmitStartUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitStart, function () {
|
|
531
|
+
}));
|
|
532
|
+
var orderSubmitStartUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitStart, executeIfActive(function () {
|
|
530
533
|
var _Toast$loading2;
|
|
531
534
|
setSyncingLock(true);
|
|
532
535
|
Toast === null || Toast === void 0 || (_Toast$loading2 = Toast.loading) === null || _Toast$loading2 === void 0 || _Toast$loading2.call(Toast);
|
|
533
|
-
});
|
|
534
|
-
var orderSubmitEndUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitEnd, function (res) {
|
|
536
|
+
}));
|
|
537
|
+
var orderSubmitEndUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitEnd, executeIfActive(function (res) {
|
|
535
538
|
setSyncingLock(false);
|
|
536
539
|
if (res.success) {
|
|
537
540
|
var _Toast$hide;
|
|
@@ -547,7 +550,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
547
550
|
Toast === null || Toast === void 0 || Toast.fail(locales.getText('pisell2.checkout.order-sync-failed') || 'Order sync failed');
|
|
548
551
|
}
|
|
549
552
|
}
|
|
550
|
-
});
|
|
553
|
+
}));
|
|
551
554
|
|
|
552
555
|
// const orderSyncFailedUnsubscribe = core.effects.on(
|
|
553
556
|
// CheckoutHooks.OnOrderSyncFailed,
|
|
@@ -556,7 +559,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
556
559
|
// Toast?.fail(locales.getText('pisell2.checkout.order-sync-failed') || 'Order sync failed');
|
|
557
560
|
// }
|
|
558
561
|
// );
|
|
559
|
-
var orderPaymentAddedUnsubscribe = core.effects.on(CheckoutHooks.OnOrderPaymentAdded, /*#__PURE__*/function () {
|
|
562
|
+
var orderPaymentAddedUnsubscribe = core.effects.on(CheckoutHooks.OnOrderPaymentAdded, executeIfActive( /*#__PURE__*/function () {
|
|
560
563
|
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(data) {
|
|
561
564
|
var orderInfo, balanceDueAmount, autoCloseConfig, _paymentItems, _totalAmount, serviceChargeTotal, paymentMethodName, isCashPayment, _interaction$utils3, _interaction$utils3$p;
|
|
562
565
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -646,7 +649,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
646
649
|
return function (_x5) {
|
|
647
650
|
return _ref8.apply(this, arguments);
|
|
648
651
|
};
|
|
649
|
-
}());
|
|
652
|
+
}()));
|
|
650
653
|
return function () {
|
|
651
654
|
if (unsubscribe && typeof unsubscribe === 'function') {
|
|
652
655
|
unsubscribe();
|
|
@@ -1405,6 +1408,8 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
1405
1408
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
1406
1409
|
currentEditOrderId = _useState36[0],
|
|
1407
1410
|
_setCurrentEditOrderId = _useState36[1];
|
|
1411
|
+
var _useActiveExecute2 = useActiveExecute(),
|
|
1412
|
+
executeIfActive = _useActiveExecute2.executeIfActive;
|
|
1408
1413
|
var Toast = useToast();
|
|
1409
1414
|
|
|
1410
1415
|
// 重试处理函数(逻辑由用户自己实现)
|
|
@@ -2079,7 +2084,7 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2079
2084
|
unsubscribeRef.current = undefined;
|
|
2080
2085
|
}
|
|
2081
2086
|
// 监听订单同步完成,同步完成后显示订单完成 toast,关闭当前弹窗
|
|
2082
|
-
unsubscribeRef.current = checkout.core.effects.on('checkout:onOrderSynced', /*#__PURE__*/function () {
|
|
2087
|
+
unsubscribeRef.current = checkout.core.effects.on('checkout:onOrderSynced', executeIfActive( /*#__PURE__*/function () {
|
|
2083
2088
|
var _ref29 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(data) {
|
|
2084
2089
|
var _data$response, _responseData$payment2;
|
|
2085
2090
|
var currentOrderId, responseData, paymentStatus, orderTotalAmount, gapAmount, currentChangeGivenAmount, failureReason, _responseData$payment3, params, statusClassName, autoCloseConfig, enabledAutoPrint, _interaction$utils6, _interaction$utils6$a, _orderInfo3, paymentResult;
|
|
@@ -2224,7 +2229,7 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2224
2229
|
return function (_x17) {
|
|
2225
2230
|
return _ref29.apply(this, arguments);
|
|
2226
2231
|
};
|
|
2227
|
-
}());
|
|
2232
|
+
}()));
|
|
2228
2233
|
_context23.next = 42;
|
|
2229
2234
|
break;
|
|
2230
2235
|
case 25:
|
|
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
|
|
|
17
17
|
cardData: any;
|
|
18
18
|
handleSelectWallet: (value: number[]) => void;
|
|
19
19
|
selectedWalletIds: any[];
|
|
20
|
-
expiredWalletIds: any;
|
|
20
|
+
expiredWalletIds: any[];
|
|
21
21
|
expiredWalletData: any;
|
|
22
22
|
disabledWalletData: any[];
|
|
23
23
|
clearAllSelectedWallet: () => void;
|
|
@@ -27,6 +27,8 @@ import { usePisellOS } from "../../../hooks/useEngineContext";
|
|
|
27
27
|
import { formatDiscountWalletData, formatMachineCodeServer2CardList, isSameContent } from "../components/WalletPassModule/utils";
|
|
28
28
|
import usePaymentLogger from "./usePaymentLogger";
|
|
29
29
|
import { isWalkIn } from "../../booking/utils";
|
|
30
|
+
import { useActiveExecute } from "../../ticketBooking/hooks/pisellos";
|
|
31
|
+
import { useShopDiscountModule } from "../../ticketBooking/hooks/pisellos/useShopDiscountModule";
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
34
|
* 自定义Hook:使用WalletPass功能
|
|
@@ -36,6 +38,8 @@ export var useWalletPass = function useWalletPass(props) {
|
|
|
36
38
|
customAmount = props.customAmount,
|
|
37
39
|
clientId = props.clientId;
|
|
38
40
|
var logger = usePaymentLogger();
|
|
41
|
+
var _useActiveExecute = useActiveExecute(),
|
|
42
|
+
executeIfActive = _useActiveExecute.executeIfActive;
|
|
39
43
|
|
|
40
44
|
// 钱包推荐列表
|
|
41
45
|
var _useState = useState([]),
|
|
@@ -114,7 +118,7 @@ export var useWalletPass = function useWalletPass(props) {
|
|
|
114
118
|
|
|
115
119
|
// 获取checkout模块
|
|
116
120
|
var checkoutModule = pisellos.getModule('checkout');
|
|
117
|
-
var shopDiscount =
|
|
121
|
+
var shopDiscount = useShopDiscountModule();
|
|
118
122
|
var paymentModule = checkoutModule === null || checkoutModule === void 0 ? void 0 : checkoutModule.payment;
|
|
119
123
|
var setWalletSelect = useMemoizedFn(function (data) {
|
|
120
124
|
setSelectedWallet(data);
|
|
@@ -515,30 +519,41 @@ export var useWalletPass = function useWalletPass(props) {
|
|
|
515
519
|
if (!paymentModule) return;
|
|
516
520
|
var core = pisellos; // 获取core实例
|
|
517
521
|
|
|
522
|
+
// checkout 单实例,执行时判断是否active
|
|
523
|
+
var wrappedHandlePaymentStarted = executeIfActive(handlePaymentStarted);
|
|
524
|
+
var wrappedOnOrderCreated = executeIfActive(onOrderCreated);
|
|
525
|
+
var wrappedHandleWalletRecommendListUpdated = executeIfActive(handleWalletRecommendListUpdated);
|
|
526
|
+
var wrappedHandleUserIdentificationCodesUpdated = executeIfActive(handleUserIdentificationCodesUpdated);
|
|
527
|
+
var wrappedHandleWalletCacheCleared = executeIfActive(handleWalletCacheCleared);
|
|
528
|
+
var wrappedHandleSearchIdentificationCodeCompleted = executeIfActive(handleSearchIdentificationCodeCompleted);
|
|
529
|
+
var wrappedHandleWalletInitializationStarted = executeIfActive(handleWalletInitializationStarted);
|
|
530
|
+
var wrappedHandleWalletInitializationCompleted = executeIfActive(handleWalletInitializationCompleted);
|
|
531
|
+
var wrappedHandleWalletInitializationFailed = executeIfActive(handleWalletInitializationFailed);
|
|
518
532
|
// 注册事件监听器
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
533
|
+
paymentModule.effectsOn('onWalletRecommendListUpdated', wrappedHandleWalletRecommendListUpdated);
|
|
534
|
+
// checkout 单实例,执行时判断是否active
|
|
535
|
+
checkoutModule.effectsOn('onPaymentStarted', wrappedHandlePaymentStarted);
|
|
536
|
+
checkoutModule.effectsOn('onPaymentItemAdded', wrappedHandlePaymentStarted);
|
|
537
|
+
paymentModule.effectsOn('onUserIdentificationCodesUpdated', wrappedHandleUserIdentificationCodesUpdated);
|
|
538
|
+
paymentModule.effectsOn('onWalletCacheCleared', wrappedHandleWalletCacheCleared);
|
|
539
|
+
paymentModule.effectsOn('onSearchIdentificationCodeCompleted', wrappedHandleSearchIdentificationCodeCompleted);
|
|
540
|
+
checkoutModule.effectsOn('onWalletDataInitialized', wrappedOnOrderCreated);
|
|
541
|
+
paymentModule.effectsOn('onWalletInitializationStarted', wrappedHandleWalletInitializationStarted);
|
|
542
|
+
paymentModule.effectsOn('onWalletInitializationCompleted', wrappedHandleWalletInitializationCompleted);
|
|
543
|
+
paymentModule.effectsOn('onWalletInitializationFailed', wrappedHandleWalletInitializationFailed);
|
|
529
544
|
|
|
530
545
|
// 清理事件监听器
|
|
531
546
|
return function () {
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
547
|
+
paymentModule.effectsOff('onWalletRecommendListUpdated', wrappedHandleWalletRecommendListUpdated);
|
|
548
|
+
checkoutModule.effectsOff('onPaymentStarted', wrappedHandlePaymentStarted);
|
|
549
|
+
checkoutModule.effectsOff('onPaymentItemAdded', wrappedHandlePaymentStarted);
|
|
550
|
+
paymentModule.effectsOff('onUserIdentificationCodesUpdated', wrappedHandleUserIdentificationCodesUpdated);
|
|
551
|
+
paymentModule.effectsOff('onWalletCacheCleared', wrappedHandleWalletCacheCleared);
|
|
552
|
+
paymentModule.effectsOff('onSearchIdentificationCodeCompleted', wrappedHandleSearchIdentificationCodeCompleted);
|
|
553
|
+
checkoutModule.effectsOff('onWalletDataInitialized', wrappedOnOrderCreated);
|
|
554
|
+
paymentModule.effectsOff('onWalletInitializationStarted', wrappedHandleWalletInitializationStarted);
|
|
555
|
+
paymentModule.effectsOff('onWalletInitializationCompleted', wrappedHandleWalletInitializationCompleted);
|
|
556
|
+
paymentModule.effectsOff('onWalletInitializationFailed', wrappedHandleWalletInitializationFailed);
|
|
542
557
|
};
|
|
543
558
|
}, [paymentModule]);
|
|
544
559
|
|
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
10
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "success" | "page" | "
|
|
11
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
12
12
|
[keys: string]: unknown;
|
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
|
14
14
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "success" | "page" | "
|
|
14
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -295,15 +295,15 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
295
295
|
name?: string | undefined;
|
|
296
296
|
symbol?: string | undefined;
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
|
-
mode?: "
|
|
298
|
+
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
305
305
|
subTitle?: string | undefined;
|
|
306
|
-
type?: "
|
|
306
|
+
type?: "unset" | "step" | undefined;
|
|
307
307
|
render?: boolean | undefined;
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|