@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,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 日历状态列表
|
|
3
|
-
* @description:
|
|
4
|
-
* @return {*}
|
|
5
|
-
* @Author: WangHan
|
|
6
|
-
* @Date: 2025-01-14 10:24
|
|
7
|
-
*/
|
|
8
|
-
export declare const statusList: {
|
|
9
|
-
status: number;
|
|
10
|
-
text: any;
|
|
11
|
-
color: string;
|
|
12
|
-
}[];
|
|
13
|
-
/**
|
|
14
|
-
* @title: 日历状态文案
|
|
15
|
-
* @description:
|
|
16
|
-
* @param {string} type
|
|
17
|
-
* @return {*}
|
|
18
|
-
* @Author: WangHan
|
|
19
|
-
* @Date: 2025-01-14 11:25
|
|
20
|
-
*/
|
|
21
|
-
export declare const statusMessage: (type: string) => any;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/parallelResourcBooking/status.ts
|
|
20
|
-
var status_exports = {};
|
|
21
|
-
__export(status_exports, {
|
|
22
|
-
statusList: () => statusList,
|
|
23
|
-
statusMessage: () => statusMessage
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(status_exports);
|
|
26
|
-
var import_utils = require("@pisell/utils");
|
|
27
|
-
var statusList = [
|
|
28
|
-
{
|
|
29
|
-
status: 0,
|
|
30
|
-
text: import_utils.locales.getText("pisell2.event.calendar.limit.unavailable"),
|
|
31
|
-
color: "#EAECF0"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
status: 1,
|
|
35
|
-
text: import_utils.locales.getText("pisell2.event.calendar.limit.sold.out"),
|
|
36
|
-
color: "#D92D20"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
status: 2,
|
|
40
|
-
text: import_utils.locales.getText("pisell2.event.calendar.limit.call.to.book"),
|
|
41
|
-
color: "#444CE7"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
status: 3,
|
|
45
|
-
text: import_utils.locales.getText("pisell2.event.calendar.limit.filling.up.fast"),
|
|
46
|
-
color: "#CA8504"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
status: 4,
|
|
50
|
-
text: import_utils.locales.getText("pisell2.event.calendar.limit.lots.of.space"),
|
|
51
|
-
color: "#079455"
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
var statusMessage = (type) => {
|
|
55
|
-
switch (type) {
|
|
56
|
-
case "booking_closed":
|
|
57
|
-
return import_utils.locales.getText("pisell2.event.calendar.booking-closed");
|
|
58
|
-
case "call_to_book":
|
|
59
|
-
return import_utils.locales.getText("pisell2.event.calendar.call-to-book");
|
|
60
|
-
case "email_to_book":
|
|
61
|
-
return import_utils.locales.getText("pisell2.event.calendar.email-to-book");
|
|
62
|
-
default:
|
|
63
|
-
return "";
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
67
|
-
0 && (module.exports = {
|
|
68
|
-
statusList,
|
|
69
|
-
statusMessage
|
|
70
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare type CalendarDataItem = {
|
|
2
|
-
date: string;
|
|
3
|
-
color: string[];
|
|
4
|
-
isExcluded: boolean;
|
|
5
|
-
schedule_ids?: number[];
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
export declare type CalendarItemProps = {
|
|
9
|
-
date: string;
|
|
10
|
-
status?: string | null;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
select?: boolean;
|
|
13
|
-
onClick?: (date: string) => void;
|
|
14
|
-
showMonth?: boolean;
|
|
15
|
-
dateText: string;
|
|
16
|
-
week?: string;
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
|
|
15
|
-
// src/components/parallelResourcBooking/type.ts
|
|
16
|
-
var type_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(type_exports);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 获取背景色
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {string} colors
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2025-01-11 22:44
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatBackgroundColors: (colors: string[]) => string;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 获取可用的 schedule
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {any} schedule
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: zhiwei.Wang
|
|
16
|
-
* @Date: 2024-03-05 18:05
|
|
17
|
-
*/
|
|
18
|
-
export declare const getUsableSchedules: (schedule: any) => boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @title: 获取 schedules 的所有颜色
|
|
21
|
-
* @description:
|
|
22
|
-
* @param {any} schedules
|
|
23
|
-
* @return {*}
|
|
24
|
-
* @Author: zhiwei.Wang
|
|
25
|
-
* @Date: 2024-03-05 18:02
|
|
26
|
-
*/
|
|
27
|
-
export declare const getScheduleColors: (schedules: any[]) => string;
|
|
28
|
-
/**
|
|
29
|
-
* @title: 格式化日期头部日期显示
|
|
30
|
-
* @description:
|
|
31
|
-
* @param {string} dateString
|
|
32
|
-
* @return {*}
|
|
33
|
-
* @Author: WangHan
|
|
34
|
-
* @Date: 2025-01-12 11:55
|
|
35
|
-
*/
|
|
36
|
-
export declare const formatMonthDisplay: (dateString: string) => string;
|
|
37
|
-
/**
|
|
38
|
-
* @title: 资源名称
|
|
39
|
-
* @description:
|
|
40
|
-
* @param {any} data
|
|
41
|
-
* @return {*}
|
|
42
|
-
* @Author: WangHan
|
|
43
|
-
* @Date: 2025-02-11 13:39
|
|
44
|
-
*/
|
|
45
|
-
export declare const resourceTitle: (data: any) => any;
|
|
@@ -1,90 +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/utils.ts
|
|
30
|
-
var utils_exports = {};
|
|
31
|
-
__export(utils_exports, {
|
|
32
|
-
formatBackgroundColors: () => formatBackgroundColors,
|
|
33
|
-
formatMonthDisplay: () => formatMonthDisplay,
|
|
34
|
-
getScheduleColors: () => getScheduleColors,
|
|
35
|
-
getUsableSchedules: () => getUsableSchedules,
|
|
36
|
-
resourceTitle: () => resourceTitle
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(utils_exports);
|
|
39
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
40
|
-
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
41
|
-
var formatBackgroundColors = (colors) => {
|
|
42
|
-
let _colors = Array.from(new Set(colors.map((color) => color == null ? void 0 : color.toLocaleLowerCase()) || [])).filter((d) => !!d);
|
|
43
|
-
let colorStr = _colors.map((color, index) => {
|
|
44
|
-
return `${color} ${index * 100 / _colors.length}% ${(index + 1) * 100 / _colors.length}%`;
|
|
45
|
-
}).join(", ");
|
|
46
|
-
if (colorStr) {
|
|
47
|
-
return `conic-gradient(${colorStr})`;
|
|
48
|
-
}
|
|
49
|
-
return "";
|
|
50
|
-
};
|
|
51
|
-
var getUsableSchedules = (schedule) => {
|
|
52
|
-
if (!schedule) {
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
if (!schedule.minTime || !schedule.maxTime) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
let currentDate = (0, import_dayjs.default)();
|
|
59
|
-
if (currentDate.isAfter(schedule.maxTime)) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
return true;
|
|
63
|
-
};
|
|
64
|
-
var getScheduleColors = (schedules) => {
|
|
65
|
-
return formatBackgroundColors(schedules.map((d) => d.color));
|
|
66
|
-
};
|
|
67
|
-
var formatMonthDisplay = (dateString) => {
|
|
68
|
-
var _a;
|
|
69
|
-
const context = (0, import_useEngineContext.default)();
|
|
70
|
-
const utils = context.appHelper.utils || {};
|
|
71
|
-
const locale = ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
|
|
72
|
-
const date = /* @__PURE__ */ new Date(dateString + "-01");
|
|
73
|
-
return date.toLocaleString(locale, { month: "long", year: "numeric" });
|
|
74
|
-
};
|
|
75
|
-
var resourceTitle = (data) => {
|
|
76
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
77
|
-
const context = (0, import_useEngineContext.default)();
|
|
78
|
-
const form = (_c = (_b = (_a = data == null ? void 0 : data.initData) == null ? void 0 : _a.boardSetting) == null ? void 0 : _b.event_v2_form) == null ? void 0 : _c.form;
|
|
79
|
-
const title = ((_d = form == null ? void 0 : form.setting) == null ? void 0 : _d.title) || (form == null ? void 0 : form.title);
|
|
80
|
-
const translation = (_f = (_e = context == null ? void 0 : context.appHelper) == null ? void 0 : _e.utils) == null ? void 0 : _f.translation;
|
|
81
|
-
return (_g = translation(title)) == null ? void 0 : _g.toLowerCase();
|
|
82
|
-
};
|
|
83
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
-
0 && (module.exports = {
|
|
85
|
-
formatBackgroundColors,
|
|
86
|
-
formatMonthDisplay,
|
|
87
|
-
getScheduleColors,
|
|
88
|
-
getUsableSchedules,
|
|
89
|
-
resourceTitle
|
|
90
|
-
});
|