@pisell/private-materials 6.5.14 → 6.5.16
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- 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 +7 -2
- package/es/components/booking/components/footer/utils.js +8 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.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/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- 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/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- 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 +1 -9
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/booking/utils.js +1 -1
- package/es/components/checkout/PaymentModal.js +25 -18
- package/es/components/checkout/PaymentPlugin.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.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/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.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/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- 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/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/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/ProductItem/index.d.ts +1 -0
- package/es/components/list/styles/content.less +1 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- 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/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/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/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/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/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +634 -208
- package/es/components/ticketBooking/components/addServiceVariant/index.js +2 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +86 -22
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +4 -1
- package/es/components/ticketBooking/context/OsKeyContext.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +141 -4
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +1 -1
- package/es/components/ticketBooking/index.js +1 -1
- package/es/components/ticketBooking/utils/index.js +33 -8
- package/es/components/ticketBooking/utils/productCache.js +184 -0
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasCreateOrganization/index.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/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- 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 +5 -2
- package/lib/components/booking/components/footer/utils.js +8 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.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/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- 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/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- 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 +1 -9
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/booking/utils.js +1 -1
- package/lib/components/checkout/PaymentModal.js +13 -9
- package/lib/components/checkout/PaymentPlugin.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.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/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.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/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- 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/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/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/ProductItem/index.d.ts +1 -0
- package/lib/components/list/styles/content.less +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- 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/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/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/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/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/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +286 -213
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +2 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +58 -8
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +3 -1
- package/lib/components/ticketBooking/context/OsKeyContext.js +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +83 -0
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +1 -1
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/utils/index.js +48 -6
- package/lib/components/ticketBooking/utils/productCache.js +144 -0
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/index.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/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/package.json +1 -1
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/footer/amount.d.ts +0 -36
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/footer/utils.d.ts +0 -41
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/forms/footer.d.ts +0 -6
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/checkout/PaymentModal.d.ts +0 -31
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/es/components/list/List.d.ts +0 -5
- package/es/components/list/ResponsiveWrapper.d.ts +0 -16
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/es/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/es/components/list/components/EmptyState/index.d.ts +0 -2
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/es/components/list/components/Pagination/index.d.ts +0 -1
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/examples/GroupedListExample.d.ts +0 -3
- package/es/components/list/hooks/index.d.ts +0 -5
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useListState.d.ts +0 -43
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/index.d.ts +0 -10
- package/es/components/list/locales.d.ts +0 -66
- package/es/components/list/types.d.ts +0 -177
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -4
- package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/types/index.d.ts +0 -72
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -30
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -9
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -7
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- 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/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/es/components/ticketBooking/index.d.ts +0 -15
- package/es/components/ticketBooking/utils/index.d.ts +0 -89
- package/es/hooks/printer.d.ts +0 -4
- package/es/index.d.ts +0 -65
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/footer/amount.d.ts +0 -36
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/footer/utils.d.ts +0 -41
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/forms/footer.d.ts +0 -6
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/checkout/PaymentModal.d.ts +0 -31
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/lib/components/list/List.d.ts +0 -5
- package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/lib/components/list/components/EmptyState/index.d.ts +0 -2
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/lib/components/list/components/Pagination/index.d.ts +0 -1
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
- package/lib/components/list/hooks/index.d.ts +0 -5
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useListState.d.ts +0 -43
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/index.d.ts +0 -10
- package/lib/components/list/locales.d.ts +0 -66
- package/lib/components/list/types.d.ts +0 -177
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -4
- package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/types/index.d.ts +0 -72
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -30
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -9
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -7
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- 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/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/lib/components/ticketBooking/index.d.ts +0 -15
- package/lib/components/ticketBooking/utils/index.d.ts +0 -89
- package/lib/hooks/printer.d.ts +0 -4
- package/lib/index.d.ts +0 -65
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { TabItem, LoadDataParams } from '../types';
|
|
2
|
-
export interface ListState {
|
|
3
|
-
activeTab: string;
|
|
4
|
-
currentPage: number;
|
|
5
|
-
isStickyActive: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare type ListAction = {
|
|
8
|
-
type: 'SET_ACTIVE_TAB';
|
|
9
|
-
payload: string;
|
|
10
|
-
} | {
|
|
11
|
-
type: 'SET_CURRENT_PAGE';
|
|
12
|
-
payload: number;
|
|
13
|
-
} | {
|
|
14
|
-
type: 'SET_STICKY_ACTIVE';
|
|
15
|
-
payload: boolean;
|
|
16
|
-
} | {
|
|
17
|
-
type: 'RESET_PAGE';
|
|
18
|
-
};
|
|
19
|
-
export interface UseListStateProps {
|
|
20
|
-
/** 外部传入的当前页码 */
|
|
21
|
-
externalCurrentPage?: number;
|
|
22
|
-
/** tab数据 */
|
|
23
|
-
tabItems: TabItem[];
|
|
24
|
-
/** 默认页面大小 */
|
|
25
|
-
defaultPageSize: number;
|
|
26
|
-
/** 数据加载回调 */
|
|
27
|
-
onLoadData?: (params: LoadDataParams) => void;
|
|
28
|
-
}
|
|
29
|
-
export interface UseListStateReturn {
|
|
30
|
-
state: ListState;
|
|
31
|
-
setActiveTab: (tab: string) => void;
|
|
32
|
-
setCurrentPage: (page: number) => void;
|
|
33
|
-
setStickyActive: (active: boolean) => void;
|
|
34
|
-
resetPage: () => void;
|
|
35
|
-
handleTabChange: (key: string) => void;
|
|
36
|
-
handlePageChange: (page: number, size?: number) => void;
|
|
37
|
-
handleShowSizeChange: (current: number, size: number) => void;
|
|
38
|
-
handleLoadMore: () => void;
|
|
39
|
-
handleViewLess: () => void;
|
|
40
|
-
handleScrollLoad: () => void;
|
|
41
|
-
actualCurrentPage: number;
|
|
42
|
-
}
|
|
43
|
-
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, }: UseListStateProps) => UseListStateReturn;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface WaterfallItem {
|
|
2
|
-
id: string | number;
|
|
3
|
-
data: any;
|
|
4
|
-
height?: number;
|
|
5
|
-
width?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface WaterfallTrack<T = any> {
|
|
8
|
-
items: T[];
|
|
9
|
-
size: number;
|
|
10
|
-
}
|
|
11
|
-
export interface WaterfallLayoutOptions {
|
|
12
|
-
tracks: number;
|
|
13
|
-
trackGap: number;
|
|
14
|
-
itemGap: number;
|
|
15
|
-
direction: 'vertical' | 'horizontal';
|
|
16
|
-
}
|
|
17
|
-
export interface WaterfallLayout<T = any> {
|
|
18
|
-
tracks: WaterfallTrack<T>[];
|
|
19
|
-
totalSize: number;
|
|
20
|
-
}
|
|
21
|
-
export declare const useWaterfall: <T extends {
|
|
22
|
-
id: string | number;
|
|
23
|
-
height?: number | undefined;
|
|
24
|
-
width?: number | undefined;
|
|
25
|
-
}>(items: T[], options: WaterfallLayoutOptions) => {
|
|
26
|
-
layout: WaterfallLayout<T>;
|
|
27
|
-
registerItemRef: (id: string | number, element: HTMLElement | null) => void;
|
|
28
|
-
measureItemSize: (id: string | number) => {
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
};
|
|
32
|
-
recalculateLayout: () => void;
|
|
33
|
-
};
|
|
34
|
-
export default useWaterfall;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { default } from './List';
|
|
2
|
-
export { default as ResponsiveList, createResponsiveConfig } from './ResponsiveWrapper';
|
|
3
|
-
export { default as TestResponsiveWrapper } from './TestResponsiveWrapper';
|
|
4
|
-
export { default as Pagination } from './components/Pagination';
|
|
5
|
-
export { default as Tab } from './components/Tab';
|
|
6
|
-
export { useDevice, getUserAgentInfo } from './hooks/useDevice';
|
|
7
|
-
export { default as TestList } from './TestResponsiveWrapper';
|
|
8
|
-
export type { ListProps, BaseListItem, EmptyStateConfig, PaginationInfo, LayoutConfig, TabConfig, PaginationConfig, LegacyListProps, TabItem, ResponsiveProps, ResponsiveWrapperProps, DeviceType, DeviceInfo, LoadMoreParams, LoadDataParams, LoadDataTrigger } from './types';
|
|
9
|
-
export type { TabProps } from './components/Tab';
|
|
10
|
-
export type { PaginationProps } from './components/Pagination/Pagination';
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell-list-tab-group-default': string;
|
|
4
|
-
'pisell-list-empty-text-default': string;
|
|
5
|
-
'pisell-list-load-more': string;
|
|
6
|
-
'pisell-list-view-less': string;
|
|
7
|
-
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
8
|
-
'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
|
|
9
|
-
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
10
|
-
'pisell-list-pagination-previous': string;
|
|
11
|
-
'pisell-list-pagination-next': string;
|
|
12
|
-
'pisell-list-scroll-down': string;
|
|
13
|
-
'pisell-list-scroll-right': string;
|
|
14
|
-
'pisell-list-scroll-to-bottom': string;
|
|
15
|
-
'pisell-list-scroll-to-end': string;
|
|
16
|
-
'pisell-list-loading': string;
|
|
17
|
-
'pisell-list-loading-more': string;
|
|
18
|
-
'pisell-list-no-more-data': string;
|
|
19
|
-
'pisell-list-group-title-all': string;
|
|
20
|
-
'pisell-list-load-error': string;
|
|
21
|
-
'pisell-list-retry': string;
|
|
22
|
-
};
|
|
23
|
-
'zh-CN': {
|
|
24
|
-
'pisell-list-tab-group-default': string;
|
|
25
|
-
'pisell-list-empty-text-default': string;
|
|
26
|
-
'pisell-list-load-more': string;
|
|
27
|
-
'pisell-list-view-less': string;
|
|
28
|
-
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
29
|
-
'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
|
|
30
|
-
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
31
|
-
'pisell-list-pagination-previous': string;
|
|
32
|
-
'pisell-list-pagination-next': string;
|
|
33
|
-
'pisell-list-scroll-down': string;
|
|
34
|
-
'pisell-list-scroll-right': string;
|
|
35
|
-
'pisell-list-scroll-to-bottom': string;
|
|
36
|
-
'pisell-list-scroll-to-end': string;
|
|
37
|
-
'pisell-list-loading': string;
|
|
38
|
-
'pisell-list-loading-more': string;
|
|
39
|
-
'pisell-list-no-more-data': string;
|
|
40
|
-
'pisell-list-group-title-all': string;
|
|
41
|
-
'pisell-list-load-error': string;
|
|
42
|
-
'pisell-list-retry': string;
|
|
43
|
-
};
|
|
44
|
-
'zh-HK': {
|
|
45
|
-
'pisell-list-tab-group-default': string;
|
|
46
|
-
'pisell-list-empty-text-default': string;
|
|
47
|
-
'pisell-list-load-more': string;
|
|
48
|
-
'pisell-list-view-less': string;
|
|
49
|
-
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
50
|
-
'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
|
|
51
|
-
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
52
|
-
'pisell-list-pagination-previous': string;
|
|
53
|
-
'pisell-list-pagination-next': string;
|
|
54
|
-
'pisell-list-scroll-down': string;
|
|
55
|
-
'pisell-list-scroll-right': string;
|
|
56
|
-
'pisell-list-scroll-to-bottom': string;
|
|
57
|
-
'pisell-list-scroll-to-end': string;
|
|
58
|
-
'pisell-list-loading': string;
|
|
59
|
-
'pisell-list-loading-more': string;
|
|
60
|
-
'pisell-list-no-more-data': string;
|
|
61
|
-
'pisell-list-group-title-all': string;
|
|
62
|
-
'pisell-list-load-error': string;
|
|
63
|
-
'pisell-list-retry': string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
export default _default;
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
/** 设备类型 */
|
|
3
|
-
export declare type DeviceType = 'pc' | 'pad' | 'mobile';
|
|
4
|
-
/** 设备信息 */
|
|
5
|
-
export interface DeviceInfo {
|
|
6
|
-
type: DeviceType;
|
|
7
|
-
isMobile: boolean;
|
|
8
|
-
isPad: boolean;
|
|
9
|
-
isPc: boolean;
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
}
|
|
13
|
-
/** 响应式配置接口 */
|
|
14
|
-
export interface ResponsiveConfig {
|
|
15
|
-
/** PC端特定配置 */
|
|
16
|
-
pc?: Partial<ListProps>;
|
|
17
|
-
/** 平板端特定配置 */
|
|
18
|
-
pad?: Partial<ListProps>;
|
|
19
|
-
/** 移动端特定配置 */
|
|
20
|
-
mobile?: Partial<ListProps>;
|
|
21
|
-
}
|
|
22
|
-
/** 响应式Props接口 - 继承ListProps并添加responsive属性 */
|
|
23
|
-
export interface ResponsiveProps extends ListProps {
|
|
24
|
-
/** 响应式配置 */
|
|
25
|
-
responsive?: ResponsiveConfig;
|
|
26
|
-
}
|
|
27
|
-
/** ResponsiveWrapper 组件属性 */
|
|
28
|
-
export interface ResponsiveWrapperProps extends ResponsiveProps {
|
|
29
|
-
/** 子元素 */
|
|
30
|
-
children?: ReactNode;
|
|
31
|
-
}
|
|
32
|
-
/** 基础列表项接口 */
|
|
33
|
-
export interface BaseListItem {
|
|
34
|
-
/** 唯一标识 */
|
|
35
|
-
id: string | number;
|
|
36
|
-
/** 预设高度(瀑布流模式) */
|
|
37
|
-
height?: number;
|
|
38
|
-
/** 预设宽度(瀑布流模式) */
|
|
39
|
-
width?: number;
|
|
40
|
-
/** 其他任意属性,可以包含用于分组的字段 */
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
}
|
|
43
|
-
/** 空状态配置接口 */
|
|
44
|
-
export interface EmptyStateConfig {
|
|
45
|
-
/** 是否显示空状态 */
|
|
46
|
-
show?: boolean;
|
|
47
|
-
/** 空状态文本 */
|
|
48
|
-
text?: string;
|
|
49
|
-
/** 空状态图标 */
|
|
50
|
-
icon?: ReactNode;
|
|
51
|
-
/** 空状态描述 */
|
|
52
|
-
description?: string;
|
|
53
|
-
}
|
|
54
|
-
/** 分页信息接口 */
|
|
55
|
-
export interface PaginationInfo {
|
|
56
|
-
/** 当前页数 */
|
|
57
|
-
current?: number;
|
|
58
|
-
/** 总页数 */
|
|
59
|
-
total?: number;
|
|
60
|
-
/** 总数据条数 */
|
|
61
|
-
totalCount?: number;
|
|
62
|
-
}
|
|
63
|
-
/** 布局配置接口 */
|
|
64
|
-
export interface LayoutConfig {
|
|
65
|
-
/** 显示样式 */
|
|
66
|
-
displayStyle?: 'grid' | 'waterfall';
|
|
67
|
-
/** 排版方式 */
|
|
68
|
-
layoutDirection?: 'horizontal' | 'vertical';
|
|
69
|
-
/** 列数 */
|
|
70
|
-
columns?: number;
|
|
71
|
-
/** 行数 */
|
|
72
|
-
rows?: number;
|
|
73
|
-
/** 列间距 */
|
|
74
|
-
columnGap?: number;
|
|
75
|
-
/** 行间距 */
|
|
76
|
-
rowGap?: number;
|
|
77
|
-
/** 缩放倍率 */
|
|
78
|
-
zoom?: number;
|
|
79
|
-
}
|
|
80
|
-
/** Tab配置接口 */
|
|
81
|
-
export interface TabConfig {
|
|
82
|
-
/** tab样式 */
|
|
83
|
-
tabStyle?: 'anchor' | 'switch' | 'none';
|
|
84
|
-
/** 指定用于分组的数据字段名,例如 'category'、'type' 等 */
|
|
85
|
-
tabGroup?: string;
|
|
86
|
-
/** Tab数据源 */
|
|
87
|
-
tabData?: TabItem[];
|
|
88
|
-
/** 顶部固定 */
|
|
89
|
-
stickyTop?: boolean;
|
|
90
|
-
}
|
|
91
|
-
/** 分页配置接口 */
|
|
92
|
-
export interface PaginationConfig {
|
|
93
|
-
/** 分页方式 */
|
|
94
|
-
paginationType?: 'all' | 'scroll' | 'pager' | 'more';
|
|
95
|
-
/** 默认显示个数 */
|
|
96
|
-
defaultPageSize?: number;
|
|
97
|
-
/** 每次加载个数 */
|
|
98
|
-
pageSize?: number;
|
|
99
|
-
/** 分页信息 */
|
|
100
|
-
pagination?: PaginationInfo;
|
|
101
|
-
}
|
|
102
|
-
/** 泛型List组件Props接口 */
|
|
103
|
-
export interface ListProps<TItem extends BaseListItem = BaseListItem> {
|
|
104
|
-
/** 基础属性 */
|
|
105
|
-
className?: string;
|
|
106
|
-
style?: CSSProperties;
|
|
107
|
-
width?: string | number;
|
|
108
|
-
height?: string | number;
|
|
109
|
-
/** 布局配置 */
|
|
110
|
-
displayStyle?: LayoutConfig['displayStyle'];
|
|
111
|
-
layoutDirection?: LayoutConfig['layoutDirection'];
|
|
112
|
-
columns?: LayoutConfig['columns'];
|
|
113
|
-
rows?: LayoutConfig['rows'];
|
|
114
|
-
columnGap?: LayoutConfig['columnGap'];
|
|
115
|
-
rowGap?: LayoutConfig['rowGap'];
|
|
116
|
-
zoom?: LayoutConfig['zoom'];
|
|
117
|
-
/** Tab配置 */
|
|
118
|
-
tabStyle?: TabConfig['tabStyle'];
|
|
119
|
-
tabGroup?: TabConfig['tabGroup'];
|
|
120
|
-
tabData?: TabConfig['tabData'];
|
|
121
|
-
stickyTop?: TabConfig['stickyTop'];
|
|
122
|
-
/** 分页配置 */
|
|
123
|
-
paginationType?: PaginationConfig['paginationType'];
|
|
124
|
-
defaultPageSize?: PaginationConfig['defaultPageSize'];
|
|
125
|
-
pageSize?: PaginationConfig['pageSize'];
|
|
126
|
-
pagination?: PaginationConfig['pagination'];
|
|
127
|
-
/** 数据和渲染 */
|
|
128
|
-
data?: TItem[];
|
|
129
|
-
children?: ReactNode;
|
|
130
|
-
renderItem?: (item: TItem, index: number) => ReactNode;
|
|
131
|
-
/** 回调函数 */
|
|
132
|
-
onLoadData?: (params: LoadDataParams) => void;
|
|
133
|
-
/** 状态配置 */
|
|
134
|
-
emptyConfig?: EmptyStateConfig;
|
|
135
|
-
loading?: boolean;
|
|
136
|
-
}
|
|
137
|
-
/** 向后兼容的非泛型版本 */
|
|
138
|
-
export interface LegacyListProps extends ListProps<any> {
|
|
139
|
-
/** 兼容旧的any[]类型 */
|
|
140
|
-
data?: any[];
|
|
141
|
-
renderItem?: (item: any, index: number) => ReactNode;
|
|
142
|
-
}
|
|
143
|
-
export interface TabItem {
|
|
144
|
-
/** 唯一标识,同时用作anchor模式下的锚点标识 */
|
|
145
|
-
key: string;
|
|
146
|
-
/** 显示文本 */
|
|
147
|
-
label: string;
|
|
148
|
-
/** 分组值,对应数据项中 tabGroup 指定字段的值 */
|
|
149
|
-
group?: string;
|
|
150
|
-
/** 是否禁用 */
|
|
151
|
-
disabled?: boolean;
|
|
152
|
-
}
|
|
153
|
-
export interface LoadMoreParams {
|
|
154
|
-
/** 当前页码 */
|
|
155
|
-
currentPage: number;
|
|
156
|
-
/** 每页数量 */
|
|
157
|
-
pageSize: number;
|
|
158
|
-
/** 当前tab */
|
|
159
|
-
activeTab?: string;
|
|
160
|
-
}
|
|
161
|
-
/** 数据加载触发类型 */
|
|
162
|
-
export declare type LoadDataTrigger = 'tabChange' | 'pagination' | 'pageSize' | 'loadMore' | 'scroll';
|
|
163
|
-
/** 统一的数据加载参数 */
|
|
164
|
-
export interface LoadDataParams {
|
|
165
|
-
/** 触发类型 */
|
|
166
|
-
trigger: LoadDataTrigger;
|
|
167
|
-
/** 当前页码 */
|
|
168
|
-
currentPage: number;
|
|
169
|
-
/** 每页数量 */
|
|
170
|
-
pageSize: number;
|
|
171
|
-
/** 当前激活的tab */
|
|
172
|
-
activeTab?: string;
|
|
173
|
-
/** 上一页页码(分页变化时提供) */
|
|
174
|
-
previousPage?: number;
|
|
175
|
-
/** 上一页大小(页大小变化时提供) */
|
|
176
|
-
previousPageSize?: number;
|
|
177
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 国际化文案获取工具函数
|
|
3
|
-
* 参考 AmountSummary 组件的实现方式,使用 useEngineContext 获取语言设置
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* import { useGetText } from './utils';
|
|
8
|
-
* import locales from './locales';
|
|
9
|
-
*
|
|
10
|
-
* const MyComponent = () => {
|
|
11
|
-
* const { getText, getTextFunc } = useGetText(locales);
|
|
12
|
-
*
|
|
13
|
-
* // 获取字符串文案
|
|
14
|
-
* const title = getText('component.title', 'Default Title');
|
|
15
|
-
*
|
|
16
|
-
* // 获取函数类型文案
|
|
17
|
-
* const formatFunc = getTextFunc('component.format');
|
|
18
|
-
* const formattedText = typeof formatFunc === 'function'
|
|
19
|
-
* ? formatFunc(arg1, arg2)
|
|
20
|
-
* : 'Default Text';
|
|
21
|
-
*
|
|
22
|
-
* return <div>{title}</div>;
|
|
23
|
-
* };
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare type SupportedLanguage = 'en' | 'zh-CN' | 'zh-HK';
|
|
27
|
-
export interface LocalesObject {
|
|
28
|
-
[key: string]: {
|
|
29
|
-
[key: string]: string | ((...args: any[]) => string);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export interface GetTextFunctions {
|
|
33
|
-
getText: (key: string, fallback?: string) => string;
|
|
34
|
-
getTextFunc: (key: string) => any;
|
|
35
|
-
getCurrentLanguage: () => string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* 使用 useEngineContext 创建本地化文案获取函数的 Hook
|
|
39
|
-
* @param locales - 本地化文案对象
|
|
40
|
-
* @returns getText 和 getTextFunc 函数
|
|
41
|
-
*/
|
|
42
|
-
export declare const useGetText: (locales: LocalesObject) => GetTextFunctions;
|
|
43
|
-
/**
|
|
44
|
-
* 创建本地化文案获取函数(非 Hook 版本,保持向后兼容)
|
|
45
|
-
* @param locales - 本地化文案对象
|
|
46
|
-
* @returns getText 和 getTextFunc 函数
|
|
47
|
-
* @deprecated 推荐使用 useGetText Hook 版本
|
|
48
|
-
*/
|
|
49
|
-
export declare const createGetText: (locales: LocalesObject) => GetTextFunctions;
|
|
50
|
-
/**
|
|
51
|
-
* 默认导出:直接创建一个通用的 getText 函数工厂
|
|
52
|
-
*/
|
|
53
|
-
export default createGetText;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ToBPayContextType } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 使用商家端支付的Hook
|
|
4
|
-
* @throws {Error} 如果在ToBPayProvider外部使用会抛出错误
|
|
5
|
-
* @returns {ToBPayContextType} 商家端支付上下文
|
|
6
|
-
*/
|
|
7
|
-
export declare const useToBPay: () => ToBPayContextType;
|
|
8
|
-
export declare const useOSPayment: () => any;
|
|
9
|
-
/**
|
|
10
|
-
* 使用OS支付的Hook
|
|
11
|
-
*/
|
|
12
|
-
export declare const useOSPaymentEffect: () => {
|
|
13
|
-
osPaymentEffectOn: () => void;
|
|
14
|
-
osPaymentEffectOff: () => void;
|
|
15
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
export * from './storeTypes';
|
|
2
|
-
export interface ToBPayParams {
|
|
3
|
-
source?: 'normal' | 'restore';
|
|
4
|
-
data: {
|
|
5
|
-
type?: string;
|
|
6
|
-
payMethod: {
|
|
7
|
-
id: string;
|
|
8
|
-
code: string;
|
|
9
|
-
type: string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
params: {
|
|
13
|
-
orderId: string | number;
|
|
14
|
-
symbol?: string;
|
|
15
|
-
amount: string;
|
|
16
|
-
surcharge?: string;
|
|
17
|
-
};
|
|
18
|
-
mode: 'pay' | 'refund';
|
|
19
|
-
};
|
|
20
|
-
callback: ToBPayCallback;
|
|
21
|
-
}
|
|
22
|
-
export declare type ToBPayCallback = (res: {
|
|
23
|
-
status: string;
|
|
24
|
-
data: {
|
|
25
|
-
amount: number;
|
|
26
|
-
surPercentRate?: number;
|
|
27
|
-
surMoney?: number;
|
|
28
|
-
surcharge?: number;
|
|
29
|
-
uniquePaymentNumber?: string;
|
|
30
|
-
};
|
|
31
|
-
msg?: string;
|
|
32
|
-
}) => void;
|
|
33
|
-
/**
|
|
34
|
-
* @title: 支付打开参数
|
|
35
|
-
*/
|
|
36
|
-
export interface PayOpenParams extends Omit<ToBPayParams, 'callback'> {
|
|
37
|
-
payCallback: (res: EftposPayResult | MX51PayResult) => void;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @title: eftpos支付结果
|
|
41
|
-
*/
|
|
42
|
-
export interface EftposPayResult {
|
|
43
|
-
status: 'success' | 'fail';
|
|
44
|
-
params: {
|
|
45
|
-
amount: number;
|
|
46
|
-
surPercentRate: number;
|
|
47
|
-
surMoney: number;
|
|
48
|
-
uniquePaymentNumber: string;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @title: MX51支付结果
|
|
53
|
-
*/
|
|
54
|
-
export interface MX51PayResult {
|
|
55
|
-
result: boolean;
|
|
56
|
-
msg?: string;
|
|
57
|
-
amount: number;
|
|
58
|
-
surcharge: number;
|
|
59
|
-
uniquePaymentNumber: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @title 原生MX51支付结果
|
|
63
|
-
*/
|
|
64
|
-
export interface NativeMX51PayResult {
|
|
65
|
-
code: string;
|
|
66
|
-
msg?: string;
|
|
67
|
-
data: {
|
|
68
|
-
amount: number;
|
|
69
|
-
surcharge: number;
|
|
70
|
-
};
|
|
71
|
-
uuid: string;
|
|
72
|
-
}
|
package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProductDisplayConfig } from './types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface ProductDisplayAdapterProps {
|
|
5
|
-
/** 展示配置 */
|
|
6
|
-
config: ProductDisplayConfig;
|
|
7
|
-
/** 数据源 */
|
|
8
|
-
dataSource: any[];
|
|
9
|
-
/** 加载状态 */
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
/** 当前选中的产品ID */
|
|
12
|
-
currentProductId?: number;
|
|
13
|
-
/** 选择产品回调 */
|
|
14
|
-
onSelectProduct: (item: any, type?: 'select' | 'detail') => void;
|
|
15
|
-
/** 空状态描述 */
|
|
16
|
-
emptyDescription?: string;
|
|
17
|
-
/** 自定义样式 */
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
/** 自定义类名 */
|
|
20
|
-
className?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 产品展示适配器组件
|
|
24
|
-
* 统一管理 ProductSelect 和 SkuList 两种展示模式
|
|
25
|
-
*/
|
|
26
|
-
declare const ProductDisplayAdapter: React.FC<ProductDisplayAdapterProps>;
|
|
27
|
-
export default ProductDisplayAdapter;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ProductDisplayAdapter 产品展示适配器
|
|
3
|
-
* 支持通过配置化方式在 ProductSelect 和 SkuList 两种展示模式之间切换
|
|
4
|
-
*/
|
|
5
|
-
export { default } from './ProductDisplayAdapter';
|
|
6
|
-
export type { ProductDisplayConfig, ProductDisplayPresetKey, ProductSelectConfig, ProductSelectLayout, ProductListSetting, SkuListConfig, SkuCardDisplayMode, ListConfig, ListLayoutType, DisplayMode, } from './types';
|
|
7
|
-
export { ProductDisplayPresets, LegacyProductDisplayPresets, resolveProductDisplayConfig, } from './types';
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 产品展示配置类型定义
|
|
3
|
-
*/
|
|
4
|
-
import type { ProductCardConfig } from '../../../../plus/productSelect/ProductCard/SkuCard/type';
|
|
5
|
-
/** 预设配置的字符串键 */
|
|
6
|
-
export declare type ProductDisplayPresetKey = 'product-select' | 'sku-list-a1' | 'sku-list-a2' | 'sku-list-a5' | 'default';
|
|
7
|
-
/** ProductSelect 布局配置 */
|
|
8
|
-
export interface ProductSelectLayout {
|
|
9
|
-
grid: boolean;
|
|
10
|
-
config: string;
|
|
11
|
-
}
|
|
12
|
-
export declare type NumberBoolean = 0 | 1;
|
|
13
|
-
/** ProductSelect 列表设置 */
|
|
14
|
-
export interface ProductListSetting {
|
|
15
|
-
/** 是否显示产品封面 */
|
|
16
|
-
isProductCover?: NumberBoolean;
|
|
17
|
-
/** 是否显示标题 */
|
|
18
|
-
isTitle?: NumberBoolean;
|
|
19
|
-
/** 是否显示副标题 */
|
|
20
|
-
isSubtitle?: NumberBoolean;
|
|
21
|
-
/** 是否显示价格 */
|
|
22
|
-
isPrice?: NumberBoolean;
|
|
23
|
-
/** 是否显示原价 */
|
|
24
|
-
isOriginPrice?: NumberBoolean;
|
|
25
|
-
/** 是否显示库存 */
|
|
26
|
-
isStock?: NumberBoolean;
|
|
27
|
-
}
|
|
28
|
-
/** ProductSelect 模式配置 */
|
|
29
|
-
export interface ProductSelectConfig {
|
|
30
|
-
/** 是否显示搜索框 */
|
|
31
|
-
showSearch?: boolean;
|
|
32
|
-
/** 是否显示分类Tab */
|
|
33
|
-
showTab?: boolean;
|
|
34
|
-
/** 布局配置 */
|
|
35
|
-
layout?: ProductSelectLayout;
|
|
36
|
-
/** 产品列表设置 */
|
|
37
|
-
productListSetting?: ProductListSetting;
|
|
38
|
-
}
|
|
39
|
-
/** SkuCard 显示模式 */
|
|
40
|
-
export declare type SkuCardDisplayMode = 'display_a1' | 'display_a2' | 'display_a5' | 'display_a9' | 'display_custom';
|
|
41
|
-
/**
|
|
42
|
-
* SkuCard 配置
|
|
43
|
-
* 直接使用 ProductCardConfig 类型,保持类型同步
|
|
44
|
-
*
|
|
45
|
-
* @see packages/private-materials/src/plus/productSelect/ProductCard/SkuCard/type.ts ProductCardConfig
|
|
46
|
-
*/
|
|
47
|
-
export declare type SkuCardAllConfig = ProductCardConfig;
|
|
48
|
-
/** List 布局类型 */
|
|
49
|
-
export declare type ListLayoutType = 'grid' | 'list';
|
|
50
|
-
/** Tab 样式类型 */
|
|
51
|
-
export declare type TabStyleType = 'switch' | 'anchor' | 'none';
|
|
52
|
-
/** List 组件配置 */
|
|
53
|
-
export interface ListConfig {
|
|
54
|
-
/** 布局类型 */
|
|
55
|
-
layout?: ListLayoutType;
|
|
56
|
-
/** 列数 */
|
|
57
|
-
columns?: number;
|
|
58
|
-
/** 是否显示分页 */
|
|
59
|
-
showPagination?: boolean;
|
|
60
|
-
/** 是否显示Tab */
|
|
61
|
-
showTab?: boolean;
|
|
62
|
-
/** Tab 样式类型:switch-切换模式,anchor-锚点模式,none-不显示 */
|
|
63
|
-
tabStyle?: TabStyleType;
|
|
64
|
-
/** Tab 是否吸顶 */
|
|
65
|
-
stickyTop?: boolean;
|
|
66
|
-
/** Tab配置 */
|
|
67
|
-
tabConfig?: any;
|
|
68
|
-
/** 分页配置 */
|
|
69
|
-
paginationConfig?: any;
|
|
70
|
-
[key: string]: any;
|
|
71
|
-
}
|
|
72
|
-
/** SkuList 模式配置 */
|
|
73
|
-
export interface SkuListConfig {
|
|
74
|
-
/** List 组件配置 */
|
|
75
|
-
listConfig?: ListConfig;
|
|
76
|
-
/** SkuCard 配置 */
|
|
77
|
-
skuCardAllConfig?: SkuCardAllConfig;
|
|
78
|
-
}
|
|
79
|
-
/** 展示模式类型 */
|
|
80
|
-
export declare type DisplayMode = 'product-select' | 'sku-list';
|
|
81
|
-
/**
|
|
82
|
-
* 产品展示配置
|
|
83
|
-
* 用于配置化控制产品展示的方式
|
|
84
|
-
*/
|
|
85
|
-
export interface ProductDisplayConfig {
|
|
86
|
-
/** 展示模式 */
|
|
87
|
-
displayMode: DisplayMode;
|
|
88
|
-
/** ProductSelect 模式配置 */
|
|
89
|
-
productSelectConfig?: ProductSelectConfig;
|
|
90
|
-
/** SkuList 模式配置 */
|
|
91
|
-
skuListConfig?: SkuListConfig;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* 产品展示配置预设
|
|
95
|
-
* 支持通过字符串键或直接使用配置对象
|
|
96
|
-
*/
|
|
97
|
-
export declare const ProductDisplayPresets: Record<ProductDisplayPresetKey, ProductDisplayConfig>;
|
|
98
|
-
/**
|
|
99
|
-
* 兼容性:保持原有的导出方式
|
|
100
|
-
* @deprecated 建议使用 ProductDisplayPresets['product-select'] 或字符串键访问
|
|
101
|
-
*/
|
|
102
|
-
export declare const LegacyProductDisplayPresets: {
|
|
103
|
-
/** @deprecated 使用 ProductDisplayPresets['product-select'] */
|
|
104
|
-
DEFAULT_PRODUCT_SELECT: ProductDisplayConfig;
|
|
105
|
-
/** @deprecated 使用 ProductDisplayPresets['sku-list-a1'] */
|
|
106
|
-
DEFAULT_SKU_LIST_A1: ProductDisplayConfig;
|
|
107
|
-
/** @deprecated 使用 ProductDisplayPresets['sku-list-a2'] */
|
|
108
|
-
DEFAULT_SKU_LIST_A2: ProductDisplayConfig;
|
|
109
|
-
/** @deprecated 使用 ProductDisplayPresets['sku-list-a5'] */
|
|
110
|
-
DEFAULT_SKU_LIST_A5: ProductDisplayConfig;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* 工具函数:将字符串键或配置对象解析为配置对象
|
|
114
|
-
*/
|
|
115
|
-
export declare function resolveProductDisplayConfig(config?: ProductDisplayPresetKey | ProductDisplayConfig): ProductDisplayConfig;
|