@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,298 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type BoolConfigVal = false | true;
|
|
3
|
+
declare type IsVisible = 0 | 1;
|
|
4
|
+
declare type SkuDisplayMode = 'display_a1' | 'display_a2' | 'display_a5' | 'display_a9' | 'display_custom';
|
|
5
|
+
declare type SkuLayoutDirection = 'row' | 'column';
|
|
6
|
+
declare type SkuImageSlotPosition = 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
7
|
+
declare type SkuActionType = 'icon' | 'radio' | 'checkbox' | 'button';
|
|
8
|
+
declare type SkuExtraStepperSize = 'large' | 'small';
|
|
9
|
+
declare type SkuFavoritePosition = 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
10
|
+
declare type SkuTagsSize = 'small' | 'medium' | 'large';
|
|
11
|
+
export interface SkuCardConfig {
|
|
12
|
+
displayMode?: SkuDisplayMode;
|
|
13
|
+
layoutDirection?: SkuLayoutDirection;
|
|
14
|
+
background?: string;
|
|
15
|
+
paddingY?: number;
|
|
16
|
+
paddingX?: number;
|
|
17
|
+
marginY?: number;
|
|
18
|
+
marginX?: number;
|
|
19
|
+
radius?: number;
|
|
20
|
+
isBorderVisible?: BoolConfigVal;
|
|
21
|
+
borderWidth?: number;
|
|
22
|
+
borderColor?: string;
|
|
23
|
+
isStatusOverlayVisible?: boolean;
|
|
24
|
+
statusOverlayText?: string;
|
|
25
|
+
isFoldable?: BoolConfigVal;
|
|
26
|
+
slot?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export interface SkuImageConfig {
|
|
29
|
+
isCover?: BoolConfigVal;
|
|
30
|
+
width?: string;
|
|
31
|
+
height?: string;
|
|
32
|
+
isTextFallback?: BoolConfigVal;
|
|
33
|
+
background?: string;
|
|
34
|
+
radius?: number;
|
|
35
|
+
slot?: React.ReactNode;
|
|
36
|
+
slotPosition?: SkuImageSlotPosition;
|
|
37
|
+
}
|
|
38
|
+
export interface SkuProductNameConfig {
|
|
39
|
+
isOpen?: BoolConfigVal;
|
|
40
|
+
value?: string;
|
|
41
|
+
fontSize?: number;
|
|
42
|
+
fontWeight?: number;
|
|
43
|
+
color?: string;
|
|
44
|
+
ellipsisCount?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface SkuProductSubtitleConfig {
|
|
47
|
+
isOpen?: BoolConfigVal;
|
|
48
|
+
value?: any;
|
|
49
|
+
fontSize?: number;
|
|
50
|
+
fontWeight?: number;
|
|
51
|
+
color?: string;
|
|
52
|
+
ellipsisCount?: number;
|
|
53
|
+
}
|
|
54
|
+
export interface SkuProductPriceConfig {
|
|
55
|
+
isOpen?: BoolConfigVal;
|
|
56
|
+
isPrice?: BoolConfigVal;
|
|
57
|
+
priceFontSize?: number;
|
|
58
|
+
priceFontWeight?: number;
|
|
59
|
+
priceColor?: string;
|
|
60
|
+
isShowZeroPrice?: BoolConfigVal;
|
|
61
|
+
isShowFreePrice?: BoolConfigVal;
|
|
62
|
+
isOriginPrice?: BoolConfigVal;
|
|
63
|
+
originPriceFontSize?: number;
|
|
64
|
+
originPriceFontWeight?: number;
|
|
65
|
+
originPriceColor?: string;
|
|
66
|
+
isTaxPrice?: BoolConfigVal;
|
|
67
|
+
isCustomText?: BoolConfigVal;
|
|
68
|
+
customTextType?: string;
|
|
69
|
+
customTextValue?: number;
|
|
70
|
+
customTextMinValue?: number;
|
|
71
|
+
customTextMaxValue?: number;
|
|
72
|
+
isMiniPrice?: BoolConfigVal;
|
|
73
|
+
}
|
|
74
|
+
export interface SkuProductStockConfig {
|
|
75
|
+
isOpen?: BoolConfigVal;
|
|
76
|
+
fontSize?: number;
|
|
77
|
+
fontWeight?: number;
|
|
78
|
+
color?: string;
|
|
79
|
+
customText?: React.ReactNode;
|
|
80
|
+
}
|
|
81
|
+
export interface SkuProductCapacityConfig {
|
|
82
|
+
isOpen?: BoolConfigVal;
|
|
83
|
+
fontSize?: number;
|
|
84
|
+
fontWeight?: number;
|
|
85
|
+
color?: string;
|
|
86
|
+
customText?: React.ReactNode;
|
|
87
|
+
}
|
|
88
|
+
export interface SkuProductCountdownConfig {
|
|
89
|
+
isOpen?: BoolConfigVal;
|
|
90
|
+
fontSize?: number;
|
|
91
|
+
fontWeight?: number;
|
|
92
|
+
color?: string;
|
|
93
|
+
customText?: React.ReactNode;
|
|
94
|
+
}
|
|
95
|
+
export interface SkuProductMemberPriceConfig {
|
|
96
|
+
isOpen?: BoolConfigVal;
|
|
97
|
+
isMemberPrice?: BoolConfigVal;
|
|
98
|
+
fontSize?: number;
|
|
99
|
+
fontWeight?: number;
|
|
100
|
+
color?: string;
|
|
101
|
+
isIndicator?: BoolConfigVal;
|
|
102
|
+
indicatorBackground?: string;
|
|
103
|
+
indicatorPaddingY?: number;
|
|
104
|
+
indicatorPaddingX?: number;
|
|
105
|
+
indicatorMarginX?: number;
|
|
106
|
+
indicatorRadius?: number;
|
|
107
|
+
isIndicatorBorder?: BoolConfigVal;
|
|
108
|
+
indicatorBorderWidth?: number;
|
|
109
|
+
indicatorBorderColor?: string;
|
|
110
|
+
indicatorFontSize?: number;
|
|
111
|
+
indicatorFontWeight?: number;
|
|
112
|
+
indicatorColor?: string;
|
|
113
|
+
indicatorIcon?: React.ReactNode;
|
|
114
|
+
customText?: React.ReactNode;
|
|
115
|
+
}
|
|
116
|
+
export interface SkuDurationConfig {
|
|
117
|
+
isOpen?: BoolConfigVal;
|
|
118
|
+
fontSize?: number;
|
|
119
|
+
fontWeight?: number;
|
|
120
|
+
color?: string;
|
|
121
|
+
customText?: React.ReactNode;
|
|
122
|
+
}
|
|
123
|
+
export interface SkuTimeConfig {
|
|
124
|
+
isOpen?: BoolConfigVal;
|
|
125
|
+
fontSize?: number;
|
|
126
|
+
fontWeight?: number;
|
|
127
|
+
color?: string;
|
|
128
|
+
customText?: React.ReactNode;
|
|
129
|
+
}
|
|
130
|
+
export interface SkuResourceConfig {
|
|
131
|
+
isOpen?: BoolConfigVal;
|
|
132
|
+
fontSize?: number;
|
|
133
|
+
fontWeight?: number;
|
|
134
|
+
color?: string;
|
|
135
|
+
customText?: React.ReactNode;
|
|
136
|
+
}
|
|
137
|
+
export interface SkuTextConfig {
|
|
138
|
+
paddingY?: number;
|
|
139
|
+
justifyContent?: string;
|
|
140
|
+
alignItems?: string;
|
|
141
|
+
slot?: React.ReactNode;
|
|
142
|
+
}
|
|
143
|
+
export interface SkuActionIconMethod {
|
|
144
|
+
icon?: React.ReactNode;
|
|
145
|
+
background?: string;
|
|
146
|
+
paddingY?: number;
|
|
147
|
+
paddingX?: number;
|
|
148
|
+
radius?: number;
|
|
149
|
+
isBorder?: BoolConfigVal;
|
|
150
|
+
borderWidth?: number;
|
|
151
|
+
borderColor?: string;
|
|
152
|
+
}
|
|
153
|
+
export interface SkuActionButtonMethod {
|
|
154
|
+
text?: string;
|
|
155
|
+
fontSize?: number;
|
|
156
|
+
fontWeight?: number;
|
|
157
|
+
color?: string;
|
|
158
|
+
background?: string;
|
|
159
|
+
paddingY?: number;
|
|
160
|
+
paddingX?: number;
|
|
161
|
+
radius?: number;
|
|
162
|
+
isBorder?: BoolConfigVal;
|
|
163
|
+
borderWidth?: number;
|
|
164
|
+
borderColor?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface SkuActionConfig {
|
|
167
|
+
isOpen?: BoolConfigVal;
|
|
168
|
+
method?: SkuActionType;
|
|
169
|
+
iconMethod?: SkuActionIconMethod;
|
|
170
|
+
radioMethod?: SkuActionIconMethod;
|
|
171
|
+
checkboxMethod?: SkuActionButtonMethod;
|
|
172
|
+
buttonMethod?: SkuActionButtonMethod;
|
|
173
|
+
slot?: React.ReactNode;
|
|
174
|
+
}
|
|
175
|
+
export interface SkuExtraConfig {
|
|
176
|
+
isOpen?: BoolConfigVal;
|
|
177
|
+
isStepper?: BoolConfigVal;
|
|
178
|
+
stepperSize?: SkuExtraStepperSize;
|
|
179
|
+
stepperColor?: string;
|
|
180
|
+
isFavorite?: BoolConfigVal;
|
|
181
|
+
favoritePosition?: SkuFavoritePosition;
|
|
182
|
+
favoriteIcon?: React.ReactNode;
|
|
183
|
+
favoriteBackground?: string;
|
|
184
|
+
favoritePaddingY?: number;
|
|
185
|
+
favoritePaddingX?: number;
|
|
186
|
+
favoriteRadius?: number;
|
|
187
|
+
isFavoriteBorder?: BoolConfigVal;
|
|
188
|
+
favoriteBorderWidth?: number;
|
|
189
|
+
favoriteBorderColor?: string;
|
|
190
|
+
isTooltipTag?: BoolConfigVal;
|
|
191
|
+
isTooltipTagSlot?: any;
|
|
192
|
+
}
|
|
193
|
+
export interface SkuTagsGroupConfig {
|
|
194
|
+
title?: any;
|
|
195
|
+
background?: string;
|
|
196
|
+
paddingY?: number;
|
|
197
|
+
paddingX?: number;
|
|
198
|
+
radius?: number;
|
|
199
|
+
isBorder?: BoolConfigVal;
|
|
200
|
+
borderWidth?: number;
|
|
201
|
+
borderColor?: string;
|
|
202
|
+
fontSize?: number;
|
|
203
|
+
fontWeight?: number;
|
|
204
|
+
color?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface SkuTagsConfig {
|
|
207
|
+
isOpen?: BoolConfigVal;
|
|
208
|
+
lists?: SkuTagsGroupConfig[];
|
|
209
|
+
marginX?: number;
|
|
210
|
+
size?: SkuTagsSize;
|
|
211
|
+
isShowAll?: BoolConfigVal;
|
|
212
|
+
maxCount?: number;
|
|
213
|
+
}
|
|
214
|
+
export interface SkuPromotionsGroupConfig {
|
|
215
|
+
title?: any;
|
|
216
|
+
background?: string;
|
|
217
|
+
paddingY?: number;
|
|
218
|
+
paddingX?: number;
|
|
219
|
+
radius?: number;
|
|
220
|
+
isBorder?: BoolConfigVal;
|
|
221
|
+
borderWidth?: number;
|
|
222
|
+
borderColor?: string;
|
|
223
|
+
fontSize?: number;
|
|
224
|
+
fontWeight?: number;
|
|
225
|
+
color?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface SkuPromotionsConfig {
|
|
228
|
+
isOpen?: BoolConfigVal;
|
|
229
|
+
lists?: SkuPromotionsGroupConfig[];
|
|
230
|
+
marginX?: number;
|
|
231
|
+
size?: SkuTagsSize;
|
|
232
|
+
isShowAll?: BoolConfigVal;
|
|
233
|
+
maxCount?: number;
|
|
234
|
+
}
|
|
235
|
+
export interface SkuStatusOverlayConfig {
|
|
236
|
+
isOpen?: BoolConfigVal;
|
|
237
|
+
fontSize?: number;
|
|
238
|
+
fontWeight?: number;
|
|
239
|
+
color?: string;
|
|
240
|
+
text?: string;
|
|
241
|
+
background?: string;
|
|
242
|
+
slot?: React.ReactNode;
|
|
243
|
+
}
|
|
244
|
+
export interface SkuTextWrapConfig {
|
|
245
|
+
infoConfig?: SkuTextConfig;
|
|
246
|
+
skuNameConfig?: SkuProductNameConfig;
|
|
247
|
+
skuSubtitleConfig?: SkuProductSubtitleConfig;
|
|
248
|
+
skuPriceConfig?: SkuProductPriceConfig;
|
|
249
|
+
skuStockConfig?: SkuProductStockConfig;
|
|
250
|
+
skuCapacityConfig?: SkuProductCapacityConfig;
|
|
251
|
+
skuCountdownConfig?: SkuProductCountdownConfig;
|
|
252
|
+
skuMemberPriceConfig?: SkuProductMemberPriceConfig;
|
|
253
|
+
skuDurationConfig?: SkuDurationConfig;
|
|
254
|
+
skuTimeConfig?: SkuTimeConfig;
|
|
255
|
+
skuResourceConfig?: SkuResourceConfig;
|
|
256
|
+
skuTagsConfig?: SkuTagsConfig;
|
|
257
|
+
skuPromotionsConfig?: SkuPromotionsConfig;
|
|
258
|
+
}
|
|
259
|
+
export interface DataSourceConfig {
|
|
260
|
+
title?: string;
|
|
261
|
+
subtitle?: string;
|
|
262
|
+
cover?: string;
|
|
263
|
+
price?: number;
|
|
264
|
+
original_price?: number | string;
|
|
265
|
+
tax_fee?: number | string;
|
|
266
|
+
stock?: number;
|
|
267
|
+
capacity?: number;
|
|
268
|
+
countdown?: number | string;
|
|
269
|
+
member_price?: number;
|
|
270
|
+
duration?: number;
|
|
271
|
+
time?: string;
|
|
272
|
+
resource?: string;
|
|
273
|
+
sortKeys?: string[];
|
|
274
|
+
warning_lists?: string[];
|
|
275
|
+
promotions?: any[];
|
|
276
|
+
resources?: string;
|
|
277
|
+
stock_quantity?: number;
|
|
278
|
+
is_track?: IsVisible;
|
|
279
|
+
tags?: any[];
|
|
280
|
+
tooltip_tags?: any[];
|
|
281
|
+
className?: string;
|
|
282
|
+
[key: string]: any;
|
|
283
|
+
}
|
|
284
|
+
export interface ProductCardConfig {
|
|
285
|
+
dataSource?: DataSourceConfig;
|
|
286
|
+
skuCardConfig?: SkuCardConfig;
|
|
287
|
+
skuImageConfig?: SkuImageConfig;
|
|
288
|
+
skuTextConfig?: SkuTextWrapConfig;
|
|
289
|
+
skuActionConfig?: SkuActionConfig;
|
|
290
|
+
skuExtraConfig?: SkuExtraConfig;
|
|
291
|
+
skuStatusOverlayConfig?: SkuStatusOverlayConfig;
|
|
292
|
+
className?: string;
|
|
293
|
+
onCardClick?: (item: any, extParams?: any) => void;
|
|
294
|
+
onFavorite?: (item: any, extParams?: any) => void;
|
|
295
|
+
onAction?: (item: any, extParams?: any) => void;
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
}
|
|
298
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
8
|
+
import { productCardDefault } from "./status";
|
|
9
|
+
/**
|
|
10
|
+
* @title: 将扁平化的props转换为嵌套结构
|
|
11
|
+
* @description:
|
|
12
|
+
* @param {any} flatProps
|
|
13
|
+
* @return {*}
|
|
14
|
+
* @Author: WangHan
|
|
15
|
+
* @Date: 2025-09-01 11:25
|
|
16
|
+
*/
|
|
17
|
+
export var transformProps = function transformProps(flatProps) {
|
|
18
|
+
var _productCardDefault$f = _objectSpread(_objectSpread({}, productCardDefault), flatProps),
|
|
19
|
+
restProps = Object.assign({}, (_objectDestructuringEmpty(_productCardDefault$f), _productCardDefault$f));
|
|
20
|
+
return _objectSpread({}, restProps);
|
|
21
|
+
};
|
|
@@ -12,14 +12,16 @@ import "./index.less";
|
|
|
12
12
|
var index = function index(props) {
|
|
13
13
|
var _context$appHelper$ut;
|
|
14
14
|
var context = useEngineContext();
|
|
15
|
-
var value = props.value
|
|
15
|
+
var value = props.value,
|
|
16
|
+
customPrefixText = props.customPrefixText,
|
|
17
|
+
customSuffixText = props.customSuffixText;
|
|
16
18
|
var locale = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en';
|
|
17
19
|
var _useMemo = useMemo(function () {
|
|
18
20
|
if (!props.isMini) return ['', ''];
|
|
19
|
-
if (!locale) return ['From', ''];
|
|
20
|
-
if (locale.toLowerCase().includes('zh')) return ['', '起'];
|
|
21
|
-
return ['From', ''];
|
|
22
|
-
}, [locale, props.isMini]),
|
|
21
|
+
if (!locale) return [customPrefixText || 'From', ''];
|
|
22
|
+
if (locale.toLowerCase().includes('zh')) return ['', customSuffixText || '起'];
|
|
23
|
+
return [customPrefixText || 'From', ''];
|
|
24
|
+
}, [locale, props.isMini, customPrefixText, customSuffixText]),
|
|
23
25
|
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
24
26
|
_prefix = _useMemo2[0],
|
|
25
27
|
_suffix = _useMemo2[1];
|
|
@@ -16,6 +16,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
16
16
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
17
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
18
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
19
|
+
import { Tooltip } from 'antd';
|
|
19
20
|
import { useControllableValue } from 'ahooks';
|
|
20
21
|
//@ts-ignore
|
|
21
22
|
import { merge, omit } from 'lodash';
|
|
@@ -232,15 +233,21 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
232
233
|
className: "pisell-cash-keyboard-intact-container-top-label"
|
|
233
234
|
}, mergedDisplayField.balanceDue.label), /*#__PURE__*/React.createElement("div", {
|
|
234
235
|
className: "pisell-cash-keyboard-intact-container-top-value"
|
|
236
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
237
|
+
title: formatAmountWithOptions(originalValue || '', amountSymbol, {
|
|
238
|
+
precision: 2,
|
|
239
|
+
hideDecimalForWholeNumbers: false,
|
|
240
|
+
showCurrencySymbol: true
|
|
241
|
+
})
|
|
235
242
|
}, /*#__PURE__*/React.createElement(AutoResizeText, {
|
|
236
243
|
minFontSizePx: 10,
|
|
237
|
-
maxFontSizePx:
|
|
244
|
+
maxFontSizePx: 18,
|
|
238
245
|
fontSizePrecisionPx: 0.5
|
|
239
246
|
}, formatAmountWithOptions(originalValue || '', amountSymbol, {
|
|
240
247
|
precision: 2,
|
|
241
248
|
hideDecimalForWholeNumbers: false,
|
|
242
249
|
showCurrencySymbol: true
|
|
243
|
-
})))), ((_mergedDisplayField$c = mergedDisplayField.cashReceived) === null || _mergedDisplayField$c === void 0 ? void 0 : _mergedDisplayField$c.visible) && /*#__PURE__*/React.createElement("div", {
|
|
250
|
+
}))))), ((_mergedDisplayField$c = mergedDisplayField.cashReceived) === null || _mergedDisplayField$c === void 0 ? void 0 : _mergedDisplayField$c.visible) && /*#__PURE__*/React.createElement("div", {
|
|
244
251
|
style: _objectSpread(_objectSpread({}, getGridStyle(1)), {}, {
|
|
245
252
|
padding: '6px 16px',
|
|
246
253
|
borderRadius: '8px',
|
|
@@ -265,16 +272,12 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
265
272
|
color: '#667085'
|
|
266
273
|
}
|
|
267
274
|
}, mergedDisplayField.cashReceived.label),
|
|
268
|
-
value: internalValue ?
|
|
269
|
-
minFontSizePx: 10,
|
|
270
|
-
maxFontSizePx: 14,
|
|
271
|
-
fontSizePrecisionPx: 0.5
|
|
272
|
-
}, formatAmountWithOptions(internalValue || '', amountSymbol, {
|
|
275
|
+
value: internalValue ? formatAmountWithOptions(internalValue || '', amountSymbol, {
|
|
273
276
|
value: internalValue,
|
|
274
277
|
hideDecimalForWholeNumbers: false,
|
|
275
278
|
precision: 2,
|
|
276
279
|
showCurrencySymbol: true
|
|
277
|
-
})
|
|
280
|
+
}) : '',
|
|
278
281
|
height: 30,
|
|
279
282
|
fontSize: 20,
|
|
280
283
|
placeholder: placeholder,
|
|
@@ -294,16 +297,23 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
294
297
|
className: "pisell-cash-keyboard-intact-container-top-label"
|
|
295
298
|
}, mergedDisplayField.changeDue.label), /*#__PURE__*/React.createElement("div", {
|
|
296
299
|
className: "pisell-cash-keyboard-intact-container-top-value"
|
|
300
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
301
|
+
title: formatAmountWithOptions(hiddenChangeDue ? 0 : changeDue, amountSymbol, {
|
|
302
|
+
value: hiddenChangeDue ? 0 : changeDue,
|
|
303
|
+
showCurrencySymbol: true,
|
|
304
|
+
hideDecimalForWholeNumbers: false,
|
|
305
|
+
precision: 2
|
|
306
|
+
})
|
|
297
307
|
}, /*#__PURE__*/React.createElement(AutoResizeText, {
|
|
298
308
|
minFontSizePx: 10,
|
|
299
|
-
maxFontSizePx:
|
|
309
|
+
maxFontSizePx: 18,
|
|
300
310
|
fontSizePrecisionPx: 0.5
|
|
301
311
|
}, formatAmountWithOptions(hiddenChangeDue ? 0 : changeDue, amountSymbol, {
|
|
302
312
|
value: hiddenChangeDue ? 0 : changeDue,
|
|
303
313
|
showCurrencySymbol: true,
|
|
304
314
|
hideDecimalForWholeNumbers: false,
|
|
305
315
|
precision: 2
|
|
306
|
-
}))))), /*#__PURE__*/React.createElement(Shortcuts, {
|
|
316
|
+
})))))), /*#__PURE__*/React.createElement(Shortcuts, {
|
|
307
317
|
presets: getDefaultPresets(),
|
|
308
318
|
onChange: setInternalValue,
|
|
309
319
|
disabled: disabled
|
package/es/utils/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
|
20
20
|
destroy: () => void;
|
|
21
|
-
update: (configUpdate: import("antd
|
|
21
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
22
22
|
}>;
|
|
23
23
|
export { modal };
|
|
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
|
30
30
|
* @return {*}
|
|
31
31
|
* @Author: xiangfeng.xue
|
|
32
32
|
*/
|
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00"
|
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
|
|
34
34
|
/**
|
|
35
35
|
* 计算所有价格明细
|
|
36
36
|
* @param items - 购物车商品数组
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -48,8 +48,9 @@ var import_useCustomer = require("../../../ticketBooking/hooks/pisellos/useCusto
|
|
|
48
48
|
var import_ahooks = require("ahooks");
|
|
49
49
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
50
50
|
var import_useScanManager = __toESM(require("../../../ticketBooking/hooks/pisellos/useScanManager"));
|
|
51
|
-
var import_hooks = require("../../../appointmentBooking/hooks");
|
|
52
51
|
var import_priceKeyboard = require("../../../../pro/priceKeyboard");
|
|
52
|
+
var import_pisellos = require("../../../ticketBooking/hooks/pisellos");
|
|
53
|
+
var import_useShopDiscountModule = require("../../../ticketBooking/hooks/pisellos/useShopDiscountModule");
|
|
53
54
|
var createToastContent = (text) => /* @__PURE__ */ import_react.default.createElement("div", { className: "action-buttons-toast-content" }, text);
|
|
54
55
|
var ActionButtons = ({
|
|
55
56
|
state,
|
|
@@ -62,12 +63,14 @@ var ActionButtons = ({
|
|
|
62
63
|
const [showPriceAdjustModal, setShowPriceAdjustModal] = (0, import_react.useState)(false);
|
|
63
64
|
const [showCustomiseModal, setShowCustomiseModal] = (0, import_react.useState)(false);
|
|
64
65
|
const [showVoucherModal, setShowVoucherModal] = (0, import_react.useState)(false);
|
|
65
|
-
const
|
|
66
|
+
const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
|
|
66
67
|
const context = (0, import_useEngineContext.default)();
|
|
67
68
|
const { getData, pisellosAllModule } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
68
69
|
const Toast = (0, import_materials.useToast)();
|
|
69
70
|
const pisellOS = (0, import_useEngineContext.usePisellOS)();
|
|
71
|
+
const bookingTicket = (0, import_pisellos.useBookingTicket)();
|
|
70
72
|
const { ScheduleModule } = pisellosAllModule;
|
|
73
|
+
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
71
74
|
const changeCustomerToGlobalState = (0, import_ahooks.useMemoizedFn)((value) => {
|
|
72
75
|
dispatch({
|
|
73
76
|
type: "setClient",
|
|
@@ -82,7 +85,7 @@ var ActionButtons = ({
|
|
|
82
85
|
});
|
|
83
86
|
const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
|
|
84
87
|
(0, import_react.useEffect)(() => {
|
|
85
|
-
if (!
|
|
88
|
+
if (!bookingTicket) return;
|
|
86
89
|
const handleCustomerSelected = () => {
|
|
87
90
|
dispatch({
|
|
88
91
|
type: "setState",
|
|
@@ -91,17 +94,18 @@ var ActionButtons = ({
|
|
|
91
94
|
}
|
|
92
95
|
});
|
|
93
96
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
const wrappedHandleCustomerSelected = executeIfActive(handleCustomerSelected);
|
|
98
|
+
bookingTicket.effectsOn(
|
|
99
|
+
"onCustomerSelected",
|
|
100
|
+
wrappedHandleCustomerSelected
|
|
97
101
|
);
|
|
98
102
|
return () => {
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
|
|
103
|
+
bookingTicket.effectsOff(
|
|
104
|
+
"onCustomerSelected",
|
|
105
|
+
wrappedHandleCustomerSelected
|
|
102
106
|
);
|
|
103
107
|
};
|
|
104
|
-
}, [dispatch,
|
|
108
|
+
}, [dispatch, bookingTicket]);
|
|
105
109
|
const getDataFromHost = () => {
|
|
106
110
|
try {
|
|
107
111
|
const is_price_include_tax = getData("is_price_include_tax");
|
|
@@ -177,18 +181,19 @@ var ActionButtons = ({
|
|
|
177
181
|
(0, import_react.useEffect)(() => {
|
|
178
182
|
var _a2;
|
|
179
183
|
const { pisellos } = ((_a2 = context.appHelper) == null ? void 0 : _a2.utils) || {};
|
|
180
|
-
if (!pisellos) return;
|
|
184
|
+
if (!pisellos || !shopDiscount) return;
|
|
181
185
|
const onDiscountListChange = (discount) => {
|
|
182
186
|
setDiscountList(discount);
|
|
183
187
|
};
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
onDiscountListChange
|
|
188
|
+
const wrappedHandler = executeIfActive(onDiscountListChange);
|
|
189
|
+
shopDiscount.effectsOn(
|
|
190
|
+
"onDiscountListChange",
|
|
191
|
+
wrappedHandler
|
|
187
192
|
);
|
|
188
193
|
return () => {
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
|
|
194
|
+
shopDiscount.effectsOff(
|
|
195
|
+
"onDiscountListChange",
|
|
196
|
+
wrappedHandler
|
|
192
197
|
);
|
|
193
198
|
};
|
|
194
199
|
}, [(_f = context.appHelper) == null ? void 0 : _f.utils]);
|
|
@@ -60,7 +60,7 @@ var import_materials = require("@pisell/materials");
|
|
|
60
60
|
var import_useCustomer = require("../../../ticketBooking/hooks/pisellos/useCustomer");
|
|
61
61
|
var import_ahooks = require("ahooks");
|
|
62
62
|
var import_lodash = require("lodash");
|
|
63
|
-
var
|
|
63
|
+
var import_useShopDiscountModule = require("../../../ticketBooking/hooks/pisellos/useShopDiscountModule");
|
|
64
64
|
var Footer = (props) => {
|
|
65
65
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
66
66
|
const { state, buttons, dispatch, source } = props;
|
|
@@ -1252,7 +1252,7 @@ var Footer = (props) => {
|
|
|
1252
1252
|
const { selectCustomer } = (0, import_useCustomer.useCustomer)({
|
|
1253
1253
|
changeCustomerToGlobalState
|
|
1254
1254
|
});
|
|
1255
|
-
const shopDiscount = (0,
|
|
1255
|
+
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
1256
1256
|
const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
|
|
1257
1257
|
const handleClearAllAndReset = () => {
|
|
1258
1258
|
var _a2;
|