@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,34 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import useEngineContext from "../../../../../../hooks/useEngineContext";
|
|
3
|
+
import { PREFIX } from "../../status";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
var Title = function Title(_ref) {
|
|
6
|
+
var _engineContext$appHel2;
|
|
7
|
+
var props = _ref.props;
|
|
8
|
+
var dataSource = props.dataSource,
|
|
9
|
+
skuTextConfig = props.skuTextConfig;
|
|
10
|
+
var engineContext = useEngineContext();
|
|
11
|
+
var _engineContext$appHel = (_engineContext$appHel2 = engineContext.appHelper) === null || _engineContext$appHel2 === void 0 ? void 0 : _engineContext$appHel2.utils,
|
|
12
|
+
translation = _engineContext$appHel.translation;
|
|
13
|
+
var _ref2 = (skuTextConfig === null || skuTextConfig === void 0 ? void 0 : skuTextConfig.skuNameConfig) || {},
|
|
14
|
+
isOpen = _ref2.isOpen,
|
|
15
|
+
value = _ref2.value,
|
|
16
|
+
fontSize = _ref2.fontSize,
|
|
17
|
+
fontWeight = _ref2.fontWeight,
|
|
18
|
+
color = _ref2.color,
|
|
19
|
+
ellipsisCount = _ref2.ellipsisCount;
|
|
20
|
+
if (!isOpen) return null;
|
|
21
|
+
var finalStyle = useMemo(function () {
|
|
22
|
+
return {
|
|
23
|
+
fontSize: fontSize,
|
|
24
|
+
fontWeight: fontWeight,
|
|
25
|
+
color: color,
|
|
26
|
+
lineClamp: ellipsisCount
|
|
27
|
+
};
|
|
28
|
+
}, [fontSize, fontWeight, color, ellipsisCount]);
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: "".concat(PREFIX, "__card-title"),
|
|
31
|
+
style: finalStyle
|
|
32
|
+
}, translation(value || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.title)));
|
|
33
|
+
};
|
|
34
|
+
export default Title;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.pisell-product-sku__card-title {
|
|
2
|
+
color: var(--ps-color-text, #1b1b1b);
|
|
3
|
+
font-size: 18px;
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
line-height: 28px;
|
|
7
|
+
display: -webkit-box;
|
|
8
|
+
line-clamp: 2;
|
|
9
|
+
-webkit-line-clamp: 2;
|
|
10
|
+
-webkit-box-orient: vertical;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
text-overflow: ellipsis;
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./index.less";
|
|
3
|
+
import { PREFIX } from "../../status";
|
|
4
|
+
var TooltipTags = function TooltipTags(_ref) {
|
|
5
|
+
var _dataSource$tooltip_t;
|
|
6
|
+
var props = _ref.props;
|
|
7
|
+
var skuExtraConfig = props.skuExtraConfig,
|
|
8
|
+
className = props.className,
|
|
9
|
+
skuCardConfig = props.skuCardConfig,
|
|
10
|
+
dataSource = props.dataSource;
|
|
11
|
+
var _ref2 = skuExtraConfig || {},
|
|
12
|
+
isOpen = _ref2.isOpen,
|
|
13
|
+
isTooltipTag = _ref2.isTooltipTag,
|
|
14
|
+
isTooltipTagSlot = _ref2.isTooltipTagSlot;
|
|
15
|
+
var _ref3 = skuCardConfig || {},
|
|
16
|
+
radius = _ref3.radius,
|
|
17
|
+
displayMode = _ref3.displayMode;
|
|
18
|
+
|
|
19
|
+
// 不开启或不开启悬浮标签或没有标签数据
|
|
20
|
+
if (!isOpen || !isTooltipTag) return null;
|
|
21
|
+
|
|
22
|
+
// 显示模式为A1时不展示悬浮标签
|
|
23
|
+
if (displayMode === 'display_a1') return null;
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: "".concat(PREFIX, "__card-tooltip-tags ").concat(className)
|
|
26
|
+
}, isTooltipTagSlot ? isTooltipTagSlot : /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "".concat(PREFIX, "__card-tooltip-tags-list")
|
|
28
|
+
}, dataSource === null || dataSource === void 0 || (_dataSource$tooltip_t = dataSource.tooltip_tags) === null || _dataSource$tooltip_t === void 0 ? void 0 : _dataSource$tooltip_t.map(function (item, index) {
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
key: index,
|
|
31
|
+
className: "".concat(PREFIX, "__card-tooltip-tags-item"),
|
|
32
|
+
style: {
|
|
33
|
+
borderTopLeftRadius: index === 0 ? radius : 0,
|
|
34
|
+
borderTopRightRadius: index === 0 ? 0 : '12px'
|
|
35
|
+
}
|
|
36
|
+
}, item.title);
|
|
37
|
+
})));
|
|
38
|
+
};
|
|
39
|
+
export default TooltipTags;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.pisell-product-sku__card-tooltip-tags {
|
|
2
|
+
position: absolute;
|
|
3
|
+
left: 0;
|
|
4
|
+
top: 0;
|
|
5
|
+
|
|
6
|
+
.pisell-product-sku__card-tooltip-tags-list {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 6px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pisell-product-sku__card-tooltip-tags-item {
|
|
13
|
+
padding: 6px 10px;
|
|
14
|
+
color: #b42318;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
line-height: 20px;
|
|
18
|
+
word-wrap: break-word;
|
|
19
|
+
background: #fee4e2;
|
|
20
|
+
border-radius: 0 12px 12px 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
|
3
|
+
import "./index.less";
|
|
4
|
+
import { PREFIX } from "../../status";
|
|
5
|
+
var WarningLists = function WarningLists(props) {
|
|
6
|
+
var lists = props.lists,
|
|
7
|
+
className = props.className;
|
|
8
|
+
if (!(lists !== null && lists !== void 0 && lists.length)) return null;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: "".concat(PREFIX, "__card-warning-lists ").concat(className)
|
|
11
|
+
}, lists === null || lists === void 0 ? void 0 : lists.map(function (item) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
key: item.id,
|
|
14
|
+
className: "".concat(PREFIX, "__card-warning-lists-item")
|
|
15
|
+
}, /*#__PURE__*/React.createElement(ExclamationCircleOutlined, {
|
|
16
|
+
className: "".concat(PREFIX, "__card-warning-lists-item-icon")
|
|
17
|
+
}), /*#__PURE__*/React.createElement("span", null, item.value));
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
export default WarningLists;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.pisell-product-sku__card-warning-lists {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
|
|
6
|
+
.pisell-product-sku__card-warning-lists-item {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: baseline;
|
|
9
|
+
gap: 6px;
|
|
10
|
+
color: #dc6803;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
line-height: 20px;
|
|
14
|
+
word-wrap: break-word;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pisell-product-sku__card-warning-lists-item-icon {
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const useDynamicComponents: () => {
|
|
3
|
+
renderComponent: (key: string, props: any) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
4
|
+
renderComponents: (props: any) => any;
|
|
5
|
+
componentMap: Record<string, React.ComponentType<any>>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Title from "../components/Title";
|
|
3
|
+
import SubTitle from "../components/SubTitle";
|
|
4
|
+
import Price from "../components/Price";
|
|
5
|
+
import Tags from "../components/Tags";
|
|
6
|
+
import MemberPrice from "../components/MemberPrice";
|
|
7
|
+
import Countdown from "../components/Countdown";
|
|
8
|
+
import Stock from "../components/Stock";
|
|
9
|
+
import Capacity from "../components/Capacity";
|
|
10
|
+
import Duration from "../components/Duration";
|
|
11
|
+
import Time from "../components/Time";
|
|
12
|
+
import Resource from "../components/Resource";
|
|
13
|
+
import Promotions from "../components/Promotions";
|
|
14
|
+
|
|
15
|
+
// 组件映射表
|
|
16
|
+
var componentMap = {
|
|
17
|
+
title: Title,
|
|
18
|
+
subtitle: SubTitle,
|
|
19
|
+
price: Price,
|
|
20
|
+
memberPrice: MemberPrice,
|
|
21
|
+
tags: Tags,
|
|
22
|
+
countdown: Countdown,
|
|
23
|
+
stock: Stock,
|
|
24
|
+
capacity: Capacity,
|
|
25
|
+
duration: Duration,
|
|
26
|
+
time: Time,
|
|
27
|
+
resource: Resource,
|
|
28
|
+
promotions: Promotions
|
|
29
|
+
};
|
|
30
|
+
export var useDynamicComponents = function useDynamicComponents() {
|
|
31
|
+
// 渲染组件
|
|
32
|
+
var renderComponent = function renderComponent(key, props) {
|
|
33
|
+
var Component = componentMap[key];
|
|
34
|
+
if (!Component) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return /*#__PURE__*/React.createElement(Component, {
|
|
38
|
+
key: key,
|
|
39
|
+
props: props
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// 渲染组件列表
|
|
44
|
+
var renderComponents = function renderComponents(props) {
|
|
45
|
+
var sortKeys = (props === null || props === void 0 ? void 0 : props.sortKeys) || [];
|
|
46
|
+
return sortKeys.map(function (key) {
|
|
47
|
+
return renderComponent(key, props);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
return {
|
|
51
|
+
renderComponent: renderComponent,
|
|
52
|
+
renderComponents: renderComponents,
|
|
53
|
+
componentMap: componentMap
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import SkuCardA1 from "./SkuCardA1";
|
|
9
|
+
import SkuCardA2 from "./SkuCardA2";
|
|
10
|
+
import SkuCardA5 from "./SkuCardA5";
|
|
11
|
+
import SkuCardA9 from "./SkuCardA9";
|
|
12
|
+
import SkuCardCustom from "./SkuCardCustom";
|
|
13
|
+
import { productCardDefault } from "./status";
|
|
14
|
+
var SkuCard = function SkuCard(props) {
|
|
15
|
+
var finalConfig = _objectSpread(_objectSpread({}, productCardDefault), props);
|
|
16
|
+
var _ref = finalConfig.skuCardConfig || {},
|
|
17
|
+
displayMode = _ref.displayMode;
|
|
18
|
+
if (!displayMode) return null;
|
|
19
|
+
var Com = useMemo(function () {
|
|
20
|
+
var types = {
|
|
21
|
+
display_a1: SkuCardA1,
|
|
22
|
+
display_a2: SkuCardA2,
|
|
23
|
+
display_a5: SkuCardA5,
|
|
24
|
+
display_a9: SkuCardA9,
|
|
25
|
+
display_custom: SkuCardCustom
|
|
26
|
+
};
|
|
27
|
+
return types[displayMode];
|
|
28
|
+
}, [displayMode]);
|
|
29
|
+
if (!Com) {
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", null, "Invalid display mode: ", displayMode);
|
|
31
|
+
}
|
|
32
|
+
return /*#__PURE__*/React.createElement(Com, finalConfig);
|
|
33
|
+
};
|
|
34
|
+
SkuCard.A1 = SkuCardA1;
|
|
35
|
+
SkuCard.A2 = SkuCardA2;
|
|
36
|
+
SkuCard.A5 = SkuCardA5;
|
|
37
|
+
SkuCard.A9 = SkuCardA9;
|
|
38
|
+
export default SkuCard;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.sku-card.search': string;
|
|
4
|
+
'pisell2.sku-card.stock': string;
|
|
5
|
+
'pisell2.sku-card.empty': string;
|
|
6
|
+
'pisell2.sku-card.gst': string;
|
|
7
|
+
'pisell2.sku-card.view-more': string;
|
|
8
|
+
'pisell2.sku-card.view-less': string;
|
|
9
|
+
'pisell2.sku-card.member-price': string;
|
|
10
|
+
'pisell2.sku-card.time.remaining': string;
|
|
11
|
+
'pisell2.sku-card.capacity': string;
|
|
12
|
+
'pisell2.sku-card.free': string;
|
|
13
|
+
'pisell2.sku-card.max': string;
|
|
14
|
+
};
|
|
15
|
+
'zh-CN': {
|
|
16
|
+
'pisell2.sku-card.search': string;
|
|
17
|
+
'pisell2.sku-card.stock': string;
|
|
18
|
+
'pisell2.sku-card.empty': string;
|
|
19
|
+
'pisell2.sku-card.gst': string;
|
|
20
|
+
'pisell2.sku-card.view-more': string;
|
|
21
|
+
'pisell2.sku-card.view-less': string;
|
|
22
|
+
'pisell2.sku-card.member-price': string;
|
|
23
|
+
'pisell2.sku-card.time.remaining': string;
|
|
24
|
+
'pisell2.sku-card.capacity': string;
|
|
25
|
+
'pisell2.sku-card.free': string;
|
|
26
|
+
'pisell2.sku-card.max': string;
|
|
27
|
+
};
|
|
28
|
+
'zh-HK': {
|
|
29
|
+
'pisell2.sku-card.search': string;
|
|
30
|
+
'pisell2.sku-card.stock': string;
|
|
31
|
+
'pisell2.sku-card.empty': string;
|
|
32
|
+
'pisell2.sku-card.gst': string;
|
|
33
|
+
'pisell2.sku-card.view-more': string;
|
|
34
|
+
'pisell2.sku-card.view-less': string;
|
|
35
|
+
'pisell2.sku-card.member-price': string;
|
|
36
|
+
'pisell2.sku-card.time.remaining': string;
|
|
37
|
+
'pisell2.sku-card.capacity': string;
|
|
38
|
+
'pisell2.sku-card.free': string;
|
|
39
|
+
'pisell2.sku-card.max': string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.sku-card.search': 'Search',
|
|
4
|
+
'pisell2.sku-card.stock': 'Stock',
|
|
5
|
+
'pisell2.sku-card.empty': 'No Data',
|
|
6
|
+
'pisell2.sku-card.gst': 'GST',
|
|
7
|
+
'pisell2.sku-card.view-more': 'View more',
|
|
8
|
+
'pisell2.sku-card.view-less': 'Put that away',
|
|
9
|
+
'pisell2.sku-card.member-price': 'Member Price',
|
|
10
|
+
'pisell2.sku-card.time.remaining': 'Time Remaining',
|
|
11
|
+
'pisell2.sku-card.capacity': 'Capacity',
|
|
12
|
+
'pisell2.sku-card.free': 'Free',
|
|
13
|
+
'pisell2.sku-card.max': 'Max'
|
|
14
|
+
},
|
|
15
|
+
'zh-CN': {
|
|
16
|
+
'pisell2.sku-card.search': '搜索',
|
|
17
|
+
'pisell2.sku-card.stock': '库存',
|
|
18
|
+
'pisell2.sku-card.empty': '暂无数据',
|
|
19
|
+
'pisell2.sku-card.gst': '含税',
|
|
20
|
+
'pisell2.sku-card.view-more': '查看更多',
|
|
21
|
+
'pisell2.sku-card.view-less': '收起',
|
|
22
|
+
'pisell2.sku-card.member-price': '会员价',
|
|
23
|
+
'pisell2.sku-card.time.remaining': '剩余',
|
|
24
|
+
'pisell2.sku-card.capacity': '容量',
|
|
25
|
+
'pisell2.sku-card.free': '免费',
|
|
26
|
+
'pisell2.sku-card.max': '最大'
|
|
27
|
+
},
|
|
28
|
+
'zh-HK': {
|
|
29
|
+
'pisell2.sku-card.search': '搜索',
|
|
30
|
+
'pisell2.sku-card.stock': '庫存',
|
|
31
|
+
'pisell2.sku-card.empty': '暂无数据',
|
|
32
|
+
'pisell2.sku-card.gst': '含稅',
|
|
33
|
+
'pisell2.sku-card.view-more': '查看更多',
|
|
34
|
+
'pisell2.sku-card.view-less': '收起',
|
|
35
|
+
'pisell2.sku-card.member-price': '會員價',
|
|
36
|
+
'pisell2.sku-card.time.remaining': '剩余',
|
|
37
|
+
'pisell2.sku-card.capacity': '容量',
|
|
38
|
+
'pisell2.sku-card.free': '免費',
|
|
39
|
+
'pisell2.sku-card.max': '最大'
|
|
40
|
+
}
|
|
41
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { ProductCardConfig } from './type';
|
|
2
|
+
export declare const productCardDefault: ProductCardConfig;
|
|
3
|
+
export declare const PREFIX = "pisell-product-sku";
|
|
4
|
+
export declare const defaultProductCard: {
|
|
5
|
+
id: number;
|
|
6
|
+
extension_id: number;
|
|
7
|
+
extension_type: string;
|
|
8
|
+
shop_id: number;
|
|
9
|
+
title: string;
|
|
10
|
+
slug: string;
|
|
11
|
+
status: string;
|
|
12
|
+
stock_quantity: number;
|
|
13
|
+
sales_quantity: number;
|
|
14
|
+
sum_stock: number;
|
|
15
|
+
price: string;
|
|
16
|
+
original_price: string;
|
|
17
|
+
cost_price: string;
|
|
18
|
+
member_price: string;
|
|
19
|
+
cover: string;
|
|
20
|
+
channel_application: string[];
|
|
21
|
+
is_track: number;
|
|
22
|
+
over_sold: number;
|
|
23
|
+
is_gst: number;
|
|
24
|
+
code: string;
|
|
25
|
+
barcode: string;
|
|
26
|
+
is_delivery: number;
|
|
27
|
+
weight_unit: string;
|
|
28
|
+
weight_value: string;
|
|
29
|
+
type: string;
|
|
30
|
+
unit: string;
|
|
31
|
+
sort: number;
|
|
32
|
+
subtitle: string;
|
|
33
|
+
minimum_markup_price: string;
|
|
34
|
+
is_bundle: number;
|
|
35
|
+
bundle_group_count: number;
|
|
36
|
+
option_group_count: number;
|
|
37
|
+
is_variant: number;
|
|
38
|
+
variant_count: number;
|
|
39
|
+
cut_off_time: {
|
|
40
|
+
unit: number;
|
|
41
|
+
unit_type: string;
|
|
42
|
+
future_day: number;
|
|
43
|
+
type: string;
|
|
44
|
+
ongoing: {
|
|
45
|
+
type: string;
|
|
46
|
+
unit: number;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
"schedule.ids": number[];
|
|
50
|
+
policy: number;
|
|
51
|
+
machine_code: {
|
|
52
|
+
make_over: number;
|
|
53
|
+
beforehand: number;
|
|
54
|
+
limit_count: number;
|
|
55
|
+
customer: number;
|
|
56
|
+
send_action: string;
|
|
57
|
+
hide_recharge: number;
|
|
58
|
+
distributor_automatic: number;
|
|
59
|
+
};
|
|
60
|
+
product_resource: {
|
|
61
|
+
resources: ({
|
|
62
|
+
id: number;
|
|
63
|
+
title: string;
|
|
64
|
+
status: number;
|
|
65
|
+
code: string;
|
|
66
|
+
created_at: string;
|
|
67
|
+
updated_at: string;
|
|
68
|
+
type: string;
|
|
69
|
+
optional_resource: number[];
|
|
70
|
+
default_resource: never[];
|
|
71
|
+
select_type: {
|
|
72
|
+
type: string;
|
|
73
|
+
min: number;
|
|
74
|
+
max: number;
|
|
75
|
+
};
|
|
76
|
+
resource_type_id: number;
|
|
77
|
+
} | {
|
|
78
|
+
id: number;
|
|
79
|
+
title: string;
|
|
80
|
+
status: number;
|
|
81
|
+
code: string;
|
|
82
|
+
created_at: string;
|
|
83
|
+
updated_at: null;
|
|
84
|
+
type: string;
|
|
85
|
+
optional_resource: never[];
|
|
86
|
+
default_resource: never[];
|
|
87
|
+
select_type: {
|
|
88
|
+
type: string;
|
|
89
|
+
min: number;
|
|
90
|
+
max: number;
|
|
91
|
+
};
|
|
92
|
+
resource_type_id: number;
|
|
93
|
+
})[];
|
|
94
|
+
};
|
|
95
|
+
capacity: {
|
|
96
|
+
type: string;
|
|
97
|
+
custom: {
|
|
98
|
+
name: {
|
|
99
|
+
en: string;
|
|
100
|
+
"zh-CN": string;
|
|
101
|
+
"zh-HK": string;
|
|
102
|
+
original: string;
|
|
103
|
+
};
|
|
104
|
+
min: number;
|
|
105
|
+
max: number;
|
|
106
|
+
id: string;
|
|
107
|
+
}[];
|
|
108
|
+
package: never[];
|
|
109
|
+
};
|
|
110
|
+
product_display_setting: {
|
|
111
|
+
kiosk: {
|
|
112
|
+
use_display_mode: number;
|
|
113
|
+
product_option_mode: null;
|
|
114
|
+
product_option_mode_paging: null;
|
|
115
|
+
product_bundle_mode: null;
|
|
116
|
+
product_bundle_mode_paging: null;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
usage_credits: {
|
|
120
|
+
total_credits: number;
|
|
121
|
+
per_user_limit: number;
|
|
122
|
+
max_per_day: number;
|
|
123
|
+
max_per_week: number;
|
|
124
|
+
max_per_month: number;
|
|
125
|
+
};
|
|
126
|
+
shelf_product_datas: never[];
|
|
127
|
+
step_value: number;
|
|
128
|
+
min_num_unit: number;
|
|
129
|
+
schedules: {
|
|
130
|
+
id: number;
|
|
131
|
+
shop_id: number;
|
|
132
|
+
name: string;
|
|
133
|
+
color: string;
|
|
134
|
+
type: string;
|
|
135
|
+
start_time: string;
|
|
136
|
+
end_time: string;
|
|
137
|
+
note: string;
|
|
138
|
+
repeat_type: string;
|
|
139
|
+
repeat_rule: null;
|
|
140
|
+
designation: null;
|
|
141
|
+
is_all: number;
|
|
142
|
+
create_account_id: number;
|
|
143
|
+
update_account_id: number;
|
|
144
|
+
created_at: string;
|
|
145
|
+
updated_at: string;
|
|
146
|
+
order_count: number;
|
|
147
|
+
limit: number;
|
|
148
|
+
form_record_ids: never[];
|
|
149
|
+
}[];
|
|
150
|
+
is_charge_tax: number;
|
|
151
|
+
base_price: string;
|
|
152
|
+
variant: never[];
|
|
153
|
+
category: {
|
|
154
|
+
id: number;
|
|
155
|
+
name: string;
|
|
156
|
+
icon: string;
|
|
157
|
+
slug: string;
|
|
158
|
+
sort: number;
|
|
159
|
+
}[];
|
|
160
|
+
__typename: string;
|
|
161
|
+
__categoryId: number;
|
|
162
|
+
};
|