@pisell/private-materials 6.11.126 → 6.11.127
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/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Summary/utils.d.ts +58 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/locales.d.ts +606 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/utils.d.ts +3 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +4 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- 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/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/editService/utils.d.ts +28 -0
- package/es/components/booking/info2/service/openNormalService.d.ts +37 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +1581 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +113 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -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/SearchAndClientModule/index.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -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/AddCustomerModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +1 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/es/components/ecocup/cupList/const.d.ts +144 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/es/components/ecocup/cupList/index.d.ts +1 -0
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/device.d.ts +9 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/eftpos/index.d.ts +47 -0
- package/es/components/eftpos/locales.d.ts +163 -0
- package/es/components/eftpos/table.d.ts +21 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +2 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +9 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/es/components/eftposPay/component/manual/index.d.ts +10 -0
- package/es/components/eftposPay/component/signature/index.d.ts +9 -0
- package/es/components/eftposPay/const.d.ts +195 -0
- package/es/components/eftposPay/hooks.d.ts +36 -0
- package/es/components/eftposPay/huifu/const.d.ts +5 -0
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/locales.d.ts +608 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +13 -0
- package/es/components/eftposPay/payo/hooks.d.ts +10 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/store/index.d.ts +358 -0
- package/es/components/eftposPay/tip.d.ts +10 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/utils/log/index.d.ts +110 -0
- package/es/components/eftposPay/windcave/helper.d.ts +23 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/locales.d.ts +43 -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/Cache/index.d.ts +1 -0
- package/es/components/pay/toB/components/Card/index.d.ts +1 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +5 -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/store/utils.d.ts +13 -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/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -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 +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/locales.d.ts +511 -0
- package/es/components/pay/toC/model.d.ts +33 -0
- package/es/components/pay/toC/payGroup.d.ts +48 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- 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/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -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 +1 -9
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/shoppingCart/hooks/usePromotionModal.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useSkuModal.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -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 +61 -0
- package/es/components/subTotal/locales.d.ts +71 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
- package/es/components/systemSettings/registry/locales.d.ts +534 -0
- package/es/components/systemSettings/registry/services.d.ts +97 -0
- package/es/components/systemSettings/registry/types.d.ts +140 -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/ProductDisplayAdapter/utils.d.ts +94 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -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/PlatformContext.d.ts +22 -0
- package/es/components/ticketBooking/context/index.d.ts +3 -0
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/es/components/ticketBooking/hooks/useRuntime.d.ts +4 -0
- package/es/components/ticketBooking/hooks/useSync.d.ts +21 -0
- package/es/components/ticketBooking/locales.d.ts +388 -0
- package/es/components/ticketBooking/miniRedux.d.ts +22 -0
- package/es/components/ticketBooking/sync.d.ts +8 -0
- package/es/components/ticketBooking/utils/edit.d.ts +1 -0
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/es/components/walletList/index.d.ts +1 -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 +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/printer.d.ts +4 -0
- package/es/hooks/useEngineContext.d.ts +4 -0
- package/es/hooks/useLogger.d.ts +2 -0
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/es/plus/noteModal/AddTempModal.d.ts +1 -0
- package/es/plus/noteModal/locales.d.ts +53 -0
- package/es/plus/noteModal/types.d.ts +19 -0
- package/es/plus/orderList/components/HandleActions.d.ts +1 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/es/plus/orderList/components/Reset.d.ts +1 -0
- package/es/plus/orderList/components/Toolbar.d.ts +1 -0
- package/es/plus/orderList/config.d.ts +1 -0
- package/es/plus/orderList/locales.d.ts +618 -0
- package/es/plus/pisellFinancialSummary/components/Collapse/Collapse.d.ts +8 -0
- package/es/plus/pisellFinancialSummary/components/Collapse/Collapse.stories.d.ts +7 -0
- package/es/plus/pisellFinancialSummary/components/Collapse/index.d.ts +2 -0
- package/es/plus/pisellFinancialSummary/components/Collapse/types.d.ts +48 -0
- package/es/plus/pisellFinancialSummary/locales.d.ts +28 -0
- package/es/plus/pisellFinancialSummary/types.d.ts +139 -0
- package/es/plus/pisellFinancialSummary/utils/buildSummaryItems.d.ts +44 -0
- package/es/plus/pisellFinancialSummary/utils/index.d.ts +2 -0
- package/es/plus/pisellReservation/PisellReservation.d.ts +11 -0
- package/es/plus/pisellReservation/PisellReservation.js +99 -14
- package/es/plus/pisellReservation/components/bookingChangeModal/demo.d.ts +1 -0
- package/es/plus/pisellReservation/components/bookingDetailModal/bookingProductToProductCard.d.ts +10 -0
- package/es/plus/pisellReservation/data/filterBookingsAtTimeCursor.d.ts +9 -0
- package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
- package/es/plus/pisellReservation/floorRoomCard/floorRoomCardDom.d.ts +3 -0
- package/es/plus/pisellReservation/floorRoomCard/floorRoomCardHeaderFormat.d.ts +3 -0
- package/es/plus/pisellReservation/floorRoomCard/floorRoomCardModel.d.ts +59 -0
- package/es/plus/pisellReservation/floorRoomCard/floorRoomCardPaymentUi.d.ts +9 -0
- package/es/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +10 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +12 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +5 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardShellView.d.ts +9 -0
- package/es/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +51 -0
- package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
- package/es/plus/pisellReservation/locales/locales-ja.d.ts +143 -0
- package/es/plus/pisellReservation/locales/locales-pt.d.ts +143 -0
- package/es/plus/pisellReservation/locales/locales.d.ts +708 -0
- package/es/plus/pisellSalesGrid/types.d.ts +197 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -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/index.d.ts +1 -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 +1 -1
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/saasTeamMembers/locales.d.ts +546 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/selectHolder/locales.d.ts +38 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +53 -0
- package/es/plus/skuOptionsSelection/types.d.ts +445 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/plus/walletPassGallery/index.d.ts +1 -0
- package/es/plus/walletPassGallery/locales.d.ts +473 -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/types.d.ts +73 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -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/demo.d.ts +1 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -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/CashKeyboardIntact.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -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/index.d.ts +1 -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/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
- package/es/pro/priceKeyboard/utils.d.ts +31 -0
- package/es/pro/skuDetailModal/locales.d.ts +129 -0
- package/es/pro/skuDetailModal/types.d.ts +395 -0
- package/es/pro/skuDetailModal/utils.d.ts +56 -0
- package/es/shared/locales/stock.d.ts +57 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Summary/utils.d.ts +58 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/locales.d.ts +606 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/utils.d.ts +3 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +4 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- 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/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editService/utils.d.ts +28 -0
- package/lib/components/booking/info2/service/openNormalService.d.ts +37 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +1581 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +113 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -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/SearchAndClientModule/index.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -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/AddCustomerModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/lib/components/ecocup/cupList/const.d.ts +144 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/lib/components/ecocup/cupList/index.d.ts +1 -0
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/device.d.ts +9 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/index.d.ts +47 -0
- package/lib/components/eftpos/locales.d.ts +163 -0
- package/lib/components/eftpos/table.d.ts +21 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +2 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +9 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +10 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +9 -0
- package/lib/components/eftposPay/const.d.ts +195 -0
- package/lib/components/eftposPay/hooks.d.ts +36 -0
- package/lib/components/eftposPay/huifu/const.d.ts +5 -0
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/locales.d.ts +608 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +13 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/store/index.d.ts +358 -0
- package/lib/components/eftposPay/tip.d.ts +10 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +43 -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/Cache/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +5 -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/store/utils.d.ts +13 -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/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -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 +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/locales.d.ts +511 -0
- package/lib/components/pay/toC/model.d.ts +33 -0
- package/lib/components/pay/toC/payGroup.d.ts +48 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -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/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -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 +1 -9
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/usePromotionModal.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useSkuModal.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -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 +61 -0
- package/lib/components/subTotal/locales.d.ts +71 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/locales.d.ts +534 -0
- package/lib/components/systemSettings/registry/services.d.ts +97 -0
- package/lib/components/systemSettings/registry/types.d.ts +140 -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/ProductDisplayAdapter/utils.d.ts +94 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -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/PlatformContext.d.ts +22 -0
- package/lib/components/ticketBooking/context/index.d.ts +3 -0
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/lib/components/ticketBooking/hooks/useRuntime.d.ts +4 -0
- package/lib/components/ticketBooking/hooks/useSync.d.ts +21 -0
- package/lib/components/ticketBooking/locales.d.ts +388 -0
- package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
- package/lib/components/ticketBooking/sync.d.ts +8 -0
- package/lib/components/ticketBooking/utils/edit.d.ts +1 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/lib/components/walletList/index.d.ts +1 -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 +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/hooks/printer.d.ts +4 -0
- package/lib/hooks/useEngineContext.d.ts +4 -0
- package/lib/hooks/useLogger.d.ts +2 -0
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/lib/plus/noteModal/AddTempModal.d.ts +1 -0
- package/lib/plus/noteModal/locales.d.ts +53 -0
- package/lib/plus/noteModal/types.d.ts +19 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/lib/plus/orderList/components/Reset.d.ts +1 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
- package/lib/plus/orderList/config.d.ts +1 -0
- package/lib/plus/orderList/locales.d.ts +618 -0
- package/lib/plus/pisellFinancialSummary/components/Collapse/Collapse.d.ts +8 -0
- package/lib/plus/pisellFinancialSummary/components/Collapse/Collapse.stories.d.ts +7 -0
- package/lib/plus/pisellFinancialSummary/components/Collapse/index.d.ts +2 -0
- package/lib/plus/pisellFinancialSummary/components/Collapse/types.d.ts +48 -0
- package/lib/plus/pisellFinancialSummary/locales.d.ts +28 -0
- package/lib/plus/pisellFinancialSummary/types.d.ts +139 -0
- package/lib/plus/pisellFinancialSummary/utils/buildSummaryItems.d.ts +44 -0
- package/lib/plus/pisellFinancialSummary/utils/index.d.ts +2 -0
- package/lib/plus/pisellReservation/PisellReservation.d.ts +11 -0
- package/lib/plus/pisellReservation/PisellReservation.js +79 -1
- package/lib/plus/pisellReservation/components/bookingChangeModal/demo.d.ts +1 -0
- package/lib/plus/pisellReservation/components/bookingDetailModal/bookingProductToProductCard.d.ts +10 -0
- package/lib/plus/pisellReservation/data/filterBookingsAtTimeCursor.d.ts +9 -0
- package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
- package/lib/plus/pisellReservation/floorRoomCard/floorRoomCardDom.d.ts +3 -0
- package/lib/plus/pisellReservation/floorRoomCard/floorRoomCardHeaderFormat.d.ts +3 -0
- package/lib/plus/pisellReservation/floorRoomCard/floorRoomCardModel.d.ts +59 -0
- package/lib/plus/pisellReservation/floorRoomCard/floorRoomCardPaymentUi.d.ts +9 -0
- package/lib/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +10 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +12 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +5 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardShellView.d.ts +9 -0
- package/lib/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +51 -0
- package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
- package/lib/plus/pisellReservation/locales/locales-ja.d.ts +143 -0
- package/lib/plus/pisellReservation/locales/locales-pt.d.ts +143 -0
- package/lib/plus/pisellReservation/locales/locales.d.ts +708 -0
- package/lib/plus/pisellSalesGrid/types.d.ts +197 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -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/index.d.ts +1 -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 +1 -1
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/selectHolder/locales.d.ts +38 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +53 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +445 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/locales.d.ts +473 -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/types.d.ts +73 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -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/demo.d.ts +1 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -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/CashKeyboardIntact.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -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/index.d.ts +1 -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/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
- package/lib/pro/priceKeyboard/utils.d.ts +31 -0
- package/lib/pro/skuDetailModal/locales.d.ts +129 -0
- package/lib/pro/skuDetailModal/types.d.ts +395 -0
- package/lib/pro/skuDetailModal/utils.d.ts +56 -0
- package/lib/shared/locales/stock.d.ts +57 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Figma 14256:5103 Collapse 单条可折叠项
|
|
4
|
+
* 设计稿:Collapse Item = Collapse Head + Collapse Body
|
|
5
|
+
*/
|
|
6
|
+
/** 头部左侧信息:时间、日期、客户、渠道等 */
|
|
7
|
+
export interface CollapseHeadMeta {
|
|
8
|
+
/** 如 "20:00" */
|
|
9
|
+
time?: React.ReactNode;
|
|
10
|
+
/** 如 "30/08/2025" */
|
|
11
|
+
date?: React.ReactNode;
|
|
12
|
+
/** 如 "Customer" */
|
|
13
|
+
customer?: React.ReactNode;
|
|
14
|
+
/** 如 "Online Store" */
|
|
15
|
+
channel?: React.ReactNode;
|
|
16
|
+
/** 或直接传多段文案(按 gap 8px 排列) */
|
|
17
|
+
segments?: React.ReactNode[];
|
|
18
|
+
}
|
|
19
|
+
/** Body 内一行:支付方式/描述 + 金额 + 操作按钮 */
|
|
20
|
+
export interface CollapseBodyRow {
|
|
21
|
+
/** 左侧描述,如 "Visa (12****1234)",支持 bullet 列表样式 */
|
|
22
|
+
label: React.ReactNode;
|
|
23
|
+
/** 右侧金额,如 "-$30" */
|
|
24
|
+
amount?: React.ReactNode;
|
|
25
|
+
/** 操作按钮,如 { label: 'Void', onClick } */
|
|
26
|
+
action?: {
|
|
27
|
+
label: React.ReactNode;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface CollapseProps {
|
|
32
|
+
/** 头部左侧:时间/日期/客户/渠道等 */
|
|
33
|
+
headMeta: CollapseHeadMeta;
|
|
34
|
+
/** 头部右侧金额,如 "-$30" */
|
|
35
|
+
headAmount: React.ReactNode;
|
|
36
|
+
/** 是否展开 */
|
|
37
|
+
expanded?: boolean;
|
|
38
|
+
/** 默认是否展开 */
|
|
39
|
+
defaultExpanded?: boolean;
|
|
40
|
+
/** 展开变化回调 */
|
|
41
|
+
onExpandChange?: (expanded: boolean) => void;
|
|
42
|
+
/** Body 内容行(可多条) */
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
/** 或通过 bodyRows 传入结构化行(与 children 二选一) */
|
|
45
|
+
bodyRows?: CollapseBodyRow[];
|
|
46
|
+
className?: string;
|
|
47
|
+
style?: React.CSSProperties;
|
|
48
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Financial Summary 组件多语言文案(中/英/繁)
|
|
3
|
+
* 使用方式:由业务方在 init 时合并到 locales;组件内通过 locales.getText(key) 获取
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: {
|
|
6
|
+
en: {
|
|
7
|
+
'pisell2.financialSummary.balanceDue': string;
|
|
8
|
+
'pisell2.financialSummary.total': string;
|
|
9
|
+
'pisell2.financialSummary.paid': string;
|
|
10
|
+
'pisell2.financialSummary.refund': string;
|
|
11
|
+
'pisell2.financialSummary.itemsCount': string;
|
|
12
|
+
};
|
|
13
|
+
'zh-CN': {
|
|
14
|
+
'pisell2.financialSummary.balanceDue': string;
|
|
15
|
+
'pisell2.financialSummary.total': string;
|
|
16
|
+
'pisell2.financialSummary.paid': string;
|
|
17
|
+
'pisell2.financialSummary.refund': string;
|
|
18
|
+
'pisell2.financialSummary.itemsCount': string;
|
|
19
|
+
};
|
|
20
|
+
'zh-HK': {
|
|
21
|
+
'pisell2.financialSummary.balanceDue': string;
|
|
22
|
+
'pisell2.financialSummary.total': string;
|
|
23
|
+
'pisell2.financialSummary.paid': string;
|
|
24
|
+
'pisell2.financialSummary.refund': string;
|
|
25
|
+
'pisell2.financialSummary.itemsCount': string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Total 区块下的单行项,支持多层级嵌套(如 Subtotal、Tax、Fee、Surcharge、Discount 等)
|
|
5
|
+
*/
|
|
6
|
+
export interface FinancialSummaryLineItem {
|
|
7
|
+
/** 行标题 */
|
|
8
|
+
label: React.ReactNode;
|
|
9
|
+
/** 金额,缺失时展示占位符(如 "—") */
|
|
10
|
+
value?: number | null;
|
|
11
|
+
/** 子级明细 */
|
|
12
|
+
children?: FinancialSummaryLineItem[];
|
|
13
|
+
/** 稳定 key,建议传入以保证展开态稳定 */
|
|
14
|
+
key?: React.Key;
|
|
15
|
+
/** 展示在 label 旁边的条目数,如 "3 items" */
|
|
16
|
+
itemsCount?: React.ReactNode;
|
|
17
|
+
/** 提示 icon 的 tooltip 内容 */
|
|
18
|
+
infoTooltip?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/** Collapse Body 单行(Figma 14256:5103 明细行:描述 + 金额 + 操作按钮) */
|
|
21
|
+
export interface FinancialSummaryCollapseBodyRow {
|
|
22
|
+
label: React.ReactNode;
|
|
23
|
+
amount?: React.ReactNode;
|
|
24
|
+
action?: {
|
|
25
|
+
label: React.ReactNode;
|
|
26
|
+
onClick?: () => void;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 支付记录项,作为「付款历史」下的明细行(label 可为 methodName · time 等)
|
|
31
|
+
*/
|
|
32
|
+
export interface FinancialSummaryPaymentItem {
|
|
33
|
+
key?: React.Key;
|
|
34
|
+
/** 支付方式名称(非 Collapse 模式或 bodyRows 未传时使用) */
|
|
35
|
+
methodName?: string;
|
|
36
|
+
/** 支付金额 */
|
|
37
|
+
amount: number;
|
|
38
|
+
/** 支付时间,可选(Collapse 头部) */
|
|
39
|
+
time?: string;
|
|
40
|
+
/** 日期,可选(Collapse 头部,如 "30/08/2025") */
|
|
41
|
+
date?: string;
|
|
42
|
+
/** 客户/操作人(Collapse 头部,如 "Customer" / "Staff: Jenny") */
|
|
43
|
+
customer?: React.ReactNode;
|
|
44
|
+
/** 渠道/终端(Collapse 头部,如 "Online Store" / "Terminal 1100") */
|
|
45
|
+
channel?: React.ReactNode;
|
|
46
|
+
/** 额外明细 */
|
|
47
|
+
detail?: React.ReactNode;
|
|
48
|
+
/** Collapse 展开后 body 行(不传则用 methodName + amount 生成一行) */
|
|
49
|
+
bodyRows?: FinancialSummaryCollapseBodyRow[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 退款记录项,作为「退款」下的明细行
|
|
53
|
+
*/
|
|
54
|
+
export interface FinancialSummaryRefundItem {
|
|
55
|
+
key?: React.Key;
|
|
56
|
+
/** 退款说明 */
|
|
57
|
+
label?: React.ReactNode;
|
|
58
|
+
/** 退款金额 */
|
|
59
|
+
amount: number;
|
|
60
|
+
/** 退款时间,可选 */
|
|
61
|
+
time?: string;
|
|
62
|
+
date?: string;
|
|
63
|
+
customer?: React.ReactNode;
|
|
64
|
+
channel?: React.ReactNode;
|
|
65
|
+
/** 额外明细 */
|
|
66
|
+
detail?: React.ReactNode;
|
|
67
|
+
/** Collapse body 行 */
|
|
68
|
+
bodyRows?: FinancialSummaryCollapseBodyRow[];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Total 区块数据结构
|
|
72
|
+
*/
|
|
73
|
+
export interface FinancialSummaryTotalBlock {
|
|
74
|
+
/** Total 汇总值,可选(可由子项聚合) */
|
|
75
|
+
value?: number | null;
|
|
76
|
+
/** Total 下明细,支持多层级 */
|
|
77
|
+
children?: FinancialSummaryLineItem[];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* 组件入参数据:Balance Due + Total + Paid + Refund
|
|
81
|
+
*/
|
|
82
|
+
export interface FinancialSummaryData {
|
|
83
|
+
/** 最终应付金额,null 时显示占位符 */
|
|
84
|
+
balanceDue: number | null;
|
|
85
|
+
/** Total 区块,无数据或不展示时可省略 */
|
|
86
|
+
total?: FinancialSummaryTotalBlock;
|
|
87
|
+
/** 支付记录,无数据时不展示 Paid 区块 */
|
|
88
|
+
paid?: FinancialSummaryPaymentItem[];
|
|
89
|
+
/** 退款记录,无数据时不展示 Refund 区块 */
|
|
90
|
+
refund?: FinancialSummaryRefundItem[];
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 金额格式化选项(与 @pisell/utils formatAmountWithOptions 对齐)
|
|
94
|
+
*/
|
|
95
|
+
export interface FinancialSummaryAmountFormatOptions {
|
|
96
|
+
/** 货币符号,默认 '' */
|
|
97
|
+
currencySymbol?: string;
|
|
98
|
+
/** 小数位数,默认 2 */
|
|
99
|
+
amountPrecision?: number;
|
|
100
|
+
/** 是否使用千分位分隔符 */
|
|
101
|
+
useThousandsSeparator?: boolean;
|
|
102
|
+
/** 整数是否隐藏 .00 */
|
|
103
|
+
hideDecimalForWholeNumbers?: boolean;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* PisellFinancialSummary 组件 Props
|
|
107
|
+
*/
|
|
108
|
+
export interface PisellFinancialSummaryProps extends FinancialSummaryAmountFormatOptions {
|
|
109
|
+
/** 资金汇总数据 */
|
|
110
|
+
data: FinancialSummaryData;
|
|
111
|
+
/** 是否显示 Total 区块,默认 true */
|
|
112
|
+
showTotal?: boolean;
|
|
113
|
+
/** 是否显示 Paid 区块,默认 true */
|
|
114
|
+
showPaid?: boolean;
|
|
115
|
+
/** 是否显示 Refund 区块,默认 true */
|
|
116
|
+
showRefund?: boolean;
|
|
117
|
+
/** 是否在 label 旁显示 N items,默认 true */
|
|
118
|
+
showItemsCount?: boolean;
|
|
119
|
+
/** 是否显示提示 icon,默认 true */
|
|
120
|
+
showInfoIcon?: boolean;
|
|
121
|
+
/** 是否隐藏金额为 0 的行,默认 false */
|
|
122
|
+
hideZeroAmountRows?: boolean;
|
|
123
|
+
/** 覆盖「Balance due」等多语言标题 */
|
|
124
|
+
titleBalanceDue?: React.ReactNode;
|
|
125
|
+
/** 覆盖「Total」标题 */
|
|
126
|
+
titleTotal?: React.ReactNode;
|
|
127
|
+
/** 覆盖「Paid」标题 */
|
|
128
|
+
titlePaid?: React.ReactNode;
|
|
129
|
+
/** 覆盖「Refund」标题 */
|
|
130
|
+
titleRefund?: React.ReactNode;
|
|
131
|
+
/** 数据缺失时展示的占位内容,默认 "—" */
|
|
132
|
+
missingValuePlaceholder?: React.ReactNode;
|
|
133
|
+
/** 默认展开层级(0=仅首行,2=展开到二级见明细,3=展开到三级),默认 0 */
|
|
134
|
+
defaultExpandedLevel?: number;
|
|
135
|
+
/** 根节点类名 */
|
|
136
|
+
className?: string;
|
|
137
|
+
/** 根节点样式 */
|
|
138
|
+
style?: CSSProperties;
|
|
139
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { FinancialSummaryData } from '../types';
|
|
3
|
+
/** 与 PisellHierarchicalSummaryList items 结构兼容,避免从 @pisell/materials 导入类型时的 TS2709 */
|
|
4
|
+
export interface SummaryListItem {
|
|
5
|
+
key?: React.Key;
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
value?: React.ReactNode;
|
|
8
|
+
children?: SummaryListItem[];
|
|
9
|
+
itemsCount?: React.ReactNode;
|
|
10
|
+
infoTooltip?: React.ReactNode;
|
|
11
|
+
extra?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export interface BuildSummaryItemsOptions {
|
|
14
|
+
/** 金额格式化 */
|
|
15
|
+
currencySymbol?: string;
|
|
16
|
+
amountPrecision?: number;
|
|
17
|
+
useThousandsSeparator?: boolean;
|
|
18
|
+
hideDecimalForWholeNumbers?: boolean;
|
|
19
|
+
/** 是否在 label 旁展示 N items */
|
|
20
|
+
showItemsCount?: boolean;
|
|
21
|
+
/** 是否展示提示 icon(由 list item 的 infoTooltip 决定是否渲染) */
|
|
22
|
+
showInfoIcon?: boolean;
|
|
23
|
+
/** 是否隐藏金额为 0 的行 */
|
|
24
|
+
hideZeroAmountRows?: boolean;
|
|
25
|
+
/** 数据缺失时的占位 */
|
|
26
|
+
missingValuePlaceholder?: React.ReactNode;
|
|
27
|
+
/** 标题与 N items 文案 */
|
|
28
|
+
getText: (key: string) => string;
|
|
29
|
+
/** 标题覆盖(Balance Due / Total / Paid / Refund) */
|
|
30
|
+
titleBalanceDue?: React.ReactNode;
|
|
31
|
+
titleTotal?: React.ReactNode;
|
|
32
|
+
titlePaid?: React.ReactNode;
|
|
33
|
+
titleRefund?: React.ReactNode;
|
|
34
|
+
/** 是否显示 Total/Paid/Refund 区块 */
|
|
35
|
+
showTotal?: boolean;
|
|
36
|
+
showPaid?: boolean;
|
|
37
|
+
showRefund?: boolean;
|
|
38
|
+
/** 为 true 时不把 Paid/Refund 加入 items(由上层注入带 expandedContent 的项,用于 Collapse 展示) */
|
|
39
|
+
skipPaidAndRefund?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 将 FinancialSummaryData 转为 PisellHierarchicalSummaryList 所需的 items
|
|
43
|
+
*/
|
|
44
|
+
export declare function buildSummaryItems(data: FinancialSummaryData, options: BuildSummaryItemsOptions): SummaryListItem[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'dayjs/locale/zh-cn';
|
|
3
|
+
import 'dayjs/locale/en';
|
|
4
|
+
import 'dayjs/locale/zh-tw';
|
|
5
|
+
import type { PisellReservationProps } from './types';
|
|
6
|
+
import './PisellReservation.less';
|
|
7
|
+
/**
|
|
8
|
+
* 预约看板 Core:内置 Sales 预约列表 + 时间轴 + 平面图。
|
|
9
|
+
* 页面壳 {@link PisellReservationBookingPage} / {@link PisellVenueControlPage} 通过 props 组合默认行为。
|
|
10
|
+
*/
|
|
11
|
+
export declare const PisellReservationCore: React.FC<PisellReservationProps>;
|
|
@@ -65,6 +65,7 @@ var import_calendarAdapter = require("./data/calendarAdapter");
|
|
|
65
65
|
var import_reservationDataUtils = require("./data/reservationDataUtils");
|
|
66
66
|
var import_floorMapBoundRecordIds = require("./floorMap/floorMapBoundRecordIds");
|
|
67
67
|
var import_PisellReservationSubcomponents = require("./components/PisellReservationSubcomponents");
|
|
68
|
+
var import_ReservationResourceWallResourceSelect = require("./components/ReservationResourceWallResourceSelect");
|
|
68
69
|
var import_useReservationFloorPlan = require("./floorMap/useReservationFloorPlan");
|
|
69
70
|
var import_useReservationFloorMapMerged = require("./floorMap/useReservationFloorMapMerged");
|
|
70
71
|
var import_ReservationCalendarDayBookingRoomCard = require("./components/ReservationCalendarDayBookingRoomCard");
|
|
@@ -1123,6 +1124,40 @@ var PisellReservationCore = (props) => {
|
|
|
1123
1124
|
}
|
|
1124
1125
|
});
|
|
1125
1126
|
}, [isInternalListData, resourceWallFilterStorageKey, onSearch, searchParams]);
|
|
1127
|
+
(0, import_react.useEffect)(() => {
|
|
1128
|
+
if (!isInternalListData) return;
|
|
1129
|
+
if (!resourceWallFilterHydratedRef.current) return;
|
|
1130
|
+
if (floorDayBookingData.loading) return;
|
|
1131
|
+
if (venueWallCards.length === 0) return;
|
|
1132
|
+
const fv = searchParams == null ? void 0 : searchParams.filter;
|
|
1133
|
+
if (!fv || typeof fv !== "object" || fv === null) return;
|
|
1134
|
+
const vals = fv.values;
|
|
1135
|
+
if (!vals || typeof vals !== "object" || Array.isArray(vals)) return;
|
|
1136
|
+
const existingRaw = vals.resource_wall_resource_ids;
|
|
1137
|
+
if (!Array.isArray(existingRaw)) return;
|
|
1138
|
+
const existingIds = existingRaw.map((x) => String(x));
|
|
1139
|
+
const validIdSet = new Set(
|
|
1140
|
+
venueWallCards.map((c) => String(c.resourceId))
|
|
1141
|
+
);
|
|
1142
|
+
const prunedIds = existingIds.filter((id) => validIdSet.has(id));
|
|
1143
|
+
if (prunedIds.length === existingIds.length) return;
|
|
1144
|
+
onSearch == null ? void 0 : onSearch({
|
|
1145
|
+
...searchParams,
|
|
1146
|
+
filter: {
|
|
1147
|
+
...fv,
|
|
1148
|
+
values: {
|
|
1149
|
+
...vals,
|
|
1150
|
+
resource_wall_resource_ids: prunedIds
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
});
|
|
1154
|
+
}, [
|
|
1155
|
+
isInternalListData,
|
|
1156
|
+
venueWallCards,
|
|
1157
|
+
floorDayBookingData.loading,
|
|
1158
|
+
searchParams,
|
|
1159
|
+
onSearch
|
|
1160
|
+
]);
|
|
1126
1161
|
(0, import_react.useEffect)(() => {
|
|
1127
1162
|
if (!isInternalListData) return;
|
|
1128
1163
|
const fv = searchParams == null ? void 0 : searchParams.filter;
|
|
@@ -1228,6 +1263,48 @@ var PisellReservationCore = (props) => {
|
|
|
1228
1263
|
);
|
|
1229
1264
|
}, [scheduleEndSlotProp, defaultScheduleEnd, handleOpenNewReservationModal]);
|
|
1230
1265
|
const bookingToolBar = bookingChildProps.toolBar;
|
|
1266
|
+
const resourceWallFilterSelectOptions = (0, import_react.useMemo)(() => {
|
|
1267
|
+
return tables.map((row) => {
|
|
1268
|
+
const id = String(row.id);
|
|
1269
|
+
const r = row;
|
|
1270
|
+
const code = r.code != null && String(r.code).trim() !== "" ? String(r.code) : "";
|
|
1271
|
+
const name = r.name != null && String(r.name).trim() !== "" ? String(r.name) : "";
|
|
1272
|
+
return { value: id, label: code || name || id };
|
|
1273
|
+
});
|
|
1274
|
+
}, [tables]);
|
|
1275
|
+
const bookingQuickFilterWithResourceWall = (0, import_react.useMemo)(() => {
|
|
1276
|
+
const base = bookingToolBar == null ? void 0 : bookingToolBar.quickFilter;
|
|
1277
|
+
if (base === false || base == null) return base;
|
|
1278
|
+
if (!isInternalListData) return base;
|
|
1279
|
+
const rawList = base.filterList;
|
|
1280
|
+
const filterList = Array.isArray(rawList) ? [...rawList] : [];
|
|
1281
|
+
const exists = filterList.some(
|
|
1282
|
+
(i) => String(
|
|
1283
|
+
i.key ?? i.name ?? ""
|
|
1284
|
+
) === import_materials.DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY
|
|
1285
|
+
);
|
|
1286
|
+
if (exists) return base;
|
|
1287
|
+
return {
|
|
1288
|
+
...typeof base === "object" && base !== null ? base : {},
|
|
1289
|
+
filterList: [
|
|
1290
|
+
...filterList,
|
|
1291
|
+
{
|
|
1292
|
+
type: "custom",
|
|
1293
|
+
key: import_materials.DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY,
|
|
1294
|
+
name: import_materials.DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY,
|
|
1295
|
+
label: import_utils.locales.getText(import_reservationConstants.I18N_RESOURCE_WALL_RESOURCES),
|
|
1296
|
+
other: {
|
|
1297
|
+
component: import_ReservationResourceWallResourceSelect.ReservationResourceWallResourceSelect,
|
|
1298
|
+
options: resourceWallFilterSelectOptions
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
]
|
|
1302
|
+
};
|
|
1303
|
+
}, [
|
|
1304
|
+
bookingToolBar == null ? void 0 : bookingToolBar.quickFilter,
|
|
1305
|
+
isInternalListData,
|
|
1306
|
+
resourceWallFilterSelectOptions
|
|
1307
|
+
]);
|
|
1231
1308
|
const loadReservationDensity = (0, import_react.useCallback)(
|
|
1232
1309
|
async ({
|
|
1233
1310
|
referenceDate,
|
|
@@ -1271,7 +1348,7 @@ var PisellReservationCore = (props) => {
|
|
|
1271
1348
|
return {
|
|
1272
1349
|
...bookingToolBar ?? {},
|
|
1273
1350
|
...restToolbar,
|
|
1274
|
-
quickFilter: toolBarQuickFilterOverride !== void 0 ? toolBarQuickFilterOverride :
|
|
1351
|
+
quickFilter: toolBarQuickFilterOverride !== void 0 ? toolBarQuickFilterOverride : bookingQuickFilterWithResourceWall,
|
|
1275
1352
|
tabs: /* @__PURE__ */ import_react.default.createElement(
|
|
1276
1353
|
import_PisellReservationSubcomponents.PisellReservationToolbarTabs,
|
|
1277
1354
|
{
|
|
@@ -1294,6 +1371,7 @@ var PisellReservationCore = (props) => {
|
|
|
1294
1371
|
};
|
|
1295
1372
|
}, [
|
|
1296
1373
|
bookingToolBar,
|
|
1374
|
+
bookingQuickFilterWithResourceWall,
|
|
1297
1375
|
toolBarProp,
|
|
1298
1376
|
schedule,
|
|
1299
1377
|
handleScheduleChange,
|
package/lib/plus/pisellReservation/components/bookingDetailModal/bookingProductToProductCard.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 将 booking 顶层 products[] 行映射为 ProductCard 的 dataSource(只读展示)。
|
|
3
|
+
* 字段对齐 {@link api/api-bookings-demo.json} 中 order.products 结构。
|
|
4
|
+
* 数据源必须为 raw.products,不得使用 order.products。
|
|
5
|
+
*/
|
|
6
|
+
import type { productType } from '../../../../../../materials/src/components/productCard/types';
|
|
7
|
+
/**
|
|
8
|
+
* @param line booking.products 或 order.products 同源结构(与 api-bookings-demo 一致)
|
|
9
|
+
*/
|
|
10
|
+
export declare function bookingProductLineToProductCardData(line: Record<string, unknown>, index: number): productType;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 平面图时间轴游标:从当日预约列表中筛出「在 cursor 时刻仍有效」的项,避免仅拖动时间重复请求接口。
|
|
3
|
+
*/
|
|
4
|
+
import { type Dayjs } from 'dayjs';
|
|
5
|
+
/**
|
|
6
|
+
* @param bookings GET booking 列表项(与 bookingToReservationTables 入参一致)
|
|
7
|
+
* @param cursor 顶栏日程带 `at`(与 PisellTimeNavigator 对齐)
|
|
8
|
+
*/
|
|
9
|
+
export declare function filterBookingsVisibleAtTimeCursor(bookings: unknown[], cursor: Dayjs): unknown[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FloorRoomCardBooking, FloorRoomCardData } from './floorRoomCardModel';
|
|
2
|
+
export declare function formatRoomCapLine(data: FloorRoomCardData, bookingsForOcc: FloorRoomCardBooking[]): string;
|
|
3
|
+
export declare function floorRoomCardStatusTagLabel(status: FloorRoomCardData['status']): string;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 平面图绑定桌 RoomCard 数据结构(对齐 demo/card mock,供展示与 getCardType)
|
|
3
|
+
*/
|
|
4
|
+
export declare type FloorRoomCardHolder = {
|
|
5
|
+
name: string;
|
|
6
|
+
phone?: string;
|
|
7
|
+
};
|
|
8
|
+
/** 宿主单条 booking.status,用于多条列表时区分占用/预留肤(与行级聚合 status 解耦) */
|
|
9
|
+
export declare type FloorRoomCardHostBookingStatus = 'reserved' | 'occupied' | 'locked' | 'empty';
|
|
10
|
+
export declare type FloorRoomCardBooking = {
|
|
11
|
+
booking_id: string;
|
|
12
|
+
/**
|
|
13
|
+
* 宿主 `floorMapSourceBookings` 行 `id`;同一订单多时段时多条可共用 `booking_id`,
|
|
14
|
+
* 点击命中与 DOM 需用此行级 id 区分。
|
|
15
|
+
*/
|
|
16
|
+
recordId?: string;
|
|
17
|
+
start_date: string;
|
|
18
|
+
start_time: string;
|
|
19
|
+
end_date: string;
|
|
20
|
+
end_time: string;
|
|
21
|
+
number: number;
|
|
22
|
+
holder?: FloorRoomCardHolder;
|
|
23
|
+
amount: string | number;
|
|
24
|
+
/** 来自宿主 `booking.status`(小写);多条 occupied 时参与 multi_occupied,纯预留多条则排序后主卡+Next */
|
|
25
|
+
hostBookingStatus?: FloorRoomCardHostBookingStatus;
|
|
26
|
+
/** 宿主:迟到时长(分钟);有值才展示「迟到 +Xm」,前端不按开始时间推算 */
|
|
27
|
+
lateTime?: number;
|
|
28
|
+
/** 宿主:超时时长(分钟);有值才展示「+Xm」,前端不按结束时间推算 */
|
|
29
|
+
timeoutTime?: number;
|
|
30
|
+
/** 宿主:进行中进度 0–100(100 为满条),优先于起止时间推算 */
|
|
31
|
+
progressPercent?: number;
|
|
32
|
+
/**
|
|
33
|
+
* 宿主:距预约开始剩余分钟(`remainingReserveTime`),预留 not_arrived 时用于「还有 n 分钟」展示,优先于本地起止时间推算
|
|
34
|
+
*/
|
|
35
|
+
remainingReserveTime?: number;
|
|
36
|
+
/**
|
|
37
|
+
* 宿主订单支付状态(来源:接口 `booking.order.payment_status` 等,映射到模型)。
|
|
38
|
+
* - `paid`:已付(绿)
|
|
39
|
+
* - 其它(含宿主曾返回的 `partially_paid`):按需付款展示(红);映射层应写入 `unpaid`
|
|
40
|
+
* - 未设:按需付款展示
|
|
41
|
+
*/
|
|
42
|
+
order_payment_status?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 订单商品件数:`products` 有效行数优先,否则 `order.summary.product_quantity`;无则 0。
|
|
45
|
+
*/
|
|
46
|
+
product_quantity?: number;
|
|
47
|
+
/** 接口 `is_next` / `isNext`:为 true 时仅展示在 Next 行,不参与主档/多条约预览主列表 */
|
|
48
|
+
isNext?: boolean;
|
|
49
|
+
};
|
|
50
|
+
export declare type FloorRoomCardRoomStatus = 'empty' | 'reserved' | 'occupied' | 'locked';
|
|
51
|
+
/** 细分态:与 demo `CARD_CLASS` / `getCardType` 一致 */
|
|
52
|
+
export declare type FloorRoomCardSubStatus = 'not_arrived' | 'late' | 'payed' | 'payment_required' | 'timeout' | '';
|
|
53
|
+
export declare type FloorRoomCardData = {
|
|
54
|
+
main_field: string;
|
|
55
|
+
capacity: number | string;
|
|
56
|
+
status: FloorRoomCardRoomStatus;
|
|
57
|
+
sub_status: FloorRoomCardSubStatus;
|
|
58
|
+
bookings: FloorRoomCardBooking[];
|
|
59
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 平面图 RoomCard:订单支付态 → UI 分支(印章 / 金额颜色)
|
|
3
|
+
*/
|
|
4
|
+
/** 平面图 RoomCard 仅两种徽章:已付款 / 需付款 */
|
|
5
|
+
export declare type FloorRoomCardPaymentUiKind = 'paid' | 'unpaid';
|
|
6
|
+
/**
|
|
7
|
+
* @param orderPaymentStatus 来自 {@link FloorRoomCardBooking.order_payment_status}(接口多为 `order.payment_status` 映射)
|
|
8
|
+
*/
|
|
9
|
+
export declare function floorRoomCardPaymentUiFromOrderStatus(orderPaymentStatus: string | undefined): FloorRoomCardPaymentUiKind;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 将 {@link FloorRoomCardData} 映射为 {@link RoomCardHeaderView} props(供嵌入页直连纯 UI)。
|
|
3
|
+
*/
|
|
4
|
+
import type { FloorRoomCardBooking, FloorRoomCardData } from './floorRoomCardModel';
|
|
5
|
+
import type { RoomCardHeaderViewProps } from './views/RoomCardHeaderView';
|
|
6
|
+
export declare function mapFloorRoomCardDataToHeaderViewProps(data: FloorRoomCardData, options?: {
|
|
7
|
+
hideCapacity?: boolean;
|
|
8
|
+
occupancyBookings?: FloorRoomCardBooking[];
|
|
9
|
+
showStatusTag?: boolean;
|
|
10
|
+
}): RoomCardHeaderViewProps;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FloorRoomCardRoomStatus } from '../floorRoomCardModel';
|
|
3
|
+
export interface RoomCardHeaderViewProps {
|
|
4
|
+
roomTitle: string;
|
|
5
|
+
/** 为 null 或空串时不渲染 Cap 行 */
|
|
6
|
+
capacityLine: string | null;
|
|
7
|
+
status: FloorRoomCardRoomStatus;
|
|
8
|
+
statusLabel: string;
|
|
9
|
+
/** false:维护卡等仅左侧标题+Cap,无右侧状态 tag */
|
|
10
|
+
showStatusTag?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function RoomCardHeaderView(props: RoomCardHeaderViewProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface RoomCardShellViewProps {
|
|
3
|
+
className: string;
|
|
4
|
+
checkoutBookingKey?: string;
|
|
5
|
+
header: React.ReactNode;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/** 单张 RoomCard 根壳:顶栏 + 可选主体(empty 仅顶栏) */
|
|
9
|
+
export declare function RoomCardShellView(props: RoomCardShellViewProps): JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type Dayjs } from 'dayjs';
|
|
2
|
+
/** 避免 `?? []` 每次 render 新数组引用,触发依赖 list 的 effect 死循环 */
|
|
3
|
+
export declare const EMPTY_RESERVATION_LIST: unknown[];
|
|
4
|
+
/** 营业日锚定:当日 02:00 — 次日 02:00(与时间轴默认一致) */
|
|
5
|
+
export declare function bookingTimeWindowForAnchorDay(anchorDay: Dayjs): [Dayjs, Dayjs];
|
|
6
|
+
/**
|
|
7
|
+
* 日历跨日视口:从 rangeStart 所在自然日 02:00 到 rangeEnd 的次日 02:00(与单日营业窗首尾相接)。
|
|
8
|
+
*/
|
|
9
|
+
export declare function bookingTimeWindowForCalendarRange(rangeStart: Date, rangeEnd: Date): [Dayjs, Dayjs];
|
|
10
|
+
/**
|
|
11
|
+
* 表格视图初始筛选项:与 Sales Monitor 一致——支付态 + **今日营业日窗口**(`bookingTimeWindowForAnchorDay`)。
|
|
12
|
+
* 用户可在 QuickFilter 改日期;平面图仍用独立的 `floorDayBookingData` 与顶栏日程对齐。
|
|
13
|
+
*/
|
|
14
|
+
export declare function getGridTableBookingSearchParams(): Record<string, unknown>;
|
|
15
|
+
export interface UsePisellReservationBookingDataOptions {
|
|
16
|
+
/** 列表单页条数;平面图按日合并台位时宜用大页 */
|
|
17
|
+
listPageSize?: number;
|
|
18
|
+
/** 初始筛选项;不传则与 Sales Monitor 一致(含当前营业日预约窗口) */
|
|
19
|
+
getInitialSearchParams?: () => Record<string, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* 合并进每次请求的扁平参数(在 `filter.values` 展开之后),如平面图
|
|
22
|
+
* `form_record_ids: number[]` 按当前资源桌筛选预约。
|
|
23
|
+
*/
|
|
24
|
+
extraRequestParams?: Record<string, unknown>;
|
|
25
|
+
/**
|
|
26
|
+
* 是否启用列表 WebSocket 推送并用 `mutate` 覆盖当前数据(`osServer` + `subscriberId`)。
|
|
27
|
+
* 表格全量/分页必须与接口 HTTP 结果一致,应设为 `false`:推送常为平面图子集(如仅绑定桌),
|
|
28
|
+
* 会覆盖刚返回的整页列表,表现为「请求 50 条只显示几条且像平面图资源」。
|
|
29
|
+
* 平面图合并用 booking 请求可保持默认 `true`。
|
|
30
|
+
*/
|
|
31
|
+
subscribeRealtimePush?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** 内置列表数据 hook 返回结构(booking / resource 页共用) */
|
|
34
|
+
export interface UsePisellReservationBookingDataResult {
|
|
35
|
+
data: unknown[];
|
|
36
|
+
loading: boolean;
|
|
37
|
+
total: number;
|
|
38
|
+
pagination: {
|
|
39
|
+
pageNumber: number;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
};
|
|
42
|
+
onPageChange: (pageNumber: number, pageSize: number) => void;
|
|
43
|
+
searchParams: Record<string, unknown>;
|
|
44
|
+
onSearch: (params: Record<string, unknown>) => void;
|
|
45
|
+
onReset: () => void;
|
|
46
|
+
refresh: () => void;
|
|
47
|
+
refreshAsync: () => Promise<unknown>;
|
|
48
|
+
/** 函数式合并 searchParams 并重置到第一页(用于日程变更) */
|
|
49
|
+
patchSearchParams: (updater: (prev: Record<string, unknown>) => Record<string, unknown>) => void;
|
|
50
|
+
}
|
|
51
|
+
export declare function usePisellReservationBookingData(enabled: boolean, options?: UsePisellReservationBookingDataOptions): UsePisellReservationBookingDataResult;
|