@pisell/private-materials 6.1.7 → 6.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +9 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- package/es/components/Sales/Cart/index.js +14 -4
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +187 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.d.ts +7 -1
- package/es/components/Sales/Checkout/utils.js +17 -5
- package/es/components/Sales/Customer/index.d.ts +1 -0
- package/es/components/Sales/Customer/index.js +1 -0
- package/es/components/Sales/Event/Detail.d.ts +1 -0
- package/es/components/Sales/Event/Detail.js +45 -11
- package/es/components/Sales/Event/serve.d.ts +10 -0
- package/es/components/Sales/Event/serve.js +25 -0
- package/es/components/Sales/Summary/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +16 -1
- package/es/components/Sales/Summary/utils.js +43 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
- package/es/components/appointmentBooking/components/Content/index.js +120 -20
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Form/index.js +1 -1
- package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Form/utils.js +17 -15
- package/es/components/appointmentBooking/components/Header/index.js +2 -1
- package/es/components/appointmentBooking/components/Resource/index.js +1 -0
- package/es/components/appointmentBooking/components/Services/index.js +7 -2
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
- package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/appointmentBooking/hooks.js +28 -30
- package/es/components/booking/addons/index.js +4 -1
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/actionButtons/index.d.ts +29 -0
- package/es/components/booking/components/actionButtons/index.js +395 -0
- package/es/components/booking/components/actionButtons/index.less +148 -0
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
- package/es/components/booking/components/clearCartModal/index.js +50 -0
- package/es/components/booking/components/clearCartModal/index.less +109 -0
- package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
- package/es/components/booking/components/customiseItemModal/index.js +287 -0
- package/es/components/booking/components/customiseItemModal/index.less +593 -0
- package/es/components/booking/components/drawer/index.d.ts +19 -0
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +15 -3
- package/es/components/booking/components/footer/index.js +137 -62
- package/es/components/booking/components/footer/utils.js +52 -24
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/booking/components/reloadResourceModal/index.js +73 -0
- package/es/components/booking/components/reloadResourceModal/index.less +6 -0
- package/es/components/booking/components/tabPane/index.js +86 -5
- package/es/components/booking/components/tabPane/index.less +75 -1
- package/es/components/booking/components/voucher/index.js +21 -10
- package/es/components/booking/components/voucher/index.less +1 -1
- package/es/components/booking/dashboard/index.d.ts +1 -1
- package/es/components/booking/dashboard/index.js +10 -3
- package/es/components/booking/editBookingModal/index.js +58 -29
- package/es/components/booking/editBookingModal/serve.d.ts +1 -0
- package/es/components/booking/editBookingModal/serve.js +19 -11
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
- package/es/components/booking/hooks/useIsBooking4Shop.js +4 -3
- package/es/components/booking/hooks/useQuotation.js +17 -7
- package/es/components/booking/info/addServiceVariant/index.js +2 -2
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +15 -14
- package/es/components/booking/info/index.js +3 -4
- package/es/components/booking/info/index.less +18 -2
- package/es/components/booking/info/main.js +14 -15
- package/es/components/booking/info/service/Lists.js +5 -2
- package/es/components/booking/info/service/editService/index.js +1 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceItem/index.js +2 -2
- package/es/components/booking/info/service/serviceManager/index.js +4 -4
- package/es/components/booking/info/service2/utils.d.ts +4 -0
- package/es/components/booking/info/service2/utils.js +12 -2
- package/es/components/booking/info/utils.d.ts +1 -1
- package/es/components/booking/info/utils.js +5 -3
- package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
- package/es/components/booking/info2/cartClientCard/index.js +343 -0
- package/es/components/booking/info2/cartClientCard/index.less +6 -0
- package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/es/components/booking/info2/cartClientCard/locales.js +26 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/es/components/booking/info2/cartClientCard/types.js +1 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/cartClientCard/utils.js +7 -0
- package/es/components/booking/info2/index.js +104 -32
- package/es/components/booking/info2/service/addService/index.js +21 -8
- package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/es/components/booking/info2/service/addService/utils.js +38 -9
- package/es/components/booking/info2/service/addTimeModal/index.js +33 -9
- package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/es/components/booking/info2/service/editNormalService/index.js +67 -0
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/es/components/booking/info2/service/editService/index.js +6 -7
- package/es/components/booking/info2/service/index.js +12 -6
- package/es/components/booking/info2/service/serviceItem/index.js +2 -2
- package/es/components/booking/info2/utils.js +13 -16
- package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.js +36 -7
- package/es/components/booking/locales.d.ts +84 -0
- package/es/components/booking/locales.js +108 -3
- package/es/components/booking/materiels/duration/index.d.ts +13 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/addNote/index.d.ts +1 -1
- package/es/components/booking/notes/addNote/index.js +52 -32
- package/es/components/booking/notes/addNote/index.less +53 -0
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftposPay/const.d.ts +4 -1
- package/es/components/eftposPay/const.js +3 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/hooks.js +3 -1
- package/es/components/eftposPay/index.js +1 -1
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/const.js +82 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/hooks/index.js +2 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/index.js +197 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/linkly/service.js +81 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/pay.d.ts +1 -1
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
- package/es/components/eventBooking/index.js +14 -0
- package/es/components/eventBooking/index.less +1 -1
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +27 -3
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +44 -18
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/index.js +70 -21
- package/es/components/pay/toC/index.js +46 -14
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +3 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/TabProduct/index.js +103 -39
- package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
- package/es/components/productSelect/index.d.ts +2 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +21 -4
- package/es/components/shoppingCart/type.d.ts +1 -0
- package/es/components/subTotal/index.less +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -212
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
- package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
- package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
- package/es/components/ticketBooking/components/menuBar/index.js +50 -1
- package/es/components/ticketBooking/components/menuBar/index.less +8 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +195 -26
- package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +20 -16
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
- package/es/components/ticketBooking/index.js +22 -3
- package/es/components/ticketBooking/locales.d.ts +6 -0
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/serve.js +11 -11
- package/es/components/ticketBooking/utils/index.d.ts +39 -2
- package/es/components/ticketBooking/utils/index.js +104 -11
- package/es/components/walletList/index.js +4 -4
- package/es/hooks/useComponents.js +1 -1
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useToast.js +9 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useTranslationOriginal.js +10 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +5 -1
- package/es/plus/clientCard/index.d.ts +7 -0
- package/es/plus/clientCard/index.js +452 -0
- package/es/plus/clientCard/index.less +539 -0
- package/es/plus/clientCard/line/index.d.ts +9 -0
- package/es/plus/clientCard/line/index.js +157 -0
- package/es/plus/clientCard/line/index.less +142 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/locales.js +17 -0
- package/es/plus/clientCard/types.d.ts +126 -0
- package/es/plus/clientCard/types.js +1 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clientCard/utils.js +59 -0
- package/es/plus/clientName/index.d.ts +4 -0
- package/es/plus/clientName/index.js +18 -0
- package/es/plus/clientName/index.less +10 -0
- package/es/plus/clientName/type.d.ts +13 -0
- package/es/plus/clientName/type.js +1 -0
- package/es/plus/clientName/utils.d.ts +2 -0
- package/es/plus/clientName/utils.js +18 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
- package/es/plus/clinetSearch/Add/index.d.ts +18 -0
- package/es/plus/clinetSearch/Add/index.js +212 -0
- package/es/plus/clinetSearch/Add/index.less +30 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
- package/es/plus/clinetSearch/index.d.ts +18 -0
- package/es/plus/clinetSearch/index.js +214 -0
- package/es/plus/clinetSearch/index.less +91 -0
- package/es/plus/clinetSearch/locales.d.ts +102 -0
- package/es/plus/clinetSearch/locales.js +101 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/serve.js +31 -0
- package/es/plus/clinetSearch/types.d.ts +49 -0
- package/es/plus/clinetSearch/types.js +1 -0
- package/es/plus/noteModal/AddTempModal.d.ts +7 -0
- package/es/plus/noteModal/AddTempModal.js +64 -0
- package/es/plus/noteModal/index.d.ts +4 -0
- package/es/plus/noteModal/index.js +199 -0
- package/es/plus/noteModal/index.less +168 -0
- package/es/plus/noteModal/locales.d.ts +33 -0
- package/es/plus/noteModal/locales.js +32 -0
- package/es/plus/noteModal/types.d.ts +17 -0
- package/es/plus/noteModal/types.js +1 -0
- package/es/pro/comprehensiveSearch/camera.svg +4 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
- package/es/pro/comprehensiveSearch/index.d.ts +9 -0
- package/es/pro/comprehensiveSearch/index.js +342 -0
- package/es/pro/comprehensiveSearch/index.less +323 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/es/pro/comprehensiveSearch/locales.js +17 -0
- package/es/pro/comprehensiveSearch/types.d.ts +31 -0
- package/es/pro/comprehensiveSearch/types.js +1 -0
- package/es/pro/numberKeyboard/index.d.ts +28 -0
- package/es/pro/numberKeyboard/index.js +155 -0
- package/es/pro/numberKeyboard/index.less +25 -0
- package/es/pro/numberKeyboard/locales.d.ts +12 -0
- package/es/pro/numberKeyboard/locales.js +11 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellNumberSelector/index.d.ts +26 -0
- package/es/pro/pisellNumberSelector/index.js +231 -0
- package/es/pro/pisellNumberSelector/index.less +193 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/index.js +211 -0
- package/es/pro/pisellPhoneKeyboard/index.less +157 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
- package/es/pro/pisellPriceRadio/index.d.ts +26 -0
- package/es/pro/pisellPriceRadio/index.js +113 -0
- package/es/pro/pisellPriceRadio/index.less +158 -0
- package/es/pro/skuDetailModal/index.d.ts +5 -0
- package/es/pro/skuDetailModal/index.js +352 -0
- package/es/pro/skuDetailModal/index.less +236 -0
- package/es/pro/skuDetailModal/locales.d.ts +48 -0
- package/es/pro/skuDetailModal/locales.js +47 -0
- package/es/pro/skuDetailModal/types.d.ts +347 -0
- package/es/pro/skuDetailModal/types.js +1 -0
- package/lib/components/Sales/Cart/index.js +10 -4
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +129 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.d.ts +7 -1
- package/lib/components/Sales/Checkout/utils.js +7 -2
- package/lib/components/Sales/Customer/index.d.ts +1 -0
- package/lib/components/Sales/Customer/index.js +1 -0
- package/lib/components/Sales/Event/Detail.d.ts +1 -0
- package/lib/components/Sales/Event/Detail.js +37 -12
- package/lib/components/Sales/Event/serve.d.ts +10 -0
- package/lib/components/Sales/Event/serve.js +7 -0
- package/lib/components/Sales/Summary/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +16 -1
- package/lib/components/Sales/Summary/utils.js +30 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
- package/lib/components/appointmentBooking/components/Content/index.js +55 -8
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Form/index.js +6 -1
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
- package/lib/components/appointmentBooking/components/Header/index.js +1 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
- package/lib/components/appointmentBooking/components/Services/index.js +6 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
- package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/appointmentBooking/hooks.js +5 -16
- package/lib/components/booking/addons/index.js +4 -1
- package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
- package/lib/components/booking/components/actionButtons/index.js +325 -0
- package/lib/components/booking/components/actionButtons/index.less +148 -0
- package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
- package/lib/components/booking/components/clearCartModal/index.js +80 -0
- package/lib/components/booking/components/clearCartModal/index.less +109 -0
- package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
- package/lib/components/booking/components/customiseItemModal/index.js +273 -0
- package/lib/components/booking/components/customiseItemModal/index.less +593 -0
- package/lib/components/booking/components/drawer/index.d.ts +19 -0
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +5 -3
- package/lib/components/booking/components/footer/index.js +115 -30
- package/lib/components/booking/components/footer/utils.js +38 -13
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
- package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
- package/lib/components/booking/components/tabPane/index.js +78 -4
- package/lib/components/booking/components/tabPane/index.less +75 -1
- package/lib/components/booking/components/voucher/index.js +18 -9
- package/lib/components/booking/components/voucher/index.less +1 -1
- package/lib/components/booking/dashboard/index.d.ts +1 -1
- package/lib/components/booking/dashboard/index.js +7 -2
- package/lib/components/booking/editBookingModal/index.js +56 -21
- package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
- package/lib/components/booking/editBookingModal/serve.js +12 -6
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.js +6 -4
- package/lib/components/booking/hooks/useQuotation.js +3 -1
- package/lib/components/booking/info/addServiceVariant/index.js +3 -2
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +14 -8
- package/lib/components/booking/info/index.js +7 -4
- package/lib/components/booking/info/index.less +18 -2
- package/lib/components/booking/info/main.js +12 -5
- package/lib/components/booking/info/service/Lists.js +6 -2
- package/lib/components/booking/info/service/editService/index.js +1 -0
- package/lib/components/booking/info/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info/service/serviceManager/index.js +3 -3
- package/lib/components/booking/info/service2/utils.d.ts +4 -0
- package/lib/components/booking/info/service2/utils.js +14 -2
- package/lib/components/booking/info/utils.d.ts +1 -1
- package/lib/components/booking/info/utils.js +6 -3
- package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
- package/lib/components/booking/info2/cartClientCard/index.js +298 -0
- package/lib/components/booking/info2/cartClientCard/index.less +6 -0
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/lib/components/booking/info2/cartClientCard/types.js +17 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
- package/lib/components/booking/info2/index.js +119 -34
- package/lib/components/booking/info2/service/addService/index.js +17 -4
- package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/lib/components/booking/info2/service/addService/utils.js +31 -10
- package/lib/components/booking/info2/service/addTimeModal/index.js +28 -10
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/lib/components/booking/info2/service/editService/index.js +5 -10
- package/lib/components/booking/info2/service/index.js +6 -6
- package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info2/utils.js +0 -15
- package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.js +28 -6
- package/lib/components/booking/locales.d.ts +84 -0
- package/lib/components/booking/locales.js +102 -3
- package/lib/components/booking/materiels/duration/index.d.ts +13 -0
- package/lib/components/booking/model.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -1
- package/lib/components/booking/notes/addNote/index.js +41 -23
- package/lib/components/booking/notes/addNote/index.less +53 -0
- package/lib/components/eftposPay/const.d.ts +4 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/hooks.js +11 -4
- package/lib/components/eftposPay/index.js +1 -1
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/const.js +102 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/index.js +208 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/linkly/service.js +55 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/pay.d.ts +1 -1
- package/lib/components/eftposPay/pay.js +13 -2
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
- package/lib/components/eventBooking/index.js +11 -0
- package/lib/components/eventBooking/index.less +1 -1
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +27 -3
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +66 -47
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +30 -2
- package/lib/components/pay/toC/index.js +29 -9
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +3 -0
- package/lib/components/productSelect/components/TabProduct/index.js +74 -37
- package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
- package/lib/components/productSelect/index.d.ts +2 -0
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +26 -7
- package/lib/components/shoppingCart/type.d.ts +1 -0
- package/lib/components/subTotal/index.less +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +53 -129
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
- package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
- package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +63 -1
- package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +227 -74
- package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +21 -8
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
- package/lib/components/ticketBooking/index.js +19 -3
- package/lib/components/ticketBooking/locales.d.ts +6 -0
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/serve.js +11 -11
- package/lib/components/ticketBooking/utils/index.d.ts +39 -2
- package/lib/components/ticketBooking/utils/index.js +71 -10
- package/lib/components/walletList/index.js +3 -3
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useToast.js +42 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useTranslationOriginal.js +42 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientCard/index.d.ts +7 -0
- package/lib/plus/clientCard/index.js +442 -0
- package/lib/plus/clientCard/index.less +539 -0
- package/lib/plus/clientCard/line/index.d.ts +9 -0
- package/lib/plus/clientCard/line/index.js +153 -0
- package/lib/plus/clientCard/line/index.less +142 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/locales.js +41 -0
- package/lib/plus/clientCard/types.d.ts +126 -0
- package/lib/plus/clientCard/types.js +17 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clientCard/utils.js +75 -0
- package/lib/plus/clientName/index.d.ts +4 -0
- package/lib/plus/clientName/index.js +53 -0
- package/lib/plus/clientName/index.less +10 -0
- package/lib/plus/clientName/type.d.ts +13 -0
- package/lib/plus/clientName/type.js +17 -0
- package/lib/plus/clientName/utils.d.ts +2 -0
- package/lib/plus/clientName/utils.js +43 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
- package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
- package/lib/plus/clinetSearch/Add/index.js +243 -0
- package/lib/plus/clinetSearch/Add/index.less +30 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
- package/lib/plus/clinetSearch/index.d.ts +18 -0
- package/lib/plus/clinetSearch/index.js +205 -0
- package/lib/plus/clinetSearch/index.less +91 -0
- package/lib/plus/clinetSearch/locales.d.ts +102 -0
- package/lib/plus/clinetSearch/locales.js +125 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/plus/clinetSearch/serve.js +33 -0
- package/lib/plus/clinetSearch/types.d.ts +49 -0
- package/lib/plus/clinetSearch/types.js +17 -0
- package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
- package/lib/plus/noteModal/AddTempModal.js +95 -0
- package/lib/plus/noteModal/index.d.ts +4 -0
- package/lib/plus/noteModal/index.js +199 -0
- package/lib/plus/noteModal/index.less +168 -0
- package/lib/plus/noteModal/locales.d.ts +33 -0
- package/lib/plus/noteModal/locales.js +56 -0
- package/lib/plus/noteModal/types.d.ts +17 -0
- package/lib/plus/noteModal/types.js +17 -0
- package/lib/pro/comprehensiveSearch/camera.svg +4 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
- package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/index.js +259 -0
- package/lib/pro/comprehensiveSearch/index.less +323 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/lib/pro/comprehensiveSearch/locales.js +41 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
- package/lib/pro/comprehensiveSearch/types.js +17 -0
- package/lib/pro/numberKeyboard/index.d.ts +28 -0
- package/lib/pro/numberKeyboard/index.js +182 -0
- package/lib/pro/numberKeyboard/index.less +25 -0
- package/lib/pro/numberKeyboard/locales.d.ts +12 -0
- package/lib/pro/numberKeyboard/locales.js +35 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
- package/lib/pro/pisellNumberSelector/index.js +260 -0
- package/lib/pro/pisellNumberSelector/index.less +193 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
- package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
- package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
- package/lib/pro/pisellPriceRadio/index.js +130 -0
- package/lib/pro/pisellPriceRadio/index.less +158 -0
- package/lib/pro/skuDetailModal/index.d.ts +5 -0
- package/lib/pro/skuDetailModal/index.js +311 -0
- package/lib/pro/skuDetailModal/index.less +236 -0
- package/lib/pro/skuDetailModal/locales.d.ts +48 -0
- package/lib/pro/skuDetailModal/locales.js +71 -0
- package/lib/pro/skuDetailModal/types.d.ts +347 -0
- package/lib/pro/skuDetailModal/types.js +17 -0
- package/lowcode/client-card/fragments/cardStyle.ts +63 -0
- package/lowcode/client-card/fragments/nameStyle.ts +34 -0
- package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
- package/lowcode/client-card/fragments/tagConfig.ts +88 -0
- package/lowcode/client-card/meta.ts +337 -0
- package/lowcode/comprehensive-search/meta.ts +261 -0
- package/package.json +26 -26
@@ -5,7 +5,6 @@
|
|
5
5
|
position: relative;
|
6
6
|
display: flex;
|
7
7
|
flex-direction: column;
|
8
|
-
|
9
8
|
}
|
10
9
|
|
11
10
|
.pisell-lowcode__booking-tab-pane-title {
|
@@ -30,6 +29,8 @@
|
|
30
29
|
flex: 1;
|
31
30
|
overflow: auto;
|
32
31
|
padding: 0 32px;
|
32
|
+
// 为 voucher-section 预留空间
|
33
|
+
padding-bottom: 120px;
|
33
34
|
|
34
35
|
.pisell-lowcode__booking-tab-pane-label {
|
35
36
|
font-size: 16px;
|
@@ -45,6 +46,79 @@
|
|
45
46
|
}
|
46
47
|
}
|
47
48
|
|
49
|
+
// Voucher 和功能按钮区域
|
50
|
+
.pisell-lowcode__booking-tab-pane-voucher-section {
|
51
|
+
display: flex;
|
52
|
+
flex-direction: column;
|
53
|
+
padding: 8px 16px;
|
54
|
+
position: relative;
|
55
|
+
z-index: 3;
|
56
|
+
background-color: #1b1b1b;
|
57
|
+
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
|
58
|
+
|
59
|
+
.pisell-lowcode__booking-footer-voucher-container {
|
60
|
+
background: var(--base-white, #FFF);
|
61
|
+
padding: 4px;
|
62
|
+
border-radius: 8px;
|
63
|
+
}
|
64
|
+
|
65
|
+
// ActionButtons 在 voucher-section 中的样式
|
66
|
+
.pisell-lowcode__action-buttons {
|
67
|
+
margin-top: 8px;
|
68
|
+
// 确保按钮可见
|
69
|
+
.action-button {
|
70
|
+
// 重要:确保文字颜色在深色背景下可见
|
71
|
+
color: white !important;
|
72
|
+
|
73
|
+
&:hover:not(:disabled) {
|
74
|
+
color: white !important;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
// 订单备注区域
|
81
|
+
.pisell-lowcode__booking-tab-pane-notes-section {
|
82
|
+
background-color: #1b1b1b;
|
83
|
+
position: relative;
|
84
|
+
z-index: 3;
|
85
|
+
|
86
|
+
.pisell-lowcode__booking-notes {
|
87
|
+
background: var(--base-white, #FFF);
|
88
|
+
padding: 12px;
|
89
|
+
width: 100%;
|
90
|
+
|
91
|
+
.pisell-lowcode__booking-notes-label {
|
92
|
+
font-weight: 500;
|
93
|
+
color: #333;
|
94
|
+
margin-bottom: 8px;
|
95
|
+
}
|
96
|
+
|
97
|
+
.pisell-lowcode__booking-notes-input {
|
98
|
+
.pisell-lowcode-input {
|
99
|
+
height: 44px !important;
|
100
|
+
min-height: 44px !important;
|
101
|
+
border-radius: 6px;
|
102
|
+
font-size: 16px;
|
103
|
+
line-height: 36px;
|
104
|
+
}
|
105
|
+
|
106
|
+
// 备用选择器,以防万一
|
107
|
+
textarea.pisell-lowcode-input {
|
108
|
+
height: 44px !important;
|
109
|
+
min-height: 44px !important;
|
110
|
+
border-radius: 6px;
|
111
|
+
resize: none;
|
112
|
+
}
|
113
|
+
|
114
|
+
// 去掉外层包装容器的边框
|
115
|
+
.pisell-lowcode-input-textarea-affix-wrapper {
|
116
|
+
border-width: 1px;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
48
122
|
.pisell-lowcode__booking-tab-pane-footer {
|
49
123
|
position: sticky;
|
50
124
|
bottom: 0;
|
@@ -41,8 +41,9 @@ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContex
|
|
41
41
|
var import_materials = require("@pisell/materials");
|
42
42
|
var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
|
43
43
|
var import_index = require("./index.less");
|
44
|
-
var import_utils2 = require("./utils");
|
45
44
|
var import_ahooks = require("ahooks");
|
45
|
+
var import_utils2 = require("./utils");
|
46
|
+
var import_pisellos = require("../../../ticketBooking/hooks/pisellos");
|
46
47
|
var ShopDiscountHooks = {
|
47
48
|
onInited: "shopDiscount:onInited",
|
48
49
|
onDestroy: "shopDiscount:onDestroy",
|
@@ -67,6 +68,18 @@ var VoucherCard = (props) => {
|
|
67
68
|
const isBooking4Shop = (0, import_useIsBooking4Shop.useIsBooking4Shop)(state);
|
68
69
|
const shopDiscount = pisellos.getModule("shopDiscount");
|
69
70
|
services = state.service;
|
71
|
+
const changeCustomerToGlobalState = (0, import_ahooks.useMemoizedFn)((value) => {
|
72
|
+
dispatch({
|
73
|
+
type: "setClient",
|
74
|
+
payload: {
|
75
|
+
value,
|
76
|
+
edit: true
|
77
|
+
}
|
78
|
+
});
|
79
|
+
});
|
80
|
+
const { selectCustomer } = (0, import_pisellos.useCustomer)({
|
81
|
+
changeCustomerToGlobalState
|
82
|
+
});
|
70
83
|
(0, import_ahooks.useDebounceEffect)(
|
71
84
|
() => {
|
72
85
|
if (isBooking4Shop) {
|
@@ -96,7 +109,8 @@ var VoucherCard = (props) => {
|
|
96
109
|
price: value.price,
|
97
110
|
total: (_a3 = value == null ? void 0 : value._extend) == null ? void 0 : _a3.total,
|
98
111
|
discount_list: value.discount_list,
|
99
|
-
origin_total: (_b2 = value == null ? void 0 : value._extend) == null ? void 0 : _b2.origin_total
|
112
|
+
origin_total: (_b2 = value == null ? void 0 : value._extend) == null ? void 0 : _b2.origin_total,
|
113
|
+
quantity: value._extend.quantity
|
100
114
|
};
|
101
115
|
});
|
102
116
|
return val;
|
@@ -158,12 +172,7 @@ var VoucherCard = (props) => {
|
|
158
172
|
(0, import_react.useEffect)(() => {
|
159
173
|
if (!isBooking4Shop) return;
|
160
174
|
const onScanCustomerChange = (customer) => {
|
161
|
-
|
162
|
-
type: "setClient",
|
163
|
-
payload: {
|
164
|
-
value: customer
|
165
|
-
}
|
166
|
-
});
|
175
|
+
selectCustomer(customer);
|
167
176
|
};
|
168
177
|
const onDiscountListChange = (discount) => {
|
169
178
|
setDisCountList(discount);
|
@@ -274,8 +283,8 @@ var VoucherCard = (props) => {
|
|
274
283
|
import_materials.PisellGoodPassCard,
|
275
284
|
{
|
276
285
|
style: { width: "100%" },
|
277
|
-
mixedSort,
|
278
286
|
dataSource: ((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length) ? availableData : [],
|
287
|
+
mixedSort,
|
279
288
|
onChange: (val) => {
|
280
289
|
const shopDiscount2 = pisellos.getModule("shopDiscount");
|
281
290
|
const detail = shopDiscount2.setDiscountSelected({
|
@@ -16,5 +16,5 @@ export interface BookingDashboardProps extends React.HTMLAttributes<HTMLDivEleme
|
|
16
16
|
departed: string | number;
|
17
17
|
}, dataList: string[]) => void;
|
18
18
|
}
|
19
|
-
declare const BookingDashboard:
|
19
|
+
declare const BookingDashboard: React.ForwardRefExoticComponent<BookingDashboardProps & React.RefAttributes<unknown>>;
|
20
20
|
export default BookingDashboard;
|
@@ -57,7 +57,7 @@ var formatCapacityToChildrenData = (data) => {
|
|
57
57
|
return Object.values(map).filter((item) => !!item.value).sort((a, b) => b.label.localeCompare(a.label));
|
58
58
|
};
|
59
59
|
import_utils.locales.init(import_locales.default, (0, import_locales2.getLocale)());
|
60
|
-
var BookingDashboard = (props) => {
|
60
|
+
var BookingDashboard = (0, import_react.forwardRef)((props, ref) => {
|
61
61
|
const {
|
62
62
|
otherParams = {},
|
63
63
|
backgroundColors,
|
@@ -267,6 +267,11 @@ var BookingDashboard = (props) => {
|
|
267
267
|
clearInterval(timer);
|
268
268
|
};
|
269
269
|
}, [JSON.stringify(otherParams), refreshKey]);
|
270
|
+
(0, import_react.useImperativeHandle)(ref, () => ({
|
271
|
+
refresh: () => {
|
272
|
+
getData();
|
273
|
+
}
|
274
|
+
}));
|
270
275
|
return /* @__PURE__ */ import_react.default.createElement(
|
271
276
|
import_materials.PisellStatisticList,
|
272
277
|
{
|
@@ -277,5 +282,5 @@ var BookingDashboard = (props) => {
|
|
277
282
|
valueColor
|
278
283
|
}
|
279
284
|
);
|
280
|
-
};
|
285
|
+
});
|
281
286
|
var dashboard_default = BookingDashboard;
|
@@ -66,50 +66,62 @@ var EditBookingModal = (props, ref) => {
|
|
66
66
|
};
|
67
67
|
});
|
68
68
|
const getInitData = async (params2) => {
|
69
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
69
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
70
70
|
let mockProps = params2;
|
71
71
|
const _data = await (0, import_serve2.init)(mockProps);
|
72
72
|
setData(_data);
|
73
73
|
let _initResourceVal = _data.childrenBooking._extend.resource;
|
74
|
-
const
|
75
|
-
|
74
|
+
const fromResourceFormId = (_a = _data.fromResource) == null ? void 0 : _a.form_id;
|
75
|
+
const toResourceFormId = (_b = _data.toResource) == null ? void 0 : _b.form_id;
|
76
|
+
const _form_id = toResourceFormId || fromResourceFormId;
|
77
|
+
if (params2.fromResourceId !== params2.toResourceId && !!_form_id) {
|
76
78
|
const { list, maps } = (0, import_utils3.formatResources)({
|
77
79
|
cacheItem: _data.childrenBooking,
|
78
80
|
resourcesOrigin: _data.resourcesOrigin
|
79
81
|
});
|
80
|
-
const currentForm = maps[
|
81
|
-
const relation_id = (
|
82
|
-
if (currentForm && relation_id) {
|
82
|
+
const currentForm = maps[_form_id];
|
83
|
+
const relation_id = (_c = _data.toResource) == null ? void 0 : _c.id;
|
84
|
+
if (currentForm && (relation_id || relation_id === 0)) {
|
83
85
|
let _targetResource = {
|
84
|
-
relation_type: ((
|
85
|
-
form_id:
|
86
|
+
relation_type: ((_e = (_d = currentForm.renderListMaps[relation_id]) == null ? void 0 : _d.usable) == null ? void 0 : _e.relation_type) || "form",
|
87
|
+
form_id: _form_id,
|
86
88
|
relation_id,
|
87
89
|
like_status: "common",
|
88
|
-
children: (
|
90
|
+
children: (_g = (_f = currentForm.renderListMaps) == null ? void 0 : _f[relation_id]) == null ? void 0 : _g.children,
|
89
91
|
metadata: {
|
90
|
-
...(
|
92
|
+
...(_i = (_h = currentForm.renderListMaps) == null ? void 0 : _h[relation_id]) == null ? void 0 : _i.metadata,
|
91
93
|
form_name: currentForm.title,
|
92
|
-
resource_name: (
|
94
|
+
resource_name: (_j = currentForm.renderListMaps[relation_id]) == null ? void 0 : _j.main_field
|
93
95
|
}
|
94
96
|
};
|
95
|
-
if (Array.isArray(_initResourceVal[
|
96
|
-
const _cloned = [..._initResourceVal[
|
97
|
-
const _idx = _cloned.findIndex(
|
98
|
-
|
99
|
-
|
97
|
+
if (Array.isArray(_initResourceVal[_form_id])) {
|
98
|
+
const _cloned = [..._initResourceVal[_form_id]];
|
99
|
+
const _idx = _cloned.findIndex((rs) => {
|
100
|
+
var _a2;
|
101
|
+
return rs.relation_id == params2.fromResourceId || ((_a2 = rs.children) == null ? void 0 : _a2.find(
|
102
|
+
(child) => child.relation_id == params2.fromResourceId
|
103
|
+
));
|
104
|
+
});
|
100
105
|
if (_idx !== -1) {
|
101
|
-
|
106
|
+
const _sameResource = _cloned.find(
|
107
|
+
(_clonedItem) => _clonedItem.relation_id === (_targetResource == null ? void 0 : _targetResource.relation_id)
|
108
|
+
);
|
109
|
+
if (_sameResource) {
|
110
|
+
_cloned.splice(_idx, 1);
|
111
|
+
} else {
|
112
|
+
_cloned[_idx] = _targetResource;
|
113
|
+
}
|
102
114
|
} else {
|
103
115
|
_cloned.push(_targetResource);
|
104
116
|
}
|
105
117
|
_initResourceVal = {
|
106
118
|
..._initResourceVal,
|
107
|
-
[
|
119
|
+
[_form_id]: _cloned
|
108
120
|
};
|
109
121
|
} else {
|
110
122
|
_initResourceVal = {
|
111
123
|
..._initResourceVal,
|
112
|
-
[
|
124
|
+
[_form_id]: [_targetResource]
|
113
125
|
};
|
114
126
|
}
|
115
127
|
}
|
@@ -216,8 +228,30 @@ var EditBookingModal = (props, ref) => {
|
|
216
228
|
const start_time = values.toDate[0].format("HH:mm");
|
217
229
|
const end_date = values.toDate[1].format("YYYY-MM-DD");
|
218
230
|
const end_time = values.toDate[1].format("HH:mm");
|
231
|
+
console.log("extend data", _extend);
|
232
|
+
const {
|
233
|
+
id,
|
234
|
+
relation_id,
|
235
|
+
like_status,
|
236
|
+
relation_type,
|
237
|
+
is_all,
|
238
|
+
schedule_id,
|
239
|
+
sub_type,
|
240
|
+
select_date,
|
241
|
+
number,
|
242
|
+
metadata
|
243
|
+
} = _extend;
|
219
244
|
await (0, import_serve.updateChildBooking)(order_id, {
|
220
|
-
|
245
|
+
id,
|
246
|
+
relation_id,
|
247
|
+
like_status,
|
248
|
+
relation_type,
|
249
|
+
is_all,
|
250
|
+
schedule_id,
|
251
|
+
sub_type,
|
252
|
+
select_date,
|
253
|
+
number,
|
254
|
+
metadata,
|
221
255
|
resources: Object.values(values.resource).reduce(
|
222
256
|
(pre, cur) => {
|
223
257
|
const newList = (0, import_utils4.checkResourcesFormat)(cur, cacheItem);
|
@@ -232,7 +266,7 @@ var EditBookingModal = (props, ref) => {
|
|
232
266
|
end_time,
|
233
267
|
duration: values.toDate[1].diff(values.toDate[0], "minutes")
|
234
268
|
});
|
235
|
-
|
269
|
+
initState();
|
236
270
|
props == null ? void 0 : props.onOk();
|
237
271
|
} catch (error) {
|
238
272
|
console.error(error);
|
@@ -352,6 +386,7 @@ var EditBookingModal = (props, ref) => {
|
|
352
386
|
onClick: onOk,
|
353
387
|
block: true,
|
354
388
|
size: "large",
|
389
|
+
disabled: !data,
|
355
390
|
loading: updating,
|
356
391
|
style: { borderRadius: 20 }
|
357
392
|
},
|
@@ -94,6 +94,7 @@ var updateResourceErrors = (resourceMaps, cacheItem) => {
|
|
94
94
|
}
|
95
95
|
};
|
96
96
|
var init = async (params) => {
|
97
|
+
var _a;
|
97
98
|
const { toStartDate, toEndDate, event, fromResourceId, toResourceId } = params;
|
98
99
|
let bookingOrigin = await _getBookingDetail(event.order.id);
|
99
100
|
let booking = (0, import_ticketBooking._formatBookingDetail)(bookingOrigin, {});
|
@@ -102,15 +103,18 @@ var init = async (params) => {
|
|
102
103
|
});
|
103
104
|
let childrenBooking = getChildrenBookingById(booking.service.value, event.id);
|
104
105
|
console.log("childrenBooking", childrenBooking);
|
106
|
+
const fromResource = resources.listMap[fromResourceId];
|
107
|
+
const toResource = resources.listMap[toResourceId];
|
105
108
|
const extraParams = {
|
106
109
|
extraResources: []
|
107
110
|
};
|
108
|
-
const
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
111
|
+
const _eventResources = (_a = childrenBooking._extend) == null ? void 0 : _a.event_resources;
|
112
|
+
if (Array.isArray(_eventResources)) {
|
113
|
+
_eventResources.forEach((item) => {
|
114
|
+
extraParams.extraResources.push({
|
115
|
+
id: item.relation_id,
|
116
|
+
form_id: item.form_id
|
117
|
+
});
|
114
118
|
});
|
115
119
|
}
|
116
120
|
if (toResource) {
|
@@ -138,6 +142,8 @@ var init = async (params) => {
|
|
138
142
|
},
|
139
143
|
// 总资源列表
|
140
144
|
resourcesOrigin,
|
145
|
+
// 源资源
|
146
|
+
fromResource,
|
141
147
|
// 目标资源
|
142
148
|
toResource
|
143
149
|
};
|
@@ -1 +1 @@
|
|
1
|
-
export declare const useIsBooking4Shop: (state: any) =>
|
1
|
+
export declare const useIsBooking4Shop: (state: any) => any;
|
@@ -36,14 +36,16 @@ var import_react = require("react");
|
|
36
36
|
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
37
37
|
var import_utils = require("../info/utils");
|
38
38
|
var useIsBooking4Shop = (state) => {
|
39
|
+
var _a;
|
39
40
|
const context = (0, import_useEngineContext.default)();
|
40
41
|
return (0, import_react.useMemo)(() => {
|
41
|
-
var
|
42
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
|
42
43
|
return (0, import_utils.isBooking4Shop)(
|
43
|
-
((_c = (_b = (
|
44
|
-
state.renderType
|
44
|
+
((_c = (_b = (_a2 = context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b.getData) == null ? void 0 : _c.call(_b, "shop_id")) || ((_h = (_g = (_f = (_e = (_d = context.appHelper.utils.store) == null ? void 0 : _d.getState) == null ? void 0 : _e.call(_d)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id),
|
45
|
+
state.renderType,
|
46
|
+
(_i = context.appHelper.utils) == null ? void 0 : _i.businessUtils
|
45
47
|
);
|
46
|
-
}, [state.renderType]);
|
48
|
+
}, [state.renderType, (_a = context.appHelper.utils) == null ? void 0 : _a.businessUtils]);
|
47
49
|
};
|
48
50
|
// Annotate the CommonJS export names for ESM import in node:
|
49
51
|
0 && (module.exports = {
|
@@ -145,8 +145,10 @@ var useQuotation = (state, dispatch) => {
|
|
145
145
|
cartValueRef.current = state.service.value;
|
146
146
|
const getCartQuotation = async (params) => {
|
147
147
|
if (!cartValueRef.current.length) return;
|
148
|
+
const ids = cartValueRef.current.filter((item) => !item.isCustomItem).map((item) => item.product_id);
|
149
|
+
if (!ids.length) return;
|
148
150
|
const data = await (0, import_serve.getProductPrice)({
|
149
|
-
ids
|
151
|
+
ids,
|
150
152
|
schedule_date: params == null ? void 0 : params.schedule_date,
|
151
153
|
customer_id: params == null ? void 0 : params.customer_id
|
152
154
|
});
|
@@ -38,7 +38,7 @@ var import_addService2 = __toESM(require("../../info2/service/addService"));
|
|
38
38
|
var import_utils = require("../utils");
|
39
39
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
40
40
|
var AddServiceVariant = (props) => {
|
41
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
41
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
42
42
|
const { globalState, setGlobalState } = props;
|
43
43
|
const context = (0, import_useEngineContext.default)();
|
44
44
|
const stateRef = (0, import_react.useRef)(globalState);
|
@@ -58,7 +58,8 @@ var AddServiceVariant = (props) => {
|
|
58
58
|
let Cpt = import_addService.default;
|
59
59
|
if ((0, import_utils.isBooking4Shop)(
|
60
60
|
((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getData) == null ? void 0 : _c.call(_b, "shop_id")) || ((_h = (_g = (_f = (_e = (_d = context.appHelper.utils.store) == null ? void 0 : _d.getState) == null ? void 0 : _e.call(_d)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id),
|
61
|
-
(_i = props == null ? void 0 : props.globalState) == null ? void 0 : _i.renderType
|
61
|
+
(_i = props == null ? void 0 : props.globalState) == null ? void 0 : _i.renderType,
|
62
|
+
(_j = context.appHelper.utils) == null ? void 0 : _j.businessUtils
|
62
63
|
)) {
|
63
64
|
Cpt = import_addService2.default;
|
64
65
|
}
|
@@ -5,5 +5,6 @@ declare const useInfoHolder: (state: any, dispatch: any) => {
|
|
5
5
|
dispatchService: (type: string, payload: any) => void;
|
6
6
|
handleAction: (dataSource: any) => void;
|
7
7
|
showAddTimeModal: boolean;
|
8
|
+
editNormalServiceRef: import("react").MutableRefObject<any>;
|
8
9
|
};
|
9
10
|
export default useInfoHolder;
|
@@ -38,9 +38,11 @@ var import_useHolderConfig = __toESM(require("./useHolderConfig"));
|
|
38
38
|
var import_utils = require("../utils");
|
39
39
|
var import_useGetHolderList = __toESM(require("./useGetHolderList"));
|
40
40
|
var import_utils2 = require("../../info2/service/addService/utils");
|
41
|
+
var import_utilsByBooking = require("../../info2/utilsByBooking");
|
41
42
|
var useInfoHolder = (state, dispatch) => {
|
42
43
|
var _a, _b, _c, _d;
|
43
44
|
const detailRef = (0, import_react.useRef)();
|
45
|
+
const editNormalServiceRef = (0, import_react.useRef)(null);
|
44
46
|
const { holder, isFormSubject, appointment_subject } = (0, import_useHolderConfig.default)(state);
|
45
47
|
const getHolders = (0, import_useGetHolderList.default)(state, dispatch);
|
46
48
|
(0, import_react.useEffect)(() => {
|
@@ -55,14 +57,17 @@ var useInfoHolder = (state, dispatch) => {
|
|
55
57
|
};
|
56
58
|
}, [(_d = (_c = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _c.config) == null ? void 0 : _d.information_tab]);
|
57
59
|
const showAddTimeModal = (0, import_react.useMemo)(() => {
|
58
|
-
return (0, import_utils.isOpenAddTime)(state)
|
60
|
+
return (0, import_utils.isOpenAddTime)(state);
|
59
61
|
}, [state, appointment_card.quick_time]);
|
60
|
-
const handleEdit = (
|
61
|
-
var _a2, _b2;
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
62
|
+
const handleEdit = (cacheItem, type) => {
|
63
|
+
var _a2, _b2, _c2;
|
64
|
+
const isNoSpecAndPackage = (0, import_utilsByBooking.getIsNoSpecAndPackage)(cacheItem);
|
65
|
+
if (isNoSpecAndPackage) {
|
66
|
+
(_a2 = editNormalServiceRef.current) == null ? void 0 : _a2.init(cacheItem);
|
67
|
+
} else {
|
68
|
+
(_c2 = (_b2 = detailRef.current) == null ? void 0 : _b2.init) == null ? void 0 : _c2.call(_b2, cacheItem, false, type === "edit_product");
|
69
|
+
}
|
70
|
+
};
|
66
71
|
const dispatchService = (type, payload) => {
|
67
72
|
dispatch({
|
68
73
|
type,
|
@@ -87,7 +92,8 @@ var useInfoHolder = (state, dispatch) => {
|
|
87
92
|
handleEdit,
|
88
93
|
dispatchService,
|
89
94
|
handleAction,
|
90
|
-
showAddTimeModal
|
95
|
+
showAddTimeModal,
|
96
|
+
editNormalServiceRef
|
91
97
|
};
|
92
98
|
};
|
93
99
|
var useInfoHolder_default = useInfoHolder;
|
@@ -39,12 +39,15 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
39
39
|
var import_utils = require("./utils");
|
40
40
|
var import_antd = require("antd");
|
41
41
|
var APP = (props) => {
|
42
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
43
43
|
const context = (0, import_useEngineContext.default)();
|
44
44
|
const { globalState } = props;
|
45
|
-
const
|
46
|
-
|
47
|
-
|
45
|
+
const isBooking4 = (0, import_utils.isBooking4Shop)(
|
46
|
+
((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getData) == null ? void 0 : _c.call(_b, "shop_id")) || ((_h = (_g = (_f = (_e = (_d = context.appHelper.utils.store) == null ? void 0 : _d.getState) == null ? void 0 : _e.call(_d)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id),
|
47
|
+
globalState == null ? void 0 : globalState.renderType,
|
48
|
+
(_i = context.appHelper.utils) == null ? void 0 : _i.businessUtils
|
49
|
+
);
|
50
|
+
if (!((_n = (_m = (_l = (_k = (_j = context.appHelper.utils.store) == null ? void 0 : _j.getState) == null ? void 0 : _k.call(_j)) == null ? void 0 : _l.global) == null ? void 0 : _m.globalConfig) == null ? void 0 : _n.id)) {
|
48
51
|
return /* @__PURE__ */ import_react.default.createElement("div", { style: { padding: 16 } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, null));
|
49
52
|
}
|
50
53
|
if (isBooking4 && (!(globalState == null ? void 0 : globalState.bookingId) || (globalState == null ? void 0 : globalState.isParallelResourcesBooking))) {
|
@@ -4,6 +4,22 @@
|
|
4
4
|
.booking-info {
|
5
5
|
padding-bottom: 16px;
|
6
6
|
|
7
|
+
.booking-info-client-line {
|
8
|
+
display: flex;
|
9
|
+
flex-direction: row;
|
10
|
+
gap: 10px;
|
11
|
+
|
12
|
+
.booking-info-client-line-code {
|
13
|
+
display: flex;
|
14
|
+
align-items: center;
|
15
|
+
justify-content: center;
|
16
|
+
width: 64px;
|
17
|
+
height: 64px;
|
18
|
+
border-radius: 8px;
|
19
|
+
background: #5d3f9f;
|
20
|
+
cursor: pointer;
|
21
|
+
}
|
22
|
+
}
|
7
23
|
}
|
8
24
|
|
9
25
|
// &::before {
|
@@ -22,7 +38,7 @@
|
|
22
38
|
}
|
23
39
|
}
|
24
40
|
.create-booking-page-info-wrap-create {
|
25
|
-
background: var(--Success-50, #
|
41
|
+
background: var(--Success-50, #ecfdf3);
|
26
42
|
}
|
27
43
|
.create-booking-page-info-wrap {
|
28
44
|
position: initial !important;
|
@@ -34,4 +50,4 @@
|
|
34
50
|
font-weight: 600;
|
35
51
|
line-height: 32px;
|
36
52
|
}
|
37
|
-
}
|
53
|
+
}
|
@@ -37,7 +37,6 @@ var import_react = __toESM(require("react"));
|
|
37
37
|
var import_footer = __toESM(require("../components/footer"));
|
38
38
|
var import_tabPane = __toESM(require("../components/tabPane"));
|
39
39
|
var import_locales = __toESM(require("../locales"));
|
40
|
-
var import_addNote = __toESM(require("../notes/addNote"));
|
41
40
|
var import_client = __toESM(require("./client"));
|
42
41
|
var import_date = __toESM(require("./date"));
|
43
42
|
var import_header = __toESM(require("./header"));
|
@@ -126,7 +125,6 @@ var Info = (0, import_model.Provider)((props) => {
|
|
126
125
|
globalState == null ? void 0 : globalState.renderType
|
127
126
|
]);
|
128
127
|
const notes = (0, import_react.useMemo)(() => {
|
129
|
-
var _a2, _b2, _c2, _d2;
|
130
128
|
if (!modules.note) {
|
131
129
|
return null;
|
132
130
|
}
|
@@ -134,9 +132,15 @@ var Info = (0, import_model.Provider)((props) => {
|
|
134
132
|
return null;
|
135
133
|
}
|
136
134
|
if ((0, import_utils3.isDayBooking)(globalState)) {
|
137
|
-
return
|
135
|
+
return (
|
136
|
+
// <AddNote value={modal.state?.notes?.orderNote} onChange={addNote} />
|
137
|
+
null
|
138
|
+
);
|
138
139
|
}
|
139
|
-
return (globalState == null ? void 0 : globalState.bookingId) ? globalState.renderType === "eventBooking" || globalState.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_notes.default, null) : null :
|
140
|
+
return (globalState == null ? void 0 : globalState.bookingId) ? globalState.renderType === "eventBooking" || globalState.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_notes.default, null) : null : (
|
141
|
+
// <AddNote value={modal.state?.notes?.orderNote} onChange={addNote} />
|
142
|
+
null
|
143
|
+
);
|
140
144
|
}, [
|
141
145
|
modules.note,
|
142
146
|
globalState == null ? void 0 : globalState.bookingId,
|
@@ -162,7 +166,10 @@ var Info = (0, import_model.Provider)((props) => {
|
|
162
166
|
bodyClassName: (0, import_classnames.default)("booking-info-warp", {
|
163
167
|
["create-booking-page-info-wrap"]: isBookingCreatePage,
|
164
168
|
["create-booking-page-info-wrap-create"]: isBookingCreatePageCreateMode && !(0, import_utils3.isTerminalDayBooking)(modal.state)
|
165
|
-
})
|
169
|
+
}),
|
170
|
+
state: modal.state,
|
171
|
+
dispatch: modal.dispatch,
|
172
|
+
source: "info"
|
166
173
|
},
|
167
174
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, modules.holder && !((_i = modal.state) == null ? void 0 : _i.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
|
168
175
|
import_antd.Skeleton,
|
@@ -80,6 +80,7 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
|
|
80
80
|
}
|
81
81
|
);
|
82
82
|
const productParams = (0, import_react.useMemo)(() => {
|
83
|
+
var _a2, _b;
|
83
84
|
return {
|
84
85
|
hideAddBtn: state.isTerminalDayBookingPage || state.isBookingCreatePage,
|
85
86
|
isShowNote: (0, import_utils.isEventBooking)(state),
|
@@ -91,13 +92,15 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
|
|
91
92
|
isShowChangeHolder,
|
92
93
|
isShowChangeResource: true,
|
93
94
|
isShowAddHolderButton: true,
|
94
|
-
isShowEditProduct: !state.isBookingCreatePage
|
95
|
+
isShowEditProduct: !state.isBookingCreatePage,
|
96
|
+
productCardStyleConfig: (_b = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b.cart_settings_tab
|
95
97
|
};
|
96
98
|
}, [
|
97
99
|
state == null ? void 0 : state.bookingId,
|
98
100
|
state == null ? void 0 : state.disabledEdit,
|
99
101
|
isShowChangeHolder,
|
100
|
-
state.isBookingCreatePage
|
102
|
+
state.isBookingCreatePage,
|
103
|
+
state.bookingConfig
|
101
104
|
]);
|
102
105
|
const products = (0, import_react.useMemo)(() => {
|
103
106
|
var _a2;
|
@@ -117,6 +120,7 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
|
|
117
120
|
return /* @__PURE__ */ import_react.default.createElement(import_Provider.CartContext.Provider, { value: { state } }, /* @__PURE__ */ import_react.default.createElement(
|
118
121
|
import_shoppingCart.default,
|
119
122
|
{
|
123
|
+
scenario: state.isBookingTicket2 ? "booking2" : void 0,
|
120
124
|
isParallelResource,
|
121
125
|
onAction,
|
122
126
|
onChange: handleChange,
|