@pisell/private-materials 6.5.27 → 6.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +146 -165
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +24 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +24 -9
- package/es/components/Sales/Event/Detail.js +4 -3
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/components/Services/index.js +22 -8
- package/es/components/appointmentBooking/hooks.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.js +35 -30
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
- package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
- package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
- package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
- package/es/components/authentication/admin/AuthMethods/index.js +233 -0
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
- package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/es/components/authentication/admin/AuthMethods/types.js +23 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
- package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
- package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
- package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
- package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
- package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
- package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
- package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
- package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
- package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
- package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
- package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
- package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
- package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
- package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
- package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
- package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
- package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
- package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
- package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
- package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
- package/es/components/authentication/admin/index.d.ts +26 -0
- package/es/components/authentication/admin/index.js +23 -0
- package/es/components/authentication/index.d.ts +0 -0
- package/es/components/authentication/index.js +0 -0
- package/es/components/booking/components/customSelect/index.js +23 -4
- package/es/components/booking/components/footer/index.js +4 -1
- package/es/components/booking/components/footer/utils.js +57 -44
- package/es/components/booking/forms/footer.js +24 -10
- package/es/components/booking/info/client/index.js +28 -13
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/Lists.js +1 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +12 -3
- package/es/components/booking/model.d.ts +4 -0
- package/es/components/booking/model.js +3 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/linkly/index.js +64 -2
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/index.d.ts +3 -2
- package/es/components/index.js +3 -2
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +68 -35
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +70 -42
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +72 -41
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +143 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.js +126 -0
- package/es/components/pay/toC/index.js +26 -22
- package/es/components/pay/toC/locales.d.ts +9 -0
- package/es/components/pay/toC/locales.js +12 -3
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +5 -0
- package/es/components/pay/toC/serve.js +9 -1
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +92 -56
- package/es/components/walletList/serve.d.ts +4 -0
- package/es/components/walletList/serve.js +46 -13
- package/es/components/walletList/types/index.d.ts +12 -12
- package/es/components/walletList/types/index.js +2 -2
- package/es/index.d.ts +7 -1
- package/es/index.js +7 -2
- package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.d.ts +41 -0
- package/es/plus/contactInfoModal/index.js +155 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/es/plus/productSelect/CategoryTabs/index.js +6 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/index.d.ts +3 -1
- package/es/plus/productSelect/ProductCard/index.js +9 -1
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/es/plus/productSelect/index.d.ts +3 -2
- package/es/plus/productSelect/index.js +33 -8
- package/es/plus/productSelect/index.less +4 -0
- package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/es/plus/walletEditor/WalletEditor.js +316 -0
- package/es/plus/walletEditor/WalletEditor.less +129 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
- package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
- package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/es/plus/walletEditor/index.d.ts +3 -0
- package/es/plus/walletEditor/index.js +3 -0
- package/es/plus/walletEditor/locales.d.ts +126 -0
- package/es/plus/walletEditor/locales.js +143 -0
- package/es/plus/walletEditor/types.d.ts +52 -0
- package/es/plus/walletEditor/types.js +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
- package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
- package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/passList/index.js +115 -0
- package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
- package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
- package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/es/plus/walletPassGallery/index.d.ts +6 -0
- package/es/plus/walletPassGallery/index.js +602 -0
- package/es/plus/walletPassGallery/index.less +115 -0
- package/es/plus/walletPassGallery/locales.d.ts +270 -0
- package/es/plus/walletPassGallery/locales.js +279 -0
- package/es/plus/walletPassGallery/serve.d.ts +218 -0
- package/es/plus/walletPassGallery/serve.js +289 -0
- package/es/pro/Login2.0/AuthModal.d.ts +143 -0
- package/es/pro/Login2.0/AuthModal.js +630 -0
- package/es/pro/Login2.0/Login2.d.ts +61 -0
- package/es/pro/Login2.0/Login2.js +2236 -0
- package/es/pro/Login2.0/Register2.d.ts +65 -0
- package/es/pro/Login2.0/Register2.js +1502 -0
- package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
- package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
- package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/es/pro/Login2.0/components/LegalTerms.js +51 -0
- package/es/pro/Login2.0/components/LegalTerms.less +74 -0
- package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/components/PhoneInput.js +414 -0
- package/es/pro/Login2.0/components/PhoneInput.less +148 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/Login2.0/components/phoneValidation.js +228 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/index.js +1 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
- package/es/pro/Login2.0/index.js +8 -0
- package/es/pro/Login2.0/index.less +1002 -0
- package/es/pro/Login2.0/locales.d.ts +543 -0
- package/es/pro/Login2.0/locales.js +622 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/Header.js +42 -0
- package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
- package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/es/pro/Login2.0/shared/registerFlow.js +171 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/Login2.0/shared/types.js +1 -0
- package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
- package/es/pro/Login2.0/steps/CodeInput.js +209 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
- package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
- package/es/pro/Login2.0/steps/SetPassword.js +148 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
- package/es/pro/Login2.0/steps/index.d.ts +19 -0
- package/es/pro/Login2.0/steps/index.js +11 -0
- package/es/pro/Login2.0/steps/steps.less +423 -0
- package/es/pro/Login2.0/types.d.ts +167 -0
- package/es/pro/Login2.0/types.js +1 -0
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/pro/pisellPaymentList/example.js +434 -0
- package/lib/components/Sales/Event/Detail.js +3 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/components/Services/index.js +8 -3
- package/lib/components/appointmentBooking/hooks.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.js +76 -35
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
- package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
- package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
- package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
- package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
- package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
- package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
- package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
- package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
- package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
- package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
- package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
- package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
- package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
- package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
- package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
- package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
- package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
- package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
- package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
- package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
- package/lib/components/authentication/admin/index.d.ts +26 -0
- package/lib/components/authentication/admin/index.js +83 -0
- package/lib/components/authentication/index.d.ts +0 -0
- package/lib/components/authentication/index.js +0 -0
- package/lib/components/booking/components/customSelect/index.js +27 -4
- package/lib/components/booking/components/footer/index.js +4 -1
- package/lib/components/booking/components/footer/utils.js +54 -23
- package/lib/components/booking/forms/footer.js +29 -11
- package/lib/components/booking/info/client/index.js +14 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/service/Lists.js +1 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/index.js +5 -4
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +12 -3
- package/lib/components/booking/model.d.ts +4 -0
- package/lib/components/booking/model.js +3 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/linkly/index.js +31 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/index.d.ts +3 -2
- package/lib/components/index.js +20 -1
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +27 -7
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +32 -8
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -4
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +88 -0
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.js +90 -0
- package/lib/components/pay/toC/index.js +11 -2
- package/lib/components/pay/toC/locales.d.ts +9 -0
- package/lib/components/pay/toC/locales.js +12 -3
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +5 -0
- package/lib/components/pay/toC/serve.js +3 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.js +88 -47
- package/lib/components/walletList/serve.d.ts +4 -0
- package/lib/components/walletList/serve.js +12 -0
- package/lib/components/walletList/types/index.d.ts +12 -12
- package/lib/index.d.ts +7 -1
- package/lib/index.js +38 -3
- package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.d.ts +41 -0
- package/lib/plus/contactInfoModal/index.js +139 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +86 -71
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/index.d.ts +3 -1
- package/lib/plus/productSelect/ProductCard/index.js +18 -1
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/lib/plus/productSelect/index.d.ts +3 -2
- package/lib/plus/productSelect/index.js +20 -6
- package/lib/plus/productSelect/index.less +4 -0
- package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/lib/plus/walletEditor/WalletEditor.js +354 -0
- package/lib/plus/walletEditor/WalletEditor.less +129 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
- package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletEditor/index.js +42 -0
- package/lib/plus/walletEditor/locales.d.ts +126 -0
- package/lib/plus/walletEditor/locales.js +167 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/walletEditor/types.js +17 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
- package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
- package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/lib/plus/walletPassGallery/index.d.ts +6 -0
- package/lib/plus/walletPassGallery/index.js +498 -0
- package/lib/plus/walletPassGallery/index.less +115 -0
- package/lib/plus/walletPassGallery/locales.d.ts +270 -0
- package/lib/plus/walletPassGallery/locales.js +299 -0
- package/lib/plus/walletPassGallery/serve.d.ts +218 -0
- package/lib/plus/walletPassGallery/serve.js +98 -0
- package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
- package/lib/pro/Login2.0/AuthModal.js +503 -0
- package/lib/pro/Login2.0/Login2.d.ts +61 -0
- package/lib/pro/Login2.0/Login2.js +1545 -0
- package/lib/pro/Login2.0/Register2.d.ts +65 -0
- package/lib/pro/Login2.0/Register2.js +1063 -0
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
- package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
- package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/index.js +29 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
- package/lib/pro/Login2.0/index.js +45 -0
- package/lib/pro/Login2.0/index.less +1002 -0
- package/lib/pro/Login2.0/locales.d.ts +543 -0
- package/lib/pro/Login2.0/locales.js +646 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/Header.js +81 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/Login2.0/shared/types.js +17 -0
- package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
- package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
- package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
- package/lib/pro/Login2.0/steps/index.d.ts +19 -0
- package/lib/pro/Login2.0/steps/index.js +60 -0
- package/lib/pro/Login2.0/steps/steps.less +423 -0
- package/lib/pro/Login2.0/types.d.ts +167 -0
- package/lib/pro/Login2.0/types.js +17 -0
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/pro/pisellPaymentList/example.js +416 -0
- package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
- package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
- package/lowcode/admin-auth-device-auth/meta.ts +30 -0
- package/lowcode/admin-auth-methods/meta.ts +385 -0
- package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
- package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
- package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
- package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
- package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
- package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
- package/lowcode/admin-setting-list/meta.ts +125 -0
- package/lowcode/authmodal/meta.ts +395 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/lowcode/login2/CONFIG.md +447 -0
- package/lowcode/login2/TEST_CONFIG.md +324 -0
- package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
- package/lowcode/login2/meta.ts +560 -0
- package/lowcode/login2/snippets.ts +124 -0
- package/lowcode/pro-register/meta.ts +385 -0
- package/lowcode/register2/meta.ts +562 -0
- package/lowcode/register2/snippets.ts +257 -0
- package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
- package/lowcode/wallet-editor/meta.ts +57 -0
- package/lowcode/wallet-editor/snippets.ts +13 -0
- package/lowcode/wallet-pass-gallery/meta.ts +35 -0
- package/package.json +6 -4
- package/lowcode/wallet/meta.ts +0 -79
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
+
import React, { useState, useEffect } from 'react';
|
|
15
|
+
import { Switch, Checkbox, Select, Input, Popover, Typography } from 'antd';
|
|
16
|
+
import { HolderOutlined, GlobalOutlined } from '@ant-design/icons';
|
|
17
|
+
import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core';
|
|
18
|
+
import { arrayMove, SortableContext, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
19
|
+
import { CSS } from '@dnd-kit/utilities';
|
|
20
|
+
import classNames from 'classnames';
|
|
21
|
+
import { locales } from '@pisell/utils';
|
|
22
|
+
import useEngineContext from "../../../../../hooks/useEngineContext";
|
|
23
|
+
import localeTexts from "./locales";
|
|
24
|
+
import "./CollectInfo.less";
|
|
25
|
+
var TextArea = Input.TextArea;
|
|
26
|
+
var Title = Typography.Title,
|
|
27
|
+
Paragraph = Typography.Paragraph;
|
|
28
|
+
|
|
29
|
+
// 默认字段数据
|
|
30
|
+
var DEFAULT_ACCOUNT_FIELDS = [{
|
|
31
|
+
id: 'phone',
|
|
32
|
+
name: 'collect.info.field.phone',
|
|
33
|
+
description: 'collect.info.field.phone.desc',
|
|
34
|
+
checked: true,
|
|
35
|
+
required: 'optional'
|
|
36
|
+
}, {
|
|
37
|
+
id: 'email',
|
|
38
|
+
name: 'collect.info.field.email',
|
|
39
|
+
description: 'collect.info.field.email.desc',
|
|
40
|
+
checked: false,
|
|
41
|
+
required: 'optional'
|
|
42
|
+
}, {
|
|
43
|
+
id: 'avatar',
|
|
44
|
+
name: 'collect.info.field.avatar',
|
|
45
|
+
description: '',
|
|
46
|
+
checked: false,
|
|
47
|
+
required: 'optional'
|
|
48
|
+
}, {
|
|
49
|
+
id: 'nickname',
|
|
50
|
+
name: 'collect.info.field.nickname',
|
|
51
|
+
description: '',
|
|
52
|
+
checked: true,
|
|
53
|
+
required: 'optional'
|
|
54
|
+
}, {
|
|
55
|
+
id: 'gender',
|
|
56
|
+
name: 'collect.info.field.gender',
|
|
57
|
+
description: '',
|
|
58
|
+
checked: true,
|
|
59
|
+
required: 'optional'
|
|
60
|
+
}, {
|
|
61
|
+
id: 'name',
|
|
62
|
+
name: 'collect.info.field.name',
|
|
63
|
+
description: '',
|
|
64
|
+
checked: false,
|
|
65
|
+
required: 'required'
|
|
66
|
+
}];
|
|
67
|
+
|
|
68
|
+
// 默认客户表单数据
|
|
69
|
+
var DEFAULT_CUSTOMER_FORMS = [{
|
|
70
|
+
id: 'waiver-test-1',
|
|
71
|
+
name: 'waivertest-1',
|
|
72
|
+
waiver: 'skip'
|
|
73
|
+
}, {
|
|
74
|
+
id: 'minor',
|
|
75
|
+
name: 'Minor(未成年人)简体中文',
|
|
76
|
+
waiver: 'skip'
|
|
77
|
+
}];
|
|
78
|
+
|
|
79
|
+
// 默认翻译值
|
|
80
|
+
var DEFAULT_TRANSLATION = {
|
|
81
|
+
en: 'Please provide the following account information to help us serve you better. Make sure your information is accurate.111',
|
|
82
|
+
'zh-CN': '请提供以下账户信息以帮助我们更好地为您服务。请确保您的信息准确。111',
|
|
83
|
+
'zh-HK': '請提供以下賬戶信息以幫助我們更好地為您服務。請確保您的信息準確。111',
|
|
84
|
+
original: 'Please provide the following account information to help us serve you better. Make sure your information is accurate.111'
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// i18n 翻译输入组件
|
|
88
|
+
|
|
89
|
+
var TranslationInput = function TranslationInput(_ref) {
|
|
90
|
+
var _ref$value = _ref.value,
|
|
91
|
+
value = _ref$value === void 0 ? DEFAULT_TRANSLATION : _ref$value,
|
|
92
|
+
onChange = _ref.onChange,
|
|
93
|
+
disabled = _ref.disabled,
|
|
94
|
+
placeholder = _ref.placeholder;
|
|
95
|
+
var _useState = useState(false),
|
|
96
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
97
|
+
open = _useState2[0],
|
|
98
|
+
setOpen = _useState2[1];
|
|
99
|
+
var languageConfig = [{
|
|
100
|
+
key: 'original',
|
|
101
|
+
label: 'Original'
|
|
102
|
+
}, {
|
|
103
|
+
key: 'en',
|
|
104
|
+
label: 'English'
|
|
105
|
+
}, {
|
|
106
|
+
key: 'zh-CN',
|
|
107
|
+
label: '简体中文'
|
|
108
|
+
}, {
|
|
109
|
+
key: 'zh-HK',
|
|
110
|
+
label: '繁體中文'
|
|
111
|
+
}];
|
|
112
|
+
var hasAnyTranslation = function hasAnyTranslation() {
|
|
113
|
+
if (!value) {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
return Object.entries(value).some(function (_ref2) {
|
|
117
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
118
|
+
key = _ref3[0],
|
|
119
|
+
val = _ref3[1];
|
|
120
|
+
return key !== 'original' && val;
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
var handleInputChange = function handleInputChange(lang) {
|
|
124
|
+
return function (e) {
|
|
125
|
+
var newValue = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, lang, e.target.value));
|
|
126
|
+
onChange === null || onChange === void 0 || onChange(newValue);
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
var content = /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
className: "pisell-collect-info-translation-popover",
|
|
131
|
+
style: {
|
|
132
|
+
display: 'flex',
|
|
133
|
+
flexDirection: 'column',
|
|
134
|
+
gap: '16px'
|
|
135
|
+
}
|
|
136
|
+
}, languageConfig.map(function (_ref4) {
|
|
137
|
+
var key = _ref4.key,
|
|
138
|
+
label = _ref4.label;
|
|
139
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
140
|
+
key: key,
|
|
141
|
+
className: "pisell-collect-info-translation-field"
|
|
142
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
className: "pisell-collect-info-translation-label"
|
|
144
|
+
}, label), /*#__PURE__*/React.createElement(TextArea, {
|
|
145
|
+
value: (value === null || value === void 0 ? void 0 : value[key]) || '',
|
|
146
|
+
onChange: handleInputChange(key),
|
|
147
|
+
rows: 3,
|
|
148
|
+
allowClear: true
|
|
149
|
+
}));
|
|
150
|
+
}));
|
|
151
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
152
|
+
className: "pisell-collect-info-translation-wrapper"
|
|
153
|
+
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
154
|
+
value: (value === null || value === void 0 ? void 0 : value.original) || '',
|
|
155
|
+
onChange: handleInputChange('original'),
|
|
156
|
+
placeholder: placeholder,
|
|
157
|
+
disabled: disabled,
|
|
158
|
+
className: "pisell-collect-info-translation-input",
|
|
159
|
+
rows: 3
|
|
160
|
+
}), /*#__PURE__*/React.createElement(Popover, {
|
|
161
|
+
content: content,
|
|
162
|
+
trigger: "click",
|
|
163
|
+
open: open,
|
|
164
|
+
onOpenChange: function onOpenChange(open) {
|
|
165
|
+
if (disabled) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
setOpen(open);
|
|
169
|
+
},
|
|
170
|
+
placement: "bottom"
|
|
171
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
172
|
+
className: classNames('pisell-collect-info-translation-icon-wrapper', {
|
|
173
|
+
'has-translation': hasAnyTranslation(),
|
|
174
|
+
disabled: disabled
|
|
175
|
+
})
|
|
176
|
+
}, /*#__PURE__*/React.createElement(GlobalOutlined, {
|
|
177
|
+
className: "pisell-collect-info-translation-icon"
|
|
178
|
+
}))));
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
// 可排序的字段项
|
|
182
|
+
|
|
183
|
+
var SortableFieldItem = function SortableFieldItem(_ref5) {
|
|
184
|
+
var field = _ref5.field,
|
|
185
|
+
onCheckChange = _ref5.onCheckChange,
|
|
186
|
+
onRequiredChange = _ref5.onRequiredChange;
|
|
187
|
+
var _useSortable = useSortable({
|
|
188
|
+
id: field.id
|
|
189
|
+
}),
|
|
190
|
+
attributes = _useSortable.attributes,
|
|
191
|
+
listeners = _useSortable.listeners,
|
|
192
|
+
setNodeRef = _useSortable.setNodeRef,
|
|
193
|
+
transform = _useSortable.transform,
|
|
194
|
+
transition = _useSortable.transition,
|
|
195
|
+
isDragging = _useSortable.isDragging;
|
|
196
|
+
var style = {
|
|
197
|
+
transform: CSS.Transform.toString(transform),
|
|
198
|
+
transition: transition
|
|
199
|
+
};
|
|
200
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
201
|
+
ref: setNodeRef,
|
|
202
|
+
style: style,
|
|
203
|
+
className: classNames('pisell-collect-info-field-item', {
|
|
204
|
+
'pisell-collect-info-dragging': isDragging
|
|
205
|
+
})
|
|
206
|
+
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
207
|
+
className: "pisell-collect-info-field-drag"
|
|
208
|
+
}, attributes, listeners), /*#__PURE__*/React.createElement(HolderOutlined, null)), /*#__PURE__*/React.createElement(Checkbox, {
|
|
209
|
+
className: "pisell-collect-info-field-checkbox",
|
|
210
|
+
checked: field.checked,
|
|
211
|
+
onChange: function onChange(e) {
|
|
212
|
+
return onCheckChange(e.target.checked);
|
|
213
|
+
}
|
|
214
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
215
|
+
className: "pisell-collect-info-field-content"
|
|
216
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
217
|
+
className: "pisell-collect-info-field-name"
|
|
218
|
+
}, locales.getText(field.name)), field.description && /*#__PURE__*/React.createElement("div", {
|
|
219
|
+
className: "pisell-collect-info-field-description"
|
|
220
|
+
}, locales.getText(field.description))), /*#__PURE__*/React.createElement(Select, {
|
|
221
|
+
className: "pisell-collect-info-field-select",
|
|
222
|
+
value: field.required,
|
|
223
|
+
onChange: onRequiredChange,
|
|
224
|
+
options: [{
|
|
225
|
+
label: locales.getText('collect.info.optional'),
|
|
226
|
+
value: 'optional'
|
|
227
|
+
}, {
|
|
228
|
+
label: locales.getText('collect.info.required'),
|
|
229
|
+
value: 'required'
|
|
230
|
+
}]
|
|
231
|
+
}));
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
// 可排序的表单项
|
|
235
|
+
|
|
236
|
+
var SortableFormItem = function SortableFormItem(_ref6) {
|
|
237
|
+
var form = _ref6.form,
|
|
238
|
+
onCheckChange = _ref6.onCheckChange,
|
|
239
|
+
onWaiverChange = _ref6.onWaiverChange;
|
|
240
|
+
var _useSortable2 = useSortable({
|
|
241
|
+
id: form.id
|
|
242
|
+
}),
|
|
243
|
+
attributes = _useSortable2.attributes,
|
|
244
|
+
listeners = _useSortable2.listeners,
|
|
245
|
+
setNodeRef = _useSortable2.setNodeRef,
|
|
246
|
+
transform = _useSortable2.transform,
|
|
247
|
+
transition = _useSortable2.transition,
|
|
248
|
+
isDragging = _useSortable2.isDragging;
|
|
249
|
+
var style = {
|
|
250
|
+
transform: CSS.Transform.toString(transform),
|
|
251
|
+
transition: transition
|
|
252
|
+
};
|
|
253
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
254
|
+
ref: setNodeRef,
|
|
255
|
+
style: style,
|
|
256
|
+
className: classNames('pisell-collect-info-form-item', {
|
|
257
|
+
'pisell-collect-info-dragging': isDragging
|
|
258
|
+
})
|
|
259
|
+
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
260
|
+
className: "pisell-collect-info-form-drag"
|
|
261
|
+
}, attributes, listeners), /*#__PURE__*/React.createElement(HolderOutlined, null)), /*#__PURE__*/React.createElement(Checkbox, {
|
|
262
|
+
className: "pisell-collect-info-form-checkbox",
|
|
263
|
+
onChange: function onChange(e) {
|
|
264
|
+
return onCheckChange(e.target.checked);
|
|
265
|
+
}
|
|
266
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
267
|
+
className: "pisell-collect-info-form-name"
|
|
268
|
+
}, form.name), /*#__PURE__*/React.createElement(Select, {
|
|
269
|
+
className: "pisell-collect-info-form-select",
|
|
270
|
+
value: form.waiver,
|
|
271
|
+
onChange: onWaiverChange,
|
|
272
|
+
options: [{
|
|
273
|
+
label: locales.getText('collect.info.skip'),
|
|
274
|
+
value: 'skip'
|
|
275
|
+
}, {
|
|
276
|
+
label: locales.getText('collect.info.disallow.skip'),
|
|
277
|
+
value: 'required'
|
|
278
|
+
}]
|
|
279
|
+
}));
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
// 主组件
|
|
283
|
+
var CollectInfo = function CollectInfo(_ref7) {
|
|
284
|
+
var _context$engine, _value$enableCollectI, _value$collectAccount, _value$allowSkip;
|
|
285
|
+
var className = _ref7.className,
|
|
286
|
+
style = _ref7.style,
|
|
287
|
+
value = _ref7.value,
|
|
288
|
+
onChange = _ref7.onChange;
|
|
289
|
+
var context = useEngineContext();
|
|
290
|
+
var currentLocale = (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en';
|
|
291
|
+
|
|
292
|
+
// 初始化 locales
|
|
293
|
+
locales.init(localeTexts, currentLocale);
|
|
294
|
+
var _useState3 = useState((_value$enableCollectI = value === null || value === void 0 ? void 0 : value.enableCollectInfo) !== null && _value$enableCollectI !== void 0 ? _value$enableCollectI : true),
|
|
295
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
296
|
+
enableCollectInfo = _useState4[0],
|
|
297
|
+
setEnableCollectInfo = _useState4[1];
|
|
298
|
+
var _useState5 = useState((_value$collectAccount = value === null || value === void 0 ? void 0 : value.collectAccountInfo) !== null && _value$collectAccount !== void 0 ? _value$collectAccount : true),
|
|
299
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
300
|
+
collectAccountInfo = _useState6[0],
|
|
301
|
+
setCollectAccountInfo = _useState6[1];
|
|
302
|
+
var _useState7 = useState((_value$allowSkip = value === null || value === void 0 ? void 0 : value.allowSkip) !== null && _value$allowSkip !== void 0 ? _value$allowSkip : false),
|
|
303
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
304
|
+
allowSkip = _useState8[0],
|
|
305
|
+
setAllowSkip = _useState8[1];
|
|
306
|
+
var _useState9 = useState((value === null || value === void 0 ? void 0 : value.promptMessage) || DEFAULT_TRANSLATION),
|
|
307
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
308
|
+
promptMessage = _useState10[0],
|
|
309
|
+
setPromptMessage = _useState10[1];
|
|
310
|
+
var _useState11 = useState((value === null || value === void 0 ? void 0 : value.accountFields) || DEFAULT_ACCOUNT_FIELDS),
|
|
311
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
312
|
+
accountFields = _useState12[0],
|
|
313
|
+
setAccountFields = _useState12[1];
|
|
314
|
+
var _useState13 = useState((value === null || value === void 0 ? void 0 : value.customerForms) || DEFAULT_CUSTOMER_FORMS),
|
|
315
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
316
|
+
customerForms = _useState14[0],
|
|
317
|
+
setCustomerForms = _useState14[1];
|
|
318
|
+
|
|
319
|
+
// 拖动排序传感器
|
|
320
|
+
var sensors = useSensors(useSensor(PointerSensor, {
|
|
321
|
+
activationConstraint: {
|
|
322
|
+
distance: 8
|
|
323
|
+
}
|
|
324
|
+
}), useSensor(KeyboardSensor, {
|
|
325
|
+
coordinateGetter: sortableKeyboardCoordinates
|
|
326
|
+
}));
|
|
327
|
+
|
|
328
|
+
// 同步到外部
|
|
329
|
+
useEffect(function () {
|
|
330
|
+
var newValue = {
|
|
331
|
+
enableCollectInfo: enableCollectInfo,
|
|
332
|
+
collectAccountInfo: collectAccountInfo,
|
|
333
|
+
allowSkip: allowSkip,
|
|
334
|
+
promptMessage: promptMessage,
|
|
335
|
+
accountFields: accountFields,
|
|
336
|
+
customerForms: customerForms
|
|
337
|
+
};
|
|
338
|
+
onChange === null || onChange === void 0 || onChange(newValue);
|
|
339
|
+
}, [enableCollectInfo, collectAccountInfo, allowSkip, promptMessage, accountFields, customerForms, onChange]);
|
|
340
|
+
|
|
341
|
+
// 字段拖动结束
|
|
342
|
+
var handleFieldDragEnd = function handleFieldDragEnd(event) {
|
|
343
|
+
var active = event.active,
|
|
344
|
+
over = event.over;
|
|
345
|
+
if (over && active.id !== over.id) {
|
|
346
|
+
setAccountFields(function (items) {
|
|
347
|
+
var oldIndex = items.findIndex(function (item) {
|
|
348
|
+
return item.id === active.id;
|
|
349
|
+
});
|
|
350
|
+
var newIndex = items.findIndex(function (item) {
|
|
351
|
+
return item.id === over.id;
|
|
352
|
+
});
|
|
353
|
+
return arrayMove(items, oldIndex, newIndex);
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
// 表单拖动结束
|
|
359
|
+
var handleFormDragEnd = function handleFormDragEnd(event) {
|
|
360
|
+
var active = event.active,
|
|
361
|
+
over = event.over;
|
|
362
|
+
if (over && active.id !== over.id) {
|
|
363
|
+
setCustomerForms(function (items) {
|
|
364
|
+
var oldIndex = items.findIndex(function (item) {
|
|
365
|
+
return item.id === active.id;
|
|
366
|
+
});
|
|
367
|
+
var newIndex = items.findIndex(function (item) {
|
|
368
|
+
return item.id === over.id;
|
|
369
|
+
});
|
|
370
|
+
return arrayMove(items, oldIndex, newIndex);
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
// 更新字段
|
|
376
|
+
var handleFieldCheckChange = function handleFieldCheckChange(fieldId, checked) {
|
|
377
|
+
setAccountFields(function (fields) {
|
|
378
|
+
return fields.map(function (f) {
|
|
379
|
+
return f.id === fieldId ? _objectSpread(_objectSpread({}, f), {}, {
|
|
380
|
+
checked: checked
|
|
381
|
+
}) : f;
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
var handleFieldRequiredChange = function handleFieldRequiredChange(fieldId, required) {
|
|
386
|
+
setAccountFields(function (fields) {
|
|
387
|
+
return fields.map(function (f) {
|
|
388
|
+
return f.id === fieldId ? _objectSpread(_objectSpread({}, f), {}, {
|
|
389
|
+
required: required
|
|
390
|
+
}) : f;
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
// 更新表单
|
|
396
|
+
var handleFormCheckChange = function handleFormCheckChange(formId, checked) {
|
|
397
|
+
console.log('Form check change:', formId, checked);
|
|
398
|
+
};
|
|
399
|
+
var handleFormWaiverChange = function handleFormWaiverChange(formId, waiver) {
|
|
400
|
+
setCustomerForms(function (forms) {
|
|
401
|
+
return forms.map(function (f) {
|
|
402
|
+
return f.id === formId ? _objectSpread(_objectSpread({}, f), {}, {
|
|
403
|
+
waiver: waiver
|
|
404
|
+
}) : f;
|
|
405
|
+
});
|
|
406
|
+
});
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
// 如果未开启收集客户信息,不展示任何内容
|
|
410
|
+
if (!enableCollectInfo) {
|
|
411
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
412
|
+
className: classNames('pisell-collect-info', className),
|
|
413
|
+
style: style
|
|
414
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
415
|
+
className: "pisell-collect-info-layout"
|
|
416
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
417
|
+
className: "pisell-collect-info-header"
|
|
418
|
+
}, /*#__PURE__*/React.createElement(Title, {
|
|
419
|
+
level: 4,
|
|
420
|
+
className: "pisell-collect-info-title"
|
|
421
|
+
}, locales.getText('page.setting.login.form.menu.title')), /*#__PURE__*/React.createElement(Paragraph, {
|
|
422
|
+
className: "pisell-collect-info-description"
|
|
423
|
+
}, locales.getText('page.setting.login.form.menu.desc'))), /*#__PURE__*/React.createElement("div", {
|
|
424
|
+
className: "pisell-collect-info-content"
|
|
425
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
426
|
+
className: "pisell-collect-info-section"
|
|
427
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
428
|
+
className: "pisell-collect-info-switch-item"
|
|
429
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
430
|
+
className: "pisell-collect-info-switch-label"
|
|
431
|
+
}, locales.getText('collect.info.enable')), /*#__PURE__*/React.createElement(Switch, {
|
|
432
|
+
checked: enableCollectInfo,
|
|
433
|
+
onChange: setEnableCollectInfo
|
|
434
|
+
}))))));
|
|
435
|
+
}
|
|
436
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
437
|
+
className: classNames('pisell-collect-info', className),
|
|
438
|
+
style: style
|
|
439
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
440
|
+
className: "pisell-collect-info-layout"
|
|
441
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
442
|
+
className: "pisell-collect-info-header"
|
|
443
|
+
}, /*#__PURE__*/React.createElement(Title, {
|
|
444
|
+
level: 4,
|
|
445
|
+
className: "pisell-collect-info-title"
|
|
446
|
+
}, locales.getText('page.setting.login.form.menu.title')), /*#__PURE__*/React.createElement(Paragraph, {
|
|
447
|
+
className: "pisell-collect-info-description"
|
|
448
|
+
}, locales.getText('page.setting.login.form.menu.desc'))), /*#__PURE__*/React.createElement("div", {
|
|
449
|
+
className: "pisell-collect-info-content"
|
|
450
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
451
|
+
className: "pisell-collect-info-section"
|
|
452
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
453
|
+
className: "pisell-collect-info-switch-item"
|
|
454
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
455
|
+
className: "pisell-collect-info-switch-label"
|
|
456
|
+
}, locales.getText('collect.info.enable')), /*#__PURE__*/React.createElement(Switch, {
|
|
457
|
+
checked: enableCollectInfo,
|
|
458
|
+
onChange: setEnableCollectInfo
|
|
459
|
+
}))), collectAccountInfo && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
460
|
+
className: "pisell-collect-info-section"
|
|
461
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
462
|
+
className: "pisell-collect-info-switch-item"
|
|
463
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
464
|
+
className: "pisell-collect-info-switch-label"
|
|
465
|
+
}, locales.getText('collect.info.allow.skip')), /*#__PURE__*/React.createElement(Switch, {
|
|
466
|
+
checked: allowSkip,
|
|
467
|
+
onChange: setAllowSkip
|
|
468
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
469
|
+
className: "pisell-collect-info-prompt"
|
|
470
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
471
|
+
className: "pisell-collect-info-prompt-label"
|
|
472
|
+
}, locales.getText('collect.info.prompt')), /*#__PURE__*/React.createElement(TranslationInput, {
|
|
473
|
+
value: promptMessage,
|
|
474
|
+
onChange: setPromptMessage,
|
|
475
|
+
placeholder: locales.getText('collect.info.prompt')
|
|
476
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
477
|
+
className: "pisell-collect-info-section"
|
|
478
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
479
|
+
className: "pisell-collect-info-fields-header"
|
|
480
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
481
|
+
className: "pisell-collect-info-fields-title"
|
|
482
|
+
}, locales.getText('collect.info.fields'))), /*#__PURE__*/React.createElement(DndContext, {
|
|
483
|
+
sensors: sensors,
|
|
484
|
+
collisionDetection: closestCenter,
|
|
485
|
+
onDragEnd: handleFieldDragEnd
|
|
486
|
+
}, /*#__PURE__*/React.createElement(SortableContext, {
|
|
487
|
+
items: accountFields.map(function (f) {
|
|
488
|
+
return f.id;
|
|
489
|
+
}),
|
|
490
|
+
strategy: verticalListSortingStrategy
|
|
491
|
+
}, accountFields.map(function (field) {
|
|
492
|
+
return /*#__PURE__*/React.createElement(SortableFieldItem, {
|
|
493
|
+
key: field.id,
|
|
494
|
+
field: field,
|
|
495
|
+
onCheckChange: function onCheckChange(checked) {
|
|
496
|
+
return handleFieldCheckChange(field.id, checked);
|
|
497
|
+
},
|
|
498
|
+
onRequiredChange: function onRequiredChange(required) {
|
|
499
|
+
return handleFieldRequiredChange(field.id, required);
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
503
|
+
className: "pisell-collect-info-section"
|
|
504
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
505
|
+
className: "pisell-collect-info-forms-header"
|
|
506
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
507
|
+
className: "pisell-collect-info-forms-title"
|
|
508
|
+
}, locales.getText('collect.info.customer.form'))), /*#__PURE__*/React.createElement(DndContext, {
|
|
509
|
+
sensors: sensors,
|
|
510
|
+
collisionDetection: closestCenter,
|
|
511
|
+
onDragEnd: handleFormDragEnd
|
|
512
|
+
}, /*#__PURE__*/React.createElement(SortableContext, {
|
|
513
|
+
items: customerForms.map(function (f) {
|
|
514
|
+
return f.id;
|
|
515
|
+
}),
|
|
516
|
+
strategy: verticalListSortingStrategy
|
|
517
|
+
}, customerForms.map(function (form) {
|
|
518
|
+
return /*#__PURE__*/React.createElement(SortableFormItem, {
|
|
519
|
+
key: form.id,
|
|
520
|
+
form: form,
|
|
521
|
+
onCheckChange: function onCheckChange(checked) {
|
|
522
|
+
return handleFormCheckChange(form.id, checked);
|
|
523
|
+
},
|
|
524
|
+
onWaiverChange: function onWaiverChange(waiver) {
|
|
525
|
+
return handleFormWaiverChange(form.id, waiver);
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
})))))));
|
|
529
|
+
};
|
|
530
|
+
export default CollectInfo;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'page.setting.login.form.menu.title': string;
|
|
4
|
+
'page.setting.login.form.menu.desc': string;
|
|
5
|
+
'collect.info.enable': string;
|
|
6
|
+
'collect.info.account': string;
|
|
7
|
+
'collect.info.allow.skip': string;
|
|
8
|
+
'collect.info.prompt': string;
|
|
9
|
+
'collect.info.fields': string;
|
|
10
|
+
'collect.info.sort': string;
|
|
11
|
+
'collect.info.customer.form': string;
|
|
12
|
+
'collect.info.field.phone': string;
|
|
13
|
+
'collect.info.field.phone.desc': string;
|
|
14
|
+
'collect.info.field.email': string;
|
|
15
|
+
'collect.info.field.email.desc': string;
|
|
16
|
+
'collect.info.field.avatar': string;
|
|
17
|
+
'collect.info.field.nickname': string;
|
|
18
|
+
'collect.info.field.gender': string;
|
|
19
|
+
'collect.info.field.name': string;
|
|
20
|
+
'collect.info.required': string;
|
|
21
|
+
'collect.info.optional': string;
|
|
22
|
+
'collect.info.skip': string;
|
|
23
|
+
'collect.info.disallow.skip': string;
|
|
24
|
+
};
|
|
25
|
+
'zh-CN': {
|
|
26
|
+
'page.setting.login.form.menu.title': string;
|
|
27
|
+
'page.setting.login.form.menu.desc': string;
|
|
28
|
+
'collect.info.enable': string;
|
|
29
|
+
'collect.info.account': string;
|
|
30
|
+
'collect.info.allow.skip': string;
|
|
31
|
+
'collect.info.prompt': string;
|
|
32
|
+
'collect.info.fields': string;
|
|
33
|
+
'collect.info.sort': string;
|
|
34
|
+
'collect.info.customer.form': string;
|
|
35
|
+
'collect.info.field.phone': string;
|
|
36
|
+
'collect.info.field.phone.desc': string;
|
|
37
|
+
'collect.info.field.email': string;
|
|
38
|
+
'collect.info.field.email.desc': string;
|
|
39
|
+
'collect.info.field.avatar': string;
|
|
40
|
+
'collect.info.field.nickname': string;
|
|
41
|
+
'collect.info.field.gender': string;
|
|
42
|
+
'collect.info.field.name': string;
|
|
43
|
+
'collect.info.required': string;
|
|
44
|
+
'collect.info.optional': string;
|
|
45
|
+
'collect.info.skip': string;
|
|
46
|
+
'collect.info.disallow.skip': string;
|
|
47
|
+
};
|
|
48
|
+
'zh-HK': {
|
|
49
|
+
'page.setting.login.form.menu.title': string;
|
|
50
|
+
'page.setting.login.form.menu.desc': string;
|
|
51
|
+
'collect.info.enable': string;
|
|
52
|
+
'collect.info.account': string;
|
|
53
|
+
'collect.info.allow.skip': string;
|
|
54
|
+
'collect.info.prompt': string;
|
|
55
|
+
'collect.info.fields': string;
|
|
56
|
+
'collect.info.sort': string;
|
|
57
|
+
'collect.info.customer.form': string;
|
|
58
|
+
'collect.info.field.phone': string;
|
|
59
|
+
'collect.info.field.phone.desc': string;
|
|
60
|
+
'collect.info.field.email': string;
|
|
61
|
+
'collect.info.field.email.desc': string;
|
|
62
|
+
'collect.info.field.avatar': string;
|
|
63
|
+
'collect.info.field.nickname': string;
|
|
64
|
+
'collect.info.field.gender': string;
|
|
65
|
+
'collect.info.field.name': string;
|
|
66
|
+
'collect.info.required': string;
|
|
67
|
+
'collect.info.optional': string;
|
|
68
|
+
'collect.info.skip': string;
|
|
69
|
+
'collect.info.disallow.skip': string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export default _default;
|