@pisell/private-materials 3.2.10 → 3.2.12
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 +34 -14
- 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/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/addons/model.js +5 -5
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/addNote/index.js +1 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- 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 +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/es/components/eventBooking/components/Provider/SelectProduct/index.js +77 -0
- package/es/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/parallelResourceBooking/assets/alert-circle.png +0 -0
- package/es/components/parallelResourceBooking/assets/calendar-heart.svg +5 -0
- package/es/components/parallelResourceBooking/assets/compass.svg +13 -0
- package/es/components/parallelResourceBooking/assets/image.svg +5 -0
- package/es/components/parallelResourceBooking/assets/phone.svg +5 -0
- package/es/components/parallelResourceBooking/assets/shopping-cart.svg +10 -0
- package/es/components/parallelResourceBooking/components/ErrorTip/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/ErrorTip/index.js +14 -0
- package/es/components/parallelResourceBooking/components/ErrorTip/index.less +51 -0
- package/es/components/parallelResourceBooking/components/OpenCard/index.d.ts +4 -0
- package/es/components/parallelResourceBooking/components/OpenCard/index.js +65 -0
- package/es/components/parallelResourceBooking/components/OpenCard/index.less +52 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js +274 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +46 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +63 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +87 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/index.js +30 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/index.less +2 -0
- package/es/components/parallelResourceBooking/components/Provider/Content/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Content/index.js +65 -0
- package/es/components/parallelResourceBooking/components/Provider/Content/index.less +31 -0
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +34 -0
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/es/components/parallelResourceBooking/components/Provider/Event/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Event/index.js +93 -0
- package/es/components/parallelResourceBooking/components/Provider/Event/index.less +20 -0
- package/es/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Footer/index.js +76 -0
- package/es/components/parallelResourceBooking/components/Provider/Footer/index.less +64 -0
- package/es/components/parallelResourceBooking/components/Provider/Header/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Header/index.js +75 -0
- package/es/components/parallelResourceBooking/components/Provider/Header/index.less +2 -0
- package/es/components/parallelResourceBooking/components/Provider/Information/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Information/index.js +178 -0
- package/es/components/parallelResourceBooking/components/Provider/Information/index.less +92 -0
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +34 -0
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +27 -0
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
- package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +31 -0
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.js +79 -0
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.less +46 -0
- package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +2 -0
- package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +90 -0
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +77 -0
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +131 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +26 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +65 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +69 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +152 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +20 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +4 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +38 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +28 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +269 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +256 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +173 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +36 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +2 -0
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +38 -0
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +2 -0
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +33 -0
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -0
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +30 -0
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.js +337 -0
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.less +82 -0
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +17 -0
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.js +52 -0
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.less +6 -0
- package/es/components/parallelResourceBooking/components/eventCard/index.d.ts +14 -0
- package/es/components/parallelResourceBooking/components/eventCard/index.js +116 -0
- package/es/components/parallelResourceBooking/components/eventCard/index.less +81 -0
- package/es/components/parallelResourceBooking/components/productCard/index.d.ts +16 -0
- package/es/components/parallelResourceBooking/components/productCard/index.js +79 -0
- package/es/components/parallelResourceBooking/components/productCard/index.less +60 -0
- package/es/components/parallelResourceBooking/components/progressBar/index.d.ts +16 -0
- package/es/components/parallelResourceBooking/components/progressBar/index.js +93 -0
- package/es/components/parallelResourceBooking/components/progressBar/index.less +15 -0
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +23 -0
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.js +148 -0
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.less +95 -0
- package/es/components/parallelResourceBooking/components/resourceUsability/index.d.ts +12 -0
- package/es/components/parallelResourceBooking/components/resourceUsability/index.js +44 -0
- package/es/components/parallelResourceBooking/components/resourceUsability/index.less +40 -0
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +9 -0
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +37 -0
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +11 -0
- package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +127 -0
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.js +142 -0
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.less +222 -0
- package/es/components/parallelResourceBooking/components/selectHolder/index.d.ts +22 -0
- package/es/components/parallelResourceBooking/components/selectHolder/index.js +118 -0
- package/es/components/parallelResourceBooking/components/selectHolder/index.less +70 -0
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.js +168 -0
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.less +74 -0
- package/es/components/parallelResourceBooking/index.d.ts +3 -0
- package/es/components/parallelResourceBooking/index.js +58 -0
- package/es/components/parallelResourceBooking/index.less +22 -0
- package/es/components/parallelResourceBooking/locales.d.ts +216 -0
- package/es/components/parallelResourceBooking/locales.js +251 -0
- package/es/components/parallelResourceBooking/mock.d.ts +627 -0
- package/es/components/parallelResourceBooking/mock.js +1172 -0
- package/es/components/parallelResourceBooking/status.d.ts +21 -0
- package/es/components/parallelResourceBooking/status.js +51 -0
- package/es/components/parallelResourceBooking/type.d.ts +17 -0
- package/es/components/parallelResourceBooking/type.js +1 -0
- package/es/components/parallelResourceBooking/utils.d.ts +45 -0
- package/es/components/parallelResourceBooking/utils.js +99 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- 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 +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +69 -0
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
- package/lib/components/parallelResourceBooking/assets/alert-circle.png +0 -0
- package/lib/components/parallelResourceBooking/assets/calendar-heart.svg +5 -0
- package/lib/components/parallelResourceBooking/assets/compass.svg +13 -0
- package/lib/components/parallelResourceBooking/assets/image.svg +5 -0
- package/lib/components/parallelResourceBooking/assets/phone.svg +5 -0
- package/lib/components/parallelResourceBooking/assets/shopping-cart.svg +10 -0
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.js +30 -0
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.less +51 -0
- package/lib/components/parallelResourceBooking/components/OpenCard/index.d.ts +4 -0
- package/lib/components/parallelResourceBooking/components/OpenCard/index.js +90 -0
- package/lib/components/parallelResourceBooking/components/OpenCard/index.less +52 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js +158 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +82 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +92 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +87 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/index.js +59 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/index.less +2 -0
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.js +90 -0
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.less +31 -0
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +60 -0
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.js +100 -0
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.less +20 -0
- package/lib/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Footer/index.js +87 -0
- package/lib/components/parallelResourceBooking/components/Provider/Footer/index.less +64 -0
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.js +80 -0
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.less +2 -0
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.js +151 -0
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.less +92 -0
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +67 -0
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +57 -0
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
- package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +62 -0
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.js +90 -0
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.less +46 -0
- package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +2 -0
- package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +97 -0
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +69 -0
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +131 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +55 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +78 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +86 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +121 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +37 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +4 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +58 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +55 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +196 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +198 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +122 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +70 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +2 -0
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +75 -0
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +2 -0
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +66 -0
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -0
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +69 -0
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.js +248 -0
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.less +82 -0
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +17 -0
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.js +79 -0
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.less +6 -0
- package/lib/components/parallelResourceBooking/components/eventCard/index.d.ts +14 -0
- package/lib/components/parallelResourceBooking/components/eventCard/index.js +124 -0
- package/lib/components/parallelResourceBooking/components/eventCard/index.less +81 -0
- package/lib/components/parallelResourceBooking/components/productCard/index.d.ts +16 -0
- package/lib/components/parallelResourceBooking/components/productCard/index.js +77 -0
- package/lib/components/parallelResourceBooking/components/productCard/index.less +60 -0
- package/lib/components/parallelResourceBooking/components/progressBar/index.d.ts +16 -0
- package/lib/components/parallelResourceBooking/components/progressBar/index.js +100 -0
- package/lib/components/parallelResourceBooking/components/progressBar/index.less +15 -0
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +23 -0
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.js +116 -0
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.less +95 -0
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.d.ts +12 -0
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.js +76 -0
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.less +40 -0
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +9 -0
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +73 -0
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +11 -0
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +135 -0
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.js +125 -0
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.less +222 -0
- package/lib/components/parallelResourceBooking/components/selectHolder/index.d.ts +22 -0
- package/lib/components/parallelResourceBooking/components/selectHolder/index.js +106 -0
- package/lib/components/parallelResourceBooking/components/selectHolder/index.less +70 -0
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.js +146 -0
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.less +74 -0
- package/lib/components/parallelResourceBooking/index.d.ts +3 -0
- package/lib/components/parallelResourceBooking/index.js +78 -0
- package/lib/components/parallelResourceBooking/index.less +22 -0
- package/lib/components/parallelResourceBooking/locales.d.ts +216 -0
- package/lib/components/parallelResourceBooking/locales.js +239 -0
- package/lib/components/parallelResourceBooking/mock.d.ts +627 -0
- package/lib/components/parallelResourceBooking/mock.js +1352 -0
- package/lib/components/parallelResourceBooking/status.d.ts +21 -0
- package/lib/components/parallelResourceBooking/status.js +70 -0
- package/lib/components/parallelResourceBooking/type.d.ts +17 -0
- package/lib/components/parallelResourceBooking/type.js +17 -0
- package/lib/components/parallelResourceBooking/utils.d.ts +45 -0
- package/lib/components/parallelResourceBooking/utils.js +90 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- 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 +3 -3
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
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);
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
.calendar-box {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
|
|
5
|
+
.calendar-header {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
|
|
10
|
+
.calendar-last-month,
|
|
11
|
+
.calendar-next-month {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
font-size: 20px;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.calendar-current-month {
|
|
20
|
+
text-align: center;
|
|
21
|
+
color: #101828;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
flex: 1;
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
font-weight: 600;
|
|
26
|
+
line-height: 24px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.calendar-content {
|
|
31
|
+
margin: 10px 0 20px;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 16px;
|
|
35
|
+
|
|
36
|
+
.calendar-weeks {
|
|
37
|
+
display: grid;
|
|
38
|
+
grid-template-columns: repeat(7, 1fr);
|
|
39
|
+
gap: 8px;
|
|
40
|
+
|
|
41
|
+
.calendar-weeks-items {
|
|
42
|
+
color: #101828;
|
|
43
|
+
text-align: center;
|
|
44
|
+
font-size: 12px;
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
line-height: 18px;
|
|
48
|
+
/* 150% */
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.calendar-days {
|
|
53
|
+
display: grid;
|
|
54
|
+
grid-template-columns: repeat(7, 1fr);
|
|
55
|
+
gap: 12px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.calendar-days-items {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: flex;
|
|
63
|
+
height: 64px;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
align-items: center;
|
|
67
|
+
flex: 1 0 0;
|
|
68
|
+
border-radius: 8px;
|
|
69
|
+
border: 1px solid #d0d5dd;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
|
|
72
|
+
.day-text {
|
|
73
|
+
position: absolute;
|
|
74
|
+
left: 0;
|
|
75
|
+
right: 0;
|
|
76
|
+
bottom: 0;
|
|
77
|
+
top: 0;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
color: #101828;
|
|
82
|
+
text-align: center;
|
|
83
|
+
font-size: 16px;
|
|
84
|
+
font-style: normal;
|
|
85
|
+
font-weight: 500;
|
|
86
|
+
line-height: 24px;
|
|
87
|
+
|
|
88
|
+
&.day-line::before {
|
|
89
|
+
position: absolute;
|
|
90
|
+
bottom: 12px;
|
|
91
|
+
content: '';
|
|
92
|
+
width: 24px;
|
|
93
|
+
height: 4px;
|
|
94
|
+
flex-shrink: 0;
|
|
95
|
+
border-radius: 2px;
|
|
96
|
+
background: var(--lineColor);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.disabledDate {
|
|
101
|
+
// border: 1px solid #eaecf0;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
background: var(--Gray-100, #f2f4f7);
|
|
104
|
+
border: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.disabledSelect {
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.selectDate {
|
|
112
|
+
border: 2px solid var(--Primary-600, #7f56d9);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.other-month-days {
|
|
116
|
+
background: none;
|
|
117
|
+
border: none;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 获取包括今天的后七天日期
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {*}
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: 严文强
|
|
7
|
+
* @Date: 2024-02-01 11:00
|
|
8
|
+
*/
|
|
9
|
+
export declare const getNextSevenDaysList: (defaultDay: string) => string[];
|
|
10
|
+
/**
|
|
11
|
+
* @title: 将年月日信息只展示为天
|
|
12
|
+
* @description: 如果为今天 则返回ToDay
|
|
13
|
+
* @param {*}
|
|
14
|
+
* @return {*}
|
|
15
|
+
* @Author: 严文强
|
|
16
|
+
* @Date: 2024-02-01 11:00
|
|
17
|
+
*/
|
|
18
|
+
export declare const ShowDayOnly: (date: string) => string;
|
|
19
|
+
/**
|
|
20
|
+
* @title: 日历星期多语言
|
|
21
|
+
* @description:
|
|
22
|
+
* @param {*}
|
|
23
|
+
* @return {*}
|
|
24
|
+
* @Author: 严文强
|
|
25
|
+
* @Date: 2024-02-01 18:42
|
|
26
|
+
*/
|
|
27
|
+
export declare const weekListText: string[];
|
|
28
|
+
/**
|
|
29
|
+
* @title: 不同状态颜色值
|
|
30
|
+
* @description:
|
|
31
|
+
* @param {*}
|
|
32
|
+
* @return {*}
|
|
33
|
+
* @Author: xiangxiang.shao
|
|
34
|
+
* @Date: 2024-02-19 11:35
|
|
35
|
+
*/
|
|
36
|
+
export declare const statusColor: {
|
|
37
|
+
call_to_book: string;
|
|
38
|
+
lots_of_space: string;
|
|
39
|
+
filling_up_fast: string;
|
|
40
|
+
sold_out: string;
|
|
41
|
+
unavailable: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @title: 根据预约量数据判断当前状态
|
|
45
|
+
* @description:
|
|
46
|
+
* @param {*}
|
|
47
|
+
* @return {*}
|
|
48
|
+
* @Author: xiangxiang.shao
|
|
49
|
+
* @Date: 2024-02-19 11:35
|
|
50
|
+
*/
|
|
51
|
+
export declare const getStatus: (dateLimit: any, currentDate: string, cutTime: any) => {
|
|
52
|
+
status: string;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* @title: 根据当前日期以设定判断当前是否是call_to_book状态
|
|
57
|
+
* @description:
|
|
58
|
+
* @param {*}
|
|
59
|
+
* @return {*}
|
|
60
|
+
* @Author: xiangxiang.shao
|
|
61
|
+
* @Date: 2024-02-21 10:10
|
|
62
|
+
*/
|
|
63
|
+
export declare const getCallToBookStatus: (currentDate: string, dateLimitData: any, cutTime: any) => boolean;
|
|
@@ -0,0 +1,198 @@
|
|
|
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/state.ts
|
|
30
|
+
var state_exports = {};
|
|
31
|
+
__export(state_exports, {
|
|
32
|
+
ShowDayOnly: () => ShowDayOnly,
|
|
33
|
+
getCallToBookStatus: () => getCallToBookStatus,
|
|
34
|
+
getNextSevenDaysList: () => getNextSevenDaysList,
|
|
35
|
+
getStatus: () => getStatus,
|
|
36
|
+
statusColor: () => statusColor,
|
|
37
|
+
weekListText: () => weekListText
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(state_exports);
|
|
40
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
41
|
+
var getNextSevenDaysList = (defaultDay) => {
|
|
42
|
+
const currentDate = (0, import_dayjs.default)(defaultDay);
|
|
43
|
+
const nextSevenDays = [];
|
|
44
|
+
for (let i = 0; i < 7; i++) {
|
|
45
|
+
const previousDay = currentDate.add(i, "day");
|
|
46
|
+
nextSevenDays.push(previousDay.format("YYYY-MM-DD"));
|
|
47
|
+
}
|
|
48
|
+
return nextSevenDays;
|
|
49
|
+
};
|
|
50
|
+
var ShowDayOnly = (date) => {
|
|
51
|
+
let defaultDay = (0, import_dayjs.default)().format("YYYY-MM-DD");
|
|
52
|
+
if (date == defaultDay) {
|
|
53
|
+
return "ToDay";
|
|
54
|
+
}
|
|
55
|
+
return (0, import_dayjs.default)(date).format("DD");
|
|
56
|
+
};
|
|
57
|
+
var weekListText = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
58
|
+
var statusColor = {
|
|
59
|
+
call_to_book: "#444CE7",
|
|
60
|
+
// 请致电预订
|
|
61
|
+
lots_of_space: "#099250",
|
|
62
|
+
// 库存充足
|
|
63
|
+
filling_up_fast: "#EAAA08",
|
|
64
|
+
// 库存紧张
|
|
65
|
+
sold_out: "#D92D20",
|
|
66
|
+
// 无库存
|
|
67
|
+
unavailable: "rgba(68, 76, 231, 0.00)"
|
|
68
|
+
// 不可用
|
|
69
|
+
};
|
|
70
|
+
var getStatus = (dateLimit, currentDate, cutTime) => {
|
|
71
|
+
var _a, _b;
|
|
72
|
+
let status = "";
|
|
73
|
+
let disabled = false;
|
|
74
|
+
const dataItem = dateLimit[currentDate];
|
|
75
|
+
console.log(currentDate);
|
|
76
|
+
const startTime = (0, import_dayjs.default)(cutTime == null ? void 0 : cutTime.shop_time).format("YYYY-MM-DD HH:mm");
|
|
77
|
+
const startDate = (0, import_dayjs.default)(cutTime == null ? void 0 : cutTime.shop_time).format("YYYY-MM-DD");
|
|
78
|
+
const endTime = (0, import_dayjs.default)(startTime).add(cutTime == null ? void 0 : cutTime.unit, cutTime == null ? void 0 : cutTime.unit_type);
|
|
79
|
+
const endDay = endTime.format("YYYY-MM-DD");
|
|
80
|
+
try {
|
|
81
|
+
if (!dataItem) {
|
|
82
|
+
return {
|
|
83
|
+
status,
|
|
84
|
+
disabled: true
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
} catch (err) {
|
|
88
|
+
return {
|
|
89
|
+
status,
|
|
90
|
+
disabled: true
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
if (!Object.keys(dateLimit).length) {
|
|
94
|
+
return {
|
|
95
|
+
status,
|
|
96
|
+
disabled: true
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
const times = dataItem.times || [];
|
|
100
|
+
if (!times.length) {
|
|
101
|
+
disabled = true;
|
|
102
|
+
} else {
|
|
103
|
+
let useable = null;
|
|
104
|
+
if (cutTime.type === "ongoing" && currentDate === startDate) {
|
|
105
|
+
if (((_a = cutTime == null ? void 0 : cutTime["ongoing"]) == null ? void 0 : _a.type) === "before_end") {
|
|
106
|
+
useable = times.find((d) => {
|
|
107
|
+
return startTime >= d.start_at && startTime < d.end_at || d.start_at >= startTime;
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
if (((_b = cutTime == null ? void 0 : cutTime["ongoing"]) == null ? void 0 : _b.type) === "after_start") {
|
|
111
|
+
useable = times.find((d) => {
|
|
112
|
+
var _a2;
|
|
113
|
+
const _endAt = (0, import_dayjs.default)(d.start_at).add(
|
|
114
|
+
(_a2 = cutTime == null ? void 0 : cutTime["ongoing"]) == null ? void 0 : _a2.unit,
|
|
115
|
+
"minutes"
|
|
116
|
+
);
|
|
117
|
+
const _endTime = _endAt.format("YYYY-MM-DD HH:mm");
|
|
118
|
+
return startTime >= d.start_at && startTime <= _endTime || d.start_at >= startTime;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
useable = times.find((d) => {
|
|
123
|
+
return startTime < d.start_at;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
if (!useable) {
|
|
127
|
+
return {
|
|
128
|
+
status,
|
|
129
|
+
disabled: true
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
const haveUnLimit = times.find((item) => item.limit === 0);
|
|
133
|
+
if (haveUnLimit) {
|
|
134
|
+
status = "lots_of_space";
|
|
135
|
+
} else {
|
|
136
|
+
const allLimit = times.reduce((prev, next) => {
|
|
137
|
+
return prev + next.limit;
|
|
138
|
+
}, 0);
|
|
139
|
+
const allOrderCount = times.reduce((prev, next) => {
|
|
140
|
+
return prev + next.order_count;
|
|
141
|
+
}, 0);
|
|
142
|
+
const percent = (allLimit - allOrderCount) / allLimit;
|
|
143
|
+
if (percent > 0.5) {
|
|
144
|
+
status = "lots_of_space";
|
|
145
|
+
} else if (percent <= 0.5 && percent > 0) {
|
|
146
|
+
status = "filling_up_fast";
|
|
147
|
+
} else if (percent <= 0) {
|
|
148
|
+
status = "sold_out";
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
status,
|
|
154
|
+
disabled
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
var getCallToBookStatus = (currentDate, dateLimitData, cutTime) => {
|
|
158
|
+
var _a, _b;
|
|
159
|
+
const timeList = ((_a = dateLimitData[currentDate]) == null ? void 0 : _a.times) || [];
|
|
160
|
+
let isShowCallToBook = false;
|
|
161
|
+
if (!currentDate || !(cutTime == null ? void 0 : cutTime.shop_time) || !(cutTime == null ? void 0 : cutTime.unit) || !(cutTime == null ? void 0 : cutTime.unit_type)) {
|
|
162
|
+
isShowCallToBook = false;
|
|
163
|
+
return isShowCallToBook;
|
|
164
|
+
}
|
|
165
|
+
if ((cutTime == null ? void 0 : cutTime.unit_type) === "hours" || (cutTime == null ? void 0 : cutTime.unit_type) === "minutes" || (cutTime == null ? void 0 : cutTime.unit_type) === "days") {
|
|
166
|
+
const startTime = (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss");
|
|
167
|
+
const endTime = (0, import_dayjs.default)(startTime).add(cutTime == null ? void 0 : cutTime.unit, cutTime == null ? void 0 : cutTime.unit_type).format("YYYY-MM-DD HH:mm:ss");
|
|
168
|
+
if ((0, import_dayjs.default)(currentDate).isBefore((0, import_dayjs.default)(endTime.split(" ")[0]))) {
|
|
169
|
+
isShowCallToBook = true;
|
|
170
|
+
} else {
|
|
171
|
+
if (currentDate === endTime.split(" ")[0]) {
|
|
172
|
+
const haveTime = (_b = timeList == null ? void 0 : timeList.find) == null ? void 0 : _b.call(timeList, (item) => {
|
|
173
|
+
const end_at = `${item.date} ${item.end_at}`;
|
|
174
|
+
if ((0, import_dayjs.default)(end_at).valueOf() > (0, import_dayjs.default)(endTime).valueOf()) {
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
if (haveTime) {
|
|
179
|
+
isShowCallToBook = false;
|
|
180
|
+
} else {
|
|
181
|
+
isShowCallToBook = true;
|
|
182
|
+
}
|
|
183
|
+
} else {
|
|
184
|
+
isShowCallToBook = false;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return isShowCallToBook;
|
|
189
|
+
};
|
|
190
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
191
|
+
0 && (module.exports = {
|
|
192
|
+
ShowDayOnly,
|
|
193
|
+
getCallToBookStatus,
|
|
194
|
+
getNextSevenDaysList,
|
|
195
|
+
getStatus,
|
|
196
|
+
statusColor,
|
|
197
|
+
weekListText
|
|
198
|
+
});
|