@pisell/private-materials 6.2.10 → 6.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Checkout/index.d.ts +37 -0
- package/es/components/Sales/Checkout/serve.d.ts +15 -0
- package/es/components/Sales/Checkout/utils.d.ts +40 -0
- package/es/components/Sales/Customer/index.d.ts +25 -0
- package/es/components/Sales/Resource/index.d.ts +26 -0
- package/es/components/Sales/Resource/serve.d.ts +12 -0
- package/es/components/Sales/Summary/index.d.ts +35 -0
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/es/components/appointmentBooking/index.d.ts +3 -0
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/customSelect/index.d.ts +38 -0
- package/es/components/booking/components/customSelect/index.js +1 -0
- package/es/components/booking/components/footer/index.d.ts +11 -0
- package/es/components/booking/components/footer/utils.d.ts +41 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/editBookingModal/index.d.ts +5 -0
- package/es/components/booking/editBookingModal/locales.d.ts +21 -0
- package/es/components/booking/editBookingModal/mock.d.ts +807 -0
- package/es/components/booking/editBookingModal/serve.d.ts +51 -0
- package/es/components/booking/editBookingModal/type.d.ts +12 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +2 -0
- package/es/components/booking/hooks/useClearCart.js +11 -8
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +6 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/client/index.js +3 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
- package/es/components/booking/info/index.d.ts +3 -0
- package/es/components/booking/info/model.d.ts +5 -0
- package/es/components/booking/info/service/Lists.d.ts +2 -0
- package/es/components/booking/info/service/Lists.js +36 -26
- package/es/components/booking/info/service/addService/index.d.ts +11 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.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/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/utils.d.ts +247 -0
- package/es/components/booking/info/service2/utils.js +20 -21
- package/es/components/booking/info/utils.d.ts +50 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/index.js +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/es/components/booking/info2/service/addService/utils.js +6 -3
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/es/components/booking/info2/service/editService/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/index.js +258 -165
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/service/index.js +19 -15
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/es/components/booking/locales.d.ts +828 -0
- package/es/components/booking/materiels/duration/index.d.ts +13 -0
- package/es/components/booking/materiels/duration/index.js +9 -2
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +108 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/const.d.ts +184 -0
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -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/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/payo/config.d.ts +12 -0
- package/es/components/eftposPay/store/index.d.ts +355 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.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/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/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/index.d.ts +7 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +3 -0
- package/es/components/eventBooking/locales.d.ts +246 -0
- package/es/components/index.d.ts +20 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/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/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +289 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/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.js +3 -3
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/es/components/shoppingCart/components/Cart/Product.js +48 -41
- package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/index.js +21 -18
- 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/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/components/Header/index.d.ts +20 -0
- package/es/components/stepController/index.d.ts +5 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +175 -157
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/es/components/ticketBooking/components/timeBar/index.js +78 -71
- package/es/components/ticketBooking/serve.d.ts +287 -0
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/es/components/ticketBooking/utils/index.d.ts +23 -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/useComponents.js +1 -1
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/index.d.ts +47 -0
- package/es/utils/index.d.ts +23 -0
- package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Checkout/index.d.ts +37 -0
- package/lib/components/Sales/Checkout/serve.d.ts +15 -0
- package/lib/components/Sales/Checkout/utils.d.ts +40 -0
- package/lib/components/Sales/Customer/index.d.ts +25 -0
- package/lib/components/Sales/Resource/index.d.ts +26 -0
- package/lib/components/Sales/Resource/serve.d.ts +12 -0
- package/lib/components/Sales/Summary/index.d.ts +35 -0
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/lib/components/appointmentBooking/index.d.ts +3 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.d.ts +38 -0
- package/lib/components/booking/components/customSelect/index.js +1 -0
- package/lib/components/booking/components/footer/index.d.ts +11 -0
- package/lib/components/booking/components/footer/utils.d.ts +41 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/editBookingModal/index.d.ts +5 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
- package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
- package/lib/components/booking/editBookingModal/type.d.ts +12 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
- package/lib/components/booking/hooks/useClearCart.js +16 -13
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +6 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/client/index.js +5 -4
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
- package/lib/components/booking/info/index.d.ts +3 -0
- package/lib/components/booking/info/model.d.ts +5 -0
- package/lib/components/booking/info/service/Lists.d.ts +2 -0
- package/lib/components/booking/info/service/Lists.js +35 -23
- package/lib/components/booking/info/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.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/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/utils.d.ts +247 -0
- package/lib/components/booking/info/service2/utils.js +17 -17
- package/lib/components/booking/info/utils.d.ts +50 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/lib/components/booking/info2/service/addService/utils.js +4 -2
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/index.js +132 -70
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/service/index.js +13 -9
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/lib/components/booking/locales.d.ts +828 -0
- package/lib/components/booking/materiels/duration/index.d.ts +13 -0
- package/lib/components/booking/materiels/duration/index.js +7 -2
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +108 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/const.d.ts +184 -0
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -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/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/payo/config.d.ts +12 -0
- package/lib/components/eftposPay/store/index.d.ts +355 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.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/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/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/index.d.ts +7 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +3 -0
- package/lib/components/eventBooking/locales.d.ts +246 -0
- package/lib/components/index.d.ts +20 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/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/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +289 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/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/productSelect/components/pisellPriceText/index.d.ts +11 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
- package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/index.js +18 -15
- 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/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/stepController/components/Header/index.d.ts +20 -0
- package/lib/components/stepController/index.d.ts +5 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +143 -127
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
- package/lib/components/ticketBooking/serve.d.ts +287 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/lib/components/ticketBooking/utils/index.d.ts +23 -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/useWindowSize.d.ts +5 -0
- package/lib/index.d.ts +47 -0
- package/lib/utils/index.d.ts +23 -0
- package/package.json +3 -3
@@ -0,0 +1,247 @@
|
|
1
|
+
import dayjs from 'dayjs';
|
2
|
+
export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
|
3
|
+
/**
|
4
|
+
* @title: 获取资源名称
|
5
|
+
* @description:
|
6
|
+
* @param {any} id
|
7
|
+
* @param {any} state
|
8
|
+
* @return {*}
|
9
|
+
* @Author: WangHan
|
10
|
+
* @Date: 2024-11-29 18:02
|
11
|
+
*/
|
12
|
+
export declare const getResourceItem: (id: any, state: any) => any;
|
13
|
+
/**
|
14
|
+
* @title: 错误提示
|
15
|
+
* @description:
|
16
|
+
* @param {any} service
|
17
|
+
* @param {any} resourceItem
|
18
|
+
* @return {*}
|
19
|
+
* @Author: WangHan
|
20
|
+
* @Date: 2024-11-29 18:41
|
21
|
+
*/
|
22
|
+
export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
|
23
|
+
/**
|
24
|
+
* @title: 格式化主体列表
|
25
|
+
* @description:
|
26
|
+
* @param {any} lists
|
27
|
+
* @param {boolean} isOpenGroup
|
28
|
+
* @return {*}
|
29
|
+
* @Author: WangHan
|
30
|
+
* @Date: 2024-12-04 11:27
|
31
|
+
*/
|
32
|
+
export declare const formatHolderLists: (lists: any) => any;
|
33
|
+
export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
|
34
|
+
/**
|
35
|
+
* @title: 是否是预约商品
|
36
|
+
* @description:
|
37
|
+
* @return {*}
|
38
|
+
* @Author: WangHan
|
39
|
+
* @Date: 2024-12-06 11:24
|
40
|
+
*/
|
41
|
+
export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
|
42
|
+
export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
|
43
|
+
/**
|
44
|
+
* @title: 更新商品数据
|
45
|
+
* @description:
|
46
|
+
* @param {any} state
|
47
|
+
* @param currentItem
|
48
|
+
* @param {string} type
|
49
|
+
* @param {any} other
|
50
|
+
* @param actions
|
51
|
+
* @return {*}
|
52
|
+
* @Author: WangHan
|
53
|
+
* @Date: 2025-01-03 15:00
|
54
|
+
*/
|
55
|
+
export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
|
56
|
+
export declare const formItems: (items: any[]) => any[];
|
57
|
+
export declare const getIsSubjectRequire: (state: any) => boolean;
|
58
|
+
export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
|
59
|
+
export declare const isAllNormalProduct: (items: any[]) => boolean;
|
60
|
+
export declare const isAllNormalProductByState: (state: any) => boolean;
|
61
|
+
/**
|
62
|
+
* @title: 格式化商品数据
|
63
|
+
* @description:
|
64
|
+
* @param {any} lists
|
65
|
+
* @return {*}
|
66
|
+
* @Author: WangHan
|
67
|
+
* @Date: 2024-11-29 17:36
|
68
|
+
*/
|
69
|
+
export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
|
70
|
+
_origin: any;
|
71
|
+
id: any;
|
72
|
+
_id: any;
|
73
|
+
name: any;
|
74
|
+
price: any;
|
75
|
+
total: number;
|
76
|
+
origin_total: number;
|
77
|
+
num: any;
|
78
|
+
image: any;
|
79
|
+
isShowNote: boolean;
|
80
|
+
note: any;
|
81
|
+
like_status: any;
|
82
|
+
bundle: any;
|
83
|
+
options: any;
|
84
|
+
errorMessage: string;
|
85
|
+
product_option_string: any;
|
86
|
+
discount_reason: any;
|
87
|
+
resource_id: any;
|
88
|
+
relation_form_name: any;
|
89
|
+
holder_title: any;
|
90
|
+
start_date: any;
|
91
|
+
end_date: any;
|
92
|
+
holder_id: any;
|
93
|
+
isNormalProduct: boolean;
|
94
|
+
locale: any;
|
95
|
+
symbol: any;
|
96
|
+
relation_products: any;
|
97
|
+
items: any[];
|
98
|
+
}[];
|
99
|
+
/**
|
100
|
+
* @title: 禁用日期
|
101
|
+
* @description:
|
102
|
+
* @param {any} current
|
103
|
+
* @param {string} position
|
104
|
+
* @param {any} startDate
|
105
|
+
* @return {*}
|
106
|
+
* @Author: WangHan
|
107
|
+
* @Date: 2024-12-03 17:51
|
108
|
+
*/
|
109
|
+
export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
|
110
|
+
/**
|
111
|
+
* @title: 是否是跨日预约
|
112
|
+
* @description:
|
113
|
+
* @param {any} state
|
114
|
+
* @return {*}
|
115
|
+
* @Author: WangHan
|
116
|
+
* @Date: 2024-12-04 09:49
|
117
|
+
*/
|
118
|
+
export declare const isDayBooking: (state: any) => boolean;
|
119
|
+
export declare const isDaysBooking: (state: any) => boolean;
|
120
|
+
export declare const isEventBooking: (state: any) => boolean;
|
121
|
+
export declare const isAppointmentProduct: (item: any) => boolean;
|
122
|
+
/**
|
123
|
+
* @title: 是否是terminal上的跨日预约
|
124
|
+
* @description:
|
125
|
+
* @param {any} state
|
126
|
+
* @return {*}
|
127
|
+
* @Author: WangHan
|
128
|
+
* @Date: 2024-12-04 15:31
|
129
|
+
*/
|
130
|
+
export declare const isTerminalDayBooking: (state: any) => any;
|
131
|
+
export declare const formatDayDate: (_extend: any) => any;
|
132
|
+
/**
|
133
|
+
* @title: 根据营业日时间格式化时间
|
134
|
+
* @description:
|
135
|
+
* @param {any} state
|
136
|
+
* @return {*}
|
137
|
+
* @Author: WangHan
|
138
|
+
* @Date: 2024-12-04 12:07
|
139
|
+
*/
|
140
|
+
export declare const formatDayTime: ({ startDate, endDate }: any) => {
|
141
|
+
startDateTime: dayjs.Dayjs;
|
142
|
+
endDateTime: dayjs.Dayjs;
|
143
|
+
};
|
144
|
+
export declare const formatDateTime: (start_date: any, end_date: any) => {
|
145
|
+
value: dayjs.Dayjs;
|
146
|
+
end_date: dayjs.Dayjs;
|
147
|
+
};
|
148
|
+
/**
|
149
|
+
* @title: 初始化日期
|
150
|
+
* @description:
|
151
|
+
* @return {*}
|
152
|
+
* @Author: WangHan
|
153
|
+
* @Date: 2024-12-06 17:24
|
154
|
+
*/
|
155
|
+
export declare const initDate: () => {
|
156
|
+
value: dayjs.Dayjs;
|
157
|
+
end_date: dayjs.Dayjs;
|
158
|
+
};
|
159
|
+
/**
|
160
|
+
* @title: 是否有预约商品
|
161
|
+
* @description:
|
162
|
+
* @return {*}
|
163
|
+
* @Author: WangHan
|
164
|
+
* @Date: 2024-12-12 15:47
|
165
|
+
*/
|
166
|
+
export declare const isHasDayAppointmentProduct: (state: any) => boolean;
|
167
|
+
/**
|
168
|
+
* @title: 过滤出如果是预约商品,则只获取跨日的预约商品
|
169
|
+
* @description:
|
170
|
+
* @param {any} lists
|
171
|
+
* @return {*}
|
172
|
+
* @Author: WangHan
|
173
|
+
* @Date: 2024-12-13 16:44
|
174
|
+
*/
|
175
|
+
export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
|
176
|
+
/**
|
177
|
+
* @title: 格式化表单数据
|
178
|
+
* @description:
|
179
|
+
* @param {any} state
|
180
|
+
* @return {*}
|
181
|
+
* @Author: WangHan
|
182
|
+
* @Date: 2024-12-30 22:19
|
183
|
+
*/
|
184
|
+
export declare const getPets: (state: any) => any;
|
185
|
+
/**
|
186
|
+
* @title: 得出预约商品
|
187
|
+
* @description:
|
188
|
+
* @param {any} state
|
189
|
+
* @return {*}
|
190
|
+
* @Author: WangHan
|
191
|
+
* @Date: 2024-12-30 22:26
|
192
|
+
*/
|
193
|
+
export declare const getAppointmentService: (state: any) => any;
|
194
|
+
/**
|
195
|
+
* @title: 判断是否打开删除宠物弹窗
|
196
|
+
* @description:
|
197
|
+
* @param {any} state
|
198
|
+
* @param {any} newVal
|
199
|
+
* @return {*}
|
200
|
+
* @Author: WangHan
|
201
|
+
* @Date: 2024-12-16 16:12
|
202
|
+
*/
|
203
|
+
export declare const isOpenDeletePet: (state: any, newVal: any) => {
|
204
|
+
ids: any;
|
205
|
+
lists: any;
|
206
|
+
};
|
207
|
+
/**
|
208
|
+
* @title: 当前选中的表单id
|
209
|
+
* @description:
|
210
|
+
* @param {any} state
|
211
|
+
* @return {*}
|
212
|
+
* @Author: WangHan
|
213
|
+
* @Date: 2024-12-17 14:40
|
214
|
+
*/
|
215
|
+
export declare const holderId: (state: any) => number;
|
216
|
+
/**
|
217
|
+
* @title: 更新套餐的价格
|
218
|
+
* @description:
|
219
|
+
* @param {any} currentValue
|
220
|
+
* @param {any} newBundleData
|
221
|
+
* @return {*}
|
222
|
+
* @Author: WangHan
|
223
|
+
* @Date: 2024-12-31 15:16
|
224
|
+
*/
|
225
|
+
export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
|
226
|
+
/**
|
227
|
+
* @title: 更新预约商品报价单
|
228
|
+
* @description:
|
229
|
+
* @param {any} state
|
230
|
+
* @param {any} cacheItem
|
231
|
+
* @return {*}
|
232
|
+
* @Author: WangHan
|
233
|
+
* @Date: 2024-12-25 16:41
|
234
|
+
*/
|
235
|
+
export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
|
236
|
+
multiDayPrices: any;
|
237
|
+
price: number;
|
238
|
+
}>;
|
239
|
+
/**
|
240
|
+
* @title: 更新普通商品报价单价格
|
241
|
+
* @description:
|
242
|
+
* @param {any} state
|
243
|
+
* @return {*}
|
244
|
+
* @Author: WangHan
|
245
|
+
* @Date: 2024-12-24 11:32
|
246
|
+
*/
|
247
|
+
export declare const updateServicePrice: (state: any) => Promise<any> | never[];
|
@@ -579,25 +579,25 @@ var formatProducts = (lists, state, isRenderGroup = true, isGeneral, isParallelR
|
|
579
579
|
_origin: item
|
580
580
|
};
|
581
581
|
};
|
582
|
-
lists.forEach((item) => {
|
583
|
-
var _a;
|
584
|
-
if (!((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId)) {
|
585
|
-
normalList.push(formItem(item));
|
586
|
-
} else {
|
587
|
-
groupList.push(item);
|
588
|
-
}
|
589
|
-
});
|
590
|
-
let groups = groupList.reduce((prev, item) => {
|
591
|
-
var _a;
|
592
|
-
const groupId = (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId;
|
593
|
-
if (!prev[groupId]) {
|
594
|
-
prev[groupId] = [];
|
595
|
-
}
|
596
|
-
prev[groupId].push(item);
|
597
|
-
return prev;
|
598
|
-
}, {});
|
599
582
|
console.log(normalList, "normalList");
|
600
583
|
if (isRenderGroup) {
|
584
|
+
lists.forEach((item) => {
|
585
|
+
var _a;
|
586
|
+
if (!((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId)) {
|
587
|
+
normalList.push(formItem(item));
|
588
|
+
} else {
|
589
|
+
groupList.push(item);
|
590
|
+
}
|
591
|
+
});
|
592
|
+
let groups = groupList.reduce((prev, item) => {
|
593
|
+
var _a;
|
594
|
+
const groupId = (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId;
|
595
|
+
if (!prev[groupId]) {
|
596
|
+
prev[groupId] = [];
|
597
|
+
}
|
598
|
+
prev[groupId].push(item);
|
599
|
+
return prev;
|
600
|
+
}, {});
|
601
601
|
return Object.values(groups).map((d) => formItem((0, import_utils3.concatBookings)(d))).concat(normalList);
|
602
602
|
} else {
|
603
603
|
return lists == null ? void 0 : lists.map((item) => formItem(item));
|
@@ -0,0 +1,50 @@
|
|
1
|
+
export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
|
2
|
+
export declare const uniqueByField: (arr: any[], field: string) => any[];
|
3
|
+
export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[];
|
4
|
+
/**
|
5
|
+
* @title: 判断两个时间是否在同一个时间段内
|
6
|
+
* @description:
|
7
|
+
* @param {number} time1 开始时间
|
8
|
+
* @param {number} time2 结束时间
|
9
|
+
* @param {number} interval 时间间隔
|
10
|
+
* @return {*}
|
11
|
+
* @Author: zhiwei.Wang
|
12
|
+
* @Date: 2024-08-13 19:37
|
13
|
+
*/
|
14
|
+
export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean;
|
15
|
+
/**
|
16
|
+
* @title: 根据时间间隔格式化服务列表
|
17
|
+
* @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务
|
18
|
+
* @param {any} list 服务列表
|
19
|
+
* @return {*}
|
20
|
+
* @Author: zhiwei.Wang
|
21
|
+
* @Date: 2024-08-13 19:36
|
22
|
+
*/
|
23
|
+
export declare const formatServiceListByTime: (list: any[]) => any[];
|
24
|
+
export declare const isBooking4Shop: (shopId: number, renderType?: string, businessUtils?: any) => any;
|
25
|
+
declare type DataEntry = {
|
26
|
+
total: number;
|
27
|
+
origin_total: number;
|
28
|
+
num: number;
|
29
|
+
quotation_id: number;
|
30
|
+
start_date: string;
|
31
|
+
end_date: string;
|
32
|
+
};
|
33
|
+
declare type ResultStructure = Record<string, Record<string, any>>;
|
34
|
+
export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
|
35
|
+
/**
|
36
|
+
* @title: 是否是跨日预约
|
37
|
+
* @description:
|
38
|
+
* @param {number} shopId
|
39
|
+
* @return {*}
|
40
|
+
* @Author: WangHan
|
41
|
+
* @Date: 2024-11-29 11:19
|
42
|
+
*/
|
43
|
+
export declare const isDayBooking: (shopId: number) => boolean;
|
44
|
+
export declare const isOpenAddTime: (state: any) => boolean;
|
45
|
+
export declare const isShowAddTime: (state: any, currentService: any) => boolean;
|
46
|
+
export declare const editSessionProduct: (cacheItem: any, session: any) => {
|
47
|
+
duration: any;
|
48
|
+
start_time: any;
|
49
|
+
} | undefined;
|
50
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { PisellDrawerProps } from '../../../components/drawer';
|
2
|
+
import '../../../info/service/addService/index.less';
|
3
|
+
interface AddServiceProps {
|
4
|
+
onEdit: any;
|
5
|
+
dispatch?: any;
|
6
|
+
state?: any;
|
7
|
+
drawerProps?: PisellDrawerProps;
|
8
|
+
renderMode?: 'current' | 'drawer';
|
9
|
+
}
|
10
|
+
declare const Info: (props: AddServiceProps) => JSX.Element;
|
11
|
+
export default Info;
|
@@ -0,0 +1,98 @@
|
|
1
|
+
import dayjs from 'dayjs';
|
2
|
+
export declare const getUsableTime: (cacheItem: any) => any;
|
3
|
+
export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
|
4
|
+
startDate: dayjs.Dayjs;
|
5
|
+
usableTime: any;
|
6
|
+
duration: string | number | {
|
7
|
+
type: string;
|
8
|
+
value: number;
|
9
|
+
};
|
10
|
+
locale: string;
|
11
|
+
slice: any;
|
12
|
+
selectProps: {
|
13
|
+
size: string;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
/**
|
17
|
+
* @title: 灵活时长选项
|
18
|
+
* @description:
|
19
|
+
* @param {*} useMemo
|
20
|
+
* @return {*}
|
21
|
+
* @Author: zhiwei.Wang
|
22
|
+
* @Date: 2024-02-23 10:10
|
23
|
+
*/
|
24
|
+
export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
|
25
|
+
label: any;
|
26
|
+
value: any;
|
27
|
+
} | null;
|
28
|
+
export declare const getTimeSlices: ({ state }: any) => {
|
29
|
+
timeSlices: {
|
30
|
+
label: string;
|
31
|
+
value: string;
|
32
|
+
}[];
|
33
|
+
};
|
34
|
+
/**
|
35
|
+
* @title: 时间切片
|
36
|
+
* @description:
|
37
|
+
* @return {*}
|
38
|
+
* @Author: zhiwei.Wang
|
39
|
+
* @Date: 2024-01-09 13:37
|
40
|
+
*/
|
41
|
+
export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
|
42
|
+
timeSlices: {
|
43
|
+
label: string;
|
44
|
+
value: string;
|
45
|
+
}[];
|
46
|
+
durationSlicesBasedOnTime: {
|
47
|
+
label: string;
|
48
|
+
value: number;
|
49
|
+
}[];
|
50
|
+
};
|
51
|
+
/**
|
52
|
+
* @title: 获取资源列表
|
53
|
+
* @description:
|
54
|
+
* @return {*}
|
55
|
+
* @Author: zhiwei.Wang
|
56
|
+
* @Date: 2024-01-09 13:38
|
57
|
+
*/
|
58
|
+
export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
|
59
|
+
list: any;
|
60
|
+
maps: any;
|
61
|
+
};
|
62
|
+
export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
|
63
|
+
/**
|
64
|
+
* @title: 设置默认容量
|
65
|
+
* @description:
|
66
|
+
* @param {any} param1
|
67
|
+
* @return {*}
|
68
|
+
* @Author: zhiwei.Wang
|
69
|
+
* @Date: 2024-09-19 20:26
|
70
|
+
*/
|
71
|
+
export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
|
72
|
+
/**
|
73
|
+
* @title: 将商品内关联的资源id还原成数据
|
74
|
+
* @description:
|
75
|
+
* @param {any} resourcesOriginMap
|
76
|
+
* @param {any} cacheItem
|
77
|
+
* @return {*}
|
78
|
+
* @Author: zhiwei.Wang
|
79
|
+
* @Date: 2024-09-19 20:23
|
80
|
+
*/
|
81
|
+
export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
|
82
|
+
/**
|
83
|
+
* @title: 预生成服务的 extend
|
84
|
+
* @description:
|
85
|
+
* @param {any} param1
|
86
|
+
* @return {*}
|
87
|
+
* @Author: zhiwei.Wang
|
88
|
+
* @Date: 2024-06-01 13:25
|
89
|
+
*/
|
90
|
+
export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
|
91
|
+
/**
|
92
|
+
* @title: 格式化服务列表
|
93
|
+
* @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
|
94
|
+
* 使用with resourceRelation后 返回的resource_relation是实时数据
|
95
|
+
* 这里做一次转换
|
96
|
+
* @param list
|
97
|
+
*/
|
98
|
+
export declare const transServiceList: (list: any[]) => any[];
|
@@ -142,7 +142,8 @@ var getTimeObj = ({
|
|
142
142
|
cacheItem,
|
143
143
|
useStartTime,
|
144
144
|
currentResource,
|
145
|
-
|
145
|
+
// 没有使用该参数
|
146
|
+
// state,
|
146
147
|
durationProps
|
147
148
|
});
|
148
149
|
let obj = (0, import_utils.sliceDayIntoFiveMinutes)(
|
@@ -242,7 +243,8 @@ var setDefaultResource = ({ cacheItem, resources }) => {
|
|
242
243
|
}
|
243
244
|
const defaultResource = defaultOriginalResource.map((d) => {
|
244
245
|
return {
|
245
|
-
...d,
|
246
|
+
// ...d,
|
247
|
+
children: d.children,
|
246
248
|
relation_type: d.relation_type,
|
247
249
|
form_id: item.form_id,
|
248
250
|
relation_id: d.id,
|
@@ -65,6 +65,7 @@ var AddTimeModal = () => {
|
|
65
65
|
const [number, setNumber] = (0, import_react.useState)(1);
|
66
66
|
const originServices = (0, import_react.useRef)([]);
|
67
67
|
const [renderList, setRenderList] = (0, import_react.useState)([]);
|
68
|
+
console.log(renderList, "renderListrenderList");
|
68
69
|
const context = (0, import_useEngineContext.default)();
|
69
70
|
const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
70
71
|
const statusMap = {
|
@@ -126,6 +127,7 @@ var AddTimeModal = () => {
|
|
126
127
|
}
|
127
128
|
return arr.filter(Boolean);
|
128
129
|
}, [(_f = (_e = (_d = state.service) == null ? void 0 : _d.cacheItem) == null ? void 0 : _e._extend) == null ? void 0 : _f.resource]);
|
130
|
+
console.log(currentResource, "currentResource");
|
129
131
|
const getTimeUsableStatus = (time) => {
|
130
132
|
var _a2, _b2;
|
131
133
|
if (!((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend) || !currentResource.length) {
|
@@ -206,6 +208,7 @@ var AddTimeModal = () => {
|
|
206
208
|
setLoading("list");
|
207
209
|
const newList = await _getAddTimeProducts();
|
208
210
|
let list = newList.map((d) => {
|
211
|
+
debugger;
|
209
212
|
let isUsable = (0, import_utils2.isUsableProduct)(d.add_time, state.service.cacheItem);
|
210
213
|
return {
|
211
214
|
...d,
|
@@ -168,9 +168,11 @@ var Resources = ({
|
|
168
168
|
const getIsAutoAllocation = (id) => {
|
169
169
|
return (0, import_utils2.getAutoAllocationStorage)(id);
|
170
170
|
};
|
171
|
+
console.log("resourcesss");
|
171
172
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.map((item) => {
|
172
173
|
var _a2;
|
173
174
|
const cur = _value[item.form_id];
|
175
|
+
console.log(cur, "curcur");
|
174
176
|
const errors = (cur || []).reduce((pre, d) => {
|
175
177
|
return pre.concat((d == null ? void 0 : d.errors) || []);
|
176
178
|
}, []);
|
package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { SelectProps } from 'antd';
|
3
|
+
interface MaxLengthSelectProps<T> extends SelectProps<T> {
|
4
|
+
maxLength: number;
|
5
|
+
}
|
6
|
+
declare const _default: import("react").ForwardRefExoticComponent<Partial<MaxLengthSelectProps<any>> & import("react").RefAttributes<unknown>>;
|
7
|
+
export default _default;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
interface IResourcesProps {
|
4
|
+
[key: string]: any;
|
5
|
+
/** 展示资源的变动情况 */
|
6
|
+
originCacheItem: any;
|
7
|
+
originValue: any;
|
8
|
+
}
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<IResourcesProps, "ref"> & React.RefAttributes<unknown>>;
|
10
|
+
export default _default;
|