@pisell/private-materials 6.2.26 → 6.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +143 -159
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/booking/addons/index.d.ts +17 -0
- package/es/components/booking/components/actionButtons/index.d.ts +29 -0
- package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
- package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
- package/es/components/booking/components/customiseItemModal/index.js +5 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/dashboard/index.d.ts +20 -0
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +3 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +9 -0
- package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
- package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +3 -0
- package/es/components/booking/info2/utilsByBooking.js +2 -1
- package/es/components/booking/locales.d.ts +903 -0
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +3 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -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 +5 -5
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.js +26 -4
- package/es/components/shoppingCart/components/Cart/index.less +14 -0
- package/es/components/shoppingCart/type.d.ts +49 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +4 -3
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
- package/es/components/ticketBooking/index.less +1 -1
- package/es/components/ticketBooking/locales.d.ts +177 -0
- package/es/components/ticketBooking/serve.d.ts +287 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/ticketBooking/utils/index.js +13 -8
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/index.d.ts +51 -0
- package/es/plus/clientCard/index.d.ts +7 -0
- package/es/plus/clientCard/line/index.d.ts +9 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/types.d.ts +126 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clientName/index.d.ts +4 -0
- package/es/plus/clientName/type.d.ts +13 -0
- package/es/plus/clientName/utils.d.ts +2 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/Add/index.d.ts +18 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/index.d.ts +18 -0
- package/es/plus/clinetSearch/locales.d.ts +102 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/types.d.ts +49 -0
- package/es/plus/noteModal/AddTempModal.d.ts +7 -0
- package/es/plus/noteModal/index.d.ts +4 -0
- package/es/plus/noteModal/locales.d.ts +33 -0
- package/es/plus/noteModal/types.d.ts +17 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/index.d.ts +9 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/es/pro/comprehensiveSearch/types.d.ts +31 -0
- package/es/pro/numberKeyboard/index.d.ts +28 -0
- package/es/pro/numberKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/index.d.ts +26 -0
- package/es/pro/pisellNumberSelector/index.less +1 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceRadio/index.d.ts +26 -0
- package/es/pro/skuDetailModal/index.d.ts +5 -0
- package/es/pro/skuDetailModal/locales.d.ts +48 -0
- package/es/pro/skuDetailModal/types.d.ts +347 -0
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/booking/addons/index.d.ts +17 -0
- package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
- package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
- package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
- package/lib/components/booking/components/customiseItemModal/index.js +7 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/dashboard/index.d.ts +20 -0
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +3 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +9 -0
- package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +3 -0
- package/lib/components/booking/info2/utilsByBooking.js +2 -1
- package/lib/components/booking/locales.d.ts +903 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +3 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -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 +5 -5
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +28 -5
- package/lib/components/shoppingCart/components/Cart/index.less +14 -0
- package/lib/components/shoppingCart/type.d.ts +49 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +2 -1
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
- package/lib/components/ticketBooking/index.less +1 -1
- package/lib/components/ticketBooking/locales.d.ts +177 -0
- package/lib/components/ticketBooking/serve.d.ts +287 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/ticketBooking/utils/index.js +4 -4
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/index.d.ts +51 -0
- package/lib/plus/clientCard/index.d.ts +7 -0
- package/lib/plus/clientCard/line/index.d.ts +9 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/types.d.ts +126 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clientName/index.d.ts +4 -0
- package/lib/plus/clientName/type.d.ts +13 -0
- package/lib/plus/clientName/utils.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/index.d.ts +18 -0
- package/lib/plus/clinetSearch/locales.d.ts +102 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/plus/clinetSearch/types.d.ts +49 -0
- package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
- package/lib/plus/noteModal/index.d.ts +4 -0
- package/lib/plus/noteModal/locales.d.ts +33 -0
- package/lib/plus/noteModal/types.d.ts +17 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
- package/lib/pro/numberKeyboard/index.d.ts +28 -0
- package/lib/pro/numberKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
- package/lib/pro/pisellNumberSelector/index.less +1 -1
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
- package/lib/pro/skuDetailModal/index.d.ts +5 -0
- package/lib/pro/skuDetailModal/locales.d.ts +48 -0
- package/lib/pro/skuDetailModal/types.d.ts +347 -0
- package/package.json +4 -4
@@ -0,0 +1,126 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface ClientData {
|
3
|
+
id: number;
|
4
|
+
shop_id: number;
|
5
|
+
display_name?: string;
|
6
|
+
nickname?: string;
|
7
|
+
email?: string;
|
8
|
+
phone?: string;
|
9
|
+
country_calling_code?: string;
|
10
|
+
channel?: string;
|
11
|
+
created_at: string;
|
12
|
+
updated_at: string;
|
13
|
+
waiver_form?: any;
|
14
|
+
avatar?: string;
|
15
|
+
birthday?: string;
|
16
|
+
address?: string;
|
17
|
+
tags?: string[];
|
18
|
+
[key: string]: any;
|
19
|
+
}
|
20
|
+
export declare type CardType = 'b1' | 'b2' | 'b5' | 'b9';
|
21
|
+
export declare type Direction = 'horizontal' | 'vertical';
|
22
|
+
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number | string;
|
23
|
+
export declare type AvatarShape = 'circle' | 'square';
|
24
|
+
export interface AvatarConfig {
|
25
|
+
icon?: string;
|
26
|
+
shape?: AvatarShape;
|
27
|
+
borderRadius?: number | string;
|
28
|
+
size?: AvatarSize;
|
29
|
+
useTextAvatar?: boolean;
|
30
|
+
children?: string;
|
31
|
+
}
|
32
|
+
export interface StatusConfig {
|
33
|
+
color?: string;
|
34
|
+
}
|
35
|
+
export interface NameStyle {
|
36
|
+
fontSize?: number | string;
|
37
|
+
fontWeight?: number | string;
|
38
|
+
color?: string;
|
39
|
+
textDecoration?: string;
|
40
|
+
}
|
41
|
+
export interface TagItem {
|
42
|
+
children: string;
|
43
|
+
color: string;
|
44
|
+
}
|
45
|
+
export interface TagConfig {
|
46
|
+
placement?: 'separate' | 'inline';
|
47
|
+
flexWrap?: 'nowrap' | 'wrap';
|
48
|
+
gap?: number | string;
|
49
|
+
}
|
50
|
+
export interface ExtraField {
|
51
|
+
label?: string;
|
52
|
+
value?: string;
|
53
|
+
isShowLabel?: boolean;
|
54
|
+
isShowValue?: boolean;
|
55
|
+
icon?: string;
|
56
|
+
iconSize?: number;
|
57
|
+
iconColor?: string;
|
58
|
+
}
|
59
|
+
export interface Slots {
|
60
|
+
top?: React.ReactNode;
|
61
|
+
bottom?: React.ReactNode;
|
62
|
+
left?: React.ReactNode;
|
63
|
+
right?: React.ReactNode;
|
64
|
+
}
|
65
|
+
export interface StyleConfig {
|
66
|
+
width?: number | string;
|
67
|
+
border?: 'solid' | 'unset';
|
68
|
+
borderWidth?: number | string;
|
69
|
+
borderColor?: string;
|
70
|
+
borderRadius?: number | string;
|
71
|
+
padding?: number | string;
|
72
|
+
[key: string]: any;
|
73
|
+
}
|
74
|
+
export interface FieldNames {
|
75
|
+
id?: string | ((data: any) => any);
|
76
|
+
name?: string | ((data: any) => any);
|
77
|
+
cover?: string | ((data: any) => any);
|
78
|
+
phone?: string | ((data: any) => any);
|
79
|
+
email?: string | ((data: any) => any);
|
80
|
+
birthday?: string | ((data: any) => any);
|
81
|
+
address?: string | ((data: any) => any);
|
82
|
+
tags?: string | ((data: any) => any);
|
83
|
+
[key: string]: string | ((data: any) => any) | undefined;
|
84
|
+
}
|
85
|
+
export interface DisplayConfig {
|
86
|
+
isShowAvatar?: boolean;
|
87
|
+
isShowName?: boolean;
|
88
|
+
isShowPhone?: boolean;
|
89
|
+
isShowEmail?: boolean;
|
90
|
+
isShowBirthday?: boolean;
|
91
|
+
isShowAddress?: boolean;
|
92
|
+
isShowTag?: boolean;
|
93
|
+
isShowStatus?: boolean;
|
94
|
+
}
|
95
|
+
export interface ClientCardProps extends DisplayConfig {
|
96
|
+
type?: CardType;
|
97
|
+
direction?: Direction;
|
98
|
+
dataSource?: ClientData | any;
|
99
|
+
fieldNames?: FieldNames;
|
100
|
+
style?: StyleConfig;
|
101
|
+
horizontalGap?: number | string;
|
102
|
+
verticalGap?: number | string;
|
103
|
+
avatar?: AvatarConfig;
|
104
|
+
status?: StatusConfig;
|
105
|
+
defaultName?: string;
|
106
|
+
nameStyle?: NameStyle;
|
107
|
+
tags?: Array<TagItem | string>;
|
108
|
+
tag?: TagConfig;
|
109
|
+
extraFields?: ExtraField[];
|
110
|
+
slots?: Slots;
|
111
|
+
onAddClient?: () => void;
|
112
|
+
onChangeClient?: (data: ClientData) => void;
|
113
|
+
onRemoveClient?: (data: ClientData) => void;
|
114
|
+
onViewClient?: (data: ClientData) => void;
|
115
|
+
}
|
116
|
+
export interface ProcessedClientData {
|
117
|
+
id: any;
|
118
|
+
name: string;
|
119
|
+
cover?: string;
|
120
|
+
phone?: string;
|
121
|
+
email?: string;
|
122
|
+
birthday?: string;
|
123
|
+
address?: string;
|
124
|
+
tags?: string[];
|
125
|
+
[key: string]: any;
|
126
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
interface FieldMapping<T = any, R = any> {
|
2
|
+
[key: string]: string | ((data: T) => R) | undefined;
|
3
|
+
}
|
4
|
+
export declare function getFieldValue<T, R = any>(data: T, fieldKey: string): R | undefined;
|
5
|
+
export declare function getFieldValue<T, R = any>(data: T, fieldKey: string, mapping: FieldMapping<T, R>): R | undefined;
|
6
|
+
export declare const getAvatarText: (name: string) => string;
|
7
|
+
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
8
|
+
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type ClientData = {
|
3
|
+
display_name?: string;
|
4
|
+
nickname?: string;
|
5
|
+
first_name?: string;
|
6
|
+
last_name?: string;
|
7
|
+
[key: string]: any;
|
8
|
+
};
|
9
|
+
export interface IClientNameProps {
|
10
|
+
dataSource?: string | ClientData | null;
|
11
|
+
className?: string;
|
12
|
+
style?: React.CSSProperties;
|
13
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
interface AddClientProps {
|
4
|
+
onChange: (value: any, isChecked: boolean) => void;
|
5
|
+
phone?: string;
|
6
|
+
containerProps: {
|
7
|
+
className?: string;
|
8
|
+
title?: string;
|
9
|
+
open?: boolean;
|
10
|
+
onCancel?: () => void;
|
11
|
+
width?: string | number;
|
12
|
+
};
|
13
|
+
}
|
14
|
+
export interface AddClientRef {
|
15
|
+
reset: () => void;
|
16
|
+
}
|
17
|
+
declare const AddClient: React.ForwardRefExoticComponent<AddClientProps & React.RefAttributes<unknown>>;
|
18
|
+
export default AddClient;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
2
|
+
/**
|
3
|
+
* 无限滚动组件的属性接口
|
4
|
+
*/
|
5
|
+
export interface InfiniteScrollProps {
|
6
|
+
/** 数据长度,用于判断是否需要加载更多 */
|
7
|
+
dataLength: number;
|
8
|
+
/** 加载更多数据的函数 */
|
9
|
+
next: () => void;
|
10
|
+
/** 是否还有更多数据 */
|
11
|
+
hasMore: boolean;
|
12
|
+
/** 加载中显示的组件 */
|
13
|
+
loader?: ReactNode;
|
14
|
+
/** 没有更多数据时显示的组件 */
|
15
|
+
endMessage?: ReactNode;
|
16
|
+
/** 滚动容器的高度 */
|
17
|
+
height?: number | string;
|
18
|
+
/** 滚动阈值,0-1之间的数值或像素值 */
|
19
|
+
scrollThreshold?: number | string;
|
20
|
+
/** 滚动事件回调 */
|
21
|
+
onScroll?: (event: Event) => void;
|
22
|
+
/** 自定义样式 */
|
23
|
+
style?: CSSProperties;
|
24
|
+
/** 自定义类名 */
|
25
|
+
className?: string;
|
26
|
+
/** 指定滚动容器的目标元素ID */
|
27
|
+
scrollableTarget?: string;
|
28
|
+
/** 子元素 */
|
29
|
+
children: ReactNode;
|
30
|
+
/** 是否反向滚动 */
|
31
|
+
inverse?: boolean;
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* 滚动位置信息
|
35
|
+
*/
|
36
|
+
export interface ScrollPosition {
|
37
|
+
scrollTop: number;
|
38
|
+
scrollHeight: number;
|
39
|
+
clientHeight: number;
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* 组件内部状态
|
43
|
+
*/
|
44
|
+
export interface InfiniteScrollState {
|
45
|
+
isLoading: boolean;
|
46
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TableProps } from 'antd';
|
3
|
+
import type { ComprehensiveSearchProps } from '../../pro/comprehensiveSearch/types';
|
4
|
+
import type { ClientData } from './types';
|
5
|
+
import './index.less';
|
6
|
+
interface ClientSearchProps extends Omit<ComprehensiveSearchProps, 'resultDisplay' | 'onRowClick'> {
|
7
|
+
onRowClick?: (record: ClientData, index: number) => void;
|
8
|
+
onAddClient?: (record: ClientData, isChecked: boolean) => void;
|
9
|
+
resultProps?: TableProps<ClientData>;
|
10
|
+
hasMore?: boolean;
|
11
|
+
onLoadMore?: () => void;
|
12
|
+
}
|
13
|
+
export declare type ClientSearchRef = {
|
14
|
+
setSearchKeyword: (keyword: string) => void;
|
15
|
+
resetScrollPosition: () => void;
|
16
|
+
};
|
17
|
+
declare const ClientSearch: React.ForwardRefExoticComponent<ClientSearchProps & React.RefAttributes<ClientSearchRef>>;
|
18
|
+
export default ClientSearch;
|
@@ -0,0 +1,102 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
en: {
|
3
|
+
'pisell2.text.leave-empty-for-walk-in': string;
|
4
|
+
'pisell2.text.date-year-text': string;
|
5
|
+
'pisell2.text.date-month-text': string;
|
6
|
+
'pisell2.text.date-day-text': string;
|
7
|
+
'pisell2.text.gender': string;
|
8
|
+
'pisell2.text.gender.male': string;
|
9
|
+
'pisell2.text.gender.female': string;
|
10
|
+
'pisell2.text.birthday': string;
|
11
|
+
'pisell2.text.phone': string;
|
12
|
+
'pisell2.text.email': string;
|
13
|
+
'pisell2.text.lastname': string;
|
14
|
+
'pisell2.text.firstname': string;
|
15
|
+
'pisell2.text.email-error-message': string;
|
16
|
+
'pisell2.text.notes': string;
|
17
|
+
'pisell2.text.save': string;
|
18
|
+
'pisell2.text.save-and-select': string;
|
19
|
+
'pisell2.text.no-results-found': string;
|
20
|
+
'pisell2.text.create-new-client': string;
|
21
|
+
'pisell2.text.result-found': string;
|
22
|
+
'pisell2.text.personnel-list': string;
|
23
|
+
'pisell2.text.load-more': string;
|
24
|
+
'pisell2.text.add-client.confirm': string;
|
25
|
+
'pisell2.text.search-customer-by-phone-number': string;
|
26
|
+
'pisell2.text.create': string;
|
27
|
+
'pisell2.text.loading': string;
|
28
|
+
'pisell2.text.no-more-data': string;
|
29
|
+
'pisell2.text.client-search.name': string;
|
30
|
+
'pisell2.text.client-search.register-time': string;
|
31
|
+
'pisell2.text.client-search.phone': string;
|
32
|
+
'pisell2.text.client-search.email': string;
|
33
|
+
'pisell2.text.client-search.membership': string;
|
34
|
+
};
|
35
|
+
'zh-CN': {
|
36
|
+
'pisell2.text.leave-empty-for-walk-in': string;
|
37
|
+
'pisell2.text.date-year-text': string;
|
38
|
+
'pisell2.text.date-month-text': string;
|
39
|
+
'pisell2.text.date-day-text': string;
|
40
|
+
'pisell2.text.gender': string;
|
41
|
+
'pisell2.text.gender.male': string;
|
42
|
+
'pisell2.text.gender.female': string;
|
43
|
+
'pisell2.text.birthday': string;
|
44
|
+
'pisell2.text.phone': string;
|
45
|
+
'pisell2.text.email': string;
|
46
|
+
'pisell2.text.lastname': string;
|
47
|
+
'pisell2.text.firstname': string;
|
48
|
+
'pisell2.text.email-error-message': string;
|
49
|
+
'pisell2.text.notes': string;
|
50
|
+
'pisell2.text.save': string;
|
51
|
+
'pisell2.text.save-and-select': string;
|
52
|
+
'pisell2.text.no-results-found': string;
|
53
|
+
'pisell2.text.create-new-client': string;
|
54
|
+
'pisell2.text.result-found': string;
|
55
|
+
'pisell2.text.personnel-list': string;
|
56
|
+
'pisell2.text.add-client.confirm': string;
|
57
|
+
'pisell2.text.load-more': string;
|
58
|
+
'pisell2.text.search-customer-by-phone-number': string;
|
59
|
+
'pisell2.text.create': string;
|
60
|
+
'pisell2.text.loading': string;
|
61
|
+
'pisell2.text.no-more-data': string;
|
62
|
+
'pisell2.text.client-search.name': string;
|
63
|
+
'pisell2.text.client-search.register-time': string;
|
64
|
+
'pisell2.text.client-search.phone': string;
|
65
|
+
'pisell2.text.client-search.email': string;
|
66
|
+
'pisell2.text.client-search.membership': string;
|
67
|
+
};
|
68
|
+
'zh-HK': {
|
69
|
+
'pisell2.text.leave-empty-for-walk-in': string;
|
70
|
+
'pisell2.text.date-year-text': string;
|
71
|
+
'pisell2.text.date-month-text': string;
|
72
|
+
'pisell2.text.date-day-text': string;
|
73
|
+
'pisell2.text.gender': string;
|
74
|
+
'pisell2.text.gender.male': string;
|
75
|
+
'pisell2.text.gender.female': string;
|
76
|
+
'pisell2.text.birthday': string;
|
77
|
+
'pisell2.text.phone': string;
|
78
|
+
'pisell2.text.email': string;
|
79
|
+
'pisell2.text.lastname': string;
|
80
|
+
'pisell2.text.firstname': string;
|
81
|
+
'pisell2.text.email-error-message': string;
|
82
|
+
'pisell2.text.notes': string;
|
83
|
+
'pisell2.text.save': string;
|
84
|
+
'pisell2.text.save-and-select': string;
|
85
|
+
'pisell2.text.no-results-found': string;
|
86
|
+
'pisell2.text.create-new-client': string;
|
87
|
+
'pisell2.text.result-found': string;
|
88
|
+
'pisell2.text.personnel-list': string;
|
89
|
+
'pisell2.text.add-client.confirm': string;
|
90
|
+
'pisell2.text.load-more': string;
|
91
|
+
'pisell2.text.search-customer-by-phone-number': string;
|
92
|
+
'pisell2.text.create': string;
|
93
|
+
'pisell2.text.loading': string;
|
94
|
+
'pisell2.text.no-more-data': string;
|
95
|
+
'pisell2.text.client-search.name': string;
|
96
|
+
'pisell2.text.client-search.register-time': string;
|
97
|
+
'pisell2.text.client-search.phone': string;
|
98
|
+
'pisell2.text.client-search.email': string;
|
99
|
+
'pisell2.text.client-search.membership': string;
|
100
|
+
};
|
101
|
+
};
|
102
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const addCustomer: (params: any) => Promise<any>;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export interface ClientData {
|
3
|
+
id: number;
|
4
|
+
display_name: string;
|
5
|
+
created_at: string;
|
6
|
+
phone: string;
|
7
|
+
email: string;
|
8
|
+
channel: string;
|
9
|
+
country_calling_code: string;
|
10
|
+
nickname: string;
|
11
|
+
shop_id: number;
|
12
|
+
updated_at: string;
|
13
|
+
}
|
14
|
+
export interface ClientSearchProps {
|
15
|
+
dataSource?: any;
|
16
|
+
isShowScanner?: boolean;
|
17
|
+
isShowCamera?: boolean;
|
18
|
+
isShowNFC?: boolean;
|
19
|
+
isShowNewButton?: boolean;
|
20
|
+
newButtonAlign?: 'left' | 'center' | 'right';
|
21
|
+
newButtonText?: string;
|
22
|
+
renderType?: 'modal' | 'drawer' | 'portal' | '';
|
23
|
+
containerProps?: Record<string, any>;
|
24
|
+
isShowSearch?: boolean;
|
25
|
+
isShowSearchCamera?: boolean;
|
26
|
+
searchIcon?: string;
|
27
|
+
placeholder?: string;
|
28
|
+
isShowSearchButton?: boolean;
|
29
|
+
resultSort?: 'asc' | 'desc' | 'custom';
|
30
|
+
sortBy?: string;
|
31
|
+
style?: React.CSSProperties;
|
32
|
+
onChange?: (value: string) => void;
|
33
|
+
onSearch?: (value: string) => void;
|
34
|
+
onAdd?: () => void;
|
35
|
+
onDataChange?: (data: any) => void;
|
36
|
+
onRowClick?: (record: ClientData, index: number) => void;
|
37
|
+
}
|
38
|
+
export interface ClientFormData {
|
39
|
+
display_name: string;
|
40
|
+
phone?: string;
|
41
|
+
email?: string;
|
42
|
+
nickname?: string;
|
43
|
+
}
|
44
|
+
export interface ClientSearchState {
|
45
|
+
modalVisible: boolean;
|
46
|
+
loading: boolean;
|
47
|
+
searchResults: ClientData[];
|
48
|
+
searchValue: string;
|
49
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
en: {
|
3
|
+
'pisell2.text.note': string;
|
4
|
+
'pisell2.text.note.modal.title': string;
|
5
|
+
'pisell2.text.note.modal.btn.confirm': string;
|
6
|
+
'pisell2.text.note.modal.btn.cancel': string;
|
7
|
+
'pisell2.text.note.modal.btn.delete': string;
|
8
|
+
'pisell2.text.note.modal.btn.add.template': string;
|
9
|
+
'pisell2.text.note.modal.placeholder': string;
|
10
|
+
'pisell2.text.note.modal.add.template.title': string;
|
11
|
+
};
|
12
|
+
'zh-CN': {
|
13
|
+
'pisell2.text.note': string;
|
14
|
+
'pisell2.text.note.modal.title': string;
|
15
|
+
'pisell2.text.note.modal.btn.confirm': string;
|
16
|
+
'pisell2.text.note.modal.btn.cancel': string;
|
17
|
+
'pisell2.text.note.modal.btn.delete': string;
|
18
|
+
'pisell2.text.note.modal.btn.add.template': string;
|
19
|
+
'pisell2.text.note.modal.placeholder': string;
|
20
|
+
'pisell2.text.note.modal.add.template.title': string;
|
21
|
+
};
|
22
|
+
'zh-HK': {
|
23
|
+
'pisell2.text.note': string;
|
24
|
+
'pisell2.text.note.modal.title': string;
|
25
|
+
'pisell2.text.note.modal.btn.confirm': string;
|
26
|
+
'pisell2.text.note.modal.btn.cancel': string;
|
27
|
+
'pisell2.text.note.modal.btn.delete': string;
|
28
|
+
'pisell2.text.note.modal.btn.add.template': string;
|
29
|
+
'pisell2.text.note.modal.placeholder': string;
|
30
|
+
'pisell2.text.note.modal.add.template.title': string;
|
31
|
+
};
|
32
|
+
};
|
33
|
+
export default _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export interface NoteModalProps {
|
3
|
+
/** 是否显示弹窗 */
|
4
|
+
open?: boolean;
|
5
|
+
/** 弹窗标题 */
|
6
|
+
title?: string;
|
7
|
+
/** 初始内容 */
|
8
|
+
value?: string;
|
9
|
+
/** 确认回调 */
|
10
|
+
onConfirm?: (value: string) => void;
|
11
|
+
/** 删除回调 */
|
12
|
+
onDelete?: () => void;
|
13
|
+
/** 取消回调 */
|
14
|
+
onCancel?: () => void;
|
15
|
+
}
|
16
|
+
export interface NoteModalComponent extends React.FC<NoteModalProps> {
|
17
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
declare type Peripherals = {
|
2
|
+
scanner: 'none' | 'connected' | 'disconnect';
|
3
|
+
nfc: 'none' | 'connected' | 'disconnect';
|
4
|
+
camera?: 'none' | 'connected' | 'disconnect';
|
5
|
+
};
|
6
|
+
declare const useTerminalPeripherals: (onChange?: ((val: string) => void) | undefined) => {
|
7
|
+
peripheralsStatus: Peripherals;
|
8
|
+
};
|
9
|
+
export default useTerminalPeripherals;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { ComprehensiveSearchProps, SearchResult } from './types';
|
3
|
+
import './index.less';
|
4
|
+
export declare type ComprehensiveSearchRef = {
|
5
|
+
setSearchKeyword: (keyword: string) => void;
|
6
|
+
};
|
7
|
+
declare const ComprehensiveSearch: React.ForwardRefExoticComponent<ComprehensiveSearchProps & React.RefAttributes<ComprehensiveSearchRef>>;
|
8
|
+
export default ComprehensiveSearch;
|
9
|
+
export type { ComprehensiveSearchProps, SearchResult };
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
en: {
|
3
|
+
'pisell2.text.new-client': string;
|
4
|
+
'pisell2.comprehensive-search.placeholder': string;
|
5
|
+
'pisell2.comprehensive-search.empty': string;
|
6
|
+
};
|
7
|
+
'zh-CN': {
|
8
|
+
'pisell2.text.new-client': string;
|
9
|
+
'pisell2.comprehensive-search.placeholder': string;
|
10
|
+
'pisell2.comprehensive-search.empty': string;
|
11
|
+
};
|
12
|
+
'zh-HK': {
|
13
|
+
'pisell2.text.new-client': string;
|
14
|
+
'pisell2.comprehensive-search.placeholder': string;
|
15
|
+
'pisell2.comprehensive-search.empty': string;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export default _default;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export interface ComprehensiveSearchProps {
|
3
|
+
dataSource?: any;
|
4
|
+
isShowScanner?: boolean;
|
5
|
+
isShowCamera?: boolean;
|
6
|
+
isShowNFC?: boolean;
|
7
|
+
isShowNewButton?: boolean;
|
8
|
+
newButtonAlign?: 'left' | 'center' | 'right';
|
9
|
+
newButtonText?: string;
|
10
|
+
newDialogDataSource?: any;
|
11
|
+
renderType?: 'modal' | 'drawer' | 'portal' | '';
|
12
|
+
containerProps?: Record<string, any>;
|
13
|
+
isShowSearch?: boolean;
|
14
|
+
isShowSearchCamera?: boolean;
|
15
|
+
searchIcon?: string;
|
16
|
+
placeholder?: string;
|
17
|
+
isShowSearchButton?: boolean;
|
18
|
+
resultDisplay?: 'list' | 'grid';
|
19
|
+
resultSort?: 'asc' | 'desc' | 'custom';
|
20
|
+
sortBy?: string;
|
21
|
+
style?: React.CSSProperties;
|
22
|
+
loading?: boolean;
|
23
|
+
onSearchTextChange?: (value: string) => void;
|
24
|
+
onSearch?: (value: string) => void;
|
25
|
+
onAdd?: () => void;
|
26
|
+
onDataChange?: (data: any) => void;
|
27
|
+
onRowClick?: (record: any, index: any) => void;
|
28
|
+
}
|
29
|
+
export interface SearchResult {
|
30
|
+
[key: string]: any;
|
31
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
interface NumberKeyboardProps {
|
4
|
+
/** 输入框的值 */
|
5
|
+
value?: string;
|
6
|
+
/** 输入框的placeholder */
|
7
|
+
placeholder?: string;
|
8
|
+
/** 输入框的最大长度 */
|
9
|
+
maxLength?: number;
|
10
|
+
/** 最大值 */
|
11
|
+
max?: number;
|
12
|
+
/** 确认按钮的文本 */
|
13
|
+
okText?: string;
|
14
|
+
/** 删除按钮的文本 */
|
15
|
+
deleteText?: string | React.ReactNode;
|
16
|
+
/** 输入框的值发生变化时回调 */
|
17
|
+
onChange?: (num: string) => void;
|
18
|
+
/** 确认按钮点击时回调 */
|
19
|
+
onOk?: () => void;
|
20
|
+
/** 删除按钮点击时回调 */
|
21
|
+
onDelete?: (num: string) => void;
|
22
|
+
/** 键盘整体样式 */
|
23
|
+
style?: React.CSSProperties;
|
24
|
+
/** 输入框的样式 */
|
25
|
+
inputStyle?: React.CSSProperties;
|
26
|
+
}
|
27
|
+
declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element;
|
28
|
+
export default NumberKeyboard;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
export interface PisellNumberSelectorProps {
|
4
|
+
/** 当前值 */
|
5
|
+
value?: number;
|
6
|
+
/** 最小值 */
|
7
|
+
min?: number;
|
8
|
+
/** 最大值 */
|
9
|
+
max?: number;
|
10
|
+
/** 步长 */
|
11
|
+
step?: number;
|
12
|
+
/** 是否禁用 */
|
13
|
+
disabled?: boolean;
|
14
|
+
/** 值变化回调 */
|
15
|
+
onChange?: (value: number) => void;
|
16
|
+
/** 组件尺寸 */
|
17
|
+
size?: 'small' | 'middle' | 'large';
|
18
|
+
/** 自定义类名 */
|
19
|
+
className?: string;
|
20
|
+
/** 是否启用价格调整面板 */
|
21
|
+
enablePriceAdjust?: boolean;
|
22
|
+
/** 原始价格(用于价格调整) */
|
23
|
+
originValue?: number;
|
24
|
+
}
|
25
|
+
declare const PisellNumberSelector: React.FC<PisellNumberSelectorProps>;
|
26
|
+
export default PisellNumberSelector;
|