@pisell/private-materials 6.3.37 → 6.3.39

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.
Files changed (287) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +13 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  12. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  13. package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
  14. package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  15. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  16. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
  17. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  18. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  19. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
  20. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  21. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
  22. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  23. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
  24. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  25. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
  26. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  27. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
  28. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  29. package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
  30. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  31. package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
  32. package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  33. package/es/components/authentication/admin/AuthMethods/index.js +233 -0
  34. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  35. package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
  36. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  37. package/es/components/authentication/admin/AuthMethods/types.js +23 -0
  38. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  39. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  40. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
  41. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  42. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
  43. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  44. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
  45. package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  46. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  47. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
  55. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  56. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  57. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  58. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
  59. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  60. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
  61. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  62. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
  63. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  64. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  65. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
  66. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  67. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
  68. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  69. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
  70. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  71. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
  72. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  73. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  74. package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
  75. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  76. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
  77. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  78. package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
  79. package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  80. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  81. package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
  82. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  83. package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
  84. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  85. package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
  86. package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  87. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  88. package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
  89. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  90. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
  91. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  92. package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
  93. package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  94. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  95. package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
  96. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  97. package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
  98. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  99. package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
  100. package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  101. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  102. package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
  103. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  104. package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
  105. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  106. package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
  107. package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  108. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  109. package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
  110. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  111. package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
  112. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  113. package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
  114. package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  115. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  116. package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
  117. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  118. package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
  119. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  120. package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
  121. package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  122. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  123. package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
  124. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  125. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
  126. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  127. package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
  128. package/es/components/authentication/admin/index.d.ts +26 -0
  129. package/es/components/authentication/admin/index.js +23 -0
  130. package/es/components/authentication/index.d.ts +0 -0
  131. package/es/components/authentication/index.js +0 -0
  132. package/es/components/booking/components/customSelect/index.js +6 -2
  133. package/es/components/booking/components/footer/utils.js +1 -1
  134. package/es/components/index.d.ts +2 -1
  135. package/es/components/index.js +2 -1
  136. package/es/components/pay/toC/index.js +28 -23
  137. package/es/components/pay/toC/status.d.ts +1 -0
  138. package/es/components/pay/toC/status.js +3 -0
  139. package/es/index.d.ts +2 -0
  140. package/es/index.js +1 -0
  141. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  142. package/es/pro/pisellPaymentList/example.js +434 -0
  143. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  144. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  145. package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
  146. package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  147. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  148. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
  149. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  150. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  151. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
  152. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  153. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
  154. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  155. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
  156. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  157. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
  158. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  159. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
  160. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  161. package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
  162. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  163. package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
  164. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  165. package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
  166. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  167. package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
  168. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  169. package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
  170. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  171. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  172. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
  173. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  174. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
  175. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  176. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
  177. package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  178. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  179. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  180. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
  181. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  182. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
  183. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  184. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
  185. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  186. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
  187. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  188. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  189. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  190. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
  191. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  192. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
  193. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  194. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
  195. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  196. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  197. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
  198. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  199. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
  200. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  201. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
  202. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  203. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
  204. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  205. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  206. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
  207. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  208. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
  209. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  210. package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
  211. package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  212. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  213. package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
  214. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  215. package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
  216. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  217. package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
  218. package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  219. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  220. package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
  221. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  222. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
  223. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  224. package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
  225. package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  226. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  227. package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
  228. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  229. package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
  230. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  231. package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
  232. package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  233. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  234. package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
  235. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  236. package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
  237. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  238. package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
  239. package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  240. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  241. package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
  242. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  243. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
  244. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  245. package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
  246. package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  247. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  248. package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
  249. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  250. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
  251. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  252. package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
  253. package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  254. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  255. package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
  256. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  257. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
  258. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  259. package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
  260. package/lib/components/authentication/admin/index.d.ts +26 -0
  261. package/lib/components/authentication/admin/index.js +83 -0
  262. package/lib/components/authentication/index.d.ts +0 -0
  263. package/lib/components/authentication/index.js +0 -0
  264. package/lib/components/booking/components/customSelect/index.js +6 -2
  265. package/lib/components/booking/components/footer/utils.js +1 -1
  266. package/lib/components/index.d.ts +2 -1
  267. package/lib/components/index.js +19 -0
  268. package/lib/components/pay/toC/index.js +12 -2
  269. package/lib/components/pay/toC/status.d.ts +1 -0
  270. package/lib/components/pay/toC/status.js +5 -0
  271. package/lib/index.d.ts +2 -0
  272. package/lib/index.js +19 -0
  273. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  274. package/lib/pro/pisellPaymentList/example.js +416 -0
  275. package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
  276. package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
  277. package/lowcode/admin-auth-device-auth/meta.ts +30 -0
  278. package/lowcode/admin-auth-methods/meta.ts +385 -0
  279. package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
  280. package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
  281. package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
  282. package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
  283. package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
  284. package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
  285. package/lowcode/admin-setting-list/meta.ts +125 -0
  286. package/lowcode/pro-register/meta.ts +385 -0
  287. package/package.json +3 -3
@@ -0,0 +1,481 @@
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/SaaSAdminAuth/index.tsx
30
+ var SaaSAdminAuth_exports = {};
31
+ __export(SaaSAdminAuth_exports, {
32
+ default: () => SaaSAdminAuth_default
33
+ });
34
+ module.exports = __toCommonJS(SaaSAdminAuth_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_utils = require("@pisell/utils");
38
+ var import_AuthMethods = __toESM(require("../AuthMethods"));
39
+ var import_AuthMethods2 = require("../AuthMethods");
40
+ var import_SettingsDrawer = __toESM(require("../AuthMethods/SettingsDrawer"));
41
+ var import_constants = require("../AuthMethods/constants");
42
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
43
+ var import_locales = __toESM(require("./locales"));
44
+ var import_SaaSAdminAuth = require("./SaaSAdminAuth.less");
45
+ var { Title, Paragraph } = import_antd.Typography;
46
+ var getSaaSAdminAuthMethods = () => {
47
+ const methods = (0, import_constants.getDefaultAuthMethods)();
48
+ return methods.filter((m) => m.id === "email");
49
+ };
50
+ var convertApiDataToComponent = (apiData) => {
51
+ const methodsArray = Object.entries(apiData.method).map(([key, value]) => ({
52
+ key,
53
+ sort: value.sort,
54
+ enabled: value.enabled,
55
+ setting: value.setting
56
+ })).filter((m) => m.key === "email");
57
+ methodsArray.sort((a, b) => a.sort - b.sort);
58
+ const authMethods = [];
59
+ const settingsMap = {};
60
+ methodsArray.forEach(({ key, enabled, setting }) => {
61
+ if (key === "email") {
62
+ const loginMethodsArray = Object.entries(setting.login_method).map(([methodKey, methodValue]) => ({
63
+ methodKey,
64
+ enabled: methodValue.enabled,
65
+ sort: methodValue.sort
66
+ }));
67
+ loginMethodsArray.sort((a, b) => a.sort - b.sort);
68
+ const loginMethods = loginMethodsArray.map(({ methodKey, enabled: enabled2 }) => {
69
+ const methodMap = {
70
+ password: {
71
+ id: "password",
72
+ title: import_utils.locales.getText("auth.login.method.password.title") || "Password",
73
+ description: import_utils.locales.getText("auth.login.method.password.email.description") || "Log in using email and password"
74
+ }
75
+ // link: {
76
+ // id: 'magic-link',
77
+ // title: locales.getText('auth.login.method.magic-link.title') || 'Magic Link',
78
+ // description: locales.getText('auth.login.method.magic-link.description') || 'Send a magic link to email',
79
+ // },
80
+ // code: {
81
+ // id: 'verification-code',
82
+ // title: locales.getText('auth.login.method.verification-code.title') || 'Verification Code',
83
+ // description: locales.getText('auth.login.method.verification-code.description') || 'Send a verification code to email',
84
+ // },
85
+ };
86
+ const method = methodMap[methodKey];
87
+ return {
88
+ id: method.id,
89
+ title: method.title,
90
+ description: method.description,
91
+ enabled: enabled2
92
+ };
93
+ });
94
+ const emailMethod = getSaaSAdminAuthMethods().find((m) => m.id === "email");
95
+ authMethods.push({
96
+ ...emailMethod,
97
+ enabled
98
+ });
99
+ settingsMap["email"] = {
100
+ enableRegistration: setting.register_enabled,
101
+ verificationType: setting.register_method,
102
+ loginMethods
103
+ };
104
+ } else if (key === "phone") {
105
+ const loginMethodsArray = Object.entries(setting.login_method).map(([methodKey, methodValue]) => ({
106
+ methodKey,
107
+ enabled: methodValue.enabled,
108
+ sort: methodValue.sort
109
+ }));
110
+ loginMethodsArray.sort((a, b) => a.sort - b.sort);
111
+ const loginMethods = loginMethodsArray.map(({ methodKey, enabled: enabled2 }) => {
112
+ const methodMap = {
113
+ password: {
114
+ id: "password",
115
+ title: import_utils.locales.getText("auth.login.method.password.title") || "Password",
116
+ description: import_utils.locales.getText("auth.login.method.password.phone.description") || "Log in using phone and password"
117
+ },
118
+ code: {
119
+ id: "sms",
120
+ title: import_utils.locales.getText("auth.login.method.sms.title") || "SMS Code",
121
+ description: import_utils.locales.getText("auth.login.method.sms.description") || "Send a verification code via SMS"
122
+ }
123
+ };
124
+ const method = methodMap[methodKey];
125
+ return {
126
+ id: method.id,
127
+ title: method.title,
128
+ description: method.description,
129
+ enabled: enabled2
130
+ };
131
+ });
132
+ const phoneMethod = getSaaSAdminAuthMethods().find((m) => m.id === "phone");
133
+ authMethods.push({
134
+ ...phoneMethod,
135
+ enabled
136
+ });
137
+ settingsMap["phone"] = {
138
+ enableRegistration: setting.register_enabled,
139
+ verificationType: "sms",
140
+ loginMethods
141
+ };
142
+ } else {
143
+ const oauthMethod = getSaaSAdminAuthMethods().find((m) => m.id === key);
144
+ if (oauthMethod) {
145
+ authMethods.push({
146
+ ...oauthMethod,
147
+ enabled
148
+ });
149
+ }
150
+ }
151
+ });
152
+ const passwordSettings = {
153
+ minLength: apiData.password.min_length,
154
+ requireUppercase: apiData.password.require_uppercase_letters,
155
+ requireLowercase: apiData.password.require_lowercase_letters,
156
+ requireNumbers: apiData.password.require_numbers,
157
+ requireSpecialChars: apiData.password.require_special_characters
158
+ };
159
+ const finalAuthMethods = [...authMethods];
160
+ getSaaSAdminAuthMethods().forEach((defaultMethod) => {
161
+ const exists = authMethods.some((m) => m.id === defaultMethod.id);
162
+ if (!exists) {
163
+ finalAuthMethods.push({
164
+ ...defaultMethod,
165
+ enabled: false
166
+ });
167
+ }
168
+ });
169
+ return { authMethods: finalAuthMethods, settingsMap, passwordSettings };
170
+ };
171
+ var convertComponentDataToApi = (authMethods, settingsMap, passwordSettings) => {
172
+ console.log("convertComponentDataToApi 被调用");
173
+ console.log("authMethods:", authMethods);
174
+ console.log("settingsMap:", settingsMap);
175
+ const method = {};
176
+ authMethods.forEach((authMethod, index) => {
177
+ console.log(`处理 authMethod: ${authMethod.id}, index: ${index}`);
178
+ if (authMethod.id === "email") {
179
+ const emailSettings = settingsMap["email"];
180
+ console.log("email settings:", emailSettings);
181
+ if (emailSettings) {
182
+ const loginMethod = {};
183
+ emailSettings.loginMethods.forEach((loginMethodItem, loginIndex) => {
184
+ const methodKeyMap = {
185
+ "password": "password",
186
+ "magic-link": "link",
187
+ "verification-code": "code"
188
+ };
189
+ const apiKey = methodKeyMap[loginMethodItem.id];
190
+ loginMethod[apiKey] = {
191
+ enabled: loginMethodItem.enabled,
192
+ sort: loginIndex + 1
193
+ };
194
+ });
195
+ method["email"] = {
196
+ sort: index + 1,
197
+ enabled: authMethod.enabled,
198
+ setting: {
199
+ register_enabled: emailSettings.enableRegistration,
200
+ register_method: emailSettings.verificationType,
201
+ login_method: loginMethod
202
+ }
203
+ };
204
+ console.log("添加了 email 到 method");
205
+ } else {
206
+ console.log("email settings 不存在,跳过");
207
+ }
208
+ } else if (authMethod.id === "phone") {
209
+ const phoneSettings = settingsMap["phone"];
210
+ console.log("phone settings:", phoneSettings);
211
+ if (phoneSettings) {
212
+ const loginMethod = {};
213
+ phoneSettings.loginMethods.forEach((loginMethodItem, loginIndex) => {
214
+ const methodKeyMap = {
215
+ "password": "password",
216
+ "sms": "code"
217
+ };
218
+ const apiKey = methodKeyMap[loginMethodItem.id];
219
+ loginMethod[apiKey] = {
220
+ enabled: loginMethodItem.enabled,
221
+ sort: loginIndex + 1
222
+ };
223
+ });
224
+ method["phone"] = {
225
+ sort: index + 1,
226
+ enabled: authMethod.enabled,
227
+ setting: {
228
+ register_enabled: phoneSettings.enableRegistration,
229
+ register_method: "code",
230
+ login_method: loginMethod
231
+ }
232
+ };
233
+ console.log("添加了 phone 到 method");
234
+ } else {
235
+ console.log("phone settings 不存在,跳过");
236
+ }
237
+ } else {
238
+ console.log(`OAuth method: ${authMethod.id}`);
239
+ method[authMethod.id] = {
240
+ sort: index + 1,
241
+ enabled: authMethod.enabled,
242
+ setting: {
243
+ register_enabled: false,
244
+ register_method: "",
245
+ login_method: {}
246
+ }
247
+ };
248
+ console.log(`添加了 ${authMethod.id} 到 method`);
249
+ }
250
+ });
251
+ console.log("最终的 method 对象:", method);
252
+ return {
253
+ method,
254
+ password: {
255
+ min_length: passwordSettings.minLength,
256
+ require_uppercase_letters: passwordSettings.requireUppercase,
257
+ require_lowercase_letters: passwordSettings.requireLowercase,
258
+ require_numbers: passwordSettings.requireNumbers,
259
+ require_special_characters: passwordSettings.requireSpecialChars
260
+ }
261
+ };
262
+ };
263
+ var SaaSAdminAuth = ({ className, style, onSave }) => {
264
+ const context = (0, import_useEngineContext.default)();
265
+ const app = context.appHelper.utils.getApp();
266
+ const { request, data } = context.appHelper.utils.getApp();
267
+ const dataKey = "auth.account";
268
+ const [tenantId, setTenantId] = (0, import_react.useState)(null);
269
+ const [loading, setLoading] = (0, import_react.useState)(true);
270
+ const [authMethods, setAuthMethods] = (0, import_react.useState)([]);
271
+ const [settingsMap, setSettingsMap] = (0, import_react.useState)({});
272
+ const [passwordSettings, setPasswordSettings] = (0, import_react.useState)({
273
+ minLength: 8,
274
+ requireUppercase: false,
275
+ requireLowercase: false,
276
+ requireNumbers: false,
277
+ requireSpecialChars: false
278
+ });
279
+ const [localesInitialized, setLocalesInitialized] = (0, import_react.useState)(false);
280
+ (0, import_react.useEffect)(() => {
281
+ var _a, _b;
282
+ console.log("app_init_saas_admin_auth", app, context, data.storage);
283
+ 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");
284
+ setLocalesInitialized(true);
285
+ }, []);
286
+ (0, import_react.useEffect)(() => {
287
+ var _a;
288
+ const coreData = data.storage.getStorage("core");
289
+ if (coreData) {
290
+ try {
291
+ const coreDataJson = JSON.parse(coreData);
292
+ if ((_a = coreDataJson == null ? void 0 : coreDataJson.tenant) == null ? void 0 : _a.id) {
293
+ setTenantId(coreDataJson.tenant.id);
294
+ }
295
+ } catch (error) {
296
+ console.error("Error parsing core data:", error);
297
+ }
298
+ }
299
+ }, [data.storage]);
300
+ (0, import_react.useEffect)(() => {
301
+ if (tenantId) {
302
+ setLoading(true);
303
+ request.get(`/tenant/core/meta?key=${dataKey}&metable_type=tenant&metable_id=${tenantId}`).then((res) => {
304
+ var _a, _b;
305
+ console.log("res_saas_admin_auth_methods", res);
306
+ if ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.length) {
307
+ const data2 = (_b = res.data[0]) == null ? void 0 : _b.value;
308
+ const { authMethods: convertedAuthMethods, settingsMap: convertedSettingsMap, passwordSettings: convertedPasswordSettings } = convertApiDataToComponent(data2);
309
+ setAuthMethods(convertedAuthMethods);
310
+ setSettingsMap(convertedSettingsMap);
311
+ setPasswordSettings(convertedPasswordSettings);
312
+ console.log("Converted data:", { convertedAuthMethods, convertedSettingsMap, convertedPasswordSettings });
313
+ } else {
314
+ setAuthMethods(getSaaSAdminAuthMethods());
315
+ }
316
+ setLoading(false);
317
+ }).catch((error) => {
318
+ console.error("Error fetching tenant data:", error);
319
+ setAuthMethods(getSaaSAdminAuthMethods());
320
+ setLoading(false);
321
+ });
322
+ }
323
+ }, [tenantId, request]);
324
+ const [drawerOpen, setDrawerOpen] = (0, import_react.useState)(false);
325
+ const [selectedMethod, setSelectedMethod] = (0, import_react.useState)(null);
326
+ const handleAuthMethodsOrderChange = (methods) => {
327
+ setAuthMethods(methods);
328
+ };
329
+ const handleAuthMethodToggle = (method, enabled) => {
330
+ console.log("Auth method toggled:", method.id, enabled);
331
+ setAuthMethods(
332
+ (prevMethods) => prevMethods.map(
333
+ (m) => m.id === method.id ? { ...m, enabled } : m
334
+ )
335
+ );
336
+ };
337
+ const handleAuthMethodSettings = (method) => {
338
+ setSelectedMethod(method);
339
+ setDrawerOpen(true);
340
+ };
341
+ const handlePasswordSettings = (method) => {
342
+ setSelectedMethod(method);
343
+ setDrawerOpen(true);
344
+ };
345
+ const handleConfigClick = (method) => {
346
+ console.log("Config link clicked:", method.id);
347
+ };
348
+ const handleDrawerClose = () => {
349
+ setDrawerOpen(false);
350
+ setSelectedMethod(null);
351
+ };
352
+ const saveToApi = (currentAuthMethods, currentSettingsMap, currentPasswordSettings) => {
353
+ console.log("=== 开始保存到接口 ===");
354
+ console.log("authMethods:", currentAuthMethods);
355
+ console.log("settingsMap:", currentSettingsMap);
356
+ const completeSettingsMap = { ...currentSettingsMap };
357
+ currentAuthMethods.forEach((method) => {
358
+ console.log(`检查 method: ${method.id}, 当前有设置: ${!!completeSettingsMap[method.id]}`);
359
+ if (!completeSettingsMap[method.id]) {
360
+ if (method.id === "email") {
361
+ console.log("添加 email 默认设置");
362
+ completeSettingsMap["email"] = {
363
+ enableRegistration: true,
364
+ verificationType: "link",
365
+ loginMethods: [
366
+ {
367
+ id: "password",
368
+ title: import_utils.locales.getText("auth.login.method.password.title") || "Password",
369
+ description: import_utils.locales.getText("auth.login.method.password.email.description") || "Log in using email and password",
370
+ enabled: true
371
+ }
372
+ // {
373
+ // id: 'magic-link',
374
+ // title: locales.getText('auth.login.method.magic-link.title') || 'Magic Link',
375
+ // description: locales.getText('auth.login.method.magic-link.description') || 'Send a magic link to email',
376
+ // enabled: true
377
+ // },
378
+ // {
379
+ // id: 'verification-code',
380
+ // title: locales.getText('auth.login.method.verification-code.title') || 'Verification Code',
381
+ // description: locales.getText('auth.login.method.verification-code.description') || 'Send a verification code to email',
382
+ // enabled: false
383
+ // },
384
+ ]
385
+ };
386
+ } else if (method.id === "phone") {
387
+ console.log("添加 phone 默认设置");
388
+ completeSettingsMap["phone"] = {
389
+ enableRegistration: true,
390
+ verificationType: "sms",
391
+ loginMethods: [
392
+ {
393
+ id: "password",
394
+ title: import_utils.locales.getText("auth.login.method.password.title") || "Password",
395
+ description: import_utils.locales.getText("auth.login.method.password.phone.description") || "Log in using phone and password",
396
+ enabled: true
397
+ },
398
+ {
399
+ id: "sms",
400
+ title: import_utils.locales.getText("auth.login.method.sms.title") || "SMS Code",
401
+ description: import_utils.locales.getText("auth.login.method.sms.description") || "Send a verification code via SMS",
402
+ enabled: true
403
+ }
404
+ ]
405
+ };
406
+ }
407
+ }
408
+ });
409
+ console.log("完整的 settingsMap:", completeSettingsMap);
410
+ const apiData = convertComponentDataToApi(currentAuthMethods, completeSettingsMap, currentPasswordSettings);
411
+ console.log("=== 保存的接口数据 ===");
412
+ console.log(JSON.stringify(apiData, null, 2));
413
+ onSave == null ? void 0 : onSave(currentAuthMethods, {});
414
+ request.post(`/tenant/core/meta/tenant/${tenantId}`, {
415
+ [dataKey]: apiData
416
+ }).then((res) => {
417
+ console.log("res_saas_admin_auth_save", res);
418
+ import_antd.message.success(import_utils.locales.getText("auth.save.success") || "保存成功");
419
+ }).catch((error) => {
420
+ console.error("Error saving tenant data:", error);
421
+ import_antd.message.error(import_utils.locales.getText("auth.save.error") || "保存失败");
422
+ });
423
+ };
424
+ const handleSettingsSave = (settings) => {
425
+ console.log("Settings saved:", settings);
426
+ let updatedSettingsMap = { ...settingsMap };
427
+ let updatedPasswordSettings = { ...passwordSettings };
428
+ if (selectedMethod) {
429
+ if (selectedMethod.id === "email") {
430
+ updatedSettingsMap = {
431
+ ...updatedSettingsMap,
432
+ email: settings
433
+ };
434
+ setSettingsMap(updatedSettingsMap);
435
+ } else if (selectedMethod.id === "phone") {
436
+ updatedSettingsMap = {
437
+ ...updatedSettingsMap,
438
+ phone: settings
439
+ };
440
+ setSettingsMap(updatedSettingsMap);
441
+ } else if (selectedMethod.id === "admin_password_rules") {
442
+ updatedPasswordSettings = settings;
443
+ setPasswordSettings(updatedPasswordSettings);
444
+ }
445
+ }
446
+ saveToApi(authMethods, updatedSettingsMap, updatedPasswordSettings);
447
+ };
448
+ const handleSave = () => {
449
+ saveToApi(authMethods, settingsMap, passwordSettings);
450
+ };
451
+ if (loading) {
452
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `saas-admin-auth ${className || ""}`, style: { ...style, display: "flex", justifyContent: "center", alignItems: "center", minHeight: "400px" } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { size: "large" }));
453
+ }
454
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `saas-admin-auth ${className || ""}`, style }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 1, className: "saas-admin-auth-title" }, import_utils.locales.getText("saas.admin.auth.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "saas-admin-auth-description" }, import_utils.locales.getText("saas.admin.auth.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-section-layout" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-section-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 2, className: "saas-admin-auth-section-title" }, import_utils.locales.getText("saas.admin.auth.methods.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "saas-admin-auth-section-description" }, import_utils.locales.getText("saas.admin.auth.methods.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-section-content" }, /* @__PURE__ */ import_react.default.createElement(
455
+ import_AuthMethods.default,
456
+ {
457
+ methods: authMethods,
458
+ onOrderChange: handleAuthMethodsOrderChange,
459
+ onToggle: handleAuthMethodToggle,
460
+ onSettings: handleAuthMethodSettings,
461
+ onConfigClick: handleConfigClick
462
+ }
463
+ )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-section-layout" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-section-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 2, className: "saas-admin-auth-section-title" }, import_utils.locales.getText("saas.admin.password.settings.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "saas-admin-auth-section-description" }, import_utils.locales.getText("saas.admin.password.settings.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-section-content" }, /* @__PURE__ */ import_react.default.createElement(
464
+ import_AuthMethods2.SettingList,
465
+ {
466
+ methods: (0, import_constants.getPasswordRulesSetting)("admin_password_rules"),
467
+ onSettings: handlePasswordSettings
468
+ }
469
+ )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-admin-auth-footer" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", size: "large", onClick: handleSave }, import_utils.locales.getText("auth.button.save"))), /* @__PURE__ */ import_react.default.createElement(
470
+ import_SettingsDrawer.default,
471
+ {
472
+ open: drawerOpen,
473
+ method: selectedMethod,
474
+ onClose: handleDrawerClose,
475
+ onSave: handleSettingsSave,
476
+ mode: "auth-methods",
477
+ initialSettings: selectedMethod ? selectedMethod.id === "admin_password_rules" ? passwordSettings : settingsMap[selectedMethod.id] : void 0
478
+ }
479
+ ));
480
+ };
481
+ var SaaSAdminAuth_default = SaaSAdminAuth;
@@ -0,0 +1,54 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'saas.admin.auth.title': string;
4
+ 'saas.admin.auth.description': string;
5
+ 'saas.admin.auth.methods.title': string;
6
+ 'saas.admin.auth.methods.description': string;
7
+ 'saas.admin.password.settings.title': string;
8
+ 'saas.admin.password.settings.description': string;
9
+ 'auth.button.cancel': string;
10
+ 'auth.button.save': string;
11
+ 'auth.button.settings': string;
12
+ 'auth.save.success': string;
13
+ 'auth.save.error': string;
14
+ 'auth.oauth.config.message': string;
15
+ 'auth.oauth.config.link': string;
16
+ 'auth.category.general': string;
17
+ 'auth.category.oauth': string;
18
+ };
19
+ 'zh-CN': {
20
+ 'saas.admin.auth.title': string;
21
+ 'saas.admin.auth.description': string;
22
+ 'saas.admin.auth.methods.title': string;
23
+ 'saas.admin.auth.methods.description': string;
24
+ 'saas.admin.password.settings.title': string;
25
+ 'saas.admin.password.settings.description': string;
26
+ 'auth.button.cancel': string;
27
+ 'auth.button.save': string;
28
+ 'auth.button.settings': string;
29
+ 'auth.save.success': string;
30
+ 'auth.save.error': string;
31
+ 'auth.oauth.config.message': string;
32
+ 'auth.oauth.config.link': string;
33
+ 'auth.category.general': string;
34
+ 'auth.category.oauth': string;
35
+ };
36
+ 'zh-HK': {
37
+ 'saas.admin.auth.title': string;
38
+ 'saas.admin.auth.description': string;
39
+ 'saas.admin.auth.methods.title': string;
40
+ 'saas.admin.auth.methods.description': string;
41
+ 'saas.admin.password.settings.title': string;
42
+ 'saas.admin.password.settings.description': string;
43
+ 'auth.button.cancel': string;
44
+ 'auth.button.save': string;
45
+ 'auth.button.settings': string;
46
+ 'auth.save.success': string;
47
+ 'auth.save.error': string;
48
+ 'auth.oauth.config.message': string;
49
+ 'auth.oauth.config.link': string;
50
+ 'auth.category.general': string;
51
+ 'auth.category.oauth': string;
52
+ };
53
+ };
54
+ export default _default;
@@ -0,0 +1,98 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/authentication/admin/SaaSAdminAuth/locales.ts
20
+ var locales_exports = {};
21
+ __export(locales_exports, {
22
+ default: () => locales_default
23
+ });
24
+ module.exports = __toCommonJS(locales_exports);
25
+ var locales_default = {
26
+ en: {
27
+ // Page title and description
28
+ "saas.admin.auth.title": "SaaS Platform Admin Authentication",
29
+ "saas.admin.auth.description": "Configure authentication methods for your SaaS platform admin portal and other administrative channels.",
30
+ // Auth Methods section
31
+ "saas.admin.auth.methods.title": "Auth Methods",
32
+ "saas.admin.auth.methods.description": "Configure authentication methods that will be available for SaaS platform admins. Drag to reorder by priority.",
33
+ // Password Settings section
34
+ "saas.admin.password.settings.title": "Password Settings",
35
+ "saas.admin.password.settings.description": "Configure password requirements specifically for SaaS platform admin accounts. These rules apply to all platform administrative users.",
36
+ // Buttons
37
+ "auth.button.cancel": "Cancel",
38
+ "auth.button.save": "Save",
39
+ "auth.button.settings": "Settings",
40
+ // Messages
41
+ "auth.save.success": "Settings saved successfully",
42
+ "auth.save.error": "Failed to save settings",
43
+ // OAuth configuration
44
+ "auth.oauth.config.message": "Configure OAuth settings in Auth Configuration page first",
45
+ "auth.oauth.config.link": "click to config",
46
+ // Category badges
47
+ "auth.category.general": "General",
48
+ "auth.category.oauth": "OAuth"
49
+ },
50
+ "zh-CN": {
51
+ // Page title and description
52
+ "saas.admin.auth.title": "SaaS平台管理员认证",
53
+ "saas.admin.auth.description": "为您的SaaS平台管理员门户和其他管理渠道配置认证方法。",
54
+ // Auth Methods section
55
+ "saas.admin.auth.methods.title": "认证方法",
56
+ "saas.admin.auth.methods.description": "配置SaaS平台管理员可用的认证方法。拖动以调整优先级。",
57
+ // Password Settings section
58
+ "saas.admin.password.settings.title": "密码设置",
59
+ "saas.admin.password.settings.description": "专门为SaaS平台管理员账户配置密码要求。这些规则适用于所有平台管理用户。",
60
+ // Buttons
61
+ "auth.button.cancel": "取消",
62
+ "auth.button.save": "保存",
63
+ "auth.button.settings": "设置",
64
+ // Messages
65
+ "auth.save.success": "保存成功",
66
+ "auth.save.error": "保存失败",
67
+ // OAuth configuration
68
+ "auth.oauth.config.message": "请先在OAuth配置页面中配置OAuth设置",
69
+ "auth.oauth.config.link": "点击配置",
70
+ // Category badges
71
+ "auth.category.general": "通用",
72
+ "auth.category.oauth": "OAuth"
73
+ },
74
+ "zh-HK": {
75
+ // Page title and description
76
+ "saas.admin.auth.title": "SaaS平台管理員認證",
77
+ "saas.admin.auth.description": "為您的SaaS平台管理員門戶和其他管理渠道配置認證方法。",
78
+ // Auth Methods section
79
+ "saas.admin.auth.methods.title": "認證方法",
80
+ "saas.admin.auth.methods.description": "配置SaaS平台管理員可用的認證方法。拖動以調整優先級。",
81
+ // Password Settings section
82
+ "saas.admin.password.settings.title": "密碼設置",
83
+ "saas.admin.password.settings.description": "專門為SaaS平台管理員賬戶配置密碼要求。這些規則適用於所有平台管理用戶。",
84
+ // Buttons
85
+ "auth.button.cancel": "取消",
86
+ "auth.button.save": "保存",
87
+ "auth.button.settings": "設置",
88
+ // Messages
89
+ "auth.save.success": "保存成功",
90
+ "auth.save.error": "保存失敗",
91
+ // OAuth configuration
92
+ "auth.oauth.config.message": "請先在OAuth配置頁面中配置OAuth設置",
93
+ "auth.oauth.config.link": "點擊配置",
94
+ // Category badges
95
+ "auth.category.general": "通用",
96
+ "auth.category.oauth": "OAuth"
97
+ }
98
+ };
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { AuthMethod } from '../AuthMethods/types';
3
+ export interface SaaSAdminAuthProps {
4
+ /**
5
+ * 自定义类名
6
+ */
7
+ className?: string;
8
+ /**
9
+ * 自定义样式
10
+ */
11
+ style?: React.CSSProperties;
12
+ /**
13
+ * 保存回调
14
+ */
15
+ onSave?: (authMethods: AuthMethod[], passwordRules: any) => void;
16
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/authentication/admin/SaaSAdminAuth/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);