@pisell/private-materials 6.3.37 → 6.3.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) 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 +146 -160
  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/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  12. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  13. package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
  14. package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  15. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  16. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
  17. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  18. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  19. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
  20. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  21. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
  22. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  23. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
  24. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  25. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
  26. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  27. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
  28. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  29. package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
  30. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  31. package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
  32. package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  33. package/es/components/authentication/admin/AuthMethods/index.js +233 -0
  34. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  35. package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
  36. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  37. package/es/components/authentication/admin/AuthMethods/types.js +23 -0
  38. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  39. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  40. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
  41. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  42. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
  43. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  44. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
  45. package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  46. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  47. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
  55. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  56. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  57. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  58. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
  59. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  60. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
  61. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  62. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
  63. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  64. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  65. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
  66. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  67. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
  68. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  69. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
  70. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  71. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
  72. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  73. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  74. package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
  75. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  76. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
  77. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  78. package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
  79. package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  80. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  81. package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
  82. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  83. package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
  84. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  85. package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
  86. package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  87. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  88. package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
  89. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  90. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
  91. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  92. package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
  93. package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  94. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  95. package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
  96. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  97. package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
  98. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  99. package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
  100. package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  101. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  102. package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
  103. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  104. package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
  105. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  106. package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
  107. package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  108. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  109. package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
  110. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  111. package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
  112. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  113. package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
  114. package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  115. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  116. package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
  117. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  118. package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
  119. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  120. package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
  121. package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  122. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  123. package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
  124. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  125. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
  126. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  127. package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
  128. package/es/components/authentication/admin/index.d.ts +26 -0
  129. package/es/components/authentication/admin/index.js +23 -0
  130. package/es/components/authentication/index.d.ts +0 -0
  131. package/es/components/authentication/index.js +0 -0
  132. package/es/components/booking/components/customSelect/index.js +6 -2
  133. package/es/components/booking/components/footer/utils.js +1 -1
  134. package/es/components/eftposPay/hooks.d.ts +1 -1
  135. package/es/components/eftposPay/store/index.d.ts +1 -1
  136. package/es/components/index.d.ts +2 -1
  137. package/es/components/index.js +2 -1
  138. package/es/components/pay/toC/index.js +19 -14
  139. package/es/components/pay/toC/status.d.ts +1 -0
  140. package/es/components/pay/toC/status.js +3 -0
  141. package/es/index.d.ts +2 -0
  142. package/es/index.js +1 -0
  143. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  144. package/es/pro/pisellPaymentList/example.js +434 -0
  145. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  146. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  147. package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
  148. package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  149. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  150. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
  151. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  152. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  153. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
  154. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  155. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
  156. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  157. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
  158. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  159. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
  160. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  161. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
  162. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  163. package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
  164. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  165. package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
  166. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  167. package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
  168. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  169. package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
  170. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  171. package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
  172. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  173. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  174. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
  175. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  176. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
  177. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  178. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
  179. package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  180. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  181. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  182. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
  183. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  184. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
  185. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  186. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
  187. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  188. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
  189. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  190. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  191. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  192. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
  193. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  194. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
  195. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  196. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
  197. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  198. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  199. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
  200. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  201. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
  202. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  203. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
  204. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  205. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
  206. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  207. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  208. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
  209. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  210. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
  211. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  212. package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
  213. package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  214. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  215. package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
  216. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  217. package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
  218. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  219. package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
  220. package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  221. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  222. package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
  223. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  224. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
  225. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  226. package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
  227. package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  228. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  229. package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
  230. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  231. package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
  232. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  233. package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
  234. package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  235. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  236. package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
  237. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  238. package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
  239. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  240. package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
  241. package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  242. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  243. package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
  244. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  245. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
  246. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  247. package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
  248. package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  249. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  250. package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
  251. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  252. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
  253. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  254. package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
  255. package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  256. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  257. package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
  258. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  259. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
  260. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  261. package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
  262. package/lib/components/authentication/admin/index.d.ts +26 -0
  263. package/lib/components/authentication/admin/index.js +83 -0
  264. package/lib/components/authentication/index.d.ts +0 -0
  265. package/lib/components/authentication/index.js +0 -0
  266. package/lib/components/booking/components/customSelect/index.js +6 -2
  267. package/lib/components/booking/components/footer/utils.js +1 -1
  268. package/lib/components/eftposPay/hooks.d.ts +1 -1
  269. package/lib/components/eftposPay/store/index.d.ts +1 -1
  270. package/lib/components/index.d.ts +2 -1
  271. package/lib/components/index.js +19 -0
  272. package/lib/components/pay/toC/index.js +10 -2
  273. package/lib/components/pay/toC/status.d.ts +1 -0
  274. package/lib/components/pay/toC/status.js +5 -0
  275. package/lib/index.d.ts +2 -0
  276. package/lib/index.js +19 -0
  277. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  278. package/lib/pro/pisellPaymentList/example.js +416 -0
  279. package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
  280. package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
  281. package/lowcode/admin-auth-device-auth/meta.ts +30 -0
  282. package/lowcode/admin-auth-methods/meta.ts +385 -0
  283. package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
  284. package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
  285. package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
  286. package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
  287. package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
  288. package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
  289. package/lowcode/admin-setting-list/meta.ts +125 -0
  290. package/lowcode/pro-register/meta.ts +385 -0
  291. package/package.json +2 -2
@@ -0,0 +1,383 @@
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/ChannelAuthSetting/OnlineShopAuth/index.tsx
30
+ var OnlineShopAuth_exports = {};
31
+ __export(OnlineShopAuth_exports, {
32
+ default: () => OnlineShopAuth_default
33
+ });
34
+ module.exports = __toCommonJS(OnlineShopAuth_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_classnames = __toESM(require("classnames"));
38
+ var import_utils = require("@pisell/utils");
39
+ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
40
+ var import_PageSetting = __toESM(require("../PageSetting"));
41
+ var import_AuthenticationMethods = __toESM(require("../AuthenticationMethods"));
42
+ var import_CollectInfo = __toESM(require("../CollectInfo"));
43
+ var import_locales = __toESM(require("../locales"));
44
+ var import_index = require("./index.less");
45
+ var { Title, Paragraph } = import_antd.Typography;
46
+ var Onlineshopauth = ({
47
+ className,
48
+ style,
49
+ value,
50
+ defaultActiveTab,
51
+ visibleTabs,
52
+ showRegisterPage = true,
53
+ onSave
54
+ }) => {
55
+ var _a, _b;
56
+ const context = (0, import_useEngineContext.default)();
57
+ const { useParams } = context.appHelper.utils.getApp().history;
58
+ const { channel } = useParams();
59
+ const { request } = context.appHelper.utils.getApp();
60
+ const [loading, setLoading] = (0, import_react.useState)(true);
61
+ const [channelData, setChannelData] = (0, import_react.useState)(null);
62
+ const pageSettingRef = (0, import_react.useRef)(null);
63
+ 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");
64
+ const allTabs = ["pageSetting", "authenticationMethods"];
65
+ const saveData = (data) => {
66
+ request.post(`/api/tenant_channel:update?filter=%7B%22channel_code%22%3A%22${channel}%22%7D`, {
67
+ ...channelData,
68
+ metadata: {
69
+ ...channelData == null ? void 0 : channelData.metadata,
70
+ register_login: data
71
+ }
72
+ }, {
73
+ isNocobase: true,
74
+ headers: {
75
+ "x-data-source": "pisell2"
76
+ }
77
+ }).then((res) => {
78
+ import_antd.message.success(import_utils.locales.getText("channel.auth.setting.message.saveSuccess"));
79
+ }).catch((error) => {
80
+ console.error("Error fetching tenant data:", error);
81
+ import_antd.message.error(import_utils.locales.getText("channel.auth.setting.message.saveError"));
82
+ });
83
+ };
84
+ (0, import_react.useEffect)(() => {
85
+ if (channel) {
86
+ setLoading(true);
87
+ request.get(`/api/tenant_channel:get?filter=%7B%22channel_code%22%3A%22${channel}%22%7D&appends=channel`, {}, {
88
+ isNocobase: true,
89
+ headers: {
90
+ "x-data-source": "pisell2"
91
+ }
92
+ }).then((res) => {
93
+ if (res == null ? void 0 : res.data) {
94
+ setChannelData(res == null ? void 0 : res.data);
95
+ }
96
+ console.log("res_online_shop_auth", res);
97
+ setLoading(false);
98
+ }).catch((error) => {
99
+ console.error("Error fetching tenant data:", error);
100
+ setLoading(false);
101
+ });
102
+ }
103
+ }, [request, channel]);
104
+ const displayTabs = (0, import_react.useMemo)(() => {
105
+ if (channel === "management") {
106
+ return ["pageSetting"];
107
+ }
108
+ return allTabs;
109
+ }, [channel]);
110
+ const initialActiveTab = (0, import_react.useMemo)(() => {
111
+ if (defaultActiveTab && displayTabs.includes(defaultActiveTab)) {
112
+ return defaultActiveTab;
113
+ }
114
+ return displayTabs[0] || "pageSetting";
115
+ }, [defaultActiveTab, displayTabs]);
116
+ const [activeTab, setActiveTab] = (0, import_react.useState)(initialActiveTab);
117
+ const [internalValue, setInternalValue] = (0, import_react.useState)(
118
+ value || {}
119
+ );
120
+ (0, import_react.useEffect)(() => {
121
+ if (value) {
122
+ setInternalValue(value);
123
+ }
124
+ }, [value]);
125
+ (0, import_react.useEffect)(() => {
126
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
127
+ if ((_a2 = channelData == null ? void 0 : channelData.metadata) == null ? void 0 : _a2.register_login) {
128
+ const { page, auth } = channelData.metadata.register_login;
129
+ const pageSettingValue = {};
130
+ if (page) {
131
+ pageSettingValue.registerPage = {
132
+ backgroundImage: ((_b2 = page.register) == null ? void 0 : _b2.background_image_url) || "",
133
+ termsConditions: ((_d = (_c = page.register) == null ? void 0 : _c.terms) == null ? void 0 : _d.map((term) => {
134
+ var _a3, _b3, _c2, _d2;
135
+ return {
136
+ name: {
137
+ original: ((_a3 = term.name) == null ? void 0 : _a3.original) || "",
138
+ en: ((_b3 = term.name) == null ? void 0 : _b3.en) || "",
139
+ "zh-CN": ((_c2 = term.name) == null ? void 0 : _c2["zh-CN"]) || "",
140
+ "zh-HK": ((_d2 = term.name) == null ? void 0 : _d2["zh-HK"]) || ""
141
+ },
142
+ url: term.url || ""
143
+ };
144
+ })) || []
145
+ };
146
+ pageSettingValue.loginPage = {
147
+ sameAsRegister: ((_e = page.login) == null ? void 0 : _e.same_as_register) ?? true,
148
+ settings: ((_f = page.login) == null ? void 0 : _f.same_as_register) ? void 0 : {
149
+ backgroundImage: ((_g = page.login) == null ? void 0 : _g.background_image_url) || "",
150
+ termsConditions: ((_i = (_h = page.login) == null ? void 0 : _h.terms) == null ? void 0 : _i.map((term) => {
151
+ var _a3, _b3, _c2, _d2;
152
+ return {
153
+ name: {
154
+ original: ((_a3 = term.name) == null ? void 0 : _a3.original) || "",
155
+ en: ((_b3 = term.name) == null ? void 0 : _b3.en) || "",
156
+ "zh-CN": ((_c2 = term.name) == null ? void 0 : _c2["zh-CN"]) || "",
157
+ "zh-HK": ((_d2 = term.name) == null ? void 0 : _d2["zh-HK"]) || ""
158
+ },
159
+ url: term.url || ""
160
+ };
161
+ })) || []
162
+ }
163
+ };
164
+ }
165
+ const authenticationMethodsValue = {};
166
+ if (auth) {
167
+ authenticationMethodsValue.mode = auth.mode || "default";
168
+ authenticationMethodsValue.methods = {};
169
+ if ((_j = auth.method) == null ? void 0 : _j.email) {
170
+ authenticationMethodsValue.methods.email = {
171
+ enabled: auth.method.email.enabled ?? true,
172
+ sort: auth.method.email.sort ?? 0
173
+ };
174
+ }
175
+ if ((_k = auth.method) == null ? void 0 : _k.phone) {
176
+ authenticationMethodsValue.methods.phoneNumber = {
177
+ enabled: auth.method.phone.enabled ?? true,
178
+ sort: auth.method.phone.sort ?? 1
179
+ };
180
+ }
181
+ if ((_l = auth.method) == null ? void 0 : _l.facebook) {
182
+ authenticationMethodsValue.methods.facebook = {
183
+ enabled: auth.method.facebook.enabled ?? true,
184
+ sort: auth.method.facebook.sort ?? 2
185
+ };
186
+ }
187
+ if ((_m = auth.method) == null ? void 0 : _m.apple) {
188
+ authenticationMethodsValue.methods.apple = {
189
+ enabled: auth.method.apple.enabled ?? true,
190
+ sort: auth.method.apple.sort ?? 3
191
+ };
192
+ }
193
+ if ((_n = auth.method) == null ? void 0 : _n.guest) {
194
+ authenticationMethodsValue.methods.guest = {
195
+ enabled: auth.method.guest.enabled ?? false,
196
+ sort: auth.method.guest.sort ?? 4
197
+ };
198
+ }
199
+ }
200
+ setInternalValue({
201
+ pageSetting: pageSettingValue,
202
+ authenticationMethods: authenticationMethodsValue
203
+ });
204
+ }
205
+ }, [channelData]);
206
+ const handlePageSettingChange = (0, import_react.useCallback)((pageSettingValue) => {
207
+ setInternalValue((prev) => {
208
+ const hasPageSettingChanged = JSON.stringify(prev.pageSetting) !== JSON.stringify(pageSettingValue);
209
+ if (hasPageSettingChanged) {
210
+ return {
211
+ ...prev,
212
+ pageSetting: pageSettingValue
213
+ };
214
+ }
215
+ return prev;
216
+ });
217
+ }, []);
218
+ const handleAuthenticationMethodsChange = (0, import_react.useCallback)((authMethodsValue) => {
219
+ setInternalValue((prev) => {
220
+ const hasAuthMethodsChanged = JSON.stringify(prev.authenticationMethods) !== JSON.stringify(authMethodsValue);
221
+ if (hasAuthMethodsChanged) {
222
+ return {
223
+ ...prev,
224
+ authenticationMethods: authMethodsValue
225
+ };
226
+ }
227
+ return prev;
228
+ });
229
+ }, []);
230
+ const handleCollectInfoChange = (0, import_react.useCallback)((collectInfoValue) => {
231
+ setInternalValue((prev) => {
232
+ const hasCollectInfoChanged = JSON.stringify(prev.collectInfo) !== JSON.stringify(collectInfoValue);
233
+ if (hasCollectInfoChanged) {
234
+ return {
235
+ ...prev,
236
+ collectInfo: collectInfoValue
237
+ };
238
+ }
239
+ return prev;
240
+ });
241
+ }, []);
242
+ const transformToNewFormat = (value2, currentTab) => {
243
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
244
+ const { pageSetting, authenticationMethods } = value2;
245
+ const result = {};
246
+ console.log("pageSetting data:", pageSetting);
247
+ const shouldTransformPage = !currentTab || currentTab === "pageSetting";
248
+ const shouldTransformAuth = !currentTab || currentTab === "authenticationMethods";
249
+ if (shouldTransformPage) {
250
+ result.page = {
251
+ register: {
252
+ background_image_url: ((_a2 = pageSetting == null ? void 0 : pageSetting.registerPage) == null ? void 0 : _a2.backgroundImage) || "",
253
+ terms: ((_c = (_b2 = pageSetting == null ? void 0 : pageSetting.registerPage) == null ? void 0 : _b2.termsConditions) == null ? void 0 : _c.map((term) => ({
254
+ name: {
255
+ original: term.name.original || "",
256
+ en: term.name.en || "",
257
+ "zh-CN": term.name["zh-CN"] || "",
258
+ "zh-HK": term.name["zh-HK"] || ""
259
+ },
260
+ url: term.url || ""
261
+ }))) || []
262
+ },
263
+ login: {
264
+ same_as_register: ((_d = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _d.sameAsRegister) ?? true,
265
+ background_image_url: ((_e = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _e.sameAsRegister) ? null : ((_g = (_f = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _f.settings) == null ? void 0 : _g.backgroundImage) || null,
266
+ terms: ((_h = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _h.sameAsRegister) ? [] : ((_k = (_j = (_i = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _i.settings) == null ? void 0 : _j.termsConditions) == null ? void 0 : _k.map((term) => ({
267
+ name: {
268
+ original: term.name.original || "",
269
+ en: term.name.en || "",
270
+ "zh-CN": term.name["zh-CN"] || "",
271
+ "zh-HK": term.name["zh-HK"] || ""
272
+ },
273
+ url: term.url || ""
274
+ }))) || []
275
+ }
276
+ };
277
+ }
278
+ if (shouldTransformAuth) {
279
+ const methods = (authenticationMethods == null ? void 0 : authenticationMethods.methods) || {};
280
+ console.log("authenticationMethods:", authenticationMethods);
281
+ console.log("methods config:", methods);
282
+ result.auth = {
283
+ mode: (authenticationMethods == null ? void 0 : authenticationMethods.mode) || "default",
284
+ method: {
285
+ email: {
286
+ enabled: ((_l = methods.email) == null ? void 0 : _l.enabled) ?? true,
287
+ sort: ((_m = methods.email) == null ? void 0 : _m.sort) ?? 0
288
+ },
289
+ phone: {
290
+ enabled: ((_n = methods.phoneNumber) == null ? void 0 : _n.enabled) ?? true,
291
+ sort: ((_o = methods.phoneNumber) == null ? void 0 : _o.sort) ?? 1
292
+ },
293
+ facebook: {
294
+ enabled: ((_p = methods.facebook) == null ? void 0 : _p.enabled) ?? true,
295
+ sort: ((_q = methods.facebook) == null ? void 0 : _q.sort) ?? 2
296
+ },
297
+ apple: {
298
+ enabled: ((_r = methods.apple) == null ? void 0 : _r.enabled) ?? true,
299
+ sort: ((_s = methods.apple) == null ? void 0 : _s.sort) ?? 3
300
+ },
301
+ guest: {
302
+ enabled: ((_t = methods.guest) == null ? void 0 : _t.enabled) ?? false,
303
+ sort: ((_u = methods.guest) == null ? void 0 : _u.sort) ?? 4
304
+ }
305
+ }
306
+ };
307
+ }
308
+ return result;
309
+ };
310
+ const handleSave = async () => {
311
+ var _a2;
312
+ try {
313
+ if (activeTab === "pageSetting" && pageSettingRef.current) {
314
+ await pageSettingRef.current.validateFields();
315
+ }
316
+ const transformedValue = transformToNewFormat(internalValue, activeTab);
317
+ const currentRegisterLogin = ((_a2 = channelData == null ? void 0 : channelData.metadata) == null ? void 0 : _a2.register_login) || {};
318
+ const mergedData = {
319
+ ...currentRegisterLogin,
320
+ ...transformedValue
321
+ };
322
+ console.log("transformedValue", transformedValue, internalValue);
323
+ console.log("mergedData", mergedData);
324
+ saveData(mergedData);
325
+ } catch (error) {
326
+ console.error("表单校验失败:", error);
327
+ import_antd.message.error(import_utils.locales.getText("channel.auth.setting.validation.error"));
328
+ }
329
+ };
330
+ const allTabItems = (0, import_react.useMemo)(() => ({
331
+ pageSetting: {
332
+ key: "pageSetting",
333
+ label: import_utils.locales.getText("channel.auth.setting.tab.pageSetting"),
334
+ children: /* @__PURE__ */ import_react.default.createElement(
335
+ import_PageSetting.default,
336
+ {
337
+ ref: pageSettingRef,
338
+ value: internalValue.pageSetting,
339
+ onChange: handlePageSettingChange,
340
+ showRegisterPage,
341
+ showImageUpload: false
342
+ }
343
+ )
344
+ },
345
+ authenticationMethods: {
346
+ key: "authenticationMethods",
347
+ label: import_utils.locales.getText("channel.auth.setting.tab.authenticationMethods"),
348
+ children: /* @__PURE__ */ import_react.default.createElement(
349
+ import_AuthenticationMethods.default,
350
+ {
351
+ value: internalValue.authenticationMethods,
352
+ onChange: handleAuthenticationMethodsChange
353
+ }
354
+ )
355
+ },
356
+ collectInfo: {
357
+ key: "collectInfo",
358
+ label: import_utils.locales.getText("channel.auth.setting.tab.collectInfo"),
359
+ children: /* @__PURE__ */ import_react.default.createElement(
360
+ import_CollectInfo.default,
361
+ {
362
+ value: internalValue.collectInfo,
363
+ onChange: handleCollectInfoChange
364
+ }
365
+ )
366
+ }
367
+ }), [internalValue.pageSetting, internalValue.authenticationMethods, internalValue.collectInfo, showRegisterPage, handlePageSettingChange, handleAuthenticationMethodsChange, handleCollectInfoChange]);
368
+ const tabItems = (0, import_react.useMemo)(() => {
369
+ return displayTabs.map((tabKey) => allTabItems[tabKey]);
370
+ }, [displayTabs, allTabItems]);
371
+ if (loading) {
372
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("channel-auth-setting", className), style: { ...style, display: "flex", justifyContent: "center", alignItems: "center", minHeight: "400px" } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { size: "large" }));
373
+ }
374
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("onlineshopauth", className), style }, /* @__PURE__ */ import_react.default.createElement("div", { className: "onlineshopauth-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 1, className: "onlineshopauth-title" }, import_utils.locales.getText("channel.auth.setting.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "onlineshopauth-description" }, import_utils.locales.getText("channel.auth.setting.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "onlineshopauth-tabs" }, /* @__PURE__ */ import_react.default.createElement(
375
+ import_antd.Tabs,
376
+ {
377
+ activeKey: activeTab,
378
+ onChange: setActiveTab,
379
+ items: tabItems
380
+ }
381
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "onlineshopauth-footer" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: handleSave }, import_utils.locales.getText("channel.auth.setting.button.save"))));
382
+ };
383
+ var OnlineShopAuth_default = Onlineshopauth;
@@ -0,0 +1,111 @@
1
+ .onlineshopauth {
2
+ width: 100%;
3
+ padding: 24px;
4
+ background: #ffffff;
5
+ border-radius: 8px;
6
+
7
+ &-header {
8
+ margin-bottom: 24px;
9
+ }
10
+
11
+ &-title {
12
+ font-size: 24px;
13
+ font-weight: 600;
14
+ line-height: 32px;
15
+ color: #1a1a1a;
16
+ margin: 0 0 8px 0;
17
+ }
18
+
19
+ &-description {
20
+ font-size: 14px;
21
+ line-height: 20px;
22
+ color: #666666;
23
+ margin: 0;
24
+ }
25
+
26
+ &-tabs {
27
+ margin-bottom: 24px;
28
+
29
+ :global {
30
+ .ant-tabs-nav {
31
+ margin-bottom: 24px;
32
+
33
+ &::before {
34
+ border-bottom: 1px solid #e8e8e8;
35
+ }
36
+ }
37
+
38
+ .ant-tabs-tab {
39
+ padding: 12px 0;
40
+ font-size: 14px;
41
+ font-weight: 500;
42
+ color: #666666;
43
+
44
+ &:hover {
45
+ color: #1890ff;
46
+ }
47
+
48
+ &.ant-tabs-tab-active {
49
+ .ant-tabs-tab-btn {
50
+ color: #1890ff;
51
+ }
52
+ }
53
+ }
54
+
55
+ .ant-tabs-ink-bar {
56
+ background: #1890ff;
57
+ height: 2px;
58
+ }
59
+
60
+ .ant-tabs-content-holder {
61
+ padding: 0;
62
+ }
63
+
64
+ .ant-tabs-tabpane {
65
+ padding: 0;
66
+ }
67
+ }
68
+ }
69
+
70
+ &-content {
71
+ min-height: 400px;
72
+ }
73
+
74
+ &-footer {
75
+ display: flex;
76
+ justify-content: flex-end;
77
+ align-items: center;
78
+ gap: 12px;
79
+ margin-top: 32px;
80
+ padding-top: 24px;
81
+ border-top: 1px solid #e8e8e8;
82
+
83
+ .ant-btn {
84
+ min-width: 80px;
85
+ height: 40px;
86
+ font-size: 14px;
87
+ border-radius: 6px;
88
+ }
89
+
90
+ .ant-btn-default {
91
+ border-color: #d9d9d9;
92
+ color: #595959;
93
+
94
+ &:hover {
95
+ border-color: #1890ff;
96
+ color: #1890ff;
97
+ }
98
+ }
99
+
100
+ .ant-btn-primary {
101
+ background: #1890ff;
102
+ border-color: #1890ff;
103
+
104
+ &:hover {
105
+ background: #40a9ff;
106
+ border-color: #40a9ff;
107
+ }
108
+ }
109
+ }
110
+ }
111
+
@@ -0,0 +1,105 @@
1
+ .page-setting {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 32px;
5
+ }
6
+
7
+ .page-setting-group {
8
+ display: flex;
9
+ flex-direction: row;
10
+ gap: 24px;
11
+ align-items: flex-start;
12
+ }
13
+
14
+ .page-setting-group-header {
15
+ display: flex;
16
+ flex-direction: column;
17
+ gap: 4px;
18
+ flex-shrink: 0;
19
+ width: 280px;
20
+ padding-top: 24px;
21
+ }
22
+
23
+ .page-setting-group-title {
24
+ font-size: 18px;
25
+ font-weight: 600;
26
+ color: rgba(0, 0, 0, 0.88);
27
+ margin: 0;
28
+ }
29
+
30
+ .page-setting-group-description {
31
+ font-size: 14px;
32
+ color: rgba(0, 0, 0, 0.45);
33
+ margin: 0;
34
+ }
35
+
36
+ .page-setting-group-content {
37
+ flex: 1;
38
+ min-width: 0;
39
+ }
40
+
41
+ .page-setting-checkbox {
42
+ display: flex;
43
+ flex-direction: column;
44
+ gap: 4px;
45
+ padding: 16px;
46
+ border: 1px solid #e0e0e0;
47
+ border-radius: 8px;
48
+ margin-bottom: 16px;
49
+ }
50
+
51
+ .page-setting-checkbox-wrapper {
52
+ display: flex;
53
+ align-items: center;
54
+ }
55
+
56
+ .page-setting-checkbox-label {
57
+ display: flex;
58
+ flex-direction: column;
59
+ gap: 2px;
60
+ margin-left: 8px;
61
+ }
62
+
63
+ .page-setting-checkbox-label-text {
64
+ font-size: 14px;
65
+ font-weight: 500;
66
+ color: rgba(0, 0, 0, 0.88);
67
+ }
68
+
69
+ .page-setting-checkbox-label-description {
70
+ font-size: 13px;
71
+ color: rgba(0, 0, 0, 0.45);
72
+ }
73
+
74
+ /* Divider */
75
+ .page-setting-divider {
76
+ height: 1px;
77
+ background: #e0e0e0;
78
+ margin: 16px 0;
79
+ }
80
+
81
+ .page-setting-footer {
82
+ display: flex;
83
+ justify-content: flex-end;
84
+ }
85
+
86
+ /* Responsive */
87
+ @media (max-width: 768px) {
88
+ .page-setting {
89
+ gap: 24px;
90
+ }
91
+
92
+ .page-setting-group {
93
+ flex-direction: column;
94
+ gap: 12px;
95
+ }
96
+
97
+ .page-setting-group-header {
98
+ width: 100%;
99
+ padding-top: 0;
100
+ }
101
+
102
+ .page-setting-checkbox {
103
+ padding: 12px;
104
+ }
105
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { PageSettingProps } from './types';
3
+ import './PageSetting.less';
4
+ declare const PageSetting: React.ForwardRefExoticComponent<PageSettingProps & React.RefAttributes<{
5
+ validateFields: () => Promise<any>;
6
+ }>>;
7
+ export default PageSetting;
8
+ export type { PageSettingProps, PageSettingValue } from './types';