@pisell/private-materials 3.2.10 → 3.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +34 -14
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.js +7 -7
- 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/parallelResourcBooking/assets/alert-circle.png +0 -0
- package/es/components/parallelResourcBooking/assets/calendar-heart.svg +5 -0
- package/es/components/parallelResourcBooking/assets/compass.svg +13 -0
- package/es/components/parallelResourcBooking/assets/image.svg +5 -0
- package/es/components/parallelResourcBooking/assets/phone.svg +5 -0
- package/es/components/parallelResourcBooking/assets/shopping-cart.svg +10 -0
- package/es/components/parallelResourcBooking/components/ErrorTip/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/ErrorTip/index.js +14 -0
- package/es/components/parallelResourcBooking/components/ErrorTip/index.less +51 -0
- package/es/components/parallelResourcBooking/components/OpenCard/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/OpenCard/index.js +65 -0
- package/es/components/parallelResourcBooking/components/OpenCard/index.less +52 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +274 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +46 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +63 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +87 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.js +30 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.less +2 -0
- package/es/components/parallelResourcBooking/components/Provider/Content/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Content/index.js +65 -0
- package/es/components/parallelResourcBooking/components/Provider/Content/index.less +31 -0
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +34 -0
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/es/components/parallelResourcBooking/components/Provider/Event/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Event/index.js +93 -0
- package/es/components/parallelResourcBooking/components/Provider/Event/index.less +20 -0
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.js +76 -0
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.less +64 -0
- package/es/components/parallelResourcBooking/components/Provider/Header/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Header/index.js +75 -0
- package/es/components/parallelResourcBooking/components/Provider/Header/index.less +2 -0
- package/es/components/parallelResourcBooking/components/Provider/Information/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Information/index.js +178 -0
- package/es/components/parallelResourcBooking/components/Provider/Information/index.less +92 -0
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +34 -0
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +27 -0
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +31 -0
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.js +79 -0
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.less +46 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +90 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +77 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +131 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +26 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +65 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +69 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +13 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +152 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +20 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +38 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +28 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +269 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +256 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +173 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +36 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +38 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +33 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +30 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.js +337 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.less +82 -0
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +17 -0
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.js +52 -0
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.less +6 -0
- package/es/components/parallelResourcBooking/components/eventCard/index.d.ts +14 -0
- package/es/components/parallelResourcBooking/components/eventCard/index.js +116 -0
- package/es/components/parallelResourcBooking/components/eventCard/index.less +81 -0
- package/es/components/parallelResourcBooking/components/productCard/index.d.ts +16 -0
- package/es/components/parallelResourcBooking/components/productCard/index.js +79 -0
- package/es/components/parallelResourcBooking/components/productCard/index.less +60 -0
- package/es/components/parallelResourcBooking/components/progressBar/index.d.ts +16 -0
- package/es/components/parallelResourcBooking/components/progressBar/index.js +93 -0
- package/es/components/parallelResourcBooking/components/progressBar/index.less +15 -0
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +23 -0
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.js +148 -0
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.less +95 -0
- package/es/components/parallelResourcBooking/components/resourceUsability/index.d.ts +12 -0
- package/es/components/parallelResourcBooking/components/resourceUsability/index.js +44 -0
- package/es/components/parallelResourcBooking/components/resourceUsability/index.less +40 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +37 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +12 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +127 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.js +142 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.less +222 -0
- package/es/components/parallelResourcBooking/components/selectHolder/index.d.ts +22 -0
- package/es/components/parallelResourcBooking/components/selectHolder/index.js +118 -0
- package/es/components/parallelResourcBooking/components/selectHolder/index.less +70 -0
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.js +168 -0
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.less +74 -0
- package/es/components/parallelResourcBooking/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/index.js +58 -0
- package/es/components/parallelResourcBooking/index.less +22 -0
- package/es/components/parallelResourcBooking/locales.d.ts +216 -0
- package/es/components/parallelResourcBooking/locales.js +251 -0
- package/es/components/parallelResourcBooking/mock.d.ts +627 -0
- package/es/components/parallelResourcBooking/mock.js +1172 -0
- package/es/components/parallelResourcBooking/status.d.ts +21 -0
- package/es/components/parallelResourcBooking/status.js +51 -0
- package/es/components/parallelResourcBooking/type.d.ts +17 -0
- package/es/components/parallelResourcBooking/type.js +1 -0
- package/es/components/parallelResourcBooking/utils.d.ts +45 -0
- package/es/components/parallelResourcBooking/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/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/parallelResourcBooking/assets/alert-circle.png +0 -0
- package/lib/components/parallelResourcBooking/assets/calendar-heart.svg +5 -0
- package/lib/components/parallelResourcBooking/assets/compass.svg +13 -0
- package/lib/components/parallelResourcBooking/assets/image.svg +5 -0
- package/lib/components/parallelResourcBooking/assets/phone.svg +5 -0
- package/lib/components/parallelResourcBooking/assets/shopping-cart.svg +10 -0
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.js +30 -0
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.less +51 -0
- package/lib/components/parallelResourcBooking/components/OpenCard/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/OpenCard/index.js +90 -0
- package/lib/components/parallelResourcBooking/components/OpenCard/index.less +52 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +158 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +82 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +92 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +87 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.js +59 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.less +2 -0
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.js +90 -0
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.less +31 -0
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +60 -0
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.js +100 -0
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.less +20 -0
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.js +87 -0
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.less +64 -0
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.js +80 -0
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.less +2 -0
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.js +151 -0
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.less +92 -0
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +67 -0
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +57 -0
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +62 -0
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.js +90 -0
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.less +46 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +97 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +69 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +131 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +55 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +78 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +86 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +13 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +121 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +37 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +58 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +55 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +196 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +198 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +122 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +70 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +75 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +66 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +69 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.js +248 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.less +82 -0
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +17 -0
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.js +79 -0
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.less +6 -0
- package/lib/components/parallelResourcBooking/components/eventCard/index.d.ts +14 -0
- package/lib/components/parallelResourcBooking/components/eventCard/index.js +124 -0
- package/lib/components/parallelResourcBooking/components/eventCard/index.less +81 -0
- package/lib/components/parallelResourcBooking/components/productCard/index.d.ts +16 -0
- package/lib/components/parallelResourcBooking/components/productCard/index.js +77 -0
- package/lib/components/parallelResourcBooking/components/productCard/index.less +60 -0
- package/lib/components/parallelResourcBooking/components/progressBar/index.d.ts +16 -0
- package/lib/components/parallelResourcBooking/components/progressBar/index.js +100 -0
- package/lib/components/parallelResourcBooking/components/progressBar/index.less +15 -0
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +23 -0
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.js +116 -0
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.less +95 -0
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.d.ts +12 -0
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.js +76 -0
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.less +40 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +73 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +12 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +135 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.js +125 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.less +222 -0
- package/lib/components/parallelResourcBooking/components/selectHolder/index.d.ts +22 -0
- package/lib/components/parallelResourcBooking/components/selectHolder/index.js +106 -0
- package/lib/components/parallelResourcBooking/components/selectHolder/index.less +70 -0
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.js +146 -0
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.less +74 -0
- package/lib/components/parallelResourcBooking/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/index.js +78 -0
- package/lib/components/parallelResourcBooking/index.less +22 -0
- package/lib/components/parallelResourcBooking/locales.d.ts +216 -0
- package/lib/components/parallelResourcBooking/locales.js +239 -0
- package/lib/components/parallelResourcBooking/mock.d.ts +627 -0
- package/lib/components/parallelResourcBooking/mock.js +1352 -0
- package/lib/components/parallelResourcBooking/status.d.ts +21 -0
- package/lib/components/parallelResourcBooking/status.js +70 -0
- package/lib/components/parallelResourcBooking/type.d.ts +17 -0
- package/lib/components/parallelResourcBooking/type.js +17 -0
- package/lib/components/parallelResourcBooking/utils.d.ts +45 -0
- package/lib/components/parallelResourcBooking/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/package.json +3 -3
package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellModal } from '@pisell/materials';
|
|
3
|
+
import "./index.less";
|
|
4
|
+
var InformationOptionsModal = function InformationOptionsModal(props) {
|
|
5
|
+
var open = props.open,
|
|
6
|
+
onCancel = props.onCancel,
|
|
7
|
+
options = props.options,
|
|
8
|
+
_onClick = props.onClick;
|
|
9
|
+
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
10
|
+
open: open,
|
|
11
|
+
platform: 'h5',
|
|
12
|
+
closable: true,
|
|
13
|
+
bodyStyle: {
|
|
14
|
+
padding: '0 24px'
|
|
15
|
+
},
|
|
16
|
+
destroyOnClose: true,
|
|
17
|
+
footer: null,
|
|
18
|
+
onCancel: onCancel,
|
|
19
|
+
mobileModalHeight: 'auto',
|
|
20
|
+
className: 'information-option-modal',
|
|
21
|
+
headerDivider: false
|
|
22
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: "information-options-wrap"
|
|
24
|
+
}, options.map(function (item) {
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
key: item.key,
|
|
27
|
+
className: "information-options-wrap-item",
|
|
28
|
+
onClick: function onClick() {
|
|
29
|
+
return _onClick(item);
|
|
30
|
+
}
|
|
31
|
+
}, item.label);
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
export default InformationOptionsModal;
|
package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.information-options-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
.information-options-wrap-item {
|
|
6
|
+
color: var(--Gray-900, #101828);
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
line-height: 24px;
|
|
10
|
+
display: flex;
|
|
11
|
+
padding: 9px 10px;
|
|
12
|
+
align-items: center;
|
|
13
|
+
flex: 1 0 0;
|
|
14
|
+
&:last-child {
|
|
15
|
+
color: var(--Error-700, #b42318);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.information-option-modal {
|
|
21
|
+
.pisell-lowcode-modal-header {
|
|
22
|
+
border: none;
|
|
23
|
+
}
|
|
24
|
+
.pisell-lowcode-modal-body {
|
|
25
|
+
height: max-content;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellModal } from '@pisell/materials';
|
|
3
|
+
import { locales } from '@pisell/utils';
|
|
4
|
+
import "./index.less";
|
|
5
|
+
var OrderProductModal = function OrderProductModal(props) {
|
|
6
|
+
var open = props.open,
|
|
7
|
+
_onCancel = props.onCancel,
|
|
8
|
+
_props$type = props.type,
|
|
9
|
+
type = _props$type === void 0 ? 'cart' : _props$type;
|
|
10
|
+
return /*#__PURE__*/React.createElement(PisellModal.Information, {
|
|
11
|
+
open: open,
|
|
12
|
+
title: type === 'cart' ? locales.getText('pisell2.event.event.full.title') : locales.getText('pisell2.event.capacity.limit.reached.title'),
|
|
13
|
+
describe: type === 'cart' ? locales.getText('pisell2.event.event.full.tip') : locales.getText('pisell2.event.capacity.limit.reached.tip'),
|
|
14
|
+
okText: locales.getText('pisell2.event.event.full.ok'),
|
|
15
|
+
cancelText: "",
|
|
16
|
+
cancelVisible: false,
|
|
17
|
+
closable: true,
|
|
18
|
+
onCancel: function onCancel() {
|
|
19
|
+
return _onCancel();
|
|
20
|
+
},
|
|
21
|
+
onOk: function onOk() {
|
|
22
|
+
return _onCancel();
|
|
23
|
+
},
|
|
24
|
+
zIndex: 1001
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export default OrderProductModal;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.event-booking-order-product-modal {
|
|
2
|
+
.event-booking-order-product-modal-content {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.event-booking-order-product-modal-content-title {
|
|
9
|
+
color: var(--Gray-900, #101828);
|
|
10
|
+
font-size: 24px;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
line-height: 32px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.event-booking-order-product-modal-content-describe {
|
|
16
|
+
color: var(--Gray-900, #101828);
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
line-height: 24px;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 4px;
|
|
23
|
+
|
|
24
|
+
ul {
|
|
25
|
+
list-style-type: disc !important;
|
|
26
|
+
padding-left: 20px;
|
|
27
|
+
li {
|
|
28
|
+
list-style-type: disc !important;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellModal } from '@pisell/materials';
|
|
3
|
+
import { locales } from '@pisell/utils';
|
|
4
|
+
var RemoveOptionConfirmModal = function RemoveOptionConfirmModal(props) {
|
|
5
|
+
var removeOpen = props.removeOpen,
|
|
6
|
+
_onCancel = props.onCancel,
|
|
7
|
+
_onOk = props.onOk;
|
|
8
|
+
return /*#__PURE__*/React.createElement(PisellModal.Information, {
|
|
9
|
+
open: removeOpen,
|
|
10
|
+
title: locales.getText('pisell2.event.remove.title'),
|
|
11
|
+
describe: locales.getText('pisell2.event.remove.tip'),
|
|
12
|
+
okText: locales.getText('pisell2.event.remove'),
|
|
13
|
+
cancelText: locales.getText('pisell2.event.remove.cancel'),
|
|
14
|
+
closable: true,
|
|
15
|
+
onCancel: function onCancel() {
|
|
16
|
+
return _onCancel();
|
|
17
|
+
},
|
|
18
|
+
zIndex: 1001,
|
|
19
|
+
okButtonProps: {
|
|
20
|
+
style: {
|
|
21
|
+
border: '1px solid var(--Error-600, #D92D20)',
|
|
22
|
+
background: 'var(--Error-600, #D92D20)',
|
|
23
|
+
boxShadow: '0px 1px 2px 0px rgba(16, 24, 40, 0.05)'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
onOk: function onOk() {
|
|
27
|
+
return _onOk();
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
export default RemoveOptionConfirmModal;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellViewGrid } from '@pisell/materials';
|
|
3
|
+
import { isMobile, locales } from '@pisell/utils';
|
|
4
|
+
import { useResource, useSales, useCart, useStep } from "../../../../Sales";
|
|
5
|
+
import ResourceDisplay from "../../resourceDisplay";
|
|
6
|
+
import { resourceTitle } from "../../../utils";
|
|
7
|
+
import "./index.less";
|
|
8
|
+
var Resource = function Resource() {
|
|
9
|
+
var _data$resourceData;
|
|
10
|
+
var _useSales = useSales(),
|
|
11
|
+
data = _useSales.data;
|
|
12
|
+
var _useResource = useResource(),
|
|
13
|
+
getResourceList = _useResource.getResourceList,
|
|
14
|
+
selectResource = _useResource.selectResource;
|
|
15
|
+
var _useCart = useCart(),
|
|
16
|
+
createCartItem = _useCart.createCartItem;
|
|
17
|
+
var _useStep = useStep(),
|
|
18
|
+
nextStep = _useStep.nextStep;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @title: 选择资源
|
|
22
|
+
* @description:
|
|
23
|
+
* @param {any} item
|
|
24
|
+
* @return {*}
|
|
25
|
+
* @Author: WangHan
|
|
26
|
+
* @Date: 2025-01-15 18:08
|
|
27
|
+
*/
|
|
28
|
+
var handleClick = function handleClick(item) {
|
|
29
|
+
createCartItem();
|
|
30
|
+
selectResource(item);
|
|
31
|
+
nextStep();
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @title: 渲染内容
|
|
36
|
+
* @description:
|
|
37
|
+
* @param {any} item
|
|
38
|
+
* @return {*}
|
|
39
|
+
* @Author: WangHan
|
|
40
|
+
* @Date: 2025-01-15 11:30
|
|
41
|
+
*/
|
|
42
|
+
var renderItem = function renderItem(item) {
|
|
43
|
+
return /*#__PURE__*/React.createElement(ResourceDisplay, {
|
|
44
|
+
mode: "campus",
|
|
45
|
+
dataSource: item,
|
|
46
|
+
direction: "vertical",
|
|
47
|
+
shape: "square",
|
|
48
|
+
bordered: false,
|
|
49
|
+
borderRadius: 8,
|
|
50
|
+
padding: 8,
|
|
51
|
+
onClick: function onClick() {
|
|
52
|
+
return handleClick(item);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: "event-interface-resource-wrap ".concat(isMobile() ? 'event-interface-resource-mobile-wrap' : '')
|
|
58
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
59
|
+
className: "title"
|
|
60
|
+
}, locales.getText('pisell2.event.select.campus')(resourceTitle(data))), /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "content"
|
|
62
|
+
}, data === null || data === void 0 || (_data$resourceData = data.resourceData) === null || _data$resourceData === void 0 || (_data$resourceData = _data$resourceData.resourceList) === null || _data$resourceData === void 0 ? void 0 : _data$resourceData.map(function (item, index) {
|
|
63
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
key: index,
|
|
65
|
+
className: "content-item"
|
|
66
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
67
|
+
className: "content-title"
|
|
68
|
+
}, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React.createElement(PisellViewGrid, {
|
|
69
|
+
dataSource: item === null || item === void 0 ? void 0 : item.children,
|
|
70
|
+
columns: isMobile() ? 1 : 3,
|
|
71
|
+
verticalGap: 20,
|
|
72
|
+
horizontalGap: 20,
|
|
73
|
+
loading: getResourceList.loading,
|
|
74
|
+
renderItem: renderItem,
|
|
75
|
+
className: "content-grid"
|
|
76
|
+
}));
|
|
77
|
+
})));
|
|
78
|
+
};
|
|
79
|
+
export default Resource;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.event-interface-resource-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
margin-bottom: 24px;
|
|
5
|
+
|
|
6
|
+
.title {
|
|
7
|
+
color: var(--Gray-900, #101828);
|
|
8
|
+
font-size: 20px;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
line-height: 30px;
|
|
11
|
+
text-align: center;
|
|
12
|
+
margin: 8px 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.content {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 24px;
|
|
19
|
+
.pisell-card-wrap {
|
|
20
|
+
background: transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.content-item {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
|
|
28
|
+
.content-title {
|
|
29
|
+
color: var(--Gray-900, #101828);
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
line-height: 24px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.content-grid {
|
|
37
|
+
padding: 20px 12px;
|
|
38
|
+
border-radius: 8px;
|
|
39
|
+
border: 1px solid var(--Gray-300, #d0d5dd);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.event-interface-resource-mobile-wrap {
|
|
45
|
+
padding: 0 20px 20px;
|
|
46
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useEffect, useState } from 'react';
|
|
8
|
+
import SelectHolder from "../selectHolder";
|
|
9
|
+
import { locales } from '@pisell/utils';
|
|
10
|
+
import { useHolder, useSales, useStep, useCart } from "../../../Sales";
|
|
11
|
+
var SelectHolderModal = function SelectHolderModal(props) {
|
|
12
|
+
var _holderData$holderLis;
|
|
13
|
+
var open = props.open;
|
|
14
|
+
var _useSales = useSales(),
|
|
15
|
+
data = _useSales.data;
|
|
16
|
+
var _useHolder = useHolder(),
|
|
17
|
+
onHolderClose = _useHolder.onHolderClose,
|
|
18
|
+
onOpenCreateHolder = _useHolder.onOpenCreateHolder,
|
|
19
|
+
selectHolder = _useHolder.selectHolder,
|
|
20
|
+
holderData = _useHolder.holderData,
|
|
21
|
+
updateHolderList = _useHolder.updateHolderList,
|
|
22
|
+
defaultSelectedHolder = _useHolder.defaultSelectedHolder;
|
|
23
|
+
var _useStep = useStep(),
|
|
24
|
+
nextStep = _useStep.nextStep,
|
|
25
|
+
prevStep = _useStep.prevStep,
|
|
26
|
+
currentStepData = _useStep.currentStepData;
|
|
27
|
+
var _useState = useState(defaultSelectedHolder),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
+
selectedHolder = _useState2[0],
|
|
30
|
+
setSelectedHolder = _useState2[1];
|
|
31
|
+
var _useCart = useCart(),
|
|
32
|
+
onCloseCart = _useCart.onCloseCart;
|
|
33
|
+
useEffect(function () {
|
|
34
|
+
setSelectedHolder(defaultSelectedHolder);
|
|
35
|
+
}, [defaultSelectedHolder]);
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @title: 点击holder卡片
|
|
39
|
+
* @description:
|
|
40
|
+
* @param {any} e
|
|
41
|
+
* @return {*}
|
|
42
|
+
* @Author: WangHan
|
|
43
|
+
* @Date: 2025-01-16 22:29
|
|
44
|
+
*/
|
|
45
|
+
var handleHolder = function handleHolder(e) {
|
|
46
|
+
var _data$initData;
|
|
47
|
+
// 当前选中的holder
|
|
48
|
+
if (!(e !== null && e !== void 0 && e.isAddCard)) {
|
|
49
|
+
setSelectedHolder(e);
|
|
50
|
+
// return onSelect(e);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// 添加holder
|
|
55
|
+
onOpenCreateHolder({
|
|
56
|
+
form_id: (_data$initData = data.initData) === null || _data$initData === void 0 || (_data$initData = _data$initData.boardSetting) === null || _data$initData === void 0 || (_data$initData = _data$initData.config) === null || _data$initData === void 0 || (_data$initData = _data$initData.basic) === null || _data$initData === void 0 || (_data$initData = _data$initData.appointment_subject) === null || _data$initData === void 0 ? void 0 : _data$initData.form_id,
|
|
57
|
+
form_title: locales.getText('pisell2.event.create.form'),
|
|
58
|
+
callback: function callback(res) {
|
|
59
|
+
updateHolderList(res === null || res === void 0 ? void 0 : res.values);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
return /*#__PURE__*/React.createElement(SelectHolder, {
|
|
64
|
+
open: open,
|
|
65
|
+
options: (holderData === null || holderData === void 0 ? void 0 : holderData.holderList) || [],
|
|
66
|
+
onCancel: function onCancel() {
|
|
67
|
+
return onHolderClose();
|
|
68
|
+
},
|
|
69
|
+
value: selectedHolder === null || selectedHolder === void 0 ? void 0 : selectedHolder.id,
|
|
70
|
+
title: locales.getText('pisell2.event.holder.modal.title'),
|
|
71
|
+
okText: locales.getText('pisell2.event.confirm'),
|
|
72
|
+
onClick: function onClick(e) {
|
|
73
|
+
return handleHolder(e);
|
|
74
|
+
},
|
|
75
|
+
disabled: !(holderData !== null && holderData !== void 0 && (_holderData$holderLis = holderData.holderList) !== null && _holderData$holderLis !== void 0 && _holderData$holderLis.length) || !(selectedHolder !== null && selectedHolder !== void 0 && selectedHolder.id),
|
|
76
|
+
errorTipText: locales.getText('pisell2.event.error.holder'),
|
|
77
|
+
onOk: function onOk() {
|
|
78
|
+
onCloseCart();
|
|
79
|
+
var isEvent = (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key) === 'select-event';
|
|
80
|
+
selectHolder(selectedHolder, isEvent ? 'addToCart' : 'createCartItem');
|
|
81
|
+
if (isEvent) {
|
|
82
|
+
nextStep();
|
|
83
|
+
} else {
|
|
84
|
+
prevStep();
|
|
85
|
+
}
|
|
86
|
+
onHolderClose();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
export default SelectHolderModal;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useCart, useSales } from "../../../Sales";
|
|
3
|
+
import { locales } from '@pisell/utils';
|
|
4
|
+
import { PisellCard } from '@pisell/materials';
|
|
5
|
+
import "./index.less";
|
|
6
|
+
var SelectProduct = function SelectProduct() {
|
|
7
|
+
var _cartData$cartItems2;
|
|
8
|
+
var _useSales = useSales(),
|
|
9
|
+
data = _useSales.data;
|
|
10
|
+
var _useCart = useCart(),
|
|
11
|
+
addToCart = _useCart.addToCart,
|
|
12
|
+
cartData = _useCart.cartData;
|
|
13
|
+
var handleAddToCart = function handleAddToCart(product) {
|
|
14
|
+
addToCart(product);
|
|
15
|
+
};
|
|
16
|
+
var renderProductCard = function renderProductCard(product) {
|
|
17
|
+
var _cartData$cartItems;
|
|
18
|
+
var isSelected = cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.some(function (item) {
|
|
19
|
+
return item.id === product.id;
|
|
20
|
+
});
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
key: product.id,
|
|
23
|
+
className: "product-card ".concat(isSelected ? 'product-card-selected' : ''),
|
|
24
|
+
onClick: function onClick() {
|
|
25
|
+
return handleAddToCart(product);
|
|
26
|
+
}
|
|
27
|
+
}, /*#__PURE__*/React.createElement(PisellCard, {
|
|
28
|
+
bodyStyle: {
|
|
29
|
+
padding: '16px'
|
|
30
|
+
}
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: "product-content"
|
|
33
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
className: "product-title"
|
|
35
|
+
}, product.title), /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: "product-price"
|
|
37
|
+
}, product.price, " ", product.currency))));
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: "select-product-container"
|
|
41
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: "step-header"
|
|
43
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: "step-number"
|
|
45
|
+
}, "Step 1"), /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: "step-title"
|
|
47
|
+
}, "Select Product")), /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: "category-section"
|
|
49
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
className: "category-title"
|
|
51
|
+
}, "Other"), /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: "product-list"
|
|
53
|
+
}, renderProductCard({
|
|
54
|
+
id: '1',
|
|
55
|
+
title: 'appointment',
|
|
56
|
+
price: '1.00',
|
|
57
|
+
currency: 'AUD'
|
|
58
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: "cart-section"
|
|
60
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "cart-title"
|
|
62
|
+
}, "Your cart"), cartData !== null && cartData !== void 0 && (_cartData$cartItems2 = cartData.cartItems) !== null && _cartData$cartItems2 !== void 0 && _cartData$cartItems2.length ? /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "cart-items"
|
|
64
|
+
}, cartData.cartItems.map(function (item) {
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
key: item.id,
|
|
67
|
+
className: "cart-item"
|
|
68
|
+
}, item.title);
|
|
69
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: "cart-empty"
|
|
71
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: "cart-empty-icon"
|
|
73
|
+
}, "\uD83D\uDED2"), /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: "cart-empty-text"
|
|
75
|
+
}, locales.getText('pisell2.event.cart.empty')))));
|
|
76
|
+
};
|
|
77
|
+
export default SelectProduct;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.select-product-container {
|
|
2
|
+
padding: 24px;
|
|
3
|
+
background: #fff;
|
|
4
|
+
|
|
5
|
+
.step-header {
|
|
6
|
+
margin-bottom: 24px;
|
|
7
|
+
|
|
8
|
+
.step-number {
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
color: #666;
|
|
11
|
+
margin-bottom: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.step-title {
|
|
15
|
+
font-size: 24px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
color: #333;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.category-section {
|
|
22
|
+
margin-bottom: 24px;
|
|
23
|
+
|
|
24
|
+
.category-title {
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
color: #333;
|
|
28
|
+
margin-bottom: 16px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.product-list {
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
34
|
+
gap: 16px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.product-card {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
transition: all 0.3s;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
transform: translateY(-2px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.product-card-selected {
|
|
47
|
+
.pisell-card {
|
|
48
|
+
border-color: #1890ff;
|
|
49
|
+
background: rgba(24, 144, 255, 0.05);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.product-content {
|
|
54
|
+
text-align: center;
|
|
55
|
+
|
|
56
|
+
.product-title {
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
color: #333;
|
|
59
|
+
margin-bottom: 8px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.product-price {
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
color: #666;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.cart-section {
|
|
70
|
+
background: #f5f5f5;
|
|
71
|
+
border-radius: 4px;
|
|
72
|
+
padding: 24px;
|
|
73
|
+
|
|
74
|
+
.cart-title {
|
|
75
|
+
font-size: 18px;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
color: #333;
|
|
78
|
+
margin-bottom: 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.cart-empty {
|
|
82
|
+
text-align: center;
|
|
83
|
+
padding: 32px 0;
|
|
84
|
+
|
|
85
|
+
.cart-empty-icon {
|
|
86
|
+
font-size: 24px;
|
|
87
|
+
margin-bottom: 8px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.cart-empty-text {
|
|
91
|
+
color: #999;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cart-items {
|
|
96
|
+
.cart-item {
|
|
97
|
+
padding: 12px;
|
|
98
|
+
background: #fff;
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
margin-bottom: 8px;
|
|
101
|
+
|
|
102
|
+
&:last-child {
|
|
103
|
+
margin-bottom: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// 移动端适配
|
|
111
|
+
@media screen and (max-width: 768px) {
|
|
112
|
+
.select-product-container {
|
|
113
|
+
padding: 16px;
|
|
114
|
+
|
|
115
|
+
.step-header {
|
|
116
|
+
margin-bottom: 16px;
|
|
117
|
+
|
|
118
|
+
.step-title {
|
|
119
|
+
font-size: 20px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.product-list {
|
|
124
|
+
grid-template-columns: 1fr !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.cart-section {
|
|
128
|
+
padding: 16px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
3
|
+
import { statusList, statusMessage } from "../../../../../status";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
dayjs.extend(isSameOrBefore);
|
|
6
|
+
var Status = function Status(props) {
|
|
7
|
+
var _props$type = props.type,
|
|
8
|
+
type = _props$type === void 0 ? 'call_to_book' : _props$type;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: "event-calendar-status"
|
|
11
|
+
}, statusList.map(function (i) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: "item",
|
|
14
|
+
key: i.status
|
|
15
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
style: {
|
|
17
|
+
height: i.status == 0 ? '28px' : '4px',
|
|
18
|
+
background: i.color
|
|
19
|
+
},
|
|
20
|
+
className: "item-icon"
|
|
21
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
22
|
+
className: "item-text"
|
|
23
|
+
}, i.status === 2 ? statusMessage(type) : i.text));
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
26
|
+
export default Status;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.event-calendar-status {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
|
|
5
|
+
.item {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
flex-shrink: 1;
|
|
9
|
+
width: 50%;
|
|
10
|
+
margin-bottom: 12px;
|
|
11
|
+
.item-icon {
|
|
12
|
+
margin-right: 10px;
|
|
13
|
+
width: 28px;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.item-text {
|
|
18
|
+
color: #344054;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
line-height: 20px; /* 142.857% */
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|