@pisell/private-materials 3.2.39 → 3.3.1
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/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +6 -1
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +252 -120
- package/es/components/appointmentBooking/components/Cart/Item/Total.js +5 -4
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +98 -17
- package/es/components/appointmentBooking/components/Cart/Item/index.less +21 -12
- package/es/components/appointmentBooking/components/Cart/index.js +2 -7
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +77 -0
- package/es/components/appointmentBooking/components/Cart/utils.js +408 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +24 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
- package/es/components/appointmentBooking/components/Content/index.js +76 -9
- package/es/components/appointmentBooking/components/Content/index.less +21 -0
- package/es/components/appointmentBooking/components/Date/index.js +127 -36
- package/es/components/appointmentBooking/components/Date/index.less +1 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +30 -0
- package/es/components/appointmentBooking/components/Deposit/index.less +17 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Footer/index.js +8 -2
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Form/index.js +200 -0
- package/es/components/appointmentBooking/components/Form/index.less +3 -0
- package/es/components/appointmentBooking/components/Guest/index.js +1 -1
- package/es/components/appointmentBooking/components/Header/index.js +53 -19
- package/es/components/appointmentBooking/components/Resource/index.js +67 -12
- package/es/components/appointmentBooking/components/Services/index.js +213 -75
- package/es/components/appointmentBooking/components/Services/index.less +0 -14
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +10 -5
- package/es/components/appointmentBooking/components/TimeSlicing/index.less +7 -2
- package/es/components/appointmentBooking/components/Voucher/index.js +19 -6
- package/es/components/appointmentBooking/components/Voucher/index.less +93 -2
- package/es/components/appointmentBooking/context.d.ts +4 -4
- package/es/components/appointmentBooking/context.js +42 -33
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +108 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.less +9 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/es/components/appointmentBooking/deposit/index.js +101 -0
- package/es/components/appointmentBooking/deposit/index.less +57 -0
- package/es/components/appointmentBooking/hooks.d.ts +29 -1
- package/es/components/appointmentBooking/hooks.js +382 -114
- package/es/components/appointmentBooking/index.js +9 -4
- package/es/components/appointmentBooking/locales.d.ts +51 -3
- package/es/components/appointmentBooking/locales.js +58 -4
- package/es/components/appointmentBooking/utils.d.ts +66 -1
- package/es/components/appointmentBooking/utils.js +226 -33
- package/es/components/booking/addons/index.js +10 -6
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +90 -72
- package/es/components/booking/components/footer/utils.d.ts +11 -0
- package/es/components/booking/components/footer/utils.js +72 -44
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +22 -6
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useAddHolder.d.ts +2 -0
- package/es/components/booking/info/hooks/useAddHolder.js +70 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/es/components/booking/info/hooks/useHolderConfig.js +40 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +99 -0
- package/es/components/booking/info/index.js +9 -2
- package/es/components/booking/info/main.js +1 -1
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/pet/index.js +18 -17
- package/es/components/booking/info/service/Lists.d.ts +2 -0
- package/es/components/booking/info/service/Lists.js +119 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.js +7 -5
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.js +7 -5
- package/es/components/booking/info/service/index.js +2 -2
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.js +1 -0
- package/es/components/booking/info/service/serviceManager/index.js +12 -7
- package/es/components/booking/info/service2/Group/utils.js +2 -1
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.js +13 -5
- package/es/components/booking/info/service2/utils.d.ts +6 -5
- package/es/components/booking/info/service2/utils.js +356 -88
- package/es/components/booking/info/utils.d.ts +2 -0
- package/es/components/booking/info/utils.js +45 -1
- package/es/components/booking/info2/index.js +9 -6
- package/es/components/booking/info2/serve.d.ts +2 -2
- package/es/components/booking/info2/serve.js +8 -15
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +13 -8
- package/es/components/booking/info2/service/addService/utils.d.ts +8 -0
- package/es/components/booking/info2/service/addService/utils.js +49 -14
- package/es/components/booking/info2/service/addTimeModal/index.js +1 -1
- package/es/components/booking/info2/service/editService/Resources/index.js +6 -5
- package/es/components/booking/info2/service/editService/index.js +4 -3
- package/es/components/booking/info2/service/index.js +18 -37
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utils.js +43 -0
- package/es/components/booking/info2/utilsByBooking.js +17 -4
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.js +2 -2
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.js +1 -1
- package/es/components/booking/notes/addNote/index.less +3 -0
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +20 -8
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/es/components/productSelect/components/TabProduct/index.js +176 -0
- package/es/components/productSelect/components/gridLayout/index.d.ts +9 -0
- package/es/components/productSelect/components/gridLayout/index.js +28 -0
- package/es/components/productSelect/components/gridLayout/index.less +6 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +34 -0
- package/es/components/productSelect/components/productGroup/index.js +145 -0
- package/es/components/productSelect/components/productGroup/index.less +208 -0
- package/es/components/productSelect/hooks/useToken.d.ts +18 -0
- package/es/components/productSelect/hooks/useToken.js +35 -0
- package/es/components/productSelect/index.d.ts +23 -0
- package/es/components/productSelect/index.js +93 -0
- package/es/components/productSelect/index.less +69 -0
- package/es/components/productSelect/locales.d.ts +18 -0
- package/es/components/productSelect/locales.js +17 -0
- package/es/components/productSelect/mock.d.ts +134 -0
- package/es/components/productSelect/mock.js +202 -0
- package/es/components/productSelect/theme/token.d.ts +17 -0
- package/es/components/productSelect/theme/token.js +19 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/Provider.d.ts +1 -1
- package/es/components/shoppingCart/Provider.js +3 -1
- package/es/components/shoppingCart/components/Cart/Product.js +15 -3
- package/es/components/shoppingCart/components/Cart/index.less +15 -15
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.less +15 -0
- package/es/components/shoppingCart/hooks/useAddService.js +7 -1
- package/es/components/shoppingCart/index.d.ts +1 -1
- package/es/components/shoppingCart/index.js +3 -1
- package/es/components/shoppingCart/status.js +4 -1
- package/es/components/shoppingCart/type.d.ts +5 -0
- package/es/components/subTotal/index.d.ts +22 -0
- package/es/components/subTotal/index.js +234 -0
- package/es/components/subTotal/index.less +70 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/subTotal/locales.js +41 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +410 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.js +28 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.less +0 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +3 -0
- package/es/components/ticketBooking/components/menuBar/index.js +54 -0
- package/es/components/ticketBooking/components/menuBar/index.less +84 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +815 -0
- package/es/components/ticketBooking/components/ticketBooking/index.less +18 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +11 -0
- package/es/components/ticketBooking/components/timeBar/index.js +113 -0
- package/es/components/ticketBooking/components/timeBar/index.less +22 -0
- package/es/components/ticketBooking/data.d.ts +58 -0
- package/es/components/ticketBooking/data.js +58 -58
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/es/components/ticketBooking/hooks/useNetworkStatus.js +52 -0
- package/es/components/ticketBooking/index.d.ts +3 -2
- package/es/components/ticketBooking/index.js +139 -5
- package/es/components/ticketBooking/index.less +4 -0
- package/es/components/ticketBooking/locales.d.ts +144 -0
- package/es/components/ticketBooking/locales.js +143 -0
- package/es/components/ticketBooking/miniRedux.d.ts +22 -0
- package/es/components/ticketBooking/miniRedux.js +105 -0
- package/es/components/ticketBooking/serve.d.ts +282 -0
- package/es/components/ticketBooking/serve.js +957 -0
- package/es/components/ticketBooking/utils/index.d.ts +14 -0
- package/es/components/ticketBooking/utils/index.js +102 -0
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +6 -1
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +134 -74
- package/lib/components/appointmentBooking/components/Cart/Item/Total.js +31 -24
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +59 -14
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +21 -12
- package/lib/components/appointmentBooking/components/Cart/index.js +2 -2
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +77 -0
- package/lib/components/appointmentBooking/components/Cart/utils.js +273 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +46 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
- package/lib/components/appointmentBooking/components/Content/index.js +59 -5
- package/lib/components/appointmentBooking/components/Content/index.less +21 -0
- package/lib/components/appointmentBooking/components/Date/index.js +43 -17
- package/lib/components/appointmentBooking/components/Date/index.less +1 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +61 -0
- package/lib/components/appointmentBooking/components/Deposit/index.less +17 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Footer/index.js +8 -2
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Form/index.js +157 -0
- package/lib/components/appointmentBooking/components/Form/index.less +3 -0
- package/lib/components/appointmentBooking/components/Guest/index.js +1 -1
- package/lib/components/appointmentBooking/components/Header/index.js +31 -13
- package/lib/components/appointmentBooking/components/Resource/index.js +36 -14
- package/lib/components/appointmentBooking/components/Services/index.js +86 -63
- package/lib/components/appointmentBooking/components/Services/index.less +0 -14
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +13 -5
- package/lib/components/appointmentBooking/components/TimeSlicing/index.less +7 -2
- package/lib/components/appointmentBooking/components/Voucher/index.js +21 -6
- package/lib/components/appointmentBooking/components/Voucher/index.less +93 -2
- package/lib/components/appointmentBooking/context.d.ts +4 -4
- package/lib/components/appointmentBooking/context.js +15 -10
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +95 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.less +9 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/lib/components/appointmentBooking/deposit/index.js +109 -0
- package/lib/components/appointmentBooking/deposit/index.less +57 -0
- package/lib/components/appointmentBooking/hooks.d.ts +29 -1
- package/lib/components/appointmentBooking/hooks.js +148 -22
- package/lib/components/appointmentBooking/index.js +6 -4
- package/lib/components/appointmentBooking/locales.d.ts +51 -3
- package/lib/components/appointmentBooking/locales.js +52 -4
- package/lib/components/appointmentBooking/utils.d.ts +66 -1
- package/lib/components/appointmentBooking/utils.js +158 -33
- package/lib/components/booking/addons/index.js +9 -5
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +94 -32
- package/lib/components/booking/components/footer/utils.d.ts +11 -0
- package/lib/components/booking/components/footer/utils.js +38 -14
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +18 -2
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useAddHolder.d.ts +2 -0
- package/lib/components/booking/info/hooks/useAddHolder.js +73 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/lib/components/booking/info/hooks/useHolderConfig.js +59 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +106 -0
- package/lib/components/booking/info/index.js +5 -1
- package/lib/components/booking/info/main.js +1 -1
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/pet/index.js +3 -2
- package/lib/components/booking/info/service/Lists.d.ts +2 -0
- package/lib/components/booking/info/service/Lists.js +106 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.js +6 -4
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.js +5 -3
- package/lib/components/booking/info/service/index.js +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.js +1 -0
- package/lib/components/booking/info/service/serviceManager/index.js +6 -1
- package/lib/components/booking/info/service2/Group/utils.js +2 -1
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +13 -6
- package/lib/components/booking/info/service2/utils.d.ts +6 -5
- package/lib/components/booking/info/service2/utils.js +304 -30
- package/lib/components/booking/info/utils.d.ts +2 -0
- package/lib/components/booking/info/utils.js +40 -1
- package/lib/components/booking/info2/index.js +6 -1
- package/lib/components/booking/info2/serve.d.ts +2 -2
- package/lib/components/booking/info2/serve.js +3 -10
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +11 -6
- package/lib/components/booking/info2/service/addService/utils.d.ts +8 -0
- package/lib/components/booking/info2/service/addService/utils.js +50 -17
- package/lib/components/booking/info2/service/addTimeModal/index.js +2 -2
- package/lib/components/booking/info2/service/editService/Resources/index.js +5 -3
- package/lib/components/booking/info2/service/editService/index.js +3 -1
- package/lib/components/booking/info2/service/index.js +18 -28
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utils.js +65 -0
- package/lib/components/booking/info2/utilsByBooking.js +12 -3
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.js +2 -2
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.js +1 -1
- package/lib/components/booking/notes/addNote/index.less +3 -0
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +25 -10
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/lib/components/productSelect/components/TabProduct/index.js +172 -0
- package/lib/components/productSelect/components/gridLayout/index.d.ts +9 -0
- package/lib/components/productSelect/components/gridLayout/index.js +58 -0
- package/lib/components/productSelect/components/gridLayout/index.less +6 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +34 -0
- package/lib/components/productSelect/components/productGroup/index.js +122 -0
- package/lib/components/productSelect/components/productGroup/index.less +208 -0
- package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
- package/lib/components/productSelect/hooks/useToken.js +51 -0
- package/lib/components/productSelect/index.d.ts +23 -0
- package/lib/components/productSelect/index.js +119 -0
- package/lib/components/productSelect/index.less +69 -0
- package/lib/components/productSelect/locales.d.ts +18 -0
- package/lib/components/productSelect/locales.js +41 -0
- package/lib/components/productSelect/mock.d.ts +134 -0
- package/lib/components/productSelect/mock.js +276 -0
- package/lib/components/productSelect/theme/token.d.ts +17 -0
- package/lib/components/productSelect/theme/token.js +47 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/Provider.d.ts +1 -1
- package/lib/components/shoppingCart/Provider.js +3 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +14 -3
- package/lib/components/shoppingCart/components/Cart/index.less +15 -15
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.less +15 -0
- package/lib/components/shoppingCart/hooks/useAddService.js +1 -2
- package/lib/components/shoppingCart/index.d.ts +1 -1
- package/lib/components/shoppingCart/index.js +2 -0
- package/lib/components/shoppingCart/status.js +4 -1
- package/lib/components/shoppingCart/type.d.ts +5 -0
- package/lib/components/subTotal/index.d.ts +22 -0
- package/lib/components/subTotal/index.js +175 -0
- package/lib/components/subTotal/index.less +70 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/subTotal/locales.js +65 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +318 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +56 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.less +0 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +3 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +87 -0
- package/lib/components/ticketBooking/components/menuBar/index.less +84 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +769 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.less +18 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +11 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +148 -0
- package/lib/components/ticketBooking/components/timeBar/index.less +22 -0
- package/lib/components/ticketBooking/data.d.ts +58 -0
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/lib/components/ticketBooking/hooks/useNetworkStatus.js +80 -0
- package/lib/components/ticketBooking/index.d.ts +3 -2
- package/lib/components/ticketBooking/index.js +159 -3
- package/lib/components/ticketBooking/index.less +4 -0
- package/lib/components/ticketBooking/locales.d.ts +144 -0
- package/lib/components/ticketBooking/locales.js +167 -0
- package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
- package/lib/components/ticketBooking/miniRedux.js +96 -0
- package/lib/components/ticketBooking/serve.d.ts +282 -0
- package/lib/components/ticketBooking/serve.js +214 -0
- package/lib/components/ticketBooking/utils/index.d.ts +14 -0
- package/lib/components/ticketBooking/utils/index.js +131 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +9 -0
- package/lowcode/appointment-deposit/meta.ts +58 -0
- package/lowcode/product-select/meta.ts +217 -0
- package/lowcode/sub-total/meta.ts +134 -0
- package/lowcode/ticket-booking/meta.ts +29 -0
- package/package.json +2 -2
- package/es/components/booking/components/voucher/pisellGoodPassCard/index.d.ts +0 -47
- package/es/components/booking/components/voucher/pisellGoodPassCard/index.js +0 -115
- package/es/components/booking/components/voucher/pisellGoodPassCard/index.less +0 -52
- package/lib/components/booking/components/voucher/pisellGoodPassCard/index.d.ts +0 -47
- package/lib/components/booking/components/voucher/pisellGoodPassCard/index.js +0 -109
- package/lib/components/booking/components/voucher/pisellGoodPassCard/index.less +0 -52
|
@@ -78,3 +78,11 @@ export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any
|
|
|
78
78
|
* @Date: 2024-06-01 13:25
|
|
79
79
|
*/
|
|
80
80
|
export declare const getProductExtend: ({ cacheItem, state }: any) => any;
|
|
81
|
+
/**
|
|
82
|
+
* @title: 格式化服务列表
|
|
83
|
+
* @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
|
|
84
|
+
* 使用with resourceRelation后 返回的resource_relation是实时数据
|
|
85
|
+
* 这里做一次转换
|
|
86
|
+
* @param list
|
|
87
|
+
*/
|
|
88
|
+
export declare const transServiceList: (list: any[]) => any[];
|
|
@@ -37,7 +37,8 @@ __export(utils_exports, {
|
|
|
37
37
|
getTimeSlices: () => getTimeSlices,
|
|
38
38
|
getUsableTime: () => getUsableTime,
|
|
39
39
|
setDefaultCapacitys: () => setDefaultCapacitys,
|
|
40
|
-
setDefaultResource: () => setDefaultResource
|
|
40
|
+
setDefaultResource: () => setDefaultResource,
|
|
41
|
+
transServiceList: () => transServiceList
|
|
41
42
|
});
|
|
42
43
|
module.exports = __toCommonJS(utils_exports);
|
|
43
44
|
var import_react = __toESM(require("react"));
|
|
@@ -285,22 +286,41 @@ var getResourceByIds = (resourcesOriginMap, cacheItem) => {
|
|
|
285
286
|
item.optional_resource = (item.optional_resource || []).filter(
|
|
286
287
|
(d) => item.default_resource.indexOf(d) == -1
|
|
287
288
|
);
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
resourcesOriginMap[d]
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
289
|
+
const getChildrenMetadata = (d) => {
|
|
290
|
+
const combiningResources = [];
|
|
291
|
+
if (resourcesOriginMap[d].combined_resource && resourcesOriginMap[d].combined_resource.status === 1) {
|
|
292
|
+
resourcesOriginMap[d].combined_resource.resource_ids.forEach((id) => {
|
|
293
|
+
if (resourcesOriginMap[id]) {
|
|
294
|
+
combiningResources.push(resourcesOriginMap[id]);
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
return {
|
|
299
|
+
children: combiningResources,
|
|
300
|
+
metadata: {
|
|
301
|
+
...resourcesOriginMap[d].metadata,
|
|
302
|
+
combined_resource: resourcesOriginMap[d].combined_resource
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
let optional_resource = item.optional_resource.map((d) => {
|
|
307
|
+
if (!resourcesOriginMap[d]) {
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
310
|
+
return Object.assign({}, resourcesOriginMap[d], {
|
|
311
|
+
form_id,
|
|
312
|
+
resourceType: item.type,
|
|
313
|
+
...getChildrenMetadata(d)
|
|
314
|
+
});
|
|
315
|
+
}).filter((d) => d).concat((0, import_mock.getNoResource2)({ form_id }));
|
|
297
316
|
let default_resource = item.default_resource.map((d) => {
|
|
298
317
|
let item2 = resourcesOriginMap[d];
|
|
299
318
|
if (item2) {
|
|
300
319
|
item2.is_default = 1;
|
|
301
320
|
return Object.assign({}, item2, {
|
|
302
321
|
form_id,
|
|
303
|
-
resourceType: item2.type
|
|
322
|
+
resourceType: item2.type,
|
|
323
|
+
...getChildrenMetadata(d)
|
|
304
324
|
});
|
|
305
325
|
} else {
|
|
306
326
|
return null;
|
|
@@ -313,11 +333,11 @@ var getResourceByIds = (resourcesOriginMap, cacheItem) => {
|
|
|
313
333
|
return _resources;
|
|
314
334
|
};
|
|
315
335
|
var getIsAutoClose = (cacheItem) => {
|
|
316
|
-
var _a, _b, _c;
|
|
317
|
-
if (cacheItem._data.capacitys.type !== "custom") {
|
|
318
|
-
if (((
|
|
319
|
-
const first = (
|
|
320
|
-
if (((
|
|
336
|
+
var _a, _b, _c, _d, _e;
|
|
337
|
+
if (((_b = (_a = cacheItem._data) == null ? void 0 : _a.capacitys) == null ? void 0 : _b.type) !== "custom") {
|
|
338
|
+
if (((_c = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _c.resources.length) === 1) {
|
|
339
|
+
const first = (_d = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _d.resources[0];
|
|
340
|
+
if (((_e = first.select_type) == null ? void 0 : _e.type) === "single") {
|
|
321
341
|
if (first.default_resource.length > 0) {
|
|
322
342
|
return true;
|
|
323
343
|
}
|
|
@@ -413,6 +433,18 @@ var getProductExtend = ({ cacheItem, state }) => {
|
|
|
413
433
|
console.log("_cacheItem_cacheItem", _cacheItem);
|
|
414
434
|
return _cacheItem;
|
|
415
435
|
};
|
|
436
|
+
var transServiceList = (list) => {
|
|
437
|
+
return list.map((item) => {
|
|
438
|
+
var _a;
|
|
439
|
+
return {
|
|
440
|
+
...item,
|
|
441
|
+
product_resource: {
|
|
442
|
+
...item.product_resource,
|
|
443
|
+
resources: (item == null ? void 0 : item.resource_relation) || ((_a = item == null ? void 0 : item.product_resource) == null ? void 0 : _a.resources)
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
});
|
|
447
|
+
};
|
|
416
448
|
// Annotate the CommonJS export names for ESM import in node:
|
|
417
449
|
0 && (module.exports = {
|
|
418
450
|
formatResources,
|
|
@@ -423,5 +455,6 @@ var getProductExtend = ({ cacheItem, state }) => {
|
|
|
423
455
|
getTimeSlices,
|
|
424
456
|
getUsableTime,
|
|
425
457
|
setDefaultCapacitys,
|
|
426
|
-
setDefaultResource
|
|
458
|
+
setDefaultResource,
|
|
459
|
+
transServiceList
|
|
427
460
|
});
|
|
@@ -118,8 +118,8 @@ var AddTimeModal = () => {
|
|
|
118
118
|
arr = [
|
|
119
119
|
...arr,
|
|
120
120
|
...resource[form_id].map((d) => {
|
|
121
|
-
var _a3, _b3, _c2, _d2;
|
|
122
|
-
return (_d2 = (_c2 = (_b3 = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._data.resourceMaps) == null ? void 0 :
|
|
121
|
+
var _a3, _b3, _c2, _d2, _e2;
|
|
122
|
+
return (_e2 = (_d2 = (_c2 = (_b3 = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._data) == null ? void 0 : _b3.resourceMaps) == null ? void 0 : _c2[form_id]) == null ? void 0 : _d2.renderListMaps) == null ? void 0 : _e2[d.relation_id];
|
|
123
123
|
})
|
|
124
124
|
];
|
|
125
125
|
}
|
|
@@ -75,7 +75,7 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
|
|
|
75
75
|
return pre;
|
|
76
76
|
}, {}) : {};
|
|
77
77
|
_val[form_id] = val.map((d) => {
|
|
78
|
-
var _a2, _b2, _c, _d2;
|
|
78
|
+
var _a2, _b2, _c, _d2, _e, _f, _g, _h;
|
|
79
79
|
let _d = maps[d];
|
|
80
80
|
if (_d) {
|
|
81
81
|
if (key === "like_status") {
|
|
@@ -90,14 +90,16 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
|
|
|
90
90
|
form_id,
|
|
91
91
|
relation_id: d,
|
|
92
92
|
like_status: "common",
|
|
93
|
+
children: (_d2 = (_c = currentForm.renderListMaps) == null ? void 0 : _c[d]) == null ? void 0 : _d2.children,
|
|
93
94
|
// 新添加的数据补充错误信息
|
|
94
95
|
errors: (0, import_utilsByBooking.getErrorList)(
|
|
95
|
-
(
|
|
96
|
+
(_e = currentForm.renderListMaps) == null ? void 0 : _e[d],
|
|
96
97
|
getCurrentCacheItem()
|
|
97
98
|
),
|
|
98
99
|
metadata: {
|
|
100
|
+
...(_g = (_f = currentForm.renderListMaps) == null ? void 0 : _f[d]) == null ? void 0 : _g.metadata,
|
|
99
101
|
form_name: currentForm.title,
|
|
100
|
-
resource_name: (
|
|
102
|
+
resource_name: (_h = currentForm.renderListMaps[d]) == null ? void 0 : _h.main_field
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
);
|
|
@@ -295,6 +295,7 @@ var Info = (_, ref) => {
|
|
|
295
295
|
const handleEdit = (e) => {
|
|
296
296
|
const item = state.service.cacheItem;
|
|
297
297
|
let values = form.getFieldsValue();
|
|
298
|
+
const isSession = (0, import_utils3.isSessionProduct)(item);
|
|
298
299
|
state.action({
|
|
299
300
|
type: "pisell1.handleOpenProductModal",
|
|
300
301
|
data: {
|
|
@@ -302,10 +303,11 @@ var Info = (_, ref) => {
|
|
|
302
303
|
date: state.date.value.format("YYYY-MM-DD"),
|
|
303
304
|
showConfig: {
|
|
304
305
|
option: false,
|
|
305
|
-
session:
|
|
306
|
+
session: isSession,
|
|
306
307
|
variant: false,
|
|
307
308
|
package: true
|
|
308
309
|
},
|
|
310
|
+
isOS: isSession,
|
|
309
311
|
value: item._extend.other
|
|
310
312
|
},
|
|
311
313
|
callback: (e2, extension_type, detail) => {
|
|
@@ -37,41 +37,31 @@ var import_addService = __toESM(require("./addService"));
|
|
|
37
37
|
var import_model = require("../../info/model");
|
|
38
38
|
var import_editService = __toESM(require("./editService"));
|
|
39
39
|
var import_service = require("../../info/service/index.less");
|
|
40
|
-
var import_serviceList = __toESM(require("./serviceList"));
|
|
41
40
|
var import_addTimeModal = __toESM(require("./addTimeModal"));
|
|
41
|
+
var import_useInfoHolder = __toESM(require("../../info/hooks/useInfoHolder"));
|
|
42
|
+
var import_Lists = __toESM(require("../../info/service/Lists"));
|
|
42
43
|
var import_useClearCart = __toESM(require("../../hooks/useClearCart"));
|
|
43
44
|
var Service = () => {
|
|
44
|
-
var _a, _b;
|
|
45
45
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
46
|
-
const
|
|
46
|
+
const {
|
|
47
|
+
detailRef,
|
|
48
|
+
handleEdit,
|
|
49
|
+
handleAction,
|
|
50
|
+
dispatchService,
|
|
51
|
+
showAddTimeModal
|
|
52
|
+
} = (0, import_useInfoHolder.default)(state, dispatch);
|
|
47
53
|
(0, import_react.useEffect)(() => {
|
|
48
54
|
document.body.id = "body";
|
|
49
55
|
}, []);
|
|
50
|
-
const appointment_card = (0, import_react.useMemo)(() => {
|
|
51
|
-
var _a2, _b2, _c;
|
|
52
|
-
return ((_c = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.information_tab) == null ? void 0 : _c.appointment_card) || {
|
|
53
|
-
quick_time: 1
|
|
54
|
-
};
|
|
55
|
-
}, [(_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.information_tab]);
|
|
56
|
-
const showAddTimeModal = (0, import_react.useMemo)(() => {
|
|
57
|
-
if ((state == null ? void 0 : state.renderType) === "eventBooking") {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
if (state == null ? void 0 : state.disabledEdit) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
if (appointment_card.quick_time !== 1) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
return true;
|
|
67
|
-
}, [state, appointment_card.quick_time]);
|
|
68
|
-
const handleEdit = (cacheItem) => {
|
|
69
|
-
setTimeout(() => {
|
|
70
|
-
var _a2, _b2;
|
|
71
|
-
(_b2 = (_a2 = detailRef.current) == null ? void 0 : _a2.init) == null ? void 0 : _b2.call(_a2, cacheItem);
|
|
72
|
-
}, 100);
|
|
73
|
-
};
|
|
74
56
|
const clearCart = (0, import_useClearCart.default)(state, dispatch);
|
|
75
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-wrap" }, clearCart, /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-wrap" }, clearCart, /* @__PURE__ */ import_react.default.createElement(
|
|
58
|
+
import_Lists.default,
|
|
59
|
+
{
|
|
60
|
+
isParallelResource: true,
|
|
61
|
+
onEdit: handleEdit,
|
|
62
|
+
onAction: handleAction,
|
|
63
|
+
onChange: (e, type) => dispatchService(type || "setService", e)
|
|
64
|
+
}
|
|
65
|
+
), !state.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit }) : null), /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }), showAddTimeModal && /* @__PURE__ */ import_react.default.createElement(import_addTimeModal.default, null));
|
|
76
66
|
};
|
|
77
67
|
var service_default = import_react.default.memo(Service);
|
|
@@ -0,0 +1,65 @@
|
|
|
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/info2/utils.ts
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
getFormatResourceListAndMap: () => getFormatResourceListAndMap
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(utils_exports);
|
|
25
|
+
var import_mock = require("../mock");
|
|
26
|
+
var getFormatResourceListAndMap = (data, bookingId) => {
|
|
27
|
+
let resourceList = (data || {}).concat([(0, import_mock.getNoResource2)({})]);
|
|
28
|
+
const map = resourceList.reduce((prev, item) => {
|
|
29
|
+
prev[item.id] = item;
|
|
30
|
+
return prev;
|
|
31
|
+
}, {});
|
|
32
|
+
const getCapacity = (item) => {
|
|
33
|
+
var _a, _b, _c, _d;
|
|
34
|
+
if (((_a = item.combined_resource) == null ? void 0 : _a.status) === 1 && ((_c = (_b = item.combined_resource) == null ? void 0 : _b.resource_ids) == null ? void 0 : _c.length)) {
|
|
35
|
+
return (_d = item.combined_resource) == null ? void 0 : _d.resource_ids.reduce((pre, cur) => {
|
|
36
|
+
let pax = 0;
|
|
37
|
+
map[cur].times.forEach((time) => {
|
|
38
|
+
time.event_list.forEach((event) => {
|
|
39
|
+
if (event.id !== bookingId) {
|
|
40
|
+
pax += (event == null ? void 0 : event.pax) || 0;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
return pre - pax;
|
|
45
|
+
}, item.capacity);
|
|
46
|
+
}
|
|
47
|
+
return item.capacity;
|
|
48
|
+
};
|
|
49
|
+
resourceList = resourceList.map((item) => {
|
|
50
|
+
const newItem = {
|
|
51
|
+
...item,
|
|
52
|
+
capacity: getCapacity(item)
|
|
53
|
+
};
|
|
54
|
+
map[item.id] = newItem;
|
|
55
|
+
return newItem;
|
|
56
|
+
});
|
|
57
|
+
return {
|
|
58
|
+
list: resourceList,
|
|
59
|
+
listMap: map
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
+
0 && (module.exports = {
|
|
64
|
+
getFormatResourceListAndMap
|
|
65
|
+
});
|
|
@@ -68,7 +68,7 @@ var getResourceTimeIsUsable = (item, cacheItem, resourceItem) => {
|
|
|
68
68
|
let timeEndDate = (0, import_dayjs.default)(time.end_date + " " + time.end_time).add(1, "second");
|
|
69
69
|
let totalCount = getUseableEventCount(time.event_list, resourceItem.capacity);
|
|
70
70
|
const currentCount = getSumCapacity({ cacheItem });
|
|
71
|
-
const eventList = time.event_list || [];
|
|
71
|
+
const eventList = (time.event_list || []).filter((event) => event.id !== (cacheItem == null ? void 0 : cacheItem.booking_id));
|
|
72
72
|
let endDate = null;
|
|
73
73
|
let isCalcCount = true;
|
|
74
74
|
if (isFlexible) {
|
|
@@ -92,7 +92,7 @@ var getResourceTimeIsUsable = (item, cacheItem, resourceItem) => {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
if (isCalcCount) {
|
|
95
|
-
let conflict = (
|
|
95
|
+
let conflict = (eventList || []).filter((d) => {
|
|
96
96
|
return isConflict({ start_at: d.start_at, end_at: d.end_at }, { start_at: startDate, end_at: endDate });
|
|
97
97
|
});
|
|
98
98
|
if (resourceItem.resourceType === "single") {
|
|
@@ -199,7 +199,7 @@ var formatResource = (resourceItem, cacheItem, formatLabel) => {
|
|
|
199
199
|
return _resourceItem;
|
|
200
200
|
};
|
|
201
201
|
var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
|
|
202
|
-
var _a;
|
|
202
|
+
var _a, _b, _c;
|
|
203
203
|
let lastServer = (0, import_utils2.getLastServer)(state.service.value);
|
|
204
204
|
let _extend = {
|
|
205
205
|
// 时长: 当前商品时长 > 第一个时长
|
|
@@ -245,6 +245,15 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
|
|
|
245
245
|
const { startDate, endDate } = (0, import_utils2.getServiceTimes)({ _extend });
|
|
246
246
|
_extend.startDate = startDate;
|
|
247
247
|
_extend.endDate = endDate;
|
|
248
|
+
const session = (_c = (_b = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.session;
|
|
249
|
+
if ((0, import_utils2.isSessionProduct)(cacheItem) && session) {
|
|
250
|
+
_extend.start_date = session.start_at;
|
|
251
|
+
_extend.startDate = session.start_at;
|
|
252
|
+
_extend.start_time = session.start_time;
|
|
253
|
+
_extend.end_date = session.end_at;
|
|
254
|
+
_extend.endDate = session.end_at;
|
|
255
|
+
_extend.duration = (0, import_utils2.getDays)({ _extend }, "minutes");
|
|
256
|
+
}
|
|
248
257
|
return _extend;
|
|
249
258
|
};
|
|
250
259
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -42,11 +42,11 @@ var Holder = (props) => {
|
|
|
42
42
|
const { state } = (0, import_react.useContext)(import_model.Context);
|
|
43
43
|
const { holderLists } = (0, import_useSelectPet.default)(state);
|
|
44
44
|
const holders = (0, import_react.useMemo)(() => {
|
|
45
|
-
const lists = holderLists == null ? void 0 : holderLists.filter((d) => (d == null ? void 0 : d.id) > 0);
|
|
45
|
+
const lists = holderLists == null ? void 0 : holderLists.filter((d) => ((d == null ? void 0 : d.id) || (d == null ? void 0 : d.form_record_id)) > 0);
|
|
46
46
|
if (!(lists == null ? void 0 : lists.length)) return [];
|
|
47
47
|
return lists.map((d) => {
|
|
48
48
|
return {
|
|
49
|
-
value: d == null ? void 0 : d.id,
|
|
49
|
+
value: (d == null ? void 0 : d.id) || (d == null ? void 0 : d.form_record_id),
|
|
50
50
|
label: d == null ? void 0 : d.main_field
|
|
51
51
|
};
|
|
52
52
|
});
|
|
@@ -51,7 +51,7 @@ var AddNote = ({ value, onChange, wait = 200, title, placeholder }) => {
|
|
|
51
51
|
onChange(debouncedValue);
|
|
52
52
|
}
|
|
53
53
|
}, [debouncedValue]);
|
|
54
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-notes-label" }, title), /* @__PURE__ */ import_react.default.createElement(
|
|
54
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-notes" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-notes-label" }, title), /* @__PURE__ */ import_react.default.createElement(
|
|
55
55
|
"div",
|
|
56
56
|
{
|
|
57
57
|
className: "pisell-lowcode__booking-notes-input",
|
|
@@ -140,6 +140,7 @@ export declare const deleteCacheParams: () => void;
|
|
|
140
140
|
* @Date: 2024-12-01 22:43
|
|
141
141
|
*/
|
|
142
142
|
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
|
143
|
+
export declare const isSessionProduct: (cacheItem: any) => boolean;
|
|
143
144
|
/**
|
|
144
145
|
* @title: 创建一个服务商品
|
|
145
146
|
* @description:
|
|
@@ -53,6 +53,7 @@ __export(utils_exports, {
|
|
|
53
53
|
getServiceTimes: () => getServiceTimes,
|
|
54
54
|
getShopOpeningHours: () => getShopOpeningHours,
|
|
55
55
|
isNowTime: () => isNowTime,
|
|
56
|
+
isSessionProduct: () => isSessionProduct,
|
|
56
57
|
isWalkIn: () => isWalkIn,
|
|
57
58
|
request: () => request,
|
|
58
59
|
sliceDayIntoFiveMinutes: () => sliceDayIntoFiveMinutes
|
|
@@ -238,7 +239,7 @@ var getResourceTimeIsUsable = (item, cacheItem) => {
|
|
|
238
239
|
if (time.max_participants_limit == 0) {
|
|
239
240
|
isMaxLimitRange = true;
|
|
240
241
|
} else {
|
|
241
|
-
isMaxLimitRange =
|
|
242
|
+
isMaxLimitRange = time.order_event_count < time.max_participants_limit;
|
|
242
243
|
}
|
|
243
244
|
const timeStartDate = (0, import_dayjs.default)(time.start_date + " " + time.start_time).subtract(
|
|
244
245
|
1,
|
|
@@ -470,14 +471,14 @@ var getErrorList = (resource, cacheItem, isDay) => {
|
|
|
470
471
|
return list;
|
|
471
472
|
};
|
|
472
473
|
var formatResource = (resourceItem, cacheItem, formatLabel) => {
|
|
473
|
-
var _a, _b, _c, _d;
|
|
474
|
+
var _a, _b, _c, _d, _e;
|
|
474
475
|
let _resourceItem = { ...resourceItem };
|
|
475
476
|
_resourceItem = formatTimes(_resourceItem, cacheItem);
|
|
476
477
|
_resourceItem = formatResourceProducts(_resourceItem, cacheItem);
|
|
477
478
|
_resourceItem.labelText = _resourceItem.room_name || _resourceItem.name;
|
|
478
|
-
let usable = _resourceItem._extend.usableTime && _resourceItem._extend.usableProduct;
|
|
479
|
-
if (((
|
|
480
|
-
usable = ((
|
|
479
|
+
let usable = _resourceItem._extend.usableTime && ((_a = _resourceItem._extend.usableTime._extend) == null ? void 0 : _a.isMaxLimitRange) && _resourceItem._extend.usableProduct;
|
|
480
|
+
if (((_b = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _b.sub_type) === "days") {
|
|
481
|
+
usable = ((_d = (_c = _resourceItem._extend) == null ? void 0 : _c.usableTime) == null ? void 0 : _d.isUsable) && ((_e = _resourceItem._extend) == null ? void 0 : _e.usableProduct);
|
|
481
482
|
}
|
|
482
483
|
_resourceItem.usable = usable;
|
|
483
484
|
if (formatLabel) {
|
|
@@ -506,19 +507,32 @@ var getDays = (cacheItem, type) => {
|
|
|
506
507
|
let endDate = (0, import_dayjs.default)((_b = cacheItem._extend) == null ? void 0 : _b.end_date);
|
|
507
508
|
return endDate.diff(startDate, type);
|
|
508
509
|
};
|
|
510
|
+
var isSessionProduct = (cacheItem) => {
|
|
511
|
+
return ["session_product", "session_ticket"].includes(cacheItem.extension_type);
|
|
512
|
+
};
|
|
509
513
|
var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
510
|
-
var _a;
|
|
511
514
|
if (!cacheItem.new && cacheItem._extend.endDate) {
|
|
512
515
|
return cacheItem._extend;
|
|
513
516
|
}
|
|
517
|
+
const isSession = isSessionProduct(cacheItem);
|
|
514
518
|
const isDay = (0, import_utils2.isDayBooking)(state);
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
519
|
+
const setDuration = () => {
|
|
520
|
+
var _a;
|
|
521
|
+
if (isDay) {
|
|
522
|
+
return getDays(cacheItem, "days");
|
|
523
|
+
}
|
|
524
|
+
if (isSession) {
|
|
525
|
+
return getDays(cacheItem, "minutes");
|
|
526
|
+
}
|
|
527
|
+
return findNextDuration(
|
|
518
528
|
cacheItem.duration,
|
|
519
529
|
timeObj.durationSlicesBasedOnTime,
|
|
520
530
|
(_a = cacheItem == null ? void 0 : cacheItem.duration) == null ? void 0 : _a.value
|
|
521
|
-
)
|
|
531
|
+
);
|
|
532
|
+
};
|
|
533
|
+
let lastServer = isDay ? false : getLastServer(state.service.value);
|
|
534
|
+
let _extend = {
|
|
535
|
+
duration: setDuration()
|
|
522
536
|
};
|
|
523
537
|
if (lastServer) {
|
|
524
538
|
_extend.resource = lastServer._extend.resource;
|
|
@@ -663,6 +677,7 @@ var getIsEdit = (state) => {
|
|
|
663
677
|
getServiceTimes,
|
|
664
678
|
getShopOpeningHours,
|
|
665
679
|
isNowTime,
|
|
680
|
+
isSessionProduct,
|
|
666
681
|
isWalkIn,
|
|
667
682
|
request,
|
|
668
683
|
sliceDayIntoFiveMinutes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PosProps } from './const';
|
|
2
3
|
/**
|
|
3
4
|
* @title: 支付金额信息配置页
|
|
@@ -8,7 +9,7 @@ import { PosProps } from './const';
|
|
|
8
9
|
*/
|
|
9
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
11
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
12
13
|
[keys: string]: unknown;
|
|
13
14
|
} | undefined, other?: any) => void) | undefined;
|
|
14
15
|
onClose: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PosProps, RouteType } from './const';
|
|
2
3
|
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
3
4
|
action: RouteType;
|