@pisell/private-materials 6.2.24 → 6.2.25
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 +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
- package/es/components/booking/addons/index.js +4 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -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 +294 -0
- package/es/components/booking/components/customiseItemModal/index.less +606 -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 +106 -39
- package/es/components/booking/components/footer/utils.js +52 -24
- 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 +19 -8
- 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/forms/model.js +5 -5
- package/es/components/booking/hooks/useQuotation.js +17 -7
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +12 -3
- 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/BookingList/index.d.ts +0 -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/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +5 -1
- package/es/components/booking/info/service2/utils.js +12 -2
- 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 +40 -18
- package/es/components/booking/info2/service/addTimeModal/index.js +2 -1
- 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/index.js +3 -2
- package/es/components/booking/info2/service/index.js +11 -5
- package/es/components/booking/info2/service/serviceItem/index.js +2 -2
- package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.js +26 -3
- package/es/components/booking/locales.d.ts +75 -0
- package/es/components/booking/locales.js +99 -3
- package/es/components/booking/materiels/startTime/index.js +1 -1
- 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/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- 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/Actor/index.d.ts +0 -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/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 +20 -3
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- 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 +155 -217
- 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/ticketBooking/index.js +208 -33
- 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 +10 -3
- 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 +21 -3
- package/es/components/ticketBooking/locales.d.ts +6 -3
- package/es/components/ticketBooking/locales.js +6 -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/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- 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 +5 -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 +158 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -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/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
- package/lib/components/booking/addons/index.js +4 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -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 +279 -0
- package/lib/components/booking/components/customiseItemModal/index.less +606 -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 +93 -23
- package/lib/components/booking/components/footer/utils.js +38 -13
- 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 -7
- 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/hooks/useQuotation.js +3 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +11 -3
- 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/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +5 -1
- package/lib/components/booking/info/service2/utils.js +14 -2
- 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 +30 -9
- package/lib/components/booking/info2/service/addTimeModal/index.js +1 -0
- 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/index.js +2 -1
- package/lib/components/booking/info2/service/index.js +5 -5
- package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.js +23 -4
- package/lib/components/booking/locales.d.ts +75 -0
- package/lib/components/booking/locales.js +93 -3
- 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/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +20 -3
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- 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 +41 -131
- 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/ticketBooking/index.js +228 -80
- 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 +12 -2
- 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 +31 -4
- package/lib/components/ticketBooking/locales.d.ts +6 -3
- package/lib/components/ticketBooking/locales.js +6 -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/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- 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 +5 -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 +158 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -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
@@ -0,0 +1,142 @@
|
|
1
|
+
// Line类型特有样式 - 行内布局
|
2
|
+
.pisell-client-card--line {
|
3
|
+
padding: 8px 12px;
|
4
|
+
border: 1px solid #e5e7eb;
|
5
|
+
border-radius: 6px;
|
6
|
+
background: #ffffff;
|
7
|
+
|
8
|
+
// 内容容器 - 水平布局
|
9
|
+
.pisell-client-card__content {
|
10
|
+
display: flex;
|
11
|
+
align-items: center;
|
12
|
+
gap: 12px;
|
13
|
+
width: 100%;
|
14
|
+
min-width: 0; // 允许flex子元素收缩
|
15
|
+
}
|
16
|
+
|
17
|
+
// 插槽容器
|
18
|
+
.pisell-client-card__slot-left {
|
19
|
+
display: flex;
|
20
|
+
align-items: center;
|
21
|
+
flex-shrink: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
.pisell-client-card__slot-right {
|
25
|
+
display: flex;
|
26
|
+
align-items: center;
|
27
|
+
flex-shrink: 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
// 头像样式
|
31
|
+
.pisell-client-card__avatar-wrapper {
|
32
|
+
position: relative;
|
33
|
+
flex-shrink: 0; // 头像不收缩
|
34
|
+
}
|
35
|
+
|
36
|
+
.pisell-client-card__avatar {
|
37
|
+
border: 1px solid #e5e7eb;
|
38
|
+
|
39
|
+
.ant-avatar-string {
|
40
|
+
font-weight: 600;
|
41
|
+
font-size: 12px;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
// 状态指示器
|
46
|
+
.pisell-client-card__status-indicator {
|
47
|
+
position: absolute;
|
48
|
+
top: -2px;
|
49
|
+
right: -2px;
|
50
|
+
width: 8px;
|
51
|
+
height: 8px;
|
52
|
+
border-radius: 50%;
|
53
|
+
border: 2px solid #ffffff;
|
54
|
+
background-color: #17B26A;
|
55
|
+
}
|
56
|
+
|
57
|
+
// 客户名称样式
|
58
|
+
.pisell-client-card__name--line {
|
59
|
+
font-size: 14px;
|
60
|
+
font-weight: 500;
|
61
|
+
color: #1f2937;
|
62
|
+
white-space: nowrap;
|
63
|
+
overflow: hidden;
|
64
|
+
text-overflow: ellipsis;
|
65
|
+
flex-shrink: 1;
|
66
|
+
min-width: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
// 联系方式样式
|
70
|
+
.pisell-client-card__contact--line {
|
71
|
+
font-size: 13px;
|
72
|
+
color: #6b7280;
|
73
|
+
white-space: nowrap;
|
74
|
+
overflow: hidden;
|
75
|
+
text-overflow: ellipsis;
|
76
|
+
flex-shrink: 1;
|
77
|
+
min-width: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
// 标签容器样式
|
81
|
+
.pisell-client-card__tags--line {
|
82
|
+
display: flex;
|
83
|
+
gap: 6px;
|
84
|
+
flex-shrink: 0; // 标签不收缩
|
85
|
+
align-items: center;
|
86
|
+
|
87
|
+
.pisell-client-card__tag {
|
88
|
+
white-space: nowrap;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
// 垂直布局样式
|
93
|
+
&.pisell-client-card--vertical {
|
94
|
+
.pisell-client-card__content {
|
95
|
+
flex-direction: column;
|
96
|
+
align-items: center;
|
97
|
+
text-align: center;
|
98
|
+
gap: 16px;
|
99
|
+
}
|
100
|
+
|
101
|
+
.pisell-client-card__name--line {
|
102
|
+
text-align: center;
|
103
|
+
}
|
104
|
+
|
105
|
+
.pisell-client-card__contact--line {
|
106
|
+
text-align: center;
|
107
|
+
}
|
108
|
+
|
109
|
+
.pisell-client-card__tags--line {
|
110
|
+
justify-content: center;
|
111
|
+
flex-wrap: wrap;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
// Line类型空状态样式
|
116
|
+
&.pisell-client-card--empty {
|
117
|
+
cursor: pointer;
|
118
|
+
justify-content: center;
|
119
|
+
align-items: center;
|
120
|
+
border-style: dashed;
|
121
|
+
border-color: #d9d9d9;
|
122
|
+
background: #fafafa;
|
123
|
+
|
124
|
+
&:hover {
|
125
|
+
border-color: #1890ff;
|
126
|
+
background: #f0f8ff;
|
127
|
+
}
|
128
|
+
|
129
|
+
.pisell-client-card__empty-title {
|
130
|
+
font-size: 14px;
|
131
|
+
font-weight: 600;
|
132
|
+
color: #374151;
|
133
|
+
margin: 0;
|
134
|
+
}
|
135
|
+
|
136
|
+
.pisell-client-card__empty-subtitle {
|
137
|
+
font-size: 12px;
|
138
|
+
color: #6b7280;
|
139
|
+
margin: 0;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
en: {
|
3
|
+
'pisell2.text.add-client': string;
|
4
|
+
'pisell2.text.change-client': string;
|
5
|
+
'pisell2.text.remove-client': string;
|
6
|
+
};
|
7
|
+
'zh-CN': {
|
8
|
+
'pisell2.text.add-client': string;
|
9
|
+
'pisell2.text.change-client': string;
|
10
|
+
'pisell2.text.remove-client': string;
|
11
|
+
};
|
12
|
+
'zh-HK': {
|
13
|
+
'pisell2.text.add-client': string;
|
14
|
+
'pisell2.text.change-client': string;
|
15
|
+
'pisell2.text.remove-client': string;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export default _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export default {
|
2
|
+
en: {
|
3
|
+
'pisell2.text.add-client': 'Add client',
|
4
|
+
'pisell2.text.change-client': 'Change Client',
|
5
|
+
'pisell2.text.remove-client': ' Remove Client'
|
6
|
+
},
|
7
|
+
'zh-CN': {
|
8
|
+
'pisell2.text.add-client': '添加客户',
|
9
|
+
'pisell2.text.change-client': '更换客户',
|
10
|
+
'pisell2.text.remove-client': '移除客戶'
|
11
|
+
},
|
12
|
+
'zh-HK': {
|
13
|
+
'pisell2.text.add-client': '新增客戶',
|
14
|
+
'pisell2.text.change-client': '更換客戶',
|
15
|
+
'pisell2.text.remove-client': '移除客户'
|
16
|
+
}
|
17
|
+
};
|
@@ -0,0 +1,126 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface ClientData {
|
3
|
+
id: number;
|
4
|
+
shop_id: number;
|
5
|
+
display_name?: string;
|
6
|
+
nickname?: string;
|
7
|
+
email?: string;
|
8
|
+
phone?: string;
|
9
|
+
country_calling_code?: string;
|
10
|
+
channel?: string;
|
11
|
+
created_at: string;
|
12
|
+
updated_at: string;
|
13
|
+
waiver_form?: any;
|
14
|
+
avatar?: string;
|
15
|
+
birthday?: string;
|
16
|
+
address?: string;
|
17
|
+
tags?: string[];
|
18
|
+
[key: string]: any;
|
19
|
+
}
|
20
|
+
export declare type CardType = 'b1' | 'b2' | 'b5' | 'b9';
|
21
|
+
export declare type Direction = 'horizontal' | 'vertical';
|
22
|
+
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number | string;
|
23
|
+
export declare type AvatarShape = 'circle' | 'square';
|
24
|
+
export interface AvatarConfig {
|
25
|
+
icon?: string;
|
26
|
+
shape?: AvatarShape;
|
27
|
+
borderRadius?: number | string;
|
28
|
+
size?: AvatarSize;
|
29
|
+
useTextAvatar?: boolean;
|
30
|
+
children?: string;
|
31
|
+
}
|
32
|
+
export interface StatusConfig {
|
33
|
+
color?: string;
|
34
|
+
}
|
35
|
+
export interface NameStyle {
|
36
|
+
fontSize?: number | string;
|
37
|
+
fontWeight?: number | string;
|
38
|
+
color?: string;
|
39
|
+
textDecoration?: string;
|
40
|
+
}
|
41
|
+
export interface TagItem {
|
42
|
+
children: string;
|
43
|
+
color: string;
|
44
|
+
}
|
45
|
+
export interface TagConfig {
|
46
|
+
placement?: 'separate' | 'inline';
|
47
|
+
flexWrap?: 'nowrap' | 'wrap';
|
48
|
+
gap?: number | string;
|
49
|
+
}
|
50
|
+
export interface ExtraField {
|
51
|
+
label?: string;
|
52
|
+
value?: string;
|
53
|
+
isShowLabel?: boolean;
|
54
|
+
isShowValue?: boolean;
|
55
|
+
icon?: string;
|
56
|
+
iconSize?: number;
|
57
|
+
iconColor?: string;
|
58
|
+
}
|
59
|
+
export interface Slots {
|
60
|
+
top?: React.ReactNode;
|
61
|
+
bottom?: React.ReactNode;
|
62
|
+
left?: React.ReactNode;
|
63
|
+
right?: React.ReactNode;
|
64
|
+
}
|
65
|
+
export interface StyleConfig {
|
66
|
+
width?: number | string;
|
67
|
+
border?: 'solid' | 'unset';
|
68
|
+
borderWidth?: number | string;
|
69
|
+
borderColor?: string;
|
70
|
+
borderRadius?: number | string;
|
71
|
+
padding?: number | string;
|
72
|
+
[key: string]: any;
|
73
|
+
}
|
74
|
+
export interface FieldNames {
|
75
|
+
id?: string | ((data: any) => any);
|
76
|
+
name?: string | ((data: any) => any);
|
77
|
+
cover?: string | ((data: any) => any);
|
78
|
+
phone?: string | ((data: any) => any);
|
79
|
+
email?: string | ((data: any) => any);
|
80
|
+
birthday?: string | ((data: any) => any);
|
81
|
+
address?: string | ((data: any) => any);
|
82
|
+
tags?: string | ((data: any) => any);
|
83
|
+
[key: string]: string | ((data: any) => any) | undefined;
|
84
|
+
}
|
85
|
+
export interface DisplayConfig {
|
86
|
+
isShowAvatar?: boolean;
|
87
|
+
isShowName?: boolean;
|
88
|
+
isShowPhone?: boolean;
|
89
|
+
isShowEmail?: boolean;
|
90
|
+
isShowBirthday?: boolean;
|
91
|
+
isShowAddress?: boolean;
|
92
|
+
isShowTag?: boolean;
|
93
|
+
isShowStatus?: boolean;
|
94
|
+
}
|
95
|
+
export interface ClientCardProps extends DisplayConfig {
|
96
|
+
type?: CardType;
|
97
|
+
direction?: Direction;
|
98
|
+
dataSource?: ClientData | any;
|
99
|
+
fieldNames?: FieldNames;
|
100
|
+
style?: StyleConfig;
|
101
|
+
horizontalGap?: number | string;
|
102
|
+
verticalGap?: number | string;
|
103
|
+
avatar?: AvatarConfig;
|
104
|
+
status?: StatusConfig;
|
105
|
+
defaultName?: string;
|
106
|
+
nameStyle?: NameStyle;
|
107
|
+
tags?: Array<TagItem | string>;
|
108
|
+
tag?: TagConfig;
|
109
|
+
extraFields?: ExtraField[];
|
110
|
+
slots?: Slots;
|
111
|
+
onAddClient?: () => void;
|
112
|
+
onChangeClient?: (data: ClientData) => void;
|
113
|
+
onRemoveClient?: (data: ClientData) => void;
|
114
|
+
onViewClient?: (data: ClientData) => void;
|
115
|
+
}
|
116
|
+
export interface ProcessedClientData {
|
117
|
+
id: any;
|
118
|
+
name: string;
|
119
|
+
cover?: string;
|
120
|
+
phone?: string;
|
121
|
+
email?: string;
|
122
|
+
birthday?: string;
|
123
|
+
address?: string;
|
124
|
+
tags?: string[];
|
125
|
+
[key: string]: any;
|
126
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
interface FieldMapping<T = any, R = any> {
|
2
|
+
[key: string]: string | ((data: T) => R) | undefined;
|
3
|
+
}
|
4
|
+
export declare function getFieldValue<T, R = any>(data: T, fieldKey: string): R | undefined;
|
5
|
+
export declare function getFieldValue<T, R = any>(data: T, fieldKey: string, mapping: FieldMapping<T, R>): R | undefined;
|
6
|
+
export declare const getAvatarText: (name: string) => string;
|
7
|
+
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
8
|
+
export {};
|
@@ -0,0 +1,59 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
import { get } from 'lodash';
|
3
|
+
|
4
|
+
// 类型定义
|
5
|
+
|
6
|
+
// 函数重载签名
|
7
|
+
|
8
|
+
// 函数实现
|
9
|
+
export function getFieldValue(data, fieldKey, mapping) {
|
10
|
+
// 参数验证
|
11
|
+
if (!fieldKey || typeof fieldKey !== 'string') {
|
12
|
+
console.warn('getFieldValue: fieldKey must be a non-empty string');
|
13
|
+
return undefined;
|
14
|
+
}
|
15
|
+
if (!data || _typeof(data) !== 'object') {
|
16
|
+
console.warn('getFieldValue: data must be a valid object');
|
17
|
+
return undefined;
|
18
|
+
}
|
19
|
+
|
20
|
+
// 如果没有提供 mapping,使用空对象
|
21
|
+
var fieldMapping = mapping || {};
|
22
|
+
var mappingRule = fieldMapping[fieldKey];
|
23
|
+
try {
|
24
|
+
// 函数映射
|
25
|
+
if (typeof mappingRule === 'function') {
|
26
|
+
return mappingRule(data);
|
27
|
+
}
|
28
|
+
|
29
|
+
// 字符串映射(使用 lodash.get)
|
30
|
+
if (typeof mappingRule === 'string') {
|
31
|
+
return get(data, mappingRule);
|
32
|
+
}
|
33
|
+
|
34
|
+
// 默认直接访问(使用 lodash.get)
|
35
|
+
return get(data, fieldKey);
|
36
|
+
} catch (error) {
|
37
|
+
console.error("getFieldValue: Error processing field '".concat(fieldKey, "':"), error);
|
38
|
+
return undefined;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// 获取头像文本(姓名的首字母,最多两个单词)
|
43
|
+
export var getAvatarText = function getAvatarText(name) {
|
44
|
+
if (!name) return '';
|
45
|
+
var words = name.trim().split(/\s+/);
|
46
|
+
var initials = words.slice(0, 2).map(function (word) {
|
47
|
+
return word.charAt(0).toUpperCase();
|
48
|
+
}).join('');
|
49
|
+
return initials;
|
50
|
+
};
|
51
|
+
export var isWalkIn = function isWalkIn(customer_id) {
|
52
|
+
if (customer_id === undefined) {
|
53
|
+
return true;
|
54
|
+
}
|
55
|
+
if (typeof customer_id === 'string') {
|
56
|
+
return ['', '0', '1'].includes(customer_id);
|
57
|
+
}
|
58
|
+
return [0, 1].includes(customer_id);
|
59
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React, { useMemo } from 'react';
|
2
|
+
import classNames from 'classnames';
|
3
|
+
import "./index.less";
|
4
|
+
import { getClientName } from "./utils";
|
5
|
+
var ClientName = function ClientName(_ref) {
|
6
|
+
var className = _ref.className,
|
7
|
+
dataSource = _ref.dataSource,
|
8
|
+
style = _ref.style;
|
9
|
+
var name = useMemo(function () {
|
10
|
+
return getClientName(dataSource);
|
11
|
+
}, [dataSource]);
|
12
|
+
if (!dataSource) return null;
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
14
|
+
className: classNames('pisell-client-name', className),
|
15
|
+
style: style || {}
|
16
|
+
}, name);
|
17
|
+
};
|
18
|
+
export default ClientName;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type ClientData = {
|
3
|
+
display_name?: string;
|
4
|
+
nickname?: string;
|
5
|
+
first_name?: string;
|
6
|
+
last_name?: string;
|
7
|
+
[key: string]: any;
|
8
|
+
};
|
9
|
+
export interface IClientNameProps {
|
10
|
+
dataSource?: string | ClientData | null;
|
11
|
+
className?: string;
|
12
|
+
style?: React.CSSProperties;
|
13
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export var getClientName = function getClientName(dataSource) {
|
2
|
+
if (!dataSource || typeof dataSource === 'string') {
|
3
|
+
return dataSource;
|
4
|
+
}
|
5
|
+
var first_name = dataSource.first_name,
|
6
|
+
last_name = dataSource.last_name,
|
7
|
+
display_name = dataSource.display_name,
|
8
|
+
nickname = dataSource.nickname;
|
9
|
+
var finalName = '';
|
10
|
+
if (display_name) {
|
11
|
+
finalName = display_name;
|
12
|
+
} else if (nickname) {
|
13
|
+
finalName = nickname;
|
14
|
+
} else if (first_name || last_name) {
|
15
|
+
finalName = "".concat(first_name, " ").concat(last_name).trim();
|
16
|
+
}
|
17
|
+
return finalName;
|
18
|
+
};
|