@pisell/private-materials 6.5.13 → 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 +7 -7
- 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/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/info/service2/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/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +5 -5
- 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/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/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/info/service2/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/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- 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/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/lowcode/sku-card/meta.ts +1812 -0
- package/lowcode/sku-card/snippets.ts +372 -0
- package/lowcode/sku-list/meta.ts +410 -0
- package/package.json +1 -1
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type BoolConfigVal = false | true;
|
|
3
|
+
declare type IsVisible = 0 | 1;
|
|
4
|
+
declare type SkuDisplayMode = 'display_a1' | 'display_a2' | 'display_a5' | 'display_a9' | 'display_custom';
|
|
5
|
+
declare type SkuLayoutDirection = 'row' | 'column';
|
|
6
|
+
declare type SkuImageSlotPosition = 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
7
|
+
declare type SkuActionType = 'icon' | 'radio' | 'checkbox' | 'button';
|
|
8
|
+
declare type SkuExtraStepperSize = 'large' | 'small';
|
|
9
|
+
declare type SkuFavoritePosition = 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
10
|
+
declare type SkuTagsSize = 'small' | 'medium' | 'large';
|
|
11
|
+
export interface SkuCardConfig {
|
|
12
|
+
displayMode?: SkuDisplayMode;
|
|
13
|
+
layoutDirection?: SkuLayoutDirection;
|
|
14
|
+
background?: string;
|
|
15
|
+
paddingY?: number;
|
|
16
|
+
paddingX?: number;
|
|
17
|
+
marginY?: number;
|
|
18
|
+
marginX?: number;
|
|
19
|
+
radius?: number;
|
|
20
|
+
isBorderVisible?: BoolConfigVal;
|
|
21
|
+
borderWidth?: number;
|
|
22
|
+
borderColor?: string;
|
|
23
|
+
isStatusOverlayVisible?: boolean;
|
|
24
|
+
statusOverlayText?: string;
|
|
25
|
+
isFoldable?: BoolConfigVal;
|
|
26
|
+
slot?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export interface SkuImageConfig {
|
|
29
|
+
isCover?: BoolConfigVal;
|
|
30
|
+
width?: string;
|
|
31
|
+
height?: string;
|
|
32
|
+
isTextFallback?: BoolConfigVal;
|
|
33
|
+
background?: string;
|
|
34
|
+
radius?: number;
|
|
35
|
+
slot?: React.ReactNode;
|
|
36
|
+
slotPosition?: SkuImageSlotPosition;
|
|
37
|
+
}
|
|
38
|
+
export interface SkuProductNameConfig {
|
|
39
|
+
isOpen?: BoolConfigVal;
|
|
40
|
+
value?: string;
|
|
41
|
+
fontSize?: number;
|
|
42
|
+
fontWeight?: number;
|
|
43
|
+
color?: string;
|
|
44
|
+
ellipsisCount?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface SkuProductSubtitleConfig {
|
|
47
|
+
isOpen?: BoolConfigVal;
|
|
48
|
+
value?: any;
|
|
49
|
+
fontSize?: number;
|
|
50
|
+
fontWeight?: number;
|
|
51
|
+
color?: string;
|
|
52
|
+
ellipsisCount?: number;
|
|
53
|
+
}
|
|
54
|
+
export interface SkuProductPriceConfig {
|
|
55
|
+
isOpen?: BoolConfigVal;
|
|
56
|
+
isPrice?: BoolConfigVal;
|
|
57
|
+
priceFontSize?: number;
|
|
58
|
+
priceFontWeight?: number;
|
|
59
|
+
priceColor?: string;
|
|
60
|
+
isShowZeroPrice?: BoolConfigVal;
|
|
61
|
+
isShowFreePrice?: BoolConfigVal;
|
|
62
|
+
isOriginPrice?: BoolConfigVal;
|
|
63
|
+
originPriceFontSize?: number;
|
|
64
|
+
originPriceFontWeight?: number;
|
|
65
|
+
originPriceColor?: string;
|
|
66
|
+
isTaxPrice?: BoolConfigVal;
|
|
67
|
+
isCustomText?: BoolConfigVal;
|
|
68
|
+
customTextType?: string;
|
|
69
|
+
customTextValue?: number;
|
|
70
|
+
customTextMinValue?: number;
|
|
71
|
+
customTextMaxValue?: number;
|
|
72
|
+
isMiniPrice?: BoolConfigVal;
|
|
73
|
+
}
|
|
74
|
+
export interface SkuProductStockConfig {
|
|
75
|
+
isOpen?: BoolConfigVal;
|
|
76
|
+
fontSize?: number;
|
|
77
|
+
fontWeight?: number;
|
|
78
|
+
color?: string;
|
|
79
|
+
customText?: React.ReactNode;
|
|
80
|
+
}
|
|
81
|
+
export interface SkuProductCapacityConfig {
|
|
82
|
+
isOpen?: BoolConfigVal;
|
|
83
|
+
fontSize?: number;
|
|
84
|
+
fontWeight?: number;
|
|
85
|
+
color?: string;
|
|
86
|
+
customText?: React.ReactNode;
|
|
87
|
+
}
|
|
88
|
+
export interface SkuProductCountdownConfig {
|
|
89
|
+
isOpen?: BoolConfigVal;
|
|
90
|
+
fontSize?: number;
|
|
91
|
+
fontWeight?: number;
|
|
92
|
+
color?: string;
|
|
93
|
+
customText?: React.ReactNode;
|
|
94
|
+
}
|
|
95
|
+
export interface SkuProductMemberPriceConfig {
|
|
96
|
+
isOpen?: BoolConfigVal;
|
|
97
|
+
isMemberPrice?: BoolConfigVal;
|
|
98
|
+
fontSize?: number;
|
|
99
|
+
fontWeight?: number;
|
|
100
|
+
color?: string;
|
|
101
|
+
isIndicator?: BoolConfigVal;
|
|
102
|
+
indicatorBackground?: string;
|
|
103
|
+
indicatorPaddingY?: number;
|
|
104
|
+
indicatorPaddingX?: number;
|
|
105
|
+
indicatorMarginX?: number;
|
|
106
|
+
indicatorRadius?: number;
|
|
107
|
+
isIndicatorBorder?: BoolConfigVal;
|
|
108
|
+
indicatorBorderWidth?: number;
|
|
109
|
+
indicatorBorderColor?: string;
|
|
110
|
+
indicatorFontSize?: number;
|
|
111
|
+
indicatorFontWeight?: number;
|
|
112
|
+
indicatorColor?: string;
|
|
113
|
+
indicatorIcon?: React.ReactNode;
|
|
114
|
+
customText?: React.ReactNode;
|
|
115
|
+
}
|
|
116
|
+
export interface SkuDurationConfig {
|
|
117
|
+
isOpen?: BoolConfigVal;
|
|
118
|
+
fontSize?: number;
|
|
119
|
+
fontWeight?: number;
|
|
120
|
+
color?: string;
|
|
121
|
+
customText?: React.ReactNode;
|
|
122
|
+
}
|
|
123
|
+
export interface SkuTimeConfig {
|
|
124
|
+
isOpen?: BoolConfigVal;
|
|
125
|
+
fontSize?: number;
|
|
126
|
+
fontWeight?: number;
|
|
127
|
+
color?: string;
|
|
128
|
+
customText?: React.ReactNode;
|
|
129
|
+
}
|
|
130
|
+
export interface SkuResourceConfig {
|
|
131
|
+
isOpen?: BoolConfigVal;
|
|
132
|
+
fontSize?: number;
|
|
133
|
+
fontWeight?: number;
|
|
134
|
+
color?: string;
|
|
135
|
+
customText?: React.ReactNode;
|
|
136
|
+
}
|
|
137
|
+
export interface SkuTextConfig {
|
|
138
|
+
paddingY?: number;
|
|
139
|
+
justifyContent?: string;
|
|
140
|
+
alignItems?: string;
|
|
141
|
+
slot?: React.ReactNode;
|
|
142
|
+
}
|
|
143
|
+
export interface SkuActionIconMethod {
|
|
144
|
+
icon?: React.ReactNode;
|
|
145
|
+
background?: string;
|
|
146
|
+
paddingY?: number;
|
|
147
|
+
paddingX?: number;
|
|
148
|
+
radius?: number;
|
|
149
|
+
isBorder?: BoolConfigVal;
|
|
150
|
+
borderWidth?: number;
|
|
151
|
+
borderColor?: string;
|
|
152
|
+
}
|
|
153
|
+
export interface SkuActionButtonMethod {
|
|
154
|
+
text?: string;
|
|
155
|
+
fontSize?: number;
|
|
156
|
+
fontWeight?: number;
|
|
157
|
+
color?: string;
|
|
158
|
+
background?: string;
|
|
159
|
+
paddingY?: number;
|
|
160
|
+
paddingX?: number;
|
|
161
|
+
radius?: number;
|
|
162
|
+
isBorder?: BoolConfigVal;
|
|
163
|
+
borderWidth?: number;
|
|
164
|
+
borderColor?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface SkuActionConfig {
|
|
167
|
+
isOpen?: BoolConfigVal;
|
|
168
|
+
method?: SkuActionType;
|
|
169
|
+
iconMethod?: SkuActionIconMethod;
|
|
170
|
+
radioMethod?: SkuActionIconMethod;
|
|
171
|
+
checkboxMethod?: SkuActionButtonMethod;
|
|
172
|
+
buttonMethod?: SkuActionButtonMethod;
|
|
173
|
+
slot?: React.ReactNode;
|
|
174
|
+
}
|
|
175
|
+
export interface SkuExtraConfig {
|
|
176
|
+
isOpen?: BoolConfigVal;
|
|
177
|
+
isStepper?: BoolConfigVal;
|
|
178
|
+
stepperSize?: SkuExtraStepperSize;
|
|
179
|
+
stepperColor?: string;
|
|
180
|
+
isFavorite?: BoolConfigVal;
|
|
181
|
+
favoritePosition?: SkuFavoritePosition;
|
|
182
|
+
favoriteIcon?: React.ReactNode;
|
|
183
|
+
favoriteBackground?: string;
|
|
184
|
+
favoritePaddingY?: number;
|
|
185
|
+
favoritePaddingX?: number;
|
|
186
|
+
favoriteRadius?: number;
|
|
187
|
+
isFavoriteBorder?: BoolConfigVal;
|
|
188
|
+
favoriteBorderWidth?: number;
|
|
189
|
+
favoriteBorderColor?: string;
|
|
190
|
+
isTooltipTag?: BoolConfigVal;
|
|
191
|
+
isTooltipTagSlot?: any;
|
|
192
|
+
}
|
|
193
|
+
export interface SkuTagsGroupConfig {
|
|
194
|
+
title?: any;
|
|
195
|
+
background?: string;
|
|
196
|
+
paddingY?: number;
|
|
197
|
+
paddingX?: number;
|
|
198
|
+
radius?: number;
|
|
199
|
+
isBorder?: BoolConfigVal;
|
|
200
|
+
borderWidth?: number;
|
|
201
|
+
borderColor?: string;
|
|
202
|
+
fontSize?: number;
|
|
203
|
+
fontWeight?: number;
|
|
204
|
+
color?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface SkuTagsConfig {
|
|
207
|
+
isOpen?: BoolConfigVal;
|
|
208
|
+
lists?: SkuTagsGroupConfig[];
|
|
209
|
+
marginX?: number;
|
|
210
|
+
size?: SkuTagsSize;
|
|
211
|
+
isShowAll?: BoolConfigVal;
|
|
212
|
+
maxCount?: number;
|
|
213
|
+
}
|
|
214
|
+
export interface SkuPromotionsGroupConfig {
|
|
215
|
+
title?: any;
|
|
216
|
+
background?: string;
|
|
217
|
+
paddingY?: number;
|
|
218
|
+
paddingX?: number;
|
|
219
|
+
radius?: number;
|
|
220
|
+
isBorder?: BoolConfigVal;
|
|
221
|
+
borderWidth?: number;
|
|
222
|
+
borderColor?: string;
|
|
223
|
+
fontSize?: number;
|
|
224
|
+
fontWeight?: number;
|
|
225
|
+
color?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface SkuPromotionsConfig {
|
|
228
|
+
isOpen?: BoolConfigVal;
|
|
229
|
+
lists?: SkuPromotionsGroupConfig[];
|
|
230
|
+
marginX?: number;
|
|
231
|
+
size?: SkuTagsSize;
|
|
232
|
+
isShowAll?: BoolConfigVal;
|
|
233
|
+
maxCount?: number;
|
|
234
|
+
}
|
|
235
|
+
export interface SkuStatusOverlayConfig {
|
|
236
|
+
isOpen?: BoolConfigVal;
|
|
237
|
+
fontSize?: number;
|
|
238
|
+
fontWeight?: number;
|
|
239
|
+
color?: string;
|
|
240
|
+
text?: string;
|
|
241
|
+
background?: string;
|
|
242
|
+
slot?: React.ReactNode;
|
|
243
|
+
}
|
|
244
|
+
export interface SkuTextWrapConfig {
|
|
245
|
+
infoConfig?: SkuTextConfig;
|
|
246
|
+
skuNameConfig?: SkuProductNameConfig;
|
|
247
|
+
skuSubtitleConfig?: SkuProductSubtitleConfig;
|
|
248
|
+
skuPriceConfig?: SkuProductPriceConfig;
|
|
249
|
+
skuStockConfig?: SkuProductStockConfig;
|
|
250
|
+
skuCapacityConfig?: SkuProductCapacityConfig;
|
|
251
|
+
skuCountdownConfig?: SkuProductCountdownConfig;
|
|
252
|
+
skuMemberPriceConfig?: SkuProductMemberPriceConfig;
|
|
253
|
+
skuDurationConfig?: SkuDurationConfig;
|
|
254
|
+
skuTimeConfig?: SkuTimeConfig;
|
|
255
|
+
skuResourceConfig?: SkuResourceConfig;
|
|
256
|
+
skuTagsConfig?: SkuTagsConfig;
|
|
257
|
+
skuPromotionsConfig?: SkuPromotionsConfig;
|
|
258
|
+
}
|
|
259
|
+
export interface DataSourceConfig {
|
|
260
|
+
title?: string;
|
|
261
|
+
subtitle?: string;
|
|
262
|
+
cover?: string;
|
|
263
|
+
price?: number;
|
|
264
|
+
original_price?: number | string;
|
|
265
|
+
tax_fee?: number | string;
|
|
266
|
+
stock?: number;
|
|
267
|
+
capacity?: number;
|
|
268
|
+
countdown?: number | string;
|
|
269
|
+
member_price?: number;
|
|
270
|
+
duration?: number;
|
|
271
|
+
time?: string;
|
|
272
|
+
resource?: string;
|
|
273
|
+
sortKeys?: string[];
|
|
274
|
+
warning_lists?: string[];
|
|
275
|
+
promotions?: any[];
|
|
276
|
+
resources?: string;
|
|
277
|
+
stock_quantity?: number;
|
|
278
|
+
is_track?: IsVisible;
|
|
279
|
+
tags?: any[];
|
|
280
|
+
tooltip_tags?: any[];
|
|
281
|
+
className?: string;
|
|
282
|
+
[key: string]: any;
|
|
283
|
+
}
|
|
284
|
+
export interface ProductCardConfig {
|
|
285
|
+
dataSource?: DataSourceConfig;
|
|
286
|
+
skuCardConfig?: SkuCardConfig;
|
|
287
|
+
skuImageConfig?: SkuImageConfig;
|
|
288
|
+
skuTextConfig?: SkuTextWrapConfig;
|
|
289
|
+
skuActionConfig?: SkuActionConfig;
|
|
290
|
+
skuExtraConfig?: SkuExtraConfig;
|
|
291
|
+
skuStatusOverlayConfig?: SkuStatusOverlayConfig;
|
|
292
|
+
className?: string;
|
|
293
|
+
onCardClick?: (item: any, extParams?: any) => void;
|
|
294
|
+
onFavorite?: (item: any, extParams?: any) => void;
|
|
295
|
+
onAction?: (item: any, extParams?: any) => void;
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
}
|
|
298
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/plus/productSelect/ProductCard/SkuCard/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/plus/productSelect/ProductCard/SkuCard/utils.ts
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
transformProps: () => transformProps
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(utils_exports);
|
|
25
|
+
var import_status = require("./status");
|
|
26
|
+
var transformProps = (flatProps) => {
|
|
27
|
+
const {
|
|
28
|
+
...restProps
|
|
29
|
+
} = { ...import_status.productCardDefault, ...flatProps };
|
|
30
|
+
return {
|
|
31
|
+
...restProps
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
transformProps
|
|
37
|
+
});
|
|
@@ -40,14 +40,15 @@ var import_index = require("./index.less");
|
|
|
40
40
|
var index = (props) => {
|
|
41
41
|
var _a, _b;
|
|
42
42
|
const context = (0, import_useEngineContext.default)();
|
|
43
|
-
const { value } = props;
|
|
43
|
+
const { value, customPrefixText, customSuffixText } = props;
|
|
44
44
|
const locale = ((_b = (_a = context.appHelper.utils) == null ? void 0 : _a.storage) == null ? void 0 : _b.get("umi_locale")) || "en";
|
|
45
45
|
const [_prefix, _suffix] = (0, import_react.useMemo)(() => {
|
|
46
46
|
if (!props.isMini) return ["", ""];
|
|
47
|
-
if (!locale) return ["From", ""];
|
|
48
|
-
if (locale.toLowerCase().includes("zh"))
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
if (!locale) return [customPrefixText || "From", ""];
|
|
48
|
+
if (locale.toLowerCase().includes("zh"))
|
|
49
|
+
return ["", customSuffixText || "起"];
|
|
50
|
+
return [customPrefixText || "From", ""];
|
|
51
|
+
}, [locale, props.isMini, customPrefixText, customSuffixText]);
|
|
51
52
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-price-text", props.className) }, props.prefix, _prefix ? /* @__PURE__ */ import_react.default.createElement(
|
|
52
53
|
"span",
|
|
53
54
|
{
|
|
@@ -33,6 +33,7 @@ __export(CashKeyboardIntact_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(CashKeyboardIntact_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
36
37
|
var import_ahooks = require("ahooks");
|
|
37
38
|
var import_lodash = require("lodash");
|
|
38
39
|
var import_utils = require("@pisell/utils");
|
|
@@ -234,17 +235,35 @@ var CashKeyboardIntact = (props) => {
|
|
|
234
235
|
},
|
|
235
236
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-label" }, mergedDisplayField.balanceDue.label),
|
|
236
237
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-value" }, /* @__PURE__ */ import_react.default.createElement(
|
|
237
|
-
|
|
238
|
+
import_antd.Tooltip,
|
|
238
239
|
{
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
title: (0, import_utils3.formatAmountWithOptions)(
|
|
241
|
+
originalValue || "",
|
|
242
|
+
amountSymbol,
|
|
243
|
+
{
|
|
244
|
+
precision: 2,
|
|
245
|
+
hideDecimalForWholeNumbers: false,
|
|
246
|
+
showCurrencySymbol: true
|
|
247
|
+
}
|
|
248
|
+
)
|
|
242
249
|
},
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
250
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
251
|
+
import_materials2.AutoResizeText,
|
|
252
|
+
{
|
|
253
|
+
minFontSizePx: 10,
|
|
254
|
+
maxFontSizePx: 18,
|
|
255
|
+
fontSizePrecisionPx: 0.5
|
|
256
|
+
},
|
|
257
|
+
(0, import_utils3.formatAmountWithOptions)(
|
|
258
|
+
originalValue || "",
|
|
259
|
+
amountSymbol,
|
|
260
|
+
{
|
|
261
|
+
precision: 2,
|
|
262
|
+
hideDecimalForWholeNumbers: false,
|
|
263
|
+
showCurrencySymbol: true
|
|
264
|
+
}
|
|
265
|
+
)
|
|
266
|
+
)
|
|
248
267
|
))
|
|
249
268
|
), ((_b = mergedDisplayField.cashReceived) == null ? void 0 : _b.visible) && /* @__PURE__ */ import_react.default.createElement(
|
|
250
269
|
"div",
|
|
@@ -281,19 +300,15 @@ var CashKeyboardIntact = (props) => {
|
|
|
281
300
|
},
|
|
282
301
|
mergedDisplayField.cashReceived.label
|
|
283
302
|
),
|
|
284
|
-
value: internalValue ?
|
|
285
|
-
|
|
303
|
+
value: internalValue ? (0, import_utils3.formatAmountWithOptions)(
|
|
304
|
+
internalValue || "",
|
|
305
|
+
amountSymbol,
|
|
286
306
|
{
|
|
287
|
-
minFontSizePx: 10,
|
|
288
|
-
maxFontSizePx: 14,
|
|
289
|
-
fontSizePrecisionPx: 0.5
|
|
290
|
-
},
|
|
291
|
-
(0, import_utils3.formatAmountWithOptions)(internalValue || "", amountSymbol, {
|
|
292
307
|
value: internalValue,
|
|
293
308
|
hideDecimalForWholeNumbers: false,
|
|
294
309
|
precision: 2,
|
|
295
310
|
showCurrencySymbol: true
|
|
296
|
-
}
|
|
311
|
+
}
|
|
297
312
|
) : "",
|
|
298
313
|
height: 30,
|
|
299
314
|
fontSize: 20,
|
|
@@ -315,18 +330,37 @@ var CashKeyboardIntact = (props) => {
|
|
|
315
330
|
},
|
|
316
331
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-label" }, mergedDisplayField.changeDue.label),
|
|
317
332
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-value" }, /* @__PURE__ */ import_react.default.createElement(
|
|
318
|
-
|
|
333
|
+
import_antd.Tooltip,
|
|
319
334
|
{
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
335
|
+
title: (0, import_utils3.formatAmountWithOptions)(
|
|
336
|
+
hiddenChangeDue ? 0 : changeDue,
|
|
337
|
+
amountSymbol,
|
|
338
|
+
{
|
|
339
|
+
value: hiddenChangeDue ? 0 : changeDue,
|
|
340
|
+
showCurrencySymbol: true,
|
|
341
|
+
hideDecimalForWholeNumbers: false,
|
|
342
|
+
precision: 2
|
|
343
|
+
}
|
|
344
|
+
)
|
|
323
345
|
},
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
346
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
347
|
+
import_materials2.AutoResizeText,
|
|
348
|
+
{
|
|
349
|
+
minFontSizePx: 10,
|
|
350
|
+
maxFontSizePx: 18,
|
|
351
|
+
fontSizePrecisionPx: 0.5
|
|
352
|
+
},
|
|
353
|
+
(0, import_utils3.formatAmountWithOptions)(
|
|
354
|
+
hiddenChangeDue ? 0 : changeDue,
|
|
355
|
+
amountSymbol,
|
|
356
|
+
{
|
|
357
|
+
value: hiddenChangeDue ? 0 : changeDue,
|
|
358
|
+
showCurrencySymbol: true,
|
|
359
|
+
hideDecimalForWholeNumbers: false,
|
|
360
|
+
precision: 2
|
|
361
|
+
}
|
|
362
|
+
)
|
|
363
|
+
)
|
|
330
364
|
))
|
|
331
365
|
)), /* @__PURE__ */ import_react.default.createElement(
|
|
332
366
|
import_shortcuts.default,
|