@pisell/private-materials 6.3.137 → 6.3.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +153 -426
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/utils.d.ts +227 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +24 -5
- package/es/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/utils.d.ts +47 -0
- package/es/components/booking/components/formItemChildrenWrap/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 +3 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.d.ts +7 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +248 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +1489 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +120 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +21 -0
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -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/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +9 -0
- package/es/components/eftposPay/component/signature/index.d.ts +9 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +23 -0
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/pay.d.ts +20 -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 +5 -5
- package/es/components/eftposPay/tip.d.ts +10 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/utils/payLog.d.ts +81 -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/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/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/ProductItem/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +39 -0
- package/es/components/kioskSkuDetail/locales.d.ts +48 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +631 -0
- package/es/components/pay/toC/payGroup.d.ts +59 -0
- package/es/components/pay/toC/serve.d.ts +87 -0
- package/es/components/pay/toC/utils.d.ts +65 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -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/ProductItemPreview/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/ruleSetting/locales.d.ts +78 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/scanOrder/components/Cart/index.d.ts +2 -0
- package/es/components/scanOrder/components/Cart/index.js +58 -24
- package/es/components/scanOrder/components/Cart/index.less +61 -8
- package/es/components/scanOrder/components/Check/index.js +232 -51
- package/es/components/scanOrder/components/Check/index.less +30 -0
- package/es/components/scanOrder/components/Content/index.js +358 -121
- package/es/components/scanOrder/components/Footer/index.d.ts +2 -0
- package/es/components/scanOrder/components/Footer/index.js +4 -2
- package/es/components/scanOrder/components/Footer/index.less +16 -7
- package/es/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
- package/es/components/scanOrder/components/FulfillmentMode/index.js +90 -0
- package/es/components/scanOrder/components/FulfillmentMode/index.less +40 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.js +87 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
- package/es/components/scanOrder/context.js +104 -21
- package/es/components/scanOrder/locales.d.ts +55 -0
- package/es/components/scanOrder/locales.js +55 -0
- package/es/components/scanOrder/types.d.ts +23 -0
- package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/es/components/scanOrder/utils/toShoppingCartProducts.js +15 -9
- package/es/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/es/components/scanOrder/utils/transformProductDetail.js +7 -6
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/GroupModal.js +8 -1
- package/es/components/systemSettings/registry/components/ItemModal.js +3 -0
- package/es/components/systemSettings/registry/index.js +3 -1
- package/es/components/systemSettings/registry/services.d.ts +2 -0
- package/es/components/systemSettings/registry/types.d.ts +3 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/es/components/ticketBooking/index.d.ts +7 -0
- package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +130 -18
- package/es/components/venueBooking/context.js +38 -12
- package/es/components/venueBooking/hooks.d.ts +16 -3
- package/es/components/venueBooking/hooks.js +16 -4
- package/es/components/venueBooking/types.d.ts +19 -2
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.d.ts +87 -0
- package/es/index.js +1 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/pisellSalesProductCard/index.js +16 -1
- package/es/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/es/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/es/plus/skuOptionsSelection/types.d.ts +458 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -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/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/NumericStepper/index.d.ts +19 -0
- package/es/pro/NumericStepper/index.js +37 -6
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/utils.d.ts +227 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +19 -4
- package/lib/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.d.ts +47 -0
- package/lib/components/booking/components/formItemChildrenWrap/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 +3 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +248 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +1489 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +120 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +21 -0
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -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/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +9 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +9 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +23 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/pay.d.ts +20 -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 +5 -5
- package/lib/components/eftposPay/tip.d.ts +10 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/utils/payLog.d.ts +81 -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/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/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/ProductItem/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +39 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +631 -0
- package/lib/components/pay/toC/payGroup.d.ts +59 -0
- package/lib/components/pay/toC/serve.d.ts +87 -0
- package/lib/components/pay/toC/utils.d.ts +65 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -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/ProductItemPreview/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/ruleSetting/locales.d.ts +78 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/scanOrder/components/Cart/index.d.ts +2 -0
- package/lib/components/scanOrder/components/Cart/index.js +43 -9
- package/lib/components/scanOrder/components/Cart/index.less +61 -8
- package/lib/components/scanOrder/components/Check/index.js +97 -8
- package/lib/components/scanOrder/components/Check/index.less +30 -0
- package/lib/components/scanOrder/components/Content/index.js +215 -69
- package/lib/components/scanOrder/components/Footer/index.d.ts +2 -0
- package/lib/components/scanOrder/components/Footer/index.js +2 -2
- package/lib/components/scanOrder/components/Footer/index.less +16 -7
- package/lib/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
- package/lib/components/scanOrder/components/FulfillmentMode/index.js +96 -0
- package/lib/components/scanOrder/components/FulfillmentMode/index.less +40 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.js +116 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
- package/lib/components/scanOrder/context.js +80 -12
- package/lib/components/scanOrder/locales.d.ts +55 -0
- package/lib/components/scanOrder/locales.js +55 -0
- package/lib/components/scanOrder/types.d.ts +23 -0
- package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/lib/components/scanOrder/utils/toShoppingCartProducts.js +8 -5
- package/lib/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/lib/components/scanOrder/utils/transformProductDetail.js +1 -9
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +71 -72
- package/lib/components/systemSettings/registry/components/ItemModal.js +2 -1
- package/lib/components/systemSettings/registry/index.js +3 -1
- package/lib/components/systemSettings/registry/services.d.ts +2 -0
- package/lib/components/systemSettings/registry/types.d.ts +3 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/lib/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +119 -19
- package/lib/components/venueBooking/context.js +16 -7
- package/lib/components/venueBooking/hooks.d.ts +16 -3
- package/lib/components/venueBooking/hooks.js +8 -2
- package/lib/components/venueBooking/types.d.ts +19 -2
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.d.ts +87 -0
- package/lib/index.js +2 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/pisellSalesProductCard/index.js +10 -0
- package/lib/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/lib/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -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/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/NumericStepper/index.d.ts +19 -0
- package/lib/pro/NumericStepper/index.js +21 -4
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lowcode/admin-auth-channel-auth/meta.ts +116 -0
- package/lowcode/admin-auth-online-shop-auth/meta.ts +81 -5
- package/package.json +1 -1
|
@@ -4,6 +4,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
13
|
/**
|
|
8
14
|
* 时段网格
|
|
9
15
|
* 核心交互组件:横轴为时间(每 30 分钟一格),纵轴为资源/场地
|
|
@@ -16,11 +22,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
16
22
|
* 首个可用时段。
|
|
17
23
|
* - 同步方向单向:body.scrollLeft -> headerInner.style.transform。
|
|
18
24
|
*/
|
|
19
|
-
import React, { useEffect, useMemo, useRef, useCallback } from 'react';
|
|
25
|
+
import React, { useEffect, useMemo, useRef, useCallback, useState } from 'react';
|
|
20
26
|
import { Iconfont, PisellText } from '@pisell/materials';
|
|
21
27
|
import { locales, isIos } from '@pisell/utils';
|
|
22
28
|
import { useVenueBookingContext } from "../../../context";
|
|
23
|
-
import { isSlotSelected as checkSlotSelected, useVenueBookingSymbol } from "../../../hooks";
|
|
29
|
+
import { isSlotSelected as checkSlotSelected, isSlotDisabledBySelection, useVenueBookingSymbol } from "../../../hooks";
|
|
24
30
|
import { formatHourHeader, isHourBoundary, buildHourGroups, buildSlotPriceInfo, getPriceColor, getSlotTag, getColumnTag, getTimeMetaFromGrid, getResourceCourtMeta, getTableGridStyle, getFirstAvailableSlotIndex, FIRST_COLUMN_WIDTH } from "../../../utils";
|
|
25
31
|
export default function TimeGrid() {
|
|
26
32
|
var symbol = useVenueBookingSymbol();
|
|
@@ -206,13 +212,24 @@ export default function TimeGrid() {
|
|
|
206
212
|
return scroller.removeEventListener('wheel', onWheel);
|
|
207
213
|
};
|
|
208
214
|
}, []);
|
|
209
|
-
|
|
215
|
+
|
|
216
|
+
/** 记录哪些多商品资源是展开态(resourceId -> expanded) */
|
|
217
|
+
var _useState = useState({}),
|
|
218
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
219
|
+
expandedResources = _useState2[0],
|
|
220
|
+
setExpandedResources = _useState2[1];
|
|
221
|
+
var toggleExpanded = useCallback(function (resourceId) {
|
|
222
|
+
setExpandedResources(function (prev) {
|
|
223
|
+
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, String(resourceId), !prev[String(resourceId)]));
|
|
224
|
+
});
|
|
225
|
+
}, []);
|
|
226
|
+
function handleSlotClick(resourceId, productId, slot) {
|
|
210
227
|
if (dragStateRef.current.moved) {
|
|
211
228
|
dragStateRef.current.moved = false;
|
|
212
229
|
return;
|
|
213
230
|
}
|
|
214
231
|
if (slot.status !== 'available') return;
|
|
215
|
-
toggleSlot(resourceId, slot);
|
|
232
|
+
toggleSlot(resourceId, productId, slot);
|
|
216
233
|
}
|
|
217
234
|
|
|
218
235
|
// 网格加载中(周数据拉取 / 切换日期过渡 / 数据未就绪):渲染骨架屏
|
|
@@ -292,43 +309,79 @@ export default function TimeGrid() {
|
|
|
292
309
|
key: grid.date
|
|
293
310
|
}, visibleResources.map(function (resource) {
|
|
294
311
|
var courtMeta = getResourceCourtMeta(resource);
|
|
295
|
-
|
|
296
|
-
|
|
312
|
+
var isMultiProduct = !!resource.hasMultipleProducts && Array.isArray(resource.products);
|
|
313
|
+
var expanded = !!expandedResources[String(resource.resourceId)];
|
|
314
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
315
|
+
key: "".concat(resource.resourceId, "-").concat(grid.date)
|
|
316
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
297
317
|
className: "grid border-b border-black/6",
|
|
298
318
|
style: tableGridStyle
|
|
299
319
|
}, /*#__PURE__*/React.createElement("div", {
|
|
300
320
|
className: "sticky left-0 z-10 border-r border-black/6 px-2 py-2 shadow-[10px_0_16px_-14px_rgba(0,0,0,0.2)] md:px-4 ".concat(courtMeta.soldOut ? 'bg-zinc-50' : 'bg-white')
|
|
301
321
|
}, /*#__PURE__*/React.createElement("div", {
|
|
302
322
|
className: "flex items-start justify-between gap-2"
|
|
303
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
323
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
324
|
+
className: "flex items-center gap-1.5"
|
|
325
|
+
}, isMultiProduct ? /*#__PURE__*/React.createElement("button", {
|
|
326
|
+
type: "button",
|
|
327
|
+
"data-cart-button": "true",
|
|
328
|
+
onClick: function onClick(e) {
|
|
329
|
+
e.stopPropagation();
|
|
330
|
+
toggleExpanded(resource.resourceId);
|
|
331
|
+
},
|
|
332
|
+
className: "flex h-5 w-5 items-center justify-center rounded text-zinc-500 hover:bg-black/5",
|
|
333
|
+
"aria-label": expanded ? 'collapse' : 'expand'
|
|
334
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
335
|
+
type: expanded ? 'pisell2-chevron-down' : 'pisell2-chevron-right',
|
|
336
|
+
style: {
|
|
337
|
+
fontSize: 12
|
|
338
|
+
}
|
|
339
|
+
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
304
340
|
className: "text-[13px] font-extrabold leading-5 md:text-[15px] ".concat(courtMeta.soldOut ? 'text-zinc-400' : 'text-zinc-900')
|
|
305
341
|
}, resource.resourceName)))), resource.slots.map(function (slot, slotIndex) {
|
|
306
342
|
var isAvailable = slot.status === 'available';
|
|
307
|
-
// unavailable:该时段不提供服务(如非营业时段);occupied/past 同样不可选
|
|
308
343
|
var isUnavailable = slot.status === 'occupied' || slot.status === 'past' || slot.status === 'unavailable';
|
|
309
|
-
var
|
|
344
|
+
var timeLabel = timeLabels[slotIndex] || '';
|
|
310
345
|
var priceInfo = buildSlotPriceInfo(slot);
|
|
311
346
|
var priceClass = getPriceColor(_objectSpread(_objectSpread({}, priceInfo), {}, {
|
|
312
347
|
courtType: resource.productTitle
|
|
313
348
|
}));
|
|
314
|
-
var timeLabel = timeLabels[slotIndex] || '';
|
|
315
349
|
var tag = getSlotTag(priceInfo);
|
|
316
350
|
var tagText = (tag === null || tag === void 0 ? void 0 : tag.text) === 'pisell2.venue.label.promo' ? locales.getText('pisell2.venue.label.promo') || '促销' : (tag === null || tag === void 0 ? void 0 : tag.text) === 'pisell2.venue.label.off.peak' ? locales.getText('pisell2.venue.label.off.peak') || '非高峰' : null;
|
|
351
|
+
|
|
352
|
+
// 单商品:保持原选中/禁用判定;多商品:外层 slot 不可直接选,点击仅触发展开
|
|
353
|
+
var productIdForSingle = resource.productId;
|
|
354
|
+
var disabledBySelection = !isMultiProduct && !isUnavailable ? isSlotDisabledBySelection(venueBookingModule, {
|
|
355
|
+
resourceId: resource.resourceId,
|
|
356
|
+
productId: productIdForSingle,
|
|
357
|
+
startTime: slot.startTime
|
|
358
|
+
}) : false;
|
|
359
|
+
// 跨行互斥禁用视觉上与 unavailable 一致(灰底 + ×),用户能明确看到冲突
|
|
360
|
+
var isBlocked = isUnavailable || disabledBySelection;
|
|
361
|
+
var selected = !isMultiProduct && isAvailable && checkSlotSelected(venueBookingModule, resource.resourceId, slot.startTime, productIdForSingle);
|
|
362
|
+
var interactive = !isMultiProduct && !isBlocked;
|
|
363
|
+
var showPlusLabel = isMultiProduct && !isBlocked;
|
|
317
364
|
return /*#__PURE__*/React.createElement("button", {
|
|
318
365
|
"data-slot-button": "true",
|
|
319
|
-
key: "".concat(resource.resourceId, "-").concat(slot.startTime),
|
|
366
|
+
key: "".concat(resource.resourceId, "-outer-").concat(slot.startTime),
|
|
320
367
|
onClick: function onClick() {
|
|
321
|
-
|
|
368
|
+
if (isMultiProduct) {
|
|
369
|
+
if (isBlocked) return;
|
|
370
|
+
toggleExpanded(resource.resourceId);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
if (isBlocked) return;
|
|
374
|
+
handleSlotClick(resource.resourceId, productIdForSingle, slot);
|
|
322
375
|
},
|
|
323
|
-
disabled:
|
|
324
|
-
className: "px-1 py-2 text-center transition md:px-2 ".concat(
|
|
376
|
+
disabled: isBlocked,
|
|
377
|
+
className: "px-1 py-2 text-center transition md:px-2 ".concat(isBlocked ? 'cursor-not-allowed bg-zinc-100 text-zinc-400' : selected ? 'text-white' : 'bg-white hover:bg-[#fff6f6]'),
|
|
325
378
|
style: _objectSpread({
|
|
326
379
|
borderLeft: isHourBoundary(timeLabel) ? '1px solid rgba(0,0,0,0.08)' : '1px solid rgba(0,0,0,0.03)',
|
|
327
380
|
borderBottom: '1px solid rgba(0,0,0,0.04)'
|
|
328
|
-
}, selected &&
|
|
381
|
+
}, selected && interactive ? {
|
|
329
382
|
backgroundColor: 'var(--vb-primary)'
|
|
330
383
|
} : null)
|
|
331
|
-
},
|
|
384
|
+
}, isBlocked ? /*#__PURE__*/React.createElement("div", {
|
|
332
385
|
className: "flex flex-col items-center justify-center gap-1 text-zinc-400"
|
|
333
386
|
}, /*#__PURE__*/React.createElement("div", {
|
|
334
387
|
className: "text-lg font-bold leading-none"
|
|
@@ -342,16 +395,75 @@ export default function TimeGrid() {
|
|
|
342
395
|
className: "text-[13px] font-extrabold leading-4 text-white md:text-sm"
|
|
343
396
|
})) : /*#__PURE__*/React.createElement("div", {
|
|
344
397
|
className: "space-y-0.5"
|
|
398
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
399
|
+
className: "flex items-baseline justify-center gap-0.5"
|
|
345
400
|
}, /*#__PURE__*/React.createElement(PisellText.Amount, {
|
|
346
401
|
value: Number(slot.price || 0),
|
|
347
402
|
symbol: symbol,
|
|
348
403
|
precision: 2,
|
|
349
404
|
showCurrencySymbol: true,
|
|
350
|
-
hideDecimalForWholeNumbers:
|
|
405
|
+
hideDecimalForWholeNumbers: true,
|
|
351
406
|
className: "text-[13px] font-normal leading-4 ".concat(priceClass, " md:text-sm")
|
|
352
|
-
}),
|
|
407
|
+
}), showPlusLabel ? /*#__PURE__*/React.createElement("span", {
|
|
408
|
+
className: "text-[13px] font-semibold leading-4 ".concat(priceClass, " md:text-sm")
|
|
409
|
+
}, "+") : null), tag ? /*#__PURE__*/React.createElement("div", {
|
|
353
410
|
className: "inline-flex rounded-full px-1.5 py-0 text-[8px] font-semibold leading-4 ring-1 md:text-[9px] ".concat(tag.className)
|
|
354
411
|
}, tagText) : null));
|
|
412
|
+
})), isMultiProduct && expanded && resource.products.map(function (subRow) {
|
|
413
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
414
|
+
key: "".concat(resource.resourceId, "-sub-").concat(subRow.productId),
|
|
415
|
+
className: "grid border-b border-black/6 bg-zinc-50/60",
|
|
416
|
+
style: tableGridStyle
|
|
417
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
418
|
+
className: "sticky left-0 z-10 border-r border-black/6 bg-zinc-50/60 px-2 py-2 pl-8 shadow-[10px_0_16px_-14px_rgba(0,0,0,0.2)] md:px-4 md:pl-10"
|
|
419
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
420
|
+
className: "text-[12px] font-semibold leading-5 text-zinc-700 md:text-[13px]"
|
|
421
|
+
}, subRow.productTitle)), subRow.slots.map(function (slot, slotIndex) {
|
|
422
|
+
var isAvailable = slot.status === 'available';
|
|
423
|
+
var isUnavailable = slot.status === 'occupied' || slot.status === 'past' || slot.status === 'unavailable';
|
|
424
|
+
var timeLabel = timeLabels[slotIndex] || '';
|
|
425
|
+
var disabledBySelection = !isUnavailable && isSlotDisabledBySelection(venueBookingModule, {
|
|
426
|
+
resourceId: resource.resourceId,
|
|
427
|
+
productId: subRow.productId,
|
|
428
|
+
startTime: slot.startTime
|
|
429
|
+
});
|
|
430
|
+
var isBlocked = isUnavailable || disabledBySelection;
|
|
431
|
+
var selected = isAvailable && checkSlotSelected(venueBookingModule, resource.resourceId, slot.startTime, subRow.productId);
|
|
432
|
+
var interactive = !isBlocked;
|
|
433
|
+
var priceInfo = buildSlotPriceInfo(slot);
|
|
434
|
+
var priceClass = getPriceColor(_objectSpread(_objectSpread({}, priceInfo), {}, {
|
|
435
|
+
courtType: subRow.productTitle
|
|
436
|
+
}));
|
|
437
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
438
|
+
"data-slot-button": "true",
|
|
439
|
+
key: "".concat(resource.resourceId, "-").concat(subRow.productId, "-").concat(slot.startTime),
|
|
440
|
+
onClick: function onClick() {
|
|
441
|
+
if (!interactive) return;
|
|
442
|
+
handleSlotClick(resource.resourceId, subRow.productId, slot);
|
|
443
|
+
},
|
|
444
|
+
disabled: !interactive,
|
|
445
|
+
className: "px-1 py-2 text-center transition md:px-2 ".concat(isBlocked ? 'cursor-not-allowed bg-zinc-100 text-zinc-400' : selected ? 'text-white' : 'bg-white hover:bg-[#fff6f6]'),
|
|
446
|
+
style: _objectSpread({
|
|
447
|
+
borderLeft: isHourBoundary(timeLabel) ? '1px solid rgba(0,0,0,0.08)' : '1px solid rgba(0,0,0,0.03)',
|
|
448
|
+
borderBottom: '1px solid rgba(0,0,0,0.04)'
|
|
449
|
+
}, selected && interactive ? {
|
|
450
|
+
backgroundColor: 'var(--vb-primary)'
|
|
451
|
+
} : null)
|
|
452
|
+
}, isBlocked ? /*#__PURE__*/React.createElement("div", {
|
|
453
|
+
className: "flex flex-col items-center justify-center gap-1 text-zinc-400"
|
|
454
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
455
|
+
className: "text-lg font-bold leading-none"
|
|
456
|
+
}, "\xD7")) : /*#__PURE__*/React.createElement("div", {
|
|
457
|
+
className: "space-y-0.5"
|
|
458
|
+
}, /*#__PURE__*/React.createElement(PisellText.Amount, {
|
|
459
|
+
value: Number(slot.price || 0),
|
|
460
|
+
symbol: symbol,
|
|
461
|
+
precision: 2,
|
|
462
|
+
showCurrencySymbol: true,
|
|
463
|
+
hideDecimalForWholeNumbers: true,
|
|
464
|
+
className: "text-[13px] leading-4 ".concat(selected ? 'font-extrabold text-white' : "font-normal ".concat(priceClass), " md:text-sm")
|
|
465
|
+
})));
|
|
466
|
+
}));
|
|
355
467
|
}));
|
|
356
468
|
}))));
|
|
357
469
|
}
|
|
@@ -243,6 +243,13 @@ export function VenueBookingProvider(_ref) {
|
|
|
243
243
|
var anchorDateRef = useRef(anchorDate);
|
|
244
244
|
anchorDateRef.current = anchorDate;
|
|
245
245
|
|
|
246
|
+
/**
|
|
247
|
+
* bootstrap 只跑一次:避免宿主 Provider 重渲染导致的依赖身份抖动
|
|
248
|
+
* (例如 utils 引用变化 → syncCustomerLoginToModule 重建 → effect 重跑 → 骨架屏闪烁)。
|
|
249
|
+
* 只在首次 venueBookingModule 就绪时执行,和步骤 hydrate 的 hydratedRef 同语义。
|
|
250
|
+
*/
|
|
251
|
+
var bootstrappedRef = useRef(false);
|
|
252
|
+
|
|
246
253
|
/** 是否有已选时段(用于判断能否进入下一步) */
|
|
247
254
|
var canNext = useMemo(function () {
|
|
248
255
|
// 优先从 OS 模块查询选中状态
|
|
@@ -541,7 +548,7 @@ export function VenueBookingProvider(_ref) {
|
|
|
541
548
|
* 调用 OS venueBooking.toggleSlot 后刷新 grid + 购物车
|
|
542
549
|
*/
|
|
543
550
|
var toggleSlot = useCallback( /*#__PURE__*/function () {
|
|
544
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(resourceId, slot) {
|
|
551
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(resourceId, productId, slot) {
|
|
545
552
|
return _regeneratorRuntime().wrap(function _callee4$(_context5) {
|
|
546
553
|
while (1) switch (_context5.prev = _context5.next) {
|
|
547
554
|
case 0:
|
|
@@ -555,12 +562,12 @@ export function VenueBookingProvider(_ref) {
|
|
|
555
562
|
_context5.next = 5;
|
|
556
563
|
return toggleSlotAction(venueBookingModule, {
|
|
557
564
|
resourceId: resourceId,
|
|
565
|
+
productId: productId,
|
|
558
566
|
startTime: slot.startTime,
|
|
559
567
|
endTime: slot.endTime,
|
|
560
568
|
price: slot.price
|
|
561
569
|
});
|
|
562
570
|
case 5:
|
|
563
|
-
// toggleSlot 后刷新 grid 获取最新选中状态
|
|
564
571
|
refreshTimeSlotGrid();
|
|
565
572
|
_context5.next = 8;
|
|
566
573
|
return refreshViewModel();
|
|
@@ -577,7 +584,7 @@ export function VenueBookingProvider(_ref) {
|
|
|
577
584
|
}
|
|
578
585
|
}, _callee4, null, [[2, 10]]);
|
|
579
586
|
}));
|
|
580
|
-
return function (_x5, _x6) {
|
|
587
|
+
return function (_x5, _x6, _x7) {
|
|
581
588
|
return _ref5.apply(this, arguments);
|
|
582
589
|
};
|
|
583
590
|
}(), [venueBookingModule, refreshTimeSlotGrid, refreshViewModel]);
|
|
@@ -599,7 +606,7 @@ export function VenueBookingProvider(_ref) {
|
|
|
599
606
|
}
|
|
600
607
|
}, _callee5);
|
|
601
608
|
}));
|
|
602
|
-
return function (
|
|
609
|
+
return function (_x8) {
|
|
603
610
|
return _ref6.apply(this, arguments);
|
|
604
611
|
};
|
|
605
612
|
}(), [venueBookingModule, refreshViewModel]);
|
|
@@ -624,7 +631,7 @@ export function VenueBookingProvider(_ref) {
|
|
|
624
631
|
}
|
|
625
632
|
}, _callee6);
|
|
626
633
|
}));
|
|
627
|
-
return function (
|
|
634
|
+
return function (_x9) {
|
|
628
635
|
return _ref7.apply(this, arguments);
|
|
629
636
|
};
|
|
630
637
|
}(), [venueBookingModule]);
|
|
@@ -730,6 +737,18 @@ export function VenueBookingProvider(_ref) {
|
|
|
730
737
|
}, _callee8, null, [[0, 9]]);
|
|
731
738
|
})), [syncCustomerLoginToModule, venueBookingModule, refreshViewModel]);
|
|
732
739
|
|
|
740
|
+
/**
|
|
741
|
+
* 以 ref 持有最新的 callback,供仅需稳定调用、不希望因 callback 身份变动而重跑的 effect 使用
|
|
742
|
+
* - bootstrap useEffect:只关心 venueBookingModule 首次就绪,不应被 utils/callback 身份抖动连带重跑
|
|
743
|
+
* - pubsub 订阅 useEffect:只订阅一次,真正回调取最新实现
|
|
744
|
+
*/
|
|
745
|
+
var syncCustomerLoginRef = useRef(syncCustomerLoginToModule);
|
|
746
|
+
syncCustomerLoginRef.current = syncCustomerLoginToModule;
|
|
747
|
+
var goToNearestAvailableDateRef = useRef(goToNearestAvailableDate);
|
|
748
|
+
goToNearestAvailableDateRef.current = goToNearestAvailableDate;
|
|
749
|
+
var handleLoginSuccessRef = useRef(handleLoginSuccess);
|
|
750
|
+
handleLoginSuccessRef.current = handleLoginSuccess;
|
|
751
|
+
|
|
733
752
|
/** 结账步骤提交订单(调用 OS venueBooking.submitOrder) */
|
|
734
753
|
var submitOrder = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
735
754
|
var _result$data, _viewModel$summary, result, orderId, totalAmount, _otherParams$openData, otherParams;
|
|
@@ -894,6 +913,8 @@ export function VenueBookingProvider(_ref) {
|
|
|
894
913
|
}, [currentStep, canNext, isAgreeDepositPolicy, viewModel.summary, stepList, proceedToCheckout, goToStep, handleSubmitOrder]);
|
|
895
914
|
|
|
896
915
|
// ── 监听全局登录成功事件(Voucher 区域内登录等场景) ──
|
|
916
|
+
// 仅依赖 pubsub 实例,回调经 ref 取最新实现,避免 handleLoginSuccess 重建
|
|
917
|
+
// 时反复 sub/unsub(宿主 utils 引用抖动也会连带触发)。
|
|
897
918
|
useEffect(function () {
|
|
898
919
|
var _pubsub$subscribe;
|
|
899
920
|
var pubsub = utils === null || utils === void 0 ? void 0 : utils.pubsub;
|
|
@@ -908,14 +929,14 @@ export function VenueBookingProvider(_ref) {
|
|
|
908
929
|
break;
|
|
909
930
|
}
|
|
910
931
|
_context12.next = 3;
|
|
911
|
-
return
|
|
932
|
+
return handleLoginSuccessRef.current();
|
|
912
933
|
case 3:
|
|
913
934
|
case "end":
|
|
914
935
|
return _context12.stop();
|
|
915
936
|
}
|
|
916
937
|
}, _callee11);
|
|
917
938
|
}));
|
|
918
|
-
return function onGlobalLoginSuccess(
|
|
939
|
+
return function onGlobalLoginSuccess(_x10) {
|
|
919
940
|
return _ref12.apply(this, arguments);
|
|
920
941
|
};
|
|
921
942
|
}();
|
|
@@ -924,7 +945,7 @@ export function VenueBookingProvider(_ref) {
|
|
|
924
945
|
var _pubsub$unsubscribe;
|
|
925
946
|
(_pubsub$unsubscribe = pubsub.unsubscribe) === null || _pubsub$unsubscribe === void 0 || _pubsub$unsubscribe.call(pubsub, 'pisell1.login.success', onGlobalLoginSuccess);
|
|
926
947
|
};
|
|
927
|
-
}, [utils === null || utils === void 0 ? void 0 : utils.pubsub
|
|
948
|
+
}, [utils === null || utils === void 0 ? void 0 : utils.pubsub]);
|
|
928
949
|
|
|
929
950
|
// ── anchorDate 变化时刷新 timeSlotGrid + 短暂 grid 加载动画 ──
|
|
930
951
|
useEffect(function () {
|
|
@@ -998,8 +1019,13 @@ export function VenueBookingProvider(_ref) {
|
|
|
998
1019
|
}, [pisellOS, venueBookingModule]);
|
|
999
1020
|
|
|
1000
1021
|
// ── 模块初始化引导 ──
|
|
1022
|
+
// 只在首次 venueBookingModule 就绪时执行一次;内部依赖的 callback 走 ref,
|
|
1023
|
+
// 避免宿主 Provider 重渲染(如登录弹窗打开/关闭)让 utils 引用变化,导致
|
|
1024
|
+
// syncCustomerLoginToModule / goToNearestAvailableDate 身份抖动连带 effect 重跑,
|
|
1025
|
+
// 进而触发 setIsWeekLoading(true) 造成 VenueSelection 骨架屏闪烁。
|
|
1001
1026
|
useEffect(function () {
|
|
1002
|
-
if (!venueBookingModule) return;
|
|
1027
|
+
if (bootstrappedRef.current || !venueBookingModule) return;
|
|
1028
|
+
bootstrappedRef.current = true;
|
|
1003
1029
|
var unmounted = false;
|
|
1004
1030
|
var bootstrap = /*#__PURE__*/function () {
|
|
1005
1031
|
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
@@ -1012,14 +1038,14 @@ export function VenueBookingProvider(_ref) {
|
|
|
1012
1038
|
|
|
1013
1039
|
// 初始化阶段尝试同步 customer 到 venueBooking 模块(未登录时内部自动跳过)
|
|
1014
1040
|
_context14.next = 4;
|
|
1015
|
-
return
|
|
1041
|
+
return syncCustomerLoginRef.current();
|
|
1016
1042
|
case 4:
|
|
1017
1043
|
_context14.next = 6;
|
|
1018
1044
|
return loadVenueProducts(venueBookingModule, VENUE_PRODUCT_IDS);
|
|
1019
1045
|
case 6:
|
|
1020
1046
|
venueProducts = typeof (venueBookingModule === null || venueBookingModule === void 0 ? void 0 : venueBookingModule.getVenueProducts) === 'function' ? venueBookingModule.getVenueProducts() : []; // 2. 自动定位最近可用日期(当前周无可用则滚动到后续周)
|
|
1021
1047
|
_context14.next = 9;
|
|
1022
|
-
return
|
|
1048
|
+
return goToNearestAvailableDateRef.current(anchorDateRef.current);
|
|
1023
1049
|
case 9:
|
|
1024
1050
|
// 3. 刷新购物车数据
|
|
1025
1051
|
moduleData = createVenueBookingViewModel(venueBookingModule);
|
|
@@ -1078,7 +1104,7 @@ export function VenueBookingProvider(_ref) {
|
|
|
1078
1104
|
return function () {
|
|
1079
1105
|
unmounted = true;
|
|
1080
1106
|
};
|
|
1081
|
-
}, [venueBookingModule
|
|
1107
|
+
}, [venueBookingModule]);
|
|
1082
1108
|
|
|
1083
1109
|
// ── 聚合 Context Value ──
|
|
1084
1110
|
var value = useMemo(function () {
|
|
@@ -27,15 +27,28 @@ export declare function fetchResourceAvailability(module: any, startDate: string
|
|
|
27
27
|
export declare function getDateRangeSummary(module: any, startDate: string, endDate: string): VenueDateSummaryItem[];
|
|
28
28
|
/** 获取某天的时段网格(纯计算不发请求,切换日期时调用) */
|
|
29
29
|
export declare function getTimeSlotGrid(module: any, date: string): VenueTimeSlotGrid | null;
|
|
30
|
-
/**
|
|
30
|
+
/** 切换选中/取消一个时段(同一资源下多商品场景必须携带 productId) */
|
|
31
31
|
export declare function toggleSlotAction(module: any, params: {
|
|
32
32
|
resourceId: number;
|
|
33
|
+
productId: number;
|
|
33
34
|
startTime: string;
|
|
34
35
|
endTime: string;
|
|
35
36
|
price: string;
|
|
36
37
|
}): Promise<any>;
|
|
37
|
-
/**
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* 查询某个时段是否已被选中
|
|
40
|
+
* 不传 productId 时:该资源下任一商品选中即 true;传了则精确匹配
|
|
41
|
+
*/
|
|
42
|
+
export declare function isSlotSelected(module: any, resourceId: number, startTime: string, productId?: number): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 询问 OS:该 (resourceId, productId, startTime) 格子是否因其它已选项而应禁用
|
|
45
|
+
* 覆盖:同场地多商品互斥、组合资源 ↔ 子资源联动
|
|
46
|
+
*/
|
|
47
|
+
export declare function isSlotDisabledBySelection(module: any, params: {
|
|
48
|
+
resourceId: number;
|
|
49
|
+
productId: number;
|
|
50
|
+
startTime: string;
|
|
51
|
+
}): boolean;
|
|
39
52
|
/** 获取全部已选时段(按资源分组) */
|
|
40
53
|
export declare function getAllSelectedSlots(module: any): any[];
|
|
41
54
|
/** 查询 otherParams */
|
|
@@ -164,12 +164,15 @@ export function getTimeSlotGrid(module, date) {
|
|
|
164
164
|
return module.getTimeSlotGrid(date) || null;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
/**
|
|
167
|
+
/** 切换选中/取消一个时段(同一资源下多商品场景必须携带 productId) */
|
|
168
168
|
export function toggleSlotAction(_x8, _x9) {
|
|
169
169
|
return _toggleSlotAction.apply(this, arguments);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* 查询某个时段是否已被选中
|
|
174
|
+
* 不传 productId 时:该资源下任一商品选中即 true;传了则精确匹配
|
|
175
|
+
*/
|
|
173
176
|
function _toggleSlotAction() {
|
|
174
177
|
_toggleSlotAction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(module, params) {
|
|
175
178
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -184,9 +187,18 @@ function _toggleSlotAction() {
|
|
|
184
187
|
}));
|
|
185
188
|
return _toggleSlotAction.apply(this, arguments);
|
|
186
189
|
}
|
|
187
|
-
export function isSlotSelected(module, resourceId, startTime) {
|
|
190
|
+
export function isSlotSelected(module, resourceId, startTime, productId) {
|
|
188
191
|
if (!module || typeof module.isSlotSelected !== 'function') return false;
|
|
189
|
-
return !!module.isSlotSelected(resourceId, startTime);
|
|
192
|
+
return !!module.isSlotSelected(resourceId, startTime, productId);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* 询问 OS:该 (resourceId, productId, startTime) 格子是否因其它已选项而应禁用
|
|
197
|
+
* 覆盖:同场地多商品互斥、组合资源 ↔ 子资源联动
|
|
198
|
+
*/
|
|
199
|
+
export function isSlotDisabledBySelection(module, params) {
|
|
200
|
+
if (!module || typeof module.isSlotDisabledBySelection !== 'function') return false;
|
|
201
|
+
return !!module.isSlotDisabledBySelection(params);
|
|
190
202
|
}
|
|
191
203
|
|
|
192
204
|
/** 获取全部已选时段(按资源分组) */
|
|
@@ -16,16 +16,33 @@ export interface VenueBookingEntryContext {
|
|
|
16
16
|
export interface VenueResourceSlot {
|
|
17
17
|
startTime: string;
|
|
18
18
|
endTime: string;
|
|
19
|
-
status: 'past' | 'occupied' | 'available';
|
|
19
|
+
status: 'past' | 'occupied' | 'available' | 'partially_occupied' | 'unavailable';
|
|
20
20
|
price: string | null;
|
|
21
|
+
/** per-product 子行的 slot 带 productId;外层合并 slot 不带 */
|
|
22
|
+
productId?: number;
|
|
23
|
+
}
|
|
24
|
+
/** 多商品共享一个 resource 时的子行 */
|
|
25
|
+
export interface VenueResourceSubRow {
|
|
26
|
+
productId: number;
|
|
27
|
+
productTitle: string;
|
|
28
|
+
price: string;
|
|
29
|
+
slots: VenueResourceSlot[];
|
|
21
30
|
}
|
|
22
31
|
/** 单个资源/场地(来自 getTimeSlotGrid) */
|
|
23
32
|
export interface VenueResource {
|
|
24
33
|
resourceId: number;
|
|
25
34
|
resourceName: string;
|
|
35
|
+
/** 单商品时唯一;多商品时取第一个(兼容字段,请优先使用 products) */
|
|
26
36
|
productId: number;
|
|
27
37
|
productTitle: string;
|
|
28
38
|
slots: VenueResourceSlot[];
|
|
39
|
+
/** 多商品子行;仅当 hasMultipleProducts 时存在 */
|
|
40
|
+
products?: VenueResourceSubRow[];
|
|
41
|
+
hasMultipleProducts?: boolean;
|
|
42
|
+
/** 组合资源元信息(combined_resource.status === 1) */
|
|
43
|
+
combinedResource?: {
|
|
44
|
+
resourceIds: Array<number | string>;
|
|
45
|
+
};
|
|
29
46
|
}
|
|
30
47
|
/** 日期时段网格(来自 getTimeSlotGrid) */
|
|
31
48
|
export interface VenueTimeSlotGrid {
|
|
@@ -162,7 +179,7 @@ export interface VenueBookingContextValue {
|
|
|
162
179
|
setMonthCursor: (cursor: Dayjs) => void;
|
|
163
180
|
setFooterActionText: (text: string) => void;
|
|
164
181
|
/** 切换选中/取消某个时段(调用 OS venueBooking.toggleSlot) */
|
|
165
|
-
toggleSlot: (resourceId: number, slot: VenueResourceSlot) => Promise<void>;
|
|
182
|
+
toggleSlot: (resourceId: number, productId: number, slot: VenueResourceSlot) => Promise<void>;
|
|
166
183
|
/** 刷新 OS 模块视图模型(调用 getSummary + 重建 viewModel),可选传入额外字段合并 */
|
|
167
184
|
refreshViewModel: (extraFields?: Partial<VenueBookingViewModel>) => Promise<void>;
|
|
168
185
|
/** 拉取指定周的资源数据并刷新 dateSummary + timeSlotGrid */
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export { default as Login } from './components/login';
|
|
2
|
+
export type { LoginProps } from './components/login';
|
|
3
|
+
export { default as BookingInfo } from './components/booking/info/index';
|
|
4
|
+
export { default as BookingNotes } from './components/booking/notes';
|
|
5
|
+
export { default as BookingAddons } from './components/booking/addons';
|
|
6
|
+
export { default as BookingForms } from './components/booking/forms';
|
|
7
|
+
export { default as BookingPayment } from './components/booking/payments';
|
|
8
|
+
export { default as Booking } from './components/booking';
|
|
9
|
+
export { default as Schedules } from './components/schedules';
|
|
10
|
+
export { default as BookingResources } from './components/booking/materiels/resources';
|
|
11
|
+
export { default as BookingStartTime } from './components/booking/materiels/startTime';
|
|
12
|
+
export { default as BookingDuration } from './components/booking/materiels/duration';
|
|
13
|
+
export { default as BookingContacts } from './components/booking/materiels/contacts';
|
|
14
|
+
export { VerticalClient } from './components/booking/info/clientVariant';
|
|
15
|
+
export { default as VerticalAddService } from './components/booking/info/addServiceVariant';
|
|
16
|
+
export { default as ProductExtension } from './components/productExtension';
|
|
17
|
+
export { default as BookingDeposit } from './components/booking/deposit';
|
|
18
|
+
export { default as WorkspaceList } from './components/workSpaceList';
|
|
19
|
+
export { default as WorkspaceListDetail } from './components/workSpaceListDetail';
|
|
20
|
+
export { default as RuleSetting } from './components/ruleSetting';
|
|
21
|
+
export { default as TaxSelect } from './components/taxSelect';
|
|
22
|
+
export { default as EftposPay } from './components/eftposPay';
|
|
23
|
+
export { default as ToCPay } from './components/pay/toC';
|
|
24
|
+
export { default as Eftpos } from './components/eftpos';
|
|
25
|
+
export { default as WalletList } from './components/walletList';
|
|
26
|
+
export { default as BookingDashboard } from './components/booking/dashboard';
|
|
27
|
+
export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
|
|
28
|
+
export { default as EventBooking } from './components/eventBooking';
|
|
29
|
+
export { default as EventCard } from './components/eventBooking/components/eventCard';
|
|
30
|
+
export { default as EventResourceDisplay } from './components/eventBooking/components/resourceDisplay';
|
|
31
|
+
export { default as EventResourceUsability } from './components/eventBooking/components/resourceUsability';
|
|
32
|
+
export { default as EventProductCard } from './components/eventBooking/components/productCard';
|
|
33
|
+
export { default as EventTimeResourceSelector } from './components/eventBooking/components/timeResourceSelector';
|
|
34
|
+
export { default as EventSelectHolder } from './components/eventBooking/components/selectHolder';
|
|
35
|
+
export { default as EventBookingServiceList } from './components/eventBooking/components/bookingServiceList';
|
|
36
|
+
export { default as EventBookingAvailabilityCalendar } from './components/eventBooking/components/bookingAvailabilityCalendar';
|
|
37
|
+
export { default as EventScheduleCalendar } from './components/eventBooking/components/scheduleCalendar';
|
|
38
|
+
export { default as EventBookingDetailModal } from './components/eventBooking/components/bookingDetailModal';
|
|
39
|
+
export { default as EventProgressBar } from './components/eventBooking/components/progressBar';
|
|
40
|
+
export { default as ShoppingCart } from './components/shoppingCart';
|
|
41
|
+
export { default as AppointmentBooking } from './components/appointmentBooking';
|
|
42
|
+
export { default as AppointmentDeposit } from './components/appointmentBooking/deposit';
|
|
43
|
+
export { default as TicketBooking } from './components/ticketBooking';
|
|
44
|
+
export { default as ScanOrder } from './components/scanOrder';
|
|
45
|
+
export { default as VenueBooking } from './components/venueBooking';
|
|
46
|
+
export type { ScanOrderProps } from './components/scanOrder';
|
|
47
|
+
export { default as SubTotal } from './components/subTotal';
|
|
48
|
+
export { default as EditBookingModal } from './components/booking/editBookingModal';
|
|
49
|
+
export { default as StepController } from './components/stepController';
|
|
50
|
+
export { default as ClientCard } from './plus/clientCard';
|
|
51
|
+
export { default as ClientSearch } from './plus/clinetSearch';
|
|
52
|
+
export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
|
|
53
|
+
export { default as SaasLogin } from './plus/saasLogin';
|
|
54
|
+
export { default as SaasRegister } from './plus/saasRegister';
|
|
55
|
+
export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
|
|
56
|
+
export { default as PinModal } from './components/pinModal';
|
|
57
|
+
export { default as PinVerifyModal } from './components/pinVerifyModal';
|
|
58
|
+
export { ChannelAuthSetting, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, } from './components/authentication/admin';
|
|
59
|
+
export type { SaaSAdminAuthProps, OrgAdminAuthProps, DeviceAuthProps, POSOperatorAuthProps, CustomerOAuthConfigProps, } from './components/authentication/admin';
|
|
60
|
+
export { default as ContactInfo } from './plus/contactInfo';
|
|
61
|
+
export { default as ContactInfoModal } from './plus/contactInfoModal';
|
|
62
|
+
export { Login2, Register2, AuthModal } from './pro/Login2.0';
|
|
63
|
+
export { default as WalletEditor } from './plus/walletEditor';
|
|
64
|
+
export { default as WalletPassGallery } from './plus/walletPassGallery';
|
|
65
|
+
export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
|
|
66
|
+
export { default as SelectHolder } from './plus/selectHolder';
|
|
67
|
+
export { default as HolderList } from './plus/selectHolder/components/HolderList';
|
|
68
|
+
export { default as SettingsRegistry } from './components/systemSettings/registry';
|
|
69
|
+
export { default as SaasRole } from './plus/saasRole';
|
|
70
|
+
export { default as SaasTeamMembers } from './plus/saasTeamMembers';
|
|
71
|
+
export type { SaasTeamMembersProps } from './plus/saasTeamMembers/type';
|
|
72
|
+
export { default as KioskSkuDetail } from './components/kioskSkuDetail';
|
|
73
|
+
export { default as ProNumberSelector } from './pro/pisellNumberSelector';
|
|
74
|
+
export { default as SKUOptionsSelection } from './plus/skuOptionsSelection';
|
|
75
|
+
export { default as SaasAttendance } from './plus/saasAttendance';
|
|
76
|
+
export { default as Selector } from './pro/Selector';
|
|
77
|
+
export { default as PisellSalesGrid } from './plus/pisellSalesGrid';
|
|
78
|
+
export { PisellReservationCore, PisellReservationBookingPage, PisellReservation, PisellVenueControlPage, default, } from './plus/pisellReservation';
|
|
79
|
+
export type { FloorMapBookingClickArgs, FloorMapBookingClickMode, PisellReservationProps, PisellReservationTableRow, } from './plus/pisellReservation';
|
|
80
|
+
export { defaultReservationTableRows, getDefaultReservationFloorMapConfig, } from './plus/pisellReservation';
|
|
81
|
+
export { default as EcoCupProject } from './components/ecocup/cupProject';
|
|
82
|
+
export { default as EcoCupList } from './components/ecocup/cupList';
|
|
83
|
+
export { default as EcoCustomerList } from './components/ecocup/customerList';
|
|
84
|
+
export { default as OrderList } from './plus/orderList';
|
|
85
|
+
export { default as pisellSalesManagement } from './plus/pisellSalesManagement';
|
|
86
|
+
export { PisellFinancialSummary, financialSummaryLocales } from './plus/pisellFinancialSummary';
|
|
87
|
+
export type { PisellFinancialSummaryProps, FinancialSummaryData, FinancialSummaryLineItem, FinancialSummaryPaymentItem, FinancialSummaryRefundItem, FinancialSummaryTotalBlock, FinancialSummaryAmountFormatOptions, } from './plus/pisellFinancialSummary';
|
package/es/index.js
CHANGED
|
@@ -58,7 +58,7 @@ export { default as SaasRegister } from "./plus/saasRegister";
|
|
|
58
58
|
export { default as SaasCreateOrganization } from "./plus/saasCreateOrganization";
|
|
59
59
|
export { default as PinModal } from "./components/pinModal";
|
|
60
60
|
export { default as PinVerifyModal } from "./components/pinVerifyModal";
|
|
61
|
-
export { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from "./components/authentication/admin";
|
|
61
|
+
export { ChannelAuthSetting, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from "./components/authentication/admin";
|
|
62
62
|
export { default as ContactInfo } from "./plus/contactInfo";
|
|
63
63
|
export { default as ContactInfoModal } from "./plus/contactInfoModal";
|
|
64
64
|
export { Login2, Register2, AuthModal } from "./pro/Login2.0";
|