@pisell/private-materials 6.2.30 → 6.3.1
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 -9
- package/build/lowcode/preview.js +13 -13
- 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/components/Sales/Cart/index.js +0 -1
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/booking/addons/index.js +1 -4
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/amount.d.ts +0 -1
- package/es/components/booking/components/footer/amount.js +3 -15
- package/es/components/booking/components/footer/index.js +42 -113
- package/es/components/booking/components/footer/index.less +2 -3
- package/es/components/booking/components/footer/utils.js +23 -51
- package/es/components/booking/components/tabPane/index.js +5 -72
- package/es/components/booking/components/tabPane/index.less +1 -75
- package/es/components/booking/components/voucher/index.js +12 -26
- 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 +3 -10
- package/es/components/booking/forms/forms.js +1 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/hooks/useQuotation.js +8 -18
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +12 -13
- package/es/components/booking/info/index.less +3 -19
- package/es/components/booking/info/main.js +15 -14
- package/es/components/booking/info/pet/index.less +1 -1
- package/es/components/booking/info/service/Lists.js +2 -5
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/index.less +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/service2/utils.d.ts +0 -4
- package/es/components/booking/info/service2/utils.js +2 -21
- package/es/components/booking/info2/index.js +18 -40
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addTimeModal/index.js +1 -2
- package/es/components/booking/info2/service/editService/index.js +4 -4
- package/es/components/booking/info2/service/index.js +6 -11
- package/es/components/booking/info2/service/serviceItem/index.js +2 -2
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -1
- package/es/components/booking/info2/utilsByBooking.js +3 -27
- package/es/components/booking/locales.d.ts +0 -78
- package/es/components/booking/locales.js +4 -106
- 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 +32 -52
- package/es/components/booking/notes/addNote/index.less +0 -53
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +2 -2
- 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 +6 -6
- package/es/components/listComponent/index.js +5 -5
- 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/productGroup/index.js +4 -20
- package/es/components/productSelect/components/productGroup/index.less +0 -17
- 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.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +7 -46
- package/es/components/shoppingCart/components/Cart/index.less +1 -15
- package/es/components/shoppingCart/type.d.ts +0 -1
- package/es/components/subTotal/index.less +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +291 -158
- package/es/components/ticketBooking/components/ticketBooking/index.js +34 -214
- package/es/components/ticketBooking/components/ticketBooking/index.less +1 -29
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +15 -19
- package/es/components/ticketBooking/index.js +3 -21
- package/es/components/ticketBooking/index.less +1 -1
- package/es/components/ticketBooking/locales.d.ts +3 -9
- package/es/components/ticketBooking/locales.js +3 -9
- package/es/components/ticketBooking/serve.js +11 -11
- package/es/components/ticketBooking/utils/index.d.ts +4 -39
- package/es/components/ticketBooking/utils/index.js +28 -109
- package/es/hooks/useComponents.js +1 -1
- package/es/index.d.ts +0 -4
- package/es/index.js +1 -5
- package/es/utils/index.d.ts +1 -1
- package/lib/components/Sales/Cart/index.js +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/booking/addons/index.js +1 -4
- package/lib/components/booking/components/footer/amount.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.js +3 -5
- package/lib/components/booking/components/footer/index.js +23 -96
- package/lib/components/booking/components/footer/index.less +2 -3
- package/lib/components/booking/components/footer/utils.js +12 -37
- package/lib/components/booking/components/tabPane/index.js +4 -57
- package/lib/components/booking/components/tabPane/index.less +1 -75
- package/lib/components/booking/components/voucher/index.js +11 -23
- 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 +2 -7
- package/lib/components/booking/forms/forms.js +1 -1
- package/lib/components/booking/hooks/useQuotation.js +2 -4
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +6 -12
- package/lib/components/booking/info/index.less +3 -19
- package/lib/components/booking/info/main.js +5 -12
- package/lib/components/booking/info/pet/index.less +1 -1
- package/lib/components/booking/info/service/Lists.js +2 -6
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/index.less +1 -1
- package/lib/components/booking/info/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info/service2/utils.d.ts +0 -4
- package/lib/components/booking/info/service2/utils.js +2 -23
- package/lib/components/booking/info2/index.js +9 -30
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addTimeModal/index.js +0 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -3
- 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/utilsByBooking.d.ts +0 -1
- package/lib/components/booking/info2/utilsByBooking.js +4 -24
- package/lib/components/booking/locales.d.ts +0 -78
- package/lib/components/booking/locales.js +4 -100
- package/lib/components/booking/notes/addNote/index.d.ts +1 -1
- package/lib/components/booking/notes/addNote/index.js +23 -41
- package/lib/components/booking/notes/addNote/index.less +0 -53
- package/lib/components/booking/utils.d.ts +2 -2
- 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 +6 -6
- package/lib/components/productSelect/components/productGroup/index.js +3 -16
- package/lib/components/productSelect/components/productGroup/index.less +0 -17
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +9 -45
- package/lib/components/shoppingCart/components/Cart/index.less +1 -15
- package/lib/components/shoppingCart/type.d.ts +0 -1
- package/lib/components/subTotal/index.less +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +185 -45
- package/lib/components/ticketBooking/components/ticketBooking/index.js +81 -233
- package/lib/components/ticketBooking/components/ticketBooking/index.less +1 -29
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +8 -15
- package/lib/components/ticketBooking/index.js +4 -31
- package/lib/components/ticketBooking/index.less +1 -1
- package/lib/components/ticketBooking/locales.d.ts +3 -9
- package/lib/components/ticketBooking/locales.js +3 -9
- package/lib/components/ticketBooking/serve.js +11 -11
- package/lib/components/ticketBooking/utils/index.d.ts +4 -39
- package/lib/components/ticketBooking/utils/index.js +30 -69
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -12
- package/lib/utils/index.d.ts +1 -1
- package/package.json +25 -25
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/actionButtons/index.js +0 -486
- package/es/components/booking/components/actionButtons/index.less +0 -215
- package/es/components/booking/components/clearCartModal/index.d.ts +0 -10
- package/es/components/booking/components/clearCartModal/index.js +0 -50
- package/es/components/booking/components/clearCartModal/index.less +0 -109
- package/es/components/booking/components/customiseItemModal/index.d.ts +0 -28
- package/es/components/booking/components/customiseItemModal/index.js +0 -298
- package/es/components/booking/components/customiseItemModal/index.less +0 -606
- package/es/components/booking/components/voucherModal/index.d.ts +0 -19
- package/es/components/booking/components/voucherModal/index.js +0 -47
- package/es/components/booking/components/voucherModal/index.less +0 -23
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/booking/info2/cartClientCard/index.js +0 -343
- package/es/components/booking/info2/cartClientCard/index.less +0 -6
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/es/components/booking/info2/cartClientCard/locales.js +0 -26
- package/es/components/booking/info2/cartClientCard/types.d.ts +0 -13
- package/es/components/booking/info2/cartClientCard/types.js +0 -1
- package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/es/components/booking/info2/cartClientCard/utils.js +0 -7
- package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/es/components/booking/info2/service/editNormalService/index.js +0 -67
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +0 -191
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -33
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -213
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -79
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/es/components/ticketBooking/components/bookingDataPanel/constants.js +0 -25
- package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +0 -74
- package/es/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -71
- 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 +0 -11
- package/es/components/ticketBooking/components/floatButtons/index.js +0 -19
- package/es/components/ticketBooking/components/floatButtons/index.less +0 -17
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -5
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/index.js +0 -3
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -247
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +0 -52
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -30
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -29
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -49
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -20
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useToast.js +0 -9
- package/es/hooks/useTranslationOriginal.d.ts +0 -1
- package/es/hooks/useTranslationOriginal.js +0 -10
- package/es/plus/clientCard/index.d.ts +0 -7
- package/es/plus/clientCard/index.js +0 -452
- package/es/plus/clientCard/index.less +0 -536
- package/es/plus/clientCard/line/index.d.ts +0 -9
- package/es/plus/clientCard/line/index.js +0 -157
- package/es/plus/clientCard/line/index.less +0 -142
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clientCard/locales.js +0 -17
- package/es/plus/clientCard/types.d.ts +0 -126
- package/es/plus/clientCard/types.js +0 -1
- package/es/plus/clientCard/utils.d.ts +0 -8
- package/es/plus/clientCard/utils.js +0 -59
- package/es/plus/clientName/index.d.ts +0 -4
- package/es/plus/clientName/index.js +0 -18
- package/es/plus/clientName/index.less +0 -10
- package/es/plus/clientName/type.d.ts +0 -13
- package/es/plus/clientName/type.js +0 -1
- package/es/plus/clientName/utils.d.ts +0 -2
- package/es/plus/clientName/utils.js +0 -18
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +0 -277
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/GenderField/index.js +0 -18
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/PhoneField/index.js +0 -52
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +0 -166
- package/es/plus/clinetSearch/Add/index.d.ts +0 -18
- package/es/plus/clinetSearch/Add/index.js +0 -212
- package/es/plus/clinetSearch/Add/index.less +0 -30
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -265
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/es/plus/clinetSearch/InfiniteScroll/index.js +0 -1
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/es/plus/clinetSearch/InfiniteScroll/types.js +0 -1
- package/es/plus/clinetSearch/index.d.ts +0 -18
- package/es/plus/clinetSearch/index.js +0 -214
- package/es/plus/clinetSearch/index.less +0 -91
- package/es/plus/clinetSearch/locales.d.ts +0 -102
- package/es/plus/clinetSearch/locales.js +0 -101
- package/es/plus/clinetSearch/serve.d.ts +0 -1
- package/es/plus/clinetSearch/serve.js +0 -31
- package/es/plus/clinetSearch/types.d.ts +0 -49
- package/es/plus/clinetSearch/types.js +0 -1
- package/es/plus/noteModal/AddTempModal.d.ts +0 -7
- package/es/plus/noteModal/AddTempModal.js +0 -64
- package/es/plus/noteModal/index.d.ts +0 -4
- package/es/plus/noteModal/index.js +0 -199
- package/es/plus/noteModal/index.less +0 -168
- package/es/plus/noteModal/locales.d.ts +0 -33
- package/es/plus/noteModal/locales.js +0 -32
- package/es/plus/noteModal/types.d.ts +0 -17
- package/es/plus/noteModal/types.js +0 -1
- package/es/pro/comprehensiveSearch/camera.svg +0 -4
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
- package/es/pro/comprehensiveSearch/index.d.ts +0 -9
- package/es/pro/comprehensiveSearch/index.js +0 -342
- package/es/pro/comprehensiveSearch/index.less +0 -323
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -18
- package/es/pro/comprehensiveSearch/locales.js +0 -17
- package/es/pro/comprehensiveSearch/types.d.ts +0 -31
- package/es/pro/comprehensiveSearch/types.js +0 -1
- package/es/pro/numberKeyboard/index.d.ts +0 -28
- package/es/pro/numberKeyboard/index.js +0 -155
- package/es/pro/numberKeyboard/index.less +0 -25
- package/es/pro/numberKeyboard/locales.d.ts +0 -12
- package/es/pro/numberKeyboard/locales.js +0 -11
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellNumberSelector/example.js +0 -68
- package/es/pro/pisellNumberSelector/index.d.ts +0 -26
- package/es/pro/pisellNumberSelector/index.js +0 -250
- package/es/pro/pisellNumberSelector/index.less +0 -193
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/es/pro/pisellPhoneKeyboard/index.js +0 -211
- package/es/pro/pisellPhoneKeyboard/index.less +0 -157
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellPhoneKeyboard/locales.js +0 -11
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/es/pro/pisellPriceKeyboardModal/index.js +0 -1
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardModal/types.js +0 -1
- package/es/pro/pisellPriceRadio/index.d.ts +0 -26
- package/es/pro/pisellPriceRadio/index.js +0 -113
- package/es/pro/pisellPriceRadio/index.less +0 -158
- package/es/pro/skuDetailModal/index.d.ts +0 -5
- package/es/pro/skuDetailModal/index.js +0 -352
- package/es/pro/skuDetailModal/index.less +0 -236
- package/es/pro/skuDetailModal/locales.d.ts +0 -48
- package/es/pro/skuDetailModal/locales.js +0 -47
- package/es/pro/skuDetailModal/types.d.ts +0 -347
- package/es/pro/skuDetailModal/types.js +0 -1
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/actionButtons/index.js +0 -386
- package/lib/components/booking/components/actionButtons/index.less +0 -215
- package/lib/components/booking/components/clearCartModal/index.d.ts +0 -10
- package/lib/components/booking/components/clearCartModal/index.js +0 -80
- package/lib/components/booking/components/clearCartModal/index.less +0 -109
- package/lib/components/booking/components/customiseItemModal/index.d.ts +0 -28
- package/lib/components/booking/components/customiseItemModal/index.js +0 -285
- package/lib/components/booking/components/customiseItemModal/index.less +0 -606
- package/lib/components/booking/components/voucherModal/index.d.ts +0 -19
- package/lib/components/booking/components/voucherModal/index.js +0 -83
- package/lib/components/booking/components/voucherModal/index.less +0 -23
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/booking/info2/cartClientCard/index.js +0 -298
- package/lib/components/booking/info2/cartClientCard/index.less +0 -6
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/lib/components/booking/info2/cartClientCard/locales.js +0 -50
- package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -13
- package/lib/components/booking/info2/cartClientCard/types.js +0 -17
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/lib/components/booking/info2/cartClientCard/utils.js +0 -37
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editNormalService/index.js +0 -100
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +0 -174
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -75
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -210
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -105
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +0 -57
- package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +0 -113
- package/lib/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -84
- 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 +0 -11
- package/lib/components/ticketBooking/components/floatButtons/index.js +0 -52
- package/lib/components/ticketBooking/components/floatButtons/index.less +0 -17
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -33
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/index.js +0 -27
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -147
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +0 -47
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -64
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -65
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -83
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -44
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useToast.js +0 -42
- package/lib/hooks/useTranslationOriginal.d.ts +0 -1
- package/lib/hooks/useTranslationOriginal.js +0 -42
- package/lib/plus/clientCard/index.d.ts +0 -7
- package/lib/plus/clientCard/index.js +0 -442
- package/lib/plus/clientCard/index.less +0 -536
- package/lib/plus/clientCard/line/index.d.ts +0 -9
- package/lib/plus/clientCard/line/index.js +0 -153
- package/lib/plus/clientCard/line/index.less +0 -142
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clientCard/locales.js +0 -41
- package/lib/plus/clientCard/types.d.ts +0 -126
- package/lib/plus/clientCard/types.js +0 -17
- package/lib/plus/clientCard/utils.d.ts +0 -8
- package/lib/plus/clientCard/utils.js +0 -75
- package/lib/plus/clientName/index.d.ts +0 -4
- package/lib/plus/clientName/index.js +0 -53
- package/lib/plus/clientName/index.less +0 -10
- package/lib/plus/clientName/type.d.ts +0 -13
- package/lib/plus/clientName/type.js +0 -17
- package/lib/plus/clientName/utils.d.ts +0 -2
- package/lib/plus/clientName/utils.js +0 -43
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +0 -256
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/GenderField/index.js +0 -52
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +0 -78
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +0 -193
- package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
- package/lib/plus/clinetSearch/Add/index.js +0 -243
- package/lib/plus/clinetSearch/Add/index.less +0 -30
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -235
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +0 -35
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +0 -17
- package/lib/plus/clinetSearch/index.d.ts +0 -18
- package/lib/plus/clinetSearch/index.js +0 -205
- package/lib/plus/clinetSearch/index.less +0 -91
- package/lib/plus/clinetSearch/locales.d.ts +0 -102
- package/lib/plus/clinetSearch/locales.js +0 -125
- package/lib/plus/clinetSearch/serve.d.ts +0 -1
- package/lib/plus/clinetSearch/serve.js +0 -33
- package/lib/plus/clinetSearch/types.d.ts +0 -49
- package/lib/plus/clinetSearch/types.js +0 -17
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -7
- package/lib/plus/noteModal/AddTempModal.js +0 -95
- package/lib/plus/noteModal/index.d.ts +0 -4
- package/lib/plus/noteModal/index.js +0 -199
- package/lib/plus/noteModal/index.less +0 -168
- package/lib/plus/noteModal/locales.d.ts +0 -33
- package/lib/plus/noteModal/locales.js +0 -56
- package/lib/plus/noteModal/types.d.ts +0 -17
- package/lib/plus/noteModal/types.js +0 -17
- package/lib/pro/comprehensiveSearch/camera.svg +0 -4
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/index.js +0 -259
- package/lib/pro/comprehensiveSearch/index.less +0 -323
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -18
- package/lib/pro/comprehensiveSearch/locales.js +0 -41
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
- package/lib/pro/comprehensiveSearch/types.js +0 -17
- package/lib/pro/numberKeyboard/index.d.ts +0 -28
- package/lib/pro/numberKeyboard/index.js +0 -182
- package/lib/pro/numberKeyboard/index.less +0 -25
- package/lib/pro/numberKeyboard/locales.d.ts +0 -12
- package/lib/pro/numberKeyboard/locales.js +0 -35
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellNumberSelector/example.js +0 -93
- package/lib/pro/pisellNumberSelector/index.d.ts +0 -26
- package/lib/pro/pisellNumberSelector/index.js +0 -270
- package/lib/pro/pisellNumberSelector/index.less +0 -193
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/lib/pro/pisellPhoneKeyboard/index.js +0 -220
- package/lib/pro/pisellPhoneKeyboard/index.less +0 -157
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellPhoneKeyboard/locales.js +0 -35
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/lib/pro/pisellPriceKeyboardModal/index.js +0 -35
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardModal/types.js +0 -17
- package/lib/pro/pisellPriceRadio/index.d.ts +0 -26
- package/lib/pro/pisellPriceRadio/index.js +0 -130
- package/lib/pro/pisellPriceRadio/index.less +0 -158
- package/lib/pro/skuDetailModal/index.d.ts +0 -5
- package/lib/pro/skuDetailModal/index.js +0 -311
- package/lib/pro/skuDetailModal/index.less +0 -236
- package/lib/pro/skuDetailModal/locales.d.ts +0 -48
- package/lib/pro/skuDetailModal/locales.js +0 -71
- package/lib/pro/skuDetailModal/types.d.ts +0 -347
- package/lib/pro/skuDetailModal/types.js +0 -17
- package/lowcode/client-card/fragments/cardStyle.ts +0 -63
- package/lowcode/client-card/fragments/nameStyle.ts +0 -34
- package/lowcode/client-card/fragments/pisellAvatar.ts +0 -87
- package/lowcode/client-card/fragments/tagConfig.ts +0 -88
- package/lowcode/client-card/meta.ts +0 -337
- package/lowcode/comprehensive-search/meta.ts +0 -261
@@ -1,536 +0,0 @@
|
|
1
|
-
.pisell-client-card {
|
2
|
-
background: var(--Base-white, #fff);
|
3
|
-
transition: all 0.3s ease;
|
4
|
-
position: relative;
|
5
|
-
padding: 8px;
|
6
|
-
border-radius: 8px;
|
7
|
-
|
8
|
-
&:hover {
|
9
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
10
|
-
}
|
11
|
-
|
12
|
-
// 内容容器
|
13
|
-
&__content {
|
14
|
-
display: flex;
|
15
|
-
align-items: center;
|
16
|
-
width: 100%;
|
17
|
-
gap: 8px;
|
18
|
-
}
|
19
|
-
|
20
|
-
// 基础信息区域
|
21
|
-
&__info {
|
22
|
-
display: flex;
|
23
|
-
gap: 8px;
|
24
|
-
flex: 1;
|
25
|
-
align-items: center;
|
26
|
-
overflow: hidden;
|
27
|
-
}
|
28
|
-
|
29
|
-
// 详细信息容器
|
30
|
-
&__details {
|
31
|
-
flex: 1;
|
32
|
-
min-width: 0;
|
33
|
-
display: flex;
|
34
|
-
flex-direction: column;
|
35
|
-
gap: 4px;
|
36
|
-
overflow: hidden;
|
37
|
-
}
|
38
|
-
|
39
|
-
// 姓名和标签行
|
40
|
-
&__name-tags {
|
41
|
-
display: flex;
|
42
|
-
align-items: center;
|
43
|
-
gap: 8px;
|
44
|
-
flex-wrap: wrap;
|
45
|
-
|
46
|
-
// 当标签为 inline 模式时的特殊处理
|
47
|
-
&--inline {
|
48
|
-
flex-wrap: nowrap;
|
49
|
-
overflow: hidden;
|
50
|
-
|
51
|
-
.pisell-client-card__name {
|
52
|
-
flex-grow: 1;
|
53
|
-
min-width: 0;
|
54
|
-
}
|
55
|
-
|
56
|
-
.pisell-client-card__tags {
|
57
|
-
flex: 1 0 42px;
|
58
|
-
overflow: hidden;
|
59
|
-
|
60
|
-
&--nowrap {
|
61
|
-
&::after {
|
62
|
-
background: linear-gradient(
|
63
|
-
to right,
|
64
|
-
rgba(255, 255, 255, 0),
|
65
|
-
rgba(255, 255, 255, 1)
|
66
|
-
);
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
// 字段容器
|
74
|
-
&__fields {
|
75
|
-
display: flex;
|
76
|
-
flex-direction: column;
|
77
|
-
gap: 4px;
|
78
|
-
}
|
79
|
-
|
80
|
-
// 插槽容器
|
81
|
-
&__slot-left {
|
82
|
-
display: flex;
|
83
|
-
align-items: center;
|
84
|
-
flex-shrink: 0;
|
85
|
-
}
|
86
|
-
|
87
|
-
&__slot-right {
|
88
|
-
display: flex;
|
89
|
-
align-items: center;
|
90
|
-
flex-shrink: 0;
|
91
|
-
}
|
92
|
-
|
93
|
-
// 操作区域
|
94
|
-
&__actions {
|
95
|
-
display: flex;
|
96
|
-
align-items: center;
|
97
|
-
flex-shrink: 0;
|
98
|
-
}
|
99
|
-
|
100
|
-
// 菜单按钮样式
|
101
|
-
&__menu-button {
|
102
|
-
border: none;
|
103
|
-
box-shadow: none;
|
104
|
-
padding: 4px;
|
105
|
-
width: 40px;
|
106
|
-
height: 40px;
|
107
|
-
|
108
|
-
&:hover {
|
109
|
-
background-color: rgba(0, 0, 0, 0.04);
|
110
|
-
}
|
111
|
-
|
112
|
-
&:focus {
|
113
|
-
background-color: rgba(0, 0, 0, 0.04);
|
114
|
-
}
|
115
|
-
}
|
116
|
-
|
117
|
-
// 头像样式
|
118
|
-
&__avatar-wrapper {
|
119
|
-
display: flex;
|
120
|
-
align-items: center;
|
121
|
-
justify-content: center;
|
122
|
-
position: relative;
|
123
|
-
}
|
124
|
-
|
125
|
-
&__avatar {
|
126
|
-
border: 1px solid #e5e7eb;
|
127
|
-
|
128
|
-
.ant-avatar-string {
|
129
|
-
font-weight: 600;
|
130
|
-
}
|
131
|
-
}
|
132
|
-
|
133
|
-
// 状态指示器样式
|
134
|
-
&__status-indicator {
|
135
|
-
position: absolute;
|
136
|
-
width: 12px;
|
137
|
-
height: 12px;
|
138
|
-
border-radius: 50%;
|
139
|
-
border: 2px solid #fff;
|
140
|
-
box-sizing: border-box;
|
141
|
-
z-index: 1;
|
142
|
-
|
143
|
-
// 默认位置(适用于圆形头像)
|
144
|
-
bottom: 0;
|
145
|
-
right: 0;
|
146
|
-
}
|
147
|
-
|
148
|
-
// 针对不同头像形状和尺寸的状态指示器位置调整
|
149
|
-
&__avatar-wrapper {
|
150
|
-
// 方形头像的状态指示器位置
|
151
|
-
.ant-avatar-square ~ .pisell-client-card__status-indicator {
|
152
|
-
bottom: -2px;
|
153
|
-
right: -2px;
|
154
|
-
}
|
155
|
-
|
156
|
-
// 大尺寸头像的状态指示器位置
|
157
|
-
.ant-avatar-lg ~ .pisell-client-card__status-indicator,
|
158
|
-
.ant-avatar-xl ~ .pisell-client-card__status-indicator,
|
159
|
-
.ant-avatar-xxl ~ .pisell-client-card__status-indicator {
|
160
|
-
bottom: 2px;
|
161
|
-
right: 2px;
|
162
|
-
}
|
163
|
-
|
164
|
-
// 小尺寸头像的状态指示器位置
|
165
|
-
.ant-avatar-sm ~ .pisell-client-card__status-indicator,
|
166
|
-
.ant-avatar-xs ~ .pisell-client-card__status-indicator {
|
167
|
-
bottom: -1px;
|
168
|
-
right: -1px;
|
169
|
-
}
|
170
|
-
|
171
|
-
// 方形小尺寸头像的特殊处理
|
172
|
-
.ant-avatar-square.ant-avatar-sm ~ .pisell-client-card__status-indicator,
|
173
|
-
.ant-avatar-square.ant-avatar-xs ~ .pisell-client-card__status-indicator {
|
174
|
-
bottom: -3px;
|
175
|
-
right: -3px;
|
176
|
-
}
|
177
|
-
|
178
|
-
// 方形大尺寸头像的特殊处理
|
179
|
-
.ant-avatar-square.ant-avatar-lg ~ .pisell-client-card__status-indicator,
|
180
|
-
.ant-avatar-square.ant-avatar-xl ~ .pisell-client-card__status-indicator,
|
181
|
-
.ant-avatar-square.ant-avatar-xxl ~ .pisell-client-card__status-indicator {
|
182
|
-
bottom: 0;
|
183
|
-
right: 0;
|
184
|
-
}
|
185
|
-
}
|
186
|
-
|
187
|
-
&__avatar-default {
|
188
|
-
width: 100%;
|
189
|
-
height: 100%;
|
190
|
-
background: #f3f4f6;
|
191
|
-
display: flex;
|
192
|
-
align-items: center;
|
193
|
-
justify-content: center;
|
194
|
-
color: #9ca3af;
|
195
|
-
}
|
196
|
-
|
197
|
-
&__avatar-img {
|
198
|
-
width: 100%;
|
199
|
-
height: 100%;
|
200
|
-
object-fit: cover;
|
201
|
-
}
|
202
|
-
|
203
|
-
&__avatar-text {
|
204
|
-
background: #e5e7eb;
|
205
|
-
color: #374151;
|
206
|
-
font-weight: 600;
|
207
|
-
font-size: 14px;
|
208
|
-
width: 100%;
|
209
|
-
height: 100%;
|
210
|
-
display: flex;
|
211
|
-
align-items: center;
|
212
|
-
justify-content: center;
|
213
|
-
}
|
214
|
-
|
215
|
-
&__contact {
|
216
|
-
font-size: 14px;
|
217
|
-
color: #6b7280;
|
218
|
-
white-space: nowrap;
|
219
|
-
overflow: hidden;
|
220
|
-
text-overflow: ellipsis;
|
221
|
-
|
222
|
-
// 地址字段允许显示两行
|
223
|
-
&--address {
|
224
|
-
white-space: normal;
|
225
|
-
display: -webkit-box;
|
226
|
-
-webkit-line-clamp: 2;
|
227
|
-
-webkit-box-orient: vertical;
|
228
|
-
overflow: hidden;
|
229
|
-
text-overflow: ellipsis;
|
230
|
-
line-height: 1.4;
|
231
|
-
}
|
232
|
-
}
|
233
|
-
|
234
|
-
// 标签样式
|
235
|
-
&__tags {
|
236
|
-
display: flex;
|
237
|
-
gap: 8px;
|
238
|
-
flex-wrap: wrap;
|
239
|
-
|
240
|
-
> span {
|
241
|
-
border-radius: 16px;
|
242
|
-
margin: 0;
|
243
|
-
}
|
244
|
-
|
245
|
-
&:last-child {
|
246
|
-
margin-bottom: 0;
|
247
|
-
}
|
248
|
-
|
249
|
-
&--nowrap {
|
250
|
-
flex-wrap: nowrap;
|
251
|
-
overflow: hidden;
|
252
|
-
max-width: 100%;
|
253
|
-
|
254
|
-
// 不换行时,超出的标签隐藏
|
255
|
-
.pisell-client-card__tag {
|
256
|
-
flex-shrink: 0;
|
257
|
-
|
258
|
-
&:last-child {
|
259
|
-
flex-shrink: 1;
|
260
|
-
min-width: 0;
|
261
|
-
overflow: hidden;
|
262
|
-
}
|
263
|
-
}
|
264
|
-
|
265
|
-
// 当标签过多时,使用渐变遮罩效果
|
266
|
-
// position: relative;
|
267
|
-
|
268
|
-
// &::after {
|
269
|
-
// content: '';
|
270
|
-
// position: absolute;
|
271
|
-
// right: -5px;
|
272
|
-
// top: 0;
|
273
|
-
// bottom: 0;
|
274
|
-
// width: 20px;
|
275
|
-
// background: linear-gradient(
|
276
|
-
// to right,
|
277
|
-
// rgba(255, 255, 255, 0),
|
278
|
-
// rgba(255, 255, 255, 1)
|
279
|
-
// );
|
280
|
-
// pointer-events: none;
|
281
|
-
// z-index: 1;
|
282
|
-
// }
|
283
|
-
}
|
284
|
-
|
285
|
-
&--separate {
|
286
|
-
margin-top: 4px;
|
287
|
-
}
|
288
|
-
}
|
289
|
-
|
290
|
-
// 单个标签样式
|
291
|
-
&__tag {
|
292
|
-
&--nowrap {
|
293
|
-
// 不换行模式下的标签样式
|
294
|
-
white-space: nowrap;
|
295
|
-
overflow: hidden;
|
296
|
-
text-overflow: ellipsis;
|
297
|
-
}
|
298
|
-
|
299
|
-
&--wrap {
|
300
|
-
// 换行模式下的标签样式
|
301
|
-
word-break: break-all;
|
302
|
-
white-space: nowrap;
|
303
|
-
overflow: hidden;
|
304
|
-
text-overflow: ellipsis;
|
305
|
-
}
|
306
|
-
}
|
307
|
-
|
308
|
-
&__add-icon {
|
309
|
-
width: 32px;
|
310
|
-
height: 32px;
|
311
|
-
border-radius: 50%;
|
312
|
-
border: 2px solid currentColor;
|
313
|
-
display: flex;
|
314
|
-
align-items: center;
|
315
|
-
justify-content: center;
|
316
|
-
transition: all 0.2s ease;
|
317
|
-
}
|
318
|
-
|
319
|
-
&__action-btn {
|
320
|
-
display: flex;
|
321
|
-
padding: 0;
|
322
|
-
justify-content: center;
|
323
|
-
align-items: center;
|
324
|
-
width: 40px;
|
325
|
-
height: 40px;
|
326
|
-
}
|
327
|
-
|
328
|
-
// 操作菜单样式
|
329
|
-
&__menu-button {
|
330
|
-
&.ant-btn {
|
331
|
-
border-color: #e5e7eb;
|
332
|
-
color: #6b7280;
|
333
|
-
}
|
334
|
-
}
|
335
|
-
|
336
|
-
&__menu {
|
337
|
-
width: 32px;
|
338
|
-
height: 32px;
|
339
|
-
border-radius: 6px;
|
340
|
-
display: flex;
|
341
|
-
align-items: center;
|
342
|
-
justify-content: center;
|
343
|
-
color: #6b7280;
|
344
|
-
opacity: 0;
|
345
|
-
transition: all 0.2s ease;
|
346
|
-
position: relative;
|
347
|
-
cursor: pointer;
|
348
|
-
}
|
349
|
-
|
350
|
-
&__dropdown {
|
351
|
-
position: absolute;
|
352
|
-
top: 100%;
|
353
|
-
right: 0;
|
354
|
-
margin-top: 4px;
|
355
|
-
background: #ffffff;
|
356
|
-
border: 1px solid #e5e7eb;
|
357
|
-
border-radius: 8px;
|
358
|
-
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
359
|
-
0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
360
|
-
z-index: 10;
|
361
|
-
min-width: 160px;
|
362
|
-
}
|
363
|
-
|
364
|
-
&__dropdown-item {
|
365
|
-
display: block;
|
366
|
-
width: 100%;
|
367
|
-
padding: 8px 12px;
|
368
|
-
font-size: 14px;
|
369
|
-
color: #374151;
|
370
|
-
background: none;
|
371
|
-
border: none;
|
372
|
-
text-align: left;
|
373
|
-
cursor: pointer;
|
374
|
-
transition: background-color 0.2s ease;
|
375
|
-
|
376
|
-
&:first-child {
|
377
|
-
border-radius: 8px 8px 0 0;
|
378
|
-
}
|
379
|
-
|
380
|
-
&:last-child {
|
381
|
-
border-radius: 0 0 8px 8px;
|
382
|
-
}
|
383
|
-
|
384
|
-
&--danger {
|
385
|
-
color: #dc2626;
|
386
|
-
|
387
|
-
&:hover {
|
388
|
-
background: #fef2f2;
|
389
|
-
}
|
390
|
-
}
|
391
|
-
}
|
392
|
-
|
393
|
-
// 垂直布局
|
394
|
-
&--vertical {
|
395
|
-
.pisell-client-card__content {
|
396
|
-
flex-direction: column;
|
397
|
-
align-items: center;
|
398
|
-
text-align: center;
|
399
|
-
}
|
400
|
-
|
401
|
-
.pisell-client-card__info {
|
402
|
-
flex-direction: column;
|
403
|
-
align-items: center;
|
404
|
-
gap: 8px;
|
405
|
-
width: 100%;
|
406
|
-
}
|
407
|
-
|
408
|
-
.pisell-client-card__details {
|
409
|
-
width: 100%;
|
410
|
-
align-items: center;
|
411
|
-
text-align: center;
|
412
|
-
}
|
413
|
-
|
414
|
-
.pisell-client-card__fields {
|
415
|
-
align-items: center;
|
416
|
-
}
|
417
|
-
|
418
|
-
.pisell-client-card__extra-fields {
|
419
|
-
align-items: center;
|
420
|
-
}
|
421
|
-
|
422
|
-
.pisell-client-card__actions {
|
423
|
-
display: none;
|
424
|
-
}
|
425
|
-
}
|
426
|
-
|
427
|
-
// 水平布局
|
428
|
-
&--horizontal {
|
429
|
-
.pisell-client-card__info {
|
430
|
-
flex-direction: row;
|
431
|
-
align-items: center;
|
432
|
-
}
|
433
|
-
|
434
|
-
.pisell-client-card__avatar-wrapper {
|
435
|
-
align-self: flex-start;
|
436
|
-
}
|
437
|
-
}
|
438
|
-
|
439
|
-
// 空状态样式
|
440
|
-
&--empty {
|
441
|
-
display: flex;
|
442
|
-
flex-direction: column;
|
443
|
-
align-items: center;
|
444
|
-
justify-content: center;
|
445
|
-
transition: all 0.3s;
|
446
|
-
|
447
|
-
&:hover {
|
448
|
-
background-color: #f6f6f6;
|
449
|
-
}
|
450
|
-
|
451
|
-
.pisell-client-card__empty-title {
|
452
|
-
font-size: 16px;
|
453
|
-
font-weight: 500;
|
454
|
-
color: #262626;
|
455
|
-
margin-bottom: 4px;
|
456
|
-
}
|
457
|
-
|
458
|
-
.pisell-client-card__empty-subtitle {
|
459
|
-
font-size: 14px;
|
460
|
-
color: #8c8c8c;
|
461
|
-
}
|
462
|
-
|
463
|
-
.pisell-client-card__empty-description {
|
464
|
-
font-size: 12px;
|
465
|
-
color: #8c8c8c;
|
466
|
-
margin-top: 2px;
|
467
|
-
overflow: hidden;
|
468
|
-
text-overflow: ellipsis;
|
469
|
-
white-space: nowrap;
|
470
|
-
}
|
471
|
-
|
472
|
-
.pisell-client-card__plugin-icon {
|
473
|
-
font-size: 16px;
|
474
|
-
color: #1890ff;
|
475
|
-
display: flex;
|
476
|
-
align-items: center;
|
477
|
-
justify-content: center;
|
478
|
-
}
|
479
|
-
}
|
480
|
-
|
481
|
-
// 联系信息样式
|
482
|
-
&__contact {
|
483
|
-
&-item {
|
484
|
-
font-size: 12px;
|
485
|
-
color: #8c8c8c;
|
486
|
-
display: flex;
|
487
|
-
align-items: center;
|
488
|
-
gap: 4px;
|
489
|
-
}
|
490
|
-
}
|
491
|
-
|
492
|
-
// 额外字段样式
|
493
|
-
&__extra-fields {
|
494
|
-
display: flex;
|
495
|
-
flex-direction: column;
|
496
|
-
gap: 2px;
|
497
|
-
}
|
498
|
-
|
499
|
-
&__extra-field {
|
500
|
-
font-size: 12px;
|
501
|
-
color: #595959;
|
502
|
-
display: flex;
|
503
|
-
align-items: center;
|
504
|
-
gap: 4px;
|
505
|
-
|
506
|
-
&-label {
|
507
|
-
white-space: nowrap;
|
508
|
-
overflow: hidden;
|
509
|
-
text-overflow: ellipsis;
|
510
|
-
flex-shrink: 0;
|
511
|
-
}
|
512
|
-
|
513
|
-
&-value {
|
514
|
-
white-space: nowrap;
|
515
|
-
overflow: hidden;
|
516
|
-
text-overflow: ellipsis;
|
517
|
-
flex: 1;
|
518
|
-
min-width: 0;
|
519
|
-
|
520
|
-
// 地址类型的额外字段允许显示两行
|
521
|
-
&--address {
|
522
|
-
white-space: normal;
|
523
|
-
display: -webkit-box;
|
524
|
-
-webkit-line-clamp: 2;
|
525
|
-
-webkit-box-orient: vertical;
|
526
|
-
overflow: hidden;
|
527
|
-
text-overflow: ellipsis;
|
528
|
-
line-height: 1.4;
|
529
|
-
}
|
530
|
-
}
|
531
|
-
|
532
|
-
&-icon {
|
533
|
-
flex-shrink: 0;
|
534
|
-
}
|
535
|
-
}
|
536
|
-
}
|
@@ -1,157 +0,0 @@
|
|
1
|
-
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; }
|
2
|
-
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; }
|
3
|
-
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; }
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
5
|
-
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); }
|
6
|
-
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); }
|
7
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
8
|
-
import React, { useMemo } from 'react';
|
9
|
-
import classNames from 'classnames';
|
10
|
-
import { Tag } from 'antd';
|
11
|
-
import { PisellAvatar } from '@pisell/materials';
|
12
|
-
import ClientName from "../../clientName";
|
13
|
-
import { getAvatarText } from "../utils";
|
14
|
-
import "./index.less";
|
15
|
-
import { PREFIX } from "../../clientCard";
|
16
|
-
|
17
|
-
/**
|
18
|
-
* 客户卡片组件 - 行内布局
|
19
|
-
* 所有信息在一行展示:头像、客户名、联系方式(电话优先于邮箱)、标签
|
20
|
-
*/
|
21
|
-
var LineCard = function LineCard(_ref) {
|
22
|
-
var dataSource = _ref.dataSource,
|
23
|
-
isShowName = _ref.isShowName,
|
24
|
-
_ref$isShowAvatar = _ref.isShowAvatar,
|
25
|
-
isShowAvatar = _ref$isShowAvatar === void 0 ? true : _ref$isShowAvatar,
|
26
|
-
_ref$isShowPhone = _ref.isShowPhone,
|
27
|
-
isShowPhone = _ref$isShowPhone === void 0 ? true : _ref$isShowPhone,
|
28
|
-
_ref$isShowEmail = _ref.isShowEmail,
|
29
|
-
isShowEmail = _ref$isShowEmail === void 0 ? true : _ref$isShowEmail,
|
30
|
-
_ref$isShowStatus = _ref.isShowStatus,
|
31
|
-
isShowStatus = _ref$isShowStatus === void 0 ? false : _ref$isShowStatus,
|
32
|
-
_ref$style = _ref.style,
|
33
|
-
customStyle = _ref$style === void 0 ? {} : _ref$style,
|
34
|
-
horizontalGap = _ref.horizontalGap,
|
35
|
-
_ref$avatar = _ref.avatar,
|
36
|
-
avatar = _ref$avatar === void 0 ? {} : _ref$avatar,
|
37
|
-
_ref$status = _ref.status,
|
38
|
-
status = _ref$status === void 0 ? {} : _ref$status,
|
39
|
-
_ref$nameStyle = _ref.nameStyle,
|
40
|
-
nameStyle = _ref$nameStyle === void 0 ? {} : _ref$nameStyle,
|
41
|
-
_ref$tags = _ref.tags,
|
42
|
-
tags = _ref$tags === void 0 ? [] : _ref$tags,
|
43
|
-
_ref$tag = _ref.tag,
|
44
|
-
tag = _ref$tag === void 0 ? {} : _ref$tag,
|
45
|
-
slots = _ref.slots,
|
46
|
-
onViewClient = _ref.onViewClient;
|
47
|
-
// 获取联系方式(电话优先于邮箱)
|
48
|
-
var contactText = useMemo(function () {
|
49
|
-
if (!dataSource) return '';
|
50
|
-
var phone = dataSource.phone,
|
51
|
-
email = dataSource.email;
|
52
|
-
if (isShowPhone && phone) return phone;
|
53
|
-
if (isShowEmail && email) return email;
|
54
|
-
return '';
|
55
|
-
}, [dataSource, isShowPhone, isShowEmail]);
|
56
|
-
|
57
|
-
// 渲染头像
|
58
|
-
var renderAvatar = function renderAvatar() {
|
59
|
-
if (!isShowAvatar || !dataSource) return null;
|
60
|
-
var icon = avatar.icon,
|
61
|
-
_avatar$shape = avatar.shape,
|
62
|
-
shape = _avatar$shape === void 0 ? 'circle' : _avatar$shape,
|
63
|
-
_avatar$borderRadius = avatar.borderRadius,
|
64
|
-
borderRadius = _avatar$borderRadius === void 0 ? 4 : _avatar$borderRadius,
|
65
|
-
_avatar$size = avatar.size,
|
66
|
-
size = _avatar$size === void 0 ? 'sm' : _avatar$size,
|
67
|
-
_avatar$useTextAvatar = avatar.useTextAvatar,
|
68
|
-
useTextAvatar = _avatar$useTextAvatar === void 0 ? false : _avatar$useTextAvatar,
|
69
|
-
children = avatar.children;
|
70
|
-
var avatarProps = {
|
71
|
-
shape: shape,
|
72
|
-
size: size,
|
73
|
-
className: "".concat(PREFIX, "__avatar")
|
74
|
-
};
|
75
|
-
if (shape === 'square') {
|
76
|
-
avatarProps.style = {
|
77
|
-
borderRadius: borderRadius
|
78
|
-
};
|
79
|
-
}
|
80
|
-
|
81
|
-
// 状态指示器
|
82
|
-
var statusIndicator = isShowStatus && /*#__PURE__*/React.createElement("div", {
|
83
|
-
className: "".concat(PREFIX, "__status-indicator"),
|
84
|
-
style: {
|
85
|
-
backgroundColor: status.color || '#17B26A'
|
86
|
-
}
|
87
|
-
});
|
88
|
-
if (useTextAvatar) {
|
89
|
-
var text = children || getAvatarText(dataSource.display_name || dataSource.nickname || '');
|
90
|
-
return /*#__PURE__*/React.createElement("div", {
|
91
|
-
className: "".concat(PREFIX, "__avatar-wrapper")
|
92
|
-
}, /*#__PURE__*/React.createElement(PisellAvatar, avatarProps, text), statusIndicator);
|
93
|
-
}
|
94
|
-
if (icon) {
|
95
|
-
return /*#__PURE__*/React.createElement("div", {
|
96
|
-
className: "".concat(PREFIX, "__avatar-wrapper")
|
97
|
-
}, /*#__PURE__*/React.createElement(PisellAvatar, _extends({}, avatarProps, {
|
98
|
-
icon: icon
|
99
|
-
})), statusIndicator);
|
100
|
-
}
|
101
|
-
return /*#__PURE__*/React.createElement("div", {
|
102
|
-
className: "".concat(PREFIX, "__avatar-wrapper")
|
103
|
-
}, /*#__PURE__*/React.createElement(PisellAvatar, _extends({}, avatarProps, {
|
104
|
-
src: dataSource.cover
|
105
|
-
})), statusIndicator);
|
106
|
-
};
|
107
|
-
|
108
|
-
// 渲染标签
|
109
|
-
var renderTags = function renderTags() {
|
110
|
-
var tagsToShow = tags.length > 0 ? tags : (dataSource === null || dataSource === void 0 ? void 0 : dataSource.tags) || [];
|
111
|
-
if (!tagsToShow.length) return null;
|
112
|
-
var _tag$gap = tag.gap,
|
113
|
-
gap = _tag$gap === void 0 ? 6 : _tag$gap,
|
114
|
-
_tag$flexWrap = tag.flexWrap,
|
115
|
-
flexWrap = _tag$flexWrap === void 0 ? 'nowrap' : _tag$flexWrap;
|
116
|
-
return /*#__PURE__*/React.createElement("div", {
|
117
|
-
className: "".concat(PREFIX, "__tags ").concat(PREFIX, "__tags--line"),
|
118
|
-
style: {
|
119
|
-
gap: gap,
|
120
|
-
flexWrap: flexWrap
|
121
|
-
}
|
122
|
-
}, tagsToShow.map(function (tagItem, index) {
|
123
|
-
var content = typeof tagItem === 'string' ? tagItem : tagItem.children || tagItem.label;
|
124
|
-
var tagProps = {
|
125
|
-
key: index,
|
126
|
-
color: _typeof(tagItem) === 'object' ? tagItem.color : undefined,
|
127
|
-
className: "".concat(PREFIX, "__tag")
|
128
|
-
};
|
129
|
-
return /*#__PURE__*/React.createElement(Tag, tagProps, content);
|
130
|
-
}));
|
131
|
-
};
|
132
|
-
|
133
|
-
// 卡片样式
|
134
|
-
var cardStyle = _objectSpread(_objectSpread({}, customStyle), {}, {
|
135
|
-
gap: horizontalGap
|
136
|
-
});
|
137
|
-
return /*#__PURE__*/React.createElement("div", {
|
138
|
-
className: classNames(PREFIX, "".concat(PREFIX, "--line")),
|
139
|
-
style: cardStyle,
|
140
|
-
onClick: function onClick() {
|
141
|
-
return dataSource && (onViewClient === null || onViewClient === void 0 ? void 0 : onViewClient(dataSource));
|
142
|
-
}
|
143
|
-
}, slots === null || slots === void 0 ? void 0 : slots.top, /*#__PURE__*/React.createElement("div", {
|
144
|
-
className: "".concat(PREFIX, "__content")
|
145
|
-
}, (slots === null || slots === void 0 ? void 0 : slots.left) && /*#__PURE__*/React.createElement("div", {
|
146
|
-
className: "".concat(PREFIX, "__slot-left")
|
147
|
-
}, slots === null || slots === void 0 ? void 0 : slots.left), renderAvatar(), isShowName && /*#__PURE__*/React.createElement(ClientName, {
|
148
|
-
dataSource: dataSource,
|
149
|
-
style: nameStyle,
|
150
|
-
className: "pisell-client-card__name--line"
|
151
|
-
}), contactText && /*#__PURE__*/React.createElement("div", {
|
152
|
-
className: "".concat(PREFIX, "__contact ").concat(PREFIX, "__contact--line")
|
153
|
-
}, contactText), renderTags(), (slots === null || slots === void 0 ? void 0 : slots.right) && /*#__PURE__*/React.createElement("div", {
|
154
|
-
className: "".concat(PREFIX, "__slot-right")
|
155
|
-
}, slots === null || slots === void 0 ? void 0 : slots.right)), slots === null || slots === void 0 ? void 0 : slots.bottom);
|
156
|
-
};
|
157
|
-
export default LineCard;
|