@pisell/private-materials 6.3.31 → 6.3.32
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/utils.d.ts +41 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/es/components/booking/info/main.d.ts +12 -0
- package/es/components/booking/info/model.d.ts +14 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.d.ts +7 -0
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/contactInfoMode/index.js +1 -0
- package/es/components/booking/locales.d.ts +840 -0
- package/es/components/booking/model.d.ts +120 -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/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- 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 +6 -6
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.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/index.d.ts +22 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/schedules/calendar/calendarItem.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/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/es/components/ticketBooking/index.d.ts +7 -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/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/index.d.ts +40 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/es/plus/productSelect/index.d.ts +32 -0
- package/es/pro/Login2.0/Login2.js +7 -7
- package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
- package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/es/pro/Login2.0/locales.d.ts +543 -0
- package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
- package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
- package/es/pro/Login2.0/steps/SetPassword.js +7 -7
- package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/es/pro/Login2.0/steps/index.d.ts +19 -0
- package/es/pro/Login2.0/types.d.ts +167 -0
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/utils.d.ts +41 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/lib/components/booking/info/main.d.ts +12 -0
- package/lib/components/booking/info/model.d.ts +14 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.js +8 -1
- package/lib/components/booking/locales.d.ts +840 -0
- package/lib/components/booking/model.d.ts +120 -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/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- 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 +6 -6
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.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/index.d.ts +22 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/schedules/calendar/calendarItem.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/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/lib/components/ticketBooking/index.d.ts +7 -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/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/index.d.ts +40 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/lib/plus/productSelect/index.d.ts +32 -0
- package/lib/pro/Login2.0/Login2.js +7 -7
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/lib/pro/Login2.0/locales.d.ts +543 -0
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
- package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
- package/lib/pro/Login2.0/steps/SetPassword.js +7 -7
- package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/lib/pro/Login2.0/steps/index.d.ts +19 -0
- package/lib/pro/Login2.0/types.d.ts +167 -0
- package/package.json +3 -3
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 联系信息数据
|
|
4
|
+
*/
|
|
5
|
+
export interface ContactInfoData {
|
|
6
|
+
first_name?: string;
|
|
7
|
+
last_name?: string;
|
|
8
|
+
phone?: {
|
|
9
|
+
phone: string;
|
|
10
|
+
country_calling_code: string;
|
|
11
|
+
country_code?: string;
|
|
12
|
+
};
|
|
13
|
+
email?: string;
|
|
14
|
+
avatar?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 卡片布局类型
|
|
18
|
+
*/
|
|
19
|
+
export declare type Direction = 'horizontal' | 'vertical';
|
|
20
|
+
/**
|
|
21
|
+
* 头像尺寸类型
|
|
22
|
+
*/
|
|
23
|
+
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
24
|
+
/**
|
|
25
|
+
* 头像形状类型
|
|
26
|
+
*/
|
|
27
|
+
export declare type AvatarShape = 'circle' | 'square';
|
|
28
|
+
/**
|
|
29
|
+
* 头像配置
|
|
30
|
+
*/
|
|
31
|
+
export interface AvatarConfig {
|
|
32
|
+
shape?: AvatarShape;
|
|
33
|
+
borderRadius?: number;
|
|
34
|
+
size?: AvatarSize;
|
|
35
|
+
useTextAvatar?: boolean;
|
|
36
|
+
children?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 姓名样式配置
|
|
40
|
+
*/
|
|
41
|
+
export interface NameStyle {
|
|
42
|
+
fontSize?: number | string;
|
|
43
|
+
fontWeight?: number | string;
|
|
44
|
+
color?: string;
|
|
45
|
+
textDecoration?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface StyleConfig {
|
|
48
|
+
width?: number | string;
|
|
49
|
+
border?: 'solid' | 'unset';
|
|
50
|
+
borderWidth?: number | string;
|
|
51
|
+
borderColor?: string;
|
|
52
|
+
borderRadius?: number | string;
|
|
53
|
+
padding?: number | string;
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 文本样式配置
|
|
58
|
+
*/
|
|
59
|
+
export interface TextStyle {
|
|
60
|
+
fontSize?: number | string;
|
|
61
|
+
fontWeight?: number | string;
|
|
62
|
+
color?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* ContactInfo 组件属性接口
|
|
66
|
+
*/
|
|
67
|
+
export interface ContactInfoProps {
|
|
68
|
+
dataSource?: ContactInfoData;
|
|
69
|
+
defaultName?: string;
|
|
70
|
+
placeholder?: string | React.ReactNode;
|
|
71
|
+
isShowDelete?: boolean;
|
|
72
|
+
children?: React.ReactNode;
|
|
73
|
+
direction?: Direction;
|
|
74
|
+
horizontalGap?: number | string;
|
|
75
|
+
verticalGap?: number | string;
|
|
76
|
+
isShowAvatar?: boolean;
|
|
77
|
+
isShowPhone?: boolean;
|
|
78
|
+
isShowEmail?: boolean;
|
|
79
|
+
avatar?: AvatarConfig;
|
|
80
|
+
style?: StyleConfig;
|
|
81
|
+
nameStyle?: NameStyle;
|
|
82
|
+
textStyle?: TextStyle;
|
|
83
|
+
placeholderStyle?: CSSProperties;
|
|
84
|
+
button?: {
|
|
85
|
+
addButtonIcon?: string;
|
|
86
|
+
editButtonIcon?: string;
|
|
87
|
+
};
|
|
88
|
+
onSave?: (value: any) => void;
|
|
89
|
+
onDelete?: () => void;
|
|
90
|
+
onCancel?: () => void;
|
|
91
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ContactInfoModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
onSave: (values: any) => void;
|
|
8
|
+
isShowDelete?: boolean;
|
|
9
|
+
onDelete: () => void;
|
|
10
|
+
dataSource?: {
|
|
11
|
+
first_name?: string;
|
|
12
|
+
last_name?: string;
|
|
13
|
+
email?: string;
|
|
14
|
+
phone?: {
|
|
15
|
+
phone: string;
|
|
16
|
+
country_calling_code: string;
|
|
17
|
+
country_code?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
config?: {
|
|
21
|
+
first_name?: {
|
|
22
|
+
visible?: boolean;
|
|
23
|
+
required?: boolean;
|
|
24
|
+
};
|
|
25
|
+
last_name?: {
|
|
26
|
+
visible?: boolean;
|
|
27
|
+
required?: boolean;
|
|
28
|
+
};
|
|
29
|
+
phone?: {
|
|
30
|
+
visible?: boolean;
|
|
31
|
+
required?: boolean;
|
|
32
|
+
};
|
|
33
|
+
email?: {
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
required?: boolean;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
declare const ContactInfoModal: React.FC<ContactInfoModalProps>;
|
|
40
|
+
export default ContactInfoModal;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.text.button.save': string;
|
|
4
|
+
'pisell2.text.button.delete': string;
|
|
5
|
+
'pisell2.text.button.cancel': string;
|
|
6
|
+
'pisell2.text.contact-info.actions.delete': string;
|
|
7
|
+
'pisell2.text.contact-info.modal.title': string;
|
|
8
|
+
'pisell2.text.contact-info.modal.first-name': string;
|
|
9
|
+
'pisell2.text.contact-info.modal.first-name-placeholder': string;
|
|
10
|
+
'pisell2.text.contact-info.modal.first-name-required': string;
|
|
11
|
+
'pisell2.text.contact-info.modal.last-name': string;
|
|
12
|
+
'pisell2.text.contact-info.modal.last-name-placeholder': string;
|
|
13
|
+
'pisell2.text.contact-info.modal.last-name-required': string;
|
|
14
|
+
'pisell2.text.contact-info.modal.mobile': string;
|
|
15
|
+
'pisell2.text.contact-info.modal.mobile-placeholder': string;
|
|
16
|
+
'pisell2.text.contact-info.modal.mobile-required': string;
|
|
17
|
+
'pisell2.text.contact-info.modal.mobile-error': string;
|
|
18
|
+
'pisell2.text.contact-info.modal.email': string;
|
|
19
|
+
'pisell2.text.contact-info.modal.email-placeholder': string;
|
|
20
|
+
'pisell2.text.contact-info.modal.email-required': string;
|
|
21
|
+
'pisell2.text.contact-info.modal.email-error': string;
|
|
22
|
+
};
|
|
23
|
+
'zh-CN': {
|
|
24
|
+
'pisell2.text.button.save': string;
|
|
25
|
+
'pisell2.text.button.delete': string;
|
|
26
|
+
'pisell2.text.button.cancel': string;
|
|
27
|
+
'pisell2.text.contact-info.actions.delete': string;
|
|
28
|
+
'pisell2.text.contact-info.modal.title': string;
|
|
29
|
+
'pisell2.text.contact-info.modal.first-name': string;
|
|
30
|
+
'pisell2.text.contact-info.modal.first-name-placeholder': string;
|
|
31
|
+
'pisell2.text.contact-info.modal.first-name-required': string;
|
|
32
|
+
'pisell2.text.contact-info.modal.last-name': string;
|
|
33
|
+
'pisell2.text.contact-info.modal.last-name-placeholder': string;
|
|
34
|
+
'pisell2.text.contact-info.modal.last-name-required': string;
|
|
35
|
+
'pisell2.text.contact-info.modal.mobile': string;
|
|
36
|
+
'pisell2.text.contact-info.modal.mobile-placeholder': string;
|
|
37
|
+
'pisell2.text.contact-info.modal.mobile-required': string;
|
|
38
|
+
'pisell2.text.contact-info.modal.mobile-error': string;
|
|
39
|
+
'pisell2.text.contact-info.modal.email': string;
|
|
40
|
+
'pisell2.text.contact-info.modal.email-placeholder': string;
|
|
41
|
+
'pisell2.text.contact-info.modal.email-required': string;
|
|
42
|
+
'pisell2.text.contact-info.modal.email-error': string;
|
|
43
|
+
};
|
|
44
|
+
'zh-HK': {
|
|
45
|
+
'pisell2.text.button.save': string;
|
|
46
|
+
'pisell2.text.button.delete': string;
|
|
47
|
+
'pisell2.text.button.cancel': string;
|
|
48
|
+
'pisell2.text.contact-info.actions.delete': string;
|
|
49
|
+
'pisell2.text.contact-info.modal.title': string;
|
|
50
|
+
'pisell2.text.contact-info.modal.first-name': string;
|
|
51
|
+
'pisell2.text.contact-info.modal.first-name-placeholder': string;
|
|
52
|
+
'pisell2.text.contact-info.modal.first-name-required': string;
|
|
53
|
+
'pisell2.text.contact-info.modal.last-name': string;
|
|
54
|
+
'pisell2.text.contact-info.modal.last-name-placeholder': string;
|
|
55
|
+
'pisell2.text.contact-info.modal.last-name-required': string;
|
|
56
|
+
'pisell2.text.contact-info.modal.mobile': string;
|
|
57
|
+
'pisell2.text.contact-info.modal.mobile-placeholder': string;
|
|
58
|
+
'pisell2.text.contact-info.modal.mobile-required': string;
|
|
59
|
+
'pisell2.text.contact-info.modal.mobile-error': string;
|
|
60
|
+
'pisell2.text.contact-info.modal.email': string;
|
|
61
|
+
'pisell2.text.contact-info.modal.email-placeholder': string;
|
|
62
|
+
'pisell2.text.contact-info.modal.email-required': string;
|
|
63
|
+
'pisell2.text.contact-info.modal.email-error': string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ProductCardSkeleton from './ProductCardSkeleton';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare type BoolConfigVal = 0 | 1;
|
|
5
|
+
export interface ProductCardConfig {
|
|
6
|
+
isProductCover?: BoolConfigVal;
|
|
7
|
+
imgWidth?: string;
|
|
8
|
+
imgHeight?: string;
|
|
9
|
+
radius?: number;
|
|
10
|
+
isTitle?: BoolConfigVal;
|
|
11
|
+
isSubtitle?: BoolConfigVal;
|
|
12
|
+
showSpec?: boolean;
|
|
13
|
+
isTag?: BoolConfigVal;
|
|
14
|
+
isPrice?: BoolConfigVal;
|
|
15
|
+
isOriginPrice?: BoolConfigVal;
|
|
16
|
+
showZeroPrice?: boolean;
|
|
17
|
+
showMarketingTag?: boolean;
|
|
18
|
+
showRemark?: boolean;
|
|
19
|
+
isStock?: BoolConfigVal;
|
|
20
|
+
}
|
|
21
|
+
export interface ProductCardProps {
|
|
22
|
+
item: any;
|
|
23
|
+
index: number;
|
|
24
|
+
context?: {
|
|
25
|
+
onItemIntersectionIn: (item: any) => void;
|
|
26
|
+
onItemIntersectionOut: (item: any) => void;
|
|
27
|
+
};
|
|
28
|
+
className?: string;
|
|
29
|
+
onSelectProduct?: (item: any) => void;
|
|
30
|
+
currentProductId?: number;
|
|
31
|
+
onSelect?: (item: any) => void;
|
|
32
|
+
onSelectCover?: (item: any) => void;
|
|
33
|
+
onSelectInfo?: (item: any) => void;
|
|
34
|
+
isSelected?: boolean;
|
|
35
|
+
decorateConfig?: ProductCardConfig;
|
|
36
|
+
}
|
|
37
|
+
export declare const ProductCard: React.MemoExoticComponent<({ item, index, context, onSelect, onSelectCover, onSelectInfo, isSelected, className, decorateConfig, }: ProductCardProps) => JSX.Element>;
|
|
38
|
+
export declare const DefaultItemContent: React.MemoExoticComponent<(props: {
|
|
39
|
+
item: any;
|
|
40
|
+
index: number;
|
|
41
|
+
context?: {
|
|
42
|
+
onItemIntersectionIn: (item: any) => void;
|
|
43
|
+
onItemIntersectionOut: (item: any) => void;
|
|
44
|
+
} | undefined;
|
|
45
|
+
}) => JSX.Element>;
|
|
46
|
+
export default ProductCard;
|
|
47
|
+
export { ProductCardSkeleton };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ProductSelectProps {
|
|
4
|
+
dataSource: any[];
|
|
5
|
+
showSearch?: boolean;
|
|
6
|
+
showTab?: boolean;
|
|
7
|
+
layout?: {
|
|
8
|
+
grid: boolean;
|
|
9
|
+
config: string;
|
|
10
|
+
};
|
|
11
|
+
onChange: (value: any, type?: string) => void;
|
|
12
|
+
value?: number;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
emptyDescription?: string;
|
|
16
|
+
/** 当前滚动元素 */
|
|
17
|
+
scrollDom?: string;
|
|
18
|
+
/** 商品列表上方的其它组件 */
|
|
19
|
+
offsetDom?: any;
|
|
20
|
+
/** 样式变量 */
|
|
21
|
+
token?: Partial<any>;
|
|
22
|
+
/** 后台装修单选模式下的已选中项 */
|
|
23
|
+
selectedItems?: Array<any>;
|
|
24
|
+
/** 后台装修配置 */
|
|
25
|
+
productListSetting?: Partial<any>;
|
|
26
|
+
/** 兼容scrollDom */
|
|
27
|
+
customScrollParent?: HTMLElement | string;
|
|
28
|
+
hideCategoryWhenOne?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare const PREFIX = "pisell-product-select";
|
|
31
|
+
declare const index: ({ dataSource, emptyDescription, showSearch, scrollDom, offsetDom, style, token: customToken, onChange, value, selectedItems, productListSetting, customScrollParent, loading, layout, hideCategoryWhenOne, ...rest }: ProductSelectProps) => JSX.Element;
|
|
32
|
+
export default index;
|
|
@@ -91,13 +91,13 @@ var Login2 = function Login2(_ref) {
|
|
|
91
91
|
translate: locales.getText,
|
|
92
92
|
fallbackMinLength: 6,
|
|
93
93
|
messageKeys: {
|
|
94
|
-
required: 'pisell-login2-password-required',
|
|
95
|
-
minLength: 'pisell-set-password-min-length',
|
|
96
|
-
requireUppercase: 'pisell-set-password-require-uppercase',
|
|
97
|
-
requireLowercase: 'pisell-set-password-require-lowercase',
|
|
98
|
-
requireNumber: 'pisell-set-password-require-number',
|
|
99
|
-
requireSpecialCharacters: 'pisell-set-password-require-special',
|
|
100
|
-
summary: 'pisell-set-password-must-contain'
|
|
94
|
+
required: locales.getText('pisell-login2-password-required'),
|
|
95
|
+
minLength: locales.getText('pisell-set-password-min-length'),
|
|
96
|
+
requireUppercase: locales.getText('pisell-set-password-require-uppercase'),
|
|
97
|
+
requireLowercase: locales.getText('pisell-set-password-require-lowercase'),
|
|
98
|
+
requireNumber: locales.getText('pisell-set-password-require-number'),
|
|
99
|
+
requireSpecialCharacters: locales.getText('pisell-set-password-require-special'),
|
|
100
|
+
summary: locales.getText('pisell-set-password-must-contain')
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PhoneValueObject } from './PhoneInput';
|
|
3
|
+
export interface ForgotPasswordFlowProps {
|
|
4
|
+
/** 初始账号(可选,如果用户在登录页已输入) */
|
|
5
|
+
initialEmail?: string | PhoneValueObject;
|
|
6
|
+
/** 账号类型 */
|
|
7
|
+
accountType: 'email' | 'phone';
|
|
8
|
+
/** 发送验证码回调 */
|
|
9
|
+
onSendCode?: (account: string | PhoneValueObject) => Promise<void>;
|
|
10
|
+
/** 验证验证码回调 */
|
|
11
|
+
onVerifyCode?: (account: string | PhoneValueObject, code: string) => Promise<void>;
|
|
12
|
+
/** 发送重置密码链接回调 */
|
|
13
|
+
onSendResetLink?: (account: string) => Promise<void>;
|
|
14
|
+
/** 重置密码回调 */
|
|
15
|
+
onResetPassword?: (account: string | PhoneValueObject, password: string, code: string) => Promise<void>;
|
|
16
|
+
/** 返回登录页 */
|
|
17
|
+
onBack?: () => void;
|
|
18
|
+
/** 加载状态 */
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
/** 倒计时 */
|
|
21
|
+
countdown?: number;
|
|
22
|
+
/** 可用的国家/地区列表 */
|
|
23
|
+
countries?: Array<{
|
|
24
|
+
name: string;
|
|
25
|
+
code: string;
|
|
26
|
+
calling_code: string;
|
|
27
|
+
currency_code: string;
|
|
28
|
+
}>;
|
|
29
|
+
}
|
|
30
|
+
declare function ForgotPasswordFlow({ initialEmail, accountType, onSendCode, onVerifyCode, onResetPassword, onSendResetLink, onBack, loading, countdown, countries, }: ForgotPasswordFlowProps): JSX.Element | null;
|
|
31
|
+
export default ForgotPasswordFlow;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface LoginCodeInputProps {
|
|
3
|
+
/** 账号(邮箱或手机号) */
|
|
4
|
+
account: string;
|
|
5
|
+
/** 账号类型 */
|
|
6
|
+
accountType: 'email' | 'phone';
|
|
7
|
+
/** 验证码长度 */
|
|
8
|
+
codeLength?: number;
|
|
9
|
+
/** 提交验证码 */
|
|
10
|
+
onSubmit?: (code: string) => void;
|
|
11
|
+
/** 重新发送 */
|
|
12
|
+
onResend?: () => void;
|
|
13
|
+
/** 返回 */
|
|
14
|
+
onBack?: () => void;
|
|
15
|
+
/** 倒计时秒数 */
|
|
16
|
+
countdown?: number;
|
|
17
|
+
/** 加载状态 */
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
/** 按钮文案(默认为"Log in",忘记密码场景为"Verify") */
|
|
20
|
+
submitButtonText?: string;
|
|
21
|
+
/** 错误信息 */
|
|
22
|
+
error?: string;
|
|
23
|
+
/** 当用户输入时清除错误的回调 */
|
|
24
|
+
onClearError?: () => void;
|
|
25
|
+
}
|
|
26
|
+
declare function LoginCodeInput({ account, accountType, codeLength, onSubmit, onResend, onBack, countdown, loading, submitButtonText, error, onClearError, }: LoginCodeInputProps): JSX.Element;
|
|
27
|
+
export default LoginCodeInput;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface OAuthProviderConfig {
|
|
3
|
+
key: string;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
badge?: string;
|
|
10
|
+
badgeClassName?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface OAuthButtonGroupProps {
|
|
13
|
+
providers: OAuthProviderConfig[];
|
|
14
|
+
layout?: 'vertical' | 'horizontal';
|
|
15
|
+
size?: 'large' | 'middle' | 'small';
|
|
16
|
+
block?: boolean;
|
|
17
|
+
wrapperClassName?: string;
|
|
18
|
+
buttonClassName?: string;
|
|
19
|
+
gap?: number;
|
|
20
|
+
}
|
|
21
|
+
declare const OAuthButtonGroup: React.FC<OAuthButtonGroupProps>;
|
|
22
|
+
export default OAuthButtonGroup;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './PhoneInput.less';
|
|
3
|
+
/** 国家/地区配置(后端返回格式) */
|
|
4
|
+
export interface CountryOption {
|
|
5
|
+
/** 国家/地区名称 */
|
|
6
|
+
name: string;
|
|
7
|
+
/** 国家/地区代码 */
|
|
8
|
+
code: string;
|
|
9
|
+
/** 区号(不带+号) */
|
|
10
|
+
calling_code: string;
|
|
11
|
+
/** 货币代码 */
|
|
12
|
+
currency_code: string;
|
|
13
|
+
}
|
|
14
|
+
/** 手机号对象格式 */
|
|
15
|
+
export interface PhoneValueObject {
|
|
16
|
+
/** 手机号(不含区号) */
|
|
17
|
+
phone: string;
|
|
18
|
+
/** 国家区号(不带+号) */
|
|
19
|
+
country_calling_code: string;
|
|
20
|
+
}
|
|
21
|
+
/** 值格式类型 */
|
|
22
|
+
export declare type ValueFormat = 'string' | 'object';
|
|
23
|
+
/** 手机号输入组件属性 */
|
|
24
|
+
export interface PhoneInputProps {
|
|
25
|
+
/** 完整的手机号值(包含区号),格式:+86138****,或 +1555****(字符串模式) */
|
|
26
|
+
value?: string | PhoneValueObject;
|
|
27
|
+
/** 值变化回调 */
|
|
28
|
+
onChange?: (value: string | PhoneValueObject) => void;
|
|
29
|
+
/** Placeholder */
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
/** 大小 */
|
|
32
|
+
size?: 'large' | 'middle' | 'small';
|
|
33
|
+
/** 是否禁用 */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** 自定义类名 */
|
|
36
|
+
className?: string;
|
|
37
|
+
/** 可用的国家/地区列表 */
|
|
38
|
+
countries?: CountryOption[];
|
|
39
|
+
/** 默认国家/地区代码 */
|
|
40
|
+
defaultCountry?: string;
|
|
41
|
+
/** 值格式:'string' 返回 "+8613800138000",'object' 返回 { phone: "13800138000", country_calling_code: "86" } */
|
|
42
|
+
valueFormat?: ValueFormat;
|
|
43
|
+
/** 键盘按键事件回调 */
|
|
44
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 手机号输入组件
|
|
48
|
+
*
|
|
49
|
+
* 支持国际区号选择和手机号输入
|
|
50
|
+
* 值格式:+区号+手机号,例如:+8613800138000 或 +15551234567
|
|
51
|
+
*/
|
|
52
|
+
declare function PhoneInput({ value, onChange, placeholder, onKeyDown, size, disabled, className, countries, defaultCountry, valueFormat, }: PhoneInputProps): JSX.Element;
|
|
53
|
+
export default PhoneInput;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PhoneValueObject } from './PhoneInput';
|
|
2
|
+
declare type GetTextFunction = (key: string) => string;
|
|
3
|
+
/**
|
|
4
|
+
* 手机号校验函数,用于 Ant Design Form 的 rules
|
|
5
|
+
* @param value 手机号值,可以是字符串或对象格式
|
|
6
|
+
* @param getText 国际化文本获取函数
|
|
7
|
+
* @returns Promise<void> 校验通过时 resolve,失败时 reject 并返回错误信息
|
|
8
|
+
*/
|
|
9
|
+
export declare const validatePhoneNumber: (value: string | PhoneValueObject, getText: GetTextFunction) => Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* 创建手机号校验规则,用于 Form.Item 的 rules 属性
|
|
12
|
+
* @param getText 国际化文本获取函数
|
|
13
|
+
* @param required 是否必填
|
|
14
|
+
* @returns Form 校验规则数组
|
|
15
|
+
*/
|
|
16
|
+
export declare const createPhoneValidationRules: (getText: GetTextFunction, required?: boolean) => any[];
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Rule } from 'antd/es/form';
|
|
2
|
+
export interface PasswordRuleConfig {
|
|
3
|
+
minLength?: number;
|
|
4
|
+
requireUppercase?: boolean;
|
|
5
|
+
requireLowercase?: boolean;
|
|
6
|
+
requireNumber?: boolean;
|
|
7
|
+
requireSpecialCharacters?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface PasswordRuleMessages {
|
|
10
|
+
required?: string;
|
|
11
|
+
minLength?: string;
|
|
12
|
+
requireUppercase?: string;
|
|
13
|
+
requireLowercase?: string;
|
|
14
|
+
requireNumber?: string;
|
|
15
|
+
requireSpecialCharacters?: string;
|
|
16
|
+
summary?: string;
|
|
17
|
+
}
|
|
18
|
+
interface UsePasswordValidationRulesOptions {
|
|
19
|
+
translate?: (key: string) => string;
|
|
20
|
+
fallbackMinLength?: number;
|
|
21
|
+
messageKeys?: PasswordRuleMessages;
|
|
22
|
+
}
|
|
23
|
+
export declare const usePasswordValidationRules: (passwordRules?: PasswordRuleConfig, options?: UsePasswordValidationRulesOptions) => Rule[];
|
|
24
|
+
export default usePasswordValidationRules;
|