@pisell/private-materials 3.2.11 → 3.2.17
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.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/{lib/components/parallelResourcBooking/components/Provider → es/components/appointmentBooking/components}/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.js +78 -0
- package/es/components/appointmentBooking/components/Content/index.less +51 -0
- package/es/components/appointmentBooking/components/Date/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Date/index.js +168 -0
- package/es/components/{parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate → appointmentBooking/components/Date}/index.less +27 -16
- package/{lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate → es/components/appointmentBooking/components/Date}/state.d.ts +0 -1
- package/es/components/{parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate → appointmentBooking/components/Date}/state.js +4 -42
- package/es/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Footer/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Footer/index.js +20 -39
- package/es/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Header/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.js +44 -0
- package/es/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Information/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Information/index.js +178 -0
- package/{lib/components/parallelResourcBooking → es/components/appointmentBooking}/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/ContinueButton/index.js +75 -107
- package/{lib/components/parallelResourcBooking → es/components/appointmentBooking}/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/Item/Total.js +18 -8
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/Item/index.js +27 -22
- package/{lib/components/parallelResourcBooking → es/components/appointmentBooking}/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Content/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Content/index.js +7 -8
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Event/index.d.ts +0 -1
- package/{lib/components/parallelResourcBooking → es/components/appointmentBooking}/components/Provider/Information/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/{lib/components/parallelResourcBooking → es/components/appointmentBooking}/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Resource/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Resource/index.js +68 -0
- package/es/components/appointmentBooking/components/Resource/index.less +0 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Services/index.js +205 -0
- package/es/components/appointmentBooking/components/Services/index.less +17 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +780 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.less +23 -0
- package/es/components/appointmentBooking/hooks.d.ts +25 -0
- package/es/components/appointmentBooking/hooks.js +191 -0
- package/es/components/appointmentBooking/index.d.ts +3 -0
- package/es/components/appointmentBooking/index.js +25 -0
- package/{lib/components/parallelResourcBooking → es/components/appointmentBooking}/index.less +5 -4
- package/{lib/components/parallelResourcBooking → es/components/appointmentBooking}/locales.d.ts +3 -0
- package/es/components/{parallelResourcBooking → appointmentBooking}/locales.js +6 -3
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/resourceDisplay/index.js +2 -2
- package/es/components/eventBooking/components/resourceDisplay/index.less +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +1 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Content/index.js +94 -0
- package/lib/components/appointmentBooking/components/Content/index.less +51 -0
- package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Date/index.js +141 -0
- package/lib/components/{parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate → appointmentBooking/components/Date}/index.less +27 -16
- package/{es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate → lib/components/appointmentBooking/components/Date}/state.d.ts +0 -1
- package/lib/components/{parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate → appointmentBooking/components/Date}/state.js +5 -8
- package/lib/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Footer/index.d.ts +0 -1
- package/lib/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Footer/index.js +15 -33
- package/lib/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Header/index.d.ts +0 -1
- package/lib/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Header/index.js +11 -31
- package/lib/components/appointmentBooking/components/Header/index.less +0 -0
- package/lib/components/appointmentBooking/components/Information/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Information/index.js +151 -0
- package/lib/components/appointmentBooking/components/Information/index.less +92 -0
- package/{es/components/parallelResourcBooking → lib/components/appointmentBooking}/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/ContinueButton/index.js +24 -65
- package/lib/components/appointmentBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/{es/components/parallelResourcBooking → lib/components/appointmentBooking}/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/Item/Total.js +10 -13
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/Item/index.js +18 -17
- package/{es/components/parallelResourcBooking → lib/components/appointmentBooking}/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/index.js +1 -1
- package/lib/components/appointmentBooking/components/Provider/Content/index.d.ts +3 -0
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Content/index.js +6 -6
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/EmptyHolderModal/index.js +1 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Event/index.js +1 -1
- package/lib/components/appointmentBooking/components/Provider/Information/index.d.ts +3 -0
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Information/index.js +1 -1
- package/lib/components/appointmentBooking/components/Provider/Information/index.less +92 -0
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/InformationOptionsModal/index.js +1 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/OrderProductModal/index.js +1 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/RemoveOptionConfirmModal.js +1 -1
- package/lib/components/appointmentBooking/components/Provider/Resource/index.d.ts +3 -0
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Resource/index.js +1 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectHolderModal.js +1 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectProduct/index.js +1 -1
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +99 -0
- package/lib/components/appointmentBooking/components/Resource/index.less +0 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Services/index.js +255 -0
- package/lib/components/appointmentBooking/components/Services/index.less +17 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +990 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.less +23 -0
- package/lib/components/appointmentBooking/hooks.d.ts +25 -0
- package/lib/components/appointmentBooking/hooks.js +154 -0
- package/lib/components/appointmentBooking/index.d.ts +3 -0
- package/lib/components/{parallelResourcBooking → appointmentBooking}/index.js +19 -32
- package/{es/components/parallelResourcBooking → lib/components/appointmentBooking}/index.less +5 -4
- package/{es/components/parallelResourcBooking → lib/components/appointmentBooking}/locales.d.ts +3 -0
- package/lib/components/{parallelResourcBooking → appointmentBooking}/locales.js +7 -4
- package/lib/components/{parallelResourcBooking → appointmentBooking}/mock.js +1 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/status.js +1 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/type.js +1 -1
- package/lib/components/{parallelResourcBooking → appointmentBooking}/utils.js +1 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/resourceDisplay/index.js +2 -2
- package/lib/components/eventBooking/components/resourceDisplay/index.less +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +1 -0
- package/lib/hooks/useEngineContext.js +14 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lowcode/parallel-resource-booking/meta.ts +69 -0
- package/package.json +2 -2
- package/es/components/parallelResourcBooking/components/ErrorTip/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/ErrorTip/index.js +0 -14
- package/es/components/parallelResourcBooking/components/ErrorTip/index.less +0 -51
- package/es/components/parallelResourcBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/OpenCard/index.js +0 -65
- package/es/components/parallelResourcBooking/components/OpenCard/index.less +0 -52
- package/es/components/parallelResourcBooking/components/Provider/Header/index.js +0 -75
- package/es/components/parallelResourcBooking/components/Provider/Header/index.less +0 -2
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -173
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +0 -36
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +0 -33
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +0 -30
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.js +0 -337
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.less +0 -82
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.js +0 -52
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.less +0 -6
- package/es/components/parallelResourcBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/parallelResourcBooking/components/eventCard/index.js +0 -116
- package/es/components/parallelResourcBooking/components/eventCard/index.less +0 -81
- package/es/components/parallelResourcBooking/components/productCard/index.d.ts +0 -16
- package/es/components/parallelResourcBooking/components/productCard/index.js +0 -79
- package/es/components/parallelResourcBooking/components/productCard/index.less +0 -60
- package/es/components/parallelResourcBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/parallelResourcBooking/components/progressBar/index.js +0 -93
- package/es/components/parallelResourcBooking/components/progressBar/index.less +0 -15
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.js +0 -148
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.less +0 -95
- package/es/components/parallelResourcBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/parallelResourcBooking/components/resourceUsability/index.js +0 -44
- package/es/components/parallelResourcBooking/components/resourceUsability/index.less +0 -40
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +0 -127
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.js +0 -142
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.less +0 -222
- package/es/components/parallelResourcBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/parallelResourcBooking/components/selectHolder/index.js +0 -118
- package/es/components/parallelResourcBooking/components/selectHolder/index.less +0 -70
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.js +0 -168
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.less +0 -74
- package/es/components/parallelResourcBooking/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/index.js +0 -58
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.js +0 -30
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.less +0 -51
- package/lib/components/parallelResourcBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/OpenCard/index.js +0 -90
- package/lib/components/parallelResourcBooking/components/OpenCard/index.less +0 -52
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.less +0 -2
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -196
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +0 -70
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +0 -66
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +0 -69
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.js +0 -248
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.less +0 -82
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.js +0 -79
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.less +0 -6
- package/lib/components/parallelResourcBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/parallelResourcBooking/components/eventCard/index.js +0 -124
- package/lib/components/parallelResourcBooking/components/eventCard/index.less +0 -81
- package/lib/components/parallelResourcBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/parallelResourcBooking/components/productCard/index.js +0 -77
- package/lib/components/parallelResourcBooking/components/productCard/index.less +0 -60
- package/lib/components/parallelResourcBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/parallelResourcBooking/components/progressBar/index.js +0 -100
- package/lib/components/parallelResourcBooking/components/progressBar/index.less +0 -15
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.js +0 -116
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.less +0 -95
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.js +0 -76
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.less +0 -40
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +0 -135
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.js +0 -125
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.less +0 -222
- package/lib/components/parallelResourcBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/parallelResourcBooking/components/selectHolder/index.js +0 -106
- package/lib/components/parallelResourcBooking/components/selectHolder/index.less +0 -70
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.js +0 -146
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.less +0 -74
- package/lib/components/parallelResourcBooking/index.d.ts +0 -4
- /package/es/components/{parallelResourcBooking → appointmentBooking}/assets/alert-circle.png +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/assets/calendar-heart.svg +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/assets/compass.svg +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/assets/image.svg +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/assets/phone.svg +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/assets/shopping-cart.svg +0 -0
- /package/es/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Footer/index.less +0 -0
- /package/es/components/{parallelResourcBooking/components/Provider/Cart/ContinueButton → appointmentBooking/components/Header}/index.less +0 -0
- /package/es/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Information/index.less +0 -0
- /package/{lib/components/parallelResourcBooking → es/components/appointmentBooking}/components/Provider/Cart/ContinueButton/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/Item/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/index.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Content/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/EmptyHolderModal/index.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/EmptyHolderModal/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Event/index.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Event/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Information/index.js +0 -0
- /package/{lib/components/parallelResourcBooking → es/components/appointmentBooking}/components/Provider/Information/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/InformationOptionsModal/index.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/InformationOptionsModal/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/OrderProductModal/index.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/OrderProductModal/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/RemoveOptionConfirmModal.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Resource/index.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Resource/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectHolderModal.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectProduct/index.d.ts +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectProduct/index.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectProduct/index.less +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/mock.d.ts +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/mock.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/status.d.ts +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/status.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/type.d.ts +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/type.js +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/utils.d.ts +0 -0
- /package/es/components/{parallelResourcBooking → appointmentBooking}/utils.js +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/assets/alert-circle.png +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/assets/calendar-heart.svg +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/assets/compass.svg +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/assets/image.svg +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/assets/phone.svg +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/assets/shopping-cart.svg +0 -0
- /package/lib/components/{parallelResourcBooking/components/Provider → appointmentBooking/components}/Footer/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/Item/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Cart/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Content/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/EmptyHolderModal/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Event/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/InformationOptionsModal/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/OrderProductModal/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/Resource/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectProduct/index.d.ts +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/components/Provider/SelectProduct/index.less +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/mock.d.ts +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/status.d.ts +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/type.d.ts +0 -0
- /package/lib/components/{parallelResourcBooking → appointmentBooking}/utils.d.ts +0 -0
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
.calendar-date-item {
|
|
2
|
-
// position: relative;
|
|
3
|
-
// display: flex;
|
|
4
|
-
// height: 52px;
|
|
5
|
-
// width: 48px;
|
|
6
|
-
// flex-direction: column;
|
|
7
|
-
// justify-content: center;
|
|
8
|
-
// align-items: center;
|
|
9
|
-
// flex: 1 0 0;
|
|
10
|
-
border-radius: 8px;
|
|
11
|
-
// border: 1px solid #d0d5dd;
|
|
12
|
-
// cursor: pointer;
|
|
13
|
-
// margin: 0 auto;
|
|
14
|
-
|
|
15
|
-
.calendar-header-wrap {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// .current-month {
|
|
21
|
-
// position: absolute;
|
|
22
|
-
// bottom: 54px;
|
|
23
|
-
// left: 0;
|
|
24
|
-
// font-family: Inter;
|
|
25
|
-
// font-size: 12px;
|
|
26
|
-
// font-style: normal;
|
|
27
|
-
// font-weight: 600;
|
|
28
|
-
// line-height: 20px;
|
|
29
|
-
// min-width: 70px;
|
|
30
|
-
// text-wrap: nowrap;
|
|
31
|
-
// }
|
|
32
|
-
|
|
33
|
-
// .current-year {
|
|
34
|
-
// position: absolute;
|
|
35
|
-
// bottom: 74px;
|
|
36
|
-
// left: 0;
|
|
37
|
-
// }
|
|
38
|
-
|
|
39
|
-
.day-text {
|
|
40
|
-
position: absolute;
|
|
41
|
-
left: 0;
|
|
42
|
-
right: 0;
|
|
43
|
-
bottom: 0;
|
|
44
|
-
top: 10px;
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
color: #101828;
|
|
49
|
-
text-align: center;
|
|
50
|
-
/* Text md/Medium */
|
|
51
|
-
font-size: 16px;
|
|
52
|
-
font-style: normal;
|
|
53
|
-
font-weight: bold;
|
|
54
|
-
line-height: 24px;
|
|
55
|
-
/* 150% */
|
|
56
|
-
|
|
57
|
-
// &.day-line::before {
|
|
58
|
-
// position: absolute;
|
|
59
|
-
// bottom: 6px;
|
|
60
|
-
// content: '';
|
|
61
|
-
// width: 28px;
|
|
62
|
-
// height: 4px;
|
|
63
|
-
// flex-shrink: 0;
|
|
64
|
-
// border-radius: 2px;
|
|
65
|
-
// background: var(--lineColor);
|
|
66
|
-
// }
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.disabledSelect {
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.other-month-days {
|
|
74
|
-
background: none;
|
|
75
|
-
border: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.disabledDate {
|
|
79
|
-
background: var(--Gray-100, #f2f4f7);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.selectDate {
|
|
83
|
-
.calendar-content {
|
|
84
|
-
border: 2px solid var(--Primary-600, #7f56d9);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import Dayjs from 'dayjs';
|
|
2
|
-
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
3
|
-
import { statusList, statusMessage } from "../../../../../status";
|
|
4
|
-
import "./index.less";
|
|
5
|
-
Dayjs.extend(isSameOrBefore);
|
|
6
|
-
var Status = function Status(props) {
|
|
7
|
-
var _props$type = props.type,
|
|
8
|
-
type = _props$type === void 0 ? 'call_to_book' : _props$type,
|
|
9
|
-
style = props.style;
|
|
10
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
-
className: "event-calendar-status",
|
|
12
|
-
style: style
|
|
13
|
-
}, statusList.map(function (i) {
|
|
14
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className: "item",
|
|
16
|
-
key: i.status
|
|
17
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
style: {
|
|
19
|
-
height: i.status == 0 ? '20px' : '4px',
|
|
20
|
-
background: i.color
|
|
21
|
-
},
|
|
22
|
-
className: "item-icon"
|
|
23
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
24
|
-
className: "item-text"
|
|
25
|
-
}, i.status === 2 ? statusMessage(type) : i.text));
|
|
26
|
-
}));
|
|
27
|
-
};
|
|
28
|
-
export default Status;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.event-calendar-status {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-wrap: wrap;
|
|
4
|
-
margin: 10px 30px;
|
|
5
|
-
|
|
6
|
-
.item {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
flex-shrink: 1;
|
|
10
|
-
width: 50%;
|
|
11
|
-
margin-bottom: 12px;
|
|
12
|
-
.item-icon {
|
|
13
|
-
margin-right: 10px;
|
|
14
|
-
width: 20px;
|
|
15
|
-
border-radius: 4px;
|
|
16
|
-
}
|
|
17
|
-
.item-text {
|
|
18
|
-
color: #101828;
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
font-style: normal;
|
|
21
|
-
font-weight: 400;
|
|
22
|
-
line-height: 20px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
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."); }
|
|
3
|
-
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); }
|
|
4
|
-
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; }
|
|
5
|
-
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; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { useState, useImperativeHandle, forwardRef, useMemo } from 'react';
|
|
8
|
-
import Dayjs from 'dayjs';
|
|
9
|
-
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
10
|
-
import { PisellModal, Iconfont } from '@pisell/materials';
|
|
11
|
-
import { isMobile } from '@pisell/utils';
|
|
12
|
-
Dayjs.extend(isSameOrBefore);
|
|
13
|
-
import { weekListText, statusColor, getStatus, getCallToBookStatus } from "./state";
|
|
14
|
-
import classNames from 'classnames';
|
|
15
|
-
import Status from "./Status";
|
|
16
|
-
|
|
17
|
-
// 引入组件
|
|
18
|
-
// import { useDrawer } from '@/pisell-design/hooks';
|
|
19
|
-
|
|
20
|
-
import "./index.less";
|
|
21
|
-
var CalendarDate = function CalendarDate(props, ref) {
|
|
22
|
-
var cutTime = props.cutTime,
|
|
23
|
-
getLimitData = props.getLimitData,
|
|
24
|
-
dateLimitData = props.dateLimitData,
|
|
25
|
-
loading = props.loading;
|
|
26
|
-
var _useState = useState(''),
|
|
27
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
-
productId = _useState2[0],
|
|
29
|
-
setProductId = _useState2[1];
|
|
30
|
-
var _useState3 = useState(''),
|
|
31
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
32
|
-
currentDate = _useState4[0],
|
|
33
|
-
setCurrentDate = _useState4[1];
|
|
34
|
-
// 生成7天的时间列表
|
|
35
|
-
var _useState5 = useState([]),
|
|
36
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
37
|
-
dateMonthList = _useState6[0],
|
|
38
|
-
setDateMonthList = _useState6[1];
|
|
39
|
-
// 切换的月份
|
|
40
|
-
var _useState7 = useState(function () {
|
|
41
|
-
return Dayjs();
|
|
42
|
-
}),
|
|
43
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
44
|
-
currentMonth = _useState8[0],
|
|
45
|
-
setCurrentMonth = _useState8[1];
|
|
46
|
-
var _useState9 = useState(false),
|
|
47
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
48
|
-
open = _useState10[0],
|
|
49
|
-
setOpen = _useState10[1];
|
|
50
|
-
|
|
51
|
-
// 计算开始渲染的列
|
|
52
|
-
var startingColumn = 0 % 7; // 0 表示星期日
|
|
53
|
-
var columns = Array.from({
|
|
54
|
-
length: 7
|
|
55
|
-
}, function (_, index) {
|
|
56
|
-
return (index + 7 - startingColumn) % 7;
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @title: 接口和当前月进行对比
|
|
61
|
-
* @description:
|
|
62
|
-
* @param {*}
|
|
63
|
-
* @return {*}
|
|
64
|
-
* @Author: 严文强
|
|
65
|
-
* @Date: 2024-02-01 20:30
|
|
66
|
-
*/
|
|
67
|
-
var calendarDays = function calendarDays(days, list) {
|
|
68
|
-
var index = list === null || list === void 0 ? void 0 : list.find(function (i) {
|
|
69
|
-
return (i === null || i === void 0 ? void 0 : i.day) == days;
|
|
70
|
-
});
|
|
71
|
-
if (!index) {
|
|
72
|
-
return 0;
|
|
73
|
-
} else {
|
|
74
|
-
return index === null || index === void 0 ? void 0 : index.status;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @title: 获取当前月日期
|
|
80
|
-
* @description:
|
|
81
|
-
* @param {*}
|
|
82
|
-
* @return {*}
|
|
83
|
-
* @Author: 严文强
|
|
84
|
-
* @Date: 2024-02-01 20:30
|
|
85
|
-
*/
|
|
86
|
-
var getMonthData = function getMonthData(date) {
|
|
87
|
-
var firstDay = Dayjs("".concat(date, "-01"));
|
|
88
|
-
var startDay = firstDay.day(); // 获取本月1号是星期几
|
|
89
|
-
var daysInMonth = firstDay.daysInMonth(); // 获取本月总天数
|
|
90
|
-
var monthData = [];
|
|
91
|
-
// 填充前面的空白
|
|
92
|
-
for (var i = 0; i < startDay; i++) {
|
|
93
|
-
monthData.push({
|
|
94
|
-
day: -1,
|
|
95
|
-
// 表示前一个月的日期
|
|
96
|
-
date: Dayjs(firstDay).subtract(startDay - i, 'day').toDate()
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// 填充本月的日期
|
|
101
|
-
for (var _i = 1; _i <= daysInMonth; _i++) {
|
|
102
|
-
monthData.push({
|
|
103
|
-
day: _i,
|
|
104
|
-
date: firstDay.date(_i).format('YYYY-MM-DD')
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
return monthData;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @title: 计算是否已经切换到当前月,如果是则禁止继续点击上一个月
|
|
112
|
-
* @description:
|
|
113
|
-
* @param {*}
|
|
114
|
-
* @return {*}
|
|
115
|
-
* @Author: 严文强
|
|
116
|
-
* @Date: 2024-02-01 19:27
|
|
117
|
-
*/
|
|
118
|
-
var lastMonthDisable = function lastMonthDisable() {
|
|
119
|
-
var newCurrentMonth = currentMonth.format('YYYY-MM');
|
|
120
|
-
var lastDate = Dayjs(newCurrentMonth).subtract(1, 'month');
|
|
121
|
-
return lastDate.isBefore(Dayjs(), 'month');
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @title: 切换上个月
|
|
126
|
-
* @description:
|
|
127
|
-
* @param {*}
|
|
128
|
-
* @return {*}
|
|
129
|
-
* @Author: 严文强
|
|
130
|
-
* @Date: 2024-02-01 19:15
|
|
131
|
-
*/
|
|
132
|
-
var lastMonth = function lastMonth() {
|
|
133
|
-
var currentLastText = currentMonth.format('YYYY-MM');
|
|
134
|
-
var newLastMonth = Dayjs(currentLastText).subtract(1, 'month');
|
|
135
|
-
setCurrentMonth(newLastMonth);
|
|
136
|
-
setDateMonthList(getMonthData(newLastMonth.format('YYYY-MM')));
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @title: 切换下个月
|
|
141
|
-
* @description:
|
|
142
|
-
* @param {*}
|
|
143
|
-
* @return {*}
|
|
144
|
-
* @Author: 严文强
|
|
145
|
-
* @Date: 2024-02-01 19:15
|
|
146
|
-
*/
|
|
147
|
-
var nextMonth = function nextMonth() {
|
|
148
|
-
var currentMonthText = currentMonth.format('YYYY-MM');
|
|
149
|
-
var newNextMonth = Dayjs(currentMonthText).add(1, 'month');
|
|
150
|
-
setCurrentMonth(newNextMonth);
|
|
151
|
-
setDateMonthList(getMonthData(newNextMonth.format('YYYY-MM')));
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* @title: 根据当前选择的月份剩余量
|
|
156
|
-
* @description:
|
|
157
|
-
* @return {*}
|
|
158
|
-
* @Author: xiangxiang.shao
|
|
159
|
-
* @Date: 2024-02-07 14:13
|
|
160
|
-
*/
|
|
161
|
-
// useEffect(() => {
|
|
162
|
-
// if (productId) {
|
|
163
|
-
// getLimitData(
|
|
164
|
-
// currentMonth.format('YYYY-MM-01'),
|
|
165
|
-
// currentMonth.endOf('month').format('YYYY-MM-DD')
|
|
166
|
-
// );
|
|
167
|
-
// }
|
|
168
|
-
// }, [currentMonth.format('YYYY-MM'), productId]);
|
|
169
|
-
|
|
170
|
-
var CalendarDateContent = useMemo(function () {
|
|
171
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
172
|
-
className: 'calendar-box'
|
|
173
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
174
|
-
className: 'calendar-header'
|
|
175
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
176
|
-
className: classNames('calendar-last-month', {
|
|
177
|
-
'last-month-disabled': lastMonthDisable()
|
|
178
|
-
}),
|
|
179
|
-
onClick: function onClick() {
|
|
180
|
-
if (lastMonthDisable()) return;
|
|
181
|
-
lastMonth();
|
|
182
|
-
}
|
|
183
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
184
|
-
type: "pisell2-chevron-left"
|
|
185
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
186
|
-
className: 'calendar-current-month'
|
|
187
|
-
}, currentMonth.format('MMMM YYYY')), /*#__PURE__*/React.createElement("div", {
|
|
188
|
-
className: 'calendar-next-month',
|
|
189
|
-
onClick: function onClick() {
|
|
190
|
-
nextMonth();
|
|
191
|
-
}
|
|
192
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
193
|
-
type: "pisell2-chevron-right"
|
|
194
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
195
|
-
className: 'calendar-content'
|
|
196
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
197
|
-
className: 'calendar-weeks'
|
|
198
|
-
}, columns.map(function (col) {
|
|
199
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
200
|
-
key: col,
|
|
201
|
-
className: 'calendar-weeks-items'
|
|
202
|
-
}, weekListText[Number(col)]);
|
|
203
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
204
|
-
className: 'calendar-days'
|
|
205
|
-
}, dateMonthList.map(function (day, index) {
|
|
206
|
-
var date = Dayjs(day.date).format('YYYY-MM-DD');
|
|
207
|
-
var _getStatus = getStatus(dateLimitData, date, cutTime),
|
|
208
|
-
status = _getStatus.status,
|
|
209
|
-
disabled = _getStatus.disabled;
|
|
210
|
-
var isShowCallToBook = getCallToBookStatus(date, dateLimitData, cutTime);
|
|
211
|
-
// 在当天和cut-off time的日期之前这段日期,如果某天还存在可预约的商品,才显示Call to book。
|
|
212
|
-
var currentStatus = isShowCallToBook && (status === 'lots_of_space' || status === 'filling_up_fast') ? 'call_to_book' : status;
|
|
213
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
214
|
-
key: index,
|
|
215
|
-
className: classNames('calendar-days-items', {
|
|
216
|
-
disabledDate: disabled || loading,
|
|
217
|
-
disabledSelect: status === 'sold_out',
|
|
218
|
-
selectDate: currentDate === date,
|
|
219
|
-
'other-month-days': (day === null || day === void 0 ? void 0 : day.day) < 1
|
|
220
|
-
}),
|
|
221
|
-
onClick: function onClick() {
|
|
222
|
-
if (loading) return;
|
|
223
|
-
props.dateChange(date);
|
|
224
|
-
// hideModal();
|
|
225
|
-
}
|
|
226
|
-
}, (day === null || day === void 0 ? void 0 : day.day) >= 1 && /*#__PURE__*/React.createElement("div", {
|
|
227
|
-
style: {
|
|
228
|
-
'--lineColor': !loading ? statusColor[currentStatus] : ''
|
|
229
|
-
},
|
|
230
|
-
className: classNames('day-text', {
|
|
231
|
-
'day-line': !disabled
|
|
232
|
-
})
|
|
233
|
-
}, (day === null || day === void 0 ? void 0 : day.day) < 1 ? '' : day === null || day === void 0 ? void 0 : day.day));
|
|
234
|
-
}))), /*#__PURE__*/React.createElement(Status, {
|
|
235
|
-
style: {
|
|
236
|
-
margin: 0
|
|
237
|
-
}
|
|
238
|
-
}));
|
|
239
|
-
}, [currentMonth, dateMonthList, getLimitData, currentDate]);
|
|
240
|
-
useImperativeHandle(ref, function () {
|
|
241
|
-
return {
|
|
242
|
-
open: function open(date, id) {
|
|
243
|
-
// setProductId(id);
|
|
244
|
-
// showModal();
|
|
245
|
-
setOpen(true);
|
|
246
|
-
var daysText = Dayjs(date).format('YYYY-MM');
|
|
247
|
-
setCurrentMonth(Dayjs(date));
|
|
248
|
-
setCurrentDate(date);
|
|
249
|
-
setDateMonthList(getMonthData(daysText));
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
});
|
|
253
|
-
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
254
|
-
open: open,
|
|
255
|
-
title: 'device',
|
|
256
|
-
mobileModalHeight: 'auto',
|
|
257
|
-
platform: isMobile() ? 'h5' : 'pc',
|
|
258
|
-
bodyStyle: {
|
|
259
|
-
padding: isMobile() ? '16px 24px' : 32
|
|
260
|
-
},
|
|
261
|
-
destroyOnClose: true,
|
|
262
|
-
className: "select-holder-modal",
|
|
263
|
-
footer: null,
|
|
264
|
-
onCancel: function onCancel() {
|
|
265
|
-
return setOpen(false);
|
|
266
|
-
}
|
|
267
|
-
}, CalendarDateContent);
|
|
268
|
-
};
|
|
269
|
-
export default /*#__PURE__*/forwardRef(CalendarDate);
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
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."); }
|
|
3
|
-
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); }
|
|
4
|
-
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; }
|
|
5
|
-
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; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { forwardRef, useImperativeHandle, useState, useRef } from 'react';
|
|
8
|
-
import classNames from 'classnames';
|
|
9
|
-
import dayjs from 'dayjs';
|
|
10
|
-
import { Iconfont } from '@pisell/materials';
|
|
11
|
-
import Status from "../CalendarDate/Status";
|
|
12
|
-
import CalendarWeek from "../CalendarDate/CalenDateWeek";
|
|
13
|
-
import CalendarDate from "../CalendarDate";
|
|
14
|
-
import { mock } from "../../../../mock";
|
|
15
|
-
import OpenCard from "../../../OpenCard";
|
|
16
|
-
// import { getProductAvailableCount } from '../../serve';
|
|
17
|
-
import "./index.less";
|
|
18
|
-
var SelectDate = function SelectDate(_ref, ref) {
|
|
19
|
-
var currentDate = _ref.currentDate,
|
|
20
|
-
detail = _ref.detail,
|
|
21
|
-
currentDateChange = _ref.currentDateChange,
|
|
22
|
-
setSurplusDisabledChange = _ref.setSurplusDisabledChange,
|
|
23
|
-
cutTime = _ref.cutTime,
|
|
24
|
-
setCutTime = _ref.setCutTime,
|
|
25
|
-
showCalendarPopup = _ref.showCalendarPopup;
|
|
26
|
-
// 缓存剩余量数据
|
|
27
|
-
var _useState = useState(mock.availability_calendar.limitData),
|
|
28
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
-
dateLimitData = _useState2[0],
|
|
30
|
-
setDateLimitData = _useState2[1];
|
|
31
|
-
var calendarDateRef = useRef(null);
|
|
32
|
-
useImperativeHandle(ref, function () {
|
|
33
|
-
return {};
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
// const _getProductAvailableCount = useRequest(getProductAvailableCount, {
|
|
37
|
-
// manual: true,
|
|
38
|
-
// onSuccess: (res) => {
|
|
39
|
-
// const data = res?.data || [];
|
|
40
|
-
// const dates = data?.dates || [];
|
|
41
|
-
// const dateData = { ...dateLimitData };
|
|
42
|
-
// dates.forEach((item: any) => {
|
|
43
|
-
// dateData[item.date] = item;
|
|
44
|
-
// });
|
|
45
|
-
// setDateLimitData(dateData);
|
|
46
|
-
|
|
47
|
-
// const cutTimeData = {
|
|
48
|
-
// shop_time: data?.shop_time,
|
|
49
|
-
// ...data?.cut_off_time,
|
|
50
|
-
// };
|
|
51
|
-
// setCutTime(cutTimeData);
|
|
52
|
-
// // 这里加个校验 如果当天时间不可用, 自动寻找一个可用的时间
|
|
53
|
-
// // try {
|
|
54
|
-
// // const { status, disabled } = getStatus(
|
|
55
|
-
// // dateData,
|
|
56
|
-
// // currentDate,
|
|
57
|
-
// // cutTimeData
|
|
58
|
-
// // );
|
|
59
|
-
// // if (disabled || status === 'sold_out') {
|
|
60
|
-
// // for (let key in dateData) {
|
|
61
|
-
// // const { status, disabled } = getStatus(dateData, key, cutTimeData);
|
|
62
|
-
// // if (!disabled && status !== 'sold_out') {
|
|
63
|
-
// // currentDateChange(key);
|
|
64
|
-
// // return;
|
|
65
|
-
// // }
|
|
66
|
-
// // }
|
|
67
|
-
// // }
|
|
68
|
-
// // } catch (err) {}
|
|
69
|
-
// // const { status, disabled } = getStatus(data, currentDate);
|
|
70
|
-
// // if (disabled || status === 'sold_out') {
|
|
71
|
-
// // setSurplusDisabled(true);
|
|
72
|
-
// // } else {
|
|
73
|
-
// // setSurplusDisabled(false);
|
|
74
|
-
// // }
|
|
75
|
-
// },
|
|
76
|
-
// });
|
|
77
|
-
|
|
78
|
-
// 当日是否还有剩余量,没有则不加入购物车(此处为了处理以前遗留逻辑问题)
|
|
79
|
-
// useEffect(() => {
|
|
80
|
-
// const { status, disabled } = getStatus(dateLimitData, currentDate, cutTime);
|
|
81
|
-
// const isShowCallToBook = getCallToBookStatus(
|
|
82
|
-
// currentDate,
|
|
83
|
-
// dateLimitData,
|
|
84
|
-
// cutTime
|
|
85
|
-
// );
|
|
86
|
-
// let surplusDisabledChange = false;
|
|
87
|
-
// if (
|
|
88
|
-
// disabled ||
|
|
89
|
-
// status === 'sold_out' ||
|
|
90
|
-
// isShowCallToBook
|
|
91
|
-
// // ||
|
|
92
|
-
// // _getProductAvailableCount.loading
|
|
93
|
-
// ) {
|
|
94
|
-
// surplusDisabledChange = true;
|
|
95
|
-
// } else {
|
|
96
|
-
// surplusDisabledChange = false;
|
|
97
|
-
// }
|
|
98
|
-
// setSurplusDisabledChange(surplusDisabledChange);
|
|
99
|
-
// }, [currentDate, dateLimitData, cutTime]);
|
|
100
|
-
// _getProductAvailableCount.loading,
|
|
101
|
-
|
|
102
|
-
var getLimitData = function getLimitData(start_date, end_date) {
|
|
103
|
-
// 列举start_date至end_date的全部日期
|
|
104
|
-
var _list = [];
|
|
105
|
-
var start = dayjs(start_date);
|
|
106
|
-
var end = dayjs(end_date);
|
|
107
|
-
while (start.isBefore(end)) {
|
|
108
|
-
_list.push(start.format('YYYY-MM-DD'));
|
|
109
|
-
start.add(1, 'days');
|
|
110
|
-
}
|
|
111
|
-
console.log('dateLimitData', dateLimitData);
|
|
112
|
-
console.log('_list', _list);
|
|
113
|
-
// 判断是否有全部缓存数据
|
|
114
|
-
var haveAllData = _list.find(function (item) {
|
|
115
|
-
return !dateLimitData[item];
|
|
116
|
-
});
|
|
117
|
-
if (haveAllData) {
|
|
118
|
-
// _getProductAvailableCount.run(detail.id, {
|
|
119
|
-
// start_date: start_date,
|
|
120
|
-
// end_date: end_date,
|
|
121
|
-
// });
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* @title: 头部额外内容
|
|
127
|
-
* @description:
|
|
128
|
-
* @return {*}
|
|
129
|
-
* @Author: WangHan
|
|
130
|
-
* @Date: 2025-01-14 14:52
|
|
131
|
-
*/
|
|
132
|
-
var extraHeader = function extraHeader() {
|
|
133
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
134
|
-
onClick: function onClick(e) {
|
|
135
|
-
var _calendarDateRef$curr;
|
|
136
|
-
e.stopPropagation();
|
|
137
|
-
calendarDateRef === null || calendarDateRef === void 0 || (_calendarDateRef$curr = calendarDateRef.current) === null || _calendarDateRef$curr === void 0 || _calendarDateRef$curr.open(currentDate, detail === null || detail === void 0 ? void 0 : detail.id);
|
|
138
|
-
}
|
|
139
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
140
|
-
type: "pisell2-calendar",
|
|
141
|
-
className: classNames('calendar-icon')
|
|
142
|
-
}));
|
|
143
|
-
};
|
|
144
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(OpenCard, {
|
|
145
|
-
title: 'Select a date',
|
|
146
|
-
initOpen: true,
|
|
147
|
-
showArrow: false,
|
|
148
|
-
isClick: false,
|
|
149
|
-
extra: showCalendarPopup ? extraHeader() : null
|
|
150
|
-
}, /*#__PURE__*/React.createElement(CalendarWeek
|
|
151
|
-
// dateChange={(date) => {
|
|
152
|
-
// currentDateChange(date);
|
|
153
|
-
// }}
|
|
154
|
-
, {
|
|
155
|
-
currentDate: currentDate,
|
|
156
|
-
productId: detail === null || detail === void 0 ? void 0 : detail.id,
|
|
157
|
-
cutTime: cutTime
|
|
158
|
-
// getLimitData={getLimitData}
|
|
159
|
-
,
|
|
160
|
-
dateLimitData: dateLimitData
|
|
161
|
-
}), /*#__PURE__*/React.createElement(Status, null)), /*#__PURE__*/React.createElement(CalendarDate, {
|
|
162
|
-
ref: calendarDateRef
|
|
163
|
-
// dateChange={(date: string) => {
|
|
164
|
-
// currentDateChange(date);
|
|
165
|
-
// }}
|
|
166
|
-
,
|
|
167
|
-
cutTime: cutTime,
|
|
168
|
-
dateLimitData: dateLimitData
|
|
169
|
-
// getLimitData={getLimitData}
|
|
170
|
-
// loading={_getProductAvailableCount.loading}
|
|
171
|
-
}));
|
|
172
|
-
};
|
|
173
|
-
export default /*#__PURE__*/forwardRef(SelectDate);
|
package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface BookingAvailabilityCalendarProps {
|
|
4
|
-
showCalendarPopup?: boolean;
|
|
5
|
-
onDateChange?: (date: string) => void;
|
|
6
|
-
detail?: any;
|
|
7
|
-
currentDate?: string;
|
|
8
|
-
cutTime?: any;
|
|
9
|
-
onCurrentDateChange?: (date: string) => void;
|
|
10
|
-
onCutTimeChange?: (date: string) => void;
|
|
11
|
-
onSurplusDisabledChange?: (date: boolean) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const BookingAvailabilityCalendar: React.FC<BookingAvailabilityCalendarProps>;
|
|
14
|
-
export default BookingAvailabilityCalendar;
|
package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import SelectDate from "./components/SelectDate";
|
|
3
|
-
import { mock } from "../../mock";
|
|
4
|
-
import "./index.less";
|
|
5
|
-
var BookingAvailabilityCalendar = function BookingAvailabilityCalendar(props) {
|
|
6
|
-
var _mock$availability_ca, _mock$availability_ca2, _mock$availability_ca3;
|
|
7
|
-
var showCalendarPopup = props.showCalendarPopup,
|
|
8
|
-
onDateChange = props.onDateChange,
|
|
9
|
-
_props$detail = props.detail,
|
|
10
|
-
detail = _props$detail === void 0 ? (_mock$availability_ca = mock.availability_calendar) === null || _mock$availability_ca === void 0 ? void 0 : _mock$availability_ca.detail : _props$detail,
|
|
11
|
-
_props$currentDate = props.currentDate,
|
|
12
|
-
currentDate = _props$currentDate === void 0 ? (_mock$availability_ca2 = mock.availability_calendar) === null || _mock$availability_ca2 === void 0 ? void 0 : _mock$availability_ca2.currentDate : _props$currentDate,
|
|
13
|
-
_props$cutTime = props.cutTime,
|
|
14
|
-
cutTime = _props$cutTime === void 0 ? (_mock$availability_ca3 = mock.availability_calendar) === null || _mock$availability_ca3 === void 0 ? void 0 : _mock$availability_ca3.cutTime : _props$cutTime,
|
|
15
|
-
onCurrentDateChange = props.onCurrentDateChange,
|
|
16
|
-
onCutTimeChange = props.onCutTimeChange,
|
|
17
|
-
onSurplusDisabledChange = props.onSurplusDisabledChange;
|
|
18
|
-
console.log(detail, currentDate, cutTime, 'detail, currentDate, cutTime');
|
|
19
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
className: "event-booking-availability-calendar"
|
|
21
|
-
}, /*#__PURE__*/React.createElement(SelectDate, {
|
|
22
|
-
showCalendarPopup: showCalendarPopup,
|
|
23
|
-
detail: detail,
|
|
24
|
-
currentDate: currentDate,
|
|
25
|
-
currentDateChange: function currentDateChange(date) {
|
|
26
|
-
onCurrentDateChange(date);
|
|
27
|
-
if (currentDate !== date) {
|
|
28
|
-
onDateChange(date);
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
setSurplusDisabledChange: onSurplusDisabledChange,
|
|
32
|
-
cutTime: cutTime,
|
|
33
|
-
setCutTime: onCutTimeChange
|
|
34
|
-
}));
|
|
35
|
-
};
|
|
36
|
-
export default BookingAvailabilityCalendar;
|