@pisell/private-materials 6.3.114 → 6.3.116
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.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/eftpos/index.js +3 -3
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +7 -1
- package/es/components/eftposPay/device.js +7 -3
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftpos/index.js +3 -3
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +6 -1
- package/lib/components/eftposPay/device.js +24 -21
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/es/components/appointmentBooking/locales.d.ts +0 -366
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
- package/es/components/booking/components/tabPane/index.d.ts +0 -4
- package/es/components/booking/dashboard/serve.d.ts +0 -1
- package/es/components/booking/editBookingModal/locales.d.ts +0 -21
- package/es/components/booking/editBookingModal/mock.d.ts +0 -807
- package/es/components/booking/forms/serve.d.ts +0 -18
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/client/serve.d.ts +0 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/es/components/booking/info/pet/serve.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/es/components/booking/info/service/serve.d.ts +0 -20
- package/es/components/booking/info2/serve.d.ts +0 -6
- package/es/components/booking/info2/service/addService/mock.d.ts +0 -214
- package/es/components/booking/locales.d.ts +0 -846
- package/es/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/es/components/eftpos/SettlementModal/Action.d.ts +0 -8
- package/es/components/eftpos/SettlementModal/types.d.ts +0 -138
- package/es/components/eftpos/const.d.ts +0 -66
- package/es/components/eftpos/hooks.d.ts +0 -46
- package/es/components/eftpos/locales.d.ts +0 -138
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -101
- package/es/components/eftposPay/app.d.ts +0 -11
- package/es/components/eftposPay/const.d.ts +0 -191
- package/es/components/eftposPay/locales.d.ts +0 -333
- package/es/components/eftposPay/mx51/Action.d.ts +0 -7
- package/es/components/eftposPay/mx51/types.d.ts +0 -138
- package/es/components/eftposPay/mx51/utils.d.ts +0 -10
- package/es/components/eftposPay/store/index.d.ts +0 -355
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/es/components/eventBooking/locales.d.ts +0 -246
- package/es/components/kioskSkuDetail/locales.d.ts +0 -27
- package/es/components/login/locales.d.ts +0 -24
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -307
- package/es/components/pinModal/locales.d.ts +0 -27
- package/es/components/pinVerifyModal/locales.d.ts +0 -24
- package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -81
- package/es/components/productExtension/locales.d.ts +0 -48
- package/es/components/productSelect/locales.d.ts +0 -18
- package/es/components/ruleSetting/locales.d.ts +0 -48
- package/es/components/schedules/locales.d.ts +0 -87
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/stepController/locales.d.ts +0 -27
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/systemSettings/registry/locales.d.ts +0 -272
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/types.d.ts +0 -126
- package/es/components/taxSelect/locales.d.ts +0 -24
- package/es/components/ticketBooking/locales.d.ts +0 -174
- package/es/components/wallet/utils.d.ts +0 -48
- package/es/components/walletList/locales.d.ts +0 -27
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/hooks/useEngineContext.d.ts +0 -10
- package/es/hooks/useLocale.d.ts +0 -2
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/es/plus/contactInfo/locales.d.ts +0 -15
- package/es/plus/contactInfoModal/locales.d.ts +0 -66
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
- package/es/plus/productSelect/locales.d.ts +0 -18
- package/es/plus/saasCreateOrganization/locales.d.ts +0 -15
- package/es/plus/saasLogin/locales.d.ts +0 -51
- package/es/plus/saasRegister/locales.d.ts +0 -117
- package/es/plus/selectHolder/locales.d.ts +0 -21
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -33
- package/es/plus/skuOptionsSelection/store/store.d.ts +0 -4
- package/es/plus/skuOptionsSelection/types.d.ts +0 -429
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/es/plus/walletEditor/locales.d.ts +0 -135
- package/es/plus/walletEditor/types.d.ts +0 -52
- package/es/plus/walletPassGallery/locales.d.ts +0 -285
- package/es/plus/walletPassGallery/utils.d.ts +0 -48
- package/es/pro/Login2.0/locales.d.ts +0 -543
- package/es/pro/Login2.0/shared/types.d.ts +0 -232
- package/es/pro/NumericStepper/index.d.ts +0 -43
- package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/es/pro/Selector/Item.d.ts +0 -14
- package/es/pro/Selector/components/Card/index.d.ts +0 -57
- package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
- package/es/pro/Selector/components/Media/index.d.ts +0 -6
- package/es/pro/Selector/demo.d.ts +0 -3
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
- package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/es/pro/Selector/locales.d.ts +0 -36
- package/es/pro/Selector/types.d.ts +0 -173
- package/es/pro/Selector/utils/index.d.ts +0 -49
- package/es/pro/numberKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/lib/components/appointmentBooking/locales.d.ts +0 -366
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
- package/lib/components/booking/components/tabPane/index.d.ts +0 -4
- package/lib/components/booking/dashboard/serve.d.ts +0 -1
- package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
- package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
- package/lib/components/booking/forms/serve.d.ts +0 -18
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/client/serve.d.ts +0 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/lib/components/booking/info/pet/serve.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/lib/components/booking/info/service/serve.d.ts +0 -20
- package/lib/components/booking/info2/serve.d.ts +0 -6
- package/lib/components/booking/info2/service/addService/mock.d.ts +0 -214
- package/lib/components/booking/locales.d.ts +0 -846
- package/lib/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/lib/components/eftpos/SettlementModal/Action.d.ts +0 -8
- package/lib/components/eftpos/SettlementModal/types.d.ts +0 -138
- package/lib/components/eftpos/const.d.ts +0 -66
- package/lib/components/eftpos/hooks.d.ts +0 -46
- package/lib/components/eftpos/locales.d.ts +0 -138
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -101
- package/lib/components/eftposPay/app.d.ts +0 -11
- package/lib/components/eftposPay/const.d.ts +0 -191
- package/lib/components/eftposPay/locales.d.ts +0 -333
- package/lib/components/eftposPay/mx51/Action.d.ts +0 -7
- package/lib/components/eftposPay/mx51/types.d.ts +0 -138
- package/lib/components/eftposPay/mx51/utils.d.ts +0 -10
- package/lib/components/eftposPay/store/index.d.ts +0 -355
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/lib/components/eventBooking/locales.d.ts +0 -246
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -27
- package/lib/components/login/locales.d.ts +0 -24
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -307
- package/lib/components/pinModal/locales.d.ts +0 -27
- package/lib/components/pinVerifyModal/locales.d.ts +0 -24
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -81
- package/lib/components/productExtension/locales.d.ts +0 -48
- package/lib/components/productSelect/locales.d.ts +0 -18
- package/lib/components/ruleSetting/locales.d.ts +0 -48
- package/lib/components/schedules/locales.d.ts +0 -87
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/stepController/locales.d.ts +0 -27
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/systemSettings/registry/locales.d.ts +0 -272
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/types.d.ts +0 -126
- package/lib/components/taxSelect/locales.d.ts +0 -24
- package/lib/components/ticketBooking/locales.d.ts +0 -174
- package/lib/components/wallet/utils.d.ts +0 -48
- package/lib/components/walletList/locales.d.ts +0 -27
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/hooks/useEngineContext.d.ts +0 -10
- package/lib/hooks/useLocale.d.ts +0 -2
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/lib/plus/contactInfo/locales.d.ts +0 -15
- package/lib/plus/contactInfoModal/locales.d.ts +0 -66
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
- package/lib/plus/productSelect/locales.d.ts +0 -18
- package/lib/plus/saasCreateOrganization/locales.d.ts +0 -15
- package/lib/plus/saasLogin/locales.d.ts +0 -51
- package/lib/plus/saasRegister/locales.d.ts +0 -117
- package/lib/plus/selectHolder/locales.d.ts +0 -21
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -33
- package/lib/plus/skuOptionsSelection/store/store.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/types.d.ts +0 -429
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/lib/plus/walletEditor/locales.d.ts +0 -135
- package/lib/plus/walletEditor/types.d.ts +0 -52
- package/lib/plus/walletPassGallery/locales.d.ts +0 -285
- package/lib/plus/walletPassGallery/utils.d.ts +0 -48
- package/lib/pro/Login2.0/locales.d.ts +0 -543
- package/lib/pro/Login2.0/shared/types.d.ts +0 -232
- package/lib/pro/NumericStepper/index.d.ts +0 -43
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/lib/pro/Selector/Item.d.ts +0 -14
- package/lib/pro/Selector/components/Card/index.d.ts +0 -57
- package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
- package/lib/pro/Selector/components/Media/index.d.ts +0 -6
- package/lib/pro/Selector/demo.d.ts +0 -3
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/lib/pro/Selector/locales.d.ts +0 -36
- package/lib/pro/Selector/types.d.ts +0 -173
- package/lib/pro/Selector/utils/index.d.ts +0 -49
- package/lib/pro/numberKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 登录注册 2.0 共享类型定义
|
|
3
|
-
*/
|
|
4
|
-
/** 验证方式枚举 */
|
|
5
|
-
export declare type VerificationMethod = 'verification_code' | 'password';
|
|
6
|
-
/** 邮箱注册验证方式 */
|
|
7
|
-
export declare type EmailRegistrationVerification = 'verification_link' | 'verification_code' | 'none';
|
|
8
|
-
/** 手机注册验证方式 */
|
|
9
|
-
export declare type PhoneRegistrationVerification = 'verification_code';
|
|
10
|
-
/** 认证方式类型 */
|
|
11
|
-
export declare type AuthMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple' | 'guest';
|
|
12
|
-
/** 登录方式项类型 */
|
|
13
|
-
export declare type LoginMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple' | 'guest';
|
|
14
|
-
export interface PhoneValueObject {
|
|
15
|
-
phone: string;
|
|
16
|
-
country_calling_code: string;
|
|
17
|
-
}
|
|
18
|
-
/** 邮箱登录方式项 */
|
|
19
|
-
export interface EmailLoginMethod {
|
|
20
|
-
type: 'email';
|
|
21
|
-
/** 启用的验证方式(按顺序),第一个为默认方式 */
|
|
22
|
-
verificationMethods: Array<'password' | 'verification_code'>;
|
|
23
|
-
/** 密码登录是否分步骤填写(先输入邮箱,再输入密码) */
|
|
24
|
-
stepByStep?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/** 手机登录方式项 */
|
|
27
|
-
export interface PhoneLoginMethod {
|
|
28
|
-
type: 'phone';
|
|
29
|
-
/** 启用的验证方式(按顺序),第一个为默认方式 */
|
|
30
|
-
verificationMethods: Array<'password' | 'verification_code'>;
|
|
31
|
-
/** 密码登录是否分步骤填写(先输入手机号,再输入密码) */
|
|
32
|
-
stepByStep?: boolean;
|
|
33
|
-
}
|
|
34
|
-
/** Google 登录方式项 */
|
|
35
|
-
export interface GoogleLoginMethod {
|
|
36
|
-
type: 'google';
|
|
37
|
-
/** Google Client ID */
|
|
38
|
-
clientId?: string;
|
|
39
|
-
}
|
|
40
|
-
/** Facebook 登录方式项 */
|
|
41
|
-
export interface FacebookLoginMethod {
|
|
42
|
-
type: 'facebook';
|
|
43
|
-
/** Facebook App ID */
|
|
44
|
-
appId?: string;
|
|
45
|
-
}
|
|
46
|
-
/** Apple 登录方式项 */
|
|
47
|
-
export interface AppleLoginMethod {
|
|
48
|
-
type: 'apple';
|
|
49
|
-
/** Apple Client ID */
|
|
50
|
-
clientId?: string;
|
|
51
|
-
}
|
|
52
|
-
/** Guest 登录方式项 */
|
|
53
|
-
export interface GuestLoginMethod {
|
|
54
|
-
type: 'guest';
|
|
55
|
-
}
|
|
56
|
-
/** 注册方式类型 */
|
|
57
|
-
export declare type RegistrationMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple';
|
|
58
|
-
/** 邮箱注册方式项 */
|
|
59
|
-
export interface EmailRegistrationMethod {
|
|
60
|
-
type: 'email';
|
|
61
|
-
/** 注册验证方式(邮箱支持验证链接/验证码/无需验证) */
|
|
62
|
-
verificationMethod: 'verification_link' | 'verification_code' | 'none';
|
|
63
|
-
}
|
|
64
|
-
/** 手机注册方式项 */
|
|
65
|
-
export interface PhoneRegistrationMethod {
|
|
66
|
-
type: 'phone';
|
|
67
|
-
/** 注册验证方式(手机仅支持验证码) */
|
|
68
|
-
verificationMethod: 'verification_code';
|
|
69
|
-
}
|
|
70
|
-
/** Google 注册方式项 */
|
|
71
|
-
export interface GoogleRegistrationMethod {
|
|
72
|
-
type: 'google';
|
|
73
|
-
/** Google Client ID */
|
|
74
|
-
clientId?: string;
|
|
75
|
-
}
|
|
76
|
-
/** Facebook 注册方式项 */
|
|
77
|
-
export interface FacebookRegistrationMethod {
|
|
78
|
-
type: 'facebook';
|
|
79
|
-
/** Facebook App ID */
|
|
80
|
-
appId?: string;
|
|
81
|
-
}
|
|
82
|
-
/** Apple 注册方式项 */
|
|
83
|
-
export interface AppleRegistrationMethod {
|
|
84
|
-
type: 'apple';
|
|
85
|
-
/** Apple Client ID */
|
|
86
|
-
clientId?: string;
|
|
87
|
-
}
|
|
88
|
-
/** 注册方式项联合类型 */
|
|
89
|
-
export declare type RegistrationMethodItem = EmailRegistrationMethod | PhoneRegistrationMethod | GoogleRegistrationMethod | FacebookRegistrationMethod | AppleRegistrationMethod;
|
|
90
|
-
/** 法律条款项 */
|
|
91
|
-
export interface LegalTermItem {
|
|
92
|
-
/** 条款名称 - 支持国际化对象或简单字符串 */
|
|
93
|
-
name: string | {
|
|
94
|
-
en?: string;
|
|
95
|
-
'zh-CN'?: string;
|
|
96
|
-
'zh-HK'?: string;
|
|
97
|
-
original?: string;
|
|
98
|
-
};
|
|
99
|
-
/** 条款链接 */
|
|
100
|
-
url: string;
|
|
101
|
-
}
|
|
102
|
-
/** 法律条款配置 */
|
|
103
|
-
export interface LegalTermsConfig {
|
|
104
|
-
/** 是否显示法律条款区域 */
|
|
105
|
-
enabled?: boolean;
|
|
106
|
-
/** 法律条款列表 */
|
|
107
|
-
terms?: LegalTermItem[];
|
|
108
|
-
/** 条款文本模板 */
|
|
109
|
-
textTemplate?: string;
|
|
110
|
-
/** 当前模式:login 或 register */
|
|
111
|
-
mode?: 'login' | 'register';
|
|
112
|
-
}
|
|
113
|
-
/** 登录方式项联合类型 */
|
|
114
|
-
export declare type LoginMethodItem = EmailLoginMethod | PhoneLoginMethod | GoogleLoginMethod | FacebookLoginMethod | AppleLoginMethod | GuestLoginMethod;
|
|
115
|
-
/** 邮箱认证配置 */
|
|
116
|
-
export interface EmailAuthConfig {
|
|
117
|
-
/** 是否启用邮箱认证 */
|
|
118
|
-
enable_email: boolean;
|
|
119
|
-
/** 注册验证方式 */
|
|
120
|
-
registration_verification?: EmailRegistrationVerification;
|
|
121
|
-
/** 登录验证方式列表 */
|
|
122
|
-
login_verification_methods?: VerificationMethod[];
|
|
123
|
-
}
|
|
124
|
-
/** 手机认证配置 */
|
|
125
|
-
export interface PhoneAuthConfig {
|
|
126
|
-
/** 是否启用手机认证 */
|
|
127
|
-
enable_phone_number: boolean;
|
|
128
|
-
/** 注册验证方式 */
|
|
129
|
-
registration_verification?: PhoneRegistrationVerification;
|
|
130
|
-
/** 登录验证方式列表 */
|
|
131
|
-
login_verification_methods?: VerificationMethod[];
|
|
132
|
-
}
|
|
133
|
-
/** 三方 OAuth 配置 */
|
|
134
|
-
export interface OAuthConfig {
|
|
135
|
-
/** Google 登录 */
|
|
136
|
-
google?: {
|
|
137
|
-
enabled: boolean;
|
|
138
|
-
client_id?: string;
|
|
139
|
-
};
|
|
140
|
-
/** Facebook 登录 */
|
|
141
|
-
facebook?: {
|
|
142
|
-
enabled: boolean;
|
|
143
|
-
app_id?: string;
|
|
144
|
-
};
|
|
145
|
-
/** Apple 登录 */
|
|
146
|
-
apple?: {
|
|
147
|
-
enabled: boolean;
|
|
148
|
-
client_id?: string;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
/** UI 配置 */
|
|
152
|
-
export interface UIConfig {
|
|
153
|
-
/** Logo 配置 */
|
|
154
|
-
logo?: {
|
|
155
|
-
show: boolean;
|
|
156
|
-
url?: string;
|
|
157
|
-
position?: 'left' | 'center' | 'right';
|
|
158
|
-
size?: {
|
|
159
|
-
width: number;
|
|
160
|
-
height: number;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
/** 标题配置 */
|
|
164
|
-
title?: {
|
|
165
|
-
show: boolean;
|
|
166
|
-
text?: string;
|
|
167
|
-
align?: 'left' | 'center' | 'right';
|
|
168
|
-
};
|
|
169
|
-
/** 副标题配置 */
|
|
170
|
-
subtitle?: {
|
|
171
|
-
show: boolean;
|
|
172
|
-
text?: string;
|
|
173
|
-
align?: 'left' | 'center' | 'right';
|
|
174
|
-
};
|
|
175
|
-
/** 描述配置 */
|
|
176
|
-
desc?: {
|
|
177
|
-
show: boolean;
|
|
178
|
-
text?: string;
|
|
179
|
-
align?: 'left' | 'center' | 'right';
|
|
180
|
-
};
|
|
181
|
-
/** 表单标签配置 */
|
|
182
|
-
formLabels?: {
|
|
183
|
-
/** 邮箱标签配置 */
|
|
184
|
-
email?: {
|
|
185
|
-
show: boolean;
|
|
186
|
-
text?: string;
|
|
187
|
-
};
|
|
188
|
-
/** 手机标签配置 */
|
|
189
|
-
phone?: {
|
|
190
|
-
show: boolean;
|
|
191
|
-
text?: string;
|
|
192
|
-
};
|
|
193
|
-
/** 密码标签配置 */
|
|
194
|
-
password?: {
|
|
195
|
-
show: boolean;
|
|
196
|
-
text?: string;
|
|
197
|
-
};
|
|
198
|
-
/** 验证码标签配置 */
|
|
199
|
-
verificationCode?: {
|
|
200
|
-
show: boolean;
|
|
201
|
-
text?: string;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
/** 密码规则 */
|
|
205
|
-
passwordRules?: any;
|
|
206
|
-
/** 主题色 */
|
|
207
|
-
themeColor?: string;
|
|
208
|
-
}
|
|
209
|
-
/** 登录表单数据 */
|
|
210
|
-
export interface LoginFormData {
|
|
211
|
-
/** 邮箱或手机号 */
|
|
212
|
-
account: string | PhoneValueObject;
|
|
213
|
-
/** 密码 */
|
|
214
|
-
password?: string;
|
|
215
|
-
/** 验证码 */
|
|
216
|
-
verification_code?: string;
|
|
217
|
-
/** 记住我 */
|
|
218
|
-
remember_me?: boolean;
|
|
219
|
-
}
|
|
220
|
-
/** 注册表单数据 */
|
|
221
|
-
export interface RegisterFormData {
|
|
222
|
-
/** 邮箱或手机号 */
|
|
223
|
-
account: string;
|
|
224
|
-
/** 密码 */
|
|
225
|
-
password?: string;
|
|
226
|
-
/** 确认密码 */
|
|
227
|
-
confirm_password?: string;
|
|
228
|
-
/** 验证码 */
|
|
229
|
-
verification_code?: string;
|
|
230
|
-
/** 验证链接 token */
|
|
231
|
-
verification_token?: string;
|
|
232
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
declare global {
|
|
4
|
-
namespace JSX {
|
|
5
|
-
interface IntrinsicElements {
|
|
6
|
-
[elemName: string]: any;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export interface NumericStepperProps {
|
|
11
|
-
/** 当前值 */
|
|
12
|
-
value?: number;
|
|
13
|
-
/** 默认值 */
|
|
14
|
-
defaultValue?: number;
|
|
15
|
-
/** 最小值 */
|
|
16
|
-
min?: number;
|
|
17
|
-
/** 最大值 */
|
|
18
|
-
max?: number;
|
|
19
|
-
/** 步长 */
|
|
20
|
-
step?: number;
|
|
21
|
-
/** 是否禁用 */
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
/** 值变化回调 */
|
|
24
|
-
onChange?: (value: number) => void;
|
|
25
|
-
/** 自定义类名 */
|
|
26
|
-
className?: string;
|
|
27
|
-
/** 自定义样式 */
|
|
28
|
-
styles?: {
|
|
29
|
-
container?: React.CSSProperties;
|
|
30
|
-
};
|
|
31
|
-
/** 尺寸 */
|
|
32
|
-
size?: 'small' | 'middle' | 'large';
|
|
33
|
-
/** 按钮形状 */
|
|
34
|
-
shape?: 'round' | 'square';
|
|
35
|
-
/** 是否显示输入框 */
|
|
36
|
-
showInput?: boolean;
|
|
37
|
-
/** 减号按钮的自定义内容 */
|
|
38
|
-
minusIcon?: React.ReactNode;
|
|
39
|
-
/** 加号按钮的自定义内容 */
|
|
40
|
-
plusIcon?: React.ReactNode;
|
|
41
|
-
}
|
|
42
|
-
declare const NumericStepper: React.FC<NumericStepperProps>;
|
|
43
|
-
export default NumericStepper;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { OptionItem } from './types';
|
|
3
|
-
export interface IItemProps {
|
|
4
|
-
actions: any;
|
|
5
|
-
dataSource: OptionItem;
|
|
6
|
-
indicator: React.ReactNode;
|
|
7
|
-
numberSelector: React.ReactNode;
|
|
8
|
-
optionItemValue?: any;
|
|
9
|
-
quantityInfo: any;
|
|
10
|
-
values: any;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare const Item: (props: IItemProps) => React.JSX.Element;
|
|
14
|
-
export default Item;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export declare type CardVariant = 'outlined' | 'borderless';
|
|
4
|
-
export declare type CardLayout = 'vertical' | 'horizontal';
|
|
5
|
-
export declare type SelectedType = 'none' | 'outlined' | 'outlined-bold' | 'filled';
|
|
6
|
-
export declare type ActionsPosition = 'left' | 'right';
|
|
7
|
-
export interface CardStyles {
|
|
8
|
-
container?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
9
|
-
content?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
10
|
-
actions?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
11
|
-
corner?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
12
|
-
}
|
|
13
|
-
export interface CardStyleProps {
|
|
14
|
-
selected?: boolean;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
hoverable?: boolean;
|
|
17
|
-
variant?: CardVariant;
|
|
18
|
-
layout?: CardLayout;
|
|
19
|
-
}
|
|
20
|
-
export interface CardProps {
|
|
21
|
-
/** 卡片变体样式 */
|
|
22
|
-
variant?: CardVariant;
|
|
23
|
-
/** 布局方向 */
|
|
24
|
-
layout?: CardLayout;
|
|
25
|
-
/** 操作按钮区域,水平模式在右侧,垂直模式在底部 */
|
|
26
|
-
actions?: React.ReactNode[];
|
|
27
|
-
/** 水平模式下,操作按钮的位置 */
|
|
28
|
-
actionsPosition?: ActionsPosition;
|
|
29
|
-
/** 垂直模式下,右上角绝对定位展示的组件 */
|
|
30
|
-
corner?: React.ReactNode;
|
|
31
|
-
/** 子内容 */
|
|
32
|
-
children?: React.ReactNode;
|
|
33
|
-
/** 选中状态 */
|
|
34
|
-
selected?: boolean;
|
|
35
|
-
/** 禁用状态 */
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
/** 是否可悬停 */
|
|
38
|
-
hoverable?: boolean;
|
|
39
|
-
/** 点击事件 */
|
|
40
|
-
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
41
|
-
/** 自定义样式 */
|
|
42
|
-
styles?: CardStyles;
|
|
43
|
-
/**
|
|
44
|
-
* 选中时的样式类型
|
|
45
|
-
* - none: 无样式
|
|
46
|
-
* - outlined: 边框高亮
|
|
47
|
-
* - outlined-bold: 边框高亮 + 加粗(使用 outline 实现,不影响布局)
|
|
48
|
-
* - filled: 填充背景色
|
|
49
|
-
*/
|
|
50
|
-
selectedType?: SelectedType;
|
|
51
|
-
/** 自定义类名 */
|
|
52
|
-
className?: string;
|
|
53
|
-
/** 自定义样式 */
|
|
54
|
-
style?: React.CSSProperties;
|
|
55
|
-
}
|
|
56
|
-
declare const Card: React.FC<CardProps>;
|
|
57
|
-
export default Card;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface IndicatorProps {
|
|
4
|
-
mode?: 'single' | 'multiple';
|
|
5
|
-
variant?: 'outlined' | 'filled';
|
|
6
|
-
defaultChecked?: boolean;
|
|
7
|
-
checked?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
-
className?: string;
|
|
11
|
-
styles?: {
|
|
12
|
-
container?: React.CSSProperties;
|
|
13
|
-
indicator?: React.CSSProperties;
|
|
14
|
-
};
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
size?: 'small' | 'middle' | 'large' | number;
|
|
17
|
-
}
|
|
18
|
-
declare const Indicator: React.FC<IndicatorProps>;
|
|
19
|
-
export default Indicator;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LayoutConfig } from '../../types';
|
|
3
|
-
interface LayoutContainerProps {
|
|
4
|
-
className: string;
|
|
5
|
-
config: LayoutConfig | null;
|
|
6
|
-
children: React.ReactNode[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 统一的布局容器组件
|
|
10
|
-
*
|
|
11
|
-
* 支持两种布局模式:
|
|
12
|
-
* 1. Custom 布局(推荐):通过 className 使用预设样式,containerStyle
|
|
13
|
-
* 2. Ant Design Grid 布局:基础的栅格布局,用于简单场景
|
|
14
|
-
*/
|
|
15
|
-
declare function LayoutContainer({ className: containerClassName, config, children, }: LayoutContainerProps): React.ReactElement | null;
|
|
16
|
-
export default LayoutContainer;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
import type { MediaProps, MediaStyleProps, MediaShape, MediaSize, MediaCoverType } from './types';
|
|
4
|
-
export type { MediaProps, MediaStyleProps, MediaShape, MediaSize, MediaCoverType };
|
|
5
|
-
declare const Media: React.FC<MediaProps>;
|
|
6
|
-
export default Media;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ItemProps, ItemLayout, SelectorVariant, PresetConfig } from '../types';
|
|
3
|
-
interface UsePresetItemPropsParams {
|
|
4
|
-
variant?: SelectorVariant;
|
|
5
|
-
itemLayout?: ItemLayout;
|
|
6
|
-
preset?: PresetConfig;
|
|
7
|
-
itemProps?: ItemProps;
|
|
8
|
-
indicator: React.ReactNode;
|
|
9
|
-
numberSelector: React.ReactNode;
|
|
10
|
-
mode?: 'single' | 'multiple';
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
selected?: boolean;
|
|
13
|
-
}
|
|
14
|
-
interface PresetItemPropsResult {
|
|
15
|
-
mediaProps: Record<string, any>;
|
|
16
|
-
cardProps: Record<string, any>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 根据预设项生成 option Item 的 props
|
|
20
|
-
*
|
|
21
|
-
* 规则说明:
|
|
22
|
-
* 1. variant='default': 使用 Card,borderless,horizontal,selectedType='none',actionsPosition='left'
|
|
23
|
-
* 1.1 preset.variant='1': renderContent={() => <span>{dataSource._label}</span>}
|
|
24
|
-
* 1.2 preset.variant='2': renderContent={() => <span>{dataSource._label}</span>}
|
|
25
|
-
* 2. variant='media': 使用 MediaItem
|
|
26
|
-
* 2.1 preset.variant='1': size='small', showIndicator=false, 单选shape='circle',多选shape='square'
|
|
27
|
-
* 2.2 preset.variant='2': size='large', showIndicator=true, shape='circle'
|
|
28
|
-
* 3. variant='card': 根据 itemLayout 区分横向和纵向
|
|
29
|
-
* 3.1 横向(horizontal):
|
|
30
|
-
* - preset.variant='2': selectedType='filled'
|
|
31
|
-
* - preset.variant='5': variant='borderless'
|
|
32
|
-
* - 默认样式: styles.container = { padding: 8 }
|
|
33
|
-
* - 使用 lodash merge 深度合并样式,itemProps.styles 优先级更高
|
|
34
|
-
* 3.2 纵向(vertical):
|
|
35
|
-
* - 统一使用 borderless,selectedType='none'
|
|
36
|
-
* - preset.variant='2': indicator 通过 corner 传入
|
|
37
|
-
* 3.3 actions 处理:
|
|
38
|
-
* - 优先使用 numberSelector(如果存在)
|
|
39
|
-
* - 其次使用 indicator
|
|
40
|
-
* - 纵向且 preset.variant='2': indicator 放到 corner,actions 仅展示 numberSelector
|
|
41
|
-
*/
|
|
42
|
-
declare const usePresetItemProps: (params: UsePresetItemPropsParams) => PresetItemPropsResult;
|
|
43
|
-
export default usePresetItemProps;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { LayoutConfig, ItemLayout, PresetConfig, SelectorVariant, SelectorProps } from '../types';
|
|
2
|
-
interface UsePresetPropsParams {
|
|
3
|
-
layout?: LayoutConfig;
|
|
4
|
-
mode?: 'single' | 'multiple';
|
|
5
|
-
preset?: PresetConfig;
|
|
6
|
-
itemLayout?: ItemLayout;
|
|
7
|
-
variant?: SelectorVariant;
|
|
8
|
-
indicatorProps?: SelectorProps['indicatorProps'];
|
|
9
|
-
}
|
|
10
|
-
interface UsePresetPropsResult {
|
|
11
|
-
layout: LayoutConfig | null;
|
|
12
|
-
indicatorProps: SelectorProps['indicatorProps'];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 根据预设配置生成 layout 和 indicatorProps
|
|
16
|
-
* Layout 规则:
|
|
17
|
-
* - 根据 variant 和 preset.variant 计算布局样式
|
|
18
|
-
* IndicatorProps 规则:
|
|
19
|
-
* 1. 当 variant='card' 且 preset.variant='2' 时,indicator 默认 variant='filled'
|
|
20
|
-
* 2. 当 variant='media' 时,indicator 默认 variant='filled'
|
|
21
|
-
* 3. 外部传入的 indicatorProps 优先级更高(会合并到预设配置中)
|
|
22
|
-
*/
|
|
23
|
-
declare const usePresetProps: ({ layout, mode, preset, itemLayout, variant, indicatorProps, }: UsePresetPropsParams) => UsePresetPropsResult;
|
|
24
|
-
export default usePresetProps;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell2.pro.selector.mode.single': string;
|
|
4
|
-
'pisell2.pro.selector.mode.multiple': string;
|
|
5
|
-
'pisell2.pro.selector.validate.required-msg': string;
|
|
6
|
-
'pisell2.pro.selector.validate.requireOneOf-msg': string;
|
|
7
|
-
'pisell2.pro.selector.required-tag': string;
|
|
8
|
-
'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
|
|
9
|
-
'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
|
|
10
|
-
'pisell2.pro.selector.tip.require-one-option': string;
|
|
11
|
-
'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
|
|
12
|
-
};
|
|
13
|
-
'zh-CN': {
|
|
14
|
-
'pisell2.pro.selector.mode.single': string;
|
|
15
|
-
'pisell2.pro.selector.mode.multiple': string;
|
|
16
|
-
'pisell2.pro.selector.validate.required-msg': string;
|
|
17
|
-
'pisell2.pro.selector.validate.requireOneOf-msg': string;
|
|
18
|
-
'pisell2.pro.selector.required-tag': string;
|
|
19
|
-
'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
|
|
20
|
-
'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
|
|
21
|
-
'pisell2.pro.selector.tip.require-one-option': string;
|
|
22
|
-
'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
|
|
23
|
-
};
|
|
24
|
-
'zh-HK': {
|
|
25
|
-
'pisell2.pro.selector.mode.single': string;
|
|
26
|
-
'pisell2.pro.selector.mode.multiple': string;
|
|
27
|
-
'pisell2.pro.selector.validate.required-msg': string;
|
|
28
|
-
'pisell2.pro.selector.validate.requireOneOf-msg': string;
|
|
29
|
-
'pisell2.pro.selector.required-tag': string;
|
|
30
|
-
'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
|
|
31
|
-
'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
|
|
32
|
-
'pisell2.pro.selector.tip.require-one-option': string;
|
|
33
|
-
'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export default _default;
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface ExprRule {
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
}
|
|
5
|
-
export interface RuleConfig {
|
|
6
|
-
autoValidate?: boolean;
|
|
7
|
-
required?: 0 | 1;
|
|
8
|
-
min?: number;
|
|
9
|
-
max?: number;
|
|
10
|
-
mutex?: Array<Array<OptionKey>>;
|
|
11
|
-
customValidator?: (value: SelectionValue) => Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
export interface GroupItem {
|
|
14
|
-
id?: number;
|
|
15
|
-
title?: string;
|
|
16
|
-
mode?: 'single' | 'multiple';
|
|
17
|
-
valueType?: 'primitive' | 'object';
|
|
18
|
-
preserve?: boolean;
|
|
19
|
-
fieldNames?: {
|
|
20
|
-
label?: string;
|
|
21
|
-
value?: string;
|
|
22
|
-
cover?: string;
|
|
23
|
-
};
|
|
24
|
-
ruleConfig?: RuleConfig;
|
|
25
|
-
dataSource?: OptionItem[];
|
|
26
|
-
}
|
|
27
|
-
export interface OptionItem {
|
|
28
|
-
id?: number;
|
|
29
|
-
title?: string;
|
|
30
|
-
label?: string;
|
|
31
|
-
value?: OptionKey;
|
|
32
|
-
cover?: string;
|
|
33
|
-
groups?: GroupItem[];
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
ruleConfig?: {
|
|
36
|
-
min?: number;
|
|
37
|
-
max?: number;
|
|
38
|
-
};
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}
|
|
41
|
-
export declare type OptionKey = number | string;
|
|
42
|
-
/** 原始值类型:单选时为id,多选时为id[] */
|
|
43
|
-
export declare type SelectionValuePrimitive<T = OptionKey> = T | T[];
|
|
44
|
-
/** 复杂对象值类型:包含id、数量等额外信息 */
|
|
45
|
-
export interface SelectionValueObject<T = OptionKey> {
|
|
46
|
-
value?: T;
|
|
47
|
-
quantity?: number;
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
}
|
|
50
|
-
/** 单选值类型 */
|
|
51
|
-
export declare type SelectionValueSingle<T = OptionKey> = T | SelectionValueObject<T>;
|
|
52
|
-
/** 多选值类型 */
|
|
53
|
-
export declare type SelectionValueMultiple<T = OptionKey> = T[] | SelectionValueObject<T>[];
|
|
54
|
-
/** 选择器值类型 */
|
|
55
|
-
export declare type SelectionValue<T = OptionKey> = SelectionValueSingle<T> | SelectionValueMultiple<T>;
|
|
56
|
-
export declare type RenderItemProps = {
|
|
57
|
-
dataSource: OptionItem;
|
|
58
|
-
actions: any;
|
|
59
|
-
optionItemValue?: any;
|
|
60
|
-
indicator: React.ReactNode;
|
|
61
|
-
numberSelector: React.ReactNode;
|
|
62
|
-
values: any;
|
|
63
|
-
quantityInfo: {
|
|
64
|
-
maxReached: boolean;
|
|
65
|
-
remainingCount: number;
|
|
66
|
-
selectedCount: number;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export declare type ItemProps = {
|
|
70
|
-
layout?: 'vertical' | 'horizontal';
|
|
71
|
-
renderContent?: (props: {
|
|
72
|
-
dataSource: OptionItem;
|
|
73
|
-
}) => React.ReactNode;
|
|
74
|
-
styles?: {
|
|
75
|
-
[key: string]: React.CSSProperties;
|
|
76
|
-
};
|
|
77
|
-
[key: string]: any;
|
|
78
|
-
};
|
|
79
|
-
export declare type LayoutType = 'antdGrid' | 'custom';
|
|
80
|
-
export declare type LayoutConfig = {
|
|
81
|
-
type?: LayoutType;
|
|
82
|
-
className?: string;
|
|
83
|
-
containerStyle?: React.CSSProperties;
|
|
84
|
-
columns?: number;
|
|
85
|
-
gutter?: number | object | Array<number>;
|
|
86
|
-
align?: 'top' | 'middle' | 'bottom' | 'stretch';
|
|
87
|
-
justify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around';
|
|
88
|
-
wrap?: boolean;
|
|
89
|
-
colConfig?: {
|
|
90
|
-
[key: string]: any;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
export interface PresetConfig {
|
|
94
|
-
variant?: '1' | '2' | '3' | '4' | '5';
|
|
95
|
-
}
|
|
96
|
-
export declare type ItemLayout = 'vertical' | 'horizontal';
|
|
97
|
-
export declare type SelectorVariant = 'default' | 'select' | 'card' | 'media';
|
|
98
|
-
export declare type HeaderProps = {
|
|
99
|
-
visible?: boolean;
|
|
100
|
-
style?: React.CSSProperties;
|
|
101
|
-
title?: {
|
|
102
|
-
visible?: boolean;
|
|
103
|
-
text?: React.ReactNode;
|
|
104
|
-
style?: React.CSSProperties;
|
|
105
|
-
};
|
|
106
|
-
icon?: {
|
|
107
|
-
visible?: boolean;
|
|
108
|
-
icon?: React.ReactNode;
|
|
109
|
-
style?: React.CSSProperties;
|
|
110
|
-
};
|
|
111
|
-
tip?: {
|
|
112
|
-
visible?: boolean;
|
|
113
|
-
text?: React.ReactNode;
|
|
114
|
-
style?: React.CSSProperties;
|
|
115
|
-
};
|
|
116
|
-
renderExtra?: (props: {
|
|
117
|
-
dataSource: OptionItem;
|
|
118
|
-
values: SelectionValue;
|
|
119
|
-
}) => React.ReactNode;
|
|
120
|
-
};
|
|
121
|
-
export interface SelectorProps<T = OptionKey> extends GroupItem {
|
|
122
|
-
className?: string;
|
|
123
|
-
value?: SelectionValue<T>;
|
|
124
|
-
defaultValue?: SelectionValue<T>;
|
|
125
|
-
onChange?: (value: SelectionValue<T>) => void;
|
|
126
|
-
onClear?: () => void;
|
|
127
|
-
disabled?: boolean;
|
|
128
|
-
variant?: SelectorVariant;
|
|
129
|
-
itemLayout?: ItemLayout;
|
|
130
|
-
preset?: PresetConfig;
|
|
131
|
-
layout?: LayoutConfig;
|
|
132
|
-
renderItem?: (props: RenderItemProps) => React.ReactNode;
|
|
133
|
-
itemProps?: ItemProps;
|
|
134
|
-
indicatorProps?: {
|
|
135
|
-
show?: boolean;
|
|
136
|
-
variant?: 'outlined' | 'filled';
|
|
137
|
-
render?: (props: {
|
|
138
|
-
option: OptionItem;
|
|
139
|
-
selected: boolean;
|
|
140
|
-
disabled: boolean;
|
|
141
|
-
actions: any;
|
|
142
|
-
}) => React.ReactNode;
|
|
143
|
-
[key: string]: any;
|
|
144
|
-
};
|
|
145
|
-
showStepper?: true | false | 'auto';
|
|
146
|
-
stepperProps?: {
|
|
147
|
-
size?: 'small' | 'middle' | 'large';
|
|
148
|
-
shape?: 'round' | 'square';
|
|
149
|
-
};
|
|
150
|
-
style?: React.CSSProperties;
|
|
151
|
-
/**
|
|
152
|
-
* @deprecated
|
|
153
|
-
*/
|
|
154
|
-
titleProps?: HeaderProps;
|
|
155
|
-
headerProps?: HeaderProps;
|
|
156
|
-
}
|
|
157
|
-
export interface SelectorGroupProps {
|
|
158
|
-
allowedValuesPolicy?: 'relaxed' | 'strict';
|
|
159
|
-
className?: string;
|
|
160
|
-
customScrollParent?: HTMLElement | string;
|
|
161
|
-
dataSource: GroupItem[];
|
|
162
|
-
defaultValue?: Record<string, SelectionValue>;
|
|
163
|
-
linkageRules?: ExprRule[] | Record<string, any>;
|
|
164
|
-
onChange?: (values: Record<string, SelectionValue>) => void;
|
|
165
|
-
preserve?: boolean;
|
|
166
|
-
tabProps?: {
|
|
167
|
-
visible?: boolean;
|
|
168
|
-
};
|
|
169
|
-
style?: React.CSSProperties;
|
|
170
|
-
value?: Record<string, SelectionValue>;
|
|
171
|
-
scrollToFirstError?: boolean;
|
|
172
|
-
[key: string]: any;
|
|
173
|
-
}
|