@pisell/private-materials 6.3.9 → 6.3.10
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 +1 -1
- package/build/lowcode/preview.js +13 -13
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/es/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/es/businessModel/SalesModel/index.d.ts +4 -0
- package/es/businessModel/index.d.ts +0 -0
- package/es/components/Sales/Cart/serve.d.ts +2 -0
- package/es/components/Sales/Cart/types.d.ts +31 -0
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Checkout/index.d.ts +37 -0
- package/es/components/Sales/Checkout/serve.d.ts +15 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Customer/index.d.ts +25 -0
- package/es/components/Sales/Event/Detail.d.ts +30 -0
- package/es/components/Sales/Event/index.d.ts +30 -0
- package/es/components/Sales/Event/serve.d.ts +49 -0
- package/es/components/Sales/Holder/index.d.ts +33 -0
- package/es/components/Sales/Holder/serve.d.ts +8 -0
- package/es/components/Sales/Init/index.d.ts +25 -0
- package/es/components/Sales/Init/serve.d.ts +3 -0
- package/es/components/Sales/Resource/index.d.ts +26 -0
- package/es/components/Sales/Resource/serve.d.ts +12 -0
- package/es/components/Sales/Step/index.d.ts +39 -0
- package/es/components/Sales/Summary/index.d.ts +35 -0
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/Sales/hooks/index.d.ts +1 -0
- package/es/components/Sales/index.d.ts +20 -0
- package/es/components/Sales/utils/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
- package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/es/components/appointmentBooking/context.d.ts +35 -0
- package/es/components/appointmentBooking/locales.d.ts +360 -0
- package/es/components/appointmentBooking/type.d.ts +17 -0
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/drawer/index.d.ts +19 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/editBookingModal/locales.d.ts +21 -0
- package/es/components/booking/editBookingModal/mock.d.ts +807 -0
- package/es/components/booking/editBookingModal/serve.d.ts +52 -0
- package/es/components/booking/editBookingModal/type.d.ts +12 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +4 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.js +1 -16
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/locales.d.ts +831 -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/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- 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/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- 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/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/const.d.ts +184 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/locales.d.ts +330 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/store/index.d.ts +355 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/es/components/eventBooking/components/progressBar/index.js +20 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +14 -0
- package/es/components/eventBooking/locales.d.ts +246 -0
- package/es/components/eventBooking/type.d.ts +17 -0
- package/es/components/eventBooking/utils.d.ts +45 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/login/locales.d.ts +24 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +20 -7
- 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/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +12 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +31 -24
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/locales.d.ts +289 -0
- package/es/components/pay/toC/utils.d.ts +1 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
- package/es/components/productSelect/hooks/useToken.d.ts +18 -0
- package/es/components/productSelect/locales.d.ts +18 -0
- package/es/components/productSelect/mock.d.ts +134 -0
- package/es/components/productSelect/theme/token.d.ts +17 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/es/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/mock.d.ts +40 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/shoppingCart/utils.d.ts +63 -0
- package/es/components/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
- package/es/components/ticketBooking/data.d.ts +58 -0
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/es/components/ticketBooking/locales.d.ts +174 -0
- package/es/components/ticketBooking/miniRedux.d.ts +22 -0
- package/es/components/ticketBooking/serve.d.ts +287 -0
- package/es/components/wallet/Detail/index.js +2 -2
- package/es/components/wallet/Detail/locales.d.ts +96 -0
- package/es/components/wallet/Detail/serve.d.ts +39 -0
- package/es/components/wallet/RechargeableCard/serve.d.ts +23 -0
- package/es/components/wallet/Voucher/locales.d.ts +21 -0
- package/es/components/wallet/components/WalletCard.js +3 -2
- package/es/components/wallet/components/index.d.ts +2 -0
- package/es/components/wallet/locales.d.ts +132 -0
- package/es/components/walletList/locales.d.ts +18 -0
- package/es/components/walletList/model.d.ts +6 -0
- package/es/components/walletList/serve.d.ts +20 -0
- package/es/components/walletList/types/index.d.ts +194 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
- package/es/hooks/useComponents.js +1 -1
- package/es/hooks/useEngineContext.d.ts +10 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/useLoginUser.d.ts +2 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +18 -0
- package/es/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +10 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/productSelect/ProductList/index.d.ts +22 -0
- package/es/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
- package/es/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
- package/es/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
- package/es/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
- package/es/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
- package/es/plus/productSelect/hooks/useToken.d.ts +18 -0
- package/es/plus/productSelect/locales.d.ts +18 -0
- package/es/plus/productSelect/theme/token.d.ts +17 -0
- package/es/utils/date.d.ts +11 -0
- package/es/utils/index.d.ts +1 -1
- package/es/utils/locales.d.ts +1 -0
- package/es/utils/tasks/type.d.ts +4 -0
- package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/lib/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +4 -0
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/components/Sales/Cart/serve.d.ts +2 -0
- package/lib/components/Sales/Cart/types.d.ts +31 -0
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Checkout/index.d.ts +37 -0
- package/lib/components/Sales/Checkout/serve.d.ts +15 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Customer/index.d.ts +25 -0
- package/lib/components/Sales/Event/Detail.d.ts +30 -0
- package/lib/components/Sales/Event/index.d.ts +30 -0
- package/lib/components/Sales/Event/serve.d.ts +49 -0
- package/lib/components/Sales/Holder/index.d.ts +33 -0
- package/lib/components/Sales/Holder/serve.d.ts +8 -0
- package/lib/components/Sales/Init/index.d.ts +25 -0
- package/lib/components/Sales/Init/serve.d.ts +3 -0
- package/lib/components/Sales/Resource/index.d.ts +26 -0
- package/lib/components/Sales/Resource/serve.d.ts +12 -0
- package/lib/components/Sales/Step/index.d.ts +39 -0
- package/lib/components/Sales/Summary/index.d.ts +35 -0
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/Sales/hooks/index.d.ts +1 -0
- package/lib/components/Sales/index.d.ts +20 -0
- package/lib/components/Sales/utils/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
- package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/lib/components/appointmentBooking/context.d.ts +35 -0
- package/lib/components/appointmentBooking/locales.d.ts +360 -0
- package/lib/components/appointmentBooking/type.d.ts +17 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/drawer/index.d.ts +19 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
- package/lib/components/booking/editBookingModal/serve.d.ts +52 -0
- package/lib/components/booking/editBookingModal/type.d.ts +12 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +4 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.js +3 -15
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/locales.d.ts +831 -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/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/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- 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/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/const.d.ts +184 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/locales.d.ts +330 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/store/index.d.ts +355 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/lib/components/eventBooking/components/progressBar/index.js +18 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +14 -0
- package/lib/components/eventBooking/locales.d.ts +246 -0
- package/lib/components/eventBooking/type.d.ts +17 -0
- package/lib/components/eventBooking/utils.d.ts +45 -0
- package/lib/components/login/locales.d.ts +24 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +11 -7
- 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/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +9 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +6 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/locales.d.ts +289 -0
- package/lib/components/pay/toC/utils.d.ts +1 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
- package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
- package/lib/components/productSelect/locales.d.ts +18 -0
- package/lib/components/productSelect/mock.d.ts +134 -0
- package/lib/components/productSelect/theme/token.d.ts +17 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/lib/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/mock.d.ts +40 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/shoppingCart/utils.d.ts +63 -0
- package/lib/components/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
- package/lib/components/ticketBooking/data.d.ts +58 -0
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/lib/components/ticketBooking/locales.d.ts +174 -0
- package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
- package/lib/components/ticketBooking/serve.d.ts +287 -0
- package/lib/components/wallet/Detail/index.js +3 -3
- package/lib/components/wallet/Detail/locales.d.ts +96 -0
- package/lib/components/wallet/Detail/serve.d.ts +39 -0
- package/lib/components/wallet/RechargeableCard/serve.d.ts +23 -0
- package/lib/components/wallet/Voucher/locales.d.ts +21 -0
- package/lib/components/wallet/components/WalletCard.js +1 -1
- package/lib/components/wallet/components/index.d.ts +2 -0
- package/lib/components/wallet/locales.d.ts +132 -0
- package/lib/components/walletList/locales.d.ts +18 -0
- package/lib/components/walletList/model.d.ts +6 -0
- package/lib/components/walletList/serve.d.ts +20 -0
- package/lib/components/walletList/types/index.d.ts +194 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
- package/lib/hooks/useEngineContext.d.ts +10 -0
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/useLoginUser.d.ts +2 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +18 -0
- package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +10 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/productSelect/ProductList/index.d.ts +22 -0
- package/lib/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
- package/lib/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
- package/lib/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
- package/lib/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
- package/lib/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
- package/lib/plus/productSelect/hooks/useToken.d.ts +18 -0
- package/lib/plus/productSelect/locales.d.ts +18 -0
- package/lib/plus/productSelect/theme/token.d.ts +17 -0
- package/lib/utils/date.d.ts +11 -0
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/locales.d.ts +1 -0
- package/lib/utils/tasks/type.d.ts +4 -0
- package/package.json +2 -2
@@ -0,0 +1,194 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface MultiLanguageName {
|
3
|
+
original: string;
|
4
|
+
'zh-CN': string;
|
5
|
+
'zh-HK': string;
|
6
|
+
en: string;
|
7
|
+
[key: string]: string;
|
8
|
+
}
|
9
|
+
export interface WalletMetadata {
|
10
|
+
name: MultiLanguageName;
|
11
|
+
welcomeText?: string | MultiLanguageName;
|
12
|
+
customerName?: string;
|
13
|
+
coverImage?: string;
|
14
|
+
icon?: string;
|
15
|
+
barcodetype: 'barCode' | 'orCode';
|
16
|
+
showcaseWalletPass?: ('rechargeable' | 'piont' | 'voucher' | 'discount')[];
|
17
|
+
}
|
18
|
+
export interface Shop {
|
19
|
+
id: number;
|
20
|
+
name: string;
|
21
|
+
default_url: string;
|
22
|
+
}
|
23
|
+
export interface Wallet {
|
24
|
+
id: string | null;
|
25
|
+
shop_id: string | null;
|
26
|
+
shop?: Shop;
|
27
|
+
status: string | null;
|
28
|
+
name: MultiLanguageName;
|
29
|
+
valid_for: {
|
30
|
+
type: string;
|
31
|
+
unit?: string;
|
32
|
+
unit_type?: string;
|
33
|
+
custom_date?: string;
|
34
|
+
};
|
35
|
+
metadata: WalletMetadata;
|
36
|
+
created_at: string | null;
|
37
|
+
}
|
38
|
+
export interface WalletPass {
|
39
|
+
id: string | null;
|
40
|
+
shop_id: string | null;
|
41
|
+
code: string;
|
42
|
+
status: string | null;
|
43
|
+
wallet_id: string | null;
|
44
|
+
customer_id: string | null;
|
45
|
+
expired_at: string | null;
|
46
|
+
created_at: string;
|
47
|
+
shop: Shop;
|
48
|
+
wallet: Wallet;
|
49
|
+
icon?: string;
|
50
|
+
isLogin?: boolean;
|
51
|
+
showIcon?: boolean;
|
52
|
+
}
|
53
|
+
export interface WalletBalance {
|
54
|
+
gift_card_balance: number;
|
55
|
+
point_card_balance: number;
|
56
|
+
voucher_count: number;
|
57
|
+
discount_card_count: number;
|
58
|
+
}
|
59
|
+
export interface WalletBalanceItem {
|
60
|
+
key: string;
|
61
|
+
label: string;
|
62
|
+
value: number;
|
63
|
+
}
|
64
|
+
export interface WalletCardItem {
|
65
|
+
key: string;
|
66
|
+
label: string;
|
67
|
+
hidden: boolean;
|
68
|
+
value?: number;
|
69
|
+
}
|
70
|
+
export interface State {
|
71
|
+
list: WalletPass[];
|
72
|
+
balance: WalletBalance | null;
|
73
|
+
loading: boolean;
|
74
|
+
error: Error | null;
|
75
|
+
authError?: boolean;
|
76
|
+
hasAttempted: boolean;
|
77
|
+
isLoggedIn?: boolean;
|
78
|
+
}
|
79
|
+
export interface Action {
|
80
|
+
type: string;
|
81
|
+
payload: Partial<State>;
|
82
|
+
}
|
83
|
+
export interface Balance {
|
84
|
+
gift_card_balance: number;
|
85
|
+
point_card_balance: number;
|
86
|
+
voucher_count: number;
|
87
|
+
discount_card_count: number;
|
88
|
+
}
|
89
|
+
export interface IWallList {
|
90
|
+
tag?: string;
|
91
|
+
sales_status?: string;
|
92
|
+
machine_search?: string;
|
93
|
+
createdDate?: string;
|
94
|
+
limit_status?: string;
|
95
|
+
relation_id?: string;
|
96
|
+
relation_type?: string;
|
97
|
+
customer_id?: string;
|
98
|
+
sort?: string;
|
99
|
+
order_by?: string;
|
100
|
+
used_status?: string;
|
101
|
+
num?: number;
|
102
|
+
skip?: number;
|
103
|
+
}
|
104
|
+
export interface WalletListProps {
|
105
|
+
globalState?: {
|
106
|
+
platform?: 'pc' | 'h5' | 'ipad';
|
107
|
+
mode?: 'dark' | 'light';
|
108
|
+
cardStyle?: 'normal' | 'full';
|
109
|
+
codeType?: 'barCode' | 'orCode';
|
110
|
+
codeDirection?: 'bottom' | 'top';
|
111
|
+
shopName?: boolean;
|
112
|
+
showWalletName?: boolean;
|
113
|
+
showShopName?: boolean;
|
114
|
+
cardNo?: string;
|
115
|
+
showCardNo?: boolean;
|
116
|
+
showCode?: boolean;
|
117
|
+
points?: boolean;
|
118
|
+
balance?: boolean;
|
119
|
+
coupon?: boolean;
|
120
|
+
pointsValue?: number;
|
121
|
+
balanceValue?: number;
|
122
|
+
couponValue?: number;
|
123
|
+
symbol?: string;
|
124
|
+
showIcon?: boolean;
|
125
|
+
iconImg?: string;
|
126
|
+
customBackgroundImage?: string;
|
127
|
+
walletName?: string;
|
128
|
+
};
|
129
|
+
}
|
130
|
+
export interface WalletCardProps {
|
131
|
+
platform?: 'pc' | 'h5' | 'ipad';
|
132
|
+
mode?: 'dark' | 'light';
|
133
|
+
cardStyle?: 'normal' | 'full';
|
134
|
+
codeType?: 'barCode' | 'orCode';
|
135
|
+
codeDirection?: 'bottom' | 'top';
|
136
|
+
shopName?: boolean;
|
137
|
+
showIcon?: boolean;
|
138
|
+
iconImg?: string;
|
139
|
+
showWalletName?: boolean;
|
140
|
+
showShopName?: boolean;
|
141
|
+
cardNo?: string;
|
142
|
+
showCardNo?: boolean;
|
143
|
+
showCode?: boolean;
|
144
|
+
points?: boolean;
|
145
|
+
balance?: boolean;
|
146
|
+
coupon?: boolean;
|
147
|
+
pointsValue?: number;
|
148
|
+
balanceValue?: number;
|
149
|
+
couponValue?: number;
|
150
|
+
isLogin?: boolean;
|
151
|
+
items: WalletCardItem[];
|
152
|
+
}
|
153
|
+
export interface DivProps extends React.HTMLAttributes<HTMLDivElement> {
|
154
|
+
children?: React.ReactNode;
|
155
|
+
}
|
156
|
+
export interface WalletListContextType {
|
157
|
+
state: State;
|
158
|
+
dispatch: React.Dispatch<Action>;
|
159
|
+
}
|
160
|
+
export declare const DEFAULT_CARD_CONFIG: {
|
161
|
+
readonly mode: "light";
|
162
|
+
readonly cardStyle: "normal";
|
163
|
+
readonly codeDirection: "bottom";
|
164
|
+
readonly showShopName: true;
|
165
|
+
readonly showWalletName: true;
|
166
|
+
readonly showIcon: true;
|
167
|
+
readonly iconImg: "";
|
168
|
+
readonly showCardNo: true;
|
169
|
+
readonly showCode: true;
|
170
|
+
readonly points: true;
|
171
|
+
readonly balance: true;
|
172
|
+
readonly coupon: true;
|
173
|
+
};
|
174
|
+
export interface CarouselSettings {
|
175
|
+
className: string;
|
176
|
+
arrows: boolean;
|
177
|
+
infinite: boolean;
|
178
|
+
slidesToShow: number;
|
179
|
+
slidesToScroll: number;
|
180
|
+
centerMode: boolean;
|
181
|
+
centerPadding: string;
|
182
|
+
autoplay: boolean;
|
183
|
+
autoplaySpeed: number;
|
184
|
+
dots: boolean;
|
185
|
+
appendDots?: (dots: React.ReactNode) => React.ReactNode;
|
186
|
+
responsive?: Array<{
|
187
|
+
breakpoint: number;
|
188
|
+
settings: {
|
189
|
+
slidesToShow: number;
|
190
|
+
slidesToScroll: number;
|
191
|
+
centerPadding: string;
|
192
|
+
};
|
193
|
+
}>;
|
194
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { CardListProps } from './../CardList';
|
2
|
+
import { SearchBarProps } from './../SearchBar';
|
3
|
+
import { FC } from 'react';
|
4
|
+
import './index.less';
|
5
|
+
export interface WorkspaceItemProps {
|
6
|
+
title: string;
|
7
|
+
describe?: string;
|
8
|
+
data: any[];
|
9
|
+
isDetail?: boolean;
|
10
|
+
id: number;
|
11
|
+
onSort?: SearchBarProps['onSort'];
|
12
|
+
onAddBase: SearchBarProps['onAddBase'];
|
13
|
+
onRefresh?: () => void;
|
14
|
+
onDelete?: () => void;
|
15
|
+
onDeleteBase?: (id: number) => void;
|
16
|
+
onUpdateBase?: CardListProps['onUpdateBase'];
|
17
|
+
loading?: boolean;
|
18
|
+
scrollRef?: any;
|
19
|
+
baseCount?: number;
|
20
|
+
}
|
21
|
+
declare const WorkspaceItem: FC<WorkspaceItemProps>;
|
22
|
+
export default WorkspaceItem;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare type IEngineContext = {
|
2
|
+
appHelper: any;
|
3
|
+
engine: any;
|
4
|
+
blockContext: any;
|
5
|
+
components: any;
|
6
|
+
pageContext: any;
|
7
|
+
};
|
8
|
+
declare const useEngineContext: () => IEngineContext;
|
9
|
+
export declare const usePisellOS: () => any;
|
10
|
+
export default useEngineContext;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './CategorySkeleton.less';
|
3
|
+
interface CategorySkeletonProps {
|
4
|
+
className?: string;
|
5
|
+
style?: React.CSSProperties;
|
6
|
+
tabCount?: number;
|
7
|
+
animated?: boolean;
|
8
|
+
}
|
9
|
+
declare const CategorySkeleton: React.FC<CategorySkeletonProps>;
|
10
|
+
export default CategorySkeleton;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import '../components/TabsStructure/TabsStructure.less';
|
3
|
+
import CategorySkeleton from './CategorySkeleton';
|
4
|
+
declare type TabItem = {
|
5
|
+
key: string;
|
6
|
+
label: React.ReactNode;
|
7
|
+
icon?: React.ReactNode;
|
8
|
+
};
|
9
|
+
interface IProps {
|
10
|
+
items: TabItem[];
|
11
|
+
activeKey: string;
|
12
|
+
onChange: (key: string) => void;
|
13
|
+
loading?: boolean;
|
14
|
+
skeleton?: React.ReactNode;
|
15
|
+
}
|
16
|
+
declare const CategoryTabs: React.ForwardRefExoticComponent<IProps & React.RefAttributes<unknown>>;
|
17
|
+
export default CategoryTabs;
|
18
|
+
export { CategorySkeleton };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface ProductCardSkeletonProps {
|
3
|
+
className?: string;
|
4
|
+
style?: React.CSSProperties;
|
5
|
+
isProductCover?: boolean;
|
6
|
+
item?: any;
|
7
|
+
index?: number;
|
8
|
+
}
|
9
|
+
declare const ProductCardSkeleton: React.FC<ProductCardSkeletonProps>;
|
10
|
+
export default ProductCardSkeleton;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface GridConfig {
|
3
|
+
grid: boolean;
|
4
|
+
config: string;
|
5
|
+
}
|
6
|
+
export declare const parseGridConfig: (config: string) => number[];
|
7
|
+
export declare const createGridComponents: (layout?: GridConfig | null) => {
|
8
|
+
List: React.MemoExoticComponent<({ children, ...props }: any) => JSX.Element>;
|
9
|
+
Item: React.MemoExoticComponent<({ children, index, item, ...props }: any) => JSX.Element>;
|
10
|
+
};
|
11
|
+
export declare const GRID_LAYOUTS: {
|
12
|
+
readonly SINGLE_COLUMN: {
|
13
|
+
readonly grid: false;
|
14
|
+
readonly config: "12";
|
15
|
+
};
|
16
|
+
readonly TWO_COLUMNS: {
|
17
|
+
readonly grid: true;
|
18
|
+
readonly config: "12:12";
|
19
|
+
};
|
20
|
+
readonly THREE_COLUMNS: {
|
21
|
+
readonly grid: true;
|
22
|
+
readonly config: "8:8:8";
|
23
|
+
};
|
24
|
+
readonly FOUR_COLUMNS: {
|
25
|
+
readonly grid: true;
|
26
|
+
readonly config: "6:6:6:6";
|
27
|
+
};
|
28
|
+
readonly UNEQUAL_TWO: {
|
29
|
+
readonly grid: true;
|
30
|
+
readonly config: "8:16";
|
31
|
+
};
|
32
|
+
readonly UNEQUAL_THREE: {
|
33
|
+
readonly grid: true;
|
34
|
+
readonly config: "6:12:6";
|
35
|
+
};
|
36
|
+
};
|
37
|
+
export declare const createTwoColumnGrid: () => {
|
38
|
+
List: React.MemoExoticComponent<({ children, ...props }: any) => JSX.Element>;
|
39
|
+
Item: React.MemoExoticComponent<({ children, index, item, ...props }: any) => JSX.Element>;
|
40
|
+
};
|
41
|
+
export declare const createCustomGrid: (config: string) => {
|
42
|
+
List: React.MemoExoticComponent<({ children, ...props }: any) => JSX.Element>;
|
43
|
+
Item: React.MemoExoticComponent<({ children, index, item, ...props }: any) => JSX.Element>;
|
44
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
className?: string;
|
4
|
+
loading?: boolean;
|
5
|
+
data: any[];
|
6
|
+
context: {
|
7
|
+
onItemIntersectionIn: (item: any) => void;
|
8
|
+
onItemIntersectionOut: (item: any) => void;
|
9
|
+
};
|
10
|
+
customScrollParent?: Element | null;
|
11
|
+
components?: {
|
12
|
+
List?: React.ComponentType<any>;
|
13
|
+
Item?: React.ComponentType<any>;
|
14
|
+
[key: string]: React.ComponentType<any> | undefined;
|
15
|
+
};
|
16
|
+
itemContent?: (index: number, data: any, context: any) => React.ReactNode;
|
17
|
+
itemSkeleton?: React.ReactNode;
|
18
|
+
[key: string]: any;
|
19
|
+
}
|
20
|
+
declare const ProductList: React.ForwardRefExoticComponent<Omit<IProps, "ref"> & React.RefAttributes<any>>;
|
21
|
+
export default ProductList;
|
22
|
+
export { createGridComponents, createTwoColumnGrid, createCustomGrid, GRID_LAYOUTS, type GridConfig, } from './gridComponents';
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { ReactNode, CSSProperties } from 'react';
|
3
|
+
declare global {
|
4
|
+
interface Window {
|
5
|
+
IntersectionObserver: typeof IntersectionObserver;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
interface IntersectionObserverContextValue {
|
9
|
+
initialized: boolean;
|
10
|
+
register: (params: {
|
11
|
+
ref: React.RefObject<HTMLElement>;
|
12
|
+
callback: (entry: IntersectionObserverEntry) => void;
|
13
|
+
}) => void;
|
14
|
+
unregister: (params: {
|
15
|
+
ref: React.RefObject<HTMLElement>;
|
16
|
+
}) => void;
|
17
|
+
}
|
18
|
+
declare type PriorityMode = 'top' | 'bottom' | 'left' | 'right' | undefined;
|
19
|
+
interface IntersectionObserverProps {
|
20
|
+
children: ReactNode;
|
21
|
+
root?: Element | null;
|
22
|
+
rootMargin?: string;
|
23
|
+
threshold?: number | number[];
|
24
|
+
priorityMode?: PriorityMode;
|
25
|
+
}
|
26
|
+
interface IntersectionTriggerOptions {
|
27
|
+
once?: boolean;
|
28
|
+
onHide?: (cleanup: () => void) => void;
|
29
|
+
onShow?: (cleanup: () => void) => void;
|
30
|
+
}
|
31
|
+
interface IntersectionTriggerProps extends IntersectionTriggerOptions {
|
32
|
+
children?: ReactNode;
|
33
|
+
className?: string;
|
34
|
+
style?: CSSProperties;
|
35
|
+
}
|
36
|
+
declare const IntersectionObserverContext: React.Context<IntersectionObserverContextValue>;
|
37
|
+
declare const Consumer: React.Consumer<IntersectionObserverContextValue>;
|
38
|
+
export declare const IntersectionObserverProvider: React.FC<IntersectionObserverProps>;
|
39
|
+
export declare const IntersectionTrigger: React.FC<IntersectionTriggerProps>;
|
40
|
+
export type { IntersectionObserverProps, IntersectionTriggerProps, IntersectionTriggerOptions, IntersectionObserverContextValue, PriorityMode, };
|
41
|
+
export { IntersectionObserverContext, Consumer as IntersectionObserverConsumer, };
|
42
|
+
export default IntersectionObserverProvider;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { TabsStructureProps, TabListContainerProps, TabItemProps, RailProps, SelectionIndicatorProps, ScrollShadowProps, ChevronControlsProps, ChevronButtonProps } from './types';
|
3
|
+
declare global {
|
4
|
+
interface WeakRef<T extends object> {
|
5
|
+
deref(): T | undefined;
|
6
|
+
}
|
7
|
+
interface WeakRefConstructor {
|
8
|
+
new <T extends object>(target: T): WeakRef<T>;
|
9
|
+
}
|
10
|
+
const WeakRef: WeakRefConstructor | undefined;
|
11
|
+
}
|
12
|
+
declare const TabListContainer: React.ForwardRefExoticComponent<Omit<TabListContainerProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
13
|
+
declare const TabItem: React.ForwardRefExoticComponent<Omit<TabItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
14
|
+
declare const Rail: React.ForwardRefExoticComponent<Omit<RailProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
15
|
+
declare const SelectionIndicator: React.ForwardRefExoticComponent<Omit<SelectionIndicatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
16
|
+
declare const ScrollShadow: React.ForwardRefExoticComponent<Omit<ScrollShadowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
17
|
+
declare const ChevronButton: React.ForwardRefExoticComponent<Omit<ChevronButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
18
|
+
declare const ChevronControls: React.FC<ChevronControlsProps>;
|
19
|
+
declare type TabsStructureComponent = React.FC<TabsStructureProps> & {
|
20
|
+
Rail: typeof Rail;
|
21
|
+
ListContainer: typeof TabListContainer;
|
22
|
+
Item: typeof TabItem;
|
23
|
+
SelectionIndicator: typeof SelectionIndicator;
|
24
|
+
ScrollShadow: typeof ScrollShadow;
|
25
|
+
ChevronControls: typeof ChevronControls;
|
26
|
+
ChevronButton: typeof ChevronButton;
|
27
|
+
};
|
28
|
+
declare const TabsStructureWithSubComponents: TabsStructureComponent;
|
29
|
+
export default TabsStructureWithSubComponents;
|
30
|
+
export { TabListContainer, TabItem, Rail, SelectionIndicator, ScrollShadow, ChevronControls, ChevronButton, };
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface UseSelectionIndicatorReturn {
|
3
|
+
selectionIndicatorProps: {
|
4
|
+
focusRingClasses: string;
|
5
|
+
isFocusVisible: boolean;
|
6
|
+
style: React.CSSProperties;
|
7
|
+
};
|
8
|
+
listContainerProps: {
|
9
|
+
onFocus: (event: React.FocusEvent) => void;
|
10
|
+
onBlur: () => void;
|
11
|
+
onMouseDown: () => void;
|
12
|
+
};
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* Hook for managing selection indicator position with enhanced features
|
16
|
+
* @param containerRef - Ref to the tab container
|
17
|
+
* @param selectedTabId - ID of the currently selected tab (optional)
|
18
|
+
* @param transition - Custom transition string (optional)
|
19
|
+
* @returns Selection indicator props and list container props
|
20
|
+
*/
|
21
|
+
export declare function useSelectionIndicator(containerRef: React.RefObject<HTMLElement>, selectedTabId?: string, transition?: string): UseSelectionIndicatorReturn;
|
22
|
+
export {};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export { default as TabsStructure, TabListContainer, TabItem, Rail, SelectionIndicator, ScrollShadow, ChevronControls, ChevronButton } from './TabsStructure';
|
2
|
+
export type { TabsStructureProps, TabListContainerProps, TabItemProps, RailProps, SelectionIndicatorProps, ScrollShadowProps, ChevronControlsProps, ChevronButtonProps, TabContextValue, ScrollLocation, TabWrapperClasses, TabListClasses, TabItemClasses, RailClasses, SelectionClasses, ShadowClasses, ChevronClasses, } from './types';
|
3
|
+
export { tabWrapperClasses, tabListClasses, tabItemClasses, railClasses, selectionClasses, shadowClasses, chevronClasses, chevronButtonClasses, tabWrapperClassNames, tabListClassNames, tabItemClassNames, railClassNames, selectionClassNames, shadowClassNames, chevronClassNames } from './styles';
|
4
|
+
export { debounce, mergeRefs } from './utils';
|
5
|
+
export { useSelectionIndicator, } from './hooks';
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/**
|
2
|
+
* CSS Classes mapping for TabComponent
|
3
|
+
*/
|
4
|
+
import { TabWrapperClasses, TabListClasses, TabItemClasses, RailClasses, SelectionClasses, ShadowClasses, ChevronClasses } from './types';
|
5
|
+
export declare const tabWrapperClasses: TabWrapperClasses;
|
6
|
+
export declare const tabListClasses: TabListClasses;
|
7
|
+
export declare const tabItemClasses: TabItemClasses;
|
8
|
+
export declare const railClasses: RailClasses;
|
9
|
+
export declare const selectionClasses: SelectionClasses;
|
10
|
+
export declare const shadowClasses: ShadowClasses;
|
11
|
+
export declare const chevronClasses: ChevronClasses;
|
12
|
+
export declare const chevronButtonClasses: {
|
13
|
+
button: string;
|
14
|
+
disabled: string;
|
15
|
+
prev: string;
|
16
|
+
next: string;
|
17
|
+
};
|
18
|
+
export declare const tabWrapperClassNames: {
|
19
|
+
wrapper: string;
|
20
|
+
};
|
21
|
+
export declare const tabListClassNames: {
|
22
|
+
list: string;
|
23
|
+
};
|
24
|
+
export declare const tabItemClassNames: {
|
25
|
+
item: string;
|
26
|
+
selected: string;
|
27
|
+
disabled: string;
|
28
|
+
};
|
29
|
+
export declare const railClassNames: {
|
30
|
+
rail: string;
|
31
|
+
};
|
32
|
+
export declare const selectionClassNames: {
|
33
|
+
selection: string;
|
34
|
+
position: string;
|
35
|
+
focused: string;
|
36
|
+
};
|
37
|
+
export declare const shadowClassNames: {
|
38
|
+
shadow: string;
|
39
|
+
isVisible: string;
|
40
|
+
locationStart: string;
|
41
|
+
locationEnd: string;
|
42
|
+
};
|
43
|
+
export declare const chevronClassNames: {
|
44
|
+
controls: string;
|
45
|
+
button: string;
|
46
|
+
disabled: string;
|
47
|
+
};
|
@@ -0,0 +1,105 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare type ScrollLocation = 'start' | 'end';
|
3
|
+
export interface TabContextValue {
|
4
|
+
selectedTab?: string;
|
5
|
+
onTabChange?: (tabId: string) => void;
|
6
|
+
registerTab?: (tabId: string, element: HTMLElement) => void;
|
7
|
+
unregisterTab?: (tabId: string) => void;
|
8
|
+
railRef?: React.RefObject<HTMLDivElement>;
|
9
|
+
}
|
10
|
+
export interface TabsStructureProps {
|
11
|
+
children?: React.ReactNode;
|
12
|
+
className?: string;
|
13
|
+
/** 当前选中的tab */
|
14
|
+
selectedTab?: string;
|
15
|
+
/** tab变更回调 */
|
16
|
+
onTabChange?: (tabId: string) => void;
|
17
|
+
/** 是否启用自动滚动到选中tab */
|
18
|
+
autoScrollToSelected?: boolean;
|
19
|
+
/** Rail组件的ref,用于手动控制滚动等操作 */
|
20
|
+
railRef?: React.RefObject<HTMLDivElement>;
|
21
|
+
[key: string]: any;
|
22
|
+
}
|
23
|
+
export interface TabListContainerProps {
|
24
|
+
children?: React.ReactNode;
|
25
|
+
className?: string;
|
26
|
+
[key: string]: any;
|
27
|
+
}
|
28
|
+
export interface TabItemProps {
|
29
|
+
children?: React.ReactNode;
|
30
|
+
isSelected?: boolean;
|
31
|
+
isDisabled?: boolean;
|
32
|
+
className?: string;
|
33
|
+
onClick?: (key?: string) => void;
|
34
|
+
/** Tab的唯一标识符 */
|
35
|
+
tabId?: string;
|
36
|
+
/** 是否自动注册到上下文 */
|
37
|
+
autoRegister?: boolean;
|
38
|
+
[key: string]: any;
|
39
|
+
}
|
40
|
+
export interface RailProps {
|
41
|
+
children?: React.ReactNode;
|
42
|
+
className?: string;
|
43
|
+
[key: string]: any;
|
44
|
+
}
|
45
|
+
export interface SelectionIndicatorProps {
|
46
|
+
focusRingClasses?: string;
|
47
|
+
isFocusVisible?: boolean;
|
48
|
+
style?: React.CSSProperties;
|
49
|
+
className?: string;
|
50
|
+
[key: string]: any;
|
51
|
+
}
|
52
|
+
export interface ScrollShadowProps {
|
53
|
+
location: ScrollLocation;
|
54
|
+
visible: boolean;
|
55
|
+
className?: string;
|
56
|
+
[key: string]: any;
|
57
|
+
}
|
58
|
+
export interface ChevronButtonProps {
|
59
|
+
direction: 'prev' | 'next';
|
60
|
+
disabled?: boolean;
|
61
|
+
onClick?: () => void;
|
62
|
+
className?: string;
|
63
|
+
'aria-label'?: string;
|
64
|
+
[key: string]: any;
|
65
|
+
}
|
66
|
+
export interface ChevronControlsProps {
|
67
|
+
isPrevDisabled?: boolean;
|
68
|
+
isNextDisabled?: boolean;
|
69
|
+
onPrevClick?: () => void;
|
70
|
+
onNextClick?: () => void;
|
71
|
+
className?: string;
|
72
|
+
prevAction?: () => void;
|
73
|
+
nextAction?: () => void;
|
74
|
+
[key: string]: any;
|
75
|
+
}
|
76
|
+
export interface TabWrapperClasses {
|
77
|
+
wrapper: string;
|
78
|
+
}
|
79
|
+
export interface TabListClasses {
|
80
|
+
list: string;
|
81
|
+
}
|
82
|
+
export interface TabItemClasses {
|
83
|
+
item: string;
|
84
|
+
selected: string;
|
85
|
+
disabled: string;
|
86
|
+
}
|
87
|
+
export interface RailClasses {
|
88
|
+
rail: string;
|
89
|
+
}
|
90
|
+
export interface SelectionClasses {
|
91
|
+
selection: string;
|
92
|
+
position: string;
|
93
|
+
focused: string;
|
94
|
+
}
|
95
|
+
export interface ShadowClasses {
|
96
|
+
shadow: string;
|
97
|
+
isVisible: string;
|
98
|
+
locationStart: string;
|
99
|
+
locationEnd: string;
|
100
|
+
}
|
101
|
+
export interface ChevronClasses {
|
102
|
+
controls: string;
|
103
|
+
button: string;
|
104
|
+
disabled: string;
|
105
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare function debounce<T extends (...args: any[]) => any>(func: T, wait: number): (...args: Parameters<T>) => void;
|
3
|
+
export declare function mergeRefs<T>(...refs: (React.Ref<T> | undefined)[]): React.RefCallback<T>;
|
4
|
+
/**
|
5
|
+
* 安全的滚动函数,包含错误处理和边界检查
|
6
|
+
* @param element - 要滚动的元素
|
7
|
+
* @param options - 滚动选项
|
8
|
+
*/
|
9
|
+
export declare function safeScrollTo(element: HTMLElement | null, options: {
|
10
|
+
left?: number;
|
11
|
+
behavior?: ScrollBehavior;
|
12
|
+
}): boolean;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ProductSelectToken } from '../theme/token';
|
2
|
+
export declare function useToken(customToken?: Partial<ProductSelectToken>): {
|
3
|
+
colorPrimary: string;
|
4
|
+
colorText: string;
|
5
|
+
colorTextSecondary: string;
|
6
|
+
searchInputColor: string;
|
7
|
+
containerBg: string;
|
8
|
+
tabItemBg: string;
|
9
|
+
tabItemHoverBg: string;
|
10
|
+
tabItemActiveBg: string;
|
11
|
+
categoryTextColor: string;
|
12
|
+
cardBg: string;
|
13
|
+
cardHoverBg: string;
|
14
|
+
cardSelectedBg: string;
|
15
|
+
cardSelectedTextColor: string;
|
16
|
+
cardSelectedSecondaryTextColor: string;
|
17
|
+
};
|
18
|
+
export declare function genCSSVars(token: ProductSelectToken): Record<string, string>;
|