@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,149 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/list/hooks/useListState.ts
|
|
20
|
+
var useListState_exports = {};
|
|
21
|
+
__export(useListState_exports, {
|
|
22
|
+
useListState: () => useListState
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useListState_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
function listStateReducer(state, action) {
|
|
27
|
+
switch (action.type) {
|
|
28
|
+
case "SET_ACTIVE_TAB":
|
|
29
|
+
return { ...state, activeTab: action.payload };
|
|
30
|
+
case "SET_CURRENT_PAGE":
|
|
31
|
+
return { ...state, currentPage: action.payload };
|
|
32
|
+
case "SET_STICKY_ACTIVE":
|
|
33
|
+
return { ...state, isStickyActive: action.payload };
|
|
34
|
+
case "RESET_PAGE":
|
|
35
|
+
return { ...state, currentPage: 1 };
|
|
36
|
+
default:
|
|
37
|
+
return state;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
var useListState = ({
|
|
41
|
+
externalCurrentPage,
|
|
42
|
+
tabItems,
|
|
43
|
+
defaultPageSize,
|
|
44
|
+
onLoadData
|
|
45
|
+
}) => {
|
|
46
|
+
const initialState = {
|
|
47
|
+
activeTab: tabItems.length > 0 ? tabItems[0].key : "all",
|
|
48
|
+
currentPage: 1,
|
|
49
|
+
isStickyActive: false
|
|
50
|
+
};
|
|
51
|
+
const [state, dispatch] = (0, import_react.useReducer)(listStateReducer, initialState);
|
|
52
|
+
const actualCurrentPage = externalCurrentPage || state.currentPage;
|
|
53
|
+
const setActiveTab = (0, import_react.useCallback)((tab) => {
|
|
54
|
+
dispatch({ type: "SET_ACTIVE_TAB", payload: tab });
|
|
55
|
+
}, []);
|
|
56
|
+
const setCurrentPage = (0, import_react.useCallback)((page) => {
|
|
57
|
+
dispatch({ type: "SET_CURRENT_PAGE", payload: page });
|
|
58
|
+
}, []);
|
|
59
|
+
const setStickyActive = (0, import_react.useCallback)((active) => {
|
|
60
|
+
dispatch({ type: "SET_STICKY_ACTIVE", payload: active });
|
|
61
|
+
}, []);
|
|
62
|
+
const resetPage = (0, import_react.useCallback)(() => {
|
|
63
|
+
dispatch({ type: "RESET_PAGE" });
|
|
64
|
+
}, []);
|
|
65
|
+
const loadData = (0, import_react.useCallback)((params) => {
|
|
66
|
+
onLoadData == null ? void 0 : onLoadData(params);
|
|
67
|
+
}, [onLoadData]);
|
|
68
|
+
const handleTabChange = (0, import_react.useCallback)((key) => {
|
|
69
|
+
setActiveTab(key);
|
|
70
|
+
resetPage();
|
|
71
|
+
loadData({
|
|
72
|
+
trigger: "tabChange",
|
|
73
|
+
currentPage: 1,
|
|
74
|
+
pageSize: defaultPageSize,
|
|
75
|
+
activeTab: key
|
|
76
|
+
});
|
|
77
|
+
}, [setActiveTab, resetPage, loadData, defaultPageSize]);
|
|
78
|
+
const handlePageChange = (0, import_react.useCallback)((page, size) => {
|
|
79
|
+
const previousPage = actualCurrentPage;
|
|
80
|
+
const pageSize = size || defaultPageSize;
|
|
81
|
+
setCurrentPage(page);
|
|
82
|
+
loadData({
|
|
83
|
+
trigger: "pagination",
|
|
84
|
+
currentPage: page,
|
|
85
|
+
pageSize,
|
|
86
|
+
activeTab: state.activeTab,
|
|
87
|
+
previousPage
|
|
88
|
+
});
|
|
89
|
+
}, [actualCurrentPage, defaultPageSize, setCurrentPage, loadData, state.activeTab]);
|
|
90
|
+
const handleShowSizeChange = (0, import_react.useCallback)((current, size) => {
|
|
91
|
+
const previousPageSize = defaultPageSize;
|
|
92
|
+
setCurrentPage(current);
|
|
93
|
+
loadData({
|
|
94
|
+
trigger: "pageSize",
|
|
95
|
+
currentPage: current,
|
|
96
|
+
pageSize: size,
|
|
97
|
+
activeTab: state.activeTab,
|
|
98
|
+
previousPageSize
|
|
99
|
+
});
|
|
100
|
+
}, [defaultPageSize, setCurrentPage, loadData, state.activeTab]);
|
|
101
|
+
const handleLoadMore = (0, import_react.useCallback)(() => {
|
|
102
|
+
const nextPage = actualCurrentPage + 1;
|
|
103
|
+
setCurrentPage(nextPage);
|
|
104
|
+
loadData({
|
|
105
|
+
trigger: "loadMore",
|
|
106
|
+
currentPage: nextPage,
|
|
107
|
+
pageSize: defaultPageSize,
|
|
108
|
+
activeTab: state.activeTab
|
|
109
|
+
});
|
|
110
|
+
}, [actualCurrentPage, setCurrentPage, loadData, defaultPageSize, state.activeTab]);
|
|
111
|
+
const handleViewLess = (0, import_react.useCallback)(() => {
|
|
112
|
+
resetPage();
|
|
113
|
+
loadData({
|
|
114
|
+
trigger: "pagination",
|
|
115
|
+
currentPage: 1,
|
|
116
|
+
pageSize: defaultPageSize,
|
|
117
|
+
activeTab: state.activeTab,
|
|
118
|
+
previousPage: actualCurrentPage
|
|
119
|
+
});
|
|
120
|
+
}, [resetPage, loadData, defaultPageSize, state.activeTab, actualCurrentPage]);
|
|
121
|
+
const handleScrollLoad = (0, import_react.useCallback)(() => {
|
|
122
|
+
const nextPage = actualCurrentPage + 1;
|
|
123
|
+
setCurrentPage(nextPage);
|
|
124
|
+
loadData({
|
|
125
|
+
trigger: "scroll",
|
|
126
|
+
currentPage: nextPage,
|
|
127
|
+
pageSize: defaultPageSize,
|
|
128
|
+
activeTab: state.activeTab
|
|
129
|
+
});
|
|
130
|
+
}, [actualCurrentPage, setCurrentPage, loadData, defaultPageSize, state.activeTab]);
|
|
131
|
+
return {
|
|
132
|
+
state,
|
|
133
|
+
setActiveTab,
|
|
134
|
+
setCurrentPage,
|
|
135
|
+
setStickyActive,
|
|
136
|
+
resetPage,
|
|
137
|
+
handleTabChange,
|
|
138
|
+
handlePageChange,
|
|
139
|
+
handleShowSizeChange,
|
|
140
|
+
handleLoadMore,
|
|
141
|
+
handleViewLess,
|
|
142
|
+
handleScrollLoad,
|
|
143
|
+
actualCurrentPage
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
147
|
+
0 && (module.exports = {
|
|
148
|
+
useListState
|
|
149
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface WaterfallItem {
|
|
2
|
+
id: string | number;
|
|
3
|
+
data: any;
|
|
4
|
+
height?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface WaterfallTrack<T = any> {
|
|
8
|
+
items: T[];
|
|
9
|
+
size: number;
|
|
10
|
+
}
|
|
11
|
+
export interface WaterfallLayoutOptions {
|
|
12
|
+
tracks: number;
|
|
13
|
+
trackGap: number;
|
|
14
|
+
itemGap: number;
|
|
15
|
+
direction: 'vertical' | 'horizontal';
|
|
16
|
+
}
|
|
17
|
+
export interface WaterfallLayout<T = any> {
|
|
18
|
+
tracks: WaterfallTrack<T>[];
|
|
19
|
+
totalSize: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const useWaterfall: <T extends {
|
|
22
|
+
id: string | number;
|
|
23
|
+
height?: number | undefined;
|
|
24
|
+
width?: number | undefined;
|
|
25
|
+
}>(items: T[], options: WaterfallLayoutOptions) => {
|
|
26
|
+
layout: WaterfallLayout<T>;
|
|
27
|
+
registerItemRef: (id: string | number, element: HTMLElement | null) => void;
|
|
28
|
+
measureItemSize: (id: string | number) => {
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
};
|
|
32
|
+
recalculateLayout: () => void;
|
|
33
|
+
};
|
|
34
|
+
export default useWaterfall;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/list/hooks/useWaterfall.ts
|
|
20
|
+
var useWaterfall_exports = {};
|
|
21
|
+
__export(useWaterfall_exports, {
|
|
22
|
+
default: () => useWaterfall_default,
|
|
23
|
+
useWaterfall: () => useWaterfall
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(useWaterfall_exports);
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var useWaterfall = (items, options) => {
|
|
28
|
+
const [recalcVersion, setRecalcVersion] = (0, import_react.useState)(0);
|
|
29
|
+
const itemSizes = (0, import_react.useRef)(/* @__PURE__ */ new Map());
|
|
30
|
+
const itemRefs = (0, import_react.useRef)(/* @__PURE__ */ new Map());
|
|
31
|
+
const registerItemRef = (0, import_react.useCallback)((id, element) => {
|
|
32
|
+
if (element) {
|
|
33
|
+
itemRefs.current.set(id, element);
|
|
34
|
+
} else {
|
|
35
|
+
itemRefs.current.delete(id);
|
|
36
|
+
}
|
|
37
|
+
}, []);
|
|
38
|
+
const measureItemSize = (0, import_react.useCallback)((id) => {
|
|
39
|
+
const element = itemRefs.current.get(id);
|
|
40
|
+
if (element) {
|
|
41
|
+
const rect = element.getBoundingClientRect();
|
|
42
|
+
const size = { width: rect.width, height: rect.height };
|
|
43
|
+
itemSizes.current.set(id, size);
|
|
44
|
+
return size;
|
|
45
|
+
}
|
|
46
|
+
return itemSizes.current.get(id) || { width: 200, height: 200 };
|
|
47
|
+
}, []);
|
|
48
|
+
const getItemSize = (0, import_react.useCallback)((item) => {
|
|
49
|
+
const { direction } = options;
|
|
50
|
+
if (direction === "vertical") {
|
|
51
|
+
if (item.height) return item.height;
|
|
52
|
+
const measured = itemSizes.current.get(item.id);
|
|
53
|
+
return (measured == null ? void 0 : measured.height) || 200;
|
|
54
|
+
} else {
|
|
55
|
+
if (item.width) return item.width;
|
|
56
|
+
const measured = itemSizes.current.get(item.id);
|
|
57
|
+
return (measured == null ? void 0 : measured.width) || 200;
|
|
58
|
+
}
|
|
59
|
+
}, [options]);
|
|
60
|
+
const layout = (0, import_react.useMemo)(() => {
|
|
61
|
+
const { tracks: trackCount, trackGap, itemGap, direction } = options;
|
|
62
|
+
const newTracks = Array.from({ length: trackCount }, () => ({
|
|
63
|
+
items: [],
|
|
64
|
+
size: 0
|
|
65
|
+
}));
|
|
66
|
+
items.forEach((item) => {
|
|
67
|
+
const shortestTrackIndex = newTracks.reduce((minIndex, track, index, arr) => {
|
|
68
|
+
return track.size < arr[minIndex].size ? index : minIndex;
|
|
69
|
+
}, 0);
|
|
70
|
+
const targetTrack = newTracks[shortestTrackIndex];
|
|
71
|
+
const itemSize = getItemSize(item);
|
|
72
|
+
targetTrack.items.push(item);
|
|
73
|
+
if (targetTrack.items.length > 1) {
|
|
74
|
+
targetTrack.size += itemGap;
|
|
75
|
+
}
|
|
76
|
+
targetTrack.size += itemSize;
|
|
77
|
+
});
|
|
78
|
+
const totalSize = Math.max(...newTracks.map((track) => track.size), 0);
|
|
79
|
+
return {
|
|
80
|
+
tracks: newTracks,
|
|
81
|
+
totalSize
|
|
82
|
+
};
|
|
83
|
+
}, [items, options, recalcVersion, getItemSize]);
|
|
84
|
+
const recalculateLayout = (0, import_react.useCallback)(() => {
|
|
85
|
+
let hasChanges = false;
|
|
86
|
+
itemRefs.current.forEach((element, id) => {
|
|
87
|
+
const rect = element.getBoundingClientRect();
|
|
88
|
+
const newSize = { width: rect.width, height: rect.height };
|
|
89
|
+
const oldSize = itemSizes.current.get(id);
|
|
90
|
+
if (!oldSize || oldSize.width !== newSize.width || oldSize.height !== newSize.height) {
|
|
91
|
+
hasChanges = true;
|
|
92
|
+
itemSizes.current.set(id, newSize);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
if (hasChanges) {
|
|
96
|
+
setRecalcVersion((prev) => prev + 1);
|
|
97
|
+
}
|
|
98
|
+
}, []);
|
|
99
|
+
(0, import_react.useEffect)(() => {
|
|
100
|
+
let timeoutId;
|
|
101
|
+
const handleResize = () => {
|
|
102
|
+
clearTimeout(timeoutId);
|
|
103
|
+
timeoutId = setTimeout(() => {
|
|
104
|
+
recalculateLayout();
|
|
105
|
+
}, 100);
|
|
106
|
+
};
|
|
107
|
+
window.addEventListener("resize", handleResize);
|
|
108
|
+
return () => {
|
|
109
|
+
window.removeEventListener("resize", handleResize);
|
|
110
|
+
clearTimeout(timeoutId);
|
|
111
|
+
};
|
|
112
|
+
}, [recalculateLayout]);
|
|
113
|
+
return {
|
|
114
|
+
layout,
|
|
115
|
+
registerItemRef,
|
|
116
|
+
measureItemSize,
|
|
117
|
+
recalculateLayout
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
var useWaterfall_default = useWaterfall;
|
|
121
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
122
|
+
0 && (module.exports = {
|
|
123
|
+
useWaterfall
|
|
124
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default } from './List';
|
|
2
|
+
export { default as ResponsiveList, createResponsiveConfig } from './ResponsiveWrapper';
|
|
3
|
+
export { default as TestResponsiveWrapper } from './TestResponsiveWrapper';
|
|
4
|
+
export { default as Pagination } from './components/Pagination';
|
|
5
|
+
export { default as Tab } from './components/Tab';
|
|
6
|
+
export { useDevice, getUserAgentInfo } from './hooks/useDevice';
|
|
7
|
+
export { default as TestList } from './TestResponsiveWrapper';
|
|
8
|
+
export type { ListProps, BaseListItem, EmptyStateConfig, PaginationInfo, LayoutConfig, TabConfig, PaginationConfig, LegacyListProps, TabItem, ResponsiveProps, ResponsiveWrapperProps, DeviceType, DeviceInfo, LoadMoreParams, LoadDataParams, LoadDataTrigger } from './types';
|
|
9
|
+
export type { TabProps } from './components/Tab';
|
|
10
|
+
export type { PaginationProps } from './components/Pagination/Pagination';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/list/index.tsx
|
|
30
|
+
var list_exports = {};
|
|
31
|
+
__export(list_exports, {
|
|
32
|
+
Pagination: () => import_Pagination.default,
|
|
33
|
+
ResponsiveList: () => import_ResponsiveWrapper.default,
|
|
34
|
+
Tab: () => import_Tab.default,
|
|
35
|
+
TestList: () => import_TestResponsiveWrapper2.default,
|
|
36
|
+
TestResponsiveWrapper: () => import_TestResponsiveWrapper.default,
|
|
37
|
+
createResponsiveConfig: () => import_ResponsiveWrapper.createResponsiveConfig,
|
|
38
|
+
default: () => import_List.default,
|
|
39
|
+
getUserAgentInfo: () => import_useDevice.getUserAgentInfo,
|
|
40
|
+
useDevice: () => import_useDevice.useDevice
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(list_exports);
|
|
43
|
+
var import_List = __toESM(require("./List"));
|
|
44
|
+
var import_ResponsiveWrapper = __toESM(require("./ResponsiveWrapper"));
|
|
45
|
+
var import_TestResponsiveWrapper = __toESM(require("./TestResponsiveWrapper"));
|
|
46
|
+
var import_Pagination = __toESM(require("./components/Pagination"));
|
|
47
|
+
var import_Tab = __toESM(require("./components/Tab"));
|
|
48
|
+
var import_useDevice = require("./hooks/useDevice");
|
|
49
|
+
var import_TestResponsiveWrapper2 = __toESM(require("./TestResponsiveWrapper"));
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
Pagination,
|
|
53
|
+
ResponsiveList,
|
|
54
|
+
Tab,
|
|
55
|
+
TestList,
|
|
56
|
+
TestResponsiveWrapper,
|
|
57
|
+
createResponsiveConfig,
|
|
58
|
+
getUserAgentInfo,
|
|
59
|
+
useDevice
|
|
60
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell-list-tab-group-default': string;
|
|
4
|
+
'pisell-list-empty-text-default': string;
|
|
5
|
+
'pisell-list-load-more': string;
|
|
6
|
+
'pisell-list-view-less': string;
|
|
7
|
+
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
8
|
+
'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
|
|
9
|
+
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
10
|
+
'pisell-list-pagination-previous': string;
|
|
11
|
+
'pisell-list-pagination-next': string;
|
|
12
|
+
'pisell-list-scroll-down': string;
|
|
13
|
+
'pisell-list-scroll-right': string;
|
|
14
|
+
'pisell-list-scroll-to-bottom': string;
|
|
15
|
+
'pisell-list-scroll-to-end': string;
|
|
16
|
+
'pisell-list-loading': string;
|
|
17
|
+
'pisell-list-loading-more': string;
|
|
18
|
+
'pisell-list-no-more-data': string;
|
|
19
|
+
'pisell-list-group-title-all': string;
|
|
20
|
+
'pisell-list-load-error': string;
|
|
21
|
+
'pisell-list-retry': string;
|
|
22
|
+
};
|
|
23
|
+
'zh-CN': {
|
|
24
|
+
'pisell-list-tab-group-default': string;
|
|
25
|
+
'pisell-list-empty-text-default': string;
|
|
26
|
+
'pisell-list-load-more': string;
|
|
27
|
+
'pisell-list-view-less': string;
|
|
28
|
+
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
29
|
+
'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
|
|
30
|
+
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
31
|
+
'pisell-list-pagination-previous': string;
|
|
32
|
+
'pisell-list-pagination-next': string;
|
|
33
|
+
'pisell-list-scroll-down': string;
|
|
34
|
+
'pisell-list-scroll-right': string;
|
|
35
|
+
'pisell-list-scroll-to-bottom': string;
|
|
36
|
+
'pisell-list-scroll-to-end': string;
|
|
37
|
+
'pisell-list-loading': string;
|
|
38
|
+
'pisell-list-loading-more': string;
|
|
39
|
+
'pisell-list-no-more-data': string;
|
|
40
|
+
'pisell-list-group-title-all': string;
|
|
41
|
+
'pisell-list-load-error': string;
|
|
42
|
+
'pisell-list-retry': string;
|
|
43
|
+
};
|
|
44
|
+
'zh-HK': {
|
|
45
|
+
'pisell-list-tab-group-default': string;
|
|
46
|
+
'pisell-list-empty-text-default': string;
|
|
47
|
+
'pisell-list-load-more': string;
|
|
48
|
+
'pisell-list-view-less': string;
|
|
49
|
+
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
50
|
+
'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
|
|
51
|
+
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
52
|
+
'pisell-list-pagination-previous': string;
|
|
53
|
+
'pisell-list-pagination-next': string;
|
|
54
|
+
'pisell-list-scroll-down': string;
|
|
55
|
+
'pisell-list-scroll-right': string;
|
|
56
|
+
'pisell-list-scroll-to-bottom': string;
|
|
57
|
+
'pisell-list-scroll-to-end': string;
|
|
58
|
+
'pisell-list-loading': string;
|
|
59
|
+
'pisell-list-loading-more': string;
|
|
60
|
+
'pisell-list-no-more-data': string;
|
|
61
|
+
'pisell-list-group-title-all': string;
|
|
62
|
+
'pisell-list-load-error': string;
|
|
63
|
+
'pisell-list-retry': string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export default _default;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/list/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
"en": {
|
|
27
|
+
// Tab related
|
|
28
|
+
"pisell-list-tab-group-default": "Field",
|
|
29
|
+
// Empty state
|
|
30
|
+
"pisell-list-empty-text-default": "No data available",
|
|
31
|
+
// Load more actions
|
|
32
|
+
"pisell-list-load-more": "Load More",
|
|
33
|
+
"pisell-list-view-less": "View Less",
|
|
34
|
+
// Pagination
|
|
35
|
+
"pisell-list-pagination-total": (start, end, total) => `Showing ${start}-${end} of ${total} items`,
|
|
36
|
+
"pisell-list-pagination-total-fallback": (start, end, total) => `Showing ${start}-${end} of ${total} items`,
|
|
37
|
+
"pisell-list-pagination-page-of": (current, total) => `Page ${current} of ${total}`,
|
|
38
|
+
"pisell-list-pagination-previous": "Previous",
|
|
39
|
+
"pisell-list-pagination-next": "Next",
|
|
40
|
+
// Scroll actions
|
|
41
|
+
"pisell-list-scroll-down": "Scroll Down",
|
|
42
|
+
"pisell-list-scroll-right": "Scroll Right",
|
|
43
|
+
"pisell-list-scroll-to-bottom": "Scroll to bottom and load more",
|
|
44
|
+
"pisell-list-scroll-to-end": "Scroll to end and load more",
|
|
45
|
+
// Loading states
|
|
46
|
+
"pisell-list-loading": "Loading...",
|
|
47
|
+
"pisell-list-loading-more": "Loading more...",
|
|
48
|
+
"pisell-list-no-more-data": "No more data",
|
|
49
|
+
// Group titles
|
|
50
|
+
"pisell-list-group-title-all": "All",
|
|
51
|
+
// Error states
|
|
52
|
+
"pisell-list-load-error": "Failed to load data",
|
|
53
|
+
"pisell-list-retry": "Retry"
|
|
54
|
+
},
|
|
55
|
+
"zh-CN": {
|
|
56
|
+
// Tab related
|
|
57
|
+
"pisell-list-tab-group-default": "字段",
|
|
58
|
+
// Empty state
|
|
59
|
+
"pisell-list-empty-text-default": "暂无数据",
|
|
60
|
+
// Load more actions
|
|
61
|
+
"pisell-list-load-more": "查看更多",
|
|
62
|
+
"pisell-list-view-less": "查看更少",
|
|
63
|
+
// Pagination
|
|
64
|
+
"pisell-list-pagination-total": (start, end, total) => `显示第 ${start}-${end} 条,共 ${total} 条`,
|
|
65
|
+
"pisell-list-pagination-total-fallback": (start, end, total) => `显示第 ${start}-${end} 条,共 ${total} 条`,
|
|
66
|
+
"pisell-list-pagination-page-of": (current, total) => `第 ${current} 页,共 ${total} 页`,
|
|
67
|
+
"pisell-list-pagination-previous": "上一页",
|
|
68
|
+
"pisell-list-pagination-next": "下一页",
|
|
69
|
+
// Scroll actions
|
|
70
|
+
"pisell-list-scroll-down": "向下滚动",
|
|
71
|
+
"pisell-list-scroll-right": "向右滚动",
|
|
72
|
+
"pisell-list-scroll-to-bottom": "滚动到底部并加载更多",
|
|
73
|
+
"pisell-list-scroll-to-end": "滚动到末尾并加载更多",
|
|
74
|
+
// Loading states
|
|
75
|
+
"pisell-list-loading": "加载中...",
|
|
76
|
+
"pisell-list-loading-more": "加载更多中...",
|
|
77
|
+
"pisell-list-no-more-data": "没有更多数据了",
|
|
78
|
+
// Group titles
|
|
79
|
+
"pisell-list-group-title-all": "全部",
|
|
80
|
+
// Error states
|
|
81
|
+
"pisell-list-load-error": "数据加载失败",
|
|
82
|
+
"pisell-list-retry": "重试"
|
|
83
|
+
},
|
|
84
|
+
"zh-HK": {
|
|
85
|
+
// Tab related
|
|
86
|
+
"pisell-list-tab-group-default": "字段",
|
|
87
|
+
// Empty state
|
|
88
|
+
"pisell-list-empty-text-default": "暫無數據",
|
|
89
|
+
// Load more actions
|
|
90
|
+
"pisell-list-load-more": "查看更多",
|
|
91
|
+
"pisell-list-view-less": "查看更少",
|
|
92
|
+
// Pagination
|
|
93
|
+
"pisell-list-pagination-total": (start, end, total) => `顯示第 ${start}-${end} 條,共 ${total} 條`,
|
|
94
|
+
"pisell-list-pagination-total-fallback": (start, end, total) => `顯示第 ${start}-${end} 條,共 ${total} 條`,
|
|
95
|
+
"pisell-list-pagination-page-of": (current, total) => `第 ${current} 頁,共 ${total} 頁`,
|
|
96
|
+
"pisell-list-pagination-previous": "上一頁",
|
|
97
|
+
"pisell-list-pagination-next": "下一頁",
|
|
98
|
+
// Scroll actions
|
|
99
|
+
"pisell-list-scroll-down": "向下滾動",
|
|
100
|
+
"pisell-list-scroll-right": "向右滾動",
|
|
101
|
+
"pisell-list-scroll-to-bottom": "滾動到底部並加載更多",
|
|
102
|
+
"pisell-list-scroll-to-end": "滾動到末尾並加載更多",
|
|
103
|
+
// Loading states
|
|
104
|
+
"pisell-list-loading": "加載中...",
|
|
105
|
+
"pisell-list-loading-more": "加載更多中...",
|
|
106
|
+
"pisell-list-no-more-data": "沒有更多數據了",
|
|
107
|
+
// Group titles
|
|
108
|
+
"pisell-list-group-title-all": "全部",
|
|
109
|
+
// Error states
|
|
110
|
+
"pisell-list-load-error": "數據加載失敗",
|
|
111
|
+
"pisell-list-retry": "重試"
|
|
112
|
+
}
|
|
113
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* List 组件基础样式 */
|
|
2
|
+
@import './header.less';
|
|
3
|
+
@import './content.less';
|
|
4
|
+
@import './footer.less';
|
|
5
|
+
@import './floatButton.less';
|
|
6
|
+
@import './responsive.less';
|
|
7
|
+
@import '../components/Pagination/Pagination.less';
|
|
8
|
+
|
|
9
|
+
/* 主容器样式 */
|
|
10
|
+
.pisell-list {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
background: #f8f9fa;
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
|
|
17
|
+
/* 垂直排版的特殊滚动处理 */
|
|
18
|
+
&.pisell-list-vertical {
|
|
19
|
+
.list-content {
|
|
20
|
+
/* 默认禁用内容区域的独立滚动,让容器级别滚动 */
|
|
21
|
+
&:not(.list-content-scroll) {
|
|
22
|
+
overflow-y: visible;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* scroll模式下仍需要内容区域滚动 */
|
|
26
|
+
&.list-content-scroll {
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* 当启用sticky时的额外样式 */
|
|
33
|
+
&.pisell-list-sticky-enabled {
|
|
34
|
+
/* sticky相关的额外处理可以在这里添加 */
|
|
35
|
+
position: relative;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* 空状态样式已移至 EmptyState 组件 */
|
|
39
|
+
}
|