@pisell/private-materials 3.4.16 → 3.4.18

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 (211) 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 +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Content/index.js +1 -1
  12. package/es/components/appointmentBooking/components/Content/index.less +3 -3
  13. package/es/components/appointmentBooking/components/Services/index.js +2 -2
  14. package/es/components/appointmentBooking/index.js +8 -2
  15. package/es/components/booking/info2/service/addTimeModal/index.js +0 -1
  16. package/es/components/booking/utils.d.ts +2 -2
  17. package/es/components/eftposPay/hooks.d.ts +1 -1
  18. package/es/components/eftposPay/store/index.d.ts +2 -2
  19. package/es/components/eventBooking/index.js +8 -1
  20. package/es/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
  21. package/es/hooks/useWindowSize.js +8 -1
  22. package/es/index.d.ts +3 -0
  23. package/es/index.js +4 -1
  24. package/es/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
  25. package/es/plus/productSelect/CategoryTabs/CategorySkeleton.js +29 -0
  26. package/es/plus/productSelect/CategoryTabs/CategorySkeleton.less +30 -0
  27. package/es/plus/productSelect/CategoryTabs/index.d.ts +18 -0
  28. package/es/plus/productSelect/CategoryTabs/index.js +171 -0
  29. package/es/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +10 -0
  30. package/es/plus/productSelect/ProductCard/ProductCardSkeleton.js +37 -0
  31. package/es/plus/productSelect/ProductCard/ProductCardSkeleton.less +81 -0
  32. package/es/plus/productSelect/ProductCard/index.d.ts +45 -0
  33. package/es/plus/productSelect/ProductCard/index.js +170 -0
  34. package/es/plus/productSelect/ProductCard/index.less +253 -0
  35. package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  36. package/es/plus/productSelect/ProductList/gridComponents.js +149 -0
  37. package/es/plus/productSelect/ProductList/index.d.ts +22 -0
  38. package/es/plus/productSelect/ProductList/index.js +72 -0
  39. package/es/plus/productSelect/ProductList/index.less +0 -0
  40. package/es/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
  41. package/es/plus/productSelect/components/IntersectionObserver.js +276 -0
  42. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  43. package/es/plus/productSelect/components/TabsStructure/TabsStructure.js +357 -0
  44. package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +224 -0
  45. package/es/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
  46. package/es/plus/productSelect/components/TabsStructure/hooks.js +243 -0
  47. package/es/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
  48. package/es/plus/productSelect/components/TabsStructure/index.js +13 -0
  49. package/es/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
  50. package/es/plus/productSelect/components/TabsStructure/styles.js +87 -0
  51. package/es/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
  52. package/es/plus/productSelect/components/TabsStructure/types.js +1 -0
  53. package/es/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
  54. package/es/plus/productSelect/components/TabsStructure/utils.js +56 -0
  55. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +12 -0
  56. package/es/plus/productSelect/components/pisellPriceText/index.js +44 -0
  57. package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
  58. package/es/plus/productSelect/hooks/useToken.d.ts +18 -0
  59. package/es/plus/productSelect/hooks/useToken.js +34 -0
  60. package/es/plus/productSelect/index.d.ts +31 -0
  61. package/es/plus/productSelect/index.js +270 -0
  62. package/es/plus/productSelect/index.less +56 -0
  63. package/es/plus/productSelect/locales.d.ts +18 -0
  64. package/es/plus/productSelect/locales.js +17 -0
  65. package/es/plus/productSelect/theme/token.d.ts +17 -0
  66. package/es/plus/productSelect/theme/token.js +19 -0
  67. package/es/plus/productSelect/utils.d.ts +39 -0
  68. package/es/plus/productSelect/utils.js +162 -0
  69. package/es/plus/saasCreateOrganization/components/Header.d.ts +3 -0
  70. package/es/plus/saasCreateOrganization/components/Header.js +62 -0
  71. package/es/plus/saasCreateOrganization/index.d.ts +4 -0
  72. package/es/plus/saasCreateOrganization/index.js +15 -0
  73. package/es/plus/saasCreateOrganization/index.less +55 -0
  74. package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
  75. package/es/plus/saasCreateOrganization/locales.js +14 -0
  76. package/es/plus/saasCreateOrganization/types.d.ts +69 -0
  77. package/es/plus/saasCreateOrganization/types.js +1 -0
  78. package/es/plus/saasLogin/index.d.ts +5 -0
  79. package/es/plus/saasLogin/index.js +165 -0
  80. package/es/plus/saasLogin/index.less +136 -0
  81. package/es/plus/saasLogin/locales.d.ts +51 -0
  82. package/es/plus/saasLogin/locales.js +50 -0
  83. package/es/plus/saasLogin/types.d.ts +62 -0
  84. package/es/plus/saasLogin/types.js +1 -0
  85. package/es/plus/saasLogin/utils.d.ts +35 -0
  86. package/es/plus/saasLogin/utils.js +31 -0
  87. package/es/plus/saasRegister/components/EntryEmail.d.ts +9 -0
  88. package/es/plus/saasRegister/components/EntryEmail.js +92 -0
  89. package/es/plus/saasRegister/components/EntryInfo.d.ts +9 -0
  90. package/es/plus/saasRegister/components/EntryInfo.js +145 -0
  91. package/es/plus/saasRegister/components/GoLogin.d.ts +4 -0
  92. package/es/plus/saasRegister/components/GoLogin.js +27 -0
  93. package/es/plus/saasRegister/components/Header.d.ts +3 -0
  94. package/es/plus/saasRegister/components/Header.js +62 -0
  95. package/es/plus/saasRegister/components/VerifyError.d.ts +8 -0
  96. package/es/plus/saasRegister/components/VerifyError.js +68 -0
  97. package/es/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
  98. package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
  99. package/es/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
  100. package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
  101. package/es/plus/saasRegister/index.d.ts +5 -0
  102. package/es/plus/saasRegister/index.js +246 -0
  103. package/es/plus/saasRegister/index.less +218 -0
  104. package/es/plus/saasRegister/locales.d.ts +117 -0
  105. package/es/plus/saasRegister/locales.js +116 -0
  106. package/es/plus/saasRegister/types.d.ts +114 -0
  107. package/es/plus/saasRegister/types.js +24 -0
  108. package/lib/components/appointmentBooking/components/Content/index.js +1 -1
  109. package/lib/components/appointmentBooking/components/Content/index.less +3 -3
  110. package/lib/components/appointmentBooking/components/Services/index.js +2 -2
  111. package/lib/components/appointmentBooking/index.js +6 -1
  112. package/lib/components/booking/info2/service/addTimeModal/index.js +0 -1
  113. package/lib/components/booking/utils.d.ts +2 -2
  114. package/lib/components/eftposPay/hooks.d.ts +1 -1
  115. package/lib/components/eftposPay/store/index.d.ts +2 -2
  116. package/lib/components/eventBooking/index.js +6 -1
  117. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
  118. package/lib/hooks/useWindowSize.js +6 -1
  119. package/lib/index.d.ts +3 -0
  120. package/lib/index.js +9 -0
  121. package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
  122. package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.js +62 -0
  123. package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.less +30 -0
  124. package/lib/plus/productSelect/CategoryTabs/index.d.ts +18 -0
  125. package/lib/plus/productSelect/CategoryTabs/index.js +183 -0
  126. package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +10 -0
  127. package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.js +58 -0
  128. package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.less +81 -0
  129. package/lib/plus/productSelect/ProductCard/index.d.ts +45 -0
  130. package/lib/plus/productSelect/ProductCard/index.js +184 -0
  131. package/lib/plus/productSelect/ProductCard/index.less +253 -0
  132. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  133. package/lib/plus/productSelect/ProductList/gridComponents.js +148 -0
  134. package/lib/plus/productSelect/ProductList/index.d.ts +22 -0
  135. package/lib/plus/productSelect/ProductList/index.js +86 -0
  136. package/lib/plus/productSelect/ProductList/index.less +0 -0
  137. package/lib/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
  138. package/lib/plus/productSelect/components/IntersectionObserver.js +269 -0
  139. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  140. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.js +393 -0
  141. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +224 -0
  142. package/lib/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
  143. package/lib/plus/productSelect/components/TabsStructure/hooks.js +209 -0
  144. package/lib/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
  145. package/lib/plus/productSelect/components/TabsStructure/index.js +92 -0
  146. package/lib/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
  147. package/lib/plus/productSelect/components/TabsStructure/styles.js +122 -0
  148. package/lib/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
  149. package/lib/plus/productSelect/components/TabsStructure/types.js +17 -0
  150. package/lib/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
  151. package/lib/plus/productSelect/components/TabsStructure/utils.js +72 -0
  152. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +12 -0
  153. package/lib/plus/productSelect/components/pisellPriceText/index.js +73 -0
  154. package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
  155. package/lib/plus/productSelect/hooks/useToken.d.ts +18 -0
  156. package/lib/plus/productSelect/hooks/useToken.js +50 -0
  157. package/lib/plus/productSelect/index.d.ts +31 -0
  158. package/lib/plus/productSelect/index.js +299 -0
  159. package/lib/plus/productSelect/index.less +56 -0
  160. package/lib/plus/productSelect/locales.d.ts +18 -0
  161. package/lib/plus/productSelect/locales.js +41 -0
  162. package/lib/plus/productSelect/theme/token.d.ts +17 -0
  163. package/lib/plus/productSelect/theme/token.js +47 -0
  164. package/lib/plus/productSelect/utils.d.ts +39 -0
  165. package/lib/plus/productSelect/utils.js +138 -0
  166. package/lib/plus/saasCreateOrganization/components/Header.d.ts +3 -0
  167. package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
  168. package/lib/plus/saasCreateOrganization/index.d.ts +4 -0
  169. package/lib/plus/saasCreateOrganization/index.js +47 -0
  170. package/lib/plus/saasCreateOrganization/index.less +55 -0
  171. package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
  172. package/lib/plus/saasCreateOrganization/locales.js +38 -0
  173. package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
  174. package/lib/plus/saasCreateOrganization/types.js +17 -0
  175. package/lib/plus/saasLogin/index.d.ts +5 -0
  176. package/lib/plus/saasLogin/index.js +171 -0
  177. package/lib/plus/saasLogin/index.less +136 -0
  178. package/lib/plus/saasLogin/locales.d.ts +51 -0
  179. package/lib/plus/saasLogin/locales.js +74 -0
  180. package/lib/plus/saasLogin/types.d.ts +62 -0
  181. package/lib/plus/saasLogin/types.js +17 -0
  182. package/lib/plus/saasLogin/utils.d.ts +35 -0
  183. package/lib/plus/saasLogin/utils.js +50 -0
  184. package/lib/plus/saasRegister/components/EntryEmail.d.ts +9 -0
  185. package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
  186. package/lib/plus/saasRegister/components/EntryInfo.d.ts +9 -0
  187. package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
  188. package/lib/plus/saasRegister/components/GoLogin.d.ts +4 -0
  189. package/lib/plus/saasRegister/components/GoLogin.js +58 -0
  190. package/lib/plus/saasRegister/components/Header.d.ts +3 -0
  191. package/lib/plus/saasRegister/components/Header.js +99 -0
  192. package/lib/plus/saasRegister/components/VerifyError.d.ts +8 -0
  193. package/lib/plus/saasRegister/components/VerifyError.js +123 -0
  194. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
  195. package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
  196. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
  197. package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
  198. package/lib/plus/saasRegister/index.d.ts +5 -0
  199. package/lib/plus/saasRegister/index.js +205 -0
  200. package/lib/plus/saasRegister/index.less +218 -0
  201. package/lib/plus/saasRegister/locales.d.ts +117 -0
  202. package/lib/plus/saasRegister/locales.js +140 -0
  203. package/lib/plus/saasRegister/types.d.ts +114 -0
  204. package/lib/plus/saasRegister/types.js +54 -0
  205. package/lowcode/saas-create-organization/meta.ts +214 -0
  206. package/lowcode/saas-create-organization/snippets.ts +25 -0
  207. package/lowcode/saas-login/meta.ts +370 -0
  208. package/lowcode/saas-login/snippets.ts +38 -0
  209. package/lowcode/saas-register/meta.ts +386 -0
  210. package/lowcode/saas-register/snippets.ts +31 -0
  211. package/package.json +2 -2
@@ -0,0 +1,51 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell-saas-login-welcome-message': string;
4
+ 'pisell-saas-login-title': string;
5
+ 'pisell-saas-login-subtitle': string;
6
+ 'pisell-saas-login-email-label': string;
7
+ 'pisell-saas-login-email-placeholder': string;
8
+ 'pisell-saas-login-password-label': string;
9
+ 'pisell-saas-login-password-placeholder': string;
10
+ 'pisell-saas-login-email-error': string;
11
+ 'pisell-saas-login-email-error-valid': string;
12
+ 'pisell-saas-login-password-required': string;
13
+ 'pisell-saas-login-password-error': string;
14
+ 'pisell-saas-login-button': string;
15
+ 'pisell-saas-login-register-text': string;
16
+ 'pisell-saas-login-register-link': string;
17
+ };
18
+ 'zh-CN': {
19
+ 'pisell-saas-login-welcome-message': string;
20
+ 'pisell-saas-login-title': string;
21
+ 'pisell-saas-login-subtitle': string;
22
+ 'pisell-saas-login-email-label': string;
23
+ 'pisell-saas-login-email-placeholder': string;
24
+ 'pisell-saas-login-password-label': string;
25
+ 'pisell-saas-login-password-placeholder': string;
26
+ 'pisell-saas-login-email-error': string;
27
+ 'pisell-saas-login-email-error-valid': string;
28
+ 'pisell-saas-login-password-required': string;
29
+ 'pisell-saas-login-password-error': string;
30
+ 'pisell-saas-login-button': string;
31
+ 'pisell-saas-login-register-text': string;
32
+ 'pisell-saas-login-register-link': string;
33
+ };
34
+ 'zh-HK': {
35
+ 'pisell-saas-login-welcome-message': string;
36
+ 'pisell-saas-login-title': string;
37
+ 'pisell-saas-login-subtitle': string;
38
+ 'pisell-saas-login-email-label': string;
39
+ 'pisell-saas-login-email-placeholder': string;
40
+ 'pisell-saas-login-password-label': string;
41
+ 'pisell-saas-login-password-placeholder': string;
42
+ 'pisell-saas-login-email-error': string;
43
+ 'pisell-saas-login-email-error-valid': string;
44
+ 'pisell-saas-login-password-required': string;
45
+ 'pisell-saas-login-password-error': string;
46
+ 'pisell-saas-login-button': string;
47
+ 'pisell-saas-login-register-text': string;
48
+ 'pisell-saas-login-register-link': string;
49
+ };
50
+ };
51
+ export default _default;
@@ -0,0 +1,74 @@
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/plus/saasLogin/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
+ "pisell-saas-login-welcome-message": "Welcome to",
28
+ "pisell-saas-login-title": "Log in to your account",
29
+ "pisell-saas-login-subtitle": "Welcome back! Please enter your details.",
30
+ "pisell-saas-login-email-label": "Email",
31
+ "pisell-saas-login-email-placeholder": "Enter your email",
32
+ "pisell-saas-login-password-label": "Password",
33
+ "pisell-saas-login-password-placeholder": "Enter your password",
34
+ "pisell-saas-login-email-error": "Please input your email!",
35
+ "pisell-saas-login-email-error-valid": "Please enter a valid email!",
36
+ "pisell-saas-login-password-required": "Please input your password!",
37
+ "pisell-saas-login-password-error": "Please enter the correct password",
38
+ "pisell-saas-login-button": "Log in",
39
+ "pisell-saas-login-register-text": "Don't have an account?",
40
+ "pisell-saas-login-register-link": "Create account"
41
+ },
42
+ "zh-CN": {
43
+ "pisell-saas-login-welcome-message": "欢迎使用",
44
+ "pisell-saas-login-title": "请登录您的账户",
45
+ "pisell-saas-login-subtitle": "欢迎回来!请输入您的详细信息。",
46
+ "pisell-saas-login-email-label": "邮箱",
47
+ "pisell-saas-login-email-placeholder": "输入您的邮箱",
48
+ "pisell-saas-login-password-label": "密码",
49
+ "pisell-saas-login-password-placeholder": "输入您的密码",
50
+ "pisell-saas-login-email-error": "请输入您的邮箱!",
51
+ "pisell-saas-login-email-error-valid": "请输入有效的邮箱!",
52
+ "pisell-saas-login-password-required": "请输入您的密码!",
53
+ "pisell-saas-login-password-error": "请输入正确的密码",
54
+ "pisell-saas-login-button": "登录",
55
+ "pisell-saas-login-register-text": "还没有账号?",
56
+ "pisell-saas-login-register-link": "创建账号"
57
+ },
58
+ "zh-HK": {
59
+ "pisell-saas-login-welcome-message": "歡迎使用",
60
+ "pisell-saas-login-title": "請登錄您的賬戶",
61
+ "pisell-saas-login-subtitle": "歡迎回來!請輸入您的詳細信息。",
62
+ "pisell-saas-login-email-label": "電子郵件",
63
+ "pisell-saas-login-email-placeholder": "輸入您的電子郵件",
64
+ "pisell-saas-login-password-label": "密碼",
65
+ "pisell-saas-login-password-placeholder": "輸入您的密碼",
66
+ "pisell-saas-login-email-error": "請輸入您的電子郵件!",
67
+ "pisell-saas-login-email-error-valid": "請輸入有效的電子郵件!",
68
+ "pisell-saas-login-password-required": "請輸入您的密碼!",
69
+ "pisell-saas-login-password-error": "請輸入正確的密碼",
70
+ "pisell-saas-login-button": "登錄",
71
+ "pisell-saas-login-register-text": "還沒有帳號?",
72
+ "pisell-saas-login-register-link": "創建帳號"
73
+ }
74
+ };
@@ -0,0 +1,62 @@
1
+ export interface SaasLoginProps {
2
+ /** 是否显示Logo */
3
+ showLogo?: boolean;
4
+ /** Logo图片地址 */
5
+ logo?: string;
6
+ /** Logo位置 */
7
+ logoPosition?: 'left' | 'center' | 'right';
8
+ /** Logo尺寸 */
9
+ logoSize?: {
10
+ width?: number;
11
+ height?: number;
12
+ };
13
+ /** 是否显示欢迎语 */
14
+ showWelcomeMessage?: boolean;
15
+ /** 欢迎语 */
16
+ welcomeMessage?: string;
17
+ /** 欢迎语对齐方式 */
18
+ welcomeMessageAlign?: 'left' | 'center' | 'right';
19
+ /** 是否显示标题 */
20
+ showTitle?: boolean;
21
+ /** 标题 */
22
+ title?: string;
23
+ /** 标题对齐方式 */
24
+ titleAlign?: 'left' | 'center' | 'right';
25
+ /** 副标题 */
26
+ subtitle?: string;
27
+ /** 是否显示副标题 */
28
+ showSubtitle?: boolean;
29
+ /** 副标题对齐方式 */
30
+ subtitleAlign?: 'left' | 'center' | 'right';
31
+ /** 邮箱输入框标题 */
32
+ emailLabel?: string;
33
+ /** 邮箱输入框占位符 */
34
+ emailPlaceholder?: string;
35
+ /** 密码输入框标题 */
36
+ passwordLabel?: string;
37
+ /** 密码输入框占位符 */
38
+ passwordPlaceholder?: string;
39
+ /** 登录按钮文本 */
40
+ buttonText?: string;
41
+ /** 是否显示注册入口 */
42
+ showRegister?: boolean;
43
+ /** 是否显示注册标题 */
44
+ showRegisterText?: boolean;
45
+ /** 注册提示文本 */
46
+ registerText?: string;
47
+ /** 是否显示注册链接文本 */
48
+ showRegisterLinkText?: boolean;
49
+ /** 注册链接文本 */
50
+ registerLinkText?: string;
51
+ /** 注册对齐方式 */
52
+ registerAlign?: 'left' | 'center' | 'right';
53
+ /** 事件回调 */
54
+ onLogin?: (values: {
55
+ email: string;
56
+ loginMethod: string;
57
+ }) => void;
58
+ /** 去注册入口点击回调 */
59
+ onGoRegister?: () => void;
60
+ }
61
+ export interface SaasLoginData extends Required<Omit<SaasLoginProps, 'onLogin' | 'onRegister'>> {
62
+ }
@@ -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/plus/saasLogin/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,35 @@
1
+ import { SaasLoginProps } from './types';
2
+ export declare const mergeData: (locales: any, props: SaasLoginProps) => {
3
+ logo: string;
4
+ logoSize: {
5
+ width?: number | undefined;
6
+ height?: number | undefined;
7
+ };
8
+ logoPosition: "center" | "left" | "right";
9
+ welcomeMessage: any;
10
+ welcomeMessageAlign: "center" | "left" | "right";
11
+ title: any;
12
+ titleAlign: "center" | "left" | "right";
13
+ subtitle: any;
14
+ subtitleAlign: "center" | "left" | "right";
15
+ emailLabel: any;
16
+ emailPlaceholder: any;
17
+ passwordLabel: any;
18
+ passwordPlaceholder: any;
19
+ buttonText: any;
20
+ registerText: any;
21
+ registerLinkText: any;
22
+ registerAlign: "center" | "left" | "right";
23
+ showLogo?: boolean | undefined;
24
+ showWelcomeMessage?: boolean | undefined;
25
+ showTitle?: boolean | undefined;
26
+ showSubtitle?: boolean | undefined;
27
+ showRegister?: boolean | undefined;
28
+ showRegisterText?: boolean | undefined;
29
+ showRegisterLinkText?: boolean | undefined;
30
+ onLogin?: ((values: {
31
+ email: string;
32
+ loginMethod: string;
33
+ }) => void) | undefined;
34
+ onGoRegister?: (() => void) | undefined;
35
+ };
@@ -0,0 +1,50 @@
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/plus/saasLogin/utils.ts
20
+ var utils_exports = {};
21
+ __export(utils_exports, {
22
+ mergeData: () => mergeData
23
+ });
24
+ module.exports = __toCommonJS(utils_exports);
25
+ var mergeData = (locales, props) => {
26
+ return {
27
+ ...props,
28
+ logo: props.logo || "",
29
+ logoSize: props.logoSize || { width: 48, height: 48 },
30
+ logoPosition: props.logoPosition ?? "center",
31
+ welcomeMessage: props.welcomeMessage ?? locales.getText("pisell-saas-login-welcome-message"),
32
+ welcomeMessageAlign: props.welcomeMessageAlign ?? "center",
33
+ title: props.title ?? locales.getText("pisell-saas-login-title"),
34
+ titleAlign: props.titleAlign ?? "center",
35
+ subtitle: props.subtitle ?? locales.getText("pisell-saas-login-subtitle"),
36
+ subtitleAlign: props.subtitleAlign ?? "center",
37
+ emailLabel: props.emailLabel ?? locales.getText("pisell-saas-login-email-label"),
38
+ emailPlaceholder: props.emailPlaceholder ?? locales.getText("pisell-saas-login-email-placeholder"),
39
+ passwordLabel: props.passwordLabel ?? locales.getText("pisell-saas-login-password-label"),
40
+ passwordPlaceholder: props.passwordPlaceholder ?? locales.getText("pisell-saas-login-password-placeholder"),
41
+ buttonText: props.buttonText ?? locales.getText("pisell-saas-login-button"),
42
+ registerText: props.registerText ?? locales.getText("pisell-saas-login-register-text"),
43
+ registerLinkText: props.registerLinkText ?? locales.getText("pisell-saas-login-register-link"),
44
+ registerAlign: props.registerAlign ?? "center"
45
+ };
46
+ };
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ mergeData
50
+ });
@@ -0,0 +1,9 @@
1
+ import { FormInstance } from 'antd';
2
+ import { SRProps } from '../types';
3
+ import '../index.less';
4
+ interface EntryEmailProps extends SRProps {
5
+ form: FormInstance;
6
+ handleVerifyEmail: (bool: boolean) => Promise<void>;
7
+ }
8
+ declare const EntryEmail: (props: EntryEmailProps) => JSX.Element;
9
+ export default EntryEmail;
@@ -0,0 +1,92 @@
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/plus/saasRegister/components/EntryEmail.tsx
30
+ var EntryEmail_exports = {};
31
+ __export(EntryEmail_exports, {
32
+ default: () => EntryEmail_default
33
+ });
34
+ module.exports = __toCommonJS(EntryEmail_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
37
+ var import_antd = require("antd");
38
+ var import__ = require("../index.less");
39
+ var EntryEmail = (props) => {
40
+ const [loading, setLoading] = (0, import_react.useState)(false);
41
+ const {
42
+ emailLabel = import_utils.locales.getText("pisell-saas-register-email-label"),
43
+ emailPlaceholder = import_utils.locales.getText(
44
+ "pisell-saas-register-email-placeholder"
45
+ ),
46
+ onVerifyEmail,
47
+ buttonText = import_utils.locales.getText("pisell-saas-register-button"),
48
+ form
49
+ } = props;
50
+ const emailRules = [
51
+ {
52
+ required: true,
53
+ message: import_utils.locales.getText("pisell-saas-register-email-error")
54
+ },
55
+ {
56
+ type: "email",
57
+ message: import_utils.locales.getText("pisell-saas-register-email-error-valid")
58
+ }
59
+ ];
60
+ const _onClick = async () => {
61
+ try {
62
+ setLoading(true);
63
+ const values = await form.validateFields();
64
+ const result = await (onVerifyEmail == null ? void 0 : onVerifyEmail(values.email));
65
+ props.handleVerifyEmail(!!result);
66
+ } catch (error) {
67
+ console.error("handleVerifyEmail failed:", error);
68
+ } finally {
69
+ setLoading(false);
70
+ }
71
+ };
72
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "form-item-label" }, emailLabel), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "email", rules: emailRules }, /* @__PURE__ */ import_react.default.createElement(
73
+ import_antd.Input,
74
+ {
75
+ placeholder: emailPlaceholder,
76
+ size: "large",
77
+ className: "pisell-saas-register-input"
78
+ }
79
+ )), /* @__PURE__ */ import_react.default.createElement(
80
+ import_antd.Button,
81
+ {
82
+ type: "primary",
83
+ block: true,
84
+ size: "large",
85
+ loading,
86
+ className: "pisell-saas-register-button",
87
+ onClick: _onClick
88
+ },
89
+ buttonText
90
+ ));
91
+ };
92
+ var EntryEmail_default = EntryEmail;
@@ -0,0 +1,9 @@
1
+ import { FormInstance } from 'antd';
2
+ import { SRProps } from '../types';
3
+ import '../index.less';
4
+ interface IProps extends SRProps {
5
+ form: FormInstance;
6
+ emailToken?: string;
7
+ }
8
+ declare const EntryInfo: (props: IProps) => JSX.Element;
9
+ export default EntryInfo;
@@ -0,0 +1,128 @@
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/plus/saasRegister/components/EntryInfo.tsx
30
+ var EntryInfo_exports = {};
31
+ __export(EntryInfo_exports, {
32
+ default: () => EntryInfo_default
33
+ });
34
+ module.exports = __toCommonJS(EntryInfo_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_utils = require("@pisell/utils");
38
+ var import__ = require("../index.less");
39
+ var EntryInfo = (props) => {
40
+ const {
41
+ passwordLabel = import_utils.locales.getText("pisell-saas-register-password-label"),
42
+ passwordPlaceholder = import_utils.locales.getText(
43
+ "pisell-saas-register-password-placeholder"
44
+ ),
45
+ showDivider = true,
46
+ dividerText = import_utils.locales.getText("pisell-saas-register-divider-text"),
47
+ showFirstName = true,
48
+ showLastName = true,
49
+ form
50
+ } = props;
51
+ const [loading, setLoading] = (0, import_react.useState)(false);
52
+ const _handleEntryInfo = async () => {
53
+ var _a;
54
+ if (loading) {
55
+ return;
56
+ }
57
+ setLoading(true);
58
+ try {
59
+ const values = await form.validateFields() || {};
60
+ await ((_a = props == null ? void 0 : props.onEntryInfo) == null ? void 0 : _a.call(props, { ...values, token: props.emailToken }));
61
+ } catch (error) {
62
+ console.error("handleEntryInfo_failed:", error);
63
+ } finally {
64
+ setLoading(false);
65
+ }
66
+ };
67
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
68
+ "div",
69
+ {
70
+ className: "pisell-saas-register-form-email",
71
+ style: { marginTop: "12px" }
72
+ },
73
+ form.getFieldValue("email")
74
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-form" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "form-item-label" }, passwordLabel), /* @__PURE__ */ import_react.default.createElement(
75
+ import_antd.Form.Item,
76
+ {
77
+ name: "password",
78
+ rules: [
79
+ {
80
+ required: true,
81
+ message: import_utils.locales.getText(
82
+ "pisell-saas-register-password-required"
83
+ )
84
+ }
85
+ ]
86
+ },
87
+ /* @__PURE__ */ import_react.default.createElement(
88
+ import_antd.Input.Password,
89
+ {
90
+ placeholder: passwordPlaceholder,
91
+ size: "large",
92
+ className: "pisell-saas-register-input"
93
+ }
94
+ )
95
+ ), showDivider && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-divider" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-register-divider-text" }, dividerText)), /* @__PURE__ */ import_react.default.createElement("div", null, showFirstName && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "form-item-label" }, import_utils.locales.getText("pisell-saas-register-first-name-label")), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "firstName", rules: [{ required: false }] }, /* @__PURE__ */ import_react.default.createElement(
96
+ import_antd.Input,
97
+ {
98
+ placeholder: import_utils.locales.getText(
99
+ "pisell-saas-register-first-name-placeholder"
100
+ ),
101
+ size: "large",
102
+ className: "pisell-saas-register-input",
103
+ maxLength: 50
104
+ }
105
+ ))), showLastName && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "form-item-label" }, import_utils.locales.getText("pisell-saas-register-last-name-label")), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "lastName", rules: [{ required: false }] }, /* @__PURE__ */ import_react.default.createElement(
106
+ import_antd.Input,
107
+ {
108
+ placeholder: import_utils.locales.getText(
109
+ "pisell-saas-register-last-name-placeholder"
110
+ ),
111
+ size: "large",
112
+ className: "pisell-saas-register-input",
113
+ maxLength: 50
114
+ }
115
+ ))), /* @__PURE__ */ import_react.default.createElement(
116
+ import_antd.Button,
117
+ {
118
+ type: "primary",
119
+ block: true,
120
+ size: "large",
121
+ className: "pisell-saas-register-button",
122
+ loading,
123
+ onClick: _handleEntryInfo
124
+ },
125
+ import_utils.locales.getText("pisell-saas-register-button")
126
+ ))));
127
+ };
128
+ var EntryInfo_default = EntryInfo;
@@ -0,0 +1,4 @@
1
+ import { SRProps } from '../types';
2
+ import '../index.less';
3
+ declare const GoLogin: (props: SRProps) => JSX.Element;
4
+ export default GoLogin;
@@ -0,0 +1,58 @@
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/plus/saasRegister/components/GoLogin.tsx
30
+ var GoLogin_exports = {};
31
+ __export(GoLogin_exports, {
32
+ default: () => GoLogin_default
33
+ });
34
+ module.exports = __toCommonJS(GoLogin_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
37
+ var import__ = require("../index.less");
38
+ var GoLogin = (props) => {
39
+ const {
40
+ showLogin = true,
41
+ loginAlign = "center",
42
+ showLoginText = true,
43
+ loginText = import_utils.locales.getText("pisell-saas-register-login-text"),
44
+ loginLinkText = import_utils.locales.getText("pisell-saas-register-login-link-text"),
45
+ showLoginLinkText = true,
46
+ onGoLogin
47
+ } = props;
48
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showLogin && /* @__PURE__ */ import_react.default.createElement(
49
+ "p",
50
+ {
51
+ className: "pisell-saas-register-action",
52
+ style: { textAlign: loginAlign }
53
+ },
54
+ showLoginText ? loginText : "",
55
+ showLoginLinkText && /* @__PURE__ */ import_react.default.createElement("a", { onClick: onGoLogin }, loginLinkText || "")
56
+ ));
57
+ };
58
+ var GoLogin_default = GoLogin;
@@ -0,0 +1,3 @@
1
+ import { SRProps } from '../types';
2
+ import '../index.less';
3
+ export declare const Header: (props: SRProps) => JSX.Element;