@pisell/private-materials 6.11.49 → 6.11.51
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.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Cart/utils.d.ts +68 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Summary/index.d.ts +37 -0
- package/es/components/Sales/Summary/utils.d.ts +58 -0
- package/es/components/appointmentBooking/locales.d.ts +606 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/dashboard/serve.d.ts +2 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/hooks/usePromotion.js +25 -20
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/Lists.js +11 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -5
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +3 -26
- package/es/components/booking/info/service2/Group/utils.js +0 -8
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/locales.d.ts +33 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +19 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/model/index.d.ts +1 -0
- package/es/components/booking/info2/model/strategy/adapter/index.d.ts +7 -0
- package/es/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +185 -0
- package/es/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +420 -0
- package/es/components/booking/info2/model/strategy/adapter/type.d.ts +28 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +84 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +4 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +32 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +1 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +165 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +50 -0
- package/es/components/booking/info2/model/strategy/index.d.ts +107 -0
- package/es/components/booking/info2/model/strategy/strategy-example.d.ts +5 -0
- package/es/components/booking/info2/model/strategy/type.d.ts +228 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +23 -2
- package/es/components/booking/info2/service/openNormalService.d.ts +37 -0
- package/es/components/booking/locales.d.ts +1586 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/es/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/constants.d.ts +2 -0
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/es/components/checkout/locales.d.ts +856 -0
- package/es/components/checkout/styles.d.ts +67 -0
- package/es/components/checkout/types.d.ts +130 -0
- package/es/components/checkout/utils.d.ts +3 -0
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/es/components/ecocup/cupList/const.d.ts +144 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/hooks.d.ts +57 -0
- package/es/components/ecocup/locales.d.ts +653 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/eftpos/locales.d.ts +163 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/const.d.ts +195 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/locales.d.ts +608 -0
- package/es/components/eftposPay/manufacturer.d.ts +8 -0
- package/es/components/eftposPay/store/index.d.ts +362 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- 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/kioskSkuDetail/locales.d.ts +43 -0
- package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/es/components/list/components/Tab/Tab.d.ts +5 -0
- package/es/components/list/components/Tab/index.d.ts +2 -0
- package/es/components/list/components/Tab/types.d.ts +14 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/es/components/list/components/WaterfallList/index.d.ts +2 -0
- package/es/components/list/hooks/useDevice.d.ts +24 -0
- package/es/components/list/hooks/useWaterfall.d.ts +34 -0
- package/es/components/list/locales.d.ts +108 -0
- package/es/components/list/types.d.ts +181 -0
- package/es/components/list/utils/getText.d.ts +53 -0
- package/es/components/list/utils/index.d.ts +19 -0
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/es/components/pay/toB/hooks.d.ts +12 -0
- package/es/components/pay/toB/locales.d.ts +88 -0
- package/es/components/pay/toB/store/context.d.ts +3 -0
- package/es/components/pay/toB/store/hooks.d.ts +15 -0
- package/es/components/pay/toB/store/index.d.ts +3 -0
- package/es/components/pay/toB/store/provider.d.ts +4 -0
- package/es/components/pay/toB/types/index.d.ts +81 -0
- package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -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 +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/locales.d.ts +511 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/es/components/ruleSetting/locales.d.ts +78 -0
- package/es/components/schedules/locales.d.ts +143 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/locales.d.ts +93 -0
- package/es/components/shoppingCart/mock.d.ts +54 -0
- package/es/components/shoppingCart/type.d.ts +58 -0
- package/es/components/subTotal/locales.d.ts +71 -0
- package/es/components/systemSettings/registry/locales.d.ts +525 -0
- package/es/components/systemSettings/registry/services.d.ts +97 -0
- package/es/components/systemSettings/registry/types.d.ts +139 -0
- package/es/components/taxSelect/locales.d.ts +38 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +29 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/es/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/es/components/ticketBooking/locales.d.ts +340 -0
- package/es/components/ticketBooking/utils/edit.d.ts +1 -0
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -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/hooks/printer.d.ts +4 -0
- package/es/hooks/useEngineContext.d.ts +4 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/useLogger.d.ts +2 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clientCard/types.d.ts +135 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/noteModal/locales.d.ts +53 -0
- package/es/plus/noteModal/types.d.ts +19 -0
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/orderList/locales.d.ts +618 -0
- package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/es/plus/pisellSalesGrid/types.d.ts +170 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +173 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/es/plus/productSelect/ProductCard/utils.d.ts +49 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/es/plus/productSelect/ProductList/index.d.ts +22 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/saasAttendance/locales.d.ts +591 -0
- package/es/plus/saasAttendance/settings/types.d.ts +136 -0
- package/es/plus/saasTeamMembers/locales.d.ts +546 -0
- package/es/plus/selectHolder/locales.d.ts +38 -0
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +53 -0
- package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/es/plus/skuOptionsSelection/types.d.ts +445 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/locales.d.ts +92 -0
- package/es/plus/webPosLogin/types.d.ts +288 -0
- package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/es/pro/Login2.0/locales.d.ts +903 -0
- package/es/pro/Login2.0/shared/types.d.ts +234 -0
- package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/es/pro/Selector/Selector.stories.d.ts +78 -0
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Card/types.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/es/pro/Selector/components/Media/index.d.ts +6 -0
- package/es/pro/Selector/components/Media/types.d.ts +47 -0
- package/es/pro/Selector/components/index.d.ts +4 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/locales.d.ts +58 -0
- package/es/pro/Selector/types.d.ts +223 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/keyboards/locales.d.ts +38 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/es/pro/skuDetailModal/locales.d.ts +159 -0
- package/es/pro/skuDetailModal/types.d.ts +395 -0
- package/es/pro/skuDetailModal/utils.d.ts +4 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +68 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Summary/index.d.ts +37 -0
- package/lib/components/Sales/Summary/utils.d.ts +58 -0
- package/lib/components/appointmentBooking/locales.d.ts +606 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/dashboard/serve.d.ts +2 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/hooks/usePromotion.js +16 -13
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.js +11 -3
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -5
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +6 -29
- package/lib/components/booking/info/service2/Group/utils.js +0 -8
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +33 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +19 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/model/index.d.ts +1 -0
- package/lib/components/booking/info2/model/strategy/adapter/index.d.ts +7 -0
- package/lib/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +185 -0
- package/lib/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +420 -0
- package/lib/components/booking/info2/model/strategy/adapter/type.d.ts +28 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +84 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +4 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +32 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +1 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +165 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +50 -0
- package/lib/components/booking/info2/model/strategy/index.d.ts +107 -0
- package/lib/components/booking/info2/model/strategy/strategy-example.d.ts +5 -0
- package/lib/components/booking/info2/model/strategy/type.d.ts +228 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +22 -8
- package/lib/components/booking/info2/service/openNormalService.d.ts +37 -0
- package/lib/components/booking/locales.d.ts +1586 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/lib/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/constants.d.ts +2 -0
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/lib/components/checkout/locales.d.ts +856 -0
- package/lib/components/checkout/styles.d.ts +67 -0
- package/lib/components/checkout/types.d.ts +130 -0
- package/lib/components/checkout/utils.d.ts +3 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/lib/components/ecocup/cupList/const.d.ts +144 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/hooks.d.ts +57 -0
- package/lib/components/ecocup/locales.d.ts +653 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/locales.d.ts +163 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/const.d.ts +195 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/locales.d.ts +608 -0
- package/lib/components/eftposPay/manufacturer.d.ts +8 -0
- package/lib/components/eftposPay/store/index.d.ts +362 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- 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/kioskSkuDetail/locales.d.ts +43 -0
- package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/lib/components/list/components/Tab/Tab.d.ts +5 -0
- package/lib/components/list/components/Tab/index.d.ts +2 -0
- package/lib/components/list/components/Tab/types.d.ts +14 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
- package/lib/components/list/hooks/useDevice.d.ts +24 -0
- package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
- package/lib/components/list/locales.d.ts +108 -0
- package/lib/components/list/types.d.ts +181 -0
- package/lib/components/list/utils/getText.d.ts +53 -0
- package/lib/components/list/utils/index.d.ts +19 -0
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/lib/components/pay/toB/hooks.d.ts +12 -0
- package/lib/components/pay/toB/locales.d.ts +88 -0
- package/lib/components/pay/toB/store/context.d.ts +3 -0
- package/lib/components/pay/toB/store/hooks.d.ts +15 -0
- package/lib/components/pay/toB/store/index.d.ts +3 -0
- package/lib/components/pay/toB/store/provider.d.ts +4 -0
- package/lib/components/pay/toB/types/index.d.ts +81 -0
- package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -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 +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/locales.d.ts +511 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/lib/components/ruleSetting/locales.d.ts +78 -0
- package/lib/components/schedules/locales.d.ts +143 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/locales.d.ts +93 -0
- package/lib/components/shoppingCart/mock.d.ts +54 -0
- package/lib/components/shoppingCart/type.d.ts +58 -0
- package/lib/components/subTotal/locales.d.ts +71 -0
- package/lib/components/systemSettings/registry/locales.d.ts +525 -0
- package/lib/components/systemSettings/registry/services.d.ts +97 -0
- package/lib/components/systemSettings/registry/types.d.ts +139 -0
- package/lib/components/taxSelect/locales.d.ts +38 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +29 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/lib/components/ticketBooking/locales.d.ts +340 -0
- package/lib/components/ticketBooking/utils/edit.d.ts +1 -0
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -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/hooks/printer.d.ts +4 -0
- package/lib/hooks/useEngineContext.d.ts +4 -0
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/useLogger.d.ts +2 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clientCard/types.d.ts +135 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/noteModal/locales.d.ts +53 -0
- package/lib/plus/noteModal/types.d.ts +19 -0
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/orderList/locales.d.ts +618 -0
- package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +173 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/lib/plus/productSelect/ProductCard/utils.d.ts +49 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/lib/plus/productSelect/ProductList/index.d.ts +22 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/saasAttendance/locales.d.ts +591 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
- package/lib/plus/selectHolder/locales.d.ts +38 -0
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +53 -0
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +445 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/locales.d.ts +92 -0
- package/lib/plus/webPosLogin/types.d.ts +288 -0
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/lib/pro/Login2.0/locales.d.ts +903 -0
- package/lib/pro/Login2.0/shared/types.d.ts +234 -0
- package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lib/pro/Selector/Selector.stories.d.ts +78 -0
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Card/types.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/lib/pro/Selector/components/Media/index.d.ts +6 -0
- package/lib/pro/Selector/components/Media/types.d.ts +47 -0
- package/lib/pro/Selector/components/index.d.ts +4 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/locales.d.ts +58 -0
- package/lib/pro/Selector/types.d.ts +223 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/keyboards/locales.d.ts +38 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/lib/pro/skuDetailModal/locales.d.ts +159 -0
- package/lib/pro/skuDetailModal/types.d.ts +395 -0
- package/lib/pro/skuDetailModal/utils.d.ts +4 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const checkoutStyles: {
|
|
2
|
+
readonly container: {
|
|
3
|
+
readonly display: "flex";
|
|
4
|
+
readonly flexDirection: "column";
|
|
5
|
+
readonly minHeight: 0;
|
|
6
|
+
readonly overflowY: "auto";
|
|
7
|
+
readonly maxHeight: "90%";
|
|
8
|
+
};
|
|
9
|
+
readonly walletPassSearchRow: {
|
|
10
|
+
readonly display: "flex";
|
|
11
|
+
readonly gap: 8;
|
|
12
|
+
};
|
|
13
|
+
readonly moduleBase: {
|
|
14
|
+
readonly backgroundColor: "#ff4d4f";
|
|
15
|
+
readonly borderRadius: "8px";
|
|
16
|
+
readonly padding: "16px";
|
|
17
|
+
readonly marginBottom: "12px";
|
|
18
|
+
readonly color: "white";
|
|
19
|
+
readonly transition: "all 0.3s ease";
|
|
20
|
+
};
|
|
21
|
+
readonly moduleTitle: {
|
|
22
|
+
readonly fontSize: "16px";
|
|
23
|
+
readonly fontWeight: "500";
|
|
24
|
+
readonly color: "#4096ff";
|
|
25
|
+
readonly marginBottom: "8px";
|
|
26
|
+
};
|
|
27
|
+
readonly moduleDescription: {
|
|
28
|
+
readonly fontSize: "12px";
|
|
29
|
+
readonly opacity: 0.8;
|
|
30
|
+
readonly marginBottom: "8px";
|
|
31
|
+
};
|
|
32
|
+
readonly button: {
|
|
33
|
+
readonly backgroundColor: "rgba(255,255,255,0.2)";
|
|
34
|
+
readonly border: "1px solid rgba(255,255,255,0.3)";
|
|
35
|
+
readonly borderRadius: "4px";
|
|
36
|
+
readonly color: "white";
|
|
37
|
+
readonly padding: "6px 12px";
|
|
38
|
+
readonly fontSize: "12px";
|
|
39
|
+
readonly cursor: "pointer";
|
|
40
|
+
readonly transition: "background-color 0.2s ease";
|
|
41
|
+
};
|
|
42
|
+
readonly buttonHover: {
|
|
43
|
+
readonly backgroundColor: "rgba(255,255,255,0.3)";
|
|
44
|
+
};
|
|
45
|
+
readonly statusButton: {
|
|
46
|
+
readonly backgroundColor: "#ff4d4f";
|
|
47
|
+
readonly color: "white";
|
|
48
|
+
readonly border: "none";
|
|
49
|
+
readonly borderRadius: "4px";
|
|
50
|
+
readonly padding: "8px 16px";
|
|
51
|
+
readonly cursor: "pointer";
|
|
52
|
+
readonly fontSize: "14px";
|
|
53
|
+
readonly transition: "background-color 0.2s ease";
|
|
54
|
+
};
|
|
55
|
+
readonly amountDisplay: {
|
|
56
|
+
readonly fontSize: "24px";
|
|
57
|
+
readonly fontWeight: "bold";
|
|
58
|
+
readonly marginBottom: "8px";
|
|
59
|
+
readonly textAlign: "center";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const calculateModalHeight: (moduleConfig: {
|
|
63
|
+
showWalletPass?: boolean;
|
|
64
|
+
showCashPayment?: boolean;
|
|
65
|
+
showAdditionalModule?: boolean;
|
|
66
|
+
showPaymentOptions?: boolean;
|
|
67
|
+
}) => number;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CurrentOrderInfo {
|
|
3
|
+
/** 订单UUID */
|
|
4
|
+
uuid?: string;
|
|
5
|
+
/** 订单ID */
|
|
6
|
+
orderId?: string;
|
|
7
|
+
/** 订单状态 */
|
|
8
|
+
status?: string;
|
|
9
|
+
/** 当前步骤 */
|
|
10
|
+
step?: string;
|
|
11
|
+
/** 订单总金额 */
|
|
12
|
+
totalAmount?: string;
|
|
13
|
+
/** 待付金额 */
|
|
14
|
+
remainingAmount?: string;
|
|
15
|
+
/** 支付状态 */
|
|
16
|
+
paymentStatus?: string;
|
|
17
|
+
/** 是否为定金订单 */
|
|
18
|
+
isDeposit?: boolean;
|
|
19
|
+
/** 定金金额 */
|
|
20
|
+
depositAmount?: string;
|
|
21
|
+
/** 订单类型 */
|
|
22
|
+
orderType?: 'virtual' | 'appointment_booking';
|
|
23
|
+
/** 平台类型 */
|
|
24
|
+
platform?: 'pc' | 'h5';
|
|
25
|
+
/** 创建时间 */
|
|
26
|
+
createdAt?: string;
|
|
27
|
+
/** 商品数量 */
|
|
28
|
+
itemCount?: number;
|
|
29
|
+
/** 是否有本地订单数据 */
|
|
30
|
+
hasLocalOrderData?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface PaymentData {
|
|
33
|
+
orderId?: string | number;
|
|
34
|
+
totalAmount?: number;
|
|
35
|
+
currency?: string;
|
|
36
|
+
customerId?: string | number;
|
|
37
|
+
customerName?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
items?: PaymentItem[];
|
|
40
|
+
}
|
|
41
|
+
export interface PaymentItem {
|
|
42
|
+
id: string | number;
|
|
43
|
+
name: string;
|
|
44
|
+
quantity: number;
|
|
45
|
+
price: number;
|
|
46
|
+
total: number;
|
|
47
|
+
}
|
|
48
|
+
export interface ModuleConfig {
|
|
49
|
+
showWalletPass?: boolean;
|
|
50
|
+
showCashPayment?: boolean;
|
|
51
|
+
showAdditionalModule?: boolean;
|
|
52
|
+
showPaymentOptions?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface StatusConfig {
|
|
55
|
+
leftStatus?: string;
|
|
56
|
+
rightStatus?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface PaymentResult {
|
|
59
|
+
type: 'cash' | 'walletpass' | 'etfpos' | 'custom' | 'mx51';
|
|
60
|
+
amount?: number;
|
|
61
|
+
status: 'success' | 'failed' | 'cancelled' | 'pending';
|
|
62
|
+
orderId?: string | number;
|
|
63
|
+
transactionId?: string;
|
|
64
|
+
message?: string;
|
|
65
|
+
timestamp?: number;
|
|
66
|
+
roundingAmount?: number;
|
|
67
|
+
}
|
|
68
|
+
export interface CheckoutCallbacks {
|
|
69
|
+
onPaymentComplete?: (result: PaymentResult) => void;
|
|
70
|
+
onPaymentCancel?: () => void;
|
|
71
|
+
onStatusChange?: (status: string) => void;
|
|
72
|
+
}
|
|
73
|
+
export interface CheckoutProps {
|
|
74
|
+
paymentData?: PaymentData;
|
|
75
|
+
moduleConfig?: ModuleConfig;
|
|
76
|
+
statusConfig?: StatusConfig;
|
|
77
|
+
cashAmountButtons?: number[];
|
|
78
|
+
onPaymentComplete?: (result: PaymentResult) => void;
|
|
79
|
+
onPaymentCancel?: () => void;
|
|
80
|
+
onStatusChange?: (status: string) => void;
|
|
81
|
+
}
|
|
82
|
+
export interface StatusSectionProps {
|
|
83
|
+
config?: StatusConfig;
|
|
84
|
+
onStatusChange?: (status: string) => void;
|
|
85
|
+
}
|
|
86
|
+
export interface AmountSummaryProps {
|
|
87
|
+
orderInfo?: CurrentOrderInfo;
|
|
88
|
+
open_deposit?: boolean;
|
|
89
|
+
customAmount?: string;
|
|
90
|
+
onAmountChange?: (amount: string) => void;
|
|
91
|
+
}
|
|
92
|
+
export interface WalletPassModuleProps {
|
|
93
|
+
orderInfo?: CurrentOrderInfo;
|
|
94
|
+
}
|
|
95
|
+
export interface CashPaymentModuleProps {
|
|
96
|
+
orderInfo?: CurrentOrderInfo;
|
|
97
|
+
onPaymentComplete?: (result: PaymentResult) => void;
|
|
98
|
+
amountButtons?: number[];
|
|
99
|
+
}
|
|
100
|
+
export interface PaymentOptionsModuleProps {
|
|
101
|
+
orderInfo?: CurrentOrderInfo;
|
|
102
|
+
onClick?: (method: PaymentMethod) => void;
|
|
103
|
+
}
|
|
104
|
+
export interface AdditionalModuleProps {
|
|
105
|
+
orderInfo?: CurrentOrderInfo;
|
|
106
|
+
customAmount?: string;
|
|
107
|
+
handleButtonClick: (key: string) => void;
|
|
108
|
+
hasOrderNote?: boolean;
|
|
109
|
+
}
|
|
110
|
+
export interface PaymentMethod {
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
nameEn?: string;
|
|
114
|
+
surcharge: string;
|
|
115
|
+
surchargeAmount?: number;
|
|
116
|
+
icon?: string;
|
|
117
|
+
iconComponent?: React.ReactNode;
|
|
118
|
+
color?: string;
|
|
119
|
+
enabled?: boolean;
|
|
120
|
+
code: string;
|
|
121
|
+
type: string;
|
|
122
|
+
fixed?: number;
|
|
123
|
+
percentage?: number;
|
|
124
|
+
totalAmount?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface PaymentMethodSelection {
|
|
127
|
+
method: PaymentMethod;
|
|
128
|
+
amount: number;
|
|
129
|
+
totalWithSurcharge: number;
|
|
130
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ECupActionType, ICup } from '../../types';
|
|
2
|
+
export declare const useCupAction: () => {
|
|
3
|
+
run: (this: unknown, cupId: string, action: ECupActionType) => Promise<boolean>;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @description: 批量归还杯子
|
|
8
|
+
* @return {*}
|
|
9
|
+
*/
|
|
10
|
+
export declare const useBatchCupAction: () => {
|
|
11
|
+
run: (this: unknown, eco_cup_ids: string[] | number[]) => Promise<boolean>;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @description: 统计杯子列表中的客户、店铺、时间数量
|
|
16
|
+
* @param {ICup[]} cupList - 杯子列表
|
|
17
|
+
* @return {object} 返回统计信息和是否为多个的标识
|
|
18
|
+
*/
|
|
19
|
+
export declare const useCupListStatistics: (cupList: ICup[]) => {
|
|
20
|
+
hasMultipleCustomers: boolean;
|
|
21
|
+
hasMultipleShops: boolean;
|
|
22
|
+
hasMultipleTimes: boolean;
|
|
23
|
+
uniqueCustomer: import("../../types").ICustomer | undefined;
|
|
24
|
+
uniqueShop: {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
uniqueTime: string | undefined;
|
|
29
|
+
} | {
|
|
30
|
+
hasMultipleCustomers: boolean;
|
|
31
|
+
hasMultipleShops: boolean;
|
|
32
|
+
hasMultipleTimes: boolean;
|
|
33
|
+
uniqueCustomer: null;
|
|
34
|
+
uniqueShop: null;
|
|
35
|
+
uniqueTime: null;
|
|
36
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取客户详情
|
|
3
|
+
*/
|
|
4
|
+
export declare const useCustomerDetail: () => {
|
|
5
|
+
run: (this: unknown, id: string) => Promise<any>;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 批量租用杯子
|
|
10
|
+
*/
|
|
11
|
+
export declare const useBatchRentCups: () => {
|
|
12
|
+
run: (this: unknown, id: string, cupIds: string[]) => Promise<boolean>;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
declare const STATUS_TEXT_MAP: {
|
|
2
|
+
in_stock: string;
|
|
3
|
+
rent: string;
|
|
4
|
+
return: string;
|
|
5
|
+
missing: string;
|
|
6
|
+
broken: string;
|
|
7
|
+
shop_changed: string;
|
|
8
|
+
};
|
|
9
|
+
declare const STATUS_COLOR_MAP: {
|
|
10
|
+
in_stock: {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
color: string;
|
|
13
|
+
border: string;
|
|
14
|
+
};
|
|
15
|
+
rent: {
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
color: string;
|
|
18
|
+
border: string;
|
|
19
|
+
};
|
|
20
|
+
returned: {
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
color: string;
|
|
23
|
+
};
|
|
24
|
+
return: {
|
|
25
|
+
backgroundColor: string;
|
|
26
|
+
color: string;
|
|
27
|
+
border: string;
|
|
28
|
+
};
|
|
29
|
+
shop_changed: {
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
color: string;
|
|
32
|
+
border: string;
|
|
33
|
+
};
|
|
34
|
+
overtime: {
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
color: string;
|
|
37
|
+
border: string;
|
|
38
|
+
};
|
|
39
|
+
expire_soon: {
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
color: string;
|
|
42
|
+
border: string;
|
|
43
|
+
};
|
|
44
|
+
borrowing: {
|
|
45
|
+
backgroundColor: string;
|
|
46
|
+
color: string;
|
|
47
|
+
border: string;
|
|
48
|
+
};
|
|
49
|
+
missing: {
|
|
50
|
+
backgroundColor: string;
|
|
51
|
+
color: string;
|
|
52
|
+
border: string;
|
|
53
|
+
};
|
|
54
|
+
broken: {
|
|
55
|
+
backgroundColor: string;
|
|
56
|
+
color: string;
|
|
57
|
+
border: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* @description: 排序设置
|
|
62
|
+
* @return {*}
|
|
63
|
+
*/
|
|
64
|
+
declare const SORT_SETTINGS: {
|
|
65
|
+
show: boolean;
|
|
66
|
+
list: {
|
|
67
|
+
columnKey: string;
|
|
68
|
+
key: string;
|
|
69
|
+
type: string;
|
|
70
|
+
localFilter: boolean;
|
|
71
|
+
}[];
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @description: 列配置
|
|
75
|
+
* @return {*}
|
|
76
|
+
*/
|
|
77
|
+
declare const COLUMN_SETTING: {
|
|
78
|
+
show: boolean;
|
|
79
|
+
storageMode: string;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* @description: 过滤选项
|
|
83
|
+
* @return {*}
|
|
84
|
+
*/
|
|
85
|
+
declare const FILTER: (locales: any, isNormalShop: boolean, ecoShopLists?: any, isPartner?: boolean, currentPagination?: number) => {
|
|
86
|
+
show: boolean;
|
|
87
|
+
quickFilterMaxLength: number;
|
|
88
|
+
currentPagination: number;
|
|
89
|
+
list: ({
|
|
90
|
+
key: string;
|
|
91
|
+
type: string;
|
|
92
|
+
columnKey: string;
|
|
93
|
+
isCustom: boolean;
|
|
94
|
+
name: string;
|
|
95
|
+
sort: boolean;
|
|
96
|
+
localFilter: boolean;
|
|
97
|
+
other: {
|
|
98
|
+
size: string;
|
|
99
|
+
allowClear: boolean;
|
|
100
|
+
showSearch: boolean;
|
|
101
|
+
placeholder: any;
|
|
102
|
+
defaultValue: number;
|
|
103
|
+
options: {
|
|
104
|
+
label: any;
|
|
105
|
+
value: string | number;
|
|
106
|
+
}[];
|
|
107
|
+
style: {
|
|
108
|
+
width: number;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
isHidden?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
key: string;
|
|
114
|
+
type: string;
|
|
115
|
+
columnKey: string;
|
|
116
|
+
isCustom: boolean;
|
|
117
|
+
name: string;
|
|
118
|
+
sort: boolean;
|
|
119
|
+
localFilter: boolean;
|
|
120
|
+
isHidden: boolean;
|
|
121
|
+
other: {
|
|
122
|
+
size: string;
|
|
123
|
+
allowClear: boolean;
|
|
124
|
+
showSearch: boolean;
|
|
125
|
+
placeholder: any;
|
|
126
|
+
defaultValue: number;
|
|
127
|
+
options: {
|
|
128
|
+
label: any;
|
|
129
|
+
value: any;
|
|
130
|
+
}[];
|
|
131
|
+
style: {
|
|
132
|
+
width: number;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
})[];
|
|
136
|
+
};
|
|
137
|
+
declare const HEADER_RIGHT_OPTIONS: {
|
|
138
|
+
languageKey: string;
|
|
139
|
+
key: string;
|
|
140
|
+
size: string;
|
|
141
|
+
icon: string;
|
|
142
|
+
type: string;
|
|
143
|
+
}[];
|
|
144
|
+
export { STATUS_TEXT_MAP, STATUS_COLOR_MAP, SORT_SETTINGS, COLUMN_SETTING, FILTER, HEADER_RIGHT_OPTIONS };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 排序设置
|
|
3
|
+
* @return {*}
|
|
4
|
+
*/
|
|
5
|
+
declare const SORT_SETTINGS: {
|
|
6
|
+
show: boolean;
|
|
7
|
+
list: {
|
|
8
|
+
columnKey: string;
|
|
9
|
+
key: string;
|
|
10
|
+
type: string;
|
|
11
|
+
localFilter: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @description: 列配置
|
|
16
|
+
* @return {*}
|
|
17
|
+
*/
|
|
18
|
+
declare const COLUMN_SETTING: {
|
|
19
|
+
show: boolean;
|
|
20
|
+
storageMode: string;
|
|
21
|
+
};
|
|
22
|
+
declare const FILTER: (locales: any) => {
|
|
23
|
+
show: boolean;
|
|
24
|
+
quickFilterMaxLength: number;
|
|
25
|
+
list: {
|
|
26
|
+
key: string;
|
|
27
|
+
type: string;
|
|
28
|
+
columnKey: string;
|
|
29
|
+
sort: boolean;
|
|
30
|
+
localFilter: boolean;
|
|
31
|
+
isCustom: boolean;
|
|
32
|
+
name: string;
|
|
33
|
+
other: {
|
|
34
|
+
size: string;
|
|
35
|
+
allowClear: boolean;
|
|
36
|
+
placeholder: any;
|
|
37
|
+
trigger: string[];
|
|
38
|
+
style: {
|
|
39
|
+
width: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
export { SORT_SETTINGS, COLUMN_SETTING, FILTER };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const useColumns: (locales: any) => ({
|
|
2
|
+
title: any;
|
|
3
|
+
dataIndex: string;
|
|
4
|
+
key: string;
|
|
5
|
+
align: string;
|
|
6
|
+
width: number;
|
|
7
|
+
render?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
title: any;
|
|
10
|
+
dataIndex: string;
|
|
11
|
+
key: string;
|
|
12
|
+
align: string;
|
|
13
|
+
width: number;
|
|
14
|
+
render: (text: string) => string;
|
|
15
|
+
})[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface GetCustomerListsParams {
|
|
2
|
+
with_cup_count_flag?: number;
|
|
3
|
+
search?: string;
|
|
4
|
+
skip?: number;
|
|
5
|
+
num?: number;
|
|
6
|
+
goal_shop_id?: number;
|
|
7
|
+
order_by?: string;
|
|
8
|
+
sort?: 'asc' | 'desc';
|
|
9
|
+
}
|
|
10
|
+
export declare const useCustomerListsApi: () => {
|
|
11
|
+
loading: boolean;
|
|
12
|
+
data: any;
|
|
13
|
+
run: (params: GetCustomerListsParams) => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { TCallback } from './utils/scanListener';
|
|
2
|
+
/**
|
|
3
|
+
* 获取当前语言
|
|
4
|
+
*/
|
|
5
|
+
export declare const useLanguage: () => any;
|
|
6
|
+
/**
|
|
7
|
+
* 扫码监听
|
|
8
|
+
*/
|
|
9
|
+
export declare const useScanListener: () => {
|
|
10
|
+
addListener: (key: string, callback: TCallback) => void;
|
|
11
|
+
removeListener: (key: string) => void;
|
|
12
|
+
setActiveListener: (key: string) => void;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 获取app
|
|
16
|
+
*/
|
|
17
|
+
export declare const useGetApp: () => any;
|
|
18
|
+
/**
|
|
19
|
+
* 获取modal
|
|
20
|
+
*/
|
|
21
|
+
export declare const useModal: (key: string) => {
|
|
22
|
+
modalProps: any;
|
|
23
|
+
visible: any;
|
|
24
|
+
open: (props?: any) => void;
|
|
25
|
+
close: () => void;
|
|
26
|
+
};
|
|
27
|
+
export declare const useRequest: () => {
|
|
28
|
+
get: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
|
|
29
|
+
post: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
|
|
30
|
+
put: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
|
|
31
|
+
remove: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @description: 获取goal_shop_id和是否是普通店铺
|
|
35
|
+
* @return {*}
|
|
36
|
+
*/
|
|
37
|
+
export declare const useGetGoalShopInfo: () => {
|
|
38
|
+
goalShopId: number | undefined;
|
|
39
|
+
isNormalShop: boolean;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* 获取当前店铺id
|
|
43
|
+
*/
|
|
44
|
+
export declare const useGetShopId: () => any;
|
|
45
|
+
/**
|
|
46
|
+
* @description: 是否是app端
|
|
47
|
+
* @return {*}
|
|
48
|
+
*/
|
|
49
|
+
export declare const useIsApp: () => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @description: 获取分享场景
|
|
52
|
+
* @return {*}
|
|
53
|
+
*/
|
|
54
|
+
export declare const useGetShare: () => {
|
|
55
|
+
source: string | null;
|
|
56
|
+
isEcoShare: boolean;
|
|
57
|
+
};
|