@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,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/OrgAdminAuth/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,104 @@
1
+ .pos-operator-auth {
2
+ padding: 24px;
3
+ background: #fff;
4
+ min-height: 100vh;
5
+ }
6
+
7
+ /* 页面标题 */
8
+ .pos-operator-auth-header {
9
+ margin-bottom: 32px;
10
+ }
11
+
12
+ .pos-operator-auth-title {
13
+ font-size: 24px !important;
14
+ font-weight: 600 !important;
15
+ color: #262626 !important;
16
+ margin: 0 0 8px 0 !important;
17
+ line-height: 1.4 !important;
18
+ }
19
+
20
+ .pos-operator-auth-description {
21
+ font-size: 14px !important;
22
+ color: #8c8c8c !important;
23
+ margin: 0 !important;
24
+ line-height: 1.6 !important;
25
+ }
26
+
27
+ /* 区域样式 */
28
+ .pos-operator-auth-section {
29
+ background: #ffffff;
30
+ border-radius: 8px;
31
+ padding: 24px;
32
+ margin-bottom: 24px;
33
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
34
+ }
35
+
36
+ /* 左右布局容器 */
37
+ .pos-operator-auth-section-layout {
38
+ display: flex;
39
+ gap: 48px;
40
+ align-items: flex-start;
41
+ }
42
+
43
+ .pos-operator-auth-section-header {
44
+ flex: 0 0 320px;
45
+ min-width: 280px;
46
+ }
47
+
48
+ .pos-operator-auth-section-title {
49
+ font-size: 18px !important;
50
+ font-weight: 600 !important;
51
+ color: #262626 !important;
52
+ margin: 0 0 8px 0 !important;
53
+ line-height: 1.4 !important;
54
+ }
55
+
56
+ .pos-operator-auth-section-description {
57
+ font-size: 14px !important;
58
+ color: #8c8c8c !important;
59
+ margin: 0 !important;
60
+ line-height: 1.6 !important;
61
+ }
62
+
63
+ .pos-operator-auth-section-content {
64
+ flex: 1;
65
+ min-width: 0;
66
+ }
67
+
68
+ /* 底部按钮 */
69
+ .pos-operator-auth-footer {
70
+ display: flex;
71
+ justify-content: flex-end;
72
+ gap: 12px;
73
+ padding: 24px;
74
+ background: #ffffff;
75
+ border-radius: 8px;
76
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
77
+ }
78
+
79
+
80
+ /* 响应式设计 */
81
+ @media (max-width: 768px) {
82
+ .pos-operator-auth {
83
+ padding: 16px;
84
+ }
85
+
86
+ .pos-operator-auth-section {
87
+ padding: 16px;
88
+ }
89
+
90
+ .pos-operator-auth-section-layout {
91
+ flex-direction: column;
92
+ gap: 24px;
93
+ }
94
+
95
+ .pos-operator-auth-section-header {
96
+ flex: 1;
97
+ min-width: auto;
98
+ }
99
+
100
+ .pos-operator-auth-footer {
101
+ padding: 16px;
102
+ }
103
+ }
104
+
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { POSOperatorAuthProps } from './types';
3
+ import './POSOperatorAuth.less';
4
+ export type { POSOperatorAuthProps } from './types';
5
+ declare const POSOperatorAuth: React.FC<POSOperatorAuthProps>;
6
+ export default POSOperatorAuth;
@@ -0,0 +1,262 @@
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/POSOperatorAuth/index.tsx
30
+ var POSOperatorAuth_exports = {};
31
+ __export(POSOperatorAuth_exports, {
32
+ default: () => POSOperatorAuth_default
33
+ });
34
+ module.exports = __toCommonJS(POSOperatorAuth_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_utils = require("@pisell/utils");
38
+ var import_icons = require("@ant-design/icons");
39
+ var import_AuthMethods = __toESM(require("../AuthMethods"));
40
+ var import_SettingsDrawer = __toESM(require("../AuthMethods/SettingsDrawer"));
41
+ var import_types = require("../AuthMethods/types");
42
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
43
+ var import_locales = __toESM(require("./locales"));
44
+ var import_POSOperatorAuth = require("./POSOperatorAuth.less");
45
+ var { Title, Paragraph } = import_antd.Typography;
46
+ var getPOSOperatorAuthMethods = () => [
47
+ {
48
+ id: "digit_id_pin",
49
+ type: import_types.AuthMethodType.DIGIT_ID_PIN,
50
+ title: import_utils.locales.getText("auth.method.digit_id_pin.title") || "Digit ID + PIN",
51
+ category: import_types.AuthMethodCategory.GENERAL,
52
+ description: import_utils.locales.getText("auth.method.digit_id_pin.description") || "Quick login with employee ID and PIN code",
53
+ icon: /* @__PURE__ */ import_react.default.createElement(import_icons.NumberOutlined, { style: { fontSize: 20, color: "#4096ff" } }),
54
+ enabled: true,
55
+ hasSettings: true,
56
+ disableToggle: true
57
+ // 禁用开关
58
+ }
59
+ ];
60
+ var POS_OPERATOR_AUTH_METHODS = getPOSOperatorAuthMethods();
61
+ var convertApiDataToComponent = (apiData) => {
62
+ const methodsArray = Object.entries(apiData.method).map(([key, value]) => ({
63
+ key,
64
+ sort: value.sort,
65
+ enabled: value.enabled,
66
+ setting: value.setting
67
+ }));
68
+ methodsArray.sort((a, b) => a.sort - b.sort);
69
+ const authMethods = [];
70
+ const settingsMap = {};
71
+ const processedKeys = /* @__PURE__ */ new Set();
72
+ const currentAuthMethods = getPOSOperatorAuthMethods();
73
+ methodsArray.forEach(({ key, enabled, setting }) => {
74
+ processedKeys.add(key);
75
+ if (key === "digit_id_pin") {
76
+ const digitIdPinMethod = currentAuthMethods.find((m) => m.id === "digit_id_pin");
77
+ authMethods.push({
78
+ ...digitIdPinMethod,
79
+ enabled
80
+ });
81
+ settingsMap["digit_id_pin"] = setting;
82
+ }
83
+ });
84
+ currentAuthMethods.forEach((defaultMethod) => {
85
+ if (!processedKeys.has(defaultMethod.id)) {
86
+ authMethods.push({
87
+ ...defaultMethod,
88
+ enabled: false
89
+ });
90
+ }
91
+ });
92
+ return { authMethods, settingsMap };
93
+ };
94
+ var convertComponentDataToApi = (authMethods, settingsMap) => {
95
+ console.log("convertComponentDataToApi 被调用");
96
+ console.log("authMethods:", authMethods);
97
+ console.log("settingsMap:", settingsMap);
98
+ const method = {};
99
+ authMethods.forEach((authMethod, index) => {
100
+ console.log(`处理 authMethod: ${authMethod.id}, index: ${index}`);
101
+ if (authMethod.id === "digit_id_pin") {
102
+ const digitIdPinSettings = settingsMap["digit_id_pin"] || {};
103
+ console.log("digit_id_pin settings:", digitIdPinSettings);
104
+ method["digit_id_pin"] = {
105
+ sort: index + 1,
106
+ enabled: authMethod.enabled,
107
+ setting: digitIdPinSettings
108
+ };
109
+ console.log("添加了 digit_id_pin 到 method");
110
+ }
111
+ });
112
+ console.log("最终的 method 对象:", method);
113
+ return {
114
+ method
115
+ };
116
+ };
117
+ var POSOperatorAuth = ({ className, style, onSave }) => {
118
+ const context = (0, import_useEngineContext.default)();
119
+ const app = context.appHelper.utils.getApp();
120
+ const { request, data } = context.appHelper.utils.getApp();
121
+ const dataKey = "auth.pos_operator";
122
+ const [tenantId, setTenantId] = (0, import_react.useState)(null);
123
+ const [loading, setLoading] = (0, import_react.useState)(true);
124
+ const [authMethods, setAuthMethods] = (0, import_react.useState)([]);
125
+ const [settingsMap, setSettingsMap] = (0, import_react.useState)({});
126
+ const [drawerOpen, setDrawerOpen] = (0, import_react.useState)(false);
127
+ const [selectedMethod, setSelectedMethod] = (0, import_react.useState)(null);
128
+ (0, import_react.useEffect)(() => {
129
+ var _a, _b;
130
+ console.log("app_init_pos_operator_auth", app, context, data.storage);
131
+ 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");
132
+ setAuthMethods(getPOSOperatorAuthMethods());
133
+ }, []);
134
+ (0, import_react.useEffect)(() => {
135
+ var _a;
136
+ const coreData = data.storage.getStorage("core");
137
+ if (coreData) {
138
+ try {
139
+ const coreDataJson = JSON.parse(coreData);
140
+ if ((_a = coreDataJson == null ? void 0 : coreDataJson.tenant) == null ? void 0 : _a.id) {
141
+ setTenantId(coreDataJson.tenant.id);
142
+ }
143
+ } catch (error) {
144
+ console.error("Error parsing core data:", error);
145
+ }
146
+ }
147
+ }, [data.storage]);
148
+ (0, import_react.useEffect)(() => {
149
+ if (tenantId) {
150
+ setLoading(true);
151
+ request.get(`/tenant/core/meta?key=${dataKey}&metable_type=tenant&metable_id=${tenantId}`).then((res) => {
152
+ var _a, _b;
153
+ console.log("res_pos_operator_auth_methods", res);
154
+ if ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.length) {
155
+ const apiData = (_b = res.data[0]) == null ? void 0 : _b.value;
156
+ const { authMethods: convertedAuthMethods, settingsMap: convertedSettingsMap } = convertApiDataToComponent(apiData);
157
+ setAuthMethods(convertedAuthMethods);
158
+ setSettingsMap(convertedSettingsMap);
159
+ console.log("Converted data:", { convertedAuthMethods, convertedSettingsMap });
160
+ } else {
161
+ setAuthMethods(getPOSOperatorAuthMethods());
162
+ }
163
+ setLoading(false);
164
+ }).catch((error) => {
165
+ console.error("Error fetching tenant data:", error);
166
+ setAuthMethods(getPOSOperatorAuthMethods());
167
+ setLoading(false);
168
+ });
169
+ }
170
+ }, [tenantId, request]);
171
+ const handleAuthMethodsOrderChange = (methods) => {
172
+ setAuthMethods(methods);
173
+ };
174
+ const handleAuthMethodToggle = (method, enabled) => {
175
+ console.log("Auth method toggled:", method.id, enabled);
176
+ setAuthMethods(
177
+ (prevMethods) => prevMethods.map(
178
+ (m) => m.id === method.id ? { ...m, enabled } : m
179
+ )
180
+ );
181
+ };
182
+ const handleAuthMethodSettings = (method) => {
183
+ setSelectedMethod(method);
184
+ setDrawerOpen(true);
185
+ };
186
+ const handleDrawerClose = () => {
187
+ setDrawerOpen(false);
188
+ setSelectedMethod(null);
189
+ };
190
+ const saveToApi = (currentAuthMethods, currentSettingsMap) => {
191
+ console.log("=== 开始保存到接口 ===");
192
+ console.log("authMethods:", currentAuthMethods);
193
+ console.log("settingsMap:", currentSettingsMap);
194
+ const completeSettingsMap = { ...currentSettingsMap };
195
+ currentAuthMethods.forEach((method) => {
196
+ console.log(`检查 method: ${method.id}, 当前有设置: ${!!completeSettingsMap[method.id]}`);
197
+ if (!completeSettingsMap[method.id]) {
198
+ if (method.id === "digit_id_pin") {
199
+ console.log("添加 digit_id_pin 默认设置");
200
+ completeSettingsMap["digit_id_pin"] = {
201
+ digit_length: 4,
202
+ pin_length: 4
203
+ };
204
+ }
205
+ }
206
+ });
207
+ console.log("完整的 settingsMap:", completeSettingsMap);
208
+ const apiData = convertComponentDataToApi(currentAuthMethods, completeSettingsMap);
209
+ console.log("=== 保存的接口数据 ===");
210
+ console.log(JSON.stringify(apiData, null, 2));
211
+ onSave == null ? void 0 : onSave(currentAuthMethods);
212
+ request.post(`/tenant/core/meta/tenant/${tenantId}`, {
213
+ [dataKey]: apiData
214
+ }).then((res) => {
215
+ console.log("res_pos_operator_auth_save", res);
216
+ import_antd.message.success(import_utils.locales.getText("auth.save.success") || "保存成功");
217
+ }).catch((error) => {
218
+ console.error("Error saving tenant data:", error);
219
+ import_antd.message.error(import_utils.locales.getText("auth.save.error") || "保存失败");
220
+ });
221
+ };
222
+ const handleSettingsSave = (settings) => {
223
+ console.log("Settings saved:", settings);
224
+ let updatedSettingsMap = { ...settingsMap };
225
+ if (selectedMethod) {
226
+ if (selectedMethod.id === "digit_id_pin") {
227
+ updatedSettingsMap = {
228
+ ...updatedSettingsMap,
229
+ digit_id_pin: settings
230
+ };
231
+ setSettingsMap(updatedSettingsMap);
232
+ }
233
+ }
234
+ saveToApi(authMethods, updatedSettingsMap);
235
+ };
236
+ const handleSave = () => {
237
+ saveToApi(authMethods, settingsMap);
238
+ };
239
+ if (loading) {
240
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `pos-operator-auth ${className || ""}`, style: { ...style, display: "flex", justifyContent: "center", alignItems: "center", minHeight: "400px" } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { size: "large" }));
241
+ }
242
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `pos-operator-auth ${className || ""}`, style }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pos-operator-auth-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 1, className: "pos-operator-auth-title" }, import_utils.locales.getText("pos.operator.auth.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "pos-operator-auth-description" }, import_utils.locales.getText("pos.operator.auth.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pos-operator-auth-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pos-operator-auth-section-layout" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pos-operator-auth-section-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 2, className: "pos-operator-auth-section-title" }, import_utils.locales.getText("pos.operator.auth.methods.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "pos-operator-auth-section-description" }, import_utils.locales.getText("pos.operator.auth.methods.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pos-operator-auth-section-content" }, /* @__PURE__ */ import_react.default.createElement(
243
+ import_AuthMethods.default,
244
+ {
245
+ methods: authMethods,
246
+ onOrderChange: handleAuthMethodsOrderChange,
247
+ onToggle: handleAuthMethodToggle,
248
+ onSettings: handleAuthMethodSettings
249
+ }
250
+ )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pos-operator-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(
251
+ import_SettingsDrawer.default,
252
+ {
253
+ open: drawerOpen,
254
+ method: selectedMethod,
255
+ onClose: handleDrawerClose,
256
+ onSave: handleSettingsSave,
257
+ mode: "auth-methods",
258
+ initialSettings: selectedMethod ? settingsMap[selectedMethod.id] : void 0
259
+ }
260
+ ));
261
+ };
262
+ var POSOperatorAuth_default = POSOperatorAuth;
@@ -0,0 +1,48 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pos.operator.auth.title': string;
4
+ 'pos.operator.auth.description': string;
5
+ 'pos.operator.auth.methods.title': string;
6
+ 'pos.operator.auth.methods.description': string;
7
+ 'auth.method.digit_id_pin.title': string;
8
+ 'auth.method.digit_id_pin.description': string;
9
+ 'auth.button.cancel': string;
10
+ 'auth.button.save': string;
11
+ 'auth.button.settings': string;
12
+ 'auth.category.general': string;
13
+ 'auth.category.passwordFree': string;
14
+ 'auth.save.success': string;
15
+ 'auth.save.error': string;
16
+ };
17
+ 'zh-CN': {
18
+ 'pos.operator.auth.title': string;
19
+ 'pos.operator.auth.description': string;
20
+ 'pos.operator.auth.methods.title': string;
21
+ 'pos.operator.auth.methods.description': string;
22
+ 'auth.method.digit_id_pin.title': string;
23
+ 'auth.method.digit_id_pin.description': string;
24
+ 'auth.button.cancel': string;
25
+ 'auth.button.save': string;
26
+ 'auth.button.settings': string;
27
+ 'auth.category.general': string;
28
+ 'auth.category.passwordFree': string;
29
+ 'auth.save.success': string;
30
+ 'auth.save.error': string;
31
+ };
32
+ 'zh-HK': {
33
+ 'pos.operator.auth.title': string;
34
+ 'pos.operator.auth.description': string;
35
+ 'pos.operator.auth.methods.title': string;
36
+ 'pos.operator.auth.methods.description': string;
37
+ 'auth.method.digit_id_pin.title': string;
38
+ 'auth.method.digit_id_pin.description': string;
39
+ 'auth.button.cancel': string;
40
+ 'auth.button.save': string;
41
+ 'auth.button.settings': string;
42
+ 'auth.category.general': string;
43
+ 'auth.category.passwordFree': string;
44
+ 'auth.save.success': string;
45
+ 'auth.save.error': string;
46
+ };
47
+ };
48
+ export default _default;
@@ -0,0 +1,89 @@
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/POSOperatorAuth/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
+ "pos.operator.auth.title": "POS Operator Authentication",
29
+ "pos.operator.auth.description": "Configure authentication methods for staff using POS terminals and point-of-sale systems.",
30
+ // Auth Methods section
31
+ "pos.operator.auth.methods.title": "Auth Methods",
32
+ "pos.operator.auth.methods.description": "Configure authentication methods for staff using POS terminals and point-of-sale systems. Drag to reorder by priority.",
33
+ // Auth method: Digit ID + PIN
34
+ "auth.method.digit_id_pin.title": "Digit ID + PIN",
35
+ "auth.method.digit_id_pin.description": "Quick login with employee ID and PIN code",
36
+ // Buttons
37
+ "auth.button.cancel": "Cancel",
38
+ "auth.button.save": "Save",
39
+ "auth.button.settings": "Settings",
40
+ // Category badges
41
+ "auth.category.general": "General",
42
+ "auth.category.passwordFree": "Password-free",
43
+ // Messages
44
+ "auth.save.success": "Settings saved successfully",
45
+ "auth.save.error": "Failed to save settings"
46
+ },
47
+ "zh-CN": {
48
+ // Page title and description
49
+ "pos.operator.auth.title": "POS操作员认证",
50
+ "pos.operator.auth.description": "为使用POS终端和销售点系统的员工配置认证方法。",
51
+ // Auth Methods section
52
+ "pos.operator.auth.methods.title": "认证方法",
53
+ "pos.operator.auth.methods.description": "为使用POS终端和销售点系统的员工配置认证方法。拖动以调整优先级。",
54
+ // Auth method: Digit ID + PIN
55
+ "auth.method.digit_id_pin.title": "数字ID + PIN码",
56
+ "auth.method.digit_id_pin.description": "使用员工ID和PIN码快速登录",
57
+ // Buttons
58
+ "auth.button.cancel": "取消",
59
+ "auth.button.save": "保存",
60
+ "auth.button.settings": "设置",
61
+ // Category badges
62
+ "auth.category.general": "通用",
63
+ "auth.category.passwordFree": "免密码",
64
+ // Messages
65
+ "auth.save.success": "设置保存成功",
66
+ "auth.save.error": "设置保存失败"
67
+ },
68
+ "zh-HK": {
69
+ // Page title and description
70
+ "pos.operator.auth.title": "POS操作員認證",
71
+ "pos.operator.auth.description": "為使用POS終端和銷售點系統的員工配置認證方法。",
72
+ // Auth Methods section
73
+ "pos.operator.auth.methods.title": "認證方法",
74
+ "pos.operator.auth.methods.description": "為使用POS終端和銷售點系統的員工配置認證方法。拖動以調整優先級。",
75
+ // Auth method: Digit ID + PIN
76
+ "auth.method.digit_id_pin.title": "數字ID + PIN碼",
77
+ "auth.method.digit_id_pin.description": "使用員工ID和PIN碼快速登錄",
78
+ // Buttons
79
+ "auth.button.cancel": "取消",
80
+ "auth.button.save": "保存",
81
+ "auth.button.settings": "設置",
82
+ // Category badges
83
+ "auth.category.general": "通用",
84
+ "auth.category.passwordFree": "免密碼",
85
+ // Messages
86
+ "auth.save.success": "設置保存成功",
87
+ "auth.save.error": "設置保存失敗"
88
+ }
89
+ };
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { AuthMethod } from '../AuthMethods/types';
3
+ export interface POSOperatorAuthProps {
4
+ /**
5
+ * 自定义类名
6
+ */
7
+ className?: string;
8
+ /**
9
+ * 自定义样式
10
+ */
11
+ style?: React.CSSProperties;
12
+ /**
13
+ * 保存回调
14
+ */
15
+ onSave?: (authMethods: AuthMethod[]) => 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/POSOperatorAuth/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,104 @@
1
+ .saas-admin-auth {
2
+ padding: 24px;
3
+ background: #fff;
4
+ min-height: 100vh;
5
+ }
6
+
7
+ /* 页面标题 */
8
+ .saas-admin-auth-header {
9
+ margin-bottom: 32px;
10
+ }
11
+
12
+ .saas-admin-auth-title {
13
+ font-size: 24px !important;
14
+ font-weight: 600 !important;
15
+ color: #262626 !important;
16
+ margin: 0 0 8px 0 !important;
17
+ line-height: 1.4 !important;
18
+ }
19
+
20
+ .saas-admin-auth-description {
21
+ font-size: 14px !important;
22
+ color: #8c8c8c !important;
23
+ margin: 0 !important;
24
+ line-height: 1.6 !important;
25
+ }
26
+
27
+ /* 区域样式 */
28
+ .saas-admin-auth-section {
29
+ background: #ffffff;
30
+ border-radius: 8px;
31
+ padding: 24px;
32
+ margin-bottom: 24px;
33
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
34
+ }
35
+
36
+ /* 左右布局容器 */
37
+ .saas-admin-auth-section-layout {
38
+ display: flex;
39
+ gap: 48px;
40
+ align-items: flex-start;
41
+ }
42
+
43
+ .saas-admin-auth-section-header {
44
+ flex: 0 0 320px;
45
+ min-width: 280px;
46
+ }
47
+
48
+ .saas-admin-auth-section-title {
49
+ font-size: 18px !important;
50
+ font-weight: 600 !important;
51
+ color: #262626 !important;
52
+ margin: 0 0 8px 0 !important;
53
+ line-height: 1.4 !important;
54
+ }
55
+
56
+ .saas-admin-auth-section-description {
57
+ font-size: 14px !important;
58
+ color: #8c8c8c !important;
59
+ margin: 0 !important;
60
+ line-height: 1.6 !important;
61
+ }
62
+
63
+ .saas-admin-auth-section-content {
64
+ flex: 1;
65
+ min-width: 0;
66
+ }
67
+
68
+ /* 底部按钮 */
69
+ .saas-admin-auth-footer {
70
+ display: flex;
71
+ justify-content: flex-end;
72
+ gap: 12px;
73
+ padding: 24px;
74
+ background: #ffffff;
75
+ border-radius: 8px;
76
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
77
+ }
78
+
79
+
80
+ /* 响应式设计 */
81
+ @media (max-width: 768px) {
82
+ .saas-admin-auth {
83
+ padding: 16px;
84
+ }
85
+
86
+ .saas-admin-auth-section {
87
+ padding: 16px;
88
+ }
89
+
90
+ .saas-admin-auth-section-layout {
91
+ flex-direction: column;
92
+ gap: 24px;
93
+ }
94
+
95
+ .saas-admin-auth-section-header {
96
+ flex: 1;
97
+ min-width: auto;
98
+ }
99
+
100
+ .saas-admin-auth-footer {
101
+ padding: 16px;
102
+ }
103
+ }
104
+
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { SaaSAdminAuthProps } from './types';
3
+ import './SaaSAdminAuth.less';
4
+ export type { SaaSAdminAuthProps } from './types';
5
+ declare const SaaSAdminAuth: React.FC<SaaSAdminAuthProps>;
6
+ export default SaaSAdminAuth;