@pisell/private-materials 3.2.12 → 3.2.13
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 +14 -18
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/booking/addons/index.js +7 -5
- package/es/components/booking/addons/model.d.ts +1 -10
- 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/model.d.ts +1 -10
- 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/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +3 -3
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.js +58 -48
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.js +57 -5
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
- package/es/components/booking/info2/service/editService/index.js +4 -3
- package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/es/components/booking/info2/service/editService/utils.js +18 -0
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +3 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -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/unknow.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/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/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/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/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/model.d.ts +1 -9
- 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/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -2
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/booking/addons/index.js +7 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- 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/model.d.ts +1 -10
- 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/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +2 -2
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.js +3 -2
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.js +3 -2
- package/lib/components/booking/info2/service/addService/utils.js +36 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -2
- package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/lib/components/booking/info2/service/editService/utils.js +48 -0
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +3 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -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/unknow.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/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/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/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/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/model.d.ts +1 -9
- 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/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/package.json +4 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/parallelResourceBooking/assets/alert-circle.png +0 -0
- package/es/components/parallelResourceBooking/assets/calendar-heart.svg +0 -5
- package/es/components/parallelResourceBooking/assets/compass.svg +0 -13
- package/es/components/parallelResourceBooking/assets/image.svg +0 -5
- package/es/components/parallelResourceBooking/assets/phone.svg +0 -5
- package/es/components/parallelResourceBooking/assets/shopping-cart.svg +0 -10
- package/es/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/ErrorTip/index.js +0 -14
- package/es/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
- package/es/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/OpenCard/index.js +0 -65
- package/es/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
- package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js +0 -274
- package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +0 -46
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +0 -63
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +0 -87
- package/es/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Cart/index.js +0 -30
- package/es/components/parallelResourceBooking/components/Provider/Cart/index.less +0 -2
- package/es/components/parallelResourceBooking/components/Provider/Content/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Content/index.js +0 -65
- package/es/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Event/index.js +0 -93
- package/es/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
- package/es/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Footer/index.js +0 -76
- package/es/components/parallelResourceBooking/components/Provider/Footer/index.less +0 -64
- package/es/components/parallelResourceBooking/components/Provider/Header/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Header/index.js +0 -75
- package/es/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
- package/es/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Information/index.js +0 -178
- package/es/components/parallelResourceBooking/components/Provider/Information/index.less +0 -92
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -90
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -256
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -173
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -36
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -33
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -30
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.js +0 -337
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.js +0 -52
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
- package/es/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/parallelResourceBooking/components/eventCard/index.js +0 -116
- package/es/components/parallelResourceBooking/components/eventCard/index.less +0 -81
- package/es/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
- package/es/components/parallelResourceBooking/components/productCard/index.js +0 -79
- package/es/components/parallelResourceBooking/components/productCard/index.less +0 -60
- package/es/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/parallelResourceBooking/components/progressBar/index.js +0 -93
- package/es/components/parallelResourceBooking/components/progressBar/index.less +0 -15
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -148
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
- package/es/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/parallelResourceBooking/components/resourceUsability/index.js +0 -44
- package/es/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
- package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -127
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -142
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
- package/es/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/parallelResourceBooking/components/selectHolder/index.js +0 -118
- package/es/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -168
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
- package/es/components/parallelResourceBooking/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/index.js +0 -58
- package/es/components/parallelResourceBooking/index.less +0 -22
- package/es/components/parallelResourceBooking/locales.d.ts +0 -216
- package/es/components/parallelResourceBooking/locales.js +0 -251
- package/es/components/parallelResourceBooking/mock.d.ts +0 -627
- package/es/components/parallelResourceBooking/mock.js +0 -1172
- package/es/components/parallelResourceBooking/status.d.ts +0 -21
- package/es/components/parallelResourceBooking/status.js +0 -51
- package/es/components/parallelResourceBooking/type.d.ts +0 -17
- package/es/components/parallelResourceBooking/type.js +0 -1
- package/es/components/parallelResourceBooking/utils.d.ts +0 -45
- package/es/components/parallelResourceBooking/utils.js +0 -99
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/parallelResourceBooking/assets/alert-circle.png +0 -0
- package/lib/components/parallelResourceBooking/assets/calendar-heart.svg +0 -5
- package/lib/components/parallelResourceBooking/assets/compass.svg +0 -13
- package/lib/components/parallelResourceBooking/assets/image.svg +0 -5
- package/lib/components/parallelResourceBooking/assets/phone.svg +0 -5
- package/lib/components/parallelResourceBooking/assets/shopping-cart.svg +0 -10
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.js +0 -30
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
- package/lib/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/OpenCard/index.js +0 -90
- package/lib/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
- package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js +0 -158
- package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +0 -82
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +0 -92
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +0 -87
- package/lib/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Cart/index.js +0 -59
- package/lib/components/parallelResourceBooking/components/Provider/Cart/index.less +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.js +0 -90
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +0 -60
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.js +0 -100
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Footer/index.js +0 -87
- package/lib/components/parallelResourceBooking/components/Provider/Footer/index.less +0 -64
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.js +0 -80
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.js +0 -151
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.less +0 -92
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +0 -57
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -97
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -196
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -70
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -66
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -69
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.js +0 -248
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.js +0 -79
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
- package/lib/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/parallelResourceBooking/components/eventCard/index.js +0 -124
- package/lib/components/parallelResourceBooking/components/eventCard/index.less +0 -81
- package/lib/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/parallelResourceBooking/components/productCard/index.js +0 -77
- package/lib/components/parallelResourceBooking/components/productCard/index.less +0 -60
- package/lib/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/parallelResourceBooking/components/progressBar/index.js +0 -100
- package/lib/components/parallelResourceBooking/components/progressBar/index.less +0 -15
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -116
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.js +0 -76
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -135
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -125
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
- package/lib/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/parallelResourceBooking/components/selectHolder/index.js +0 -106
- package/lib/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -146
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
- package/lib/components/parallelResourceBooking/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/index.js +0 -78
- package/lib/components/parallelResourceBooking/index.less +0 -22
- package/lib/components/parallelResourceBooking/locales.d.ts +0 -216
- package/lib/components/parallelResourceBooking/locales.js +0 -239
- package/lib/components/parallelResourceBooking/mock.d.ts +0 -627
- package/lib/components/parallelResourceBooking/mock.js +0 -1352
- package/lib/components/parallelResourceBooking/status.d.ts +0 -21
- package/lib/components/parallelResourceBooking/status.js +0 -70
- package/lib/components/parallelResourceBooking/type.d.ts +0 -17
- package/lib/components/parallelResourceBooking/type.js +0 -17
- package/lib/components/parallelResourceBooking/utils.d.ts +0 -45
- package/lib/components/parallelResourceBooking/utils.js +0 -90
- package/lowcode/parallel-resource-booking/meta.ts +0 -69
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.tsx
|
|
30
|
-
var CalenDateWeek_exports = {};
|
|
31
|
-
__export(CalenDateWeek_exports, {
|
|
32
|
-
default: () => CalenDateWeek_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(CalenDateWeek_exports);
|
|
35
|
-
var import_react = require("react");
|
|
36
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
37
|
-
var import_materials = require("@pisell/materials");
|
|
38
|
-
var import_classnames = __toESM(require("classnames"));
|
|
39
|
-
var import_WeekItem = __toESM(require("./WeekItem/index"));
|
|
40
|
-
var import_state = require("../state");
|
|
41
|
-
var import_CallToBook = __toESM(require("./CallToBook"));
|
|
42
|
-
var import_index = require("./index.less");
|
|
43
|
-
var CalenDateWeek = (props) => {
|
|
44
|
-
const {
|
|
45
|
-
currentDate,
|
|
46
|
-
dateChange,
|
|
47
|
-
productId,
|
|
48
|
-
timeList,
|
|
49
|
-
dateLimitData,
|
|
50
|
-
getLimitData,
|
|
51
|
-
cutTime
|
|
52
|
-
} = props;
|
|
53
|
-
const [weekList, setWeekList] = (0, import_react.useState)([]);
|
|
54
|
-
const [showCallToBook, setShowCallToBook] = (0, import_react.useState)(false);
|
|
55
|
-
const weekListRef = (0, import_react.useRef)(null);
|
|
56
|
-
const [selectStatus, setSelectStatus] = (0, import_react.useState)("");
|
|
57
|
-
const [selectDisabled, setSelectDisabled] = (0, import_react.useState)(false);
|
|
58
|
-
const initCurrentWeekData = (dateText) => {
|
|
59
|
-
let currentMoment = (0, import_dayjs.default)(dateText);
|
|
60
|
-
let startOfWeek = currentMoment.startOf("week");
|
|
61
|
-
if (startOfWeek.day() !== 0) {
|
|
62
|
-
startOfWeek.subtract(startOfWeek.day(), "days");
|
|
63
|
-
}
|
|
64
|
-
let weekDates = [];
|
|
65
|
-
for (let i = 0; i < 7; i++) {
|
|
66
|
-
let date = startOfWeek.clone().add(i, "days");
|
|
67
|
-
weekDates.push(date.format("YYYY-MM-DD"));
|
|
68
|
-
}
|
|
69
|
-
return weekDates;
|
|
70
|
-
};
|
|
71
|
-
const initWeekData = () => {
|
|
72
|
-
const list = initCurrentWeekData(currentDate);
|
|
73
|
-
setWeekList(list);
|
|
74
|
-
};
|
|
75
|
-
const init = () => {
|
|
76
|
-
initWeekData();
|
|
77
|
-
};
|
|
78
|
-
(0, import_react.useEffect)(() => {
|
|
79
|
-
init();
|
|
80
|
-
}, [currentDate]);
|
|
81
|
-
(0, import_react.useEffect)(() => {
|
|
82
|
-
const { status, disabled } = (0, import_state.getStatus)(dateLimitData, currentDate, cutTime);
|
|
83
|
-
const isShow = (0, import_state.getCallToBookStatus)(currentDate, dateLimitData, cutTime);
|
|
84
|
-
if (isShow && (status === "lots_of_space" || status === "filling_up_fast")) {
|
|
85
|
-
setShowCallToBook(true);
|
|
86
|
-
} else {
|
|
87
|
-
setShowCallToBook(false);
|
|
88
|
-
}
|
|
89
|
-
setSelectStatus(status);
|
|
90
|
-
setSelectDisabled(disabled);
|
|
91
|
-
}, [currentDate, timeList, cutTime]);
|
|
92
|
-
(0, import_react.useEffect)(() => {
|
|
93
|
-
const index = weekList.findIndex((date) => date === currentDate);
|
|
94
|
-
if ((weekListRef == null ? void 0 : weekListRef.current) && index !== -1) {
|
|
95
|
-
weekListRef.current.scrollLeft = (index - 1) * 50;
|
|
96
|
-
}
|
|
97
|
-
}, [currentDate, weekList]);
|
|
98
|
-
return /* @__PURE__ */ React.createElement("div", { className: "calendar-week-wrap" }, /* @__PURE__ */ React.createElement("div", { ref: weekListRef, className: "calendar-week-list" }, /* @__PURE__ */ React.createElement(
|
|
99
|
-
import_WeekItem.default,
|
|
100
|
-
{
|
|
101
|
-
weekList,
|
|
102
|
-
currentDate,
|
|
103
|
-
dateChange,
|
|
104
|
-
isActive: true,
|
|
105
|
-
productId,
|
|
106
|
-
setCurrentDate: dateChange,
|
|
107
|
-
timeList,
|
|
108
|
-
dateLimitData,
|
|
109
|
-
cutTime
|
|
110
|
-
}
|
|
111
|
-
)), selectStatus === "sold_out" || selectDisabled ? /* @__PURE__ */ React.createElement("div", { className: "disabled-status" }, /* @__PURE__ */ React.createElement(
|
|
112
|
-
import_materials.Iconfont,
|
|
113
|
-
{
|
|
114
|
-
className: (0, import_classnames.default)(
|
|
115
|
-
"disabled-icon",
|
|
116
|
-
"iconhourglass_disabled_wght300_24px"
|
|
117
|
-
)
|
|
118
|
-
}
|
|
119
|
-
), /* @__PURE__ */ React.createElement("div", { className: "disabled-status-text" }, selectDisabled ? 2 : 5)) : null, /* @__PURE__ */ React.createElement(import_CallToBook.default, { show: showCallToBook }));
|
|
120
|
-
};
|
|
121
|
-
var CalenDateWeek_default = CalenDateWeek;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.calendar-week-wrap {
|
|
2
|
-
.calendar-week-list {
|
|
3
|
-
width: 100%;
|
|
4
|
-
padding: 6px 8px 16px;
|
|
5
|
-
overflow-x: auto;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.calendar-icon {
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.disabled-status {
|
|
14
|
-
display: flex;
|
|
15
|
-
padding: 14px 0px;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
align-items: center;
|
|
19
|
-
align-self: stretch;
|
|
20
|
-
border-radius: 8px;
|
|
21
|
-
background: #fafafa;
|
|
22
|
-
margin-bottom: 10px;
|
|
23
|
-
.disabled-icon {
|
|
24
|
-
font-size: 24px;
|
|
25
|
-
color: #919191;
|
|
26
|
-
}
|
|
27
|
-
.disabled-status-text {
|
|
28
|
-
color: #1b1b1b;
|
|
29
|
-
text-align: center;
|
|
30
|
-
|
|
31
|
-
/* Text sm/Regular */
|
|
32
|
-
font-size: 14px;
|
|
33
|
-
font-weight: 400;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.tsx
|
|
20
|
-
var DayItem_exports = {};
|
|
21
|
-
__export(DayItem_exports, {
|
|
22
|
-
default: () => DayItem_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(DayItem_exports);
|
|
25
|
-
var import_state = require("../../state");
|
|
26
|
-
var import_index = require("./index.less");
|
|
27
|
-
var DayItem = (props) => {
|
|
28
|
-
const { week, date, status } = props;
|
|
29
|
-
return /* @__PURE__ */ React.createElement("div", { className: "day-item-calendar-content" }, week ? /* @__PURE__ */ React.createElement("span", { className: "week" }, week) : null, /* @__PURE__ */ React.createElement("div", { className: "date" }, date), /* @__PURE__ */ React.createElement(
|
|
30
|
-
"span",
|
|
31
|
-
{
|
|
32
|
-
className: "line",
|
|
33
|
-
style: { backgroundColor: import_state.statusColor[status] }
|
|
34
|
-
}
|
|
35
|
-
));
|
|
36
|
-
};
|
|
37
|
-
var DayItem_default = DayItem;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
.day-item-calendar-content {
|
|
2
|
-
display: flex;
|
|
3
|
-
padding: 8px;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-items: center;
|
|
7
|
-
gap: 4px;
|
|
8
|
-
flex: 1 0 0;
|
|
9
|
-
color: var(--Gray-900, #101828);
|
|
10
|
-
text-align: center;
|
|
11
|
-
font-size: 14px;
|
|
12
|
-
font-weight: 400;
|
|
13
|
-
line-height: 20px;
|
|
14
|
-
align-self: stretch;
|
|
15
|
-
border: 1px solid var(--Gray-300, #d0d5dd);
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
border-radius: 8px;
|
|
18
|
-
|
|
19
|
-
.date {
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.line {
|
|
24
|
-
width: 28px;
|
|
25
|
-
height: 4px;
|
|
26
|
-
border-radius: 2px;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.tsx
|
|
30
|
-
var Item_exports = {};
|
|
31
|
-
__export(Item_exports, {
|
|
32
|
-
default: () => Item_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(Item_exports);
|
|
35
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
36
|
-
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
|
|
37
|
-
var import_classnames = __toESM(require("classnames"));
|
|
38
|
-
var import_index = require("./index.less");
|
|
39
|
-
var import_utils = require("../../../utils");
|
|
40
|
-
var import_DayItem = __toESM(require("./DayItem"));
|
|
41
|
-
import_dayjs.default.extend(import_isSameOrBefore.default);
|
|
42
|
-
var Item = (props) => {
|
|
43
|
-
const { date, status, disabled, select, onClick, showMonth, dateText, week } = props;
|
|
44
|
-
return /* @__PURE__ */ React.createElement(
|
|
45
|
-
"div",
|
|
46
|
-
{
|
|
47
|
-
className: (0, import_classnames.default)("calendar-date-item", {
|
|
48
|
-
disabledDate: disabled,
|
|
49
|
-
disabledSelect: status === "sold_out",
|
|
50
|
-
selectDate: select
|
|
51
|
-
}),
|
|
52
|
-
onClick: () => onClick && onClick(date)
|
|
53
|
-
},
|
|
54
|
-
showMonth && /* @__PURE__ */ React.createElement("div", { className: "calendar-header-wrap" }, /* @__PURE__ */ React.createElement("div", { className: (0, import_classnames.default)("current-month", "current-year") }, (0, import_utils.formatDate)(dateText, "YYYY")), /* @__PURE__ */ React.createElement("div", { className: "current-month" }, (0, import_utils.formatDate)(dateText, "MMM"))),
|
|
55
|
-
/* @__PURE__ */ React.createElement(import_DayItem.default, { week, date, status })
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
var Item_default = Item;
|
|
@@ -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,55 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.tsx
|
|
30
|
-
var Status_exports = {};
|
|
31
|
-
__export(Status_exports, {
|
|
32
|
-
default: () => Status_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(Status_exports);
|
|
35
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
36
|
-
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
|
|
37
|
-
var import_status = require("../../../../../status");
|
|
38
|
-
var import_index = require("./index.less");
|
|
39
|
-
import_dayjs.default.extend(import_isSameOrBefore.default);
|
|
40
|
-
var Status = (props) => {
|
|
41
|
-
const { type = "call_to_book", style } = props;
|
|
42
|
-
return /* @__PURE__ */ React.createElement("div", { className: "event-calendar-status", style }, import_status.statusList.map((i) => {
|
|
43
|
-
return /* @__PURE__ */ React.createElement("div", { className: "item", key: i.status }, /* @__PURE__ */ React.createElement(
|
|
44
|
-
"div",
|
|
45
|
-
{
|
|
46
|
-
style: {
|
|
47
|
-
height: i.status == 0 ? "20px" : "4px",
|
|
48
|
-
background: i.color
|
|
49
|
-
},
|
|
50
|
-
className: "item-icon"
|
|
51
|
-
}
|
|
52
|
-
), /* @__PURE__ */ React.createElement("span", { className: "item-text" }, i.status === 2 ? (0, import_status.statusMessage)(type) : i.text));
|
|
53
|
-
}));
|
|
54
|
-
};
|
|
55
|
-
var Status_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,196 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.tsx
|
|
30
|
-
var CalendarDate_exports = {};
|
|
31
|
-
__export(CalendarDate_exports, {
|
|
32
|
-
default: () => CalendarDate_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(CalendarDate_exports);
|
|
35
|
-
var import_react = require("react");
|
|
36
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
37
|
-
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
|
|
38
|
-
var import_materials = require("@pisell/materials");
|
|
39
|
-
var import_utils = require("@pisell/utils");
|
|
40
|
-
var import_state = require("./state");
|
|
41
|
-
var import_classnames = __toESM(require("classnames"));
|
|
42
|
-
var import_Status = __toESM(require("./Status"));
|
|
43
|
-
var import_index = require("./index.less");
|
|
44
|
-
import_dayjs.default.extend(import_isSameOrBefore.default);
|
|
45
|
-
var CalendarDate = (props, ref) => {
|
|
46
|
-
const { cutTime, getLimitData, dateLimitData, loading } = props;
|
|
47
|
-
const [productId, setProductId] = (0, import_react.useState)("");
|
|
48
|
-
const [currentDate, setCurrentDate] = (0, import_react.useState)("");
|
|
49
|
-
const [dateMonthList, setDateMonthList] = (0, import_react.useState)([]);
|
|
50
|
-
const [currentMonth, setCurrentMonth] = (0, import_react.useState)(() => {
|
|
51
|
-
return (0, import_dayjs.default)();
|
|
52
|
-
});
|
|
53
|
-
const [open, setOpen] = (0, import_react.useState)(false);
|
|
54
|
-
const startingColumn = 0 % 7;
|
|
55
|
-
const columns = Array.from(
|
|
56
|
-
{ length: 7 },
|
|
57
|
-
(_, index) => (index + 7 - startingColumn) % 7
|
|
58
|
-
);
|
|
59
|
-
const calendarDays = (days, list) => {
|
|
60
|
-
let index = list == null ? void 0 : list.find((i) => (i == null ? void 0 : i.day) == days);
|
|
61
|
-
if (!index) {
|
|
62
|
-
return 0;
|
|
63
|
-
} else {
|
|
64
|
-
return index == null ? void 0 : index.status;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const getMonthData = (date) => {
|
|
68
|
-
const firstDay = (0, import_dayjs.default)(`${date}-01`);
|
|
69
|
-
const startDay = firstDay.day();
|
|
70
|
-
const daysInMonth = firstDay.daysInMonth();
|
|
71
|
-
const monthData = [];
|
|
72
|
-
for (let i = 0; i < startDay; i++) {
|
|
73
|
-
monthData.push({
|
|
74
|
-
day: -1,
|
|
75
|
-
// 表示前一个月的日期
|
|
76
|
-
date: (0, import_dayjs.default)(firstDay).subtract(startDay - i, "day").toDate()
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
for (let i = 1; i <= daysInMonth; i++) {
|
|
80
|
-
monthData.push({
|
|
81
|
-
day: i,
|
|
82
|
-
date: firstDay.date(i).format("YYYY-MM-DD")
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
return monthData;
|
|
86
|
-
};
|
|
87
|
-
const lastMonthDisable = () => {
|
|
88
|
-
let newCurrentMonth = currentMonth.format("YYYY-MM");
|
|
89
|
-
let lastDate = (0, import_dayjs.default)(newCurrentMonth).subtract(1, "month");
|
|
90
|
-
return lastDate.isBefore((0, import_dayjs.default)(), "month");
|
|
91
|
-
};
|
|
92
|
-
const lastMonth = () => {
|
|
93
|
-
let currentLastText = currentMonth.format("YYYY-MM");
|
|
94
|
-
let newLastMonth = (0, import_dayjs.default)(currentLastText).subtract(1, "month");
|
|
95
|
-
setCurrentMonth(newLastMonth);
|
|
96
|
-
setDateMonthList(getMonthData(newLastMonth.format("YYYY-MM")));
|
|
97
|
-
};
|
|
98
|
-
const nextMonth = () => {
|
|
99
|
-
let currentMonthText = currentMonth.format("YYYY-MM");
|
|
100
|
-
let newNextMonth = (0, import_dayjs.default)(currentMonthText).add(1, "month");
|
|
101
|
-
setCurrentMonth(newNextMonth);
|
|
102
|
-
setDateMonthList(getMonthData(newNextMonth.format("YYYY-MM")));
|
|
103
|
-
};
|
|
104
|
-
const CalendarDateContent = (0, import_react.useMemo)(() => {
|
|
105
|
-
return /* @__PURE__ */ React.createElement("div", { className: "calendar-box" }, /* @__PURE__ */ React.createElement("div", { className: "calendar-header" }, /* @__PURE__ */ React.createElement(
|
|
106
|
-
"div",
|
|
107
|
-
{
|
|
108
|
-
className: (0, import_classnames.default)("calendar-last-month", {
|
|
109
|
-
"last-month-disabled": lastMonthDisable()
|
|
110
|
-
}),
|
|
111
|
-
onClick: () => {
|
|
112
|
-
if (lastMonthDisable()) return;
|
|
113
|
-
lastMonth();
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
/* @__PURE__ */ React.createElement(import_materials.Iconfont, { type: "pisell2-chevron-left" })
|
|
117
|
-
), /* @__PURE__ */ React.createElement("div", { className: "calendar-current-month" }, currentMonth.format("MMMM YYYY")), /* @__PURE__ */ React.createElement(
|
|
118
|
-
"div",
|
|
119
|
-
{
|
|
120
|
-
className: "calendar-next-month",
|
|
121
|
-
onClick: () => {
|
|
122
|
-
nextMonth();
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
/* @__PURE__ */ React.createElement(import_materials.Iconfont, { type: "pisell2-chevron-right" })
|
|
126
|
-
)), /* @__PURE__ */ React.createElement("div", { className: "calendar-content" }, /* @__PURE__ */ React.createElement("div", { className: "calendar-weeks" }, columns.map((col) => /* @__PURE__ */ React.createElement("div", { key: col, className: "calendar-weeks-items" }, import_state.weekListText[Number(col)]))), /* @__PURE__ */ React.createElement("div", { className: "calendar-days" }, dateMonthList.map((day, index) => {
|
|
127
|
-
const date = (0, import_dayjs.default)(day.date).format("YYYY-MM-DD");
|
|
128
|
-
const { status, disabled } = (0, import_state.getStatus)(
|
|
129
|
-
dateLimitData,
|
|
130
|
-
date,
|
|
131
|
-
cutTime
|
|
132
|
-
);
|
|
133
|
-
const isShowCallToBook = (0, import_state.getCallToBookStatus)(
|
|
134
|
-
date,
|
|
135
|
-
dateLimitData,
|
|
136
|
-
cutTime
|
|
137
|
-
);
|
|
138
|
-
const currentStatus = isShowCallToBook && (status === "lots_of_space" || status === "filling_up_fast") ? "call_to_book" : status;
|
|
139
|
-
return /* @__PURE__ */ React.createElement(
|
|
140
|
-
"div",
|
|
141
|
-
{
|
|
142
|
-
key: index,
|
|
143
|
-
className: (0, import_classnames.default)("calendar-days-items", {
|
|
144
|
-
disabledDate: disabled || loading,
|
|
145
|
-
disabledSelect: status === "sold_out",
|
|
146
|
-
selectDate: currentDate === date,
|
|
147
|
-
"other-month-days": (day == null ? void 0 : day.day) < 1
|
|
148
|
-
}),
|
|
149
|
-
onClick: () => {
|
|
150
|
-
if (loading) return;
|
|
151
|
-
props.dateChange(date);
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
(day == null ? void 0 : day.day) >= 1 && /* @__PURE__ */ React.createElement(
|
|
155
|
-
"div",
|
|
156
|
-
{
|
|
157
|
-
style: {
|
|
158
|
-
"--lineColor": !loading ? import_state.statusColor[currentStatus] : ""
|
|
159
|
-
},
|
|
160
|
-
className: (0, import_classnames.default)("day-text", {
|
|
161
|
-
"day-line": !disabled
|
|
162
|
-
})
|
|
163
|
-
},
|
|
164
|
-
(day == null ? void 0 : day.day) < 1 ? "" : day == null ? void 0 : day.day
|
|
165
|
-
)
|
|
166
|
-
);
|
|
167
|
-
}))), /* @__PURE__ */ React.createElement(import_Status.default, { style: { margin: 0 } }));
|
|
168
|
-
}, [currentMonth, dateMonthList, getLimitData, currentDate]);
|
|
169
|
-
(0, import_react.useImperativeHandle)(ref, () => {
|
|
170
|
-
return {
|
|
171
|
-
open: (date, id) => {
|
|
172
|
-
setOpen(true);
|
|
173
|
-
let daysText = (0, import_dayjs.default)(date).format("YYYY-MM");
|
|
174
|
-
setCurrentMonth((0, import_dayjs.default)(date));
|
|
175
|
-
setCurrentDate(date);
|
|
176
|
-
setDateMonthList(getMonthData(daysText));
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
});
|
|
180
|
-
return /* @__PURE__ */ React.createElement(
|
|
181
|
-
import_materials.PisellModal,
|
|
182
|
-
{
|
|
183
|
-
open,
|
|
184
|
-
title: "device",
|
|
185
|
-
mobileModalHeight: "auto",
|
|
186
|
-
platform: (0, import_utils.isMobile)() ? "h5" : "pc",
|
|
187
|
-
bodyStyle: { padding: (0, import_utils.isMobile)() ? "16px 24px" : 32 },
|
|
188
|
-
destroyOnClose: true,
|
|
189
|
-
className: "select-holder-modal",
|
|
190
|
-
footer: null,
|
|
191
|
-
onCancel: () => setOpen(false)
|
|
192
|
-
},
|
|
193
|
-
CalendarDateContent
|
|
194
|
-
);
|
|
195
|
-
};
|
|
196
|
-
var CalendarDate_default = (0, import_react.forwardRef)(CalendarDate);
|