@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,442 +0,0 @@
|
|
1
|
-
var __create = Object.create;
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
-
};
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
-
for (let key of __getOwnPropNames(from))
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
-
}
|
17
|
-
return to;
|
18
|
-
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
-
mod
|
26
|
-
));
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
-
|
29
|
-
// src/plus/clientCard/index.tsx
|
30
|
-
var clientCard_exports = {};
|
31
|
-
__export(clientCard_exports, {
|
32
|
-
PREFIX: () => PREFIX,
|
33
|
-
default: () => clientCard_default,
|
34
|
-
processClientData: () => processClientData
|
35
|
-
});
|
36
|
-
module.exports = __toCommonJS(clientCard_exports);
|
37
|
-
var import_react = __toESM(require("react"));
|
38
|
-
var import_antd = require("antd");
|
39
|
-
var import_materials = require("@pisell/materials");
|
40
|
-
var import_icon = require("@pisell/icon");
|
41
|
-
var import_classnames = __toESM(require("classnames"));
|
42
|
-
var import_line = __toESM(require("./line"));
|
43
|
-
var import_locales = __toESM(require("./locales"));
|
44
|
-
var import_utils = require("@pisell/utils");
|
45
|
-
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
46
|
-
var import_clientName = __toESM(require("../clientName"));
|
47
|
-
var import_utils2 = require("./utils");
|
48
|
-
var import_index = require("./index.less");
|
49
|
-
var processClientData = (dataSource, fieldNames = {}) => {
|
50
|
-
if (!dataSource) return null;
|
51
|
-
const fields = [
|
52
|
-
"id",
|
53
|
-
"name",
|
54
|
-
"display_name",
|
55
|
-
"nickname",
|
56
|
-
"cover",
|
57
|
-
"phone",
|
58
|
-
"email",
|
59
|
-
"birthday",
|
60
|
-
"address",
|
61
|
-
"tags"
|
62
|
-
];
|
63
|
-
const _data = {};
|
64
|
-
fields.forEach((key) => {
|
65
|
-
_data[key] = (0, import_utils2.getFieldValue)(dataSource, key, fieldNames);
|
66
|
-
});
|
67
|
-
return {
|
68
|
-
...dataSource,
|
69
|
-
..._data
|
70
|
-
};
|
71
|
-
};
|
72
|
-
var PREFIX = "pisell-client-card";
|
73
|
-
var renderAvatar = (processedData, avatarConfig = {}, isShowAvatar = true, isShowStatus = false, statusConfig = {}) => {
|
74
|
-
if (!isShowAvatar || !processedData) return null;
|
75
|
-
const { icon, useTextAvatar = false, children } = avatarConfig;
|
76
|
-
const statusIndicator = isShowStatus && /* @__PURE__ */ import_react.default.createElement(
|
77
|
-
"div",
|
78
|
-
{
|
79
|
-
className: `${PREFIX}__status-indicator`,
|
80
|
-
style: {
|
81
|
-
backgroundColor: statusConfig.color || "#17B26A"
|
82
|
-
}
|
83
|
-
}
|
84
|
-
);
|
85
|
-
if (useTextAvatar) {
|
86
|
-
const text = children || (0, import_utils2.getAvatarText)(
|
87
|
-
processedData.name || processedData.display_name || processedData.nickname || ""
|
88
|
-
);
|
89
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__avatar-wrapper` }, /* @__PURE__ */ import_react.default.createElement(import_materials.PisellAvatar, { className: `${PREFIX}__avatar`, ...avatarConfig }, text), statusIndicator);
|
90
|
-
}
|
91
|
-
if (icon) {
|
92
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__avatar-wrapper` }, /* @__PURE__ */ import_react.default.createElement(
|
93
|
-
import_materials.PisellAvatar,
|
94
|
-
{
|
95
|
-
className: `${PREFIX}__avatar`,
|
96
|
-
...avatarConfig,
|
97
|
-
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: icon })
|
98
|
-
}
|
99
|
-
), statusIndicator);
|
100
|
-
}
|
101
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__avatar-wrapper` }, /* @__PURE__ */ import_react.default.createElement(
|
102
|
-
import_materials.PisellAvatar,
|
103
|
-
{
|
104
|
-
className: `${PREFIX}__avatar`,
|
105
|
-
...avatarConfig,
|
106
|
-
src: processedData.cover
|
107
|
-
}
|
108
|
-
), statusIndicator);
|
109
|
-
};
|
110
|
-
var renderTags = (processedData, isShowTag = true, tags = [], tagConfig = {}) => {
|
111
|
-
if (!isShowTag) return null;
|
112
|
-
const tagsToShow = tags.length > 0 ? tags : (processedData == null ? void 0 : processedData.tags) || [];
|
113
|
-
if (!tagsToShow.length) return null;
|
114
|
-
const { gap = 4, flexWrap = "nowrap" } = tagConfig;
|
115
|
-
const isNoWrap = flexWrap === "nowrap";
|
116
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
117
|
-
"div",
|
118
|
-
{
|
119
|
-
className: (0, import_classnames.default)(
|
120
|
-
`${PREFIX}__tags`,
|
121
|
-
isNoWrap && `${PREFIX}__tags--nowrap`
|
122
|
-
),
|
123
|
-
style: { gap, flexWrap }
|
124
|
-
},
|
125
|
-
tagsToShow.map((tag, index) => {
|
126
|
-
const content = typeof tag === "string" ? tag : tag.children || tag.label;
|
127
|
-
const tagProps = {
|
128
|
-
key: index,
|
129
|
-
color: typeof tag === "object" ? tag.color : void 0,
|
130
|
-
className: (0, import_classnames.default)(
|
131
|
-
`${PREFIX}__tag`,
|
132
|
-
isNoWrap && `${PREFIX}__tag--nowrap`,
|
133
|
-
!isNoWrap && `${PREFIX}__tag--wrap`
|
134
|
-
)
|
135
|
-
};
|
136
|
-
return import_react.default.createElement(import_antd.Tag, tagProps, content);
|
137
|
-
})
|
138
|
-
);
|
139
|
-
};
|
140
|
-
var renderContactInfo = (processedData, isShowPhone = true, isShowEmail = true, isShowBirthday = true, isShowAddress = true, gap, cardType) => {
|
141
|
-
if (!processedData) return null;
|
142
|
-
const fields = [];
|
143
|
-
if (cardType === "b2") {
|
144
|
-
if (isShowPhone && processedData.phone) {
|
145
|
-
fields.push({ value: processedData.phone, type: "phone" });
|
146
|
-
} else if (isShowEmail && processedData.email) {
|
147
|
-
fields.push({ value: processedData.email, type: "email" });
|
148
|
-
}
|
149
|
-
} else {
|
150
|
-
if (isShowPhone && processedData.phone) {
|
151
|
-
fields.push({ value: processedData.phone, type: "phone" });
|
152
|
-
}
|
153
|
-
if (isShowEmail && processedData.email) {
|
154
|
-
fields.push({ value: processedData.email, type: "email" });
|
155
|
-
}
|
156
|
-
}
|
157
|
-
if (isShowBirthday && processedData.birthday) {
|
158
|
-
fields.push({ value: processedData.birthday, type: "birthday" });
|
159
|
-
}
|
160
|
-
if (isShowAddress && processedData.address) {
|
161
|
-
fields.push({ value: processedData.address, type: "address" });
|
162
|
-
}
|
163
|
-
if (!fields.length) return null;
|
164
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__fields`, style: { gap } }, fields.map((field, index) => /* @__PURE__ */ import_react.default.createElement(
|
165
|
-
"div",
|
166
|
-
{
|
167
|
-
key: index,
|
168
|
-
className: (0, import_classnames.default)(
|
169
|
-
`${PREFIX}__contact`,
|
170
|
-
field.type === "address" && `${PREFIX}__contact--address`
|
171
|
-
)
|
172
|
-
},
|
173
|
-
field.value
|
174
|
-
)));
|
175
|
-
};
|
176
|
-
var renderExtraFields = (extraFields = [], gap) => {
|
177
|
-
if (!extraFields.length) return null;
|
178
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__extra-fields`, style: { gap } }, extraFields.map((field, index) => {
|
179
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { key: index, className: `${PREFIX}__extra-field` }, field.icon && /* @__PURE__ */ import_react.default.createElement(
|
180
|
-
import_materials.Iconfont,
|
181
|
-
{
|
182
|
-
type: field.icon,
|
183
|
-
className: `${PREFIX}__extra-field-icon`,
|
184
|
-
style: {
|
185
|
-
fontSize: field.iconSize,
|
186
|
-
color: field.iconColor
|
187
|
-
}
|
188
|
-
}
|
189
|
-
), field.isShowLabel !== false && field.label && /* @__PURE__ */ import_react.default.createElement("span", { className: `${PREFIX}__extra-field-label` }, field.label, ":"), field.isShowValue !== false && field.value && /* @__PURE__ */ import_react.default.createElement("span", { className: (0, import_classnames.default)(`${PREFIX}__extra-field-value`) }, field.value));
|
190
|
-
}));
|
191
|
-
};
|
192
|
-
var ClientCard = ({
|
193
|
-
// 基础配置
|
194
|
-
type = "b2",
|
195
|
-
direction = "horizontal",
|
196
|
-
dataSource,
|
197
|
-
fieldNames = {},
|
198
|
-
// 样式配置
|
199
|
-
style: customStyle = {},
|
200
|
-
horizontalGap,
|
201
|
-
verticalGap,
|
202
|
-
// 显示配置
|
203
|
-
isShowAvatar = true,
|
204
|
-
isShowName = true,
|
205
|
-
isShowPhone = true,
|
206
|
-
isShowEmail = true,
|
207
|
-
isShowBirthday = true,
|
208
|
-
isShowAddress = true,
|
209
|
-
isShowTag = true,
|
210
|
-
isShowStatus = false,
|
211
|
-
// 头像配置
|
212
|
-
avatar = {},
|
213
|
-
status = {},
|
214
|
-
// 姓名样式
|
215
|
-
defaultName,
|
216
|
-
nameStyle = {},
|
217
|
-
// 标签配置
|
218
|
-
tags = [],
|
219
|
-
tag = {},
|
220
|
-
// 额外字段
|
221
|
-
extraFields = [],
|
222
|
-
// 插槽
|
223
|
-
slots = {},
|
224
|
-
// 事件回调
|
225
|
-
onViewClient,
|
226
|
-
onAddClient,
|
227
|
-
onChangeClient,
|
228
|
-
onRemoveClient
|
229
|
-
}) => {
|
230
|
-
var _a, _b, _c;
|
231
|
-
const context = (0, import_useEngineContext.default)();
|
232
|
-
import_utils.locales.init(
|
233
|
-
import_locales.default,
|
234
|
-
((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.storage) == null ? void 0 : _c.get("umi_locale")) || "en"
|
235
|
-
);
|
236
|
-
const processed = (0, import_react.useMemo)(() => {
|
237
|
-
if (dataSource) {
|
238
|
-
return processClientData(dataSource, fieldNames);
|
239
|
-
}
|
240
|
-
return null;
|
241
|
-
}, [dataSource, fieldNames]);
|
242
|
-
const translatedExtraFields = (0, import_react.useMemo)(() => {
|
243
|
-
const _fields = extraFields.filter((item) => !!item);
|
244
|
-
return _fields;
|
245
|
-
}, [extraFields]);
|
246
|
-
const isWalkIn = (0, import_utils2.isWalkIn)(processed == null ? void 0 : processed.id);
|
247
|
-
if (isWalkIn) {
|
248
|
-
const cardStyle2 = {
|
249
|
-
...customStyle,
|
250
|
-
gap: horizontalGap
|
251
|
-
};
|
252
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
253
|
-
"div",
|
254
|
-
{
|
255
|
-
className: (0, import_classnames.default)(PREFIX, `${PREFIX}--empty`),
|
256
|
-
...{ onClick: () => onAddClient == null ? void 0 : onAddClient() },
|
257
|
-
style: { ...cardStyle2, cursor: "pointer" }
|
258
|
-
},
|
259
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__content` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__info` }, isShowAvatar && /* @__PURE__ */ import_react.default.createElement(
|
260
|
-
import_materials.PisellAvatar,
|
261
|
-
{
|
262
|
-
icon: avatar.icon ? /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: avatar.icon }) : /* @__PURE__ */ import_react.default.createElement(
|
263
|
-
import_icon.User01,
|
264
|
-
{
|
265
|
-
style: {
|
266
|
-
color: "#475467"
|
267
|
-
}
|
268
|
-
}
|
269
|
-
),
|
270
|
-
size: avatar.size
|
271
|
-
}
|
272
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__details`, style: { gap: verticalGap } }, isShowName && /* @__PURE__ */ import_react.default.createElement(
|
273
|
-
import_clientName.default,
|
274
|
-
{
|
275
|
-
dataSource: defaultName || import_utils.locales.getText("pisell2.text.add-client"),
|
276
|
-
style: nameStyle
|
277
|
-
}
|
278
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__empty-description` }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in")))), /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__actions` }, /* @__PURE__ */ import_react.default.createElement("span", { className: `${PREFIX}__plugin-icon` }, /* @__PURE__ */ import_react.default.createElement(
|
279
|
-
import_icon.PlusCircle,
|
280
|
-
{
|
281
|
-
style: {
|
282
|
-
fontSize: 28,
|
283
|
-
color: "#475467"
|
284
|
-
}
|
285
|
-
}
|
286
|
-
))))
|
287
|
-
);
|
288
|
-
}
|
289
|
-
if (type === "b1") {
|
290
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
291
|
-
import_line.default,
|
292
|
-
{
|
293
|
-
dataSource: processed,
|
294
|
-
isShowAvatar,
|
295
|
-
isShowPhone,
|
296
|
-
isShowEmail,
|
297
|
-
isShowStatus,
|
298
|
-
style: customStyle,
|
299
|
-
horizontalGap,
|
300
|
-
avatar,
|
301
|
-
status,
|
302
|
-
nameStyle,
|
303
|
-
tags,
|
304
|
-
tag,
|
305
|
-
slots,
|
306
|
-
onViewClient
|
307
|
-
}
|
308
|
-
);
|
309
|
-
}
|
310
|
-
const cardStyle = {
|
311
|
-
...customStyle,
|
312
|
-
gap: horizontalGap
|
313
|
-
};
|
314
|
-
const isVertical = direction === "vertical";
|
315
|
-
const isInlineTag = tag.placement === "inline";
|
316
|
-
const getFieldVisibility = () => {
|
317
|
-
switch (type) {
|
318
|
-
case "b2":
|
319
|
-
return {
|
320
|
-
showBirthday: false,
|
321
|
-
showAddress: false,
|
322
|
-
showExtraFields: false
|
323
|
-
};
|
324
|
-
case "b5":
|
325
|
-
return {
|
326
|
-
showBirthday: isShowBirthday,
|
327
|
-
showAddress: isShowAddress,
|
328
|
-
showExtraFields: false
|
329
|
-
};
|
330
|
-
case "b9":
|
331
|
-
return {
|
332
|
-
showBirthday: isShowBirthday,
|
333
|
-
showAddress: isShowAddress,
|
334
|
-
showExtraFields: true
|
335
|
-
};
|
336
|
-
default:
|
337
|
-
return {
|
338
|
-
showBirthday: isShowBirthday,
|
339
|
-
showAddress: isShowAddress,
|
340
|
-
showExtraFields: true
|
341
|
-
};
|
342
|
-
}
|
343
|
-
};
|
344
|
-
const { showBirthday, showAddress, showExtraFields } = getFieldVisibility();
|
345
|
-
const menuItems = [
|
346
|
-
{
|
347
|
-
key: "change",
|
348
|
-
label: import_utils.locales.getText("pisell2.text.change-client"),
|
349
|
-
onClick: () => {
|
350
|
-
onChangeClient == null ? void 0 : onChangeClient(dataSource);
|
351
|
-
}
|
352
|
-
},
|
353
|
-
{
|
354
|
-
key: "remove",
|
355
|
-
label: import_utils.locales.getText("pisell2.text.remove-client"),
|
356
|
-
onClick: () => {
|
357
|
-
onRemoveClient == null ? void 0 : onRemoveClient(dataSource);
|
358
|
-
}
|
359
|
-
}
|
360
|
-
];
|
361
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
362
|
-
"div",
|
363
|
-
{
|
364
|
-
className: (0, import_classnames.default)(PREFIX, `${PREFIX}--${type}`, {
|
365
|
-
[`${PREFIX}--vertical`]: isVertical,
|
366
|
-
[`${PREFIX}--horizontal`]: !isVertical
|
367
|
-
}),
|
368
|
-
style: { ...cardStyle, cursor: "pointer" },
|
369
|
-
...{ onClick: () => dataSource && (onViewClient == null ? void 0 : onViewClient(dataSource)) }
|
370
|
-
},
|
371
|
-
slots.top,
|
372
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__content` }, slots.left && /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__slot-left` }, slots.left), /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__info` }, renderAvatar(processed, avatar, isShowAvatar, isShowStatus, status), /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__details`, style: { gap: verticalGap } }, /* @__PURE__ */ import_react.default.createElement(
|
373
|
-
"div",
|
374
|
-
{
|
375
|
-
className: (0, import_classnames.default)(
|
376
|
-
`${PREFIX}__name-tags`,
|
377
|
-
isInlineTag && `${PREFIX}__name-tags--inline`
|
378
|
-
)
|
379
|
-
},
|
380
|
-
isShowName && /* @__PURE__ */ import_react.default.createElement(
|
381
|
-
import_clientName.default,
|
382
|
-
{
|
383
|
-
dataSource: processed,
|
384
|
-
style: nameStyle,
|
385
|
-
className: "pisell-client-card__name "
|
386
|
-
}
|
387
|
-
),
|
388
|
-
isInlineTag && renderTags(processed, isShowTag, tags, tag)
|
389
|
-
), !isInlineTag && renderTags(processed, isShowTag, tags, tag), renderContactInfo(
|
390
|
-
processed,
|
391
|
-
isShowPhone,
|
392
|
-
isShowEmail,
|
393
|
-
showBirthday,
|
394
|
-
showAddress,
|
395
|
-
typeof verticalGap === "number" ? verticalGap : void 0,
|
396
|
-
type
|
397
|
-
), showExtraFields && renderExtraFields(
|
398
|
-
translatedExtraFields,
|
399
|
-
typeof verticalGap === "number" ? verticalGap : void 0
|
400
|
-
))), /* @__PURE__ */ import_react.default.createElement(
|
401
|
-
"div",
|
402
|
-
{
|
403
|
-
className: `${PREFIX}__actions`,
|
404
|
-
onClick: (e) => e.stopPropagation()
|
405
|
-
},
|
406
|
-
/* @__PURE__ */ import_react.default.createElement(
|
407
|
-
import_antd.Dropdown,
|
408
|
-
{
|
409
|
-
menu: { items: menuItems },
|
410
|
-
trigger: ["click"],
|
411
|
-
placement: "bottomRight"
|
412
|
-
},
|
413
|
-
/* @__PURE__ */ import_react.default.createElement(
|
414
|
-
import_antd.Button,
|
415
|
-
{
|
416
|
-
type: "text",
|
417
|
-
className: `${PREFIX}__menu-button`,
|
418
|
-
icon: /* @__PURE__ */ import_react.default.createElement(
|
419
|
-
import_icon.DotsVertical,
|
420
|
-
{
|
421
|
-
style: {
|
422
|
-
fontSize: 28,
|
423
|
-
color: "#475467"
|
424
|
-
}
|
425
|
-
}
|
426
|
-
),
|
427
|
-
onClick: (e) => {
|
428
|
-
e.stopPropagation();
|
429
|
-
}
|
430
|
-
}
|
431
|
-
)
|
432
|
-
)
|
433
|
-
), slots.right && /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__slot-right` }, slots.right)),
|
434
|
-
slots.bottom
|
435
|
-
);
|
436
|
-
};
|
437
|
-
var clientCard_default = ClientCard;
|
438
|
-
// Annotate the CommonJS export names for ESM import in node:
|
439
|
-
0 && (module.exports = {
|
440
|
-
PREFIX,
|
441
|
-
processClientData
|
442
|
-
});
|