@pisell/private-materials 6.3.36 → 6.3.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) 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 +10 -29
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  13. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  14. package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
  15. package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  16. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  17. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
  18. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  19. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  20. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
  21. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  22. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
  23. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  24. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
  25. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  26. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
  27. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  28. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
  29. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  30. package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
  31. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  32. package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
  33. package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  34. package/es/components/authentication/admin/AuthMethods/index.js +233 -0
  35. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  36. package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
  37. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  38. package/es/components/authentication/admin/AuthMethods/types.js +23 -0
  39. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  40. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  41. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
  42. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  43. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
  44. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  45. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
  46. package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  47. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  55. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
  56. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  57. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  58. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  59. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
  60. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  61. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
  62. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  63. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
  64. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  65. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  66. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
  67. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  68. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
  69. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  70. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
  71. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  72. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
  73. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  74. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  75. package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
  76. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  77. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
  78. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  79. package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
  80. package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  81. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  82. package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
  83. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  84. package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
  85. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  86. package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
  87. package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  88. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  89. package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
  90. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  91. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
  92. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  93. package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
  94. package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  95. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  96. package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
  97. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  98. package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
  99. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  100. package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
  101. package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  102. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  103. package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
  104. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  105. package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
  106. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  107. package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
  108. package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  109. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  110. package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
  111. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  112. package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
  113. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  114. package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
  115. package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  116. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  117. package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
  118. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  119. package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
  120. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  121. package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
  122. package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  123. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  124. package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
  125. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  126. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
  127. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  128. package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
  129. package/es/components/authentication/admin/index.d.ts +26 -0
  130. package/es/components/authentication/admin/index.js +23 -0
  131. package/es/components/authentication/index.d.ts +0 -0
  132. package/es/components/authentication/index.js +0 -0
  133. package/es/components/booking/components/customSelect/index.js +6 -2
  134. package/es/components/booking/components/footer/utils.js +1 -1
  135. package/es/components/booking/info/service2/utils.d.ts +1 -1
  136. package/es/components/booking/utils.d.ts +2 -2
  137. package/es/components/eftposPay/amount.d.ts +1 -1
  138. package/es/components/eftposPay/device.d.ts +1 -1
  139. package/es/components/eftposPay/hooks.d.ts +2 -2
  140. package/es/components/eftposPay/store/index.d.ts +6 -6
  141. package/es/components/index.d.ts +2 -1
  142. package/es/components/index.js +2 -1
  143. package/es/components/pay/toC/index.js +19 -14
  144. package/es/components/pay/toC/status.d.ts +1 -0
  145. package/es/components/pay/toC/status.js +3 -0
  146. package/es/index.d.ts +2 -0
  147. package/es/index.js +1 -0
  148. package/es/pro/Login2.0/Login2.js +78 -27
  149. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  150. package/es/pro/pisellPaymentList/example.js +434 -0
  151. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  152. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  153. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  154. package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
  155. package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  156. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  157. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
  158. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  159. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  160. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
  161. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  162. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
  163. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  164. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
  165. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  166. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
  167. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  168. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
  169. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  170. package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
  171. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  172. package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
  173. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  174. package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
  175. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  176. package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
  177. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  178. package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
  179. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  180. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  181. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
  182. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  183. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
  184. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  185. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
  186. package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  187. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  188. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  189. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
  190. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  191. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
  192. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  193. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
  194. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  195. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
  196. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  197. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  198. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  199. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
  200. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  201. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
  202. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  203. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
  204. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  205. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  206. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
  207. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  208. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
  209. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  210. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
  211. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  212. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
  213. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  214. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  215. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
  216. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  217. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
  218. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  219. package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
  220. package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  221. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  222. package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
  223. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  224. package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
  225. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  226. package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
  227. package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  228. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  229. package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
  230. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  231. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
  232. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  233. package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
  234. package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  235. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  236. package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
  237. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  238. package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
  239. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  240. package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
  241. package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  242. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  243. package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
  244. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  245. package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
  246. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  247. package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
  248. package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  249. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  250. package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
  251. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  252. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
  253. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  254. package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
  255. package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  256. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  257. package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
  258. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  259. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
  260. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  261. package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
  262. package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  263. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  264. package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
  265. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  266. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
  267. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  268. package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
  269. package/lib/components/authentication/admin/index.d.ts +26 -0
  270. package/lib/components/authentication/admin/index.js +83 -0
  271. package/lib/components/authentication/index.d.ts +0 -0
  272. package/lib/components/authentication/index.js +0 -0
  273. package/lib/components/booking/components/customSelect/index.js +6 -2
  274. package/lib/components/booking/components/footer/utils.js +1 -1
  275. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  276. package/lib/components/booking/utils.d.ts +2 -2
  277. package/lib/components/eftposPay/amount.d.ts +1 -1
  278. package/lib/components/eftposPay/device.d.ts +1 -1
  279. package/lib/components/eftposPay/hooks.d.ts +2 -2
  280. package/lib/components/eftposPay/store/index.d.ts +6 -6
  281. package/lib/components/index.d.ts +2 -1
  282. package/lib/components/index.js +19 -0
  283. package/lib/components/pay/toC/index.js +10 -2
  284. package/lib/components/pay/toC/status.d.ts +1 -0
  285. package/lib/components/pay/toC/status.js +5 -0
  286. package/lib/index.d.ts +2 -0
  287. package/lib/index.js +19 -0
  288. package/lib/pro/Login2.0/Login2.js +86 -23
  289. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  290. package/lib/pro/pisellPaymentList/example.js +416 -0
  291. package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
  292. package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
  293. package/lowcode/admin-auth-device-auth/meta.ts +30 -0
  294. package/lowcode/admin-auth-methods/meta.ts +385 -0
  295. package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
  296. package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
  297. package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
  298. package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
  299. package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
  300. package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
  301. package/lowcode/admin-setting-list/meta.ts +125 -0
  302. package/lowcode/pro-register/meta.ts +385 -0
  303. package/package.json +2 -2
@@ -0,0 +1,74 @@
1
+ export default {
2
+ en: {
3
+ // Page title and description
4
+ 'saas.admin.auth.title': 'SaaS Platform Admin Authentication',
5
+ 'saas.admin.auth.description': 'Configure authentication methods for your SaaS platform admin portal and other administrative channels.',
6
+ // Auth Methods section
7
+ 'saas.admin.auth.methods.title': 'Auth Methods',
8
+ 'saas.admin.auth.methods.description': 'Configure authentication methods that will be available for SaaS platform admins. Drag to reorder by priority.',
9
+ // Password Settings section
10
+ 'saas.admin.password.settings.title': 'Password Settings',
11
+ 'saas.admin.password.settings.description': 'Configure password requirements specifically for SaaS platform admin accounts. These rules apply to all platform administrative users.',
12
+ // Buttons
13
+ 'auth.button.cancel': 'Cancel',
14
+ 'auth.button.save': 'Save',
15
+ 'auth.button.settings': 'Settings',
16
+ // Messages
17
+ 'auth.save.success': 'Settings saved successfully',
18
+ 'auth.save.error': 'Failed to save settings',
19
+ // OAuth configuration
20
+ 'auth.oauth.config.message': 'Configure OAuth settings in Auth Configuration page first',
21
+ 'auth.oauth.config.link': 'click to config',
22
+ // Category badges
23
+ 'auth.category.general': 'General',
24
+ 'auth.category.oauth': 'OAuth'
25
+ },
26
+ 'zh-CN': {
27
+ // Page title and description
28
+ 'saas.admin.auth.title': 'SaaS平台管理员认证',
29
+ 'saas.admin.auth.description': '为您的SaaS平台管理员门户和其他管理渠道配置认证方法。',
30
+ // Auth Methods section
31
+ 'saas.admin.auth.methods.title': '认证方法',
32
+ 'saas.admin.auth.methods.description': '配置SaaS平台管理员可用的认证方法。拖动以调整优先级。',
33
+ // Password Settings section
34
+ 'saas.admin.password.settings.title': '密码设置',
35
+ 'saas.admin.password.settings.description': '专门为SaaS平台管理员账户配置密码要求。这些规则适用于所有平台管理用户。',
36
+ // Buttons
37
+ 'auth.button.cancel': '取消',
38
+ 'auth.button.save': '保存',
39
+ 'auth.button.settings': '设置',
40
+ // Messages
41
+ 'auth.save.success': '保存成功',
42
+ 'auth.save.error': '保存失败',
43
+ // OAuth configuration
44
+ 'auth.oauth.config.message': '请先在OAuth配置页面中配置OAuth设置',
45
+ 'auth.oauth.config.link': '点击配置',
46
+ // Category badges
47
+ 'auth.category.general': '通用',
48
+ 'auth.category.oauth': 'OAuth'
49
+ },
50
+ 'zh-HK': {
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
+ };
@@ -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,26 @@
1
+ export type { AuthMethodsProps, AuthMethod } from './AuthMethods';
2
+ export { AuthMethodType, AuthMethodCategory } from './AuthMethods';
3
+ export { default as ChannelAuthSetting } from './ChannelAuthSetting';
4
+ export type { ChannelAuthSettingProps, ChannelAuthSettingValue, TabKey } from './ChannelAuthSetting';
5
+ export { default as PageSetting } from './ChannelAuthSetting/PageSetting';
6
+ export { default as PageSettingItem } from './ChannelAuthSetting/PageSettingItem';
7
+ export { default as AuthenticationMethods } from './ChannelAuthSetting/AuthenticationMethods';
8
+ export { default as CollectInfo } from './ChannelAuthSetting/CollectInfo';
9
+ export type { PageSettingProps, PageSettingValue, } from './ChannelAuthSetting/PageSetting/types';
10
+ export type { PageSettingItemProps, PageSettingItemValue, TermsCondition, TranslationValue as PageTranslationValue, } from './ChannelAuthSetting/PageSettingItem/types';
11
+ export type { AuthenticationMethodsProps, AuthenticationMethodsValue, GlobalAuthMethod, AuthenticationMethod, AuthenticationSettingsMode, } from './ChannelAuthSetting/AuthenticationMethods/types';
12
+ export type { CollectInfoProps, CollectInfoValue, AccountField, CustomerFormItem, TranslationValue as CollectInfoTranslationValue, } from './ChannelAuthSetting/CollectInfo/types';
13
+ export type { SaaSAdminAuthProps } from './SaaSAdminAuth';
14
+ export type { OrgAdminAuthProps } from './OrgAdminAuth';
15
+ export type { DeviceAuthProps } from './DeviceAuth';
16
+ export type { POSOperatorAuthProps } from './POSOperatorAuth';
17
+ export type { CustomerOAuthConfigProps } from './CustomerOAuthConfig';
18
+ export { default as SaaSAdminAuth } from './SaaSAdminAuth';
19
+ export { default as OrgAdminAuth } from './OrgAdminAuth';
20
+ export { default as OAuthConfig } from './OAuthConfig';
21
+ export { default as CustomerAuth } from './CustomerAuth';
22
+ export { default as CustomerOAuthConfig } from './CustomerOAuthConfig';
23
+ export { default as DeviceAuth } from './DeviceAuth';
24
+ export { default as POSOperatorAuth } from './POSOperatorAuth';
25
+ export { default as OnlineShopAuth } from './ChannelAuthSetting/OnlineShopAuth';
26
+ export { default as SaaSManagermentAuth } from './ChannelAuthSetting/SaaSManagermentAuth';
@@ -0,0 +1,23 @@
1
+ // export { default as AuthMethods, SettingList } from './AuthMethods';
2
+
3
+ export { AuthMethodType, AuthMethodCategory } from "./AuthMethods";
4
+
5
+ // ChannelAuthSetting 主组件
6
+ export { default as ChannelAuthSetting } from "./ChannelAuthSetting";
7
+ // ChannelAuthSetting 子组件
8
+ export { default as PageSetting } from "./ChannelAuthSetting/PageSetting";
9
+ export { default as PageSettingItem } from "./ChannelAuthSetting/PageSettingItem";
10
+ export { default as AuthenticationMethods } from "./ChannelAuthSetting/AuthenticationMethods";
11
+ export { default as CollectInfo } from "./ChannelAuthSetting/CollectInfo";
12
+
13
+ // ChannelAuthSetting 类型
14
+
15
+ export { default as SaaSAdminAuth } from "./SaaSAdminAuth";
16
+ export { default as OrgAdminAuth } from "./OrgAdminAuth";
17
+ export { default as OAuthConfig } from "./OAuthConfig";
18
+ export { default as CustomerAuth } from "./CustomerAuth";
19
+ export { default as CustomerOAuthConfig } from "./CustomerOAuthConfig";
20
+ export { default as DeviceAuth } from "./DeviceAuth";
21
+ export { default as POSOperatorAuth } from "./POSOperatorAuth";
22
+ export { default as OnlineShopAuth } from "./ChannelAuthSetting/OnlineShopAuth";
23
+ export { default as SaaSManagermentAuth } from "./ChannelAuthSetting/SaaSManagermentAuth";
File without changes
File without changes
@@ -281,8 +281,12 @@ var CustomSelect = function CustomSelect(props, ref) {
281
281
  return allKeys.some(function (k) {
282
282
  var val = item[k];
283
283
  if (val === null || val === undefined) return false;
284
- var str = String(val).toLowerCase();
285
- return str.includes(q);
284
+ try {
285
+ var str = JSON.stringify(val);
286
+ return str.includes(q) || str.toLocaleLowerCase().includes(q);
287
+ } catch (error) {
288
+ return false;
289
+ }
286
290
  });
287
291
  } catch (e) {
288
292
  return false;
@@ -455,7 +455,7 @@ var formatBookings = function formatBookings(data, values) {
455
455
  var eventOtherParams = data.eventOtherParams;
456
456
  var bookings = [];
457
457
  var obj = {};
458
- list.forEach(function (item, index) {
458
+ list.forEach(function (item) {
459
459
  var _item$_extend25;
460
460
  var start_date = item._extend.startDate.format('YYYY-MM-DD');
461
461
  var end_date = item._extend.endDate.format('YYYY-MM-DD');
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
244
244
  * @Author: WangHan
245
245
  * @Date: 2024-12-24 11:32
246
246
  */
247
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
247
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "warn" | "success" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
300
+ eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -18,4 +18,5 @@ import EditBookingModal from './booking/editBookingModal';
18
18
  import StepController from './stepController';
19
19
  import PinModal from './pinModal';
20
20
  import PinVerifyModal from './pinVerifyModal';
21
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, };
21
+ import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './authentication/admin';
22
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, };
@@ -18,4 +18,5 @@ import EditBookingModal from "./booking/editBookingModal";
18
18
  import StepController from "./stepController";
19
19
  import PinModal from "./pinModal";
20
20
  import PinVerifyModal from "./pinVerifyModal";
21
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal };
21
+ import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from "./authentication/admin";
22
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth };
@@ -31,6 +31,7 @@ import { request } from "../../../utils";
31
31
  import { removePayGroupFromStorage } from "./payGroup";
32
32
  import localeTexts from "./locales";
33
33
  import { getIsWalletPassAndTripartitePayment } from "./utils";
34
+ import { saleChannelMap } from "./status";
34
35
  import "./index.less";
35
36
  /**
36
37
  * @title: C端支付
@@ -142,11 +143,12 @@ var ToCPay = function ToCPay(props, ref) {
142
143
  while (1) switch (_context.prev = _context.next) {
143
144
  case 0:
144
145
  sale_channel = (initProps === null || initProps === void 0 || (_initProps$order = initProps.order) === null || _initProps$order === void 0 ? void 0 : _initProps$order.sale_channel) || 'online-store';
145
- _context.next = 3;
146
+ sale_channel = saleChannelMap[sale_channel] || sale_channel;
147
+ _context.next = 4;
146
148
  return getWalletNameAndPopupStatus({
147
149
  setting_type: "".concat(sale_channel, "-wallet-setting")
148
150
  });
149
- case 3:
151
+ case 4:
150
152
  _yield$getWalletNameA = _context.sent;
151
153
  wallet = _yield$getWalletNameA.wallet;
152
154
  wallet_setting = _yield$getWalletNameA.wallet_setting;
@@ -164,7 +166,7 @@ var ToCPay = function ToCPay(props, ref) {
164
166
  type: 'setWalletSetting',
165
167
  payload: setting
166
168
  });
167
- case 9:
169
+ case 10:
168
170
  case "end":
169
171
  return _context.stop();
170
172
  }
@@ -261,7 +263,7 @@ var ToCPay = function ToCPay(props, ref) {
261
263
  */
262
264
  var _getPaymentsAndWalletPass = /*#__PURE__*/function () {
263
265
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(order) {
264
- var _state$payGroup2, _paymentListRef$curre, data, _ref4, _ref4$remain_amount, remain_amount, wallet_pass_recommend_list, wallet_pass_amount, payment_list, walletPass;
266
+ var _state$payGroup2, _paymentListRef$curre, data, _ref4, _ref4$remain_amount, remain_amount, wallet_pass_recommend_list, wallet_pass_amount, payment_list, walletPass, withCustomerIdList;
265
267
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
266
268
  while (1) switch (_context3.prev = _context3.next) {
267
269
  case 0:
@@ -286,8 +288,11 @@ var ToCPay = function ToCPay(props, ref) {
286
288
  key: '支付数据获取',
287
289
  value: ""
288
290
  });
289
-
290
- // 设置交易组
291
+ withCustomerIdList = wallet_pass_recommend_list.map(function (item) {
292
+ return _objectSpread(_objectSpread({}, item), {}, {
293
+ customer_id: customer_id || item.customer_id
294
+ });
295
+ }); // 设置交易组
291
296
  dispatch({
292
297
  type: 'setPayGroup',
293
298
  payload: {
@@ -300,7 +305,7 @@ var ToCPay = function ToCPay(props, ref) {
300
305
  // 支付方式没有walletPass时walletPass设置null
301
306
  walletPass: walletPass ? _objectSpread(_objectSpread(_objectSpread({}, (_state$payGroup2 = state.payGroup) === null || _state$payGroup2 === void 0 ? void 0 : _state$payGroup2.walletPass), walletPass), {}, {
302
307
  amount: wallet_pass_amount,
303
- cards: wallet_pass_recommend_list
308
+ cards: withCustomerIdList
304
309
  }) : null,
305
310
  total_amount: order === null || order === void 0 ? void 0 : order.amount,
306
311
  wait_amount: remain_amount
@@ -308,9 +313,9 @@ var ToCPay = function ToCPay(props, ref) {
308
313
  });
309
314
 
310
315
  // 初始化支付列表
311
- _context3.next = 10;
316
+ _context3.next = 11;
312
317
  return (_paymentListRef$curre = paymentListRef.current) === null || _paymentListRef$curre === void 0 ? void 0 : _paymentListRef$curre.init(payment_list);
313
- case 10:
318
+ case 11:
314
319
  // 解除loading
315
320
  setTimeout(function () {
316
321
  setLoading(false);
@@ -321,10 +326,10 @@ var ToCPay = function ToCPay(props, ref) {
321
326
  key: '获取支付列表成功',
322
327
  value: ""
323
328
  });
324
- _context3.next = 20;
329
+ _context3.next = 21;
325
330
  break;
326
- case 14:
327
- _context3.prev = 14;
331
+ case 15:
332
+ _context3.prev = 15;
328
333
  _context3.t0 = _context3["catch"](1);
329
334
  console.log('err', _context3.t0);
330
335
 
@@ -347,11 +352,11 @@ var ToCPay = function ToCPay(props, ref) {
347
352
  fn: '_getPaymentsAndWalletPass'
348
353
  }
349
354
  });
350
- case 20:
355
+ case 21:
351
356
  case "end":
352
357
  return _context3.stop();
353
358
  }
354
- }, _callee3, null, [[1, 14]]);
359
+ }, _callee3, null, [[1, 15]]);
355
360
  }));
356
361
  return function _getPaymentsAndWalletPass(_x3) {
357
362
  return _ref3.apply(this, arguments);
@@ -10,3 +10,4 @@ export declare const paymentKeys: string[];
10
10
  * @Date: 2024-08-30 10:16:26
11
11
  */
12
12
  export declare const isTripartitePayment: (service: string) => boolean;
13
+ export declare const saleChannelMap: Record<string, string>;
@@ -113,4 +113,7 @@ export var paymentKeys = Object.keys(paymentServices);
113
113
  */
114
114
  export var isTripartitePayment = function isTripartitePayment(service) {
115
115
  return tripartitePaymentKeys.includes(service);
116
+ };
117
+ export var saleChannelMap = {
118
+ 'mobile_order': 'mobile-order'
116
119
  };
package/es/index.d.ts CHANGED
@@ -51,6 +51,8 @@ export { default as WalletEditor } from './plus/walletEditor';
51
51
  export { default as WalletPassGallery } from './plus/walletPassGallery';
52
52
  export { default as PinModal } from './components/pinModal';
53
53
  export { default as PinVerifyModal } from './components/pinVerifyModal';
54
+ export { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './components/authentication/admin';
55
+ export type { SaaSAdminAuthProps, OrgAdminAuthProps, DeviceAuthProps, POSOperatorAuthProps, CustomerOAuthConfigProps } from './components/authentication/admin';
54
56
  export { default as ContactInfo } from './plus/contactInfo';
55
57
  export { default as ContactInfoModal } from './plus/contactInfoModal';
56
58
  export { Login2, Register2, AuthModal } from './pro/Login2.0';
package/es/index.js CHANGED
@@ -55,6 +55,7 @@ export { default as WalletEditor } from "./plus/walletEditor";
55
55
  export { default as WalletPassGallery } from "./plus/walletPassGallery";
56
56
  export { default as PinModal } from "./components/pinModal";
57
57
  export { default as PinVerifyModal } from "./components/pinVerifyModal";
58
+ export { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from "./components/authentication/admin";
58
59
  export { default as ContactInfo } from "./plus/contactInfo";
59
60
  export { default as ContactInfoModal } from "./plus/contactInfoModal";
60
61
  export { Login2, Register2, AuthModal } from "./pro/Login2.0";
@@ -117,17 +117,11 @@ var Login2 = function Login2(_ref) {
117
117
  // 初始化 currentLoginMethod(当 loginMethods 变化时)
118
118
  useEffect(function () {
119
119
  if (loginMethods.length > 0 && !currentLoginMethod) {
120
- // 优先选择非OAuth类型的登录方式作为当前激活方式
121
- var nonOAuthMethod = loginMethods.find(function (method) {
122
- return method.type === 'email' || method.type === 'phone';
123
- });
124
- var first = nonOAuthMethod || loginMethods[0];
125
- setCurrentLoginMethod(first);
126
-
127
- // 设置默认验证方式
128
- if (first.type === 'email' || first.type === 'phone') {
129
- var _first$verificationMe;
130
- setCurrentVerificationMethod(((_first$verificationMe = first.verificationMethods) === null || _first$verificationMe === void 0 ? void 0 : _first$verificationMe[0]) || 'password');
120
+ var initialMethod = loginMethods[0];
121
+ setCurrentLoginMethod(initialMethod);
122
+ if ((initialMethod === null || initialMethod === void 0 ? void 0 : initialMethod.type) === 'email' || (initialMethod === null || initialMethod === void 0 ? void 0 : initialMethod.type) === 'phone') {
123
+ var _initialMethod$verifi;
124
+ setCurrentVerificationMethod(((_initialMethod$verifi = initialMethod.verificationMethods) === null || _initialMethod$verifi === void 0 ? void 0 : _initialMethod$verifi[0]) || 'password');
131
125
  }
132
126
  }
133
127
  // 如果只有 guest 登录,则默认直接使用 guest 登录
@@ -1885,14 +1879,18 @@ var Login2 = function Login2(_ref) {
1885
1879
  // 渲染底部切换选项区域
1886
1880
  var renderSwitchOptions = function renderSwitchOptions() {
1887
1881
  if (!currentLoginMethod) return null;
1888
- var nonOauthButtons = [];
1889
- if (currentLoginMethod.type === 'email' || currentLoginMethod.type === 'phone') {
1882
+ var primaryMethod = loginMethods[0];
1883
+ var currentIsFormMethod = currentLoginMethod.type === 'email' || currentLoginMethod.type === 'phone';
1884
+ var primaryIsFormMethod = (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'email' || (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'phone';
1885
+ var shouldUseFormLayout = currentIsFormMethod || primaryIsFormMethod;
1886
+ var verificationSwitchButtons = [];
1887
+ if (currentIsFormMethod) {
1890
1888
  (currentLoginMethod.verificationMethods || []).filter(function (method) {
1891
1889
  return method !== currentVerificationMethod;
1892
1890
  }).forEach(function (method) {
1893
1891
  if (method === 'verification_code') {
1894
1892
  var text = currentLoginMethod.type === 'email' ? locales.getText('pisell-login2-switch-to-email-code') : locales.getText('pisell-login2-switch-to-sms-code');
1895
- nonOauthButtons.push( /*#__PURE__*/React.createElement("button", {
1893
+ verificationSwitchButtons.push( /*#__PURE__*/React.createElement("button", {
1896
1894
  key: "switch-to-code",
1897
1895
  className: "login2-switch-option-button",
1898
1896
  onClick: function onClick() {
@@ -1906,7 +1904,7 @@ var Login2 = function Login2(_ref) {
1906
1904
  className: "option-text"
1907
1905
  }, text)));
1908
1906
  } else {
1909
- nonOauthButtons.push( /*#__PURE__*/React.createElement("button", {
1907
+ verificationSwitchButtons.push( /*#__PURE__*/React.createElement("button", {
1910
1908
  key: "switch-to-password",
1911
1909
  className: "login2-switch-option-button",
1912
1910
  onClick: function onClick() {
@@ -1920,16 +1918,15 @@ var Login2 = function Login2(_ref) {
1920
1918
  }
1921
1919
  });
1922
1920
  }
1921
+ var emailPhoneSwitchButtons = [];
1923
1922
  loginMethods.forEach(function (method, index) {
1924
1923
  if (method.type === 'email' || method.type === 'phone') {
1925
- if (method.type === currentLoginMethod.type) {
1926
- return;
1927
- }
1924
+ if (method.type === currentLoginMethod.type) return;
1928
1925
  var isLast = isLastLoginMethod(method.type);
1929
1926
  var _className = classNames('login2-switch-option-button', {
1930
1927
  'has-last-login-badge': isLast
1931
1928
  });
1932
- nonOauthButtons.push( /*#__PURE__*/React.createElement("button", {
1929
+ emailPhoneSwitchButtons.push( /*#__PURE__*/React.createElement("button", {
1933
1930
  key: "".concat(method.type, "-").concat(index),
1934
1931
  className: _className,
1935
1932
  onClick: function onClick() {
@@ -1944,7 +1941,7 @@ var Login2 = function Login2(_ref) {
1944
1941
  }, method.type === 'email' ? locales.getText('pisell-login2-switch-to-email') : locales.getText('pisell-login2-switch-to-phone'))));
1945
1942
  }
1946
1943
  });
1947
- var showDivider = nonOauthButtons.length > 0 && oauthProviders.length > 0;
1944
+ var nonOauthButtons = [].concat(verificationSwitchButtons, emailPhoneSwitchButtons);
1948
1945
  var registerPrompt = onSwitchToRegister && /*#__PURE__*/React.createElement("div", {
1949
1946
  className: "login2-register-prompt"
1950
1947
  }, /*#__PURE__*/React.createElement("span", {
@@ -1956,18 +1953,72 @@ var Login2 = function Login2(_ref) {
1956
1953
  if (!nonOauthButtons.length && !oauthProviders.length) {
1957
1954
  return registerPrompt;
1958
1955
  }
1959
- return /*#__PURE__*/React.createElement(React.Fragment, null, showDivider && /*#__PURE__*/React.createElement("div", {
1960
- className: "login2-divider"
1961
- }, locales.getText('pisell-login2-or')), (nonOauthButtons.length > 0 || oauthProviders.length > 0) && /*#__PURE__*/React.createElement("div", {
1956
+ if (shouldUseFormLayout) {
1957
+ var groups = [];
1958
+ if (nonOauthButtons.length > 0) {
1959
+ groups.push( /*#__PURE__*/React.createElement("div", {
1960
+ key: "non-oauth",
1961
+ className: "login2-switch-options"
1962
+ }, nonOauthButtons));
1963
+ }
1964
+ if (oauthProviders.length > 0) {
1965
+ groups.push( /*#__PURE__*/React.createElement(OAuthButtonGroup, {
1966
+ key: "oauth",
1967
+ providers: oauthProviders,
1968
+ wrapperClassName: "login2-oauth-buttons",
1969
+ buttonClassName: "login2-oauth-button",
1970
+ gap: 12
1971
+ }));
1972
+ }
1973
+ if (!groups.length) {
1974
+ return registerPrompt;
1975
+ }
1976
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1977
+ className: "login2-divider"
1978
+ }, locales.getText('pisell-login2-or')), /*#__PURE__*/React.createElement("div", {
1979
+ className: "login2-switch-groups"
1980
+ }, groups), registerPrompt);
1981
+ }
1982
+ var primaryProvider = oauthProviders.find(function (provider) {
1983
+ return provider.key === (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type);
1984
+ });
1985
+ var secondaryOauthProviders = oauthProviders.filter(function (provider) {
1986
+ return provider.key !== (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type);
1987
+ });
1988
+ var hasSecondaryButtons = nonOauthButtons.length > 0 || secondaryOauthProviders.length > 0;
1989
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1962
1990
  className: "login2-switch-groups"
1963
- }, nonOauthButtons.length > 0 && /*#__PURE__*/React.createElement("div", {
1991
+ }, primaryProvider ? /*#__PURE__*/React.createElement(OAuthButtonGroup, {
1992
+ providers: [primaryProvider],
1993
+ wrapperClassName: "login2-oauth-buttons",
1994
+ buttonClassName: "login2-oauth-button",
1995
+ gap: 12
1996
+ }) : /*#__PURE__*/React.createElement("div", {
1997
+ className: "login2-switch-options"
1998
+ }, /*#__PURE__*/React.createElement("button", {
1999
+ key: "primary-fallback",
2000
+ className: "login2-switch-option-button",
2001
+ onClick: function onClick() {
2002
+ if ((primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'guest') {
2003
+ handleGuestLogin();
2004
+ } else if ((primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'google' || (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'facebook' || (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'apple') {
2005
+ handleOAuthClick(primaryMethod.type);
2006
+ }
2007
+ }
2008
+ }, /*#__PURE__*/React.createElement(Iconfont, {
2009
+ type: (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'guest' ? 'pisell2-user-01' : (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'google' ? 'pisell2-google' : (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'facebook' ? 'pisell2-facebook' : 'pisell2-apple'
2010
+ }), /*#__PURE__*/React.createElement("span", {
2011
+ className: "option-text"
2012
+ }, (primaryMethod === null || primaryMethod === void 0 ? void 0 : primaryMethod.type) === 'guest' ? locales.getText('pisell-login2-login-as-guest') : "".concat(locales.getText('pisell-login2-continue-with'), " ").concat(primaryMethod !== null && primaryMethod !== void 0 && primaryMethod.type ? primaryMethod.type.charAt(0).toUpperCase() + primaryMethod.type.slice(1) : '')))), hasSecondaryButtons && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2013
+ className: "login2-divider"
2014
+ }, locales.getText('pisell-login2-or')), nonOauthButtons.length > 0 && /*#__PURE__*/React.createElement("div", {
1964
2015
  className: "login2-switch-options"
1965
- }, nonOauthButtons), oauthProviders.length > 0 && /*#__PURE__*/React.createElement(OAuthButtonGroup, {
1966
- providers: oauthProviders,
2016
+ }, nonOauthButtons), secondaryOauthProviders.length > 0 && /*#__PURE__*/React.createElement(OAuthButtonGroup, {
2017
+ providers: secondaryOauthProviders,
1967
2018
  wrapperClassName: "login2-oauth-buttons",
1968
2019
  buttonClassName: "login2-oauth-button",
1969
2020
  gap: 12
1970
- })), registerPrompt);
2021
+ }))), registerPrompt);
1971
2022
  };
1972
2023
 
1973
2024
  // 渲染 OAuth 按钮
@@ -0,0 +1,19 @@
1
+ /**
2
+ * PisellPaymentList 使用示例
3
+ *
4
+ * 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
5
+ * 包括如何通过 Context 访问父组件配置
6
+ */
7
+ export declare const BasicExample: () => JSX.Element;
8
+ export declare const ChildrenExample: () => JSX.Element;
9
+ export declare const CustomItemExample: () => JSX.Element;
10
+ export declare const MethodConfigExample: () => JSX.Element;
11
+ export declare const FullFeatureExample: () => JSX.Element;
12
+ declare const _default: {
13
+ BasicExample: () => JSX.Element;
14
+ ChildrenExample: () => JSX.Element;
15
+ CustomItemExample: () => JSX.Element;
16
+ MethodConfigExample: () => JSX.Element;
17
+ FullFeatureExample: () => JSX.Element;
18
+ };
19
+ export default _default;