@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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* OsKey Context
|
|
4
|
+
* 用于在 TicketBooking 组件树中提供 pisellos 的 osKey
|
|
5
|
+
* osKey 用于区分不同页面使用同一个组件时的模块标识
|
|
6
|
+
*/
|
|
7
|
+
interface OsKeyContextType {
|
|
8
|
+
/** pisellos 模块的唯一标识 */
|
|
9
|
+
osKey: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
declare const OsKeyContext: React.Context<OsKeyContextType>;
|
|
12
|
+
interface OsKeyProviderProps {
|
|
13
|
+
osKey: string | undefined;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* OsKey Provider
|
|
18
|
+
* 提供 osKey 给子组件使用
|
|
19
|
+
*/
|
|
20
|
+
export declare const OsKeyProvider: React.FC<OsKeyProviderProps>;
|
|
21
|
+
/**
|
|
22
|
+
* useOsKey Hook
|
|
23
|
+
* 在子组件中使用此 hook 获取 osKey
|
|
24
|
+
*/
|
|
25
|
+
export declare const useOsKey: () => string;
|
|
26
|
+
export default OsKeyContext;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/ticketBooking/context/OsKeyContext.tsx
|
|
30
|
+
var OsKeyContext_exports = {};
|
|
31
|
+
__export(OsKeyContext_exports, {
|
|
32
|
+
OsKeyProvider: () => OsKeyProvider,
|
|
33
|
+
default: () => OsKeyContext_default,
|
|
34
|
+
useOsKey: () => useOsKey
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(OsKeyContext_exports);
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var OsKeyContext = (0, import_react.createContext)({
|
|
39
|
+
osKey: void 0
|
|
40
|
+
});
|
|
41
|
+
var OsKeyProvider = ({ osKey, children }) => {
|
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement(OsKeyContext.Provider, { value: { osKey } }, children);
|
|
43
|
+
};
|
|
44
|
+
var useOsKey = () => {
|
|
45
|
+
const context = (0, import_react.useContext)(OsKeyContext);
|
|
46
|
+
if (!context) {
|
|
47
|
+
throw new Error("useOsKey must be used within an OsKeyProvider");
|
|
48
|
+
}
|
|
49
|
+
return (context == null ? void 0 : context.osKey) || "ticket";
|
|
50
|
+
};
|
|
51
|
+
var OsKeyContext_default = OsKeyContext;
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
OsKeyProvider,
|
|
55
|
+
useOsKey
|
|
56
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/ticketBooking/context/index.ts
|
|
30
|
+
var context_exports = {};
|
|
31
|
+
__export(context_exports, {
|
|
32
|
+
OsKeyContext: () => import_OsKeyContext2.default,
|
|
33
|
+
OsKeyProvider: () => import_OsKeyContext.OsKeyProvider,
|
|
34
|
+
useOsKey: () => import_OsKeyContext.useOsKey
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(context_exports);
|
|
37
|
+
var import_OsKeyContext = require("./OsKeyContext");
|
|
38
|
+
var import_OsKeyContext2 = __toESM(require("./OsKeyContext"));
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
OsKeyContext,
|
|
42
|
+
OsKeyProvider,
|
|
43
|
+
useOsKey
|
|
44
|
+
});
|
|
@@ -23,9 +23,13 @@ __export(bookingTicket_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(bookingTicket_exports);
|
|
25
25
|
var import_useEngineContext = require("../../../../hooks/useEngineContext");
|
|
26
|
+
var import_OsKeyContext = require("../../context/OsKeyContext");
|
|
27
|
+
var import_utils = require("../../utils");
|
|
26
28
|
var useBookingTicket = () => {
|
|
27
29
|
const pisellOS = (0, import_useEngineContext.usePisellOS)();
|
|
28
|
-
|
|
30
|
+
const osKey = (0, import_OsKeyContext.useOsKey)();
|
|
31
|
+
const moduleKey = (0, import_utils.getBookingTicketKey)(osKey || "ticket");
|
|
32
|
+
return pisellOS.getModule(moduleKey);
|
|
29
33
|
};
|
|
30
34
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
35
|
0 && (module.exports = {
|
|
@@ -19,9 +19,11 @@ module.exports = __toCommonJS(pisellos_exports);
|
|
|
19
19
|
__reExport(pisellos_exports, require("./bookingTicket"), module.exports);
|
|
20
20
|
__reExport(pisellos_exports, require("./useProducts"), module.exports);
|
|
21
21
|
__reExport(pisellos_exports, require("./useCustomer"), module.exports);
|
|
22
|
+
__reExport(pisellos_exports, require("./useActiveExecute"), module.exports);
|
|
22
23
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23
24
|
0 && (module.exports = {
|
|
24
25
|
...require("./bookingTicket"),
|
|
25
26
|
...require("./useProducts"),
|
|
26
|
-
...require("./useCustomer")
|
|
27
|
+
...require("./useCustomer"),
|
|
28
|
+
...require("./useActiveExecute")
|
|
27
29
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useActiveExecute Hook
|
|
3
|
+
* 返回一个函数,该函数接收一个回调函数,并返回一个包装后的函数
|
|
4
|
+
* 包装后的函数只在 isActive 为 true 时执行原始回调
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* const { executeIfActive } = useActiveExecute();
|
|
9
|
+
*
|
|
10
|
+
* // 创建一个包装函数用于事件监听
|
|
11
|
+
* const handleChange = (data) => {
|
|
12
|
+
* console.log('data:', data);
|
|
13
|
+
* };
|
|
14
|
+
*
|
|
15
|
+
* // 返回的函数会在被调用时检查 isActive
|
|
16
|
+
* pisellos.effects.on('event', executeIfActive(handleChange));
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const useActiveExecute: () => {
|
|
20
|
+
executeIfActive: <T extends (...args: any[]) => any>(fn: T) => T;
|
|
21
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/ticketBooking/hooks/pisellos/useActiveExecute.ts
|
|
20
|
+
var useActiveExecute_exports = {};
|
|
21
|
+
__export(useActiveExecute_exports, {
|
|
22
|
+
useActiveExecute: () => useActiveExecute
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useActiveExecute_exports);
|
|
25
|
+
var import_ahooks = require("ahooks");
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var import_IsActiveContext = require("../../context/IsActiveContext");
|
|
28
|
+
var useActiveExecute = () => {
|
|
29
|
+
const isActive = (0, import_IsActiveContext.useIsActive)();
|
|
30
|
+
const isActiveRef = (0, import_react.useRef)(isActive);
|
|
31
|
+
(0, import_react.useEffect)(() => {
|
|
32
|
+
isActiveRef.current = isActive;
|
|
33
|
+
}, [isActive]);
|
|
34
|
+
const executeIfActive = (0, import_ahooks.useMemoizedFn)(
|
|
35
|
+
(fn) => {
|
|
36
|
+
return (...args) => {
|
|
37
|
+
if (!isActiveRef.current) return;
|
|
38
|
+
return fn == null ? void 0 : fn(...args);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
return { executeIfActive };
|
|
43
|
+
};
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
useActiveExecute
|
|
47
|
+
});
|
|
@@ -26,9 +26,11 @@ var import_react = require("react");
|
|
|
26
26
|
var import_bookingTicket = require("./bookingTicket");
|
|
27
27
|
var import_useEngineContext = require("../../../../hooks/useEngineContext");
|
|
28
28
|
var import_ahooks = require("ahooks");
|
|
29
|
+
var import_useActiveExecute = require("./useActiveExecute");
|
|
29
30
|
var useCustomer = (props) => {
|
|
30
31
|
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
|
31
32
|
const pisellos = (0, import_useEngineContext.usePisellOS)();
|
|
33
|
+
const { executeIfActive } = (0, import_useActiveExecute.useActiveExecute)();
|
|
32
34
|
const [customers, setCustomers] = (0, import_react.useState)([]);
|
|
33
35
|
const [selectedCustomer, setSelectedCustomer] = (0, import_react.useState)(
|
|
34
36
|
null
|
|
@@ -43,10 +45,12 @@ var useCustomer = (props) => {
|
|
|
43
45
|
const [hasMore, setHasMore] = (0, import_react.useState)(false);
|
|
44
46
|
const [loadingMore, setLoadingMore] = (0, import_react.useState)(false);
|
|
45
47
|
(0, import_react.useEffect)(() => {
|
|
46
|
-
|
|
48
|
+
var _a;
|
|
49
|
+
if (!bookingTicket) {
|
|
47
50
|
return;
|
|
48
51
|
}
|
|
49
|
-
const
|
|
52
|
+
const customerModule = (_a = bookingTicket == null ? void 0 : bookingTicket.store) == null ? void 0 : _a.customer;
|
|
53
|
+
const wrappedOnCustomerListUpdate = executeIfActive((state) => {
|
|
50
54
|
setCustomers(state.customerList);
|
|
51
55
|
setHasMore(state.hasMore);
|
|
52
56
|
setPagination((prev) => ({
|
|
@@ -56,16 +60,19 @@ var useCustomer = (props) => {
|
|
|
56
60
|
pageSize: state.pageSize
|
|
57
61
|
}));
|
|
58
62
|
});
|
|
59
|
-
const
|
|
60
|
-
var
|
|
63
|
+
const wrappedOnCustomerSelected = executeIfActive((customer) => {
|
|
64
|
+
var _a2;
|
|
61
65
|
setSelectedCustomer(customer);
|
|
62
|
-
(
|
|
66
|
+
(_a2 = props.changeCustomerToGlobalState) == null ? void 0 : _a2.call(props, customer);
|
|
63
67
|
});
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
const wrappedOnPaginationChange = executeIfActive((paginationInfo) => {
|
|
69
|
+
setPagination(paginationInfo);
|
|
70
|
+
});
|
|
71
|
+
const unlisten1 = customerModule.effectsOn("onCustomerListUpdate", wrappedOnCustomerListUpdate);
|
|
72
|
+
const unlisten2 = customerModule.effectsOn("onCustomerSelected", wrappedOnCustomerSelected);
|
|
73
|
+
const unlisten3 = customerModule.effectsOn(
|
|
74
|
+
"onPaginationChange",
|
|
75
|
+
wrappedOnPaginationChange
|
|
69
76
|
);
|
|
70
77
|
return () => {
|
|
71
78
|
unlisten1();
|
|
@@ -25,15 +25,37 @@ module.exports = __toCommonJS(useProducts_exports);
|
|
|
25
25
|
var import_ahooks = require("ahooks");
|
|
26
26
|
var import_bookingTicket = require("./bookingTicket");
|
|
27
27
|
var import_react = require("react");
|
|
28
|
+
var import_OsKeyContext = require("../../context/OsKeyContext");
|
|
29
|
+
var import_productCache = require("../../utils/productCache");
|
|
28
30
|
var useProducts = () => {
|
|
29
31
|
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
|
32
|
+
const osKey = (0, import_OsKeyContext.useOsKey)();
|
|
30
33
|
const [products, setProducts] = (0, import_react.useState)([]);
|
|
31
34
|
const [loading, setLoading] = (0, import_react.useState)(true);
|
|
35
|
+
const isFirstLoadRef = (0, import_react.useRef)(true);
|
|
32
36
|
const getProducts = (0, import_ahooks.useMemoizedFn)(async (params) => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
if (isFirstLoadRef.current && osKey) {
|
|
38
|
+
const cachedProducts = (0, import_productCache.getProductCache)(osKey);
|
|
39
|
+
if (cachedProducts) {
|
|
40
|
+
setProducts(cachedProducts);
|
|
41
|
+
setLoading(false);
|
|
42
|
+
}
|
|
43
|
+
isFirstLoadRef.current = false;
|
|
44
|
+
} else {
|
|
45
|
+
setLoading(true);
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
48
|
+
const freshProducts = await bookingTicket.loadProducts(params);
|
|
49
|
+
setProducts(freshProducts);
|
|
50
|
+
if (osKey) {
|
|
51
|
+
(0, import_productCache.setProductCache)(osKey, freshProducts);
|
|
52
|
+
console.log("[ProductCache] 已更新缓存");
|
|
53
|
+
}
|
|
54
|
+
} catch (error) {
|
|
55
|
+
console.error("[ProductCache] 获取产品失败:", error);
|
|
56
|
+
} finally {
|
|
57
|
+
setLoading(false);
|
|
58
|
+
}
|
|
37
59
|
});
|
|
38
60
|
return {
|
|
39
61
|
getProducts,
|
|
@@ -27,13 +27,15 @@ var import_utils = require("@pisell/utils");
|
|
|
27
27
|
var import_bookingTicket = require("./bookingTicket");
|
|
28
28
|
var import_utils2 = require("../../utils");
|
|
29
29
|
var import_materials = require("@pisell/materials");
|
|
30
|
+
var import_useActiveExecute = require("./useActiveExecute");
|
|
30
31
|
var useScanCustomer = () => {
|
|
31
32
|
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
|
32
33
|
const scanRef = (0, import_react.useRef)(null);
|
|
33
34
|
const Toast = (0, import_materials.useToast)();
|
|
35
|
+
const { executeIfActive } = (0, import_useActiveExecute.useActiveExecute)();
|
|
34
36
|
const handleScanCustomer = (callback) => {
|
|
35
37
|
console.log("handleScanCustomer>>>>>>>", callback);
|
|
36
|
-
scanRef.current = bookingTicket == null ? void 0 : bookingTicket.scanCustomerListener((data) => {
|
|
38
|
+
scanRef.current = bookingTicket == null ? void 0 : bookingTicket.scanCustomerListener(executeIfActive((data) => {
|
|
37
39
|
console.log("scanCustomerListener>>>>>>>", data);
|
|
38
40
|
if (data.status === "failed") {
|
|
39
41
|
Toast.fail(import_utils.locales.getText("pisell2.text.scan-global-failed"));
|
|
@@ -41,7 +43,7 @@ var useScanCustomer = () => {
|
|
|
41
43
|
}
|
|
42
44
|
const customer = (0, import_utils2.formatScanCustomer)(data);
|
|
43
45
|
callback(customer);
|
|
44
|
-
});
|
|
46
|
+
}));
|
|
45
47
|
};
|
|
46
48
|
return {
|
|
47
49
|
openScan: handleScanCustomer,
|
|
@@ -27,13 +27,17 @@ var import_bookingTicket = require("./bookingTicket");
|
|
|
27
27
|
var import_utils = require("../../utils");
|
|
28
28
|
var import_materials = require("@pisell/materials");
|
|
29
29
|
var import_utils2 = require("@pisell/utils");
|
|
30
|
+
var import_useActiveExecute = require("./useActiveExecute");
|
|
30
31
|
var useScanGlobal = () => {
|
|
31
32
|
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
|
32
33
|
const scanRef = (0, import_react.useRef)(null);
|
|
33
34
|
const Toast = (0, import_materials.useToast)();
|
|
35
|
+
const { executeIfActive } = (0, import_useActiveExecute.useActiveExecute)();
|
|
34
36
|
const handleScanGlobal = (callback) => {
|
|
37
|
+
var _a;
|
|
38
|
+
(_a = bookingTicket == null ? void 0 : bookingTicket.initPeripheralsListener) == null ? void 0 : _a.call(bookingTicket);
|
|
35
39
|
scanRef.current = bookingTicket == null ? void 0 : bookingTicket.scanGlobalListener(
|
|
36
|
-
(data) => {
|
|
40
|
+
executeIfActive((data) => {
|
|
37
41
|
console.log("scanGlobalListener>>>>>>>", data);
|
|
38
42
|
if (data.status === "failed") {
|
|
39
43
|
Toast.fail(import_utils2.locales.getText("pisell2.text.scan-global-failed"));
|
|
@@ -41,7 +45,7 @@ var useScanGlobal = () => {
|
|
|
41
45
|
}
|
|
42
46
|
const result = (0, import_utils.formatScanGlobal)(data);
|
|
43
47
|
callback(result);
|
|
44
|
-
}
|
|
48
|
+
})
|
|
45
49
|
);
|
|
46
50
|
};
|
|
47
51
|
return {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/ticketBooking/hooks/pisellos/useShopDiscountModule.ts
|
|
20
|
+
var useShopDiscountModule_exports = {};
|
|
21
|
+
__export(useShopDiscountModule_exports, {
|
|
22
|
+
useShopDiscountModule: () => useShopDiscountModule
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useShopDiscountModule_exports);
|
|
25
|
+
var import_useEngineContext = require("../../../../hooks/useEngineContext");
|
|
26
|
+
var import_OsKeyContext = require("../../context/OsKeyContext");
|
|
27
|
+
var import_utils = require("../../utils");
|
|
28
|
+
var useShopDiscountModule = () => {
|
|
29
|
+
const pisellOS = (0, import_useEngineContext.usePisellOS)();
|
|
30
|
+
const osKey = (0, import_OsKeyContext.useOsKey)();
|
|
31
|
+
const moduleKey = (0, import_utils.getShopDiscountKey)(osKey || "ticket");
|
|
32
|
+
return pisellOS.getModule(moduleKey);
|
|
33
|
+
};
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
useShopDiscountModule
|
|
37
|
+
});
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { ProductDisplayConfig, ProductDisplayPresetKey } from './components/ProductDisplayAdapter/types';
|
|
1
2
|
import './index.less';
|
|
2
3
|
interface TicketBookingProps {
|
|
3
4
|
productExtensionType: string[];
|
|
4
5
|
bookingConfigParams: Record<string, any>;
|
|
5
6
|
isShowMenuBar?: boolean;
|
|
7
|
+
isShowTimeBar?: boolean;
|
|
8
|
+
isShowFloatButtons?: boolean;
|
|
9
|
+
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
rulesHooks?: any;
|
|
6
12
|
}
|
|
7
13
|
declare const _default: (props: TicketBookingProps) => JSX.Element;
|
|
8
14
|
export default _default;
|
|
@@ -43,6 +43,9 @@ var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
|
43
43
|
var import_utils3 = require("./utils");
|
|
44
44
|
var import_locales = __toESM(require("./locales"));
|
|
45
45
|
var import_menuBar = __toESM(require("./components/menuBar"));
|
|
46
|
+
var import_ahooks = require("ahooks");
|
|
47
|
+
var import_OsKeyContext = require("./context/OsKeyContext");
|
|
48
|
+
var import_IsActiveContext = require("./context/IsActiveContext");
|
|
46
49
|
var import_index = require("./index.less");
|
|
47
50
|
var initialState = {
|
|
48
51
|
amountSymbol: "$",
|
|
@@ -189,13 +192,49 @@ var ticketBooking_default = (props) => {
|
|
|
189
192
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
190
193
|
const {
|
|
191
194
|
productExtensionType,
|
|
192
|
-
bookingConfigParams,
|
|
193
|
-
isShowMenuBar = true
|
|
195
|
+
bookingConfigParams: propsBookingConfigParams,
|
|
196
|
+
isShowMenuBar = true,
|
|
197
|
+
isShowTimeBar: propsIsShowTimeBar = true,
|
|
198
|
+
isShowFloatButtons: propsIsShowFloatButtons = true,
|
|
199
|
+
productDisplayConfig: propsProductDisplayConfig,
|
|
200
|
+
isActive = true,
|
|
201
|
+
rulesHooks: propsRulesHooks
|
|
194
202
|
} = props;
|
|
203
|
+
const [activeNavKey, setActiveNavKey] = (0, import_ahooks.useLocalStorageState)(
|
|
204
|
+
"pisell-ticket-booking-nav-key",
|
|
205
|
+
{
|
|
206
|
+
defaultValue: "ticket"
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
const bookingConfigParams = (0, import_react.useMemo)(() => {
|
|
210
|
+
if (isShowMenuBar && activeNavKey === "food") {
|
|
211
|
+
return {
|
|
212
|
+
...propsBookingConfigParams,
|
|
213
|
+
sub_type: "food",
|
|
214
|
+
source_type: "pos"
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
return propsBookingConfigParams;
|
|
218
|
+
}, [isShowMenuBar, activeNavKey, propsBookingConfigParams]);
|
|
219
|
+
const isShowTimeBar = (0, import_react.useMemo)(() => {
|
|
220
|
+
return isShowMenuBar && activeNavKey === "food" ? false : propsIsShowTimeBar;
|
|
221
|
+
}, [isShowMenuBar, activeNavKey, propsIsShowTimeBar]);
|
|
222
|
+
const isShowFloatButtons = (0, import_react.useMemo)(() => {
|
|
223
|
+
return isShowMenuBar && activeNavKey === "food" ? false : propsIsShowFloatButtons;
|
|
224
|
+
}, [isShowMenuBar, activeNavKey, propsIsShowFloatButtons]);
|
|
225
|
+
const osKey = (0, import_react.useMemo)(() => {
|
|
226
|
+
return bookingConfigParams == null ? void 0 : bookingConfigParams.sub_type;
|
|
227
|
+
}, [bookingConfigParams]);
|
|
228
|
+
const productDisplayConfig = (0, import_react.useMemo)(() => {
|
|
229
|
+
if (isShowMenuBar && activeNavKey === "food") {
|
|
230
|
+
return "sku-list-a5";
|
|
231
|
+
}
|
|
232
|
+
return propsProductDisplayConfig;
|
|
233
|
+
}, [isShowMenuBar, activeNavKey, propsProductDisplayConfig]);
|
|
195
234
|
const storeRef = (0, import_react.useRef)(null);
|
|
196
235
|
const context = (0, import_useEngineContext.default)();
|
|
197
236
|
const { pisellos, pisellosAllModule } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
198
|
-
const { BookingTicket } = pisellosAllModule || {};
|
|
237
|
+
const { BookingTicket, ShopDiscountImpl } = pisellosAllModule || {};
|
|
199
238
|
import_utils.locales.init(
|
|
200
239
|
import_locales.default,
|
|
201
240
|
((_f = (_e = (_d = (_c = (_b = context.appHelper.utils) == null ? void 0 : _b.getApp) == null ? void 0 : _c.call(_b)) == null ? void 0 : _d.locales) == null ? void 0 : _e.getLocale) == null ? void 0 : _f.call(_e)) || ((_h = (_g = context.appHelper.utils) == null ? void 0 : _g.storage) == null ? void 0 : _h.get("umi_locale")) || "en"
|
|
@@ -210,17 +249,34 @@ var ticketBooking_default = (props) => {
|
|
|
210
249
|
productExtensionType
|
|
211
250
|
});
|
|
212
251
|
storeRef.current = store;
|
|
213
|
-
}, []);
|
|
252
|
+
}, [bookingConfigParams, productExtensionType]);
|
|
214
253
|
(0, import_react.useMemo)(() => {
|
|
215
254
|
if (BookingTicket) {
|
|
216
|
-
pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket(
|
|
255
|
+
pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket((0, import_utils3.getBookingTicketKey)(osKey)), {
|
|
217
256
|
initialState: {},
|
|
218
257
|
otherParams: {
|
|
219
|
-
cacheId:
|
|
258
|
+
cacheId: (0, import_utils3.getBookingTicketKey)(osKey),
|
|
220
259
|
platform: "shop"
|
|
221
260
|
}
|
|
222
261
|
});
|
|
223
262
|
}
|
|
224
|
-
|
|
225
|
-
|
|
263
|
+
if (ShopDiscountImpl) {
|
|
264
|
+
pisellos == null ? void 0 : pisellos.registerModule(new ShopDiscountImpl((0, import_utils3.getShopDiscountKey)(osKey)), {
|
|
265
|
+
otherParams: {
|
|
266
|
+
platform: "shop",
|
|
267
|
+
rules: {
|
|
268
|
+
hooks: propsRulesHooks || import_utils3.rulesHooks
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
}, [osKey]);
|
|
274
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-wrapper" }, isShowMenuBar && /* @__PURE__ */ import_react.default.createElement(import_menuBar.default, { activeNavKey, onNavChange: setActiveNavKey }), /* @__PURE__ */ import_react.default.createElement(import_IsActiveContext.IsActiveProvider, { isActive }, /* @__PURE__ */ import_react.default.createElement(import_OsKeyContext.OsKeyProvider, { osKey }, /* @__PURE__ */ import_react.default.createElement(import_miniRedux.Provider, { store: storeRef.current, key: activeNavKey }, /* @__PURE__ */ import_react.default.createElement(
|
|
275
|
+
import_ticketBooking.default,
|
|
276
|
+
{
|
|
277
|
+
productDisplayConfig,
|
|
278
|
+
isShowTimeBar,
|
|
279
|
+
isShowFloatButtons
|
|
280
|
+
}
|
|
281
|
+
)))));
|
|
226
282
|
};
|
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
44
|
-
searchType: "
|
|
44
|
+
searchType: "product" | "wallet" | "customer" | "walletPass" | "local_product";
|
|
45
45
|
data: any;
|
|
46
46
|
scanCode: string;
|
|
47
47
|
} | null;
|
|
@@ -59,4 +59,32 @@ export declare const formatScanGlobal: (data: ScanData) => {
|
|
|
59
59
|
scanCode: string;
|
|
60
60
|
} | null | undefined;
|
|
61
61
|
export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
|
|
62
|
-
export
|
|
62
|
+
export declare const getBookingTicketKey: (osKey: string) => string;
|
|
63
|
+
export declare const getShopDiscountKey: (osKey: string) => string;
|
|
64
|
+
export declare const rulesHooks: {
|
|
65
|
+
getProduct(product: Record<string, any>): {
|
|
66
|
+
booking_id: any;
|
|
67
|
+
id: any;
|
|
68
|
+
_id: any;
|
|
69
|
+
price: any;
|
|
70
|
+
total: any;
|
|
71
|
+
discount_list: any;
|
|
72
|
+
origin_total: any;
|
|
73
|
+
num: any;
|
|
74
|
+
quantity: any;
|
|
75
|
+
vouchersApplicable: any;
|
|
76
|
+
};
|
|
77
|
+
setProduct(product: Record<string, any>, values: {
|
|
78
|
+
total: number;
|
|
79
|
+
discount_list: any[];
|
|
80
|
+
price: number;
|
|
81
|
+
quantity: number;
|
|
82
|
+
_id?: string;
|
|
83
|
+
}): {
|
|
84
|
+
_id: any;
|
|
85
|
+
discount_list: any[];
|
|
86
|
+
_extend: any;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export { getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey, getProductCache, setProductCache, clearProductCache, clearAllProductCache, getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache, } from './productCache';
|
|
90
|
+
export type { CacheType } from './productCache';
|