@pisell/private-materials 3.2.11 → 3.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +14 -18
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +6 -6
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/booking/addons/index.js +7 -5
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +3 -3
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.js +58 -48
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.js +57 -5
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
- package/es/components/booking/info2/service/editService/index.js +4 -3
- package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/es/components/booking/info2/service/editService/utils.js +18 -0
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +3 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/booking/addons/index.js +7 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +2 -2
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.js +3 -2
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.js +3 -2
- package/lib/components/booking/info2/service/addService/utils.js +36 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -2
- package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/lib/components/booking/info2/service/editService/utils.js +48 -0
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +3 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/package.json +4 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/parallelResourcBooking/assets/alert-circle.png +0 -0
- package/es/components/parallelResourcBooking/assets/calendar-heart.svg +0 -5
- package/es/components/parallelResourcBooking/assets/compass.svg +0 -13
- package/es/components/parallelResourcBooking/assets/image.svg +0 -5
- package/es/components/parallelResourcBooking/assets/phone.svg +0 -5
- package/es/components/parallelResourcBooking/assets/shopping-cart.svg +0 -10
- package/es/components/parallelResourcBooking/components/ErrorTip/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/ErrorTip/index.js +0 -14
- package/es/components/parallelResourcBooking/components/ErrorTip/index.less +0 -51
- package/es/components/parallelResourcBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/OpenCard/index.js +0 -65
- package/es/components/parallelResourcBooking/components/OpenCard/index.less +0 -52
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +0 -274
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +0 -46
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +0 -63
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +0 -87
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.js +0 -30
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.less +0 -2
- package/es/components/parallelResourcBooking/components/Provider/Content/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Content/index.js +0 -65
- package/es/components/parallelResourcBooking/components/Provider/Content/index.less +0 -31
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/parallelResourcBooking/components/Provider/Event/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Event/index.js +0 -93
- package/es/components/parallelResourcBooking/components/Provider/Event/index.less +0 -20
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.js +0 -76
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.less +0 -64
- package/es/components/parallelResourcBooking/components/Provider/Header/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Header/index.js +0 -75
- package/es/components/parallelResourcBooking/components/Provider/Header/index.less +0 -2
- package/es/components/parallelResourcBooking/components/Provider/Information/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Information/index.js +0 -178
- package/es/components/parallelResourcBooking/components/Provider/Information/index.less +0 -92
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +0 -90
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -256
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -173
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +0 -36
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +0 -33
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +0 -30
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.js +0 -337
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.less +0 -82
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.js +0 -52
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.less +0 -6
- package/es/components/parallelResourcBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/parallelResourcBooking/components/eventCard/index.js +0 -116
- package/es/components/parallelResourcBooking/components/eventCard/index.less +0 -81
- package/es/components/parallelResourcBooking/components/productCard/index.d.ts +0 -16
- package/es/components/parallelResourcBooking/components/productCard/index.js +0 -79
- package/es/components/parallelResourcBooking/components/productCard/index.less +0 -60
- package/es/components/parallelResourcBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/parallelResourcBooking/components/progressBar/index.js +0 -93
- package/es/components/parallelResourcBooking/components/progressBar/index.less +0 -15
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.js +0 -148
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.less +0 -95
- package/es/components/parallelResourcBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/parallelResourcBooking/components/resourceUsability/index.js +0 -44
- package/es/components/parallelResourcBooking/components/resourceUsability/index.less +0 -40
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +0 -127
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.js +0 -142
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.less +0 -222
- package/es/components/parallelResourcBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/parallelResourcBooking/components/selectHolder/index.js +0 -118
- package/es/components/parallelResourcBooking/components/selectHolder/index.less +0 -70
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.js +0 -168
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.less +0 -74
- package/es/components/parallelResourcBooking/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/index.js +0 -58
- package/es/components/parallelResourcBooking/index.less +0 -22
- package/es/components/parallelResourcBooking/locales.d.ts +0 -216
- package/es/components/parallelResourcBooking/locales.js +0 -251
- package/es/components/parallelResourcBooking/mock.d.ts +0 -627
- package/es/components/parallelResourcBooking/mock.js +0 -1172
- package/es/components/parallelResourcBooking/status.d.ts +0 -21
- package/es/components/parallelResourcBooking/status.js +0 -51
- package/es/components/parallelResourcBooking/type.d.ts +0 -17
- package/es/components/parallelResourcBooking/type.js +0 -1
- package/es/components/parallelResourcBooking/utils.d.ts +0 -45
- package/es/components/parallelResourcBooking/utils.js +0 -99
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/parallelResourcBooking/assets/alert-circle.png +0 -0
- package/lib/components/parallelResourcBooking/assets/calendar-heart.svg +0 -5
- package/lib/components/parallelResourcBooking/assets/compass.svg +0 -13
- package/lib/components/parallelResourcBooking/assets/image.svg +0 -5
- package/lib/components/parallelResourcBooking/assets/phone.svg +0 -5
- package/lib/components/parallelResourcBooking/assets/shopping-cart.svg +0 -10
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.js +0 -30
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.less +0 -51
- package/lib/components/parallelResourcBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/OpenCard/index.js +0 -90
- package/lib/components/parallelResourcBooking/components/OpenCard/index.less +0 -52
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +0 -158
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +0 -82
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +0 -92
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +0 -87
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.js +0 -59
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.less +0 -2
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.js +0 -90
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +0 -60
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.js +0 -100
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.js +0 -87
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.less +0 -64
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.js +0 -80
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.less +0 -2
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.js +0 -151
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.less +0 -92
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +0 -57
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +0 -97
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -196
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +0 -70
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +0 -66
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +0 -69
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.js +0 -248
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.less +0 -82
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.js +0 -79
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.less +0 -6
- package/lib/components/parallelResourcBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/parallelResourcBooking/components/eventCard/index.js +0 -124
- package/lib/components/parallelResourcBooking/components/eventCard/index.less +0 -81
- package/lib/components/parallelResourcBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/parallelResourcBooking/components/productCard/index.js +0 -77
- package/lib/components/parallelResourcBooking/components/productCard/index.less +0 -60
- package/lib/components/parallelResourcBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/parallelResourcBooking/components/progressBar/index.js +0 -100
- package/lib/components/parallelResourcBooking/components/progressBar/index.less +0 -15
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.js +0 -116
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.less +0 -95
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.js +0 -76
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.less +0 -40
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +0 -135
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.js +0 -125
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.less +0 -222
- package/lib/components/parallelResourcBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/parallelResourcBooking/components/selectHolder/index.js +0 -106
- package/lib/components/parallelResourcBooking/components/selectHolder/index.less +0 -70
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.js +0 -146
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.less +0 -74
- package/lib/components/parallelResourcBooking/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/index.js +0 -78
- package/lib/components/parallelResourcBooking/index.less +0 -22
- package/lib/components/parallelResourcBooking/locales.d.ts +0 -216
- package/lib/components/parallelResourcBooking/locales.js +0 -239
- package/lib/components/parallelResourcBooking/mock.d.ts +0 -627
- package/lib/components/parallelResourcBooking/mock.js +0 -1352
- package/lib/components/parallelResourcBooking/status.d.ts +0 -21
- package/lib/components/parallelResourcBooking/status.js +0 -70
- package/lib/components/parallelResourcBooking/type.d.ts +0 -17
- package/lib/components/parallelResourcBooking/type.js +0 -17
- package/lib/components/parallelResourcBooking/utils.d.ts +0 -45
- package/lib/components/parallelResourcBooking/utils.js +0 -90
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/parallelResourcBooking/components/scheduleCalendar/index.tsx
|
|
30
|
-
var scheduleCalendar_exports = {};
|
|
31
|
-
__export(scheduleCalendar_exports, {
|
|
32
|
-
default: () => scheduleCalendar_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(scheduleCalendar_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
37
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
38
|
-
var import_calendarItem = __toESM(require("./calendarItem"));
|
|
39
|
-
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
40
|
-
var import_index = require("./index.less");
|
|
41
|
-
var EventScheduleCalendar = ({
|
|
42
|
-
// 数据源
|
|
43
|
-
data,
|
|
44
|
-
showScheduleName = true,
|
|
45
|
-
showScheduleTime = true,
|
|
46
|
-
className,
|
|
47
|
-
style,
|
|
48
|
-
onChange
|
|
49
|
-
}) => {
|
|
50
|
-
const [currentMonth, setCurrentMonth] = (0, import_react.useState)(
|
|
51
|
-
(/* @__PURE__ */ new Date()).toISOString().slice(0, 7)
|
|
52
|
-
);
|
|
53
|
-
const [selectedDate, setSelectedDate] = (0, import_react.useState)("");
|
|
54
|
-
const [selectedTimes, setSelectedTimes] = (0, import_react.useState)([]);
|
|
55
|
-
const context = (0, import_useEngineContext.default)();
|
|
56
|
-
const utils = context.appHelper.utils || {};
|
|
57
|
-
const [selectedYear, setSelectedYear] = (0, import_react.useState)((0, import_dayjs.default)().year());
|
|
58
|
-
(0, import_react.useEffect)(() => {
|
|
59
|
-
if (data == null ? void 0 : data.length) {
|
|
60
|
-
const today = /* @__PURE__ */ new Date();
|
|
61
|
-
today.setHours(0, 0, 0, 0);
|
|
62
|
-
const firstAvailableDate = data.find((item) => {
|
|
63
|
-
const itemDate = new Date(item.date);
|
|
64
|
-
return itemDate >= today;
|
|
65
|
-
});
|
|
66
|
-
if (firstAvailableDate) {
|
|
67
|
-
setSelectedDate(firstAvailableDate.date);
|
|
68
|
-
setSelectedTimes(firstAvailableDate.times || []);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}, [data]);
|
|
72
|
-
const handleSelectDate = (date, item) => {
|
|
73
|
-
const dateData = data == null ? void 0 : data.find((d) => d.date === date);
|
|
74
|
-
if (dateData) {
|
|
75
|
-
setSelectedDate(date);
|
|
76
|
-
setSelectedTimes(dateData.times || []);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
const formatDateStr = (time) => {
|
|
80
|
-
var _a, _b;
|
|
81
|
-
try {
|
|
82
|
-
const locale = ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en";
|
|
83
|
-
const hour24 = (0, import_dayjs.default)(time).format("HH");
|
|
84
|
-
const minutes = (0, import_dayjs.default)(time).format("mm");
|
|
85
|
-
const isZh = (_b = locale.toLowerCase()) == null ? void 0 : _b.includes("zh");
|
|
86
|
-
if (isZh) {
|
|
87
|
-
const period = Number(hour24) < 12 ? "上午" : "下午";
|
|
88
|
-
const hour12 = Number(hour24) % 12 || 12;
|
|
89
|
-
return `${period} ${hour12}:${minutes}`;
|
|
90
|
-
}
|
|
91
|
-
return (0, import_dayjs.default)(time).format("hh:mm a").toLowerCase();
|
|
92
|
-
} catch (error) {
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
(0, import_react.useEffect)(() => {
|
|
96
|
-
onChange == null ? void 0 : onChange(selectedYear);
|
|
97
|
-
}, [selectedYear]);
|
|
98
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
99
|
-
"div",
|
|
100
|
-
{
|
|
101
|
-
className: (0, import_classnames.default)("schedule-calendar-wrap", className),
|
|
102
|
-
style
|
|
103
|
-
},
|
|
104
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: `month-item-box` }, /* @__PURE__ */ import_react.default.createElement(
|
|
105
|
-
import_calendarItem.default,
|
|
106
|
-
{
|
|
107
|
-
isEdit: false,
|
|
108
|
-
month: currentMonth,
|
|
109
|
-
schedulesData: data || [],
|
|
110
|
-
selectDate: selectedDate,
|
|
111
|
-
onSelect: handleSelectDate,
|
|
112
|
-
onChange: (e, type) => {
|
|
113
|
-
setCurrentMonth(e);
|
|
114
|
-
const currentYear = (0, import_dayjs.default)().year();
|
|
115
|
-
const selectedYear2 = (0, import_dayjs.default)(e).year();
|
|
116
|
-
setSelectedYear(selectedYear2);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
)),
|
|
120
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("category-list") }, selectedTimes.map((d, i) => {
|
|
121
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "category-item", key: i }, showScheduleName ? /* @__PURE__ */ import_react.default.createElement("div", { className: "category-title" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "category-icon" }, /* @__PURE__ */ import_react.default.createElement("span", null)), /* @__PURE__ */ import_react.default.createElement("span", null, d.name)) : null, showScheduleTime ? /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("time") }, formatDateStr(d.start_at), " - ", formatDateStr(d.end_at)) : null);
|
|
122
|
-
}))
|
|
123
|
-
);
|
|
124
|
-
};
|
|
125
|
-
var scheduleCalendar_default = EventScheduleCalendar;
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
.schedule-calendar-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
padding: 10px 26px 26px;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
align-items: flex-start;
|
|
6
|
-
|
|
7
|
-
.ant-picker-panel {
|
|
8
|
-
border-top: none;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.pisell-lowcode-picker-cell {
|
|
12
|
-
padding: 0;
|
|
13
|
-
border-top: none;
|
|
14
|
-
color: var(--Gray-900, #101828);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.cell-size {
|
|
18
|
-
width: 40px;
|
|
19
|
-
height: 40px;
|
|
20
|
-
padding: 4px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.date-cell {
|
|
24
|
-
.cell-size ();
|
|
25
|
-
text-align: center;
|
|
26
|
-
line-height: 50px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.pisell-lowcode-picker-content th {
|
|
30
|
-
.date-cell();
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.pisell-lowcode-picker-content thead th {
|
|
34
|
-
.date-cell();
|
|
35
|
-
padding: 0 !important;
|
|
36
|
-
line-height: 40px !important;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.month-item-box {
|
|
40
|
-
.pisell-lowcode-picker-body {
|
|
41
|
-
padding: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.pisell-lowcode-picker-calendar {
|
|
45
|
-
user-select: none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// .pisell-lowcode-picker-calendar .pisell-lowcode-picker-cell {
|
|
49
|
-
// // margin-top: 16px;
|
|
50
|
-
// margin-top: 0;
|
|
51
|
-
// padding: 0;
|
|
52
|
-
// }
|
|
53
|
-
|
|
54
|
-
// .pisell-lowcode-picker-content th {
|
|
55
|
-
// width: 40px;
|
|
56
|
-
// height: 40px;
|
|
57
|
-
// }
|
|
58
|
-
|
|
59
|
-
.pisell-lowcode-picker-panel {
|
|
60
|
-
border: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.calendar-month {
|
|
64
|
-
display: flex;
|
|
65
|
-
justify-content: space-between;
|
|
66
|
-
align-items: center;
|
|
67
|
-
align-self: stretch;
|
|
68
|
-
margin-bottom: 10px;
|
|
69
|
-
user-select: none; // 防止文本被选中
|
|
70
|
-
-webkit-user-select: none;
|
|
71
|
-
-moz-user-select: none;
|
|
72
|
-
-ms-user-select: none;
|
|
73
|
-
|
|
74
|
-
.calendar-month-icon {
|
|
75
|
-
font-size: 20px;
|
|
76
|
-
display: flex;
|
|
77
|
-
padding: 8px;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
align-items: center;
|
|
80
|
-
gap: 8px;
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
user-select: none;
|
|
83
|
-
&:active {
|
|
84
|
-
cursor: pointer !important;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.calendar-month-title {
|
|
89
|
-
color: var(--Gray-700, #344054);
|
|
90
|
-
text-align: center;
|
|
91
|
-
font-size: 16px;
|
|
92
|
-
font-weight: 600;
|
|
93
|
-
line-height: 24px;
|
|
94
|
-
flex: 1;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.caleddar-date-cell {
|
|
99
|
-
.cell-size ();
|
|
100
|
-
position: relative;
|
|
101
|
-
border-radius: 50%;
|
|
102
|
-
// margin: 16px auto 0;
|
|
103
|
-
margin-top: 0;
|
|
104
|
-
|
|
105
|
-
&.select {
|
|
106
|
-
background-color: #fedf89;
|
|
107
|
-
padding: 4px;
|
|
108
|
-
// width: 48px;
|
|
109
|
-
// height: 48px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&.excluded {
|
|
113
|
-
&::after {
|
|
114
|
-
content: '';
|
|
115
|
-
position: absolute;
|
|
116
|
-
top: 0%;
|
|
117
|
-
left: 0%;
|
|
118
|
-
width: 100%;
|
|
119
|
-
height: 100%;
|
|
120
|
-
background: linear-gradient(
|
|
121
|
-
-45deg,
|
|
122
|
-
#ffffff 25%,
|
|
123
|
-
transparent 25%,
|
|
124
|
-
transparent 50%,
|
|
125
|
-
#ffffff 50%,
|
|
126
|
-
#ffffff 75%,
|
|
127
|
-
transparent 75%,
|
|
128
|
-
transparent
|
|
129
|
-
);
|
|
130
|
-
background-size: 10px 10px;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.caleddar-date {
|
|
135
|
-
color: #101828;
|
|
136
|
-
border-radius: 50%;
|
|
137
|
-
width: 100%;
|
|
138
|
-
height: 100%;
|
|
139
|
-
display: flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
justify-content: center;
|
|
142
|
-
font-weight: 500;
|
|
143
|
-
|
|
144
|
-
&.has-status {
|
|
145
|
-
color: #ffffff;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&.disabled-date {
|
|
149
|
-
color: #7d89b0;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.ant-picker-cell {
|
|
155
|
-
padding: 0;
|
|
156
|
-
.cell-size ();
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.pisell-lowcode-picker-cell-disabled {
|
|
160
|
-
&::before {
|
|
161
|
-
display: none;
|
|
162
|
-
}
|
|
163
|
-
color: #98a2b3 !important;
|
|
164
|
-
padding-top: 0 !important;
|
|
165
|
-
margin-top: 0;
|
|
166
|
-
width: 40px;
|
|
167
|
-
height: 40px;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.category-list {
|
|
172
|
-
width: 100%;
|
|
173
|
-
height: 100%;
|
|
174
|
-
padding: 0;
|
|
175
|
-
|
|
176
|
-
.category-item {
|
|
177
|
-
.category-title {
|
|
178
|
-
font-style: normal;
|
|
179
|
-
font-weight: 600;
|
|
180
|
-
font-size: 18px;
|
|
181
|
-
line-height: 24px;
|
|
182
|
-
color: #1b1b1b;
|
|
183
|
-
display: flex;
|
|
184
|
-
align-items: center;
|
|
185
|
-
margin-top: 24px;
|
|
186
|
-
|
|
187
|
-
.category-icon {
|
|
188
|
-
display: flex;
|
|
189
|
-
align-items: center;
|
|
190
|
-
justify-content: center;
|
|
191
|
-
padding: 8px;
|
|
192
|
-
span {
|
|
193
|
-
width: 12px;
|
|
194
|
-
height: 12px;
|
|
195
|
-
border-radius: 50%;
|
|
196
|
-
background: var(--Primary-600, #7f56d9);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.time {
|
|
202
|
-
margin-top: 16px;
|
|
203
|
-
display: flex;
|
|
204
|
-
padding: 14px 16px;
|
|
205
|
-
justify-content: space-between;
|
|
206
|
-
align-items: center;
|
|
207
|
-
align-self: stretch;
|
|
208
|
-
border-radius: 8px;
|
|
209
|
-
border: 1px solid var(--Gray-true-100, #f5f5f5);
|
|
210
|
-
background: var(--Base-White, #fff);
|
|
211
|
-
color: var(--Gray-true-900, #141414);
|
|
212
|
-
font-size: 14px;
|
|
213
|
-
font-weight: 600;
|
|
214
|
-
line-height: 20px;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.pisell-lowcode-picker-cell {
|
|
220
|
-
height: 48px !important;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellSelectHolderProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
onCancel?: () => void;
|
|
6
|
-
onOk?: (selected: any) => void;
|
|
7
|
-
onClick?: (value: any) => void;
|
|
8
|
-
onAdd?: () => void;
|
|
9
|
-
options?: Array<{
|
|
10
|
-
label: string;
|
|
11
|
-
value: any;
|
|
12
|
-
avatar?: string;
|
|
13
|
-
}>;
|
|
14
|
-
value?: any;
|
|
15
|
-
title?: string;
|
|
16
|
-
okText?: string;
|
|
17
|
-
showCancel?: boolean;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
errorTipText?: string;
|
|
20
|
-
}
|
|
21
|
-
declare const PisellSelectHolder: React.FC<PisellSelectHolderProps>;
|
|
22
|
-
export default PisellSelectHolder;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/parallelResourcBooking/components/selectHolder/index.tsx
|
|
30
|
-
var selectHolder_exports = {};
|
|
31
|
-
__export(selectHolder_exports, {
|
|
32
|
-
default: () => selectHolder_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(selectHolder_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_materials = require("@pisell/materials");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_ErrorTip = __toESM(require("../ErrorTip"));
|
|
39
|
-
var import_mock = require("../../mock");
|
|
40
|
-
var import_index = require("./index.less");
|
|
41
|
-
var PisellSelectHolder = ({
|
|
42
|
-
open = false,
|
|
43
|
-
onCancel,
|
|
44
|
-
onOk,
|
|
45
|
-
onClick,
|
|
46
|
-
onAdd,
|
|
47
|
-
options = import_mock.mock.holder || [],
|
|
48
|
-
value,
|
|
49
|
-
title,
|
|
50
|
-
okText,
|
|
51
|
-
showCancel,
|
|
52
|
-
disabled,
|
|
53
|
-
errorTipText
|
|
54
|
-
}) => {
|
|
55
|
-
const [errorTip, setErrorTip] = (0, import_react.useState)();
|
|
56
|
-
(0, import_react.useEffect)(() => {
|
|
57
|
-
if (open && !disabled) {
|
|
58
|
-
setErrorTip("");
|
|
59
|
-
}
|
|
60
|
-
}, [open, disabled]);
|
|
61
|
-
const renderCard = (item) => {
|
|
62
|
-
return /* @__PURE__ */ import_react.default.createElement(import_materials.PisellCard, { key: item.id, padding: 20, selected: value == item.id }, /* @__PURE__ */ import_react.default.createElement("div", { className: "select-holder-card" }, /* @__PURE__ */ import_react.default.createElement(import_materials.PisellAvatar, { src: item.avatar, size: "xxl" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "select-holder-name" }, item.name)));
|
|
63
|
-
};
|
|
64
|
-
const renderAddItem = () => {
|
|
65
|
-
return /* @__PURE__ */ import_react.default.createElement(import_materials.PisellCard, { padding: 20 }, /* @__PURE__ */ import_react.default.createElement("div", { className: `select-holder-card select-holder-add-card` }, /* @__PURE__ */ import_react.default.createElement(import_materials.PisellAvatar, { size: "xxl", className: "select-holder-card-avatar" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "select-holder-name" }, import_utils.locales.getText("pisell2.event.create"))));
|
|
66
|
-
};
|
|
67
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
68
|
-
import_materials.PisellModal,
|
|
69
|
-
{
|
|
70
|
-
open,
|
|
71
|
-
title: (0, import_utils.isMobile)() ? "" : title,
|
|
72
|
-
platform: (0, import_utils.isMobile)() ? "h5" : "pc",
|
|
73
|
-
okText,
|
|
74
|
-
cancelVisible: false,
|
|
75
|
-
closable: showCancel,
|
|
76
|
-
onCancel,
|
|
77
|
-
onOk: (e) => {
|
|
78
|
-
if (disabled) {
|
|
79
|
-
return setErrorTip(errorTipText);
|
|
80
|
-
}
|
|
81
|
-
onOk && onOk(e);
|
|
82
|
-
},
|
|
83
|
-
bodyStyle: { padding: (0, import_utils.isMobile)() ? "0 16px 16px" : 20 },
|
|
84
|
-
mobileModalHeight: "auto",
|
|
85
|
-
destroyOnClose: true,
|
|
86
|
-
className: `select-holder-modal ${(0, import_utils.isMobile)() ? "select-holder-modal-mobile" : ""}`,
|
|
87
|
-
headerDivider: false
|
|
88
|
-
},
|
|
89
|
-
(0, import_utils.isMobile)() ? /* @__PURE__ */ import_react.default.createElement("div", { className: "select-holder-modal-title" }, title) : null,
|
|
90
|
-
errorTip ? /* @__PURE__ */ import_react.default.createElement(import_ErrorTip.default, { text: errorTip }) : null,
|
|
91
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
92
|
-
import_materials.PisellCustomCheckboxGroup,
|
|
93
|
-
{
|
|
94
|
-
dataSource: options,
|
|
95
|
-
renderItem: renderCard,
|
|
96
|
-
renderAddItem,
|
|
97
|
-
columns: (0, import_utils.isMobile)() ? 2 : 3,
|
|
98
|
-
horizontalGap: 16,
|
|
99
|
-
verticalGap: 16,
|
|
100
|
-
allowAdd: true,
|
|
101
|
-
onClick: (e) => onClick && onClick(e)
|
|
102
|
-
}
|
|
103
|
-
)
|
|
104
|
-
);
|
|
105
|
-
};
|
|
106
|
-
var selectHolder_default = PisellSelectHolder;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
.select-holder-modal {
|
|
2
|
-
.pisell-view-grid-item {
|
|
3
|
-
height: 138px;
|
|
4
|
-
> div {
|
|
5
|
-
height: 100%;
|
|
6
|
-
.pisell-lowcode-card {
|
|
7
|
-
height: 100% !important;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.select-holder-modal-title {
|
|
13
|
-
color: var(--Gray-900, #101828);
|
|
14
|
-
font-size: 18px;
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
line-height: 28px;
|
|
17
|
-
margin-bottom: 16px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.select-holder-card {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
align-items: center;
|
|
25
|
-
gap: 10px;
|
|
26
|
-
flex: 1 0 0;
|
|
27
|
-
color: var(--Text-Text_1, #1b1b1b);
|
|
28
|
-
font-size: 14px;
|
|
29
|
-
font-style: normal;
|
|
30
|
-
font-weight: 600;
|
|
31
|
-
line-height: 20px;
|
|
32
|
-
width: 100%;
|
|
33
|
-
text-align: center;
|
|
34
|
-
|
|
35
|
-
.select-holder-name {
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
text-overflow: ellipsis;
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
width: 100%;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.select-holder-add-card {
|
|
44
|
-
.pisell-lowcode-avatar {
|
|
45
|
-
background: var(--Primary-100, #f4ebff);
|
|
46
|
-
.pisell-lowcode-avatar-string {
|
|
47
|
-
line-height: 32px !important;
|
|
48
|
-
width: 32px;
|
|
49
|
-
height: 32px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.anticon {
|
|
53
|
-
font-size: 32px !important;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.select-holder-name {
|
|
58
|
-
color: var(--Text-Text_1, #1b1b1b);
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
font-weight: 600;
|
|
61
|
-
line-height: 20px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.select-holder-modal-mobile {
|
|
67
|
-
.pisell-lowcode-modal-header {
|
|
68
|
-
border: none !important;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface TimeSlot {
|
|
4
|
-
id: string;
|
|
5
|
-
remainingCount: number;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
start_time: string;
|
|
8
|
-
end_time: string;
|
|
9
|
-
}
|
|
10
|
-
export interface TimeResourceSelectorProps {
|
|
11
|
-
timeSlots?: TimeSlot[];
|
|
12
|
-
showUnavailable?: boolean;
|
|
13
|
-
defaultExpanded?: boolean;
|
|
14
|
-
defaultSelectFirst?: boolean;
|
|
15
|
-
onChange?: (values: any[]) => void;
|
|
16
|
-
className?: string;
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
}
|
|
19
|
-
declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
|
|
20
|
-
export default TimeResourceSelector;
|