@pisell/private-materials 6.2.31 → 6.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +11 -11
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +15 -5
- package/es/components/booking/components/footer/index.less +23 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/components/tabPane/index.less +3 -3
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/Lists.js +1 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +18 -17
- package/es/components/booking/info2/cartClientCard/index.js +60 -67
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +71 -11
- package/es/components/booking/info2/service/editService/index.less +47 -11
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/locales.js +4 -4
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -2
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/linkly/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.js +2 -2
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.js +4 -3
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +4 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +23 -18
- package/es/components/ticketBooking/locales.js +3 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/es/plus/clientCard/locales.js +2 -2
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/es/plus/clinetSearch/index.d.ts +0 -1
- package/es/plus/clinetSearch/index.js +6 -6
- package/es/plus/clinetSearch/index.less +4 -0
- package/es/plus/noteModal/AddTempModal.d.ts +0 -1
- package/es/pro/comprehensiveSearch/index.d.ts +1 -3
- package/es/pro/comprehensiveSearch/index.js +18 -49
- package/es/pro/comprehensiveSearch/index.less +1 -6
- package/es/pro/comprehensiveSearch/types.d.ts +2 -1
- package/es/pro/skuDetailModal/index.js +21 -7
- package/es/pro/skuDetailModal/index.less +40 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +16 -9
- package/lib/components/booking/components/footer/index.less +23 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/components/tabPane/index.less +3 -3
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.js +1 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +12 -11
- package/lib/components/booking/info2/cartClientCard/index.js +23 -31
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +71 -18
- package/lib/components/booking/info2/service/editService/index.less +47 -11
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/locales.js +4 -4
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -2
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/linkly/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.js +1 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +4 -3
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +23 -12
- package/lib/components/ticketBooking/locales.js +12 -3
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/plus/clientCard/locales.js +2 -2
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/index.d.ts +0 -1
- package/lib/plus/clinetSearch/index.js +6 -7
- package/lib/plus/clinetSearch/index.less +4 -0
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
- package/lib/pro/comprehensiveSearch/index.d.ts +1 -3
- package/lib/pro/comprehensiveSearch/index.js +12 -23
- package/lib/pro/comprehensiveSearch/index.less +1 -6
- package/lib/pro/comprehensiveSearch/types.d.ts +2 -1
- package/lib/pro/skuDetailModal/index.js +22 -6
- package/lib/pro/skuDetailModal/index.less +40 -0
- package/package.json +4 -4
- package/es/pro/comprehensiveSearch/camera.svg +0 -4
- package/lib/pro/comprehensiveSearch/camera.svg +0 -4
@@ -85,8 +85,10 @@ var ClientSearch = (0, import_react.forwardRef)(
|
|
85
85
|
import_InfiniteScroll.default,
|
86
86
|
{
|
87
87
|
dataLength: searchResults.length,
|
88
|
-
next:
|
89
|
-
|
88
|
+
next: () => {
|
89
|
+
console.log("loading more");
|
90
|
+
onLoadMore == null ? void 0 : onLoadMore();
|
91
|
+
},
|
90
92
|
hasMore: hasMore || false,
|
91
93
|
style: { width: "100%" },
|
92
94
|
loader: /* @__PURE__ */ import_react.default.createElement(
|
@@ -101,7 +103,8 @@ var ClientSearch = (0, import_react.forwardRef)(
|
|
101
103
|
import_utils.locales.getText("pisell2.text.loading")
|
102
104
|
),
|
103
105
|
endMessage: /* @__PURE__ */ import_react.default.createElement("div", { style: { textAlign: "center", color: "#999" } }, (searchResults == null ? void 0 : searchResults.length) ? import_utils.locales.getText("pisell2.text.no-more-data") : null),
|
104
|
-
scrollableTarget: "client-search_infinite-scroll"
|
106
|
+
scrollableTarget: "client-search_infinite-scroll",
|
107
|
+
scrollThreshold: "180px"
|
105
108
|
},
|
106
109
|
/* @__PURE__ */ import_react.default.createElement(
|
107
110
|
import_antd.List,
|
@@ -167,10 +170,6 @@ var ClientSearch = (0, import_react.forwardRef)(
|
|
167
170
|
handleModalCancel();
|
168
171
|
};
|
169
172
|
(0, import_react.useImperativeHandle)(ref, () => ({
|
170
|
-
setSearchKeyword: (keyword) => {
|
171
|
-
var _a2, _b2;
|
172
|
-
(_b2 = (_a2 = comprehensiveSearchRef.current) == null ? void 0 : _a2.setSearchKeyword) == null ? void 0 : _b2.call(_a2, keyword);
|
173
|
-
},
|
174
173
|
resetScrollPosition: () => {
|
175
174
|
if (scrollContainerRef.current) {
|
176
175
|
scrollContainerRef.current.scrollTop = 0;
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { ComprehensiveSearchProps, SearchResult } from './types';
|
3
3
|
import './index.less';
|
4
|
-
export declare type ComprehensiveSearchRef = {
|
5
|
-
setSearchKeyword: (keyword: string) => void;
|
6
|
-
};
|
4
|
+
export declare type ComprehensiveSearchRef = {};
|
7
5
|
declare const ComprehensiveSearch: React.ForwardRefExoticComponent<ComprehensiveSearchProps & React.RefAttributes<ComprehensiveSearchRef>>;
|
8
6
|
export default ComprehensiveSearch;
|
9
7
|
export type { ComprehensiveSearchProps, SearchResult };
|
@@ -37,10 +37,10 @@ var import_antd = require("antd");
|
|
37
37
|
var import_materials = require("@pisell/materials");
|
38
38
|
var import_icon = require("@pisell/icon");
|
39
39
|
var import_utils = require("@pisell/utils");
|
40
|
+
var import_ahooks = require("ahooks");
|
40
41
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
41
42
|
var import_useTerminalPeripherals = __toESM(require("./hooks/useTerminalPeripherals"));
|
42
43
|
var import_useNativeScanner = __toESM(require("./hooks/useNativeScanner"));
|
43
|
-
var import_camera = __toESM(require("./camera.svg"));
|
44
44
|
var import_locales = __toESM(require("./locales"));
|
45
45
|
var import_index = require("./index.less");
|
46
46
|
var import_classnames = __toESM(require("classnames"));
|
@@ -64,14 +64,19 @@ var ComprehensiveSearch = (0, import_react.forwardRef)(
|
|
64
64
|
resultSort = "asc",
|
65
65
|
style,
|
66
66
|
loading,
|
67
|
-
|
67
|
+
keyword,
|
68
|
+
onKeywordChange,
|
68
69
|
onSearch,
|
69
70
|
onAdd,
|
70
71
|
onRowClick,
|
71
72
|
...props
|
72
73
|
}, ref) => {
|
73
74
|
var _a, _b, _c;
|
74
|
-
const [searchValue, setSearchValue] = (0,
|
75
|
+
const [searchValue, setSearchValue] = (0, import_ahooks.useControllableValue)({
|
76
|
+
value: keyword,
|
77
|
+
onChange: onKeywordChange,
|
78
|
+
defaultValue: ""
|
79
|
+
});
|
75
80
|
const { peripheralsStatus } = (0, import_useTerminalPeripherals.default)();
|
76
81
|
const { activeNativeScanner, isTerminal } = (0, import_useNativeScanner.default)();
|
77
82
|
const context = (0, import_useEngineContext.default)();
|
@@ -79,18 +84,6 @@ var ComprehensiveSearch = (0, import_react.forwardRef)(
|
|
79
84
|
import_locales.default,
|
80
85
|
((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.storage) == null ? void 0 : _c.get("umi_locale")) || "en"
|
81
86
|
);
|
82
|
-
async function checkCameraAvailability() {
|
83
|
-
try {
|
84
|
-
const devices = await navigator.mediaDevices.enumerateDevices();
|
85
|
-
const hasCamera = devices.some(
|
86
|
-
(device) => device.kind === "videoinput"
|
87
|
-
);
|
88
|
-
return hasCamera;
|
89
|
-
} catch (err) {
|
90
|
-
console.error("Error checking camera availability:", err);
|
91
|
-
}
|
92
|
-
return false;
|
93
|
-
}
|
94
87
|
const handleSearch = async () => {
|
95
88
|
try {
|
96
89
|
await (onSearch == null ? void 0 : onSearch(searchValue));
|
@@ -100,7 +93,6 @@ var ComprehensiveSearch = (0, import_react.forwardRef)(
|
|
100
93
|
const handleInputChange = (e) => {
|
101
94
|
const value = e.target.value;
|
102
95
|
setSearchValue(value);
|
103
|
-
onSearchTextChange == null ? void 0 : onSearchTextChange(value);
|
104
96
|
};
|
105
97
|
const handleAdd = () => {
|
106
98
|
onAdd == null ? void 0 : onAdd();
|
@@ -148,11 +140,7 @@ var ComprehensiveSearch = (0, import_react.forwardRef)(
|
|
148
140
|
}
|
149
141
|
)), isShowSearchButton && /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search__search-button-wrapper" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: handleSearch, loading }, import_utils.locales.getText("pisell2.text.search")))));
|
150
142
|
};
|
151
|
-
(0, import_react.useImperativeHandle)(ref, () => ({
|
152
|
-
setSearchKeyword: (keyword) => {
|
153
|
-
setSearchValue(keyword);
|
154
|
-
}
|
155
|
-
}));
|
143
|
+
(0, import_react.useImperativeHandle)(ref, () => ({}));
|
156
144
|
const renderResults = () => {
|
157
145
|
if (import_react.default.isValidElement(resultDisplay)) {
|
158
146
|
return resultDisplay;
|
@@ -218,12 +206,13 @@ var ComprehensiveSearch = (0, import_react.forwardRef)(
|
|
218
206
|
import_antd.Button,
|
219
207
|
{
|
220
208
|
className: "comprehensive-search__new-button",
|
221
|
-
onClick: handleAdd
|
209
|
+
onClick: handleAdd,
|
210
|
+
type: "primary"
|
222
211
|
},
|
223
212
|
newButtonText || import_utils.locales.getText("pisell2.text.new-client"),
|
224
213
|
/* @__PURE__ */ import_react.default.createElement(import_icon.PlusCircle, { style: { fontSize: 20 } })
|
225
214
|
);
|
226
|
-
const iconGroup = /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search__icon-group" }, isShowScanner && /* @__PURE__ */ import_react.default.createElement("span", { className: "comprehensive-search__icon-button" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-Scanner" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "status-indicator" }, stautsIndicator((peripheralsStatus == null ? void 0 : peripheralsStatus.scanner) === "connected"))), isShowNFC && /* @__PURE__ */ import_react.default.createElement("span", { className: "comprehensive-search__icon-button" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-NFC" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "status-indicator" }, stautsIndicator((peripheralsStatus == null ? void 0 : peripheralsStatus.nfc) === "connected"))), isShowCamera && /* @__PURE__ */ import_react.default.createElement("span", { className: "comprehensive-search__icon-button" }, /* @__PURE__ */ import_react.default.createElement(
|
215
|
+
const iconGroup = /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search__icon-group" }, isShowScanner && /* @__PURE__ */ import_react.default.createElement("span", { className: "comprehensive-search__icon-button" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-Scanner" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "status-indicator" }, stautsIndicator((peripheralsStatus == null ? void 0 : peripheralsStatus.scanner) === "connected"))), isShowNFC && /* @__PURE__ */ import_react.default.createElement("span", { className: "comprehensive-search__icon-button" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-NFC" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "status-indicator" }, stautsIndicator((peripheralsStatus == null ? void 0 : peripheralsStatus.nfc) === "connected"))), isShowCamera && /* @__PURE__ */ import_react.default.createElement("span", { className: "comprehensive-search__icon-button" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-camera" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "status-indicator" }, stautsIndicator(isTerminal))));
|
227
216
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search__third" }, newButtonAlign === "left" ? newButton : newButtonAlign === "right" ? iconGroup : null), /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search__third" }, newButtonAlign === "center" ? newButton : null), /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search__third" }, newButtonAlign === "left" ? iconGroup : newButtonAlign === "right" ? newButton : iconGroup));
|
228
217
|
};
|
229
218
|
const renderContent = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search", style, ...props }, /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search__top-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search__top-row" }, getTopRowLayout())), renderSearchSection(), /* @__PURE__ */ import_react.default.createElement("div", { className: "comprehensive-search__results-container" }, renderResults()));
|
@@ -20,7 +20,8 @@ export interface ComprehensiveSearchProps {
|
|
20
20
|
sortBy?: string;
|
21
21
|
style?: React.CSSProperties;
|
22
22
|
loading?: boolean;
|
23
|
-
|
23
|
+
keyword?: string;
|
24
|
+
onKeywordChange?: (value: string) => void;
|
24
25
|
onSearch?: (value: string) => void;
|
25
26
|
onAdd?: () => void;
|
26
27
|
onDataChange?: (data: any) => void;
|
@@ -198,6 +198,12 @@ var SkuDetailModal = ({ onConfirm, onRemove, onClose }, ref) => {
|
|
198
198
|
setDiscounts([]);
|
199
199
|
setShowPriceAdjustModal(false);
|
200
200
|
};
|
201
|
+
const coverText = (0, import_react.useMemo)(() => {
|
202
|
+
var _a2;
|
203
|
+
const title = ((_a2 = productData == null ? void 0 : productData.title) == null ? void 0 : _a2.trim()) || "";
|
204
|
+
if (!title) return "";
|
205
|
+
return Array.from(title).slice(0, 2).join("");
|
206
|
+
}, [productData == null ? void 0 : productData.title]);
|
201
207
|
if (!productData) return null;
|
202
208
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
203
209
|
import_materials.PisellModal,
|
@@ -212,7 +218,7 @@ var SkuDetailModal = ({ onConfirm, onRemove, onClose }, ref) => {
|
|
212
218
|
width: 880,
|
213
219
|
className: "pisell-sku-detail-modal"
|
214
220
|
},
|
215
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "sku-detail-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "sku-detail-content-main" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "sku-detail-left" },
|
221
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "sku-detail-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "sku-detail-content-main" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "sku-detail-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-image" }, productData.cover ? /* @__PURE__ */ import_react.default.createElement("img", { src: productData.cover || "" }) : /* @__PURE__ */ import_react.default.createElement("div", { className: "product-cover-text" }, coverText)), /* @__PURE__ */ import_react.default.createElement("div", { className: "product-actions" }, /* @__PURE__ */ import_react.default.createElement(
|
216
222
|
import_materials.Button,
|
217
223
|
{
|
218
224
|
size: "large",
|
@@ -260,7 +266,7 @@ var SkuDetailModal = ({ onConfirm, onRemove, onClose }, ref) => {
|
|
260
266
|
danger: true,
|
261
267
|
size: "large",
|
262
268
|
icon: /* @__PURE__ */ import_react.default.createElement(import_Delete_wght300_24px.default, { style: { fontSize: 20 } }),
|
263
|
-
className: "remove-btn",
|
269
|
+
className: "sku-detail-content-footer-remove-btn",
|
264
270
|
onClick: handleRemove
|
265
271
|
},
|
266
272
|
import_utils.locales.getText("pisell2.text.sku.detail.modal.btn.remove")
|
@@ -269,12 +275,22 @@ var SkuDetailModal = ({ onConfirm, onRemove, onClose }, ref) => {
|
|
269
275
|
{
|
270
276
|
type: "default",
|
271
277
|
size: "large",
|
272
|
-
onClick: handleManualPriceChange
|
278
|
+
onClick: handleManualPriceChange,
|
279
|
+
className: "sku-detail-content-footer-price-btn"
|
273
280
|
},
|
274
|
-
import_utils.locales.getText(
|
281
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "sku-detail-content-footer-price-btn-text" }, import_utils.locales.getText(
|
275
282
|
"pisell2.text.sku.detail.modal.btn.manual.price.change"
|
276
|
-
)
|
277
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
283
|
+
))
|
284
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
285
|
+
import_materials.Button,
|
286
|
+
{
|
287
|
+
type: "primary",
|
288
|
+
size: "large",
|
289
|
+
onClick: handleConfirm,
|
290
|
+
className: "sku-detail-content-footer-confirm-btn"
|
291
|
+
},
|
292
|
+
import_utils.locales.getText("pisell2.text.sku.detail.modal.btn.confirm")
|
293
|
+
)))),
|
278
294
|
noteModalOpen && /* @__PURE__ */ import_react.default.createElement(
|
279
295
|
import_noteModal.default,
|
280
296
|
{
|
@@ -34,6 +34,20 @@
|
|
34
34
|
object-fit: cover;
|
35
35
|
background: lightgray 50% / cover no-repeat;
|
36
36
|
}
|
37
|
+
|
38
|
+
.product-cover-text {
|
39
|
+
width: 100%;
|
40
|
+
height: 100%;
|
41
|
+
background-color: #dedede;
|
42
|
+
color: #747474;
|
43
|
+
display: flex;
|
44
|
+
align-items: center;
|
45
|
+
justify-content: center;
|
46
|
+
font-size: 40px;
|
47
|
+
font-weight: 600;
|
48
|
+
line-height: 1;
|
49
|
+
user-select: none;
|
50
|
+
}
|
37
51
|
}
|
38
52
|
|
39
53
|
.product-actions {
|
@@ -44,6 +58,7 @@
|
|
44
58
|
|
45
59
|
.add-note-btn {
|
46
60
|
width: 100%;
|
61
|
+
height: 48px;
|
47
62
|
}
|
48
63
|
}
|
49
64
|
|
@@ -199,10 +214,35 @@
|
|
199
214
|
align-items: center;
|
200
215
|
justify-content: space-between;
|
201
216
|
|
217
|
+
.sku-detail-content-footer-remove-btn {
|
218
|
+
width: 120px;
|
219
|
+
height: 48px;
|
220
|
+
}
|
221
|
+
|
202
222
|
.modal-actions {
|
203
223
|
display: flex;
|
204
224
|
gap: 8px;
|
205
225
|
justify-content: flex-end;
|
226
|
+
|
227
|
+
.sku-detail-content-footer-price-btn {
|
228
|
+
width: 140px;
|
229
|
+
height: 48px;
|
230
|
+
|
231
|
+
.sku-detail-content-footer-price-btn-text {
|
232
|
+
width: 100%;
|
233
|
+
text-align: center;
|
234
|
+
// 支持换行显示
|
235
|
+
white-space: wrap;
|
236
|
+
font-size: 16px;
|
237
|
+
font-weight: 400;
|
238
|
+
line-height: 20px;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
.sku-detail-content-footer-confirm-btn {
|
243
|
+
width: 200px;
|
244
|
+
height: 48px;
|
245
|
+
}
|
206
246
|
}
|
207
247
|
}
|
208
248
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pisell/private-materials",
|
3
|
-
"version": "6.2.
|
3
|
+
"version": "6.2.33",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"module": "./es/index.js",
|
6
6
|
"types": "./lib/index.d.ts",
|
@@ -59,10 +59,10 @@
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
60
60
|
"react-resizable": "^3.0.5",
|
61
61
|
"styled-components": "^6.0.0-rc.3",
|
62
|
-
"@pisell/
|
63
|
-
"@pisell/utils": "3.0.0",
|
62
|
+
"@pisell/date-picker": "3.0.4",
|
64
63
|
"@pisell/icon": "0.0.11",
|
65
|
-
"@pisell/
|
64
|
+
"@pisell/materials": "6.2.32",
|
65
|
+
"@pisell/utils": "3.0.0"
|
66
66
|
},
|
67
67
|
"peerDependencies": {
|
68
68
|
"react": "^18.0.0",
|
@@ -1,4 +0,0 @@
|
|
1
|
-
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M3 12.5658C3 12.0404 3 11.7776 3.02193 11.5563C3.2334 9.4219 4.9219 7.7334 7.05632 7.52193C7.27762 7.5 7.55454 7.5 8.10838 7.5C8.32178 7.5 8.42848 7.5 8.51908 7.49451C9.67592 7.42445 10.6889 6.69432 11.1212 5.619C11.1551 5.53479 11.1867 5.43986 11.25 5.25C11.3133 5.06014 11.3449 4.96521 11.3788 4.881C11.8111 3.80568 12.8241 3.07555 13.9809 3.00549C14.0715 3 14.1716 3 14.3717 3H21.6283C21.8284 3 21.9285 3 22.0191 3.00549C23.1759 3.07555 24.1889 3.80568 24.6212 4.881C24.6551 4.96521 24.6867 5.06014 24.75 5.25C24.8133 5.43986 24.8449 5.53479 24.8788 5.619C25.3111 6.69432 26.3241 7.42445 27.4809 7.49451C27.5715 7.5 27.6782 7.5 27.8916 7.5C28.4455 7.5 28.7224 7.5 28.9437 7.52193C31.0781 7.7334 32.7666 9.4219 32.9781 11.5563C33 11.7776 33 12.0404 33 12.5658V24.3C33 26.8202 33 28.0804 32.5095 29.043C32.0781 29.8897 31.3897 30.5781 30.543 31.0095C29.5804 31.5 28.3202 31.5 25.8 31.5H10.2C7.67976 31.5 6.41965 31.5 5.45704 31.0095C4.61031 30.5781 3.9219 29.8897 3.49047 29.043C3 28.0804 3 26.8202 3 24.3V12.5658Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
3
|
-
<path d="M18 24.75C21.3137 24.75 24 22.0637 24 18.75C24 15.4363 21.3137 12.75 18 12.75C14.6863 12.75 12 15.4363 12 18.75C12 22.0637 14.6863 24.75 18 24.75Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
4
|
-
</svg>
|
@@ -1,4 +0,0 @@
|
|
1
|
-
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M3 12.5658C3 12.0404 3 11.7776 3.02193 11.5563C3.2334 9.4219 4.9219 7.7334 7.05632 7.52193C7.27762 7.5 7.55454 7.5 8.10838 7.5C8.32178 7.5 8.42848 7.5 8.51908 7.49451C9.67592 7.42445 10.6889 6.69432 11.1212 5.619C11.1551 5.53479 11.1867 5.43986 11.25 5.25C11.3133 5.06014 11.3449 4.96521 11.3788 4.881C11.8111 3.80568 12.8241 3.07555 13.9809 3.00549C14.0715 3 14.1716 3 14.3717 3H21.6283C21.8284 3 21.9285 3 22.0191 3.00549C23.1759 3.07555 24.1889 3.80568 24.6212 4.881C24.6551 4.96521 24.6867 5.06014 24.75 5.25C24.8133 5.43986 24.8449 5.53479 24.8788 5.619C25.3111 6.69432 26.3241 7.42445 27.4809 7.49451C27.5715 7.5 27.6782 7.5 27.8916 7.5C28.4455 7.5 28.7224 7.5 28.9437 7.52193C31.0781 7.7334 32.7666 9.4219 32.9781 11.5563C33 11.7776 33 12.0404 33 12.5658V24.3C33 26.8202 33 28.0804 32.5095 29.043C32.0781 29.8897 31.3897 30.5781 30.543 31.0095C29.5804 31.5 28.3202 31.5 25.8 31.5H10.2C7.67976 31.5 6.41965 31.5 5.45704 31.0095C4.61031 30.5781 3.9219 29.8897 3.49047 29.043C3 28.0804 3 26.8202 3 24.3V12.5658Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
3
|
-
<path d="M18 24.75C21.3137 24.75 24 22.0637 24 18.75C24 15.4363 21.3137 12.75 18 12.75C14.6863 12.75 12 15.4363 12 18.75C12 22.0637 14.6863 24.75 18 24.75Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
4
|
-
</svg>
|