@pisell/private-materials 3.0.214 → 3.1.2
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 +146 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +27 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +33 -18
- package/es/components/booking/components/customSelect/index.d.ts +0 -1
- package/es/components/booking/components/customSelect/index.js +2 -6
- package/es/components/booking/components/footer/amount.js +22 -46
- package/es/components/booking/components/footer/index.js +79 -116
- package/es/components/booking/components/footer/serve.d.ts +0 -2
- package/es/components/booking/components/footer/serve.js +0 -44
- package/es/components/booking/components/footer/utils.js +68 -282
- package/es/components/booking/info/addServiceVariant/index.js +1 -8
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +13 -14
- package/es/components/booking/info/clientVariant/vertical/index.js +15 -131
- package/es/components/booking/info/main.js +28 -44
- package/es/components/booking/info/model.js +0 -3
- package/es/components/booking/info/pet/index.d.ts +1 -1
- package/es/components/booking/info/pet/index.js +35 -94
- package/es/components/booking/info/service/addService/index.js +104 -195
- package/es/components/booking/info/service/addService/index.less +3 -13
- package/es/components/booking/info/service/addService/utils.d.ts +2 -12
- package/es/components/booking/info/service/addService/utils.js +26 -103
- package/es/components/booking/info/service/editService/index.js +142 -450
- package/es/components/booking/info/service/editService/index.less +13 -18
- package/es/components/booking/info/service/serve.d.ts +0 -10
- package/es/components/booking/info/service/serve.js +0 -28
- package/es/components/booking/info/utils.d.ts +0 -20
- package/es/components/booking/info/utils.js +1 -38
- package/es/components/booking/info2/utilsByBooking.js +1 -0
- package/es/components/booking/locales.d.ts +0 -66
- package/es/components/booking/locales.js +3 -81
- package/es/components/booking/model.d.ts +1 -5
- package/es/components/booking/model.js +2 -4
- package/es/components/booking/utils.d.ts +3 -12
- package/es/components/booking/utils.js +26 -143
- package/es/components/eftpos/hooks.d.ts +4 -4
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/step/index.d.ts +6 -6
- package/es/components/eftposPay/component/step/step.d.ts +4 -4
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/es/components/eftposPay/windcave/helper.d.ts +1 -1
- package/es/components/eftposPay/windcave/windcave.js +60 -27
- package/es/components/tabProduct/tabs/index.less +3 -13
- package/es/index.d.ts +0 -13
- package/es/index.js +1 -14
- package/lib/components/booking/components/customSelect/index.d.ts +0 -1
- package/lib/components/booking/components/customSelect/index.js +2 -6
- package/lib/components/booking/components/footer/amount.js +8 -27
- package/lib/components/booking/components/footer/index.js +55 -50
- package/lib/components/booking/components/footer/serve.d.ts +0 -2
- package/lib/components/booking/components/footer/serve.js +0 -12
- package/lib/components/booking/components/footer/utils.js +53 -167
- package/lib/components/booking/info/addServiceVariant/index.js +0 -5
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +7 -8
- package/lib/components/booking/info/clientVariant/vertical/index.js +20 -97
- package/lib/components/booking/info/main.js +21 -32
- package/lib/components/booking/info/model.js +0 -3
- package/lib/components/booking/info/pet/index.d.ts +1 -1
- package/lib/components/booking/info/pet/index.js +44 -91
- package/lib/components/booking/info/service/addService/index.js +101 -132
- package/lib/components/booking/info/service/addService/index.less +3 -13
- package/lib/components/booking/info/service/addService/utils.d.ts +2 -12
- package/lib/components/booking/info/service/addService/utils.js +10 -58
- package/lib/components/booking/info/service/editService/index.js +197 -447
- package/lib/components/booking/info/service/editService/index.less +13 -18
- package/lib/components/booking/info/service/serve.d.ts +0 -10
- package/lib/components/booking/info/service/serve.js +2 -7
- package/lib/components/booking/info/utils.d.ts +0 -20
- package/lib/components/booking/info/utils.js +1 -42
- package/lib/components/booking/locales.d.ts +0 -66
- package/lib/components/booking/locales.js +3 -69
- package/lib/components/booking/model.d.ts +1 -5
- package/lib/components/booking/model.js +2 -4
- package/lib/components/booking/utils.d.ts +3 -12
- package/lib/components/booking/utils.js +18 -89
- package/lib/components/eftpos/hooks.d.ts +4 -4
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/step/index.d.ts +6 -6
- package/lib/components/eftposPay/component/step/step.d.ts +4 -4
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
- package/lib/components/eftposPay/windcave/windcave.js +28 -11
- package/lib/components/tabProduct/tabs/index.less +3 -13
- package/lib/index.d.ts +0 -13
- package/lib/index.js +0 -39
- package/package.json +4 -4
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/businessModel/SalesModel/Sales/index.js +0 -69
- package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/es/businessModel/SalesModel/hooks/index.js +0 -7
- package/es/businessModel/SalesModel/index.d.ts +0 -4
- package/es/businessModel/SalesModel/index.js +0 -18
- package/es/businessModel/index.d.ts +0 -0
- package/es/businessModel/index.js +0 -0
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/index.js +0 -591
- package/es/components/Sales/Cart/serve.d.ts +0 -2
- package/es/components/Sales/Cart/serve.js +0 -11
- package/es/components/Sales/Cart/types.d.ts +0 -19
- package/es/components/Sales/Cart/types.js +0 -1
- package/es/components/Sales/Checkout/index.d.ts +0 -33
- package/es/components/Sales/Checkout/index.js +0 -149
- package/es/components/Sales/Checkout/serve.d.ts +0 -2
- package/es/components/Sales/Checkout/serve.js +0 -11
- package/es/components/Sales/Checkout/utils.d.ts +0 -27
- package/es/components/Sales/Checkout/utils.js +0 -104
- package/es/components/Sales/Customer/index.d.ts +0 -24
- package/es/components/Sales/Customer/index.js +0 -56
- package/es/components/Sales/Event/Detail.d.ts +0 -27
- package/es/components/Sales/Event/Detail.js +0 -244
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/Sales/Event/index.js +0 -121
- package/es/components/Sales/Event/serve.d.ts +0 -26
- package/es/components/Sales/Event/serve.js +0 -33
- package/es/components/Sales/Holder/index.d.ts +0 -33
- package/es/components/Sales/Holder/index.js +0 -226
- package/es/components/Sales/Holder/serve.d.ts +0 -8
- package/es/components/Sales/Holder/serve.js +0 -20
- package/es/components/Sales/Init/index.d.ts +0 -24
- package/es/components/Sales/Init/index.js +0 -114
- package/es/components/Sales/Init/serve.d.ts +0 -3
- package/es/components/Sales/Init/serve.js +0 -11
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/index.js +0 -126
- package/es/components/Sales/Resource/serve.d.ts +0 -5
- package/es/components/Sales/Resource/serve.js +0 -8
- package/es/components/Sales/Step/index.d.ts +0 -37
- package/es/components/Sales/Step/index.js +0 -189
- package/es/components/Sales/Summary/index.d.ts +0 -25
- package/es/components/Sales/Summary/index.js +0 -47
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/serve.js +0 -0
- package/es/components/Sales/Summary/utils.d.ts +0 -36
- package/es/components/Sales/Summary/utils.js +0 -63
- package/es/components/Sales/hooks/index.d.ts +0 -1
- package/es/components/Sales/hooks/index.js +0 -3
- package/es/components/Sales/index.d.ts +0 -20
- package/es/components/Sales/index.js +0 -26
- package/es/components/Sales/utils/index.d.ts +0 -1
- package/es/components/Sales/utils/index.js +0 -18
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +0 -38
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/Provider.js +0 -54
- package/es/components/booking/info/dateRange/index.d.ts +0 -5
- package/es/components/booking/info/dateRange/index.js +0 -98
- package/es/components/booking/info/dateRange/index.less +0 -21
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/es/components/booking/info/pet/ChangePetModal/index.js +0 -134
- package/es/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
- package/es/components/booking/info/service/editService/BookingList/index.js +0 -39
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/editService/EditTabs/index.js +0 -35
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +0 -55
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service/serviceManager/index.js +0 -281
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service/serviceManager/utils.js +0 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/es/components/booking/info/service2/Group/utils.js +0 -146
- package/es/components/booking/info/service2/Lists.d.ts +0 -3
- package/es/components/booking/info/service2/Lists.js +0 -153
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/es/components/booking/info/service2/hooks/useSelectPet.js +0 -54
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/index.js +0 -57
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info/service2/status.js +0 -78
- package/es/components/booking/info/service2/utils.d.ts +0 -240
- package/es/components/booking/info/service2/utils.js +0 -1077
- package/es/components/booking/materiels/holder/index.d.ts +0 -7
- package/es/components/booking/materiels/holder/index.js +0 -51
- package/es/components/eventBooking/assets/alert-circle.png +0 -0
- package/es/components/eventBooking/assets/calendar-heart.svg +0 -5
- package/es/components/eventBooking/assets/compass.svg +0 -13
- package/es/components/eventBooking/assets/image.svg +0 -5
- package/es/components/eventBooking/assets/phone.svg +0 -5
- package/es/components/eventBooking/assets/shopping-cart.svg +0 -10
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -4
- package/es/components/eventBooking/components/ErrorTip/index.js +0 -14
- package/es/components/eventBooking/components/ErrorTip/index.less +0 -51
- package/es/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/eventBooking/components/OpenCard/index.js +0 -65
- package/es/components/eventBooking/components/OpenCard/index.less +0 -52
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +0 -274
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +0 -46
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +0 -63
- package/es/components/eventBooking/components/Provider/Cart/Item/index.less +0 -87
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/index.js +0 -30
- package/es/components/eventBooking/components/Provider/Cart/index.less +0 -2
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Content/index.js +0 -65
- package/es/components/eventBooking/components/Provider/Content/index.less +0 -31
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Event/index.js +0 -93
- package/es/components/eventBooking/components/Provider/Event/index.less +0 -20
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Footer/index.js +0 -76
- package/es/components/eventBooking/components/Provider/Footer/index.less +0 -64
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Header/index.js +0 -75
- package/es/components/eventBooking/components/Provider/Header/index.less +0 -2
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Information/index.js +0 -178
- package/es/components/eventBooking/components/Provider/Information/index.less +0 -92
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/eventBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/SelectHolderModal.js +0 -90
- 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/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -257
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -174
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.js +0 -36
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.js +0 -33
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +0 -30
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/eventBooking/components/bookingDetailModal/index.js +0 -355
- package/es/components/eventBooking/components/bookingDetailModal/index.less +0 -83
- package/es/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/eventBooking/components/bookingServiceList/index.js +0 -52
- package/es/components/eventBooking/components/bookingServiceList/index.less +0 -6
- package/es/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/eventBooking/components/eventCard/index.js +0 -116
- package/es/components/eventBooking/components/eventCard/index.less +0 -81
- package/es/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/es/components/eventBooking/components/productCard/index.js +0 -79
- package/es/components/eventBooking/components/productCard/index.less +0 -60
- package/es/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/eventBooking/components/progressBar/index.js +0 -93
- package/es/components/eventBooking/components/progressBar/index.less +0 -15
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/eventBooking/components/resourceDisplay/index.js +0 -148
- package/es/components/eventBooking/components/resourceDisplay/index.less +0 -95
- package/es/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/eventBooking/components/resourceUsability/index.js +0 -44
- package/es/components/eventBooking/components/resourceUsability/index.less +0 -40
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +0 -127
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/eventBooking/components/scheduleCalendar/index.js +0 -142
- package/es/components/eventBooking/components/scheduleCalendar/index.less +0 -222
- package/es/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/eventBooking/components/selectHolder/index.js +0 -118
- package/es/components/eventBooking/components/selectHolder/index.less +0 -70
- package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/eventBooking/components/timeResourceSelector/index.js +0 -168
- package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -74
- package/es/components/eventBooking/index.d.ts +0 -4
- package/es/components/eventBooking/index.js +0 -58
- package/es/components/eventBooking/index.less +0 -22
- package/es/components/eventBooking/locales.d.ts +0 -216
- package/es/components/eventBooking/locales.js +0 -251
- package/es/components/eventBooking/mock.d.ts +0 -627
- package/es/components/eventBooking/mock.js +0 -1172
- package/es/components/eventBooking/status.d.ts +0 -21
- package/es/components/eventBooking/status.js +0 -51
- package/es/components/eventBooking/type.d.ts +0 -17
- package/es/components/eventBooking/type.js +0 -1
- package/es/components/eventBooking/utils.d.ts +0 -45
- package/es/components/eventBooking/utils.js +0 -99
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/Provider.js +0 -86
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/Product.js +0 -71
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/index.js +0 -73
- package/es/components/shoppingCart/components/Cart/index.less +0 -68
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Empty/index.js +0 -15
- package/es/components/shoppingCart/components/Empty/index.less +0 -19
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Render/index.js +0 -70
- package/es/components/shoppingCart/components/Render/index.less +0 -2
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +0 -132
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useAddService.js +0 -23
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useClearCart.js +0 -60
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useContext.js +0 -5
- package/es/components/shoppingCart/index.d.ts +0 -4
- package/es/components/shoppingCart/index.js +0 -24
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/locales.js +0 -38
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/mock.js +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/status.js +0 -22
- package/es/components/shoppingCart/type.d.ts +0 -40
- package/es/components/shoppingCart/type.js +0 -1
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/shoppingCart/utils.js +0 -116
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/businessModel/SalesModel/Sales/index.js +0 -104
- package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/hooks/index.js +0 -34
- package/lib/businessModel/SalesModel/index.d.ts +0 -4
- package/lib/businessModel/SalesModel/index.js +0 -51
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/businessModel/index.js +0 -0
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/index.js +0 -500
- package/lib/components/Sales/Cart/serve.d.ts +0 -2
- package/lib/components/Sales/Cart/serve.js +0 -37
- package/lib/components/Sales/Cart/types.d.ts +0 -19
- package/lib/components/Sales/Cart/types.js +0 -17
- package/lib/components/Sales/Checkout/index.d.ts +0 -33
- package/lib/components/Sales/Checkout/index.js +0 -130
- package/lib/components/Sales/Checkout/serve.d.ts +0 -2
- package/lib/components/Sales/Checkout/serve.js +0 -37
- package/lib/components/Sales/Checkout/utils.d.ts +0 -27
- package/lib/components/Sales/Checkout/utils.js +0 -88
- package/lib/components/Sales/Customer/index.d.ts +0 -24
- package/lib/components/Sales/Customer/index.js +0 -90
- package/lib/components/Sales/Event/Detail.d.ts +0 -27
- package/lib/components/Sales/Event/Detail.js +0 -224
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/Sales/Event/index.js +0 -136
- package/lib/components/Sales/Event/serve.d.ts +0 -26
- package/lib/components/Sales/Event/serve.js +0 -54
- package/lib/components/Sales/Holder/index.d.ts +0 -33
- package/lib/components/Sales/Holder/index.js +0 -210
- package/lib/components/Sales/Holder/serve.d.ts +0 -8
- package/lib/components/Sales/Holder/serve.js +0 -37
- package/lib/components/Sales/Init/index.d.ts +0 -24
- package/lib/components/Sales/Init/index.js +0 -128
- package/lib/components/Sales/Init/serve.d.ts +0 -3
- package/lib/components/Sales/Init/serve.js +0 -34
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/index.js +0 -133
- package/lib/components/Sales/Resource/serve.d.ts +0 -5
- package/lib/components/Sales/Resource/serve.js +0 -32
- package/lib/components/Sales/Step/index.d.ts +0 -37
- package/lib/components/Sales/Step/index.js +0 -170
- package/lib/components/Sales/Summary/index.d.ts +0 -25
- package/lib/components/Sales/Summary/index.js +0 -83
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/serve.js +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +0 -36
- package/lib/components/Sales/Summary/utils.js +0 -80
- package/lib/components/Sales/hooks/index.d.ts +0 -1
- package/lib/components/Sales/hooks/index.js +0 -31
- package/lib/components/Sales/index.d.ts +0 -20
- package/lib/components/Sales/index.js +0 -79
- package/lib/components/Sales/utils/index.d.ts +0 -1
- package/lib/components/Sales/utils/index.js +0 -43
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +0 -60
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/Provider.js +0 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -5
- package/lib/components/booking/info/dateRange/index.js +0 -111
- package/lib/components/booking/info/dateRange/index.less +0 -21
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/lib/components/booking/info/pet/ChangePetModal/index.js +0 -121
- package/lib/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
- package/lib/components/booking/info/service/editService/BookingList/index.js +0 -55
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/editService/EditTabs/index.js +0 -75
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +0 -70
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service/serviceManager/index.js +0 -211
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service/serviceManager/utils.js +0 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/lib/components/booking/info/service2/Group/utils.js +0 -142
- package/lib/components/booking/info/service2/Lists.d.ts +0 -3
- package/lib/components/booking/info/service2/Lists.js +0 -116
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +0 -50
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/index.js +0 -75
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info/service2/status.js +0 -81
- package/lib/components/booking/info/service2/utils.d.ts +0 -240
- package/lib/components/booking/info/service2/utils.js +0 -695
- package/lib/components/booking/materiels/holder/index.d.ts +0 -7
- package/lib/components/booking/materiels/holder/index.js +0 -65
- package/lib/components/eventBooking/assets/alert-circle.png +0 -0
- package/lib/components/eventBooking/assets/calendar-heart.svg +0 -5
- package/lib/components/eventBooking/assets/compass.svg +0 -13
- package/lib/components/eventBooking/assets/image.svg +0 -5
- package/lib/components/eventBooking/assets/phone.svg +0 -5
- package/lib/components/eventBooking/assets/shopping-cart.svg +0 -10
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -4
- package/lib/components/eventBooking/components/ErrorTip/index.js +0 -30
- package/lib/components/eventBooking/components/ErrorTip/index.less +0 -51
- package/lib/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/eventBooking/components/OpenCard/index.js +0 -90
- package/lib/components/eventBooking/components/OpenCard/index.less +0 -52
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +0 -159
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +0 -82
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +0 -92
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +0 -87
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/index.js +0 -59
- package/lib/components/eventBooking/components/Provider/Cart/index.less +0 -2
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Content/index.js +0 -91
- package/lib/components/eventBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +0 -60
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Event/index.js +0 -101
- package/lib/components/eventBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Footer/index.js +0 -87
- package/lib/components/eventBooking/components/Provider/Footer/index.less +0 -64
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Header/index.js +0 -80
- package/lib/components/eventBooking/components/Provider/Header/index.less +0 -2
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Information/index.js +0 -151
- package/lib/components/eventBooking/components/Provider/Information/index.less +0 -92
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -57
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/eventBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.js +0 -97
- 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/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -198
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.js +0 -70
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +0 -71
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.js +0 -66
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +0 -70
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +0 -272
- package/lib/components/eventBooking/components/bookingDetailModal/index.less +0 -83
- package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/eventBooking/components/bookingServiceList/index.js +0 -79
- package/lib/components/eventBooking/components/bookingServiceList/index.less +0 -6
- package/lib/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/eventBooking/components/eventCard/index.js +0 -124
- package/lib/components/eventBooking/components/eventCard/index.less +0 -81
- package/lib/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/eventBooking/components/productCard/index.js +0 -78
- package/lib/components/eventBooking/components/productCard/index.less +0 -60
- package/lib/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/eventBooking/components/progressBar/index.js +0 -100
- package/lib/components/eventBooking/components/progressBar/index.less +0 -15
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/eventBooking/components/resourceDisplay/index.js +0 -117
- package/lib/components/eventBooking/components/resourceDisplay/index.less +0 -95
- package/lib/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/eventBooking/components/resourceUsability/index.js +0 -76
- package/lib/components/eventBooking/components/resourceUsability/index.less +0 -40
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +0 -135
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/eventBooking/components/scheduleCalendar/index.js +0 -125
- package/lib/components/eventBooking/components/scheduleCalendar/index.less +0 -222
- package/lib/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/eventBooking/components/selectHolder/index.js +0 -106
- package/lib/components/eventBooking/components/selectHolder/index.less +0 -70
- package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/eventBooking/components/timeResourceSelector/index.js +0 -146
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -74
- package/lib/components/eventBooking/index.d.ts +0 -4
- package/lib/components/eventBooking/index.js +0 -79
- package/lib/components/eventBooking/index.less +0 -22
- package/lib/components/eventBooking/locales.d.ts +0 -216
- package/lib/components/eventBooking/locales.js +0 -239
- package/lib/components/eventBooking/mock.d.ts +0 -627
- package/lib/components/eventBooking/mock.js +0 -1352
- package/lib/components/eventBooking/status.d.ts +0 -21
- package/lib/components/eventBooking/status.js +0 -70
- package/lib/components/eventBooking/type.d.ts +0 -17
- package/lib/components/eventBooking/type.js +0 -17
- package/lib/components/eventBooking/utils.d.ts +0 -45
- package/lib/components/eventBooking/utils.js +0 -90
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/Provider.js +0 -110
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/Product.js +0 -73
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/index.js +0 -85
- package/lib/components/shoppingCart/components/Cart/index.less +0 -68
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Empty/index.js +0 -43
- package/lib/components/shoppingCart/components/Empty/index.less +0 -19
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Render/index.js +0 -75
- package/lib/components/shoppingCart/components/Render/index.less +0 -2
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +0 -124
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useAddService.js +0 -55
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useClearCart.js +0 -66
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useContext.js +0 -31
- package/lib/components/shoppingCart/index.d.ts +0 -4
- package/lib/components/shoppingCart/index.js +0 -60
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/locales.js +0 -56
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/mock.js +0 -76
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/status.js +0 -60
- package/lib/components/shoppingCart/type.d.ts +0 -40
- package/lib/components/shoppingCart/type.js +0 -17
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/shoppingCart/utils.js +0 -86
- package/lowcode/event-booking/meta.ts +0 -69
- package/lowcode/event-booking-availability-calendar/meta.ts +0 -53
- package/lowcode/event-booking-detail-modal/meta.ts +0 -39
- package/lowcode/event-booking-service-list/meta.ts +0 -77
- package/lowcode/event-card/meta.ts +0 -77
- package/lowcode/event-product-card/meta.ts +0 -79
- package/lowcode/event-progress-bar/meta.ts +0 -65
- package/lowcode/event-resource-display/meta.ts +0 -169
- package/lowcode/event-resource-usability/meta.ts +0 -67
- package/lowcode/event-schedule-calendar/meta.ts +0 -56
- package/lowcode/event-select-holder/meta.ts +0 -84
- package/lowcode/event-time-resource-selector/meta.ts +0 -69
- package/lowcode/shopping-cart/meta.ts +0 -98
|
File without changes
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const getGroupTotalPrice: (items: any[]) => any;
|
|
2
|
-
/**
|
|
3
|
-
* @title: 创建一个虚拟的组
|
|
4
|
-
* @description:
|
|
5
|
-
* @param {any} items
|
|
6
|
-
* @return {*}
|
|
7
|
-
* @Author: zhiwei.Wang
|
|
8
|
-
*/
|
|
9
|
-
export declare const concatBookings: (items: any[]) => any;
|
|
10
|
-
export declare const createBookingItemsByGroup: (item: any, isBatchEdit?: any) => any[];
|
|
11
|
-
export declare const isGroupBooking: (_id: any) => boolean;
|
|
12
|
-
export declare const getProductByGroupId: (groupId: string, items: any[]) => any[];
|
|
13
|
-
export declare const getGroupBooking: (groupId: string, items: any[]) => any;
|
|
14
|
-
export declare const filterItemByGroupId: (groupId: string, items: any[]) => any[];
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { getUniqueId } from "@pisell/utils";
|
|
8
|
-
import { getProductTotalPrice } from "../../../utils";
|
|
9
|
-
import { distributeDiscountOrIncrease } from "../../service/serviceManager/distributeDiscount";
|
|
10
|
-
|
|
11
|
-
// 创建group
|
|
12
|
-
|
|
13
|
-
// 拆分group
|
|
14
|
-
|
|
15
|
-
// 编辑group
|
|
16
|
-
|
|
17
|
-
// 合并group
|
|
18
|
-
|
|
19
|
-
export var getGroupTotalPrice = function getGroupTotalPrice(items) {
|
|
20
|
-
return items.reduce(function (prev, next) {
|
|
21
|
-
prev.duration += next._extend.duration;
|
|
22
|
-
prev.total += next._extend.total;
|
|
23
|
-
// prev.price += next._extend.price;
|
|
24
|
-
prev.origin_total += next._extend.origin_total;
|
|
25
|
-
return prev;
|
|
26
|
-
}, {
|
|
27
|
-
total: 0,
|
|
28
|
-
origin_total: 0
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @title: 创建一个虚拟的组
|
|
34
|
-
* @description:
|
|
35
|
-
* @param {any} items
|
|
36
|
-
* @return {*}
|
|
37
|
-
* @Author: zhiwei.Wang
|
|
38
|
-
*/
|
|
39
|
-
export var concatBookings = function concatBookings(items) {
|
|
40
|
-
var firstItem = items[0];
|
|
41
|
-
var lastItem = items[items.length - 1];
|
|
42
|
-
var _items$reduce = items.reduce(function (prev, next) {
|
|
43
|
-
prev.duration += next._extend.duration;
|
|
44
|
-
prev.total += next._extend.total;
|
|
45
|
-
// prev.price += next._extend.price;
|
|
46
|
-
prev.origin_total += next._extend.origin_total;
|
|
47
|
-
return prev;
|
|
48
|
-
}, {
|
|
49
|
-
price: 0,
|
|
50
|
-
total: 0,
|
|
51
|
-
origin_total: 0,
|
|
52
|
-
duration: 0,
|
|
53
|
-
startDate: firstItem._extend.startDate,
|
|
54
|
-
endDate: lastItem._extend.endDate
|
|
55
|
-
}),
|
|
56
|
-
total = _items$reduce.total,
|
|
57
|
-
duration = _items$reduce.duration,
|
|
58
|
-
startDate = _items$reduce.startDate,
|
|
59
|
-
endDate = _items$reduce.endDate,
|
|
60
|
-
origin_total = _items$reduce.origin_total;
|
|
61
|
-
return _objectSpread(_objectSpread({}, firstItem), {}, {
|
|
62
|
-
// 虚拟组, id使用组id
|
|
63
|
-
_id: firstItem._extend.groupId,
|
|
64
|
-
_extend: _objectSpread(_objectSpread({}, firstItem._extend), {}, {
|
|
65
|
-
items: items,
|
|
66
|
-
duration: duration,
|
|
67
|
-
// price: total,
|
|
68
|
-
total: total,
|
|
69
|
-
origin_total: origin_total,
|
|
70
|
-
startDate: startDate,
|
|
71
|
-
endDate: endDate,
|
|
72
|
-
start_date: startDate,
|
|
73
|
-
end_date: endDate
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
export var createBookingItemsByGroup = function createBookingItemsByGroup(item, isBatchEdit) {
|
|
78
|
-
var groupId = item._extend.groupId || getUniqueId('bookingGroup_');
|
|
79
|
-
var bookings = [];
|
|
80
|
-
|
|
81
|
-
// 根据时长 进行创建多个商品
|
|
82
|
-
for (var i = 0; i < item._extend.duration; i++) {
|
|
83
|
-
var _extend$multiDayPrice;
|
|
84
|
-
var _extend = _objectSpread({}, item._extend);
|
|
85
|
-
var startDate = _extend.start_date.add(i, 'day');
|
|
86
|
-
var endDate = _extend.start_date.add(i + 1, 'day');
|
|
87
|
-
// 商品原始价格
|
|
88
|
-
var price = ((_extend$multiDayPrice = _extend.multiDayPrices[startDate.format('YYYY-MM-DD')]) === null || _extend$multiDayPrice === void 0 ? void 0 : _extend$multiDayPrice.total) || item._extend.price;
|
|
89
|
-
var cacheItem = _objectSpread(_objectSpread({}, item), {}, {
|
|
90
|
-
// 编辑时组商品需要清空booking_id 否则会重复
|
|
91
|
-
booking_id: isBatchEdit ? 0 : item.booking_id,
|
|
92
|
-
_id: "".concat(item._id, "-").concat(i + 1),
|
|
93
|
-
price: price,
|
|
94
|
-
_extend: _objectSpread(_objectSpread({}, _extend), {}, {
|
|
95
|
-
order_detail_id: isBatchEdit ? 0 : item.order_detail_id,
|
|
96
|
-
groupId: groupId,
|
|
97
|
-
duration: 1,
|
|
98
|
-
price: price,
|
|
99
|
-
startDate: startDate,
|
|
100
|
-
endDate: endDate,
|
|
101
|
-
start_date: startDate,
|
|
102
|
-
end_date: endDate,
|
|
103
|
-
dateKey: "".concat(startDate.format('YYYY-MM-DD'), "~").concat(endDate.format('YYYY-MM-DD'), "}")
|
|
104
|
-
})
|
|
105
|
-
});
|
|
106
|
-
var totalPrice = getProductTotalPrice(cacheItem);
|
|
107
|
-
cacheItem._extend.total = totalPrice;
|
|
108
|
-
cacheItem._extend.origin_total = totalPrice;
|
|
109
|
-
cacheItem._extend.items = undefined;
|
|
110
|
-
bookings.push(cacheItem);
|
|
111
|
-
}
|
|
112
|
-
if (isBatchEdit) {
|
|
113
|
-
// 当前金额
|
|
114
|
-
var groupTotalPrice = item._extend.total;
|
|
115
|
-
// 原始金额
|
|
116
|
-
var groupOriginTotalPrice = item._extend.origin_total;
|
|
117
|
-
// 折扣金额 转成负数
|
|
118
|
-
var discountAmount = (groupOriginTotalPrice - groupTotalPrice) * -1;
|
|
119
|
-
if (discountAmount !== 0) {
|
|
120
|
-
bookings = distributeDiscountOrIncrease(bookings, discountAmount, groupOriginTotalPrice);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
console.log('bookings', bookings);
|
|
124
|
-
return bookings;
|
|
125
|
-
};
|
|
126
|
-
export var isGroupBooking = function isGroupBooking(_id) {
|
|
127
|
-
return (_id === null || _id === void 0 ? void 0 : _id.indexOf('bookingGroup_')) === 0;
|
|
128
|
-
};
|
|
129
|
-
export var getProductByGroupId = function getProductByGroupId(groupId, items) {
|
|
130
|
-
return items.filter(function (item) {
|
|
131
|
-
var _item$_extend;
|
|
132
|
-
return ((_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.groupId) === groupId;
|
|
133
|
-
}).map(function (item) {
|
|
134
|
-
return item._id;
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
export var getGroupBooking = function getGroupBooking(groupId, items) {
|
|
138
|
-
var products = getProductByGroupId(groupId, items);
|
|
139
|
-
return concatBookings(products);
|
|
140
|
-
};
|
|
141
|
-
export var filterItemByGroupId = function filterItemByGroupId(groupId, items) {
|
|
142
|
-
return items.filter(function (item) {
|
|
143
|
-
var _item$_extend2;
|
|
144
|
-
return ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.groupId) !== groupId;
|
|
145
|
-
});
|
|
146
|
-
};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
14
|
-
import ShoppingCart from "../../../shoppingCart";
|
|
15
|
-
import { CartContext } from "../../../shoppingCart/Provider";
|
|
16
|
-
import { Context } from "../model";
|
|
17
|
-
import useSelectPet from "./hooks/useSelectPet";
|
|
18
|
-
import { defaultData } from "./status";
|
|
19
|
-
import { formatActiveKey, formatProducts, isEventBooking, updateServices } from "./utils";
|
|
20
|
-
var Lists = function Lists(_ref) {
|
|
21
|
-
var _state$service;
|
|
22
|
-
var onEdit = _ref.onEdit,
|
|
23
|
-
onChange = _ref.onChange;
|
|
24
|
-
var _useContext = useContext(Context),
|
|
25
|
-
state = _useContext.state;
|
|
26
|
-
var _useState = useState(defaultData),
|
|
27
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
-
params = _useState2[0],
|
|
29
|
-
setParams = _useState2[1];
|
|
30
|
-
var _useSelectPet = useSelectPet(state),
|
|
31
|
-
holderLists = _useSelectPet.holderLists;
|
|
32
|
-
useEffect(function () {
|
|
33
|
-
var keys = formatActiveKey(holderLists, params === null || params === void 0 ? void 0 : params.platform, !!state.bookingId);
|
|
34
|
-
onChange({
|
|
35
|
-
activeCartId: keys
|
|
36
|
-
}, 'setActiveCartId');
|
|
37
|
-
setParams(_objectSpread(_objectSpread({}, params), {}, {
|
|
38
|
-
activeKey: keys
|
|
39
|
-
}));
|
|
40
|
-
}, [holderLists, params === null || params === void 0 ? void 0 : params.platform]);
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @title: 更新商品数据
|
|
44
|
-
* @description:
|
|
45
|
-
* @param {any} newState
|
|
46
|
-
* @return {*}
|
|
47
|
-
* @Author: WangHan
|
|
48
|
-
* @Date: 2024-11-29 16:35
|
|
49
|
-
*/
|
|
50
|
-
var handleChange = function handleChange(currentItem, type, other) {
|
|
51
|
-
if (state.disabledEdit || state.disableEventBookingEdit) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
var products = updateServices(state, currentItem, type, other);
|
|
55
|
-
|
|
56
|
-
// 查看
|
|
57
|
-
if (type === 'view') {
|
|
58
|
-
var product = currentItem._origin;
|
|
59
|
-
// if (isGroupBooking(currentItem._id)) {
|
|
60
|
-
// product = currentItem._origin;
|
|
61
|
-
// } else {
|
|
62
|
-
// product = products?.find((item: any) => item._id === currentItem._id);
|
|
63
|
-
// }
|
|
64
|
-
onChange({
|
|
65
|
-
editModal: true,
|
|
66
|
-
cacheItem: _objectSpread(_objectSpread({}, product), {}, {
|
|
67
|
-
new: 0
|
|
68
|
-
})
|
|
69
|
-
});
|
|
70
|
-
return onEdit === null || onEdit === void 0 ? void 0 : onEdit(_objectSpread(_objectSpread({}, product), {}, {
|
|
71
|
-
new: 0
|
|
72
|
-
}));
|
|
73
|
-
}
|
|
74
|
-
var params = {
|
|
75
|
-
editModal: false,
|
|
76
|
-
value: products,
|
|
77
|
-
edit: true,
|
|
78
|
-
cacheItem: null
|
|
79
|
-
};
|
|
80
|
-
onChange(params);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @title: 打开哪个折叠面板的keys
|
|
85
|
-
* @description:
|
|
86
|
-
* @param {any} key
|
|
87
|
-
* @return {*}
|
|
88
|
-
* @Author: WangHan
|
|
89
|
-
* @Date: 2024-12-09 16:06
|
|
90
|
-
*/
|
|
91
|
-
var handleActiveKey = function handleActiveKey(key) {
|
|
92
|
-
onChange({
|
|
93
|
-
activeCartId: key
|
|
94
|
-
}, 'setActiveCartId');
|
|
95
|
-
setParams(_objectSpread(_objectSpread({}, params), {}, {
|
|
96
|
-
activeKey: key
|
|
97
|
-
}));
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @title: 折叠面板参数
|
|
102
|
-
* @description:
|
|
103
|
-
* @param {*} useMemo
|
|
104
|
-
* @return {*}
|
|
105
|
-
* @Author: WangHan
|
|
106
|
-
* @Date: 2024-12-05 15:22
|
|
107
|
-
*/
|
|
108
|
-
var CollapseParams = useMemo(function () {
|
|
109
|
-
var _params = {
|
|
110
|
-
activeKey: params === null || params === void 0 ? void 0 : params.activeKey,
|
|
111
|
-
bordered: false
|
|
112
|
-
};
|
|
113
|
-
return _params;
|
|
114
|
-
}, [params === null || params === void 0 ? void 0 : params.activeKey]);
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @title: 商品信息
|
|
118
|
-
* @description:
|
|
119
|
-
* @param {*} useMemo
|
|
120
|
-
* @return {*}
|
|
121
|
-
* @Author: WangHan
|
|
122
|
-
* @Date: 2024-12-09 16:07
|
|
123
|
-
*/
|
|
124
|
-
var productParams = useMemo(function () {
|
|
125
|
-
return {
|
|
126
|
-
hideAddBtn: state.isTerminalDayBookingPage,
|
|
127
|
-
isShowNote: isEventBooking(state),
|
|
128
|
-
isShowPackageNote: false,
|
|
129
|
-
holders: holderLists,
|
|
130
|
-
isEdit: !!(state !== null && state !== void 0 && state.bookingId),
|
|
131
|
-
disabledEdit: state === null || state === void 0 ? void 0 : state.disabledEdit,
|
|
132
|
-
maxLength: isEventBooking(state) ? 1 : 999
|
|
133
|
-
};
|
|
134
|
-
}, [holderLists, state === null || state === void 0 ? void 0 : state.bookingId]);
|
|
135
|
-
return /*#__PURE__*/React.createElement(CartContext.Provider, {
|
|
136
|
-
value: {
|
|
137
|
-
state: state
|
|
138
|
-
}
|
|
139
|
-
}, /*#__PURE__*/React.createElement(ShoppingCart, {
|
|
140
|
-
onChange: handleChange,
|
|
141
|
-
onAddProduct: function onAddProduct() {
|
|
142
|
-
return onChange({
|
|
143
|
-
addModal: true
|
|
144
|
-
});
|
|
145
|
-
},
|
|
146
|
-
onActiveKey: handleActiveKey,
|
|
147
|
-
collapseParams: CollapseParams,
|
|
148
|
-
productParams: _objectSpread(_objectSpread({}, productParams), {}, {
|
|
149
|
-
products: formatProducts(state === null || state === void 0 ? void 0 : (_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.value, state)
|
|
150
|
-
})
|
|
151
|
-
}));
|
|
152
|
-
};
|
|
153
|
-
export default Lists;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { formatHolderLists } from "../utils";
|
|
3
|
-
var useSelectPet = function useSelectPet(state) {
|
|
4
|
-
var _state$pet2;
|
|
5
|
-
/**
|
|
6
|
-
* @title: pets数据
|
|
7
|
-
* @description:
|
|
8
|
-
* @param {any} state
|
|
9
|
-
* @return {*}
|
|
10
|
-
* @Author: WangHan
|
|
11
|
-
* @Date: 2024-12-03 11:39
|
|
12
|
-
*/
|
|
13
|
-
var petLists = useMemo(function () {
|
|
14
|
-
var _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2, _state$bookingConfig$3, _state$pet, _state$pet$value;
|
|
15
|
-
var form_id = (state === null || state === void 0 ? void 0 : (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : (_state$bookingConfig$3 = _state$bookingConfig$2.appointment_subject) === null || _state$bookingConfig$3 === void 0 ? void 0 : _state$bookingConfig$3.form_id) || 0;
|
|
16
|
-
return (state === null || state === void 0 ? void 0 : (_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : (_state$pet$value = _state$pet.value) === null || _state$pet$value === void 0 ? void 0 : _state$pet$value[form_id]) || [];
|
|
17
|
-
}, [state === null || state === void 0 ? void 0 : (_state$pet2 = state.pet) === null || _state$pet2 === void 0 ? void 0 : _state$pet2.value]);
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @title: pets数据加 open items
|
|
21
|
-
* @description:
|
|
22
|
-
* @param {any} state
|
|
23
|
-
* @return {*}
|
|
24
|
-
* @Author: WangHan
|
|
25
|
-
* @Date: 2024-12-03 11:40
|
|
26
|
-
*/
|
|
27
|
-
var holderLists = useMemo(function () {
|
|
28
|
-
var _lists = formatHolderLists(petLists);
|
|
29
|
-
return _lists;
|
|
30
|
-
}, [petLists]);
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @title: 获取pet名称
|
|
34
|
-
* @description:
|
|
35
|
-
* @param {any} state
|
|
36
|
-
* @param {number} id
|
|
37
|
-
* @return {*}
|
|
38
|
-
* @Author: WangHan
|
|
39
|
-
* @Date: 2024-12-03 11:42
|
|
40
|
-
*/
|
|
41
|
-
var getHolderName = function getHolderName(id) {
|
|
42
|
-
if (!holderLists.length) return '';
|
|
43
|
-
var resource = holderLists.find(function (d) {
|
|
44
|
-
return d.id === id;
|
|
45
|
-
});
|
|
46
|
-
return resource === null || resource === void 0 ? void 0 : resource.main_field;
|
|
47
|
-
};
|
|
48
|
-
return {
|
|
49
|
-
petLists: petLists,
|
|
50
|
-
holderLists: holderLists,
|
|
51
|
-
getHolderName: getHolderName
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export default useSelectPet;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import React, { createContext, useContext, useEffect, useRef } from 'react';
|
|
8
|
-
import AddService from "../service/addService";
|
|
9
|
-
import EditService from "../service/editService";
|
|
10
|
-
import { Context } from "../model";
|
|
11
|
-
import Lists from "./Lists";
|
|
12
|
-
export var Service2Context = /*#__PURE__*/createContext({});
|
|
13
|
-
export var Service2Cart = function Service2Cart(_ref) {
|
|
14
|
-
var hideAdd = _ref.hideAdd,
|
|
15
|
-
hideEdit = _ref.hideEdit;
|
|
16
|
-
var detailRef = useRef();
|
|
17
|
-
var _useContext = useContext(Context),
|
|
18
|
-
state = _useContext.state,
|
|
19
|
-
dispatch = _useContext.dispatch;
|
|
20
|
-
useEffect(function () {
|
|
21
|
-
document.body.id = 'body';
|
|
22
|
-
}, []);
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @title: 更新服务
|
|
26
|
-
* @description:
|
|
27
|
-
* @param {string} type
|
|
28
|
-
* @param {any} payload
|
|
29
|
-
* @return {*}
|
|
30
|
-
* @Author: WangHan
|
|
31
|
-
* @Date: 2024-12-09 16:02
|
|
32
|
-
*/
|
|
33
|
-
var dispatchService = function dispatchService(type, payload) {
|
|
34
|
-
dispatch({
|
|
35
|
-
type: type,
|
|
36
|
-
payload: _objectSpread({}, payload)
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var handleEdit = function handleEdit(cacheItem) {
|
|
40
|
-
setTimeout(function () {
|
|
41
|
-
var _detailRef$current, _detailRef$current$in;
|
|
42
|
-
(_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 ? void 0 : (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 ? void 0 : _detailRef$current$in.call(_detailRef$current, cacheItem);
|
|
43
|
-
}, 100);
|
|
44
|
-
};
|
|
45
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: "pisell-lowcode__booking-service-wrap"
|
|
47
|
-
}, /*#__PURE__*/React.createElement(Lists, {
|
|
48
|
-
onEdit: handleEdit,
|
|
49
|
-
onChange: function onChange(e, type) {
|
|
50
|
-
return dispatchService(type || 'setService', e);
|
|
51
|
-
}
|
|
52
|
-
}), !hideAdd && /*#__PURE__*/React.createElement(AddService, {
|
|
53
|
-
onEdit: handleEdit
|
|
54
|
-
})), !hideEdit && /*#__PURE__*/React.createElement(EditService, {
|
|
55
|
-
ref: detailRef
|
|
56
|
-
}));
|
|
57
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { shoppingCartProps } from '../../../shoppingCart/type';
|
|
2
|
-
export declare const defaultData: shoppingCartProps;
|
|
3
|
-
/**
|
|
4
|
-
* @title: 根据是否是跨日预约和是否是terminal打开的,返回日期和输入框占据的列数
|
|
5
|
-
* @description:
|
|
6
|
-
* @param {boolean} isDayBooking
|
|
7
|
-
* @param {boolean} isTerminal
|
|
8
|
-
* @return {*}
|
|
9
|
-
* @Author: WangHan
|
|
10
|
-
* @Date: 2024-12-06 10:29
|
|
11
|
-
*/
|
|
12
|
-
export declare const inputDateCol: (isDayBooking: boolean, isTerminal?: boolean) => {
|
|
13
|
-
date: {};
|
|
14
|
-
input: {};
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @title: 预约商品扩展类型
|
|
18
|
-
* @description:
|
|
19
|
-
* @return {*}
|
|
20
|
-
* @Author: WangHan
|
|
21
|
-
* @Date: 2024-12-06 14:59
|
|
22
|
-
*/
|
|
23
|
-
export declare const appointmentTypes: string[];
|
|
24
|
-
/**
|
|
25
|
-
* @title: 营业日时间
|
|
26
|
-
* @description:
|
|
27
|
-
* @return {*}
|
|
28
|
-
* @Author: WangHan
|
|
29
|
-
* @Date: 2024-12-06 17:23
|
|
30
|
-
*/
|
|
31
|
-
export declare const openingTime: () => string;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { locales } from '@pisell/utils';
|
|
2
|
-
export var defaultData = {
|
|
3
|
-
isOpenGroup: true,
|
|
4
|
-
carts: [],
|
|
5
|
-
platform: 'shop',
|
|
6
|
-
emptyText: locales.getText('pisell2.text.no.selected'),
|
|
7
|
-
activeKey: [],
|
|
8
|
-
defaultActiveKey: [],
|
|
9
|
-
className: ''
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @title: 根据是否是跨日预约和是否是terminal打开的,返回日期和输入框占据的列数
|
|
14
|
-
* @description:
|
|
15
|
-
* @param {boolean} isDayBooking
|
|
16
|
-
* @param {boolean} isTerminal
|
|
17
|
-
* @return {*}
|
|
18
|
-
* @Author: WangHan
|
|
19
|
-
* @Date: 2024-12-06 10:29
|
|
20
|
-
*/
|
|
21
|
-
export var inputDateCol = function inputDateCol(isDayBooking, isTerminal) {
|
|
22
|
-
var params = {
|
|
23
|
-
date: {},
|
|
24
|
-
input: {}
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// 不是跨日预约,只有输入框占据一行
|
|
28
|
-
if (!isDayBooking) {
|
|
29
|
-
params.input = {
|
|
30
|
-
span: 24
|
|
31
|
-
};
|
|
32
|
-
return params;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// 如果是terminal打开的需要根据不同的屏幕宽度调整
|
|
36
|
-
if (isTerminal) {
|
|
37
|
-
params.date = {
|
|
38
|
-
sm: 24,
|
|
39
|
-
lg: 24,
|
|
40
|
-
xl: 12
|
|
41
|
-
};
|
|
42
|
-
params.input = {
|
|
43
|
-
sm: 24,
|
|
44
|
-
lg: 24,
|
|
45
|
-
xl: 12
|
|
46
|
-
};
|
|
47
|
-
} else {
|
|
48
|
-
params.date = {
|
|
49
|
-
span: 12
|
|
50
|
-
};
|
|
51
|
-
params.input = {
|
|
52
|
-
span: 12
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
return params;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @title: 预约商品扩展类型
|
|
60
|
-
* @description:
|
|
61
|
-
* @return {*}
|
|
62
|
-
* @Author: WangHan
|
|
63
|
-
* @Date: 2024-12-06 14:59
|
|
64
|
-
*/
|
|
65
|
-
export var appointmentTypes = ['product_appointment'];
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @title: 营业日时间
|
|
69
|
-
* @description:
|
|
70
|
-
* @return {*}
|
|
71
|
-
* @Author: WangHan
|
|
72
|
-
* @Date: 2024-12-06 17:23
|
|
73
|
-
*/
|
|
74
|
-
export var openingTime = function openingTime() {
|
|
75
|
-
// 营业日时间
|
|
76
|
-
var openingTime = localStorage.getItem('shopOpeningHours');
|
|
77
|
-
return openingTime || '00:00';
|
|
78
|
-
};
|