@pisell/private-materials 6.4.56 → 6.4.57
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 -12
- 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 +6 -6
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/actionButtons/index.js +15 -7
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/footer/utils.js +7 -2
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +23 -19
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- 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/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- 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/hooks/useWalletPass.js +36 -21
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/list/List.js +957 -0
- package/es/components/list/List.less +2 -0
- package/es/components/list/ResponsiveWrapper.js +130 -0
- package/es/components/list/TestResponsiveWrapper.js +816 -0
- package/es/components/list/TestResponsiveWrapper.less +968 -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.js +1 -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.js +2 -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.js +1 -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.js +1 -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.js +1 -0
- package/es/components/list/components/Tab/types.js +1 -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.js +2 -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.js +1 -0
- package/es/components/list/examples/GroupedListExample.js +207 -0
- package/es/components/list/hooks/index.js +3 -0
- package/es/components/list/hooks/useDevice.js +102 -0
- package/es/components/list/hooks/useListState.js +176 -0
- package/es/components/list/hooks/useWaterfall.js +161 -0
- package/es/components/list/index.js +7 -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 +416 -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.js +1 -0
- package/es/components/list/utils/getText.js +150 -0
- package/es/components/list/utils/index.js +5 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toB/store/hooks.js +19 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -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.js +273 -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 +46 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
- 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 +6 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +66 -23
- package/es/components/ticketBooking/components/timeBar/index.less +1 -0
- package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
- package/es/components/ticketBooking/context/index.js +2 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
- package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
- 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/useProducts.js +43 -9
- 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.js +17 -0
- package/es/components/ticketBooking/index.d.ts +6 -0
- package/es/components/ticketBooking/index.js +86 -11
- package/es/components/ticketBooking/utils/index.js +50 -1
- package/es/components/ticketBooking/utils/productCache.js +184 -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/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.js +3 -1
- 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.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -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.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -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.js +100 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -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.js +239 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -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.js +33 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -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.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -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.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -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.js +85 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -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.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -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.js +47 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -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.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -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.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -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.js +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/actionButtons/index.js +22 -15
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/footer/utils.js +7 -2
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +33 -40
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- 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/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- 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/hooks/useWalletPass.js +57 -45
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/list/List.js +771 -0
- package/lib/components/list/List.less +2 -0
- package/lib/components/list/ResponsiveWrapper.js +145 -0
- package/lib/components/list/TestResponsiveWrapper.js +493 -0
- package/lib/components/list/TestResponsiveWrapper.less +968 -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.js +35 -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.js +41 -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.js +35 -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.js +35 -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.js +35 -0
- package/lib/components/list/components/Tab/types.js +17 -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.js +41 -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.js +35 -0
- package/lib/components/list/examples/GroupedListExample.js +210 -0
- package/lib/components/list/hooks/index.js +47 -0
- package/lib/components/list/hooks/useDevice.js +96 -0
- package/lib/components/list/hooks/useListState.js +149 -0
- package/lib/components/list/hooks/useWaterfall.js +124 -0
- package/lib/components/list/index.js +60 -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 +416 -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.js +17 -0
- package/lib/components/list/utils/getText.js +95 -0
- package/lib/components/list/utils/index.js +43 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toB/store/hooks.js +16 -8
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -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.js +247 -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 +45 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
- 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 +6 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +56 -25
- package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
- package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
- package/lib/components/ticketBooking/context/index.js +44 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
- 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/useProducts.js +26 -4
- 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.js +37 -0
- package/lib/components/ticketBooking/index.d.ts +6 -0
- package/lib/components/ticketBooking/index.js +64 -8
- package/lib/components/ticketBooking/utils/index.js +70 -2
- package/lib/components/ticketBooking/utils/productCache.js +144 -0
- 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/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.js +6 -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.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -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.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -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.js +129 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -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.js +178 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -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.js +63 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -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.js +62 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -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.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -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.js +115 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -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.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -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.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -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.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -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.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -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.js +49 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- 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 +12 -12
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/es/components/ticketBooking/utils/index.d.ts +0 -62
- package/es/index.d.ts +0 -63
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/lib/components/ticketBooking/utils/index.d.ts +0 -62
- package/lib/index.d.ts +0 -63
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.pisell-product-sku__card-more-text-wrap {
|
|
2
|
+
color: #1570ef;
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
line-height: 20px;
|
|
6
|
+
word-wrap: break-word;
|
|
7
|
+
width: max-content;
|
|
8
|
+
|
|
9
|
+
&-content {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
gap: 4px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
user-select: none;
|
|
16
|
+
&-icon {
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
// 给当前点击之后变动的icon添加过渡效果
|
|
19
|
+
transition: all 0.3s ease-in-out;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.is-fold {
|
|
23
|
+
transform: rotate(90deg);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.is-unfold {
|
|
27
|
+
transform: rotate(-90deg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import { CardPro } from '@pisell/materials';
|
|
10
|
+
import { PREFIX } from "../../status";
|
|
11
|
+
import Action from "../Action";
|
|
12
|
+
import TooltipTags from "../TooltipTags";
|
|
13
|
+
import CardMask from "../CardMask";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
var CardWrapper = function CardWrapper(props) {
|
|
16
|
+
var children = props.children,
|
|
17
|
+
className = props.className,
|
|
18
|
+
style = props.style,
|
|
19
|
+
skuCardConfig = props.skuCardConfig,
|
|
20
|
+
skuActionConfig = props.skuActionConfig,
|
|
21
|
+
skuStatusOverlayConfig = props.skuStatusOverlayConfig,
|
|
22
|
+
dataSource = props.dataSource,
|
|
23
|
+
onCardClick = props.onCardClick,
|
|
24
|
+
isSelected = props.isSelected;
|
|
25
|
+
var _ref = skuCardConfig || {},
|
|
26
|
+
paddingX = _ref.paddingX,
|
|
27
|
+
paddingY = _ref.paddingY,
|
|
28
|
+
background = _ref.background,
|
|
29
|
+
marginY = _ref.marginY,
|
|
30
|
+
marginX = _ref.marginX,
|
|
31
|
+
radius = _ref.radius,
|
|
32
|
+
borderWidth = _ref.borderWidth,
|
|
33
|
+
borderColor = _ref.borderColor,
|
|
34
|
+
isBorderVisible = _ref.isBorderVisible,
|
|
35
|
+
layoutDirection = _ref.layoutDirection;
|
|
36
|
+
var _ref2 = skuActionConfig || {},
|
|
37
|
+
method = _ref2.method;
|
|
38
|
+
var finalStyle = useMemo(function () {
|
|
39
|
+
return _objectSpread(_objectSpread({}, style), {}, {
|
|
40
|
+
backgroundColor: background,
|
|
41
|
+
padding: "".concat(paddingY, "px ").concat(paddingX, "px"),
|
|
42
|
+
margin: "".concat(marginY, "px ").concat(marginX, "px"),
|
|
43
|
+
borderRadius: radius,
|
|
44
|
+
border: isBorderVisible ? "".concat(borderWidth, "px solid ").concat(borderColor) : 'none'
|
|
45
|
+
});
|
|
46
|
+
}, [style, paddingX, paddingY, borderWidth, borderColor, isBorderVisible, radius, background, marginX, marginY]);
|
|
47
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: classNames("".concat(PREFIX, "__card-wrapper"), (skuStatusOverlayConfig === null || skuStatusOverlayConfig === void 0 ? void 0 : skuStatusOverlayConfig.isOpen) && "".concat(PREFIX, "__card-wrapper-overlay"), className),
|
|
49
|
+
onClick: function onClick(e) {
|
|
50
|
+
e.stopPropagation();
|
|
51
|
+
onCardClick === null || onCardClick === void 0 || onCardClick(dataSource);
|
|
52
|
+
}
|
|
53
|
+
}, /*#__PURE__*/React.createElement(CardPro, {
|
|
54
|
+
isMedia: false,
|
|
55
|
+
isShowHead: false,
|
|
56
|
+
isShowFooter: false,
|
|
57
|
+
className: classNames("".concat(PREFIX, "__card-wrapper-card"), isSelected && "".concat(PREFIX, "__card-wrapper-selected")),
|
|
58
|
+
style: finalStyle
|
|
59
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: "".concat(PREFIX, "__card-wrapper-children")
|
|
61
|
+
}, children), /*#__PURE__*/React.createElement(CardMask, {
|
|
62
|
+
props: skuStatusOverlayConfig || {}
|
|
63
|
+
}), layoutDirection === 'column' && method !== 'button' ? /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: "".concat(PREFIX, "__card-wrapper-action"),
|
|
65
|
+
style: {
|
|
66
|
+
bottom: paddingY,
|
|
67
|
+
right: paddingX
|
|
68
|
+
}
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Action, {
|
|
70
|
+
props: props
|
|
71
|
+
})) : null, /*#__PURE__*/React.createElement(TooltipTags, {
|
|
72
|
+
props: props
|
|
73
|
+
})));
|
|
74
|
+
};
|
|
75
|
+
export default CardWrapper;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.pisell-product-sku__card-wrapper {
|
|
2
|
+
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
3
|
+
|
|
4
|
+
.pisell-product-sku__card-wrapper-card {
|
|
5
|
+
user-select: none;
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
align-items: center;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
border: 2px solid transparent !important; // 默认透明边框,避免选中时宽度变化
|
|
12
|
+
.pisell-lowcode-card-body {
|
|
13
|
+
padding: 0;
|
|
14
|
+
border: none;
|
|
15
|
+
width: 100%;
|
|
16
|
+
.pisell-cardPro-content {
|
|
17
|
+
overflow-y: hidden;
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// 选中状态
|
|
25
|
+
.pisell-product-sku__card-wrapper-selected {
|
|
26
|
+
border: 2px solid var(--Primary-600, #7f56d9) !important;
|
|
27
|
+
background: var(--Primary-100, #f4ebff) !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pisell-product-sku__card-wrapper-children {
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.pisell-product-sku__card-wrapper-action {
|
|
37
|
+
position: absolute;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pisell-product-sku__card-wrapper-overlay {
|
|
42
|
+
.pisell-cardPro-wrap {
|
|
43
|
+
cursor: not-allowed;
|
|
44
|
+
user-select: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { Statistic as AntdStatistic } from 'antd';
|
|
3
|
+
import { locales } from '@pisell/utils';
|
|
4
|
+
import { PREFIX } from "../../status";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
var AntdCountdown = AntdStatistic.Countdown;
|
|
7
|
+
var Countdown = function Countdown(_ref) {
|
|
8
|
+
var props = _ref.props;
|
|
9
|
+
var dataSource = props.dataSource,
|
|
10
|
+
skuTextConfig = props.skuTextConfig;
|
|
11
|
+
var _ref2 = (skuTextConfig === null || skuTextConfig === void 0 ? void 0 : skuTextConfig.skuCountdownConfig) || {},
|
|
12
|
+
isOpen = _ref2.isOpen,
|
|
13
|
+
fontSize = _ref2.fontSize,
|
|
14
|
+
fontWeight = _ref2.fontWeight,
|
|
15
|
+
color = _ref2.color,
|
|
16
|
+
customText = _ref2.customText;
|
|
17
|
+
|
|
18
|
+
// 不开启
|
|
19
|
+
if (!isOpen) return null;
|
|
20
|
+
|
|
21
|
+
// 自定义文本
|
|
22
|
+
if (customText) return customText;
|
|
23
|
+
var finalStyle = useMemo(function () {
|
|
24
|
+
return {
|
|
25
|
+
fontSize: fontSize,
|
|
26
|
+
fontWeight: fontWeight,
|
|
27
|
+
color: color
|
|
28
|
+
};
|
|
29
|
+
}, [fontSize, fontWeight, color]);
|
|
30
|
+
return dataSource !== null && dataSource !== void 0 && dataSource.countdown ? /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: "".concat(PREFIX, "__card-countdown"),
|
|
32
|
+
style: finalStyle
|
|
33
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.sku-card.time.remaining'), ": "), /*#__PURE__*/React.createElement(AntdCountdown, {
|
|
34
|
+
value: dataSource === null || dataSource === void 0 ? void 0 : dataSource.countdown,
|
|
35
|
+
format: "HH:mm:ss",
|
|
36
|
+
valueStyle: finalStyle
|
|
37
|
+
})) : null;
|
|
38
|
+
};
|
|
39
|
+
export default Countdown;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { PREFIX } from "../../status";
|
|
3
|
+
import { image as imageAli } from '@pisell/utils';
|
|
4
|
+
import Favorite from "../Favorite";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
var Cover = function Cover(_ref) {
|
|
7
|
+
var props = _ref.props;
|
|
8
|
+
var dataSource = props.dataSource,
|
|
9
|
+
skuImageConfig = props.skuImageConfig;
|
|
10
|
+
var _ref2 = skuImageConfig || {},
|
|
11
|
+
isCover = _ref2.isCover,
|
|
12
|
+
width = _ref2.width,
|
|
13
|
+
height = _ref2.height,
|
|
14
|
+
radius = _ref2.radius,
|
|
15
|
+
isTextFallback = _ref2.isTextFallback,
|
|
16
|
+
background = _ref2.background;
|
|
17
|
+
if (!isCover) return null;
|
|
18
|
+
|
|
19
|
+
// 如果图片为空,且不展示文本,则不展示
|
|
20
|
+
if (!(dataSource !== null && dataSource !== void 0 && dataSource.cover) && !isTextFallback) return null;
|
|
21
|
+
var getTextCover = function getTextCover(title) {
|
|
22
|
+
if (!(dataSource !== null && dataSource !== void 0 && dataSource.title)) return '';
|
|
23
|
+
var cleanTitle = title.trim();
|
|
24
|
+
if (cleanTitle.length === 0) return '';
|
|
25
|
+
return cleanTitle.substring(0, 2).toUpperCase();
|
|
26
|
+
};
|
|
27
|
+
var finalStyle = useMemo(function () {
|
|
28
|
+
return {
|
|
29
|
+
borderRadius: radius,
|
|
30
|
+
background: background
|
|
31
|
+
};
|
|
32
|
+
}, [radius, background]);
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
className: "".concat(PREFIX, "__card-cover")
|
|
35
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: "".concat(PREFIX, "__card-cover-image"),
|
|
37
|
+
style: {
|
|
38
|
+
width: "".concat(width) || 'auto',
|
|
39
|
+
height: "".concat(height) || 'auto'
|
|
40
|
+
}
|
|
41
|
+
}, dataSource !== null && dataSource !== void 0 && dataSource.cover ? /*#__PURE__*/React.createElement("img", {
|
|
42
|
+
loading: "lazy",
|
|
43
|
+
src: imageAli.ali(dataSource === null || dataSource === void 0 ? void 0 : dataSource.cover, 360),
|
|
44
|
+
alt: dataSource === null || dataSource === void 0 ? void 0 : dataSource.title,
|
|
45
|
+
style: finalStyle
|
|
46
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: "".concat(PREFIX, "__card-cover-text"),
|
|
48
|
+
style: finalStyle
|
|
49
|
+
}, getTextCover((dataSource === null || dataSource === void 0 ? void 0 : dataSource.title) || '')), /*#__PURE__*/React.createElement(Favorite, {
|
|
50
|
+
props: props
|
|
51
|
+
})));
|
|
52
|
+
};
|
|
53
|
+
export default Cover;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.pisell-product-sku__card-cover {
|
|
2
|
+
.pisell-product-sku__card-cover-image {
|
|
3
|
+
flex-shrink: 0;
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
img {
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
background: lightgray 50% / cover no-repeat;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
object-fit: cover;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pisell-product-sku__card-cover-text {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
background: #dedede;
|
|
21
|
+
color: #6c6c6c;
|
|
22
|
+
font-size: 60px;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
text-align: center;
|
|
25
|
+
line-height: 1;
|
|
26
|
+
letter-spacing: 1px;
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { PREFIX } from "../../status";
|
|
3
|
+
var Duration = function Duration(_ref) {
|
|
4
|
+
var props = _ref.props;
|
|
5
|
+
var dataSource = props.dataSource,
|
|
6
|
+
skuTextConfig = props.skuTextConfig;
|
|
7
|
+
var _ref2 = (skuTextConfig === null || skuTextConfig === void 0 ? void 0 : skuTextConfig.skuDurationConfig) || {},
|
|
8
|
+
isOpen = _ref2.isOpen,
|
|
9
|
+
fontSize = _ref2.fontSize,
|
|
10
|
+
fontWeight = _ref2.fontWeight,
|
|
11
|
+
color = _ref2.color,
|
|
12
|
+
customText = _ref2.customText;
|
|
13
|
+
|
|
14
|
+
// 不开启
|
|
15
|
+
if (!isOpen) return null;
|
|
16
|
+
|
|
17
|
+
// 自定义文本
|
|
18
|
+
if (customText) return customText;
|
|
19
|
+
var finalStyle = useMemo(function () {
|
|
20
|
+
return {
|
|
21
|
+
fontSize: fontSize,
|
|
22
|
+
fontWeight: fontWeight,
|
|
23
|
+
color: color
|
|
24
|
+
};
|
|
25
|
+
}, [fontSize, fontWeight, color]);
|
|
26
|
+
return dataSource !== null && dataSource !== void 0 && dataSource.duration ? /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "".concat(PREFIX, "__card-duration"),
|
|
28
|
+
style: finalStyle
|
|
29
|
+
}, (dataSource === null || dataSource === void 0 ? void 0 : dataSource.duration) || '') : null;
|
|
30
|
+
};
|
|
31
|
+
export default Duration;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { Icon } from '@pisell/materials';
|
|
3
|
+
import "./index.less";
|
|
4
|
+
import { PREFIX } from "../../status";
|
|
5
|
+
var PADDING = 4;
|
|
6
|
+
var Favorite = function Favorite(_ref) {
|
|
7
|
+
var props = _ref.props;
|
|
8
|
+
var skuExtraConfig = props.skuExtraConfig,
|
|
9
|
+
className = props.className,
|
|
10
|
+
dataSource = props.dataSource,
|
|
11
|
+
onFavorite = props.onFavorite;
|
|
12
|
+
var _ref2 = skuExtraConfig || {},
|
|
13
|
+
isOpen = _ref2.isOpen,
|
|
14
|
+
favoritePosition = _ref2.favoritePosition,
|
|
15
|
+
favoriteIcon = _ref2.favoriteIcon,
|
|
16
|
+
favoriteBackground = _ref2.favoriteBackground,
|
|
17
|
+
favoritePaddingY = _ref2.favoritePaddingY,
|
|
18
|
+
favoritePaddingX = _ref2.favoritePaddingX,
|
|
19
|
+
favoriteRadius = _ref2.favoriteRadius,
|
|
20
|
+
isFavoriteBorder = _ref2.isFavoriteBorder,
|
|
21
|
+
favoriteBorderWidth = _ref2.favoriteBorderWidth,
|
|
22
|
+
favoriteBorderColor = _ref2.favoriteBorderColor,
|
|
23
|
+
isFavorite = _ref2.isFavorite;
|
|
24
|
+
|
|
25
|
+
// 不开启或不开启收藏按钮
|
|
26
|
+
if (!isOpen || !isFavorite) return null;
|
|
27
|
+
var finalStyle = useMemo(function () {
|
|
28
|
+
var isLeft = favoritePosition === 'left_top' || favoritePosition === 'left_bottom';
|
|
29
|
+
var isRight = favoritePosition === 'right_top' || favoritePosition === 'right_bottom';
|
|
30
|
+
var isTop = favoritePosition === 'left_top' || favoritePosition === 'right_top';
|
|
31
|
+
var isBottom = favoritePosition === 'left_bottom' || favoritePosition === 'right_bottom';
|
|
32
|
+
return {
|
|
33
|
+
background: favoriteBackground,
|
|
34
|
+
padding: "".concat(favoritePaddingY, "px ").concat(favoritePaddingX, "px"),
|
|
35
|
+
border: isFavoriteBorder ? "".concat(favoriteBorderWidth, "px solid ").concat(favoriteBorderColor) : 'none',
|
|
36
|
+
borderRadius: "".concat(favoriteRadius, "px"),
|
|
37
|
+
top: isTop ? PADDING : 'auto',
|
|
38
|
+
bottom: isBottom ? PADDING : 'auto',
|
|
39
|
+
left: isLeft ? PADDING : 'auto',
|
|
40
|
+
right: isRight ? PADDING : 'auto'
|
|
41
|
+
};
|
|
42
|
+
}, [favoriteBackground, favoritePaddingX, favoritePaddingY, isFavoriteBorder, favoriteBorderWidth, favoriteBorderColor, favoriteRadius, favoritePosition]);
|
|
43
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: "".concat(PREFIX, "__card-favorite ").concat(className),
|
|
45
|
+
style: finalStyle,
|
|
46
|
+
onClick: function onClick(e) {
|
|
47
|
+
e.stopPropagation();
|
|
48
|
+
onFavorite === null || onFavorite === void 0 || onFavorite(dataSource);
|
|
49
|
+
}
|
|
50
|
+
}, favoriteIcon || /*#__PURE__*/React.createElement(Icon, {
|
|
51
|
+
type: "HeartFilled",
|
|
52
|
+
size: 20,
|
|
53
|
+
rotate: 0,
|
|
54
|
+
spin: false,
|
|
55
|
+
color: "#DC6803"
|
|
56
|
+
}));
|
|
57
|
+
};
|
|
58
|
+
export default Favorite;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { locales } from '@pisell/utils';
|
|
3
|
+
import { PisellTags, Icon } from '@pisell/materials';
|
|
4
|
+
import PisellPriceText from "../../../../components/pisellPriceText";
|
|
5
|
+
import { PREFIX } from "../../status";
|
|
6
|
+
import "./index.less";
|
|
7
|
+
var MemberPrice = function MemberPrice(_ref) {
|
|
8
|
+
var props = _ref.props;
|
|
9
|
+
var dataSource = props.dataSource,
|
|
10
|
+
skuTextConfig = props.skuTextConfig;
|
|
11
|
+
var _ref2 = (skuTextConfig === null || skuTextConfig === void 0 ? void 0 : skuTextConfig.skuMemberPriceConfig) || {},
|
|
12
|
+
isOpen = _ref2.isOpen,
|
|
13
|
+
isMemberPrice = _ref2.isMemberPrice,
|
|
14
|
+
isIndicator = _ref2.isIndicator,
|
|
15
|
+
isIndicatorBorder = _ref2.isIndicatorBorder,
|
|
16
|
+
indicatorBackground = _ref2.indicatorBackground,
|
|
17
|
+
indicatorPaddingY = _ref2.indicatorPaddingY,
|
|
18
|
+
indicatorPaddingX = _ref2.indicatorPaddingX,
|
|
19
|
+
indicatorMarginX = _ref2.indicatorMarginX,
|
|
20
|
+
indicatorRadius = _ref2.indicatorRadius,
|
|
21
|
+
indicatorBorderWidth = _ref2.indicatorBorderWidth,
|
|
22
|
+
indicatorBorderColor = _ref2.indicatorBorderColor,
|
|
23
|
+
indicatorFontSize = _ref2.indicatorFontSize,
|
|
24
|
+
indicatorFontWeight = _ref2.indicatorFontWeight,
|
|
25
|
+
indicatorColor = _ref2.indicatorColor,
|
|
26
|
+
fontSize = _ref2.fontSize,
|
|
27
|
+
fontWeight = _ref2.fontWeight,
|
|
28
|
+
color = _ref2.color,
|
|
29
|
+
indicatorIcon = _ref2.indicatorIcon,
|
|
30
|
+
customText = _ref2.customText;
|
|
31
|
+
|
|
32
|
+
// 不开启
|
|
33
|
+
if (!isOpen) return null;
|
|
34
|
+
|
|
35
|
+
// 自定义文本
|
|
36
|
+
if (customText) return customText;
|
|
37
|
+
var memberPriceStyle = useMemo(function () {
|
|
38
|
+
return {
|
|
39
|
+
fontSize: fontSize,
|
|
40
|
+
fontWeight: fontWeight,
|
|
41
|
+
color: color
|
|
42
|
+
};
|
|
43
|
+
}, [fontSize, fontWeight, color]);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @title: 标识样式
|
|
47
|
+
* @description:
|
|
48
|
+
* @param {*} useMemo
|
|
49
|
+
* @return {*}
|
|
50
|
+
* @Author: WangHan
|
|
51
|
+
* @Date: 2025-09-08 11:50
|
|
52
|
+
*/
|
|
53
|
+
var indicatorStyle = useMemo(function () {
|
|
54
|
+
return {
|
|
55
|
+
backgroundColor: indicatorBackground,
|
|
56
|
+
padding: "".concat(indicatorPaddingY, "px ").concat(indicatorPaddingX, "px"),
|
|
57
|
+
margin: "0 ".concat(indicatorMarginX, "px"),
|
|
58
|
+
border: isIndicatorBorder ? "".concat(indicatorBorderWidth, "px solid ").concat(indicatorBorderColor) : 'none',
|
|
59
|
+
borderRadius: indicatorRadius,
|
|
60
|
+
fontSize: indicatorFontSize,
|
|
61
|
+
fontWeight: indicatorFontWeight,
|
|
62
|
+
color: indicatorColor
|
|
63
|
+
};
|
|
64
|
+
}, [indicatorBackground, indicatorPaddingY, indicatorPaddingX, indicatorMarginX, indicatorRadius, indicatorBorderWidth, indicatorBorderColor, indicatorFontSize, indicatorFontWeight, indicatorColor, isIndicatorBorder]);
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: "".concat(PREFIX, "__card-member-price")
|
|
67
|
+
}, isMemberPrice ? /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: "".concat(PREFIX, "__card-member-price-text"),
|
|
69
|
+
style: memberPriceStyle
|
|
70
|
+
}, /*#__PURE__*/React.createElement(PisellPriceText, {
|
|
71
|
+
value: (dataSource === null || dataSource === void 0 ? void 0 : dataSource.member_price) || 0
|
|
72
|
+
})) : null, isIndicator ? /*#__PURE__*/React.createElement(PisellTags, {
|
|
73
|
+
type: "pill_color",
|
|
74
|
+
style: indicatorStyle
|
|
75
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
className: "".concat(PREFIX, "__card-member-price-tag")
|
|
77
|
+
}, indicatorIcon ? indicatorIcon : /*#__PURE__*/React.createElement(Icon, {
|
|
78
|
+
type: "pisell2-check-verified-02",
|
|
79
|
+
size: 12,
|
|
80
|
+
rotate: 0,
|
|
81
|
+
spin: false,
|
|
82
|
+
color: "#CA8504"
|
|
83
|
+
}), /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.sku-card.member-price')))) : null);
|
|
84
|
+
};
|
|
85
|
+
export default MemberPrice;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.pisell-product-sku__card-member-price {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
|
|
6
|
+
.pisell-product-sku__card-member-price-text {
|
|
7
|
+
color: #079455;
|
|
8
|
+
font-size: 18px;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
line-height: 28px;
|
|
11
|
+
word-wrap: break-word;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pisell-product-sku__card-member-price-tag {
|
|
15
|
+
// color: white;
|
|
16
|
+
// font-size: 12px;
|
|
17
|
+
// font-weight: 400;
|
|
18
|
+
// line-height: 18px;
|
|
19
|
+
word-wrap: break-word;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: 2px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { locales } from '@pisell/utils';
|
|
3
|
+
import PisellPriceText from "../../../../components/pisellPriceText";
|
|
4
|
+
import { PREFIX } from "../../status";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
var Price = function Price(_ref) {
|
|
7
|
+
var props = _ref.props;
|
|
8
|
+
var dataSource = props.dataSource,
|
|
9
|
+
skuTextConfig = props.skuTextConfig;
|
|
10
|
+
var _ref2 = (skuTextConfig === null || skuTextConfig === void 0 ? void 0 : skuTextConfig.skuPriceConfig) || {},
|
|
11
|
+
isOpen = _ref2.isOpen,
|
|
12
|
+
isOriginPrice = _ref2.isOriginPrice,
|
|
13
|
+
isPrice = _ref2.isPrice,
|
|
14
|
+
isTaxPrice = _ref2.isTaxPrice,
|
|
15
|
+
originPriceFontSize = _ref2.originPriceFontSize,
|
|
16
|
+
originPriceFontWeight = _ref2.originPriceFontWeight,
|
|
17
|
+
originPriceColor = _ref2.originPriceColor,
|
|
18
|
+
priceFontSize = _ref2.priceFontSize,
|
|
19
|
+
priceFontWeight = _ref2.priceFontWeight,
|
|
20
|
+
priceColor = _ref2.priceColor,
|
|
21
|
+
isCustomText = _ref2.isCustomText,
|
|
22
|
+
customTextType = _ref2.customTextType,
|
|
23
|
+
customTextValue = _ref2.customTextValue,
|
|
24
|
+
customTextMinValue = _ref2.customTextMinValue,
|
|
25
|
+
customTextMaxValue = _ref2.customTextMaxValue,
|
|
26
|
+
isShowZeroPrice = _ref2.isShowZeroPrice,
|
|
27
|
+
isShowFreePrice = _ref2.isShowFreePrice,
|
|
28
|
+
isMiniPrice = _ref2.isMiniPrice;
|
|
29
|
+
|
|
30
|
+
// 不开启
|
|
31
|
+
if (!isOpen) return null;
|
|
32
|
+
|
|
33
|
+
// 自定义文本
|
|
34
|
+
// if (customText) return customText;
|
|
35
|
+
|
|
36
|
+
var isShowPrice = useMemo(function () {
|
|
37
|
+
if (!isPrice) return false;
|
|
38
|
+
|
|
39
|
+
// 0元不显示
|
|
40
|
+
if (Number(dataSource === null || dataSource === void 0 ? void 0 : dataSource.price) === 0 && !isShowZeroPrice) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}, [isPrice, isShowZeroPrice, dataSource === null || dataSource === void 0 ? void 0 : dataSource.price]);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @title: 价格文本
|
|
46
|
+
* @description:
|
|
47
|
+
* @param {*} useMemo
|
|
48
|
+
* @return {*}
|
|
49
|
+
* @Author: WangHan
|
|
50
|
+
* @Date: 2025-09-18 16:23
|
|
51
|
+
*/
|
|
52
|
+
var priceText = useMemo(function () {
|
|
53
|
+
if (!isShowPrice) return null;
|
|
54
|
+
|
|
55
|
+
// 免费
|
|
56
|
+
if (Number(dataSource === null || dataSource === void 0 ? void 0 : dataSource.price) === 0 && isShowFreePrice) {
|
|
57
|
+
return locales.getText('pisell2.sku-card.free');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// 自定义文本
|
|
61
|
+
if (isCustomText) {
|
|
62
|
+
// 从起点
|
|
63
|
+
if (customTextType === 'from') {
|
|
64
|
+
return /*#__PURE__*/React.createElement(PisellPriceText, {
|
|
65
|
+
value: customTextValue || 0,
|
|
66
|
+
isMini: true
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// 终点
|
|
71
|
+
if (customTextType === 'end') {
|
|
72
|
+
return /*#__PURE__*/React.createElement(PisellPriceText, {
|
|
73
|
+
value: customTextValue || 0,
|
|
74
|
+
isMini: true,
|
|
75
|
+
customPrefixText: locales.getText('pisell2.sku-card.max'),
|
|
76
|
+
customSuffixText: locales.getText('pisell2.sku-card.max')
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// 区间
|
|
81
|
+
if (customTextType === 'range') {
|
|
82
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
83
|
+
className: "".concat(PREFIX, "__card-price-range")
|
|
84
|
+
}, /*#__PURE__*/React.createElement(PisellPriceText, {
|
|
85
|
+
value: customTextMinValue || 0
|
|
86
|
+
}), "~", /*#__PURE__*/React.createElement(PisellPriceText, {
|
|
87
|
+
value: customTextMaxValue || 0
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return /*#__PURE__*/React.createElement(PisellPriceText, {
|
|
92
|
+
value: (dataSource === null || dataSource === void 0 ? void 0 : dataSource.price) || 0
|
|
93
|
+
});
|
|
94
|
+
}, [isShowPrice, dataSource === null || dataSource === void 0 ? void 0 : dataSource.price, isShowFreePrice, isCustomText, customTextType, customTextValue, customTextMinValue, customTextMaxValue]);
|
|
95
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
className: "".concat(PREFIX, "__card-price-wrap")
|
|
97
|
+
}, isShowPrice ? /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
className: "".concat(PREFIX, "__card-price"),
|
|
99
|
+
style: {
|
|
100
|
+
fontSize: priceFontSize,
|
|
101
|
+
fontWeight: priceFontWeight,
|
|
102
|
+
color: priceColor
|
|
103
|
+
}
|
|
104
|
+
}, priceText) : null, isTaxPrice && parseFloat(String((dataSource === null || dataSource === void 0 ? void 0 : dataSource.tax_fee) || 0)) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
105
|
+
className: "".concat(PREFIX, "__card-tax-price")
|
|
106
|
+
}, "(".concat(locales.getText('pisell2.sku-card.gst'), " : "), /*#__PURE__*/React.createElement(PisellPriceText, {
|
|
107
|
+
value: (dataSource === null || dataSource === void 0 ? void 0 : dataSource.tax_fee) || 0,
|
|
108
|
+
isMini: isMiniPrice
|
|
109
|
+
}), ")") : null, isOriginPrice && parseFloat(String((dataSource === null || dataSource === void 0 ? void 0 : dataSource.original_price) || 0)) ? /*#__PURE__*/React.createElement("div", {
|
|
110
|
+
className: "".concat(PREFIX, "__card-original-price"),
|
|
111
|
+
style: {
|
|
112
|
+
fontSize: originPriceFontSize,
|
|
113
|
+
fontWeight: originPriceFontWeight,
|
|
114
|
+
color: originPriceColor
|
|
115
|
+
}
|
|
116
|
+
}, /*#__PURE__*/React.createElement(PisellPriceText, {
|
|
117
|
+
value: (dataSource === null || dataSource === void 0 ? void 0 : dataSource.original_price) || 0,
|
|
118
|
+
isMini: isMiniPrice
|
|
119
|
+
})) : null);
|
|
120
|
+
};
|
|
121
|
+
export default Price;
|