@pisell/private-materials 6.1.6 → 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 +54 -2
- 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 +80 -2
- 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
@@ -7,10 +7,14 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
7
7
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
8
8
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
10
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
11
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
12
10
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
13
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
12
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
13
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
14
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
15
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
16
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
17
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
14
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
15
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
16
20
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
@@ -18,22 +22,31 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
18
22
|
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); }
|
19
23
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
20
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
21
|
-
import React, { useEffect, useRef } from 'react';
|
25
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
22
26
|
import { locales } from '@pisell/utils';
|
23
27
|
import { message } from 'antd';
|
28
|
+
import { Iconfont } from '@pisell/materials';
|
24
29
|
import { getOrderInfoByCode, getBookingDetail, getEventBookingDetail, getBookingConfig, getServices, voidAppointment } from "../../serve";
|
25
30
|
import * as apis from "../../serve";
|
26
31
|
import dayjs from 'dayjs';
|
27
32
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
28
33
|
import { useStore } from "../../miniRedux";
|
29
34
|
import BookingInfo from "../../../../components/booking/info";
|
30
|
-
import { formatDateToStr, getNextTimeSlice, getDisabledEdit, restoreProductOtherData } from "../../utils";
|
35
|
+
import { formatDateToStr, getNextTimeSlice, getDisabledEdit, restoreProductOtherData, getIsParallelResourcesBooking, formatHolder } from "../../utils";
|
31
36
|
import AddServiceVariant from "../addServiceVariant";
|
32
37
|
import TimeBar from "../timeBar";
|
33
|
-
import "./index.less";
|
34
38
|
import { formatProducts } from "../../../booking/info/service2/utils";
|
35
39
|
import { getSumTotal } from "../../../booking/components/footer/amount";
|
36
40
|
import formatProductMessage from "../../utils/formatProductMessage";
|
41
|
+
import PisellFloatingPanel from "../bookingDataPanel/pisellFloatingPanel";
|
42
|
+
import FloatButtons from "../floatButtons";
|
43
|
+
import useScanGlobal from "../../hooks/pisellos/useScanGlobal";
|
44
|
+
import useScanGlobalHandle from "../../hooks/pisellos/useScanGlobalHandle";
|
45
|
+
import { useBookingTicket } from "../../hooks/pisellos/bookingTicket";
|
46
|
+
import "./index.less";
|
47
|
+
import { getBookingType } from "../bookingDataPanel/bookingList/utils";
|
48
|
+
import { useCustomer } from "../../hooks/pisellos";
|
49
|
+
import { useMemoizedFn } from "ahooks";
|
37
50
|
export var _formatBookingDetail = function _formatBookingDetail(data, modalState) {
|
38
51
|
var _bookings$list, _bookings$list2;
|
39
52
|
var customer_id = data.customer_id,
|
@@ -47,7 +60,9 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
47
60
|
note = data.note,
|
48
61
|
payment_status = data.payment_status,
|
49
62
|
is_other_entrance_edited = data.is_other_entrance_edited,
|
50
|
-
shop_discount = data.shop_discount
|
63
|
+
shop_discount = data.shop_discount,
|
64
|
+
_data$relation_detail = data.relation_details,
|
65
|
+
relation_details = _data$relation_detail === void 0 ? [] : _data$relation_detail;
|
51
66
|
var clientValue = {
|
52
67
|
name: ((customer === null || customer === void 0 ? void 0 : customer.display_name) || '').trim() || ((customer === null || customer === void 0 ? void 0 : customer.nickname) || '').trim() || '',
|
53
68
|
id: customer_id || (customer === null || customer === void 0 ? void 0 : customer.id) || (customer === null || customer === void 0 ? void 0 : customer.customer_id) || 1,
|
@@ -93,7 +108,10 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
93
108
|
return _objectSpread(_objectSpread({
|
94
109
|
_id: (Math.random() + '').replace(/\D/g, '').substring(0, 11)
|
95
110
|
}, _detail), {}, {
|
111
|
+
duration: (_detail === null || _detail === void 0 ? void 0 : _detail.duration) || (product === null || product === void 0 ? void 0 : product.duration),
|
112
|
+
'schedule.ids': (_detail === null || _detail === void 0 ? void 0 : _detail['schedule.ids']) || (product === null || product === void 0 ? void 0 : product['schedule.ids']),
|
96
113
|
booking_id: resetD.id,
|
114
|
+
isEditBooking: true,
|
97
115
|
id: _detail.product_id,
|
98
116
|
title: _detail.product_title,
|
99
117
|
quantity: Number(_detail.product_quantity),
|
@@ -109,6 +127,8 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
109
127
|
start_date: start_date,
|
110
128
|
endDate: end_date,
|
111
129
|
end_date: end_date,
|
130
|
+
holder_id: formatHolder(resetD),
|
131
|
+
note: _detail.note,
|
112
132
|
// 商品本身的价格
|
113
133
|
price: Number(_detail.source_product_price),
|
114
134
|
product_name: _detail.product_title,
|
@@ -131,6 +151,7 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
131
151
|
})
|
132
152
|
});
|
133
153
|
});
|
154
|
+
serviceValue = [].concat(_toConsumableArray(serviceValue), _toConsumableArray(formatProductValues(relation_details)));
|
134
155
|
var disabledEdit = getDisabledEdit(data);
|
135
156
|
var channelDisabledEdit = !!is_other_entrance_edited;
|
136
157
|
return _objectSpread(_objectSpread({}, modalState), {}, {
|
@@ -163,8 +184,40 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
163
184
|
appointment_status: bookings === null || bookings === void 0 ? void 0 : bookings.appointment_status
|
164
185
|
});
|
165
186
|
};
|
187
|
+
var formatProductValues = function formatProductValues(data) {
|
188
|
+
return data.map(function (d) {
|
189
|
+
return _objectSpread(_objectSpread({}, d), {}, {
|
190
|
+
_id: (Math.random() + '').replace(/\D/g, '').substring(0, 11),
|
191
|
+
id: d.product_id,
|
192
|
+
title: d.product_title,
|
193
|
+
quantity: d.product_quantity,
|
194
|
+
cover: d.product_cover,
|
195
|
+
price: Number(d.source_product_price),
|
196
|
+
isEditBooking: true,
|
197
|
+
_extend: {
|
198
|
+
discount_reason: d.product_discount_reason,
|
199
|
+
order_detail_id: d.order_detail_id,
|
200
|
+
discount_per: d.discount_per,
|
201
|
+
discount_type: d.discount_type,
|
202
|
+
discountway: d.discountway,
|
203
|
+
product_name: d.product_title,
|
204
|
+
total: Number(d.selling_price),
|
205
|
+
origin_total: Number(d.original_price),
|
206
|
+
payment_price: Number(d.payment_price),
|
207
|
+
price: Number(d.source_product_price),
|
208
|
+
quantity: d.product_quantity,
|
209
|
+
bundle_edit: 0,
|
210
|
+
other: restoreProductOtherData(d),
|
211
|
+
startDate: dayjs(),
|
212
|
+
endDate: dayjs(),
|
213
|
+
note: d.note
|
214
|
+
},
|
215
|
+
payment_price: Number(d.payment_price)
|
216
|
+
});
|
217
|
+
});
|
218
|
+
};
|
166
219
|
var TicketBooking = function TicketBooking() {
|
167
|
-
var _engineContext$appHel2, _state$modalState2;
|
220
|
+
var _engineContext$appHel2, _state$modalState2, _state$modalState4;
|
168
221
|
var _useStore = useStore(),
|
169
222
|
_useStore2 = _slicedToArray(_useStore, 2),
|
170
223
|
state = _useStore2[0],
|
@@ -187,6 +240,30 @@ var TicketBooking = function TicketBooking() {
|
|
187
240
|
var _listTimerRef = useRef();
|
188
241
|
var _timerRef = useRef();
|
189
242
|
var _callbackFnRef = useRef();
|
243
|
+
var _useState = useState(0),
|
244
|
+
_useState2 = _slicedToArray(_useState, 2),
|
245
|
+
activeBookingId = _useState2[0],
|
246
|
+
setActiveBookingId = _useState2[1];
|
247
|
+
var pisellFloatingPanelRef = useRef(null);
|
248
|
+
var closeRef = useRef(null);
|
249
|
+
var bookingTicket = useBookingTicket();
|
250
|
+
var _useScanGlobal = useScanGlobal(),
|
251
|
+
openScan = _useScanGlobal.openScan,
|
252
|
+
closeScan = _useScanGlobal.closeScan;
|
253
|
+
var handleScan = useScanGlobalHandle();
|
254
|
+
var changeCustomerToGlobalState = useMemoizedFn(function () {});
|
255
|
+
var _useCustomer = useCustomer({
|
256
|
+
changeCustomerToGlobalState: changeCustomerToGlobalState
|
257
|
+
}),
|
258
|
+
selectCustomer = _useCustomer.selectCustomer;
|
259
|
+
useMemo(function () {
|
260
|
+
openScan(function (data) {
|
261
|
+
handleScan(data);
|
262
|
+
});
|
263
|
+
return function () {
|
264
|
+
closeScan();
|
265
|
+
};
|
266
|
+
}, []);
|
190
267
|
useEffect(function () {
|
191
268
|
var _interaction$utils, _store$getState, _interaction$utils2, _interaction$utils3;
|
192
269
|
_persistentRef.current = storage.get("drawer-booking") === 'true' ? true : isTerminal();
|
@@ -197,7 +274,7 @@ var TicketBooking = function TicketBooking() {
|
|
197
274
|
action({
|
198
275
|
type: 'pisell1.registerPlugin',
|
199
276
|
data: {
|
200
|
-
pluginList: ['ProductDetailPlugin']
|
277
|
+
pluginList: ['ProductDetailPlugin', 'BookingPlugin3']
|
201
278
|
}
|
202
279
|
});
|
203
280
|
}
|
@@ -215,10 +292,11 @@ var TicketBooking = function TicketBooking() {
|
|
215
292
|
});
|
216
293
|
_setShopOpeningHours();
|
217
294
|
_setIntervalTime(true);
|
218
|
-
interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || _interaction$utils2.mountFunction('
|
219
|
-
|
295
|
+
interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || _interaction$utils2.mountFunction('bookingTicket', 'clearAllCart', function (type, orderId) {
|
296
|
+
console.log('bookingTicket.clearAllCart');
|
220
297
|
// 支付成功后清空状态
|
221
298
|
_initFn(function () {});
|
299
|
+
selectCustomer(null);
|
222
300
|
});
|
223
301
|
|
224
302
|
// 作废预约
|
@@ -585,7 +663,8 @@ var TicketBooking = function TicketBooking() {
|
|
585
663
|
list: state.list,
|
586
664
|
intervalSetTime: state.intervalSetTime,
|
587
665
|
createCount: state.createCount,
|
588
|
-
bookingFunctions: state.bookingFunctions
|
666
|
+
bookingFunctions: state.bookingFunctions,
|
667
|
+
isParallelResourcesBooking: state.isParallelResourcesBooking
|
589
668
|
});
|
590
669
|
|
591
670
|
// 格式化
|
@@ -690,7 +769,9 @@ var TicketBooking = function TicketBooking() {
|
|
690
769
|
eventBookingServiceParams = _ref4.eventBookingServiceParams,
|
691
770
|
_ref4$renderType = _ref4.renderType,
|
692
771
|
renderType = _ref4$renderType === void 0 ? 'booking' : _ref4$renderType,
|
693
|
-
openRebook = _ref4.openRebook
|
772
|
+
openRebook = _ref4.openRebook,
|
773
|
+
_ref4$isParallelResou = _ref4.isParallelResourcesBooking,
|
774
|
+
isParallelResourcesBooking = _ref4$isParallelResou === void 0 ? true : _ref4$isParallelResou;
|
694
775
|
setState({
|
695
776
|
isShowInfo: false
|
696
777
|
});
|
@@ -712,7 +793,7 @@ var TicketBooking = function TicketBooking() {
|
|
712
793
|
}
|
713
794
|
};
|
714
795
|
var isOpen = state.open;
|
715
|
-
setState(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, renderType === 'eventBooking' ? 'eventOpen' : 'open', true), "bookingId", bookingId || 0), "renderType", renderType), "openRebook", openRebook), "disableEventBookingEdit", eventBookingServiceParams === null || eventBookingServiceParams === void 0 ? void 0 : eventBookingServiceParams.disableEventBookingEdit), "modalState", _objectSpread(_objectSpread({}, state.modalState), {}, {
|
796
|
+
setState(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, renderType === 'eventBooking' ? 'eventOpen' : 'open', true), "bookingId", bookingId || 0), "renderType", renderType), "openRebook", openRebook), "isParallelResourcesBooking", isParallelResourcesBooking), "disableEventBookingEdit", eventBookingServiceParams === null || eventBookingServiceParams === void 0 ? void 0 : eventBookingServiceParams.disableEventBookingEdit), "modalState", _objectSpread(_objectSpread({}, state.modalState), {}, {
|
716
797
|
eventOtherParams: eventBookingServiceParams
|
717
798
|
})), "isShowInfo", !_isTerminal), "persistent", storage.get("drawer-booking") === 'true' ? true : _isTerminal), function () {
|
718
799
|
console.log(isOpen, 'isOpen');
|
@@ -807,8 +888,10 @@ var TicketBooking = function TicketBooking() {
|
|
807
888
|
list: state.list,
|
808
889
|
intervalSetTime: state.intervalSetTime,
|
809
890
|
createCount: state.createCount,
|
810
|
-
bookingFunctions: state.bookingFunctions
|
891
|
+
bookingFunctions: state.bookingFunctions,
|
892
|
+
isParallelResourcesBooking: state.isParallelResourcesBooking
|
811
893
|
})), {}, {
|
894
|
+
shop_discount: '0',
|
812
895
|
loading: false,
|
813
896
|
open: open !== null && open !== void 0 ? open : false,
|
814
897
|
eventOpen: false,
|
@@ -821,6 +904,7 @@ var TicketBooking = function TicketBooking() {
|
|
821
904
|
|
822
905
|
// 新建完成之后的回调
|
823
906
|
var _callback = function _callback(data, type) {
|
907
|
+
var _pisellFloatingPanelR;
|
824
908
|
// 结账时
|
825
909
|
if (isTerminal() && type === 'checkout') {
|
826
910
|
return;
|
@@ -849,6 +933,10 @@ var TicketBooking = function TicketBooking() {
|
|
849
933
|
if (!bookingId) {
|
850
934
|
_setIntervalTime(true);
|
851
935
|
}
|
936
|
+
if ((_pisellFloatingPanelR = pisellFloatingPanelRef.current) !== null && _pisellFloatingPanelR !== void 0 && _pisellFloatingPanelR.getIsOpen()) {
|
937
|
+
var _pisellFloatingPanelR2;
|
938
|
+
(_pisellFloatingPanelR2 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR2 === void 0 || _pisellFloatingPanelR2.refresh();
|
939
|
+
}
|
852
940
|
_initFn(cb);
|
853
941
|
};
|
854
942
|
var _refreshData = function _refreshData() {
|
@@ -863,18 +951,86 @@ var TicketBooking = function TicketBooking() {
|
|
863
951
|
modalState: _getInitState().modalState
|
864
952
|
});
|
865
953
|
};
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
954
|
+
var currentDate = useMemo(function () {
|
955
|
+
var _state$modalState3;
|
956
|
+
return (_state$modalState3 = state.modalState) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.date) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.value) === null || _state$modalState3 === void 0 ? void 0 : _state$modalState3.format('YYYY-MM-DD');
|
957
|
+
}, [(_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value]);
|
958
|
+
var floatButtons = useMemo(function () {
|
959
|
+
return [{
|
960
|
+
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
961
|
+
type: "pisell2-person"
|
962
|
+
}),
|
963
|
+
key: 'dashboard',
|
964
|
+
onClick: function onClick() {
|
965
|
+
var _pisellFloatingPanelR3;
|
966
|
+
(_pisellFloatingPanelR3 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR3 === void 0 || _pisellFloatingPanelR3.open();
|
967
|
+
}
|
968
|
+
}];
|
969
|
+
}, []);
|
970
|
+
var onMaskClick = function onMaskClick() {
|
971
|
+
setActiveBookingId(0);
|
972
|
+
// _setIntervalTime(true);
|
973
|
+
// _openModal({});
|
974
|
+
};
|
975
|
+
var handleCreateClick = function handleCreateClick() {
|
976
|
+
var _pisellFloatingPanelR4;
|
977
|
+
onMaskClick();
|
978
|
+
(_pisellFloatingPanelR4 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR4 === void 0 || _pisellFloatingPanelR4.close();
|
979
|
+
};
|
980
|
+
var handleBookingClick = function handleBookingClick(booking) {
|
981
|
+
// _setIntervalTime(false);
|
982
|
+
if (activeBookingId) {
|
983
|
+
var _closeRef$current;
|
984
|
+
onMaskClick();
|
985
|
+
(_closeRef$current = closeRef.current) === null || _closeRef$current === void 0 || _closeRef$current.call(closeRef, 'pisell2');
|
986
|
+
} else {
|
987
|
+
var _booking$order, _booking$order2;
|
988
|
+
setTimeout(function () {
|
989
|
+
setActiveBookingId(booking.order.id);
|
990
|
+
});
|
991
|
+
var time = new Date();
|
992
|
+
var close = action({
|
993
|
+
type: 'pisell1.bookingDetail',
|
994
|
+
data: {
|
995
|
+
component_type: getBookingType(booking),
|
996
|
+
booking_id: booking.order.id,
|
997
|
+
type: booking.parent_id === 0 ? 'list' : 'detail',
|
998
|
+
id: booking.id,
|
999
|
+
isParallelResourcesBooking: getIsParallelResourcesBooking(booking),
|
1000
|
+
preliminaryBookingDetail: {
|
1001
|
+
customer: booking === null || booking === void 0 || (_booking$order = booking.order) === null || _booking$order === void 0 ? void 0 : _booking$order.customer,
|
1002
|
+
id: booking.order.id,
|
1003
|
+
order_sales_channel: booking === null || booking === void 0 || (_booking$order2 = booking.order) === null || _booking$order2 === void 0 ? void 0 : _booking$order2.order_sales_channel,
|
1004
|
+
bookings: {
|
1005
|
+
booking_id: booking === null || booking === void 0 ? void 0 : booking.booking_id,
|
1006
|
+
appointment_status: booking === null || booking === void 0 ? void 0 : booking.appointment_status,
|
1007
|
+
list: [{
|
1008
|
+
start_date: booking === null || booking === void 0 ? void 0 : booking.start_date,
|
1009
|
+
start_time: booking === null || booking === void 0 ? void 0 : booking.start_time
|
1010
|
+
}]
|
1011
|
+
}
|
1012
|
+
}
|
1013
|
+
},
|
1014
|
+
callback: function callback(params) {
|
1015
|
+
var calllbackTime = new Date();
|
1016
|
+
if (calllbackTime.getTime() - time.getTime() < 500) return;
|
1017
|
+
if (params.type === 'close') {
|
1018
|
+
_clearAllValue();
|
1019
|
+
onMaskClick();
|
1020
|
+
}
|
1021
|
+
if (params.type === 'refresh') {
|
1022
|
+
var _pisellFloatingPanelR5;
|
1023
|
+
(_pisellFloatingPanelR5 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR5 === void 0 || _pisellFloatingPanelR5.refresh();
|
1024
|
+
}
|
1025
|
+
}
|
1026
|
+
});
|
1027
|
+
closeRef.current = close;
|
872
1028
|
}
|
1029
|
+
};
|
1030
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
1031
|
+
className: "ticket-booking-left-panel"
|
873
1032
|
}, /*#__PURE__*/React.createElement("div", {
|
874
|
-
|
875
|
-
flex: 1,
|
876
|
-
overflow: 'hidden'
|
877
|
-
}
|
1033
|
+
className: "ticket-booking-left-panel-content"
|
878
1034
|
}, /*#__PURE__*/React.createElement(AddServiceVariant, {
|
879
1035
|
globalState: _objectSpread(_objectSpread({}, state.modalState), {}, {
|
880
1036
|
amountSymbol: state.amountSymbol,
|
@@ -897,7 +1053,10 @@ var TicketBooking = function TicketBooking() {
|
|
897
1053
|
isBookingTicket2: true
|
898
1054
|
}),
|
899
1055
|
setGlobalState: _setModalState
|
1056
|
+
}), /*#__PURE__*/React.createElement(FloatButtons, {
|
1057
|
+
items: floatButtons
|
900
1058
|
})), /*#__PURE__*/React.createElement(TimeBar, {
|
1059
|
+
onCreateClick: handleCreateClick,
|
901
1060
|
setGlobalState: setState,
|
902
1061
|
globalState: state,
|
903
1062
|
onDateChange: function onDateChange() {
|
@@ -939,7 +1098,12 @@ var TicketBooking = function TicketBooking() {
|
|
939
1098
|
setActiveTab: _setActiveTab,
|
940
1099
|
clearAllValue: _clearAllValue,
|
941
1100
|
drawerMask: true,
|
942
|
-
isBookingTicket2: true
|
1101
|
+
isBookingTicket2: true,
|
1102
|
+
isParallelResourcesBooking: state.isParallelResourcesBooking,
|
1103
|
+
onQrCodeClick: function onQrCodeClick() {
|
1104
|
+
console.log('onQrCodeClick');
|
1105
|
+
bookingTicket === null || bookingTicket === void 0 || bookingTicket.activateCamera();
|
1106
|
+
}
|
943
1107
|
}),
|
944
1108
|
setGlobalState: _setModalState,
|
945
1109
|
setState: setState,
|
@@ -950,6 +1114,11 @@ var TicketBooking = function TicketBooking() {
|
|
950
1114
|
holder: 1,
|
951
1115
|
note: 1
|
952
1116
|
}
|
953
|
-
}))
|
1117
|
+
})), /*#__PURE__*/React.createElement(PisellFloatingPanel, {
|
1118
|
+
bookingId: activeBookingId,
|
1119
|
+
ref: pisellFloatingPanelRef,
|
1120
|
+
currentDate: currentDate,
|
1121
|
+
onBookingClick: handleBookingClick
|
1122
|
+
}));
|
954
1123
|
};
|
955
1124
|
export default TicketBooking;
|
@@ -1,10 +1,38 @@
|
|
1
1
|
.pisell-ticket-booking-wrapper {
|
2
|
+
.ticket-booking-left-panel {
|
3
|
+
flex: 1;
|
4
|
+
overflow: hidden;
|
5
|
+
display: flex;
|
6
|
+
flex-direction: column;
|
7
|
+
.ticket-booking-left-panel-content {
|
8
|
+
flex: 1;
|
9
|
+
overflow: hidden;
|
10
|
+
position: relative;
|
11
|
+
}
|
12
|
+
}
|
2
13
|
.pisell-lowcode__booking-tab-pane-footer {
|
3
14
|
padding: 16px;
|
4
15
|
}
|
5
16
|
.create-booking-page-info-wrap-create {
|
6
17
|
background-color: #1b1b1b;
|
7
18
|
.booking-info {
|
19
|
+
height: 100%;
|
20
|
+
padding-top: 10px;
|
21
|
+
display: flex;
|
22
|
+
flex-direction: column;
|
23
|
+
|
24
|
+
.pisell-lowcode__booking-service-wrap {
|
25
|
+
flex: 1;
|
26
|
+
overflow-y: auto;
|
27
|
+
/* 隐藏滚动条 */
|
28
|
+
scrollbar-width: none; /* Firefox */
|
29
|
+
-ms-overflow-style: none; /* IE and Edge */
|
30
|
+
|
31
|
+
&::-webkit-scrollbar {
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
8
36
|
.booking-info-create-new,
|
9
37
|
.pisell-lowcode__booking-field-title,
|
10
38
|
.pisell-lowcode__shopping-cart-empty,
|
@@ -7,6 +7,7 @@ interface ITimeBarProps {
|
|
7
7
|
onDateTimeChange: (date: Dayjs, timeString: string) => void;
|
8
8
|
setIntervalTime: (value: boolean) => void;
|
9
9
|
locale: string;
|
10
|
+
onCreateClick: () => void;
|
10
11
|
}
|
11
12
|
declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
|
12
13
|
export default TimeBar;
|
@@ -7,16 +7,17 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useMemo } from 'react';
|
8
8
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
|
9
9
|
import { DatePicker, SelectTime } from '@pisell/materials';
|
10
|
-
import { useMemoizedFn } from
|
10
|
+
import { useMemoizedFn } from 'ahooks';
|
11
11
|
import { Button } from 'antd';
|
12
12
|
import classNames from 'classnames';
|
13
13
|
import { locales } from '@pisell/utils';
|
14
14
|
import "./index.less";
|
15
15
|
var TimeBar = function TimeBar(props) {
|
16
|
-
var _state$
|
16
|
+
var _state$modalState6;
|
17
17
|
var state = props.globalState,
|
18
18
|
setGlobalState = props.setGlobalState,
|
19
|
-
locale = props.locale
|
19
|
+
locale = props.locale,
|
20
|
+
onCreateClick = props.onCreateClick;
|
20
21
|
var _onClickNext = useMemoizedFn(function () {
|
21
22
|
var _state$modalState, _props$onDateChange, _props$setIntervalTim;
|
22
23
|
var currentTime = (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.date) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
|
@@ -32,11 +33,8 @@ var TimeBar = function TimeBar(props) {
|
|
32
33
|
(_props$setIntervalTim2 = props.setIntervalTime) === null || _props$setIntervalTim2 === void 0 || _props$setIntervalTim2.call(props, false);
|
33
34
|
});
|
34
35
|
var _onClickToday = useMemoizedFn(function () {
|
35
|
-
var
|
36
|
-
|
37
|
-
var newTime = currentTime['subtract'](1, 'day');
|
38
|
-
(_props$onDateChange3 = props.onDateChange) === null || _props$onDateChange3 === void 0 || _props$onDateChange3.call(props, newTime, newTime.format('YYYY-MM-DD HH:mm:ss'));
|
39
|
-
(_props$setIntervalTim3 = props.setIntervalTime) === null || _props$setIntervalTim3 === void 0 || _props$setIntervalTim3.call(props, false);
|
36
|
+
var _props$setIntervalTim3;
|
37
|
+
(_props$setIntervalTim3 = props.setIntervalTime) === null || _props$setIntervalTim3 === void 0 || _props$setIntervalTim3.call(props, true);
|
40
38
|
});
|
41
39
|
var _onClickNow = useMemoizedFn(function () {
|
42
40
|
var _props$setIntervalTim4;
|
@@ -45,8 +43,8 @@ var TimeBar = function TimeBar(props) {
|
|
45
43
|
|
46
44
|
// 时间选择变更事件
|
47
45
|
var _onDateTimeChange = useMemoizedFn(function (timeString) {
|
48
|
-
var _state$
|
49
|
-
var currentTime = (_state$
|
46
|
+
var _state$modalState3, _props$onDateTimeChan, _props$setIntervalTim5;
|
47
|
+
var currentTime = (_state$modalState3 = state.modalState) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.date) === null || _state$modalState3 === void 0 ? void 0 : _state$modalState3.value;
|
50
48
|
var _timeString$split$map = timeString.split(':').map(Number),
|
51
49
|
_timeString$split$map2 = _slicedToArray(_timeString$split$map, 2),
|
52
50
|
hours = _timeString$split$map2[0],
|
@@ -59,7 +57,7 @@ var TimeBar = function TimeBar(props) {
|
|
59
57
|
(_props$setIntervalTim5 = props.setIntervalTime) === null || _props$setIntervalTim5 === void 0 || _props$setIntervalTim5.call(props, false);
|
60
58
|
});
|
61
59
|
return useMemo(function () {
|
62
|
-
var _state$
|
60
|
+
var _state$modalState4, _state$modalState5;
|
63
61
|
return /*#__PURE__*/React.createElement("div", {
|
64
62
|
className: "pisell-ticket-booking-time-bar"
|
65
63
|
}, /*#__PURE__*/React.createElement(Button, {
|
@@ -83,7 +81,7 @@ var TimeBar = function TimeBar(props) {
|
|
83
81
|
}
|
84
82
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
85
83
|
inputReadOnly: true,
|
86
|
-
value: state === null || state === void 0 || (_state$
|
84
|
+
value: state === null || state === void 0 || (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value,
|
87
85
|
format: locale === 'en' ? 'dddd, DD MMM YYYY' : 'YYYY年MM月DD日',
|
88
86
|
onChange: props === null || props === void 0 ? void 0 : props.onDateChange,
|
89
87
|
size: "large",
|
@@ -99,7 +97,7 @@ var TimeBar = function TimeBar(props) {
|
|
99
97
|
'booking-page-date-picker-select': state.isTimeChange
|
100
98
|
})
|
101
99
|
}, /*#__PURE__*/React.createElement(SelectTime, {
|
102
|
-
value: state === null || state === void 0 || (_state$
|
100
|
+
value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value.format('HH:mm'),
|
103
101
|
onChange: _onDateTimeChange,
|
104
102
|
popoverProps: {
|
105
103
|
style: {
|
@@ -109,14 +107,20 @@ var TimeBar = function TimeBar(props) {
|
|
109
107
|
timePickerProps: {},
|
110
108
|
timeProps: {},
|
111
109
|
slice: 5
|
112
|
-
})), /*#__PURE__*/React.createElement(Button, {
|
110
|
+
})), !state.bookingId && /*#__PURE__*/React.createElement(Button, {
|
113
111
|
onClick: _onClickNow,
|
114
112
|
size: "large",
|
115
113
|
style: state.intervalSetTime ? {
|
116
114
|
background: '#000',
|
117
115
|
color: '#fff'
|
118
116
|
} : undefined
|
119
|
-
}, locales.getText('pisell2.ticket-booking.now'))
|
120
|
-
|
117
|
+
}, locales.getText('pisell2.ticket-booking.now')), !!state.bookingId && /*#__PURE__*/React.createElement(Button, {
|
118
|
+
onClick: function onClick() {
|
119
|
+
onCreateClick();
|
120
|
+
},
|
121
|
+
size: "large",
|
122
|
+
type: "primary"
|
123
|
+
}, locales.getText('pisell2.ticket-booking.create-new')));
|
124
|
+
}, [(_state$modalState6 = state.modalState) === null || _state$modalState6 === void 0 || (_state$modalState6 = _state$modalState6.date) === null || _state$modalState6 === void 0 ? void 0 : _state$modalState6.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale]);
|
121
125
|
};
|
122
126
|
export default TimeBar;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const useBookingTicket: () => any;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { ClientData } from '../../../booking/info2/cartClientCard/types';
|
2
|
+
export declare const useCustomer: (props: {
|
3
|
+
changeCustomerToGlobalState?: ((value: ClientData) => void) | undefined;
|
4
|
+
}) => {
|
5
|
+
customers: never[];
|
6
|
+
selectedCustomer: ClientData | null;
|
7
|
+
loading: boolean;
|
8
|
+
error: null;
|
9
|
+
pagination: {
|
10
|
+
page: number;
|
11
|
+
pageSize: number;
|
12
|
+
total: number;
|
13
|
+
};
|
14
|
+
loadCustomers: (params?: {
|
15
|
+
skip?: number;
|
16
|
+
num?: number;
|
17
|
+
search?: string;
|
18
|
+
}) => Promise<void>;
|
19
|
+
changePage: (page: number, pageSize: number) => Promise<void>;
|
20
|
+
selectCustomer: (customer: ClientData | null) => void;
|
21
|
+
addCustomerToFirst: (customer: ClientData) => void;
|
22
|
+
initLoad: (this: any, keyword?: any) => Promise<void>;
|
23
|
+
hasMore: boolean;
|
24
|
+
loadMore: () => Promise<void>;
|
25
|
+
};
|