@pisell/private-materials 6.5.12 → 6.5.14
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 +164 -148
- 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 +7 -7
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/actionButtons/index.js +15 -9
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/voucher/index.js +23 -19
- package/es/components/booking/forms/footer.js +4 -13
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/index.js +7 -3
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentModal.js +17 -12
- package/es/components/checkout/components/CashPaymentModule/index.js +9 -9
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +40 -22
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +4 -4
- 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 +415 -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/pay/toC/model.d.ts +9 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/utils.d.ts +1 -1
- 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 +32 -10
- 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 +4 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +20 -10
- 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/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 -12
- package/es/components/ticketBooking/utils/index.d.ts +28 -1
- package/es/components/ticketBooking/utils/index.js +40 -0
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- 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/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +20 -10
- package/es/pro/priceKeyboard/components/cashKeyboard/index.less +1 -2
- package/es/utils/index.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/actionButtons/index.js +22 -17
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/voucher/index.js +33 -40
- package/lib/components/booking/forms/footer.js +7 -13
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/index.js +7 -3
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentModal.js +15 -12
- package/lib/components/checkout/components/CashPaymentModule/index.js +0 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +61 -46
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- 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 +415 -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/pay/toC/model.d.ts +9 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- 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 +36 -10
- 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 +4 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +14 -9
- 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/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 +69 -7
- package/lib/components/ticketBooking/utils/index.d.ts +28 -1
- package/lib/components/ticketBooking/utils/index.js +45 -2
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- 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/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +61 -27
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +1 -2
- package/lib/utils/index.d.ts +1 -1
- 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 +1 -1
|
@@ -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 || "");
|
|
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();
|
|
@@ -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 || "");
|
|
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,9 +1,15 @@
|
|
|
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;
|
|
6
7
|
onPrerenderComplete?: () => void;
|
|
8
|
+
isShowTimeBar?: boolean;
|
|
9
|
+
isShowFloatButtons?: boolean;
|
|
10
|
+
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
rulesHooks?: any;
|
|
7
13
|
}
|
|
8
14
|
declare const _default: (props: TicketBookingProps) => JSX.Element;
|
|
9
15
|
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: "$",
|
|
@@ -187,11 +190,52 @@ var initialState = {
|
|
|
187
190
|
};
|
|
188
191
|
var ticketBooking_default = (props) => {
|
|
189
192
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
190
|
-
const {
|
|
193
|
+
const {
|
|
194
|
+
productExtensionType,
|
|
195
|
+
bookingConfigParams: propsBookingConfigParams,
|
|
196
|
+
onPrerenderComplete,
|
|
197
|
+
isShowMenuBar = true,
|
|
198
|
+
isShowTimeBar: propsIsShowTimeBar = true,
|
|
199
|
+
isShowFloatButtons: propsIsShowFloatButtons = true,
|
|
200
|
+
productDisplayConfig: propsProductDisplayConfig,
|
|
201
|
+
isActive = true,
|
|
202
|
+
rulesHooks: propsRulesHooks
|
|
203
|
+
} = props;
|
|
204
|
+
const [activeNavKey, setActiveNavKey] = (0, import_ahooks.useLocalStorageState)(
|
|
205
|
+
"pisell-ticket-booking-nav-key",
|
|
206
|
+
{
|
|
207
|
+
defaultValue: "ticket"
|
|
208
|
+
}
|
|
209
|
+
);
|
|
210
|
+
const bookingConfigParams = (0, import_react.useMemo)(() => {
|
|
211
|
+
if (isShowMenuBar && activeNavKey === "food") {
|
|
212
|
+
return {
|
|
213
|
+
...propsBookingConfigParams,
|
|
214
|
+
sub_type: "food",
|
|
215
|
+
source_type: "pos"
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
return propsBookingConfigParams;
|
|
219
|
+
}, [isShowMenuBar, activeNavKey, propsBookingConfigParams]);
|
|
220
|
+
const isShowTimeBar = (0, import_react.useMemo)(() => {
|
|
221
|
+
return isShowMenuBar && activeNavKey === "food" ? false : propsIsShowTimeBar;
|
|
222
|
+
}, [isShowMenuBar, activeNavKey, propsIsShowTimeBar]);
|
|
223
|
+
const isShowFloatButtons = (0, import_react.useMemo)(() => {
|
|
224
|
+
return isShowMenuBar && activeNavKey === "food" ? false : propsIsShowFloatButtons;
|
|
225
|
+
}, [isShowMenuBar, activeNavKey, propsIsShowFloatButtons]);
|
|
226
|
+
const osKey = (0, import_react.useMemo)(() => {
|
|
227
|
+
return bookingConfigParams == null ? void 0 : bookingConfigParams.sub_type;
|
|
228
|
+
}, [bookingConfigParams]);
|
|
229
|
+
const productDisplayConfig = (0, import_react.useMemo)(() => {
|
|
230
|
+
if (isShowMenuBar && activeNavKey === "food") {
|
|
231
|
+
return "sku-list-a5";
|
|
232
|
+
}
|
|
233
|
+
return propsProductDisplayConfig;
|
|
234
|
+
}, [isShowMenuBar, activeNavKey, propsProductDisplayConfig]);
|
|
191
235
|
const storeRef = (0, import_react.useRef)(null);
|
|
192
236
|
const context = (0, import_useEngineContext.default)();
|
|
193
237
|
const { pisellos, pisellosAllModule } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
194
|
-
const { BookingTicket } = pisellosAllModule || {};
|
|
238
|
+
const { BookingTicket, ShopDiscountImpl } = pisellosAllModule || {};
|
|
195
239
|
import_utils.locales.init(
|
|
196
240
|
import_locales.default,
|
|
197
241
|
((_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"
|
|
@@ -206,17 +250,35 @@ var ticketBooking_default = (props) => {
|
|
|
206
250
|
productExtensionType
|
|
207
251
|
});
|
|
208
252
|
storeRef.current = store;
|
|
209
|
-
}, []);
|
|
253
|
+
}, [bookingConfigParams, productExtensionType]);
|
|
210
254
|
(0, import_react.useMemo)(() => {
|
|
211
255
|
if (BookingTicket) {
|
|
212
|
-
pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket(
|
|
256
|
+
pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket((0, import_utils3.getBookingTicketKey)(osKey)), {
|
|
213
257
|
initialState: {},
|
|
214
258
|
otherParams: {
|
|
215
|
-
cacheId:
|
|
259
|
+
cacheId: (0, import_utils3.getBookingTicketKey)(osKey),
|
|
216
260
|
platform: "shop"
|
|
217
261
|
}
|
|
218
262
|
});
|
|
219
263
|
}
|
|
220
|
-
|
|
221
|
-
|
|
264
|
+
if (ShopDiscountImpl) {
|
|
265
|
+
pisellos == null ? void 0 : pisellos.registerModule(new ShopDiscountImpl((0, import_utils3.getShopDiscountKey)(osKey)), {
|
|
266
|
+
otherParams: {
|
|
267
|
+
platform: "shop",
|
|
268
|
+
rules: {
|
|
269
|
+
hooks: propsRulesHooks || import_utils3.rulesHooks
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}, [osKey]);
|
|
275
|
+
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(
|
|
276
|
+
import_ticketBooking.default,
|
|
277
|
+
{
|
|
278
|
+
onPrerenderComplete,
|
|
279
|
+
productDisplayConfig,
|
|
280
|
+
isShowTimeBar,
|
|
281
|
+
isShowFloatButtons
|
|
282
|
+
}
|
|
283
|
+
)))));
|
|
222
284
|
};
|
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
44
|
-
searchType: "
|
|
44
|
+
searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
|
|
45
45
|
data: any;
|
|
46
46
|
scanCode: string;
|
|
47
47
|
} | null;
|
|
@@ -59,4 +59,31 @@ 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 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
|
+
};
|
|
62
89
|
export {};
|
|
@@ -39,6 +39,7 @@ __export(utils_exports, {
|
|
|
39
39
|
formatScanCustomer: () => formatScanCustomer,
|
|
40
40
|
formatScanGlobal: () => formatScanGlobal,
|
|
41
41
|
genServiceKey: () => genServiceKey,
|
|
42
|
+
getBookingTicketKey: () => getBookingTicketKey,
|
|
42
43
|
getCartProductOverlay: () => getCartProductOverlay,
|
|
43
44
|
getDefaultStartParam: () => getDefaultStartParam,
|
|
44
45
|
getDisabledEdit: () => getDisabledEdit,
|
|
@@ -46,8 +47,10 @@ __export(utils_exports, {
|
|
|
46
47
|
getIsParallelResourcesBooking: () => getIsParallelResourcesBooking,
|
|
47
48
|
getIsShowNumber: () => getIsShowNumber,
|
|
48
49
|
getNextTimeSlice: () => getNextTimeSlice,
|
|
50
|
+
getShopDiscountKey: () => getShopDiscountKey,
|
|
49
51
|
isSameProduct: () => isSameProduct,
|
|
50
|
-
restoreProductOtherData: () => restoreProductOtherData
|
|
52
|
+
restoreProductOtherData: () => restoreProductOtherData,
|
|
53
|
+
rulesHooks: () => rulesHooks
|
|
51
54
|
});
|
|
52
55
|
module.exports = __toCommonJS(utils_exports);
|
|
53
56
|
var import_dayjs = __toESM(require("dayjs"));
|
|
@@ -299,6 +302,43 @@ var createSimpleCacheItem = (item, e, state) => {
|
|
|
299
302
|
};
|
|
300
303
|
return cacheItem;
|
|
301
304
|
};
|
|
305
|
+
var getBookingTicketKey = (osKey) => {
|
|
306
|
+
return `bookingTicket-${osKey}`;
|
|
307
|
+
};
|
|
308
|
+
var getShopDiscountKey = (osKey) => {
|
|
309
|
+
return `shopDiscount-${osKey}`;
|
|
310
|
+
};
|
|
311
|
+
var rulesHooks = {
|
|
312
|
+
// 获取商品关键信息
|
|
313
|
+
getProduct(product) {
|
|
314
|
+
const detail = {
|
|
315
|
+
booking_id: product.booking_id,
|
|
316
|
+
id: product.id,
|
|
317
|
+
_id: product._id,
|
|
318
|
+
price: product.price,
|
|
319
|
+
total: product._extend.total,
|
|
320
|
+
discount_list: product.discount_list,
|
|
321
|
+
origin_total: product._extend.origin_total,
|
|
322
|
+
num: product._extend.quantity,
|
|
323
|
+
quantity: product._extend.quantity || 1,
|
|
324
|
+
vouchersApplicable: product.vouchersApplicable
|
|
325
|
+
};
|
|
326
|
+
return detail;
|
|
327
|
+
},
|
|
328
|
+
setProduct(product, values) {
|
|
329
|
+
const detail = {
|
|
330
|
+
...product,
|
|
331
|
+
_id: values._id || product._id,
|
|
332
|
+
discount_list: values.discount_list,
|
|
333
|
+
_extend: {
|
|
334
|
+
...product._extend,
|
|
335
|
+
..."total" in values ? { total: values.total } : {},
|
|
336
|
+
..."quantity" in values ? { quantity: values.quantity } : {}
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
return detail;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
302
342
|
// Annotate the CommonJS export names for ESM import in node:
|
|
303
343
|
0 && (module.exports = {
|
|
304
344
|
addService,
|
|
@@ -311,6 +351,7 @@ var createSimpleCacheItem = (item, e, state) => {
|
|
|
311
351
|
formatScanCustomer,
|
|
312
352
|
formatScanGlobal,
|
|
313
353
|
genServiceKey,
|
|
354
|
+
getBookingTicketKey,
|
|
314
355
|
getCartProductOverlay,
|
|
315
356
|
getDefaultStartParam,
|
|
316
357
|
getDisabledEdit,
|
|
@@ -318,6 +359,8 @@ var createSimpleCacheItem = (item, e, state) => {
|
|
|
318
359
|
getIsParallelResourcesBooking,
|
|
319
360
|
getIsShowNumber,
|
|
320
361
|
getNextTimeSlice,
|
|
362
|
+
getShopDiscountKey,
|
|
321
363
|
isSameProduct,
|
|
322
|
-
restoreProductOtherData
|
|
364
|
+
restoreProductOtherData,
|
|
365
|
+
rulesHooks
|
|
323
366
|
});
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
addWalletCard: any;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
walletDetailState: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
setup?: 'menu' | 'list' | 'detail' | string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
7
|
+
state: RechargeState;
|
|
8
|
+
} & {
|
|
9
|
+
dispatch: (params: {
|
|
10
|
+
type: string;
|
|
11
|
+
payload: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
selectedGiftOptionId: string | null;
|
|
4
|
+
cardList: Array<{
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
price: number;
|
|
8
|
+
}>;
|
|
9
|
+
selectedItem: {
|
|
10
|
+
id?: string;
|
|
11
|
+
gift_price?: number;
|
|
12
|
+
price?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
variant_id?: string;
|
|
15
|
+
};
|
|
16
|
+
productId?: string;
|
|
17
|
+
detailId?: string;
|
|
18
|
+
total: string | number;
|
|
19
|
+
rechargeModalOpen: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
+
state: RechargeState;
|
|
23
|
+
} & {
|
|
24
|
+
dispatch: (params: {
|
|
25
|
+
type: string;
|
|
26
|
+
payload: any;
|
|
27
|
+
}) => void;
|
|
28
|
+
}>;
|
|
29
|
+
export {};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: 0;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|