@pisell/private-materials 6.3.36 → 6.3.38
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 +10 -29
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- 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 +6 -2
- package/es/components/booking/components/footer/utils.js +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/pay/toC/index.js +19 -14
- package/es/components/pay/toC/status.d.ts +1 -0
- package/es/components/pay/toC/status.js +3 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +1 -0
- package/es/pro/Login2.0/Login2.js +78 -27
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/pro/pisellPaymentList/example.js +434 -0
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- 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 +6 -2
- package/lib/components/booking/components/footer/utils.js +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +19 -0
- package/lib/components/pay/toC/index.js +10 -2
- package/lib/components/pay/toC/status.d.ts +1 -0
- package/lib/components/pay/toC/status.js +5 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +19 -0
- package/lib/pro/Login2.0/Login2.js +86 -23
- 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/pro-register/meta.ts +385 -0
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type { AuthMethodsProps, AuthMethod } from './AuthMethods';
|
|
2
|
+
export { AuthMethodType, AuthMethodCategory } from './AuthMethods';
|
|
3
|
+
export { default as ChannelAuthSetting } from './ChannelAuthSetting';
|
|
4
|
+
export type { ChannelAuthSettingProps, ChannelAuthSettingValue, TabKey } from './ChannelAuthSetting';
|
|
5
|
+
export { default as PageSetting } from './ChannelAuthSetting/PageSetting';
|
|
6
|
+
export { default as PageSettingItem } from './ChannelAuthSetting/PageSettingItem';
|
|
7
|
+
export { default as AuthenticationMethods } from './ChannelAuthSetting/AuthenticationMethods';
|
|
8
|
+
export { default as CollectInfo } from './ChannelAuthSetting/CollectInfo';
|
|
9
|
+
export type { PageSettingProps, PageSettingValue, } from './ChannelAuthSetting/PageSetting/types';
|
|
10
|
+
export type { PageSettingItemProps, PageSettingItemValue, TermsCondition, TranslationValue as PageTranslationValue, } from './ChannelAuthSetting/PageSettingItem/types';
|
|
11
|
+
export type { AuthenticationMethodsProps, AuthenticationMethodsValue, GlobalAuthMethod, AuthenticationMethod, AuthenticationSettingsMode, } from './ChannelAuthSetting/AuthenticationMethods/types';
|
|
12
|
+
export type { CollectInfoProps, CollectInfoValue, AccountField, CustomerFormItem, TranslationValue as CollectInfoTranslationValue, } from './ChannelAuthSetting/CollectInfo/types';
|
|
13
|
+
export type { SaaSAdminAuthProps } from './SaaSAdminAuth';
|
|
14
|
+
export type { OrgAdminAuthProps } from './OrgAdminAuth';
|
|
15
|
+
export type { DeviceAuthProps } from './DeviceAuth';
|
|
16
|
+
export type { POSOperatorAuthProps } from './POSOperatorAuth';
|
|
17
|
+
export type { CustomerOAuthConfigProps } from './CustomerOAuthConfig';
|
|
18
|
+
export { default as SaaSAdminAuth } from './SaaSAdminAuth';
|
|
19
|
+
export { default as OrgAdminAuth } from './OrgAdminAuth';
|
|
20
|
+
export { default as OAuthConfig } from './OAuthConfig';
|
|
21
|
+
export { default as CustomerAuth } from './CustomerAuth';
|
|
22
|
+
export { default as CustomerOAuthConfig } from './CustomerOAuthConfig';
|
|
23
|
+
export { default as DeviceAuth } from './DeviceAuth';
|
|
24
|
+
export { default as POSOperatorAuth } from './POSOperatorAuth';
|
|
25
|
+
export { default as OnlineShopAuth } from './ChannelAuthSetting/OnlineShopAuth';
|
|
26
|
+
export { default as SaaSManagermentAuth } from './ChannelAuthSetting/SaaSManagermentAuth';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/authentication/admin/index.ts
|
|
30
|
+
var admin_exports = {};
|
|
31
|
+
__export(admin_exports, {
|
|
32
|
+
AuthMethodCategory: () => import_AuthMethods.AuthMethodCategory,
|
|
33
|
+
AuthMethodType: () => import_AuthMethods.AuthMethodType,
|
|
34
|
+
AuthenticationMethods: () => import_AuthenticationMethods.default,
|
|
35
|
+
ChannelAuthSetting: () => import_ChannelAuthSetting.default,
|
|
36
|
+
CollectInfo: () => import_CollectInfo.default,
|
|
37
|
+
CustomerAuth: () => import_CustomerAuth.default,
|
|
38
|
+
CustomerOAuthConfig: () => import_CustomerOAuthConfig.default,
|
|
39
|
+
DeviceAuth: () => import_DeviceAuth.default,
|
|
40
|
+
OAuthConfig: () => import_OAuthConfig.default,
|
|
41
|
+
OnlineShopAuth: () => import_OnlineShopAuth.default,
|
|
42
|
+
OrgAdminAuth: () => import_OrgAdminAuth.default,
|
|
43
|
+
POSOperatorAuth: () => import_POSOperatorAuth.default,
|
|
44
|
+
PageSetting: () => import_PageSetting.default,
|
|
45
|
+
PageSettingItem: () => import_PageSettingItem.default,
|
|
46
|
+
SaaSAdminAuth: () => import_SaaSAdminAuth.default,
|
|
47
|
+
SaaSManagermentAuth: () => import_SaaSManagermentAuth.default
|
|
48
|
+
});
|
|
49
|
+
module.exports = __toCommonJS(admin_exports);
|
|
50
|
+
var import_AuthMethods = require("./AuthMethods");
|
|
51
|
+
var import_ChannelAuthSetting = __toESM(require("./ChannelAuthSetting"));
|
|
52
|
+
var import_PageSetting = __toESM(require("./ChannelAuthSetting/PageSetting"));
|
|
53
|
+
var import_PageSettingItem = __toESM(require("./ChannelAuthSetting/PageSettingItem"));
|
|
54
|
+
var import_AuthenticationMethods = __toESM(require("./ChannelAuthSetting/AuthenticationMethods"));
|
|
55
|
+
var import_CollectInfo = __toESM(require("./ChannelAuthSetting/CollectInfo"));
|
|
56
|
+
var import_SaaSAdminAuth = __toESM(require("./SaaSAdminAuth"));
|
|
57
|
+
var import_OrgAdminAuth = __toESM(require("./OrgAdminAuth"));
|
|
58
|
+
var import_OAuthConfig = __toESM(require("./OAuthConfig"));
|
|
59
|
+
var import_CustomerAuth = __toESM(require("./CustomerAuth"));
|
|
60
|
+
var import_CustomerOAuthConfig = __toESM(require("./CustomerOAuthConfig"));
|
|
61
|
+
var import_DeviceAuth = __toESM(require("./DeviceAuth"));
|
|
62
|
+
var import_POSOperatorAuth = __toESM(require("./POSOperatorAuth"));
|
|
63
|
+
var import_OnlineShopAuth = __toESM(require("./ChannelAuthSetting/OnlineShopAuth"));
|
|
64
|
+
var import_SaaSManagermentAuth = __toESM(require("./ChannelAuthSetting/SaaSManagermentAuth"));
|
|
65
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
+
0 && (module.exports = {
|
|
67
|
+
AuthMethodCategory,
|
|
68
|
+
AuthMethodType,
|
|
69
|
+
AuthenticationMethods,
|
|
70
|
+
ChannelAuthSetting,
|
|
71
|
+
CollectInfo,
|
|
72
|
+
CustomerAuth,
|
|
73
|
+
CustomerOAuthConfig,
|
|
74
|
+
DeviceAuth,
|
|
75
|
+
OAuthConfig,
|
|
76
|
+
OnlineShopAuth,
|
|
77
|
+
OrgAdminAuth,
|
|
78
|
+
POSOperatorAuth,
|
|
79
|
+
PageSetting,
|
|
80
|
+
PageSettingItem,
|
|
81
|
+
SaaSAdminAuth,
|
|
82
|
+
SaaSManagermentAuth
|
|
83
|
+
});
|
|
File without changes
|
|
File without changes
|
|
@@ -180,8 +180,12 @@ var CustomSelect = (props, ref) => {
|
|
|
180
180
|
return allKeys.some((k) => {
|
|
181
181
|
const val = item[k];
|
|
182
182
|
if (val === null || val === void 0) return false;
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
try {
|
|
184
|
+
const str = JSON.stringify(val);
|
|
185
|
+
return str.includes(q) || str.toLocaleLowerCase().includes(q);
|
|
186
|
+
} catch (error) {
|
|
187
|
+
return false;
|
|
188
|
+
}
|
|
185
189
|
});
|
|
186
190
|
} catch (e) {
|
|
187
191
|
return false;
|
|
@@ -334,7 +334,7 @@ var formatBookings = (data, values) => {
|
|
|
334
334
|
const eventOtherParams = data.eventOtherParams;
|
|
335
335
|
let bookings = [];
|
|
336
336
|
let obj = {};
|
|
337
|
-
list.forEach((item
|
|
337
|
+
list.forEach((item) => {
|
|
338
338
|
var _a, _b, _c, _d, _e;
|
|
339
339
|
let start_date = item._extend.startDate.format("YYYY-MM-DD");
|
|
340
340
|
let end_date = item._extend.endDate.format("YYYY-MM-DD");
|
|
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
244
244
|
* @Author: WangHan
|
|
245
245
|
* @Date: 2024-12-24 11:32
|
|
246
246
|
*/
|
|
247
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
|
247
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
165
165
|
export declare const getDuration: (duration: number | {
|
|
166
166
|
type: string;
|
|
167
167
|
value: number;
|
|
168
|
-
}) => number | {
|
|
168
|
+
}) => number | "flexible" | {
|
|
169
169
|
type: string;
|
|
170
170
|
value: number;
|
|
171
|
-
}
|
|
171
|
+
};
|
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
|
174
174
|
export {};
|
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
10
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "
|
|
11
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
12
12
|
[keys: string]: unknown;
|
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
|
14
14
|
onClose: () => void;
|
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
11
11
|
api: PayProps['api'];
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
onChange?: ((status: "
|
|
13
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
14
14
|
[keys: string]: unknown;
|
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
|
16
16
|
onClose: () => void;
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "
|
|
177
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
295
295
|
name?: string | undefined;
|
|
296
296
|
symbol?: string | undefined;
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
|
-
mode?: "
|
|
298
|
+
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
301
|
-
action?: "amount" | "
|
|
300
|
+
eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
|
|
301
|
+
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
305
305
|
subTitle?: string | undefined;
|
|
306
|
-
type?: "
|
|
306
|
+
type?: "unset" | "step" | undefined;
|
|
307
307
|
render?: boolean | undefined;
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
311
|
+
status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -18,4 +18,5 @@ import EditBookingModal from './booking/editBookingModal';
|
|
|
18
18
|
import StepController from './stepController';
|
|
19
19
|
import PinModal from './pinModal';
|
|
20
20
|
import PinVerifyModal from './pinVerifyModal';
|
|
21
|
-
|
|
21
|
+
import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './authentication/admin';
|
|
22
|
+
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, };
|
package/lib/components/index.js
CHANGED
|
@@ -34,13 +34,22 @@ __export(components_exports, {
|
|
|
34
34
|
BookingForms: () => import_forms.default,
|
|
35
35
|
BookingInfo: () => import_info.default,
|
|
36
36
|
BookingNotes: () => import_notes.default,
|
|
37
|
+
CustomerAuth: () => import_admin.CustomerAuth,
|
|
38
|
+
CustomerOAuthConfig: () => import_admin.CustomerOAuthConfig,
|
|
39
|
+
DeviceAuth: () => import_admin.DeviceAuth,
|
|
37
40
|
EditBookingModal: () => import_editBookingModal.default,
|
|
38
41
|
Login: () => import_login.default,
|
|
42
|
+
OAuthConfig: () => import_admin.OAuthConfig,
|
|
43
|
+
OnlineShopAuth: () => import_admin.OnlineShopAuth,
|
|
44
|
+
OrgAdminAuth: () => import_admin.OrgAdminAuth,
|
|
45
|
+
POSOperatorAuth: () => import_admin.POSOperatorAuth,
|
|
39
46
|
PinModal: () => import_pinModal.default,
|
|
40
47
|
PinVerifyModal: () => import_pinVerifyModal.default,
|
|
41
48
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
|
42
49
|
ProductExtension: () => import_productExtension.default,
|
|
43
50
|
RuleSetting: () => import_ruleSetting.default,
|
|
51
|
+
SaaSAdminAuth: () => import_admin.SaaSAdminAuth,
|
|
52
|
+
SaaSManagermentAuth: () => import_admin.SaaSManagermentAuth,
|
|
44
53
|
Schedules: () => import_schedules.default,
|
|
45
54
|
StepController: () => import_stepController.default,
|
|
46
55
|
SubTotal: () => import_subTotal.default,
|
|
@@ -71,6 +80,7 @@ var import_editBookingModal = __toESM(require("./booking/editBookingModal"));
|
|
|
71
80
|
var import_stepController = __toESM(require("./stepController"));
|
|
72
81
|
var import_pinModal = __toESM(require("./pinModal"));
|
|
73
82
|
var import_pinVerifyModal = __toESM(require("./pinVerifyModal"));
|
|
83
|
+
var import_admin = require("./authentication/admin");
|
|
74
84
|
// Annotate the CommonJS export names for ESM import in node:
|
|
75
85
|
0 && (module.exports = {
|
|
76
86
|
Booking,
|
|
@@ -78,13 +88,22 @@ var import_pinVerifyModal = __toESM(require("./pinVerifyModal"));
|
|
|
78
88
|
BookingForms,
|
|
79
89
|
BookingInfo,
|
|
80
90
|
BookingNotes,
|
|
91
|
+
CustomerAuth,
|
|
92
|
+
CustomerOAuthConfig,
|
|
93
|
+
DeviceAuth,
|
|
81
94
|
EditBookingModal,
|
|
82
95
|
Login,
|
|
96
|
+
OAuthConfig,
|
|
97
|
+
OnlineShopAuth,
|
|
98
|
+
OrgAdminAuth,
|
|
99
|
+
POSOperatorAuth,
|
|
83
100
|
PinModal,
|
|
84
101
|
PinVerifyModal,
|
|
85
102
|
PisellSelectCustomerModal,
|
|
86
103
|
ProductExtension,
|
|
87
104
|
RuleSetting,
|
|
105
|
+
SaaSAdminAuth,
|
|
106
|
+
SaaSManagermentAuth,
|
|
88
107
|
Schedules,
|
|
89
108
|
StepController,
|
|
90
109
|
SubTotal,
|
|
@@ -50,6 +50,7 @@ var import_utils2 = require("../../../utils");
|
|
|
50
50
|
var import_payGroup = require("./payGroup");
|
|
51
51
|
var import_locales = __toESM(require("./locales"));
|
|
52
52
|
var import_utils3 = require("./utils");
|
|
53
|
+
var import_status = require("./status");
|
|
53
54
|
var import_index = require("./index.less");
|
|
54
55
|
var ToCPay = (props, ref) => {
|
|
55
56
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
@@ -98,7 +99,8 @@ var ToCPay = (props, ref) => {
|
|
|
98
99
|
};
|
|
99
100
|
const getWalletSetting = async (initProps) => {
|
|
100
101
|
var _a2, _b2;
|
|
101
|
-
|
|
102
|
+
let sale_channel = ((_a2 = initProps == null ? void 0 : initProps.order) == null ? void 0 : _a2.sale_channel) || "online-store";
|
|
103
|
+
sale_channel = import_status.saleChannelMap[sale_channel] || sale_channel;
|
|
102
104
|
const { wallet, wallet_setting } = await (0, import_serve.getWalletNameAndPopupStatus)({
|
|
103
105
|
setting_type: `${sale_channel}-wallet-setting`
|
|
104
106
|
});
|
|
@@ -176,6 +178,12 @@ var ToCPay = (props, ref) => {
|
|
|
176
178
|
key: "支付数据获取",
|
|
177
179
|
value: ""
|
|
178
180
|
});
|
|
181
|
+
const withCustomerIdList = wallet_pass_recommend_list.map((item) => {
|
|
182
|
+
return {
|
|
183
|
+
...item,
|
|
184
|
+
customer_id: customer_id || item.customer_id
|
|
185
|
+
};
|
|
186
|
+
});
|
|
179
187
|
dispatch({
|
|
180
188
|
type: "setPayGroup",
|
|
181
189
|
payload: {
|
|
@@ -190,7 +198,7 @@ var ToCPay = (props, ref) => {
|
|
|
190
198
|
...(_a2 = state.payGroup) == null ? void 0 : _a2.walletPass,
|
|
191
199
|
...walletPass,
|
|
192
200
|
amount: wallet_pass_amount,
|
|
193
|
-
cards:
|
|
201
|
+
cards: withCustomerIdList
|
|
194
202
|
} : null,
|
|
195
203
|
total_amount: order == null ? void 0 : order.amount,
|
|
196
204
|
wait_amount: remain_amount
|
|
@@ -23,6 +23,7 @@ __export(status_exports, {
|
|
|
23
23
|
paymentKeys: () => paymentKeys,
|
|
24
24
|
paymentServices: () => paymentServices,
|
|
25
25
|
paymentTypes: () => paymentTypes,
|
|
26
|
+
saleChannelMap: () => saleChannelMap,
|
|
26
27
|
tripartitePaymentKeys: () => tripartitePaymentKeys
|
|
27
28
|
});
|
|
28
29
|
module.exports = __toCommonJS(status_exports);
|
|
@@ -112,11 +113,15 @@ var paymentKeys = Object.keys(paymentServices);
|
|
|
112
113
|
var isTripartitePayment = (service) => {
|
|
113
114
|
return tripartitePaymentKeys.includes(service);
|
|
114
115
|
};
|
|
116
|
+
var saleChannelMap = {
|
|
117
|
+
"mobile_order": "mobile-order"
|
|
118
|
+
};
|
|
115
119
|
// Annotate the CommonJS export names for ESM import in node:
|
|
116
120
|
0 && (module.exports = {
|
|
117
121
|
isTripartitePayment,
|
|
118
122
|
paymentKeys,
|
|
119
123
|
paymentServices,
|
|
120
124
|
paymentTypes,
|
|
125
|
+
saleChannelMap,
|
|
121
126
|
tripartitePaymentKeys
|
|
122
127
|
});
|
package/lib/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ export { default as WalletEditor } from './plus/walletEditor';
|
|
|
51
51
|
export { default as WalletPassGallery } from './plus/walletPassGallery';
|
|
52
52
|
export { default as PinModal } from './components/pinModal';
|
|
53
53
|
export { default as PinVerifyModal } from './components/pinVerifyModal';
|
|
54
|
+
export { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './components/authentication/admin';
|
|
55
|
+
export type { SaaSAdminAuthProps, OrgAdminAuthProps, DeviceAuthProps, POSOperatorAuthProps, CustomerOAuthConfigProps } from './components/authentication/admin';
|
|
54
56
|
export { default as ContactInfo } from './plus/contactInfo';
|
|
55
57
|
export { default as ContactInfoModal } from './plus/contactInfoModal';
|
|
56
58
|
export { Login2, Register2, AuthModal } from './pro/Login2.0';
|
package/lib/index.js
CHANGED
|
@@ -46,6 +46,9 @@ __export(src_exports, {
|
|
|
46
46
|
BookingStartTime: () => import_startTime.default,
|
|
47
47
|
ContactInfo: () => import_contactInfo.default,
|
|
48
48
|
ContactInfoModal: () => import_contactInfoModal.default,
|
|
49
|
+
CustomerAuth: () => import_admin.CustomerAuth,
|
|
50
|
+
CustomerOAuthConfig: () => import_admin.CustomerOAuthConfig,
|
|
51
|
+
DeviceAuth: () => import_admin.DeviceAuth,
|
|
49
52
|
EditBookingModal: () => import_editBookingModal.default,
|
|
50
53
|
Eftpos: () => import_eftpos.default,
|
|
51
54
|
EftposPay: () => import_eftposPay.default,
|
|
@@ -63,12 +66,18 @@ __export(src_exports, {
|
|
|
63
66
|
EventTimeResourceSelector: () => import_timeResourceSelector.default,
|
|
64
67
|
Login: () => import_login.default,
|
|
65
68
|
Login2: () => import_Login2.Login2,
|
|
69
|
+
OAuthConfig: () => import_admin.OAuthConfig,
|
|
70
|
+
OnlineShopAuth: () => import_admin.OnlineShopAuth,
|
|
71
|
+
OrgAdminAuth: () => import_admin.OrgAdminAuth,
|
|
72
|
+
POSOperatorAuth: () => import_admin.POSOperatorAuth,
|
|
66
73
|
PinModal: () => import_pinModal.default,
|
|
67
74
|
PinVerifyModal: () => import_pinVerifyModal.default,
|
|
68
75
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
|
69
76
|
ProductExtension: () => import_productExtension.default,
|
|
70
77
|
Register2: () => import_Login2.Register2,
|
|
71
78
|
RuleSetting: () => import_ruleSetting.default,
|
|
79
|
+
SaaSAdminAuth: () => import_admin.SaaSAdminAuth,
|
|
80
|
+
SaaSManagermentAuth: () => import_admin.SaaSManagermentAuth,
|
|
72
81
|
SaasCreateOrganization: () => import_saasCreateOrganization.default,
|
|
73
82
|
SaasLogin: () => import_saasLogin.default,
|
|
74
83
|
SaasRegister: () => import_saasRegister.default,
|
|
@@ -143,6 +152,7 @@ var import_walletEditor = __toESM(require("./plus/walletEditor"));
|
|
|
143
152
|
var import_walletPassGallery = __toESM(require("./plus/walletPassGallery"));
|
|
144
153
|
var import_pinModal = __toESM(require("./components/pinModal"));
|
|
145
154
|
var import_pinVerifyModal = __toESM(require("./components/pinVerifyModal"));
|
|
155
|
+
var import_admin = require("./components/authentication/admin");
|
|
146
156
|
var import_contactInfo = __toESM(require("./plus/contactInfo"));
|
|
147
157
|
var import_contactInfoModal = __toESM(require("./plus/contactInfoModal"));
|
|
148
158
|
var import_Login2 = require("./pro/Login2.0");
|
|
@@ -167,6 +177,9 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
167
177
|
BookingStartTime,
|
|
168
178
|
ContactInfo,
|
|
169
179
|
ContactInfoModal,
|
|
180
|
+
CustomerAuth,
|
|
181
|
+
CustomerOAuthConfig,
|
|
182
|
+
DeviceAuth,
|
|
170
183
|
EditBookingModal,
|
|
171
184
|
Eftpos,
|
|
172
185
|
EftposPay,
|
|
@@ -184,12 +197,18 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
184
197
|
EventTimeResourceSelector,
|
|
185
198
|
Login,
|
|
186
199
|
Login2,
|
|
200
|
+
OAuthConfig,
|
|
201
|
+
OnlineShopAuth,
|
|
202
|
+
OrgAdminAuth,
|
|
203
|
+
POSOperatorAuth,
|
|
187
204
|
PinModal,
|
|
188
205
|
PinVerifyModal,
|
|
189
206
|
PisellSelectCustomerModal,
|
|
190
207
|
ProductExtension,
|
|
191
208
|
Register2,
|
|
192
209
|
RuleSetting,
|
|
210
|
+
SaaSAdminAuth,
|
|
211
|
+
SaaSManagermentAuth,
|
|
193
212
|
SaasCreateOrganization,
|
|
194
213
|
SaasLogin,
|
|
195
214
|
SaasRegister,
|
|
@@ -104,14 +104,11 @@ var Login2 = ({
|
|
|
104
104
|
(0, import_react.useEffect)(() => {
|
|
105
105
|
var _a2;
|
|
106
106
|
if (loginMethods.length > 0 && !currentLoginMethod) {
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
)
|
|
110
|
-
const first = nonOAuthMethod || loginMethods[0];
|
|
111
|
-
setCurrentLoginMethod(first);
|
|
112
|
-
if (first.type === "email" || first.type === "phone") {
|
|
107
|
+
const initialMethod = loginMethods[0];
|
|
108
|
+
setCurrentLoginMethod(initialMethod);
|
|
109
|
+
if ((initialMethod == null ? void 0 : initialMethod.type) === "email" || (initialMethod == null ? void 0 : initialMethod.type) === "phone") {
|
|
113
110
|
setCurrentVerificationMethod(
|
|
114
|
-
((_a2 =
|
|
111
|
+
((_a2 = initialMethod.verificationMethods) == null ? void 0 : _a2[0]) || "password"
|
|
115
112
|
);
|
|
116
113
|
}
|
|
117
114
|
}
|
|
@@ -1219,12 +1216,16 @@ var Login2 = ({
|
|
|
1219
1216
|
};
|
|
1220
1217
|
const renderSwitchOptions = () => {
|
|
1221
1218
|
if (!currentLoginMethod) return null;
|
|
1222
|
-
const
|
|
1223
|
-
|
|
1219
|
+
const primaryMethod = loginMethods[0];
|
|
1220
|
+
const currentIsFormMethod = currentLoginMethod.type === "email" || currentLoginMethod.type === "phone";
|
|
1221
|
+
const primaryIsFormMethod = (primaryMethod == null ? void 0 : primaryMethod.type) === "email" || (primaryMethod == null ? void 0 : primaryMethod.type) === "phone";
|
|
1222
|
+
const shouldUseFormLayout = currentIsFormMethod || primaryIsFormMethod;
|
|
1223
|
+
const verificationSwitchButtons = [];
|
|
1224
|
+
if (currentIsFormMethod) {
|
|
1224
1225
|
(currentLoginMethod.verificationMethods || []).filter((method) => method !== currentVerificationMethod).forEach((method) => {
|
|
1225
1226
|
if (method === "verification_code") {
|
|
1226
1227
|
const text = currentLoginMethod.type === "email" ? import_utils.locales.getText("pisell-login2-switch-to-email-code") : import_utils.locales.getText("pisell-login2-switch-to-sms-code");
|
|
1227
|
-
|
|
1228
|
+
verificationSwitchButtons.push(
|
|
1228
1229
|
/* @__PURE__ */ import_react.default.createElement(
|
|
1229
1230
|
"button",
|
|
1230
1231
|
{
|
|
@@ -1237,7 +1238,7 @@ var Login2 = ({
|
|
|
1237
1238
|
)
|
|
1238
1239
|
);
|
|
1239
1240
|
} else {
|
|
1240
|
-
|
|
1241
|
+
verificationSwitchButtons.push(
|
|
1241
1242
|
/* @__PURE__ */ import_react.default.createElement(
|
|
1242
1243
|
"button",
|
|
1243
1244
|
{
|
|
@@ -1252,17 +1253,15 @@ var Login2 = ({
|
|
|
1252
1253
|
}
|
|
1253
1254
|
});
|
|
1254
1255
|
}
|
|
1256
|
+
const emailPhoneSwitchButtons = [];
|
|
1255
1257
|
loginMethods.forEach((method, index) => {
|
|
1256
1258
|
if (method.type === "email" || method.type === "phone") {
|
|
1257
|
-
if (method.type === currentLoginMethod.type)
|
|
1258
|
-
return;
|
|
1259
|
-
}
|
|
1259
|
+
if (method.type === currentLoginMethod.type) return;
|
|
1260
1260
|
const isLast = isLastLoginMethod(method.type);
|
|
1261
|
-
const className2 = (0, import_classnames.default)(
|
|
1262
|
-
"
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
nonOauthButtons.push(
|
|
1261
|
+
const className2 = (0, import_classnames.default)("login2-switch-option-button", {
|
|
1262
|
+
"has-last-login-badge": isLast
|
|
1263
|
+
});
|
|
1264
|
+
emailPhoneSwitchButtons.push(
|
|
1266
1265
|
/* @__PURE__ */ import_react.default.createElement(
|
|
1267
1266
|
"button",
|
|
1268
1267
|
{
|
|
@@ -1282,7 +1281,10 @@ var Login2 = ({
|
|
|
1282
1281
|
);
|
|
1283
1282
|
}
|
|
1284
1283
|
});
|
|
1285
|
-
const
|
|
1284
|
+
const nonOauthButtons = [
|
|
1285
|
+
...verificationSwitchButtons,
|
|
1286
|
+
...emailPhoneSwitchButtons
|
|
1287
|
+
];
|
|
1286
1288
|
const registerPrompt = onSwitchToRegister && /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-register-prompt" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "register-prompt-text" }, import_utils.locales.getText("pisell-login2-no-account")), /* @__PURE__ */ import_react.default.createElement(
|
|
1287
1289
|
"button",
|
|
1288
1290
|
{
|
|
@@ -1294,15 +1296,76 @@ var Login2 = ({
|
|
|
1294
1296
|
if (!nonOauthButtons.length && !oauthProviders.length) {
|
|
1295
1297
|
return registerPrompt;
|
|
1296
1298
|
}
|
|
1297
|
-
|
|
1299
|
+
if (shouldUseFormLayout) {
|
|
1300
|
+
const groups = [];
|
|
1301
|
+
if (nonOauthButtons.length > 0) {
|
|
1302
|
+
groups.push(
|
|
1303
|
+
/* @__PURE__ */ import_react.default.createElement("div", { key: "non-oauth", className: "login2-switch-options" }, nonOauthButtons)
|
|
1304
|
+
);
|
|
1305
|
+
}
|
|
1306
|
+
if (oauthProviders.length > 0) {
|
|
1307
|
+
groups.push(
|
|
1308
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
1309
|
+
import_OAuthButtonGroup.default,
|
|
1310
|
+
{
|
|
1311
|
+
key: "oauth",
|
|
1312
|
+
providers: oauthProviders,
|
|
1313
|
+
wrapperClassName: "login2-oauth-buttons",
|
|
1314
|
+
buttonClassName: "login2-oauth-button",
|
|
1315
|
+
gap: 12
|
|
1316
|
+
}
|
|
1317
|
+
)
|
|
1318
|
+
);
|
|
1319
|
+
}
|
|
1320
|
+
if (!groups.length) {
|
|
1321
|
+
return registerPrompt;
|
|
1322
|
+
}
|
|
1323
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-divider" }, import_utils.locales.getText("pisell-login2-or")), /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-switch-groups" }, groups), registerPrompt);
|
|
1324
|
+
}
|
|
1325
|
+
const primaryProvider = oauthProviders.find(
|
|
1326
|
+
(provider) => provider.key === (primaryMethod == null ? void 0 : primaryMethod.type)
|
|
1327
|
+
);
|
|
1328
|
+
const secondaryOauthProviders = oauthProviders.filter(
|
|
1329
|
+
(provider) => provider.key !== (primaryMethod == null ? void 0 : primaryMethod.type)
|
|
1330
|
+
);
|
|
1331
|
+
const hasSecondaryButtons = nonOauthButtons.length > 0 || secondaryOauthProviders.length > 0;
|
|
1332
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-switch-groups" }, primaryProvider ? /* @__PURE__ */ import_react.default.createElement(
|
|
1333
|
+
import_OAuthButtonGroup.default,
|
|
1334
|
+
{
|
|
1335
|
+
providers: [primaryProvider],
|
|
1336
|
+
wrapperClassName: "login2-oauth-buttons",
|
|
1337
|
+
buttonClassName: "login2-oauth-button",
|
|
1338
|
+
gap: 12
|
|
1339
|
+
}
|
|
1340
|
+
) : /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-switch-options" }, /* @__PURE__ */ import_react.default.createElement(
|
|
1341
|
+
"button",
|
|
1342
|
+
{
|
|
1343
|
+
key: "primary-fallback",
|
|
1344
|
+
className: "login2-switch-option-button",
|
|
1345
|
+
onClick: () => {
|
|
1346
|
+
if ((primaryMethod == null ? void 0 : primaryMethod.type) === "guest") {
|
|
1347
|
+
handleGuestLogin();
|
|
1348
|
+
} else if ((primaryMethod == null ? void 0 : primaryMethod.type) === "google" || (primaryMethod == null ? void 0 : primaryMethod.type) === "facebook" || (primaryMethod == null ? void 0 : primaryMethod.type) === "apple") {
|
|
1349
|
+
handleOAuthClick(primaryMethod.type);
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
1354
|
+
import_materials2.Iconfont,
|
|
1355
|
+
{
|
|
1356
|
+
type: (primaryMethod == null ? void 0 : primaryMethod.type) === "guest" ? "pisell2-user-01" : (primaryMethod == null ? void 0 : primaryMethod.type) === "google" ? "pisell2-google" : (primaryMethod == null ? void 0 : primaryMethod.type) === "facebook" ? "pisell2-facebook" : "pisell2-apple"
|
|
1357
|
+
}
|
|
1358
|
+
),
|
|
1359
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "option-text" }, (primaryMethod == null ? void 0 : primaryMethod.type) === "guest" ? import_utils.locales.getText("pisell-login2-login-as-guest") : `${import_utils.locales.getText("pisell-login2-continue-with")} ${(primaryMethod == null ? void 0 : primaryMethod.type) ? primaryMethod.type.charAt(0).toUpperCase() + primaryMethod.type.slice(1) : ""}`)
|
|
1360
|
+
)), hasSecondaryButtons && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-divider" }, import_utils.locales.getText("pisell-login2-or")), nonOauthButtons.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-switch-options" }, nonOauthButtons), secondaryOauthProviders.length > 0 && /* @__PURE__ */ import_react.default.createElement(
|
|
1298
1361
|
import_OAuthButtonGroup.default,
|
|
1299
1362
|
{
|
|
1300
|
-
providers:
|
|
1363
|
+
providers: secondaryOauthProviders,
|
|
1301
1364
|
wrapperClassName: "login2-oauth-buttons",
|
|
1302
1365
|
buttonClassName: "login2-oauth-button",
|
|
1303
1366
|
gap: 12
|
|
1304
1367
|
}
|
|
1305
|
-
)), registerPrompt);
|
|
1368
|
+
))), registerPrompt);
|
|
1306
1369
|
};
|
|
1307
1370
|
if (!visible) {
|
|
1308
1371
|
return null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellPaymentList 使用示例
|
|
3
|
+
*
|
|
4
|
+
* 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
|
|
5
|
+
* 包括如何通过 Context 访问父组件配置
|
|
6
|
+
*/
|
|
7
|
+
export declare const BasicExample: () => JSX.Element;
|
|
8
|
+
export declare const ChildrenExample: () => JSX.Element;
|
|
9
|
+
export declare const CustomItemExample: () => JSX.Element;
|
|
10
|
+
export declare const MethodConfigExample: () => JSX.Element;
|
|
11
|
+
export declare const FullFeatureExample: () => JSX.Element;
|
|
12
|
+
declare const _default: {
|
|
13
|
+
BasicExample: () => JSX.Element;
|
|
14
|
+
ChildrenExample: () => JSX.Element;
|
|
15
|
+
CustomItemExample: () => JSX.Element;
|
|
16
|
+
MethodConfigExample: () => JSX.Element;
|
|
17
|
+
FullFeatureExample: () => JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|