@pisell/private-materials 3.3.76 → 3.3.78
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 +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/businessModel/SalesModel/Sales/index.js +37 -4
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +7 -0
- package/es/components/Sales/Resource/serve.js +10 -0
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.js +4 -2
- package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.less +1 -1
- package/es/components/appointmentBooking/components/Date/index.js +24 -14
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.js +8 -14
- package/es/components/appointmentBooking/components/Services/index.js +38 -36
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.js +13 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +6 -7
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.js +14 -0
- package/es/components/appointmentBooking/index.less +1 -1
- package/es/components/appointmentBooking/locales.js +3 -3
- package/es/components/booking/addons/index.js +12 -3
- package/es/components/booking/addons/model.js +5 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +3 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/amount.js +2 -1
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +9 -3
- package/es/components/booking/components/footer/utils.js +74 -36
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +110 -66
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/components/voucher/utils.js +15 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.js +16 -1
- package/es/components/booking/info/client/index.js +12 -3
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/Lists.js +1 -1
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.js +3 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +6 -2
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/index.js +9 -4
- package/es/components/booking/info2/serve.d.ts +1 -1
- package/es/components/booking/info2/serve.js +12 -8
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +5 -3
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +5 -2
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/utils.d.ts +1 -1
- package/es/components/booking/info2/utils.js +3 -2
- package/es/components/booking/info2/utilsByBooking.d.ts +1 -1
- package/es/components/booking/info2/utilsByBooking.js +5 -3
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +4 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.js +19 -3
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/eventBooking/index.js +21 -7
- package/es/components/eventBooking/locales.js +3 -3
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/index.js +5 -4
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Content/index.js +9 -0
- package/es/components/stepController/components/Content/index.less +8 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/components/Footer/index.js +15 -0
- package/es/components/stepController/components/Footer/index.less +39 -0
- package/es/components/stepController/components/Header/index.d.ts +20 -0
- package/es/components/stepController/components/Header/index.js +97 -0
- package/es/components/stepController/components/Header/index.less +21 -0
- package/es/components/stepController/index.d.ts +5 -0
- package/es/components/stepController/index.js +64 -0
- package/es/components/stepController/index.less +11 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/locales.js +32 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/stepController/types.js +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +46 -8
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +124 -3
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/locales.d.ts +164 -146
- package/es/components/ticketBooking/locales.js +195 -147
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/es/components/ticketBooking/utils/formatTime.js +144 -0
- package/es/components/ticketBooking/utils/index.d.ts +5 -1
- package/es/components/ticketBooking/utils/index.js +58 -6
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/hooks/useWindowSize.js +26 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/Sales/index.js +22 -8
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +7 -0
- package/lib/components/Sales/Resource/serve.js +9 -2
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -4
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.less +1 -1
- package/lib/components/appointmentBooking/components/Date/index.js +12 -5
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.js +2 -3
- package/lib/components/appointmentBooking/components/Services/index.js +19 -18
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.js +9 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +0 -1
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.js +11 -0
- package/lib/components/appointmentBooking/index.less +1 -1
- package/lib/components/appointmentBooking/locales.js +3 -3
- package/lib/components/booking/addons/index.js +12 -2
- package/lib/components/booking/addons/model.js +3 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.js +5 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
- package/lib/components/booking/components/footer/amount.js +2 -1
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +10 -5
- package/lib/components/booking/components/footer/utils.js +48 -12
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +111 -67
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/components/voucher/utils.js +43 -0
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.js +19 -1
- package/lib/components/booking/info/client/index.js +10 -3
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.js +1 -1
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.js +2 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +3 -1
- package/lib/components/booking/info/utils.js +1 -3
- package/lib/components/booking/info2/index.js +9 -9
- package/lib/components/booking/info2/serve.d.ts +1 -1
- package/lib/components/booking/info2/serve.js +1 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +4 -2
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +5 -2
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/utils.d.ts +1 -1
- package/lib/components/booking/info2/utils.js +2 -2
- package/lib/components/booking/info2/utilsByBooking.d.ts +1 -1
- package/lib/components/booking/info2/utilsByBooking.js +3 -2
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +6 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +9 -3
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/eventBooking/index.js +11 -7
- package/lib/components/eventBooking/locales.js +3 -3
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/stepController/components/Content/index.js +40 -0
- package/lib/components/stepController/components/Content/index.less +8 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/stepController/components/Footer/index.js +49 -0
- package/lib/components/stepController/components/Footer/index.less +39 -0
- package/lib/components/stepController/components/Header/index.d.ts +20 -0
- package/lib/components/stepController/components/Header/index.js +104 -0
- package/lib/components/stepController/components/Header/index.less +21 -0
- package/lib/components/stepController/index.d.ts +5 -0
- package/lib/components/stepController/index.js +89 -0
- package/lib/components/stepController/index.less +11 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/locales.js +50 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/stepController/types.js +17 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +42 -5
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +124 -3
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/locales.d.ts +164 -146
- package/lib/components/ticketBooking/locales.js +22 -4
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/lib/components/ticketBooking/utils/formatTime.js +139 -0
- package/lib/components/ticketBooking/utils/index.d.ts +5 -1
- package/lib/components/ticketBooking/utils/index.js +48 -5
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/hooks/useWindowSize.js +51 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/step-controller/meta.ts +88 -0
- package/package.json +2 -2
|
@@ -0,0 +1,43 @@
|
|
|
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/booking/components/voucher/utils.ts
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
getServiceAddons: () => getServiceAddons
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(utils_exports);
|
|
25
|
+
var getServiceAddons = (list) => {
|
|
26
|
+
const serviceList = [];
|
|
27
|
+
const addonsList = [];
|
|
28
|
+
list.forEach((item) => {
|
|
29
|
+
if (item.isAddons) {
|
|
30
|
+
addonsList.push(item);
|
|
31
|
+
} else {
|
|
32
|
+
serviceList.push(item);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
serviceList,
|
|
37
|
+
addonsList
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
getServiceAddons
|
|
43
|
+
});
|
|
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/booking/hooks/useQuotation.tsx
|
|
30
30
|
var useQuotation_exports = {};
|
|
31
31
|
__export(useQuotation_exports, {
|
|
32
|
+
calculateTotalPrice: () => calculateTotalPrice,
|
|
32
33
|
default: () => useQuotation_default
|
|
33
34
|
});
|
|
34
35
|
module.exports = __toCommonJS(useQuotation_exports);
|
|
@@ -38,6 +39,7 @@ var import_useEngineContext = __toESM(require("../../../../es/hooks/useEngineCon
|
|
|
38
39
|
var import_utils2 = require("@pisell/utils");
|
|
39
40
|
var import_materials = require("@pisell/materials");
|
|
40
41
|
var import_serve = require("../info/service/serve");
|
|
42
|
+
var import_decimal = __toESM(require("decimal.js"));
|
|
41
43
|
var formatBundleItemMap = (product) => {
|
|
42
44
|
return product.bundle_group.reduce((pre, cur) => {
|
|
43
45
|
const curObj = {};
|
|
@@ -50,6 +52,13 @@ var formatBundleItemMap = (product) => {
|
|
|
50
52
|
};
|
|
51
53
|
}, {});
|
|
52
54
|
};
|
|
55
|
+
var calculateTotalPrice = (data) => {
|
|
56
|
+
const _price = data.reduce((total, item) => {
|
|
57
|
+
const _price2 = (item == null ? void 0 : item.price) || (item == null ? void 0 : item.add_price);
|
|
58
|
+
return total + _price2 * item.num;
|
|
59
|
+
}, 0);
|
|
60
|
+
return parseFloat(_price);
|
|
61
|
+
};
|
|
53
62
|
var setNewCartValue = (cartValue, newProducts) => {
|
|
54
63
|
if (!newProducts.length) {
|
|
55
64
|
return {
|
|
@@ -81,10 +90,15 @@ var setNewCartValue = (cartValue, newProducts) => {
|
|
|
81
90
|
isChangePrice = true;
|
|
82
91
|
isBundleChange = true;
|
|
83
92
|
}
|
|
93
|
+
if (bundleItemMap[bundle.id].price_type === "markdown") {
|
|
94
|
+
bundleItemMap[bundle.id].price = new import_decimal.default(bundleItemMap[bundle.id].price || 0).mul(-1).toNumber();
|
|
95
|
+
}
|
|
96
|
+
const selectBundleInfo = item._extend.other.bundle.find((item2) => item2.id === bundle.id);
|
|
97
|
+
const optionPrice = calculateTotalPrice((selectBundleInfo == null ? void 0 : selectBundleInfo.option) || []);
|
|
84
98
|
return {
|
|
85
99
|
...bundle,
|
|
86
100
|
base_price: bundleItemMap[bundle.id].base_price,
|
|
87
|
-
price: bundleItemMap[bundle.id].price
|
|
101
|
+
price: new import_decimal.default(bundleItemMap[bundle.id].price || 0).add(optionPrice).toNumber()
|
|
88
102
|
// product_price: bundleItemMap[item.id].product_price,
|
|
89
103
|
};
|
|
90
104
|
});
|
|
@@ -194,3 +208,7 @@ var useQuotation = (state, dispatch) => {
|
|
|
194
208
|
};
|
|
195
209
|
};
|
|
196
210
|
var useQuotation_default = useQuotation;
|
|
211
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
212
|
+
0 && (module.exports = {
|
|
213
|
+
calculateTotalPrice
|
|
214
|
+
});
|
|
@@ -45,6 +45,7 @@ var import_utils2 = require("../../utils");
|
|
|
45
45
|
var import_serve = require("./serve");
|
|
46
46
|
var import_ahooks = require("ahooks");
|
|
47
47
|
var import_utils3 = require("../clientVariant/utils");
|
|
48
|
+
var import_useGetHolderList = __toESM(require("../hooks/useGetHolderList"));
|
|
48
49
|
var isLoadClient = false;
|
|
49
50
|
var Client = () => {
|
|
50
51
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
@@ -53,6 +54,7 @@ var Client = () => {
|
|
|
53
54
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
54
55
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
55
56
|
const [franchiseeLoading, setFranchiseeLoading] = (0, import_react.useState)(0);
|
|
57
|
+
const getHolders = (0, import_useGetHolderList.default)(state, dispatch);
|
|
56
58
|
const [params, setParams] = (0, import_react.useState)({
|
|
57
59
|
skip: 1,
|
|
58
60
|
num: 10,
|
|
@@ -202,6 +204,7 @@ var Client = () => {
|
|
|
202
204
|
if (data) {
|
|
203
205
|
handleSelectClient([data]);
|
|
204
206
|
}
|
|
207
|
+
getHolders();
|
|
205
208
|
getClients({
|
|
206
209
|
...state.client.clientsParams,
|
|
207
210
|
search: "",
|
|
@@ -220,13 +223,17 @@ var Client = () => {
|
|
|
220
223
|
showAcceptsMarketing: false
|
|
221
224
|
},
|
|
222
225
|
callback: (customer_id, params2) => {
|
|
223
|
-
var _a2, _b2, _c2;
|
|
226
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
227
|
+
const waiverForm = ((_d2 = (_c2 = (_b2 = (_a2 = state.client) == null ? void 0 : _a2.clients) == null ? void 0 : _b2[0].waiver_form) == null ? void 0 : _c2.map) == null ? void 0 : _d2.call(_c2, (item) => ({
|
|
228
|
+
...item,
|
|
229
|
+
is_filled: 0
|
|
230
|
+
}))) || [];
|
|
224
231
|
dispatch({
|
|
225
232
|
type: "setClient",
|
|
226
233
|
payload: {
|
|
227
234
|
clients: [
|
|
228
|
-
...((
|
|
229
|
-
...((
|
|
235
|
+
...((_e2 = params2 == null ? void 0 : params2[0]) == null ? void 0 : _e2.customer) ? [{ ...(_f2 = params2 == null ? void 0 : params2[0]) == null ? void 0 : _f2.customer, id: customer_id, waiver_form: waiverForm }] : [],
|
|
236
|
+
...((_g2 = state.client) == null ? void 0 : _g2.clients) || []
|
|
230
237
|
]
|
|
231
238
|
}
|
|
232
239
|
});
|
|
@@ -87,7 +87,7 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
|
|
|
87
87
|
isShowChangeHolder,
|
|
88
88
|
isShowChangeResource: true,
|
|
89
89
|
isShowAddHolderButton: true,
|
|
90
|
-
isShowEditProduct:
|
|
90
|
+
isShowEditProduct: !state.isBookingCreatePage
|
|
91
91
|
};
|
|
92
92
|
}, [
|
|
93
93
|
state == null ? void 0 : state.bookingId,
|
|
@@ -229,6 +229,7 @@ var Info = (props) => {
|
|
|
229
229
|
(item, type) => {
|
|
230
230
|
const isSession = (0, import_utils2.isSessionProduct)(item);
|
|
231
231
|
let isEject = (0, import_utils2.getIsEject)(item, type);
|
|
232
|
+
const isOnlySession = (0, import_utils2.getIsOnlySession)(item);
|
|
232
233
|
if (isDay) {
|
|
233
234
|
isEject = type === "detail" || item.bundle_group_count > 0 || item.option_group_count > 0 || item.is_variant > 0;
|
|
234
235
|
}
|
|
@@ -244,6 +245,7 @@ var Info = (props) => {
|
|
|
244
245
|
package: true
|
|
245
246
|
},
|
|
246
247
|
is_eject: isEject ? 1 : 0,
|
|
248
|
+
isOnlySession,
|
|
247
249
|
customer_id: customerId,
|
|
248
250
|
isOS: isSession
|
|
249
251
|
},
|
|
@@ -178,7 +178,7 @@ var handleChangeHolder = (products, currentItem, other) => {
|
|
|
178
178
|
...item,
|
|
179
179
|
_extend: {
|
|
180
180
|
...item._extend,
|
|
181
|
-
holder_id: other.id
|
|
181
|
+
holder_id: (0, import_utils2.isArr)(other) ? other.map((item2) => item2.id) : item._extend.quantity > 1 ? [other.id] : other.id
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
}
|
|
@@ -514,6 +514,8 @@ var getGeneralParams = (item, state, isParallelResource) => {
|
|
|
514
514
|
actionText: import_utils2.locales.getText("page.booking.text.add-time"),
|
|
515
515
|
isMultipleResource: true,
|
|
516
516
|
multiResources,
|
|
517
|
+
holderMaxCount: item == null ? void 0 : item._extend.quantity,
|
|
518
|
+
holderMode: (item == null ? void 0 : item._extend.quantity) > 1 ? "multiple" : void 0,
|
|
517
519
|
isErrorHolder: getIsSubjectRequire(state),
|
|
518
520
|
addHolderButtonText: ((_c = (_b = formData == null ? void 0 : formData[0]) == null ? void 0 : _b.form) == null ? void 0 : _c.title) || "",
|
|
519
521
|
holder_id: (_d = item == null ? void 0 : item._extend) == null ? void 0 : _d.holder_id,
|
|
@@ -56,6 +56,7 @@ var import_antd = require("antd");
|
|
|
56
56
|
var import_classnames = __toESM(require("classnames"));
|
|
57
57
|
var import_useCreateBookingPageHeader = __toESM(require("../hooks/useCreateBookingPageHeader"));
|
|
58
58
|
var import_locales2 = require("../../../utils/locales");
|
|
59
|
+
var import_ahooks = require("ahooks");
|
|
59
60
|
var defaultModules = {
|
|
60
61
|
client: 1,
|
|
61
62
|
date: 1,
|
|
@@ -164,13 +165,10 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
164
165
|
}
|
|
165
166
|
try {
|
|
166
167
|
setTimeout(async () => {
|
|
167
|
-
var _a2;
|
|
168
|
-
let data = await (0, import_serve.getResourceList)(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
},
|
|
172
|
-
(_a2 = stateRef == null ? void 0 : stateRef.current) == null ? void 0 : _a2.bookingId
|
|
173
|
-
);
|
|
168
|
+
var _a2, _b2, _c2, _d2;
|
|
169
|
+
let data = await (0, import_serve.getResourceList)({
|
|
170
|
+
date: currentDate
|
|
171
|
+
}, (_d2 = (_c2 = (_b2 = (_a2 = stateRef == null ? void 0 : stateRef.current) == null ? void 0 : _a2.service) == null ? void 0 : _b2.value) == null ? void 0 : _c2.map) == null ? void 0 : _d2.call(_c2, (item) => item == null ? void 0 : item.booking_id));
|
|
174
172
|
data.date = currentDate;
|
|
175
173
|
localStorage.setItem("bookingResourceList", JSON.stringify(data));
|
|
176
174
|
modal.dispatch({
|
|
@@ -186,11 +184,13 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
186
184
|
console.log(err, "err");
|
|
187
185
|
}
|
|
188
186
|
};
|
|
189
|
-
(0,
|
|
187
|
+
(0, import_ahooks.useDebounceEffect)(() => {
|
|
190
188
|
if (currentDate) {
|
|
191
189
|
getResourcesData();
|
|
192
190
|
}
|
|
193
|
-
}, [currentDate]
|
|
191
|
+
}, [currentDate], {
|
|
192
|
+
wait: 300
|
|
193
|
+
});
|
|
194
194
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !!modal.state.setGlobalState ? /* @__PURE__ */ import_react.default.createElement(
|
|
195
195
|
import_tabPane.default,
|
|
196
196
|
{
|
|
@@ -26,7 +26,7 @@ __export(serve_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(serve_exports);
|
|
27
27
|
var import_utils = require("../utils");
|
|
28
28
|
var import_utils2 = require("./utils");
|
|
29
|
-
var getResourceList = async (params, bookingId) => {
|
|
29
|
+
var getResourceList = async (params, bookingId = []) => {
|
|
30
30
|
let { data } = await import_utils.request.getRequest().get(`/shop/schedule/resource/list`, params);
|
|
31
31
|
return (0, import_utils2.getFormatResourceListAndMap)(data, bookingId);
|
|
32
32
|
};
|
|
@@ -47,7 +47,7 @@ var import_utils2 = require("./utils");
|
|
|
47
47
|
var import_utils3 = require("../../../utils");
|
|
48
48
|
var import_utils4 = require("@pisell/utils");
|
|
49
49
|
var import_ahooks = require("ahooks");
|
|
50
|
-
var import_utils5 = require("
|
|
50
|
+
var import_utils5 = require("../../../../ticketBooking/utils");
|
|
51
51
|
var shopList = [
|
|
52
52
|
2886,
|
|
53
53
|
4422,
|
|
@@ -190,6 +190,7 @@ var Info = (props) => {
|
|
|
190
190
|
var _a2, _b2;
|
|
191
191
|
const isSession = (0, import_utils3.isSessionProduct)(item);
|
|
192
192
|
const isEject = (0, import_utils3.getIsEject)(item, type);
|
|
193
|
+
const isOnlySession = (0, import_utils3.getIsOnlySession)(item);
|
|
193
194
|
let lock = false;
|
|
194
195
|
state.action({
|
|
195
196
|
type: "pisell1.handleOpenProductModal",
|
|
@@ -201,9 +202,10 @@ var Info = (props) => {
|
|
|
201
202
|
session: isSession,
|
|
202
203
|
variant: true,
|
|
203
204
|
package: true,
|
|
204
|
-
number: (0, import_utils5.
|
|
205
|
+
number: (0, import_utils5.getIsShowNumber)(item, state)
|
|
205
206
|
},
|
|
206
207
|
is_eject: isEject ? 1 : 0,
|
|
208
|
+
isOnlySession,
|
|
207
209
|
isOS: isSession,
|
|
208
210
|
customer_id: (_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id
|
|
209
211
|
},
|
|
@@ -51,6 +51,7 @@ var import_utils4 = require("../addService/utils");
|
|
|
51
51
|
var import_materials = require("@pisell/materials");
|
|
52
52
|
var import_utils5 = require("../../../info/utils");
|
|
53
53
|
var import_utils6 = require("../../../info/service2/utils");
|
|
54
|
+
var import_utils7 = require("../../../../ticketBooking/utils");
|
|
54
55
|
var submitLock = false;
|
|
55
56
|
var Info = (_, ref) => {
|
|
56
57
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
|
|
@@ -191,9 +192,11 @@ var Info = (_, ref) => {
|
|
|
191
192
|
}
|
|
192
193
|
_item._extend = _extend;
|
|
193
194
|
_item._time = (/* @__PURE__ */ new Date()).getTime();
|
|
195
|
+
_item._serviceKey = (0, import_utils7.genServiceKey)(_item);
|
|
194
196
|
let _id = _item == null ? void 0 : _item._id;
|
|
195
197
|
if (!_list.some((d) => d._id === _id)) {
|
|
196
|
-
|
|
198
|
+
const detail = (0, import_utils7.addService)(_list, _item, state);
|
|
199
|
+
_list = detail.list;
|
|
197
200
|
} else {
|
|
198
201
|
if (isChangeTotal.current) {
|
|
199
202
|
delete _item.discount_list;
|
|
@@ -332,7 +335,7 @@ var Info = (_, ref) => {
|
|
|
332
335
|
session: isSession,
|
|
333
336
|
variant: true,
|
|
334
337
|
package: true,
|
|
335
|
-
number: (0,
|
|
338
|
+
number: (0, import_utils7.getIsShowNumber)(item, state)
|
|
336
339
|
},
|
|
337
340
|
isOS: isSession,
|
|
338
341
|
customer_id: (_e2 = (_d2 = state.client) == null ? void 0 : _d2.value) == null ? void 0 : _e2.id,
|
|
@@ -23,7 +23,7 @@ __export(utils_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(utils_exports);
|
|
25
25
|
var import_mock = require("../mock");
|
|
26
|
-
var getFormatResourceListAndMap = (data, bookingId) => {
|
|
26
|
+
var getFormatResourceListAndMap = (data, bookingId = []) => {
|
|
27
27
|
let resourceList = (data || {}).concat([(0, import_mock.getNoResource2)({})]);
|
|
28
28
|
const map = resourceList.reduce((prev, item) => {
|
|
29
29
|
prev[item.id] = item;
|
|
@@ -37,7 +37,7 @@ var getFormatResourceListAndMap = (data, bookingId) => {
|
|
|
37
37
|
let pax = 0;
|
|
38
38
|
(((_a2 = map[cur]) == null ? void 0 : _a2.times) || []).forEach((time) => {
|
|
39
39
|
time.event_list.forEach((event) => {
|
|
40
|
-
if (event.id
|
|
40
|
+
if (!bookingId.includes(event.id)) {
|
|
41
41
|
pax += (event == null ? void 0 : event.pax) || 0;
|
|
42
42
|
}
|
|
43
43
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
|
|
2
|
-
export declare const getSumCapacity: ({ cacheItem }: any) => number;
|
|
2
|
+
export declare const getSumCapacity: ({ cacheItem }: any, isCalcQuantity?: boolean) => number;
|
|
3
3
|
/**
|
|
4
4
|
* @title: 查找是否有可用的time
|
|
5
5
|
* @description:
|
|
@@ -114,12 +114,13 @@ var getResourceTimeIsUsable = (item, cacheItem, resourceItem) => {
|
|
|
114
114
|
};
|
|
115
115
|
return time;
|
|
116
116
|
};
|
|
117
|
-
var getSumCapacity = ({ cacheItem }) => {
|
|
117
|
+
var getSumCapacity = ({ cacheItem }, isCalcQuantity = true) => {
|
|
118
|
+
var _a;
|
|
118
119
|
let sum = 0;
|
|
119
120
|
for (let item of cacheItem._extend.capacity || []) {
|
|
120
121
|
sum += item.value;
|
|
121
122
|
}
|
|
122
|
-
return sum;
|
|
123
|
+
return sum * (isCalcQuantity ? ((_a = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _a.quantity) || 1 : 1);
|
|
123
124
|
};
|
|
124
125
|
var formatTimes = (resourceItem, cacheItem) => {
|
|
125
126
|
let usableTimes = [];
|
|
@@ -261,6 +261,7 @@ declare const _default: {
|
|
|
261
261
|
'pisell2.text.goodpass.code': string;
|
|
262
262
|
'pisell2.text.goodpass.enter-code': string;
|
|
263
263
|
'pisell2.text.goodpass.code-invalid': string;
|
|
264
|
+
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
264
265
|
'pisell2.text.status.valid': string;
|
|
265
266
|
'pisell2.text.status.expired': string;
|
|
266
267
|
'pisell2.text.validity.expired': (str: string) => string;
|
|
@@ -531,6 +532,7 @@ declare const _default: {
|
|
|
531
532
|
'pisell2.text.goodpass.code': string;
|
|
532
533
|
'pisell2.text.goodpass.enter-code': string;
|
|
533
534
|
'pisell2.text.goodpass.code-invalid': string;
|
|
535
|
+
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
534
536
|
'pisell2.text.status.valid': string;
|
|
535
537
|
'pisell2.text.status.expired': string;
|
|
536
538
|
'pisell2.text.validity.expired': (str: string) => string;
|
|
@@ -801,6 +803,7 @@ declare const _default: {
|
|
|
801
803
|
'pisell2.text.goodpass.code': string;
|
|
802
804
|
'pisell2.text.goodpass.enter-code': string;
|
|
803
805
|
'pisell2.text.goodpass.code-invalid': string;
|
|
806
|
+
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
804
807
|
'pisell2.text.status.valid': string;
|
|
805
808
|
'pisell2.text.status.expired': string;
|
|
806
809
|
'pisell2.text.validity.expired': (str: string) => string;
|
|
@@ -311,12 +311,13 @@ var locales_default = {
|
|
|
311
311
|
"pisell2.text.send-form-reminder-tooltip": "Refresh forms",
|
|
312
312
|
"pisell2.text.send-form-reminder-refresh": "Forms refreshed successfully",
|
|
313
313
|
"pisell2.text.send-form-reminder-error-message": "Please select at least one reminder method",
|
|
314
|
-
"pisell2.text.goodpass": "
|
|
314
|
+
"pisell2.text.goodpass": "Promotion",
|
|
315
315
|
"pisell2.text.goodpass.product-vouchers": "Product Vouchers",
|
|
316
316
|
"pisell2.text.goodpass.view-more": "View More",
|
|
317
317
|
"pisell2.text.goodpass.code": "Code",
|
|
318
318
|
"pisell2.text.goodpass.enter-code": "Enter Code",
|
|
319
319
|
"pisell2.text.goodpass.code-invalid": "Current code is invalid",
|
|
320
|
+
"pisell2.text.goodpass.code-invalid-cart": "No eligible items in the cart",
|
|
320
321
|
"pisell2.text.status.valid": "Valid",
|
|
321
322
|
"pisell2.text.status.expired": "Expired",
|
|
322
323
|
"pisell2.text.validity.expired": (str) => {
|
|
@@ -613,12 +614,13 @@ var locales_default = {
|
|
|
613
614
|
"pisell2.text.send-form-reminder-tooltip": "刷新表单",
|
|
614
615
|
"pisell2.text.send-form-reminder-refresh": "已刷新表单",
|
|
615
616
|
"pisell2.text.send-form-reminder-error-message": "请至少选择一种提醒方式",
|
|
616
|
-
"pisell2.text.goodpass": "
|
|
617
|
+
"pisell2.text.goodpass": "促销",
|
|
617
618
|
"pisell2.text.goodpass.product-vouchers": "商品兑换券",
|
|
618
619
|
"pisell2.text.goodpass.view-more": "查看更多",
|
|
619
620
|
"pisell2.text.goodpass.code": "券码",
|
|
620
621
|
"pisell2.text.goodpass.enter-code": "请输入券码",
|
|
621
622
|
"pisell2.text.goodpass.code-invalid": "当前券码不可用",
|
|
623
|
+
"pisell2.text.goodpass.code-invalid-cart": "当前购物车中无可用商品",
|
|
622
624
|
"pisell2.text.status.valid": "有效",
|
|
623
625
|
"pisell2.text.status.expired": "已过期",
|
|
624
626
|
"pisell2.text.validity.expired": (str) => {
|
|
@@ -915,12 +917,13 @@ var locales_default = {
|
|
|
915
917
|
"pisell2.text.send-form-reminder-tooltip": "刷新表單",
|
|
916
918
|
"pisell2.text.send-form-reminder-refresh": "已刷新表單",
|
|
917
919
|
"pisell2.text.send-form-reminder-error-message": "請至少選擇一種提醒方式",
|
|
918
|
-
"pisell2.text.goodpass": "
|
|
920
|
+
"pisell2.text.goodpass": "促銷",
|
|
919
921
|
"pisell2.text.goodpass.product-vouchers": "商品兌換券",
|
|
920
922
|
"pisell2.text.goodpass.view-more": "查看更多",
|
|
921
923
|
"pisell2.text.goodpass.code": "券碼",
|
|
922
924
|
"pisell2.text.goodpass.enter-code": "請輸入券碼",
|
|
923
925
|
"pisell2.text.goodpass.code-invalid": "當前券碼不可用",
|
|
926
|
+
"pisell2.text.goodpass.code-invalid-cart": "當前購物車中無可用商品",
|
|
924
927
|
"pisell2.text.status.valid": "有效",
|
|
925
928
|
"pisell2.text.status.expired": "已過期",
|
|
926
929
|
"pisell2.text.validity.expired": (str) => {
|
|
@@ -142,6 +142,7 @@ export declare const deleteCacheParams: () => void;
|
|
|
142
142
|
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
|
143
143
|
export declare const isSessionProduct: (cacheItem: any) => boolean;
|
|
144
144
|
export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
|
|
145
|
+
export declare const getIsOnlySession: (item: any) => boolean;
|
|
145
146
|
/**
|
|
146
147
|
* @title: 创建一个服务商品
|
|
147
148
|
* @description:
|
|
@@ -44,6 +44,7 @@ __export(utils_exports, {
|
|
|
44
44
|
getErrorList: () => getErrorList,
|
|
45
45
|
getIsEdit: () => getIsEdit,
|
|
46
46
|
getIsEject: () => getIsEject,
|
|
47
|
+
getIsOnlySession: () => getIsOnlySession,
|
|
47
48
|
getLastServer: () => getLastServer,
|
|
48
49
|
getNowTime: () => getNowTime,
|
|
49
50
|
getProductTotalPrice: () => getProductTotalPrice,
|
|
@@ -528,6 +529,10 @@ var getIsEject = (item, type) => {
|
|
|
528
529
|
const isSession = isSessionProduct(item);
|
|
529
530
|
return type === "detail" || item.bundle_group_count > 0 || item.option_group_count > 0 || item.is_variant > 0 || isSession;
|
|
530
531
|
};
|
|
532
|
+
var getIsOnlySession = (item) => {
|
|
533
|
+
const isSession = isSessionProduct(item);
|
|
534
|
+
return !(item.bundle_group_count > 0 || item.option_group_count > 0 || item.is_variant > 0) && isSession;
|
|
535
|
+
};
|
|
531
536
|
var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
532
537
|
if (!cacheItem.new && cacheItem._extend.endDate) {
|
|
533
538
|
return cacheItem._extend;
|
|
@@ -691,6 +696,7 @@ var getIsEdit = (state) => {
|
|
|
691
696
|
getErrorList,
|
|
692
697
|
getIsEdit,
|
|
693
698
|
getIsEject,
|
|
699
|
+
getIsOnlySession,
|
|
694
700
|
getLastServer,
|
|
695
701
|
getNowTime,
|
|
696
702
|
getProductTotalPrice,
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "
|
|
177
|
+
status: "success" | "warn" | "loading" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -295,7 +295,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
295
295
|
name?: string | undefined;
|
|
296
296
|
symbol?: string | undefined;
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
|
-
mode?: "
|
|
298
|
+
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
300
|
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
|
|
301
301
|
action?: "amount" | "deviceList" | "pay" | undefined;
|
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
311
|
+
status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|