@pisell/private-materials 3.3.10 → 3.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +3 -3
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +42 -242
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +13 -5
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/index.js +5 -2
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
- package/es/components/appointmentBooking/components/Cart/utils.js +4 -308
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +145 -4
- package/es/components/appointmentBooking/components/Content/index.js +35 -28
- package/es/components/appointmentBooking/components/Date/index.d.ts +3 -2
- package/es/components/appointmentBooking/components/Date/index.js +67 -34
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Footer/index.js +12 -10
- package/es/components/appointmentBooking/components/Form/index.js +40 -13
- package/es/components/appointmentBooking/components/Guest/index.d.ts +2 -1
- package/es/components/appointmentBooking/components/Guest/index.js +10 -3
- package/es/components/appointmentBooking/components/Header/index.js +31 -23
- package/es/components/appointmentBooking/components/Resource/index.d.ts +5 -1
- package/es/components/appointmentBooking/components/Resource/index.js +138 -47
- package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/es/components/appointmentBooking/components/Resource/utils.js +16 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +2 -1
- package/es/components/appointmentBooking/components/Services/index.js +17 -72
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +17 -4
- package/es/components/appointmentBooking/context.js +13 -2
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +12 -9
- package/es/components/appointmentBooking/hooks.d.ts +2 -1
- package/es/components/appointmentBooking/hooks.js +71 -22
- package/es/components/appointmentBooking/utils.d.ts +23 -60
- package/es/components/appointmentBooking/utils.js +157 -175
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +4 -2
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +10 -123
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/index.js +2 -2
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
- package/lib/components/appointmentBooking/components/Cart/utils.js +6 -184
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +65 -3
- package/lib/components/appointmentBooking/components/Content/index.js +36 -22
- package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -2
- package/lib/components/appointmentBooking/components/Date/index.js +13 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Footer/index.js +16 -12
- package/lib/components/appointmentBooking/components/Form/index.js +17 -11
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +2 -1
- package/lib/components/appointmentBooking/components/Guest/index.js +7 -2
- package/lib/components/appointmentBooking/components/Header/index.js +10 -10
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +5 -1
- package/lib/components/appointmentBooking/components/Resource/index.js +83 -30
- package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/lib/components/appointmentBooking/components/Resource/utils.js +36 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +2 -1
- package/lib/components/appointmentBooking/components/Services/index.js +7 -6
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +14 -3
- package/lib/components/appointmentBooking/context.js +7 -2
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +3 -1
- package/lib/components/appointmentBooking/hooks.d.ts +2 -1
- package/lib/components/appointmentBooking/hooks.js +29 -8
- package/lib/components/appointmentBooking/utils.d.ts +23 -60
- package/lib/components/appointmentBooking/utils.js +84 -82
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +4 -2
- package/package.json +3 -3
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -3
- package/es/businessModel/index.d.ts +0 -0
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/serve.d.ts +0 -2
- package/es/components/Sales/Cart/types.d.ts +0 -19
- package/es/components/Sales/Checkout/index.d.ts +0 -33
- package/es/components/Sales/Checkout/serve.d.ts +0 -2
- package/es/components/Sales/Checkout/utils.d.ts +0 -27
- package/es/components/Sales/Customer/index.d.ts +0 -24
- package/es/components/Sales/Event/Detail.d.ts +0 -27
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/Sales/Event/serve.d.ts +0 -26
- package/es/components/Sales/Holder/index.d.ts +0 -33
- package/es/components/Sales/Holder/serve.d.ts +0 -8
- package/es/components/Sales/Init/index.d.ts +0 -24
- package/es/components/Sales/Init/serve.d.ts +0 -3
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/serve.d.ts +0 -5
- package/es/components/Sales/Step/index.d.ts +0 -37
- package/es/components/Sales/Summary/index.d.ts +0 -25
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/utils.d.ts +0 -36
- package/es/components/Sales/hooks/index.d.ts +0 -1
- package/es/components/Sales/index.d.ts +0 -20
- package/es/components/Sales/utils/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -62
- package/es/components/appointmentBooking/locales.d.ts +0 -345
- package/es/components/appointmentBooking/mock.d.ts +0 -627
- package/es/components/appointmentBooking/status.d.ts +0 -21
- package/es/components/appointmentBooking/type.d.ts +0 -17
- package/es/components/booking/addons/index.d.ts +0 -17
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/footer/amount.d.ts +0 -23
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/footer/serve.d.ts +0 -3
- package/es/components/booking/components/footer/utils.d.ts +0 -30
- package/es/components/booking/forms/index.d.ts +0 -9
- package/es/components/booking/forms/serve.d.ts +0 -18
- package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/hooks/useAddHolder.d.ts +0 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/main.d.ts +0 -12
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/pet/index.d.ts +0 -14
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/addService/index.d.ts +0 -11
- package/es/components/booking/info/service/addService/utils.d.ts +0 -71
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/index.d.ts +0 -4
- package/es/components/booking/info/service/serve.d.ts +0 -11
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/es/components/booking/info/service2/Lists.d.ts +0 -2
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info/service2/utils.d.ts +0 -241
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/serve.d.ts +0 -6
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -88
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -34
- package/es/components/booking/locales.d.ts +0 -786
- package/es/components/booking/materiels/contacts/index.d.ts +0 -15
- package/es/components/booking/materiels/holder/index.d.ts +0 -6
- package/es/components/booking/model.d.ts +0 -115
- package/es/components/booking/notes/addNote/index.d.ts +0 -3
- package/es/components/booking/payments/index.d.ts +0 -9
- package/es/components/booking/utils.d.ts +0 -172
- package/es/components/eftpos/index.d.ts +0 -46
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/eventBooking/index.d.ts +0 -3
- package/es/components/eventBooking/locales.d.ts +0 -216
- package/es/components/eventBooking/mock.d.ts +0 -627
- package/es/components/eventBooking/status.d.ts +0 -21
- package/es/components/eventBooking/type.d.ts +0 -17
- package/es/components/eventBooking/utils.d.ts +0 -45
- package/es/components/index.d.ts +0 -18
- package/es/components/login/index.d.ts +0 -8
- package/es/components/login/locales.d.ts +0 -24
- package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/es/components/pay/toC/serve.d.ts +0 -34
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/es/components/productExtension/index.d.ts +0 -7
- package/es/components/productSelect/hooks/useToken.d.ts +0 -18
- package/es/components/productSelect/locales.d.ts +0 -18
- package/es/components/productSelect/mock.d.ts +0 -134
- package/es/components/productSelect/theme/token.d.ts +0 -17
- package/es/components/ruleSetting/index.d.ts +0 -9
- package/es/components/schedules/index.d.ts +0 -3
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -3
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -3
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/taxSelect/index.d.ts +0 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/data.d.ts +0 -58
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/es/components/ticketBooking/index.d.ts +0 -3
- package/es/components/ticketBooking/locales.d.ts +0 -144
- package/es/components/ticketBooking/miniRedux.d.ts +0 -22
- package/es/components/ticketBooking/serve.d.ts +0 -282
- package/es/components/ticketBooking/utils/index.d.ts +0 -14
- package/es/components/wallet/Detail/locales.d.ts +0 -96
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/index.d.ts +0 -2
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/serve.d.ts +0 -143
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/walletList/model.d.ts +0 -6
- package/es/components/walletList/serve.d.ts +0 -12
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/es/hooks/useEngineContext.d.ts +0 -10
- package/es/index.d.ts +0 -45
- package/es/utils/locales.d.ts +0 -1
- package/es/utils/tasks/index.d.ts +0 -16
- package/es/utils/tasks/type.d.ts +0 -4
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -3
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/serve.d.ts +0 -2
- package/lib/components/Sales/Cart/types.d.ts +0 -19
- package/lib/components/Sales/Checkout/index.d.ts +0 -33
- package/lib/components/Sales/Checkout/serve.d.ts +0 -2
- package/lib/components/Sales/Checkout/utils.d.ts +0 -27
- package/lib/components/Sales/Customer/index.d.ts +0 -24
- package/lib/components/Sales/Event/Detail.d.ts +0 -27
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/Sales/Event/serve.d.ts +0 -26
- package/lib/components/Sales/Holder/index.d.ts +0 -33
- package/lib/components/Sales/Holder/serve.d.ts +0 -8
- package/lib/components/Sales/Init/index.d.ts +0 -24
- package/lib/components/Sales/Init/serve.d.ts +0 -3
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/serve.d.ts +0 -5
- package/lib/components/Sales/Step/index.d.ts +0 -37
- package/lib/components/Sales/Summary/index.d.ts +0 -25
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +0 -36
- package/lib/components/Sales/hooks/index.d.ts +0 -1
- package/lib/components/Sales/index.d.ts +0 -20
- package/lib/components/Sales/utils/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -62
- package/lib/components/appointmentBooking/locales.d.ts +0 -345
- package/lib/components/appointmentBooking/mock.d.ts +0 -627
- package/lib/components/appointmentBooking/status.d.ts +0 -21
- package/lib/components/appointmentBooking/type.d.ts +0 -17
- package/lib/components/booking/addons/index.d.ts +0 -17
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/footer/amount.d.ts +0 -23
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/footer/serve.d.ts +0 -3
- package/lib/components/booking/components/footer/utils.d.ts +0 -30
- package/lib/components/booking/forms/index.d.ts +0 -9
- package/lib/components/booking/forms/serve.d.ts +0 -18
- package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/hooks/useAddHolder.d.ts +0 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/main.d.ts +0 -12
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/pet/index.d.ts +0 -14
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info/service/addService/utils.d.ts +0 -71
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/index.d.ts +0 -4
- package/lib/components/booking/info/service/serve.d.ts +0 -11
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/lib/components/booking/info/service2/Lists.d.ts +0 -2
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info/service2/utils.d.ts +0 -241
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/serve.d.ts +0 -6
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -88
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -34
- package/lib/components/booking/locales.d.ts +0 -786
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -15
- package/lib/components/booking/materiels/holder/index.d.ts +0 -6
- package/lib/components/booking/model.d.ts +0 -115
- package/lib/components/booking/notes/addNote/index.d.ts +0 -3
- package/lib/components/booking/payments/index.d.ts +0 -9
- package/lib/components/booking/utils.d.ts +0 -172
- package/lib/components/eftpos/index.d.ts +0 -46
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/eventBooking/index.d.ts +0 -3
- package/lib/components/eventBooking/locales.d.ts +0 -216
- package/lib/components/eventBooking/mock.d.ts +0 -627
- package/lib/components/eventBooking/status.d.ts +0 -21
- package/lib/components/eventBooking/type.d.ts +0 -17
- package/lib/components/eventBooking/utils.d.ts +0 -45
- package/lib/components/index.d.ts +0 -18
- package/lib/components/login/index.d.ts +0 -8
- package/lib/components/login/locales.d.ts +0 -24
- package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/lib/components/pay/toC/serve.d.ts +0 -34
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/lib/components/productExtension/index.d.ts +0 -7
- package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
- package/lib/components/productSelect/locales.d.ts +0 -18
- package/lib/components/productSelect/mock.d.ts +0 -134
- package/lib/components/productSelect/theme/token.d.ts +0 -17
- package/lib/components/ruleSetting/index.d.ts +0 -9
- package/lib/components/schedules/index.d.ts +0 -3
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -3
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/taxSelect/index.d.ts +0 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/data.d.ts +0 -58
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/lib/components/ticketBooking/index.d.ts +0 -3
- package/lib/components/ticketBooking/locales.d.ts +0 -144
- package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
- package/lib/components/ticketBooking/serve.d.ts +0 -282
- package/lib/components/ticketBooking/utils/index.d.ts +0 -14
- package/lib/components/wallet/Detail/locales.d.ts +0 -96
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/index.d.ts +0 -2
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/serve.d.ts +0 -143
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/walletList/model.d.ts +0 -6
- package/lib/components/walletList/serve.d.ts +0 -12
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/lib/hooks/useEngineContext.d.ts +0 -10
- package/lib/index.d.ts +0 -45
- package/lib/utils/locales.d.ts +0 -1
- package/lib/utils/tasks/index.d.ts +0 -16
- package/lib/utils/tasks/type.d.ts +0 -4
|
@@ -14,10 +14,12 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
16
|
import { useState, useEffect, useMemo } from 'react';
|
|
17
|
+
import { locales } from "@pisell/utils";
|
|
17
18
|
import { usePisellOS } from "../../hooks/useEngineContext";
|
|
18
19
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
19
|
-
import { sortResources, getCustomer } from "./utils";
|
|
20
|
+
import { sortResources, getCustomer, formatCartsResources, checkHasFormStep } from "./utils";
|
|
20
21
|
import { useAppointmentBookingContext } from "./context";
|
|
22
|
+
import { checkHolder } from "./components/Cart/utils";
|
|
21
23
|
export var useAppointmentBooking = function useAppointmentBooking() {
|
|
22
24
|
var pisellOS = usePisellOS();
|
|
23
25
|
return pisellOS.getModule('appointmentBooking');
|
|
@@ -114,11 +116,21 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
114
116
|
description: description
|
|
115
117
|
}, stepKey);
|
|
116
118
|
};
|
|
119
|
+
|
|
120
|
+
// 更新步骤
|
|
121
|
+
var updateStep = function updateStep(key, step) {
|
|
122
|
+
appointmentBooking.updateStep(key, {
|
|
123
|
+
index: step === null || step === void 0 ? void 0 : step.index,
|
|
124
|
+
key: key,
|
|
125
|
+
isSkip: (step === null || step === void 0 ? void 0 : step.isSkip) || false
|
|
126
|
+
});
|
|
127
|
+
};
|
|
117
128
|
return {
|
|
118
129
|
getStepIndex: getStepIndex,
|
|
119
130
|
stepList: stepList,
|
|
120
131
|
removeStep: removeStep,
|
|
121
|
-
addStep: addStep
|
|
132
|
+
addStep: addStep,
|
|
133
|
+
updateStep: updateStep
|
|
122
134
|
};
|
|
123
135
|
};
|
|
124
136
|
|
|
@@ -575,16 +587,27 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
|
|
|
575
587
|
* @Date: 2025-04-21 11:47
|
|
576
588
|
*/
|
|
577
589
|
export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
590
|
+
var _appointmentBooking$s2;
|
|
578
591
|
var _useAppointmentBookin5 = useAppointmentBookingContext(),
|
|
579
|
-
|
|
592
|
+
currentStep = _useAppointmentBookin5.currentStep,
|
|
593
|
+
setCarts = _useAppointmentBookin5.setCarts;
|
|
580
594
|
var _useAppointmentBookin6 = useAppointmentBookingResource(),
|
|
581
595
|
getResourceList = _useAppointmentBookin6.getResourceList,
|
|
582
596
|
autoSelectAllProductResources = _useAppointmentBookin6.autoSelectAllProductResources;
|
|
583
597
|
var _useAppointmentBookin7 = useAppointmentBookingSetting(),
|
|
584
598
|
isFormSubject = _useAppointmentBookin7.isFormSubject;
|
|
599
|
+
var appointmentBooking = useAppointmentBooking();
|
|
600
|
+
var stepList = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s2 = appointmentBooking.store) === null || _appointmentBooking$s2 === void 0 || (_appointmentBooking$s2 = _appointmentBooking$s2.step) === null || _appointmentBooking$s2 === void 0 || (_appointmentBooking$s2 = _appointmentBooking$s2.store) === null || _appointmentBooking$s2 === void 0 ? void 0 : _appointmentBooking$s2.stepList) || [];
|
|
601
|
+
var _useAppointmentBookin8 = useAppointmentBookingLogin(),
|
|
602
|
+
isLogin = _useAppointmentBookin8.isLogin,
|
|
603
|
+
openLoginModal = _useAppointmentBookin8.openLoginModal;
|
|
604
|
+
var _useAppointmentBookin9 = useAppointmentBookingAccount(),
|
|
605
|
+
getHolders = _useAppointmentBookin9.getHolders,
|
|
606
|
+
checkAccount = _useAppointmentBookin9.checkAccount;
|
|
607
|
+
var utils = contextUtils();
|
|
585
608
|
var checkSkipResourceStep = /*#__PURE__*/function () {
|
|
586
|
-
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
587
|
-
var accountLists, _res$errorList, _resources$, res, _getResourceList3, resources;
|
|
609
|
+
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(isSkipUpdateFormStep) {
|
|
610
|
+
var accountLists, carts, _res$errorList, _resources$, res, _getResourceList3, resources, resultCarts;
|
|
588
611
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
589
612
|
while (1) switch (_context12.prev = _context12.next) {
|
|
590
613
|
case 0:
|
|
@@ -593,41 +616,67 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
|
593
616
|
return appointmentBooking.getAccounts();
|
|
594
617
|
case 3:
|
|
595
618
|
accountLists = _context12.sent;
|
|
619
|
+
_context12.next = 6;
|
|
620
|
+
return appointmentBooking.getCart();
|
|
621
|
+
case 6:
|
|
622
|
+
carts = _context12.sent;
|
|
596
623
|
if (!((accountLists === null || accountLists === void 0 ? void 0 : accountLists.length) === 1 || isFormSubject)) {
|
|
597
|
-
_context12.next =
|
|
624
|
+
_context12.next = 20;
|
|
598
625
|
break;
|
|
599
626
|
}
|
|
600
|
-
_context12.next =
|
|
627
|
+
_context12.next = 10;
|
|
601
628
|
return autoSelectAllProductResources();
|
|
602
|
-
case
|
|
629
|
+
case 10:
|
|
603
630
|
res = _context12.sent;
|
|
604
631
|
_getResourceList3 = getResourceList(), resources = _getResourceList3.resources; // 如果分配成功,并且只有一个资源则跳过资源选择步骤,默认选中该资源
|
|
605
632
|
if (!(!(res !== null && res !== void 0 && (_res$errorList = res.errorList) !== null && _res$errorList !== void 0 && _res$errorList.length) && (resources === null || resources === void 0 || (_resources$ = resources[0]) === null || _resources$ === void 0 || (_resources$ = _resources$.resources) === null || _resources$ === void 0 || (_resources$ = _resources$[0]) === null || _resources$ === void 0 || (_resources$ = _resources$.renderList) === null || _resources$ === void 0 ? void 0 : _resources$.length) === 1)) {
|
|
606
|
-
_context12.next =
|
|
633
|
+
_context12.next = 17;
|
|
607
634
|
break;
|
|
608
635
|
}
|
|
636
|
+
if (!isSkipUpdateFormStep) {
|
|
637
|
+
resultCarts = formatCartsResources(carts, resources); // 如果当前资源有表单,则添加表单步骤,否则删除表单步骤
|
|
638
|
+
checkHasFormStep({
|
|
639
|
+
isSkip: true,
|
|
640
|
+
openLoginModal: openLoginModal,
|
|
641
|
+
utils: utils,
|
|
642
|
+
accountLists: accountLists,
|
|
643
|
+
getHolders: getHolders,
|
|
644
|
+
checkHolder: checkHolder,
|
|
645
|
+
setCarts: setCarts,
|
|
646
|
+
checkAccount: checkAccount,
|
|
647
|
+
carts: carts,
|
|
648
|
+
isFormSubject: isFormSubject,
|
|
649
|
+
hasResourceFormId: (resultCarts === null || resultCarts === void 0 ? void 0 : resultCarts.length) > 0,
|
|
650
|
+
currentStep: currentStep,
|
|
651
|
+
stepList: stepList,
|
|
652
|
+
appointmentBooking: appointmentBooking,
|
|
653
|
+
locales: locales,
|
|
654
|
+
isLogin: isLogin
|
|
655
|
+
});
|
|
656
|
+
}
|
|
609
657
|
return _context12.abrupt("return", true);
|
|
610
|
-
case
|
|
658
|
+
case 17:
|
|
611
659
|
return _context12.abrupt("return", false);
|
|
612
|
-
case
|
|
613
|
-
_context12.next =
|
|
660
|
+
case 18:
|
|
661
|
+
_context12.next = 21;
|
|
614
662
|
break;
|
|
615
|
-
case
|
|
663
|
+
case 20:
|
|
616
664
|
return _context12.abrupt("return", false);
|
|
617
|
-
case
|
|
618
|
-
_context12.next =
|
|
665
|
+
case 21:
|
|
666
|
+
_context12.next = 27;
|
|
619
667
|
break;
|
|
620
|
-
case
|
|
621
|
-
_context12.prev =
|
|
668
|
+
case 23:
|
|
669
|
+
_context12.prev = 23;
|
|
622
670
|
_context12.t0 = _context12["catch"](0);
|
|
671
|
+
console.log(_context12.t0, 'checkSkipResourceStep33');
|
|
623
672
|
return _context12.abrupt("return", false);
|
|
624
|
-
case
|
|
673
|
+
case 27:
|
|
625
674
|
case "end":
|
|
626
675
|
return _context12.stop();
|
|
627
676
|
}
|
|
628
|
-
}, _callee12, null, [[0,
|
|
677
|
+
}, _callee12, null, [[0, 23]]);
|
|
629
678
|
}));
|
|
630
|
-
return function checkSkipResourceStep() {
|
|
679
|
+
return function checkSkipResourceStep(_x8) {
|
|
631
680
|
return _ref20.apply(this, arguments);
|
|
632
681
|
};
|
|
633
682
|
}();
|
|
@@ -646,8 +695,8 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
|
646
695
|
export var useAppointmentBookingSetting = function useAppointmentBookingSetting() {
|
|
647
696
|
var _appointmentBooking$o3;
|
|
648
697
|
var utils = contextUtils();
|
|
649
|
-
var
|
|
650
|
-
appointmentBooking =
|
|
698
|
+
var _useAppointmentBookin10 = useAppointmentBookingContext(),
|
|
699
|
+
appointmentBooking = _useAppointmentBookin10.appointmentBooking;
|
|
651
700
|
var _ref21 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {},
|
|
652
701
|
bookingProcess = _ref21.bookingProcess,
|
|
653
702
|
bookingSubject = _ref21.bookingSubject,
|
|
@@ -1,50 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @title:
|
|
2
|
+
* @title: 格式化holder表数据
|
|
3
3
|
* @description:
|
|
4
|
-
* @param {
|
|
4
|
+
* @param {any} data
|
|
5
5
|
* @return {*}
|
|
6
6
|
* @Author: WangHan
|
|
7
|
-
* @Date: 2025-
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatBackgroundColors: (colors: string[]) => string;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 获取可用的 schedule
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {any} schedule
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: zhiwei.Wang
|
|
16
|
-
* @Date: 2024-03-05 18:05
|
|
17
|
-
*/
|
|
18
|
-
export declare const getUsableSchedules: (schedule: any) => boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @title: 获取 schedules 的所有颜色
|
|
21
|
-
* @description:
|
|
22
|
-
* @param {any} schedules
|
|
23
|
-
* @return {*}
|
|
24
|
-
* @Author: zhiwei.Wang
|
|
25
|
-
* @Date: 2024-03-05 18:02
|
|
7
|
+
* @Date: 2025-05-07 21:22
|
|
26
8
|
*/
|
|
27
|
-
export declare const
|
|
9
|
+
export declare const formatHolder: (data: any[]) => any[];
|
|
10
|
+
export declare const formatGuest: (data: any[], products: any) => any[];
|
|
28
11
|
/**
|
|
29
|
-
* @title:
|
|
12
|
+
* @title: 格式化购物车中资源上挂接的表单数据
|
|
30
13
|
* @description:
|
|
31
|
-
* @param {
|
|
14
|
+
* @param {any} data
|
|
15
|
+
* @param {any} resources
|
|
32
16
|
* @return {*}
|
|
33
17
|
* @Author: WangHan
|
|
34
|
-
* @Date: 2025-
|
|
18
|
+
* @Date: 2025-05-06 22:22
|
|
35
19
|
*/
|
|
36
|
-
export declare const
|
|
20
|
+
export declare const formatCartsResources: (carts: any[], resources: any[]) => any[];
|
|
37
21
|
/**
|
|
38
|
-
* @title:
|
|
22
|
+
* @title: 格式化购物车数据
|
|
39
23
|
* @description:
|
|
40
24
|
* @param {any} data
|
|
25
|
+
* @param {any} resources
|
|
26
|
+
* @param {any} accountLists
|
|
41
27
|
* @return {*}
|
|
42
28
|
* @Author: WangHan
|
|
43
|
-
* @Date: 2025-
|
|
29
|
+
* @Date: 2025-05-07 21:22
|
|
44
30
|
*/
|
|
45
|
-
export declare const resourceTitle: (data: any) => any;
|
|
46
|
-
export declare const formatHolder: (data: any[]) => any[];
|
|
47
|
-
export declare const formatGuest: (data: any[], products: any) => any[];
|
|
48
31
|
export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
|
|
49
32
|
/**
|
|
50
33
|
* @title: 对资源进行排序
|
|
@@ -66,25 +49,6 @@ export declare const formatCurrentUser: () => {
|
|
|
66
49
|
id: any;
|
|
67
50
|
username: string;
|
|
68
51
|
};
|
|
69
|
-
/**
|
|
70
|
-
* @title: 检查是否有空的账户
|
|
71
|
-
* @description:
|
|
72
|
-
* @param {any} carts
|
|
73
|
-
* @param {any} accounts
|
|
74
|
-
* @return {*}
|
|
75
|
-
* @Author: WangHan
|
|
76
|
-
* @Date: 2025-04-15 17:05
|
|
77
|
-
*/
|
|
78
|
-
export declare const isEmptyGuest: (carts: any[], accounts: any[]) => boolean;
|
|
79
|
-
/**
|
|
80
|
-
* @title: 购物车中是否有空的资源数据
|
|
81
|
-
* @description:
|
|
82
|
-
* @param {any} carts
|
|
83
|
-
* @return {*}
|
|
84
|
-
* @Author: WangHan
|
|
85
|
-
* @Date: 2025-04-15 21:51
|
|
86
|
-
*/
|
|
87
|
-
export declare const isEmptyCartsResourceId: (carts: any[]) => boolean;
|
|
88
52
|
/**
|
|
89
53
|
* @title: 定金合并的标点符号
|
|
90
54
|
* @description:
|
|
@@ -127,16 +91,6 @@ export declare const openForm: ({ form_id, title, callback, utils }: any) => voi
|
|
|
127
91
|
* @Date: 2025-04-26 18:13
|
|
128
92
|
*/
|
|
129
93
|
export declare function updateLists<T extends Record<string, any>>(list: T[], key: string, value: any, newData: Partial<T>): T[];
|
|
130
|
-
/**
|
|
131
|
-
* @title: 检查表单是否有未完成或错误
|
|
132
|
-
* @description:
|
|
133
|
-
* @param {any} formStatus
|
|
134
|
-
* @param {any} formLists
|
|
135
|
-
* @return {*}
|
|
136
|
-
* @Author: WangHan
|
|
137
|
-
* @Date: 2025-04-26 18:52
|
|
138
|
-
*/
|
|
139
|
-
export declare function hasFormError(formStatus: any[], formLists: any[]): boolean;
|
|
140
94
|
/**
|
|
141
95
|
* @title: 更新表单存储
|
|
142
96
|
* @description:
|
|
@@ -149,3 +103,12 @@ export declare function hasFormError(formStatus: any[], formLists: any[]): boole
|
|
|
149
103
|
*/
|
|
150
104
|
export declare const updateBookingFormStorage: (bookingForm: any, id: number, newData: any) => any;
|
|
151
105
|
export declare const Toast: (text: string) => void;
|
|
106
|
+
/**
|
|
107
|
+
* @title: 添加或移除表单步骤
|
|
108
|
+
* @description:
|
|
109
|
+
* @param {any} param1
|
|
110
|
+
* @return {*}
|
|
111
|
+
* @Author: WangHan
|
|
112
|
+
* @Date: 2025-05-06 21:51
|
|
113
|
+
*/
|
|
114
|
+
export declare const checkHasFormStep: ({ isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => true | undefined;
|