@pisell/private-materials 6.3.37 → 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 +146 -160
- 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/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/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- 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/pisellPaymentList/example.d.ts +19 -0
- package/es/pro/pisellPaymentList/example.js +434 -0
- 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/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- 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/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,434 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
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."); }
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
/**
|
|
8
|
+
* PisellPaymentList 使用示例
|
|
9
|
+
*
|
|
10
|
+
* 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
|
|
11
|
+
* 包括如何通过 Context 访问父组件配置
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import React, { useState } from 'react';
|
|
15
|
+
import { PisellPaymentList, PisellPaymentListItem, usePaymentListContext } from "./index";
|
|
16
|
+
// ============================================
|
|
17
|
+
// 示例 1: 基本使用(通过 paymentMethods 数组渲染)
|
|
18
|
+
// ============================================
|
|
19
|
+
|
|
20
|
+
export var BasicExample = function BasicExample() {
|
|
21
|
+
var _useState = useState('1'),
|
|
22
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
23
|
+
selectedId = _useState2[0],
|
|
24
|
+
setSelectedId = _useState2[1];
|
|
25
|
+
var paymentMethods = [{
|
|
26
|
+
id: '1',
|
|
27
|
+
name: 'Credit Card',
|
|
28
|
+
type: 'card',
|
|
29
|
+
code: 'card',
|
|
30
|
+
surcharge: '0',
|
|
31
|
+
is_surcharge: true,
|
|
32
|
+
percentage: 0.03,
|
|
33
|
+
fixed: 0.5
|
|
34
|
+
}, {
|
|
35
|
+
id: '2',
|
|
36
|
+
name: 'Cash',
|
|
37
|
+
type: 'cash',
|
|
38
|
+
code: 'cash',
|
|
39
|
+
surcharge: '0',
|
|
40
|
+
is_surcharge: false
|
|
41
|
+
}];
|
|
42
|
+
return /*#__PURE__*/React.createElement(PisellPaymentList, {
|
|
43
|
+
paymentMethods: paymentMethods,
|
|
44
|
+
amountSymbol: "$",
|
|
45
|
+
customAmount: 100,
|
|
46
|
+
selectedId: selectedId,
|
|
47
|
+
onSelect: function onSelect(method) {
|
|
48
|
+
console.log('Selected:', method);
|
|
49
|
+
setSelectedId(method.id);
|
|
50
|
+
},
|
|
51
|
+
isRadioMode: true,
|
|
52
|
+
itemConfig: {
|
|
53
|
+
containerStyle: {
|
|
54
|
+
backgroundColor: '#fff',
|
|
55
|
+
border: '1px solid #e0e0e0',
|
|
56
|
+
borderRadius: 8,
|
|
57
|
+
padding: 16,
|
|
58
|
+
selectedBorder: '2px solid #7F56D9',
|
|
59
|
+
selectedBackgroundColor: '#f9f5ff'
|
|
60
|
+
},
|
|
61
|
+
titleStyle: {
|
|
62
|
+
color: '#333',
|
|
63
|
+
fontSize: 16,
|
|
64
|
+
fontWeight: 500,
|
|
65
|
+
selectedColor: '#7F56D9'
|
|
66
|
+
},
|
|
67
|
+
surchargeConfig: {
|
|
68
|
+
show: true,
|
|
69
|
+
label: 'Service Fee',
|
|
70
|
+
color: '#666',
|
|
71
|
+
fontSize: 14
|
|
72
|
+
},
|
|
73
|
+
actionConfig: {
|
|
74
|
+
style: 'radio',
|
|
75
|
+
radioStyle: {
|
|
76
|
+
size: 20,
|
|
77
|
+
checkedBorderColor: '#7F56D9',
|
|
78
|
+
checkedBackgroundColor: '#F9F5FF',
|
|
79
|
+
checkedDotColor: '#7F56D9'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
// ============================================
|
|
87
|
+
// 示例 2: 使用 children 渲染(低代码场景)
|
|
88
|
+
// ============================================
|
|
89
|
+
|
|
90
|
+
export var ChildrenExample = function ChildrenExample() {
|
|
91
|
+
var _useState3 = useState('1'),
|
|
92
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
93
|
+
selectedId = _useState4[0],
|
|
94
|
+
setSelectedId = _useState4[1];
|
|
95
|
+
var paymentMethods = [{
|
|
96
|
+
id: '1',
|
|
97
|
+
name: 'Credit Card',
|
|
98
|
+
type: 'card',
|
|
99
|
+
code: 'card',
|
|
100
|
+
surcharge: '0',
|
|
101
|
+
is_surcharge: true,
|
|
102
|
+
percentage: 0.03,
|
|
103
|
+
fixed: 0.5
|
|
104
|
+
}, {
|
|
105
|
+
id: '2',
|
|
106
|
+
name: 'Cash',
|
|
107
|
+
type: 'cash',
|
|
108
|
+
code: 'cash',
|
|
109
|
+
surcharge: '0',
|
|
110
|
+
is_surcharge: false
|
|
111
|
+
}];
|
|
112
|
+
return /*#__PURE__*/React.createElement(PisellPaymentList, {
|
|
113
|
+
amountSymbol: "$",
|
|
114
|
+
customAmount: 100,
|
|
115
|
+
selectedId: selectedId,
|
|
116
|
+
onSelect: function onSelect(method) {
|
|
117
|
+
return setSelectedId(method.id);
|
|
118
|
+
},
|
|
119
|
+
isRadioMode: true,
|
|
120
|
+
itemConfig: {
|
|
121
|
+
containerStyle: {
|
|
122
|
+
backgroundColor: '#fff',
|
|
123
|
+
border: '1px solid #e0e0e0'
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}, /*#__PURE__*/React.createElement(PisellPaymentListItem, {
|
|
127
|
+
method: paymentMethods[0]
|
|
128
|
+
// 不需要传递 amountSymbol, customAmount 等
|
|
129
|
+
// 会自动从父组件 Context 中获取
|
|
130
|
+
}), /*#__PURE__*/React.createElement(PisellPaymentListItem, {
|
|
131
|
+
method: paymentMethods[1]
|
|
132
|
+
// 如果想覆盖某些配置,可以显式传递
|
|
133
|
+
,
|
|
134
|
+
containerStyle: {
|
|
135
|
+
backgroundColor: '#f9f5ff'
|
|
136
|
+
}
|
|
137
|
+
}));
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// ============================================
|
|
141
|
+
// 示例 3: 自定义子组件访问 Context
|
|
142
|
+
// ============================================
|
|
143
|
+
|
|
144
|
+
// 创建一个自定义的子组件,可以访问父组件的配置
|
|
145
|
+
var CustomPaymentItem = function CustomPaymentItem(_ref) {
|
|
146
|
+
var method = _ref.method;
|
|
147
|
+
// 使用 Hook 获取父组件配置
|
|
148
|
+
var parentContext = usePaymentListContext();
|
|
149
|
+
if (!parentContext) {
|
|
150
|
+
return /*#__PURE__*/React.createElement("div", null, "\u8BF7\u5728 PaymentList \u5185\u90E8\u4F7F\u7528\u6B64\u7EC4\u4EF6");
|
|
151
|
+
}
|
|
152
|
+
var isSelected = parentContext.selectedId === method.id;
|
|
153
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
154
|
+
onClick: function onClick() {
|
|
155
|
+
var _parentContext$onSele;
|
|
156
|
+
return (_parentContext$onSele = parentContext.onSelect) === null || _parentContext$onSele === void 0 ? void 0 : _parentContext$onSele.call(parentContext, method);
|
|
157
|
+
},
|
|
158
|
+
style: {
|
|
159
|
+
padding: 16,
|
|
160
|
+
border: isSelected ? '2px solid blue' : '1px solid gray',
|
|
161
|
+
borderRadius: 8,
|
|
162
|
+
cursor: 'pointer',
|
|
163
|
+
marginBottom: 8
|
|
164
|
+
}
|
|
165
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
166
|
+
style: {
|
|
167
|
+
fontWeight: 'bold'
|
|
168
|
+
}
|
|
169
|
+
}, method.name), /*#__PURE__*/React.createElement("div", {
|
|
170
|
+
style: {
|
|
171
|
+
fontSize: 14,
|
|
172
|
+
color: '#666'
|
|
173
|
+
}
|
|
174
|
+
}, "Amount: ", parentContext.amountSymbol, parentContext.customAmount), isSelected && /*#__PURE__*/React.createElement("div", {
|
|
175
|
+
style: {
|
|
176
|
+
color: 'blue'
|
|
177
|
+
}
|
|
178
|
+
}, "\u2713 Selected"));
|
|
179
|
+
};
|
|
180
|
+
export var CustomItemExample = function CustomItemExample() {
|
|
181
|
+
var _useState5 = useState('1'),
|
|
182
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
183
|
+
selectedId = _useState6[0],
|
|
184
|
+
setSelectedId = _useState6[1];
|
|
185
|
+
var paymentMethods = [{
|
|
186
|
+
id: '1',
|
|
187
|
+
name: 'Credit Card',
|
|
188
|
+
type: 'card',
|
|
189
|
+
code: 'card',
|
|
190
|
+
surcharge: '0'
|
|
191
|
+
}, {
|
|
192
|
+
id: '2',
|
|
193
|
+
name: 'Cash',
|
|
194
|
+
type: 'cash',
|
|
195
|
+
code: 'cash',
|
|
196
|
+
surcharge: '0'
|
|
197
|
+
}];
|
|
198
|
+
return /*#__PURE__*/React.createElement(PisellPaymentList, {
|
|
199
|
+
amountSymbol: "$",
|
|
200
|
+
customAmount: 100,
|
|
201
|
+
selectedId: selectedId,
|
|
202
|
+
onSelect: function onSelect(method) {
|
|
203
|
+
return setSelectedId(method.id);
|
|
204
|
+
}
|
|
205
|
+
}, paymentMethods.map(function (method) {
|
|
206
|
+
return /*#__PURE__*/React.createElement(CustomPaymentItem, {
|
|
207
|
+
key: method.id,
|
|
208
|
+
method: method
|
|
209
|
+
});
|
|
210
|
+
}));
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
// ============================================
|
|
214
|
+
// 示例 4: 支付方式自带配置
|
|
215
|
+
// ============================================
|
|
216
|
+
|
|
217
|
+
export var MethodConfigExample = function MethodConfigExample() {
|
|
218
|
+
var _useState7 = useState('1'),
|
|
219
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
220
|
+
selectedId = _useState8[0],
|
|
221
|
+
setSelectedId = _useState8[1];
|
|
222
|
+
var paymentMethods = [{
|
|
223
|
+
id: '1',
|
|
224
|
+
name: 'Premium Card',
|
|
225
|
+
type: 'card',
|
|
226
|
+
code: 'card',
|
|
227
|
+
surcharge: '0',
|
|
228
|
+
is_surcharge: true,
|
|
229
|
+
percentage: 0.03,
|
|
230
|
+
// 该支付方式的特定配置(优先级高于 List 的 itemConfig)
|
|
231
|
+
itemConfig: {
|
|
232
|
+
containerStyle: {
|
|
233
|
+
backgroundColor: '#FFF8E1',
|
|
234
|
+
border: '2px solid #FFD700',
|
|
235
|
+
borderRadius: 12
|
|
236
|
+
},
|
|
237
|
+
titleStyle: {
|
|
238
|
+
color: '#F57C00',
|
|
239
|
+
fontWeight: 'bold',
|
|
240
|
+
text: '🌟 Premium Card (Recommended)'
|
|
241
|
+
},
|
|
242
|
+
iconConfig: {
|
|
243
|
+
backgroundColor: '#FFD700',
|
|
244
|
+
iconColor: '#F57C00'
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}, {
|
|
248
|
+
id: '2',
|
|
249
|
+
name: 'Regular Card',
|
|
250
|
+
type: 'card',
|
|
251
|
+
code: 'card2',
|
|
252
|
+
surcharge: '0'
|
|
253
|
+
// 使用默认配置
|
|
254
|
+
}, {
|
|
255
|
+
id: '3',
|
|
256
|
+
name: 'Cash',
|
|
257
|
+
type: 'cash',
|
|
258
|
+
code: 'cash',
|
|
259
|
+
surcharge: '0'
|
|
260
|
+
// 使用默认配置
|
|
261
|
+
}];
|
|
262
|
+
return /*#__PURE__*/React.createElement(PisellPaymentList, {
|
|
263
|
+
paymentMethods: paymentMethods,
|
|
264
|
+
amountSymbol: "$",
|
|
265
|
+
customAmount: 100,
|
|
266
|
+
selectedId: selectedId,
|
|
267
|
+
onSelect: function onSelect(method) {
|
|
268
|
+
return setSelectedId(method.id);
|
|
269
|
+
},
|
|
270
|
+
isRadioMode: true
|
|
271
|
+
// 默认配置(应用到所有未自定义配置的支付方式)
|
|
272
|
+
,
|
|
273
|
+
itemConfig: {
|
|
274
|
+
containerStyle: {
|
|
275
|
+
backgroundColor: '#f5f5f5',
|
|
276
|
+
border: '1px solid #ddd',
|
|
277
|
+
borderRadius: 8,
|
|
278
|
+
padding: 16
|
|
279
|
+
},
|
|
280
|
+
titleStyle: {
|
|
281
|
+
color: '#333',
|
|
282
|
+
fontSize: 16
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
// ============================================
|
|
289
|
+
// 示例 5: 完整功能演示
|
|
290
|
+
// ============================================
|
|
291
|
+
|
|
292
|
+
export var FullFeatureExample = function FullFeatureExample() {
|
|
293
|
+
var _paymentMethods$find;
|
|
294
|
+
var _useState9 = useState('1'),
|
|
295
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
296
|
+
selectedId = _useState10[0],
|
|
297
|
+
setSelectedId = _useState10[1];
|
|
298
|
+
var _useState11 = useState(100),
|
|
299
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
300
|
+
amount = _useState12[0],
|
|
301
|
+
setAmount = _useState12[1];
|
|
302
|
+
var paymentMethods = [{
|
|
303
|
+
id: '1',
|
|
304
|
+
name: 'Credit Card',
|
|
305
|
+
type: 'card',
|
|
306
|
+
code: 'card',
|
|
307
|
+
surcharge: '0',
|
|
308
|
+
is_surcharge: true,
|
|
309
|
+
percentage: 0.029,
|
|
310
|
+
fixed: 0.3
|
|
311
|
+
}, {
|
|
312
|
+
id: '2',
|
|
313
|
+
name: 'Debit Card',
|
|
314
|
+
type: 'card',
|
|
315
|
+
code: 'debit',
|
|
316
|
+
surcharge: '0',
|
|
317
|
+
is_surcharge: true,
|
|
318
|
+
percentage: 0.015,
|
|
319
|
+
fixed: 0.1
|
|
320
|
+
}, {
|
|
321
|
+
id: '3',
|
|
322
|
+
name: 'Cash',
|
|
323
|
+
type: 'cash',
|
|
324
|
+
code: 'cash',
|
|
325
|
+
surcharge: '0',
|
|
326
|
+
is_surcharge: false
|
|
327
|
+
}];
|
|
328
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
329
|
+
style: {
|
|
330
|
+
padding: 20
|
|
331
|
+
}
|
|
332
|
+
}, /*#__PURE__*/React.createElement("h2", null, "Payment Options"), /*#__PURE__*/React.createElement("div", {
|
|
333
|
+
style: {
|
|
334
|
+
marginBottom: 20
|
|
335
|
+
}
|
|
336
|
+
}, /*#__PURE__*/React.createElement("label", null, "Amount: $", /*#__PURE__*/React.createElement("input", {
|
|
337
|
+
type: "number",
|
|
338
|
+
value: amount,
|
|
339
|
+
onChange: function onChange(e) {
|
|
340
|
+
return setAmount(Number(e.target.value));
|
|
341
|
+
},
|
|
342
|
+
style: {
|
|
343
|
+
marginLeft: 8,
|
|
344
|
+
padding: 4
|
|
345
|
+
}
|
|
346
|
+
}))), /*#__PURE__*/React.createElement(PisellPaymentList, {
|
|
347
|
+
paymentMethods: paymentMethods,
|
|
348
|
+
amountSymbol: "$",
|
|
349
|
+
customAmount: amount,
|
|
350
|
+
selectedId: selectedId,
|
|
351
|
+
onSelect: function onSelect(method) {
|
|
352
|
+
console.log('Selected payment method:', method);
|
|
353
|
+
setSelectedId(method.id);
|
|
354
|
+
},
|
|
355
|
+
onEdit: function onEdit(method) {
|
|
356
|
+
console.log('Edit surcharge for:', method);
|
|
357
|
+
// 这里可以打开一个弹窗来编辑手续费
|
|
358
|
+
},
|
|
359
|
+
isRadioMode: true,
|
|
360
|
+
maxHeight: 400,
|
|
361
|
+
columnCount: 1,
|
|
362
|
+
rowGap: 12,
|
|
363
|
+
showScrollbar: false,
|
|
364
|
+
itemConfig: {
|
|
365
|
+
containerStyle: {
|
|
366
|
+
backgroundColor: '#ffffff',
|
|
367
|
+
border: '1px solid #E5E7EB',
|
|
368
|
+
borderRadius: 12,
|
|
369
|
+
padding: 16,
|
|
370
|
+
selectedBorder: '2px solid #7F56D9',
|
|
371
|
+
selectedBackgroundColor: '#F9FAFB'
|
|
372
|
+
},
|
|
373
|
+
titleStyle: {
|
|
374
|
+
color: '#111827',
|
|
375
|
+
fontSize: 16,
|
|
376
|
+
fontWeight: 600,
|
|
377
|
+
selectedColor: '#7F56D9'
|
|
378
|
+
},
|
|
379
|
+
surchargeConfig: {
|
|
380
|
+
show: true,
|
|
381
|
+
label: 'Processing Fee',
|
|
382
|
+
color: '#6B7280',
|
|
383
|
+
fontSize: 14,
|
|
384
|
+
selectedColor: '#7F56D9',
|
|
385
|
+
enableEdit: true,
|
|
386
|
+
editButtonStyle: {
|
|
387
|
+
icon: 'pisell2-edit',
|
|
388
|
+
iconSize: 14,
|
|
389
|
+
iconColor: '#7F56D9',
|
|
390
|
+
backgroundColor: '#F3F4F6',
|
|
391
|
+
padding: 4,
|
|
392
|
+
borderRadius: 4,
|
|
393
|
+
marginLeft: 8
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
actionConfig: {
|
|
397
|
+
style: 'radio',
|
|
398
|
+
radioStyle: {
|
|
399
|
+
size: 20,
|
|
400
|
+
checkedBorderColor: '#7F56D9',
|
|
401
|
+
checkedBackgroundColor: '#F9F5FF',
|
|
402
|
+
checkedDotColor: '#7F56D9',
|
|
403
|
+
uncheckedBorderColor: '#D1D5DB',
|
|
404
|
+
uncheckedBackgroundColor: '#FFFFFF'
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
scrollButtonStyle: {
|
|
409
|
+
show: true,
|
|
410
|
+
height: 60,
|
|
411
|
+
backgroundColor: 'linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #E5E7EB 100%)',
|
|
412
|
+
iconSize: 32,
|
|
413
|
+
iconColor: '#6B7280'
|
|
414
|
+
}
|
|
415
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
416
|
+
style: {
|
|
417
|
+
marginTop: 20,
|
|
418
|
+
padding: 16,
|
|
419
|
+
backgroundColor: '#F3F4F6',
|
|
420
|
+
borderRadius: 8
|
|
421
|
+
}
|
|
422
|
+
}, /*#__PURE__*/React.createElement("h3", null, "Selection Summary"), /*#__PURE__*/React.createElement("p", null, "Selected ID: ", selectedId), /*#__PURE__*/React.createElement("p", null, "Amount: $", amount), /*#__PURE__*/React.createElement("p", null, "Selected Method:", ' ', ((_paymentMethods$find = paymentMethods.find(function (m) {
|
|
423
|
+
return m.id === selectedId;
|
|
424
|
+
})) === null || _paymentMethods$find === void 0 ? void 0 : _paymentMethods$find.name) || 'None')));
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
// 默认导出所有示例
|
|
428
|
+
export default {
|
|
429
|
+
BasicExample: BasicExample,
|
|
430
|
+
ChildrenExample: ChildrenExample,
|
|
431
|
+
CustomItemExample: CustomItemExample,
|
|
432
|
+
MethodConfigExample: MethodConfigExample,
|
|
433
|
+
FullFeatureExample: FullFeatureExample
|
|
434
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
.auth-methods {
|
|
2
|
+
background: #fff;
|
|
3
|
+
padding: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.auth-methods-item {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
border: 1px solid #f0f0f0;
|
|
10
|
+
border-radius: 8px;
|
|
11
|
+
background: #fff;
|
|
12
|
+
margin-bottom: 12px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.auth-methods-item-body {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex: 1;
|
|
18
|
+
padding: 20px 24px 20px 0;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.auth-methods-item:hover {
|
|
23
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.auth-methods-item-drag {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
color: #d9d9d9;
|
|
31
|
+
font-size: 20px;
|
|
32
|
+
padding-left: 24px;
|
|
33
|
+
padding-right: 16px;
|
|
34
|
+
cursor: grab;
|
|
35
|
+
align-self: stretch;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.auth-methods-item-icon {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
width: 40px;
|
|
43
|
+
height: 40px;
|
|
44
|
+
margin-right: 16px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.auth-methods-item-content {
|
|
48
|
+
flex: 1;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.auth-methods-item-header {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
margin-bottom: 4px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.auth-methods-item-title {
|
|
59
|
+
font-size: 15px;
|
|
60
|
+
font-weight: 500;
|
|
61
|
+
color: #262626;
|
|
62
|
+
margin-right: 8px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.auth-methods-item-category {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
padding: 2px 8px;
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.auth-methods-item-category.general {
|
|
74
|
+
color: #4096ff;
|
|
75
|
+
background: #e6f4ff;
|
|
76
|
+
border: 1px solid #91caff;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.auth-methods-item-category.password-free {
|
|
80
|
+
color: #52c41a;
|
|
81
|
+
background: #f6ffed;
|
|
82
|
+
border: 1px solid #b7eb8f;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.auth-methods-item-category.auth-free {
|
|
86
|
+
color: #8c8c8c;
|
|
87
|
+
background: #f5f5f5;
|
|
88
|
+
border: 1px solid #d9d9d9;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.auth-methods-item-category.oauth {
|
|
92
|
+
color: #722ed1;
|
|
93
|
+
background: #f9f0ff;
|
|
94
|
+
border: 1px solid #d3adf7;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.auth-methods-item-description {
|
|
98
|
+
font-size: 13px;
|
|
99
|
+
color: #8c8c8c;
|
|
100
|
+
line-height: 1.5;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.auth-methods-item-config-link {
|
|
104
|
+
font-size: 12px;
|
|
105
|
+
color: #4096ff;
|
|
106
|
+
display: inline-block;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.auth-methods-item-config-link .anticon {
|
|
110
|
+
margin-right: 4px;
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.auth-methods-item-config-link:hover {
|
|
115
|
+
text-decoration: underline;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.auth-methods-item-actions {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
gap: 12px;
|
|
123
|
+
margin-left: 16px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.auth-methods-dragging {
|
|
127
|
+
opacity: 0.5;
|
|
128
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.auth-methods-empty {
|
|
132
|
+
padding: 48px 24px;
|
|
133
|
+
text-align: center;
|
|
134
|
+
color: #8c8c8c;
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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/AuthMethods/SettingList.tsx
|
|
30
|
+
var SettingList_exports = {};
|
|
31
|
+
__export(SettingList_exports, {
|
|
32
|
+
default: () => SettingList_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(SettingList_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_constants = require("./constants");
|
|
40
|
+
var import_locales = __toESM(require("./locales"));
|
|
41
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
42
|
+
var import_SettingList = require("./SettingList.less");
|
|
43
|
+
var SettingList = ({
|
|
44
|
+
className,
|
|
45
|
+
style,
|
|
46
|
+
methods: initialMethods,
|
|
47
|
+
onToggle,
|
|
48
|
+
onSettings,
|
|
49
|
+
onConfigClick,
|
|
50
|
+
enableSetting = true,
|
|
51
|
+
renderTitle
|
|
52
|
+
}) => {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
const context = (0, import_useEngineContext.default)();
|
|
55
|
+
import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
|
|
56
|
+
const methods = initialMethods || (0, import_constants.getDefaultAuthMethods)();
|
|
57
|
+
const handleSettings = (method) => {
|
|
58
|
+
onSettings == null ? void 0 : onSettings(method);
|
|
59
|
+
};
|
|
60
|
+
const shouldShowSettings = (method) => {
|
|
61
|
+
if (!enableSetting) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return true;
|
|
65
|
+
};
|
|
66
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("setting-list", className), style }, methods.map((method) => /* @__PURE__ */ import_react.default.createElement("div", { key: method.id, className: "setting-list-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "setting-list-item-icon" }, method.icon), /* @__PURE__ */ import_react.default.createElement("div", { className: "setting-list-item-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "setting-list-item-title" }, renderTitle ? renderTitle(method) : method.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "setting-list-item-description" }, method.description)), /* @__PURE__ */ import_react.default.createElement("div", { className: "setting-list-item-actions" }, shouldShowSettings(method) && /* @__PURE__ */ import_react.default.createElement(
|
|
67
|
+
import_antd.Button,
|
|
68
|
+
{
|
|
69
|
+
type: "default",
|
|
70
|
+
onClick: () => handleSettings(method)
|
|
71
|
+
},
|
|
72
|
+
import_utils.locales.getText("auth.button.settings")
|
|
73
|
+
)))));
|
|
74
|
+
};
|
|
75
|
+
var SettingList_default = SettingList;
|