@pisell/private-materials 6.3.10 → 6.3.12

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 (316) 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 +13 -13
  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/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Summary/utils.d.ts +1 -1
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +27 -3
  14. package/es/components/appointmentBooking/components/Content/index.js +3 -3
  15. package/es/components/appointmentBooking/components/Voucher/index.js +6 -5
  16. package/es/components/appointmentBooking/hooks.js +4 -2
  17. package/es/components/appointmentBooking/index.js +10 -0
  18. package/es/components/booking/addons/index.js +12 -8
  19. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  20. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  21. package/es/components/booking/components/browserSelect/index.js +1 -1
  22. package/es/components/booking/components/footer/index.js +19 -9
  23. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  24. package/es/components/booking/components/voucher/index.js +8 -5
  25. package/es/components/booking/forms/model.js +5 -5
  26. package/es/components/booking/forms/table/index.d.ts +0 -1
  27. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  28. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  29. package/es/components/booking/info/index.d.ts +0 -1
  30. package/es/components/booking/info/service/like/index.d.ts +0 -1
  31. package/es/components/booking/info/service/like/index.js +1 -1
  32. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  33. package/es/components/booking/info2/service/addService/utils.js +16 -1
  34. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  35. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  36. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  37. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  38. package/es/components/booking/notes/model.js +5 -5
  39. package/es/components/booking/payments/model.js +5 -5
  40. package/es/components/booking/utils.d.ts +2 -2
  41. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  42. package/es/components/eftpos/form/index.d.ts +0 -1
  43. package/es/components/eftpos/group/index.d.ts +0 -1
  44. package/es/components/eftpos/hooks.d.ts +0 -1
  45. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  46. package/es/components/eftpos/icon/device.d.ts +0 -1
  47. package/es/components/eftpos/receipt/index.d.ts +0 -1
  48. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  49. package/es/components/eftposPay/amount.d.ts +1 -1
  50. package/es/components/eftposPay/app.d.ts +0 -1
  51. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  52. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  53. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  54. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  55. package/es/components/eftposPay/device.d.ts +1 -1
  56. package/es/components/eftposPay/hooks.d.ts +2 -2
  57. package/es/components/eftposPay/store/index.d.ts +3 -3
  58. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  59. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +34 -8
  60. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  62. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  64. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/progressBar/index.js +0 -20
  66. package/es/components/listComponent/index.js +5 -5
  67. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -20
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  69. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  70. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  71. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  72. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  73. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  74. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
  75. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -12
  76. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +24 -31
  77. package/es/components/pay/toC/utils.d.ts +1 -1
  78. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  79. package/es/components/productExtension/card/index.js +3 -3
  80. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  81. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  82. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  83. package/es/components/productExtension/fields/Forms/index.js +12 -12
  84. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  85. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  86. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  87. package/es/components/productExtension/server.js +2 -2
  88. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  89. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  90. package/es/components/schedules/calendar/index.js +4 -4
  91. package/es/components/schedules/calendar/serve.js +2 -2
  92. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  93. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  94. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  95. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  96. package/es/components/schedules/components/ResourceList/index.js +1 -1
  97. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  98. package/es/components/schedules/components/Search/index.js +5 -5
  99. package/es/components/schedules/model.js +5 -5
  100. package/es/components/schedules/openHours/index.js +1 -1
  101. package/es/components/schedules/openHours/serve.js +2 -2
  102. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  103. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  104. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  105. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  106. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  107. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  108. package/es/components/schedules/products/index.d.ts +0 -1
  109. package/es/components/schedules/products/serve.js +2 -2
  110. package/es/components/schedules/products/utils.js +5 -5
  111. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  112. package/es/components/schedules/resources/detail/index.js +10 -10
  113. package/es/components/schedules/resources/list/index.js +2 -2
  114. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  115. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  116. package/es/components/schedules/resources/serve.js +2 -2
  117. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  118. package/es/components/schedules/utils.d.ts +1 -1
  119. package/es/components/schedules/utils.js +4 -4
  120. package/es/components/selectModal/index.js +2 -2
  121. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  122. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  123. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  124. package/es/components/wallet/Detail/index.js +250 -64
  125. package/es/components/wallet/Detail/locales.d.ts +51 -0
  126. package/es/components/wallet/Detail/locales.js +57 -3
  127. package/es/components/wallet/Detail/serve.js +5 -1
  128. package/es/components/wallet/components/UsageRules/index.d.ts +23 -0
  129. package/es/components/wallet/components/UsageRules/index.js +147 -0
  130. package/es/components/wallet/components/UsageRules/index.less +157 -0
  131. package/es/components/wallet/components/WalletCard.js +2 -3
  132. package/es/components/wallet/components/index.d.ts +1 -0
  133. package/es/components/wallet/components/index.js +2 -1
  134. package/es/hooks/useComponents.js +1 -1
  135. package/es/index.d.ts +3 -0
  136. package/es/index.js +4 -1
  137. package/es/plus/productSelect/ProductCard/index.less +5 -22
  138. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  139. package/es/plus/productSelect/components/pisellPriceText/index.js +1 -0
  140. package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
  141. package/es/plus/saasCreateOrganization/components/Header.d.ts +3 -0
  142. package/es/plus/saasCreateOrganization/components/Header.js +62 -0
  143. package/es/plus/saasCreateOrganization/index.d.ts +4 -0
  144. package/es/plus/saasCreateOrganization/index.js +15 -0
  145. package/es/plus/saasCreateOrganization/index.less +55 -0
  146. package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
  147. package/es/plus/saasCreateOrganization/locales.js +14 -0
  148. package/es/plus/saasCreateOrganization/types.d.ts +69 -0
  149. package/es/plus/saasCreateOrganization/types.js +1 -0
  150. package/es/plus/saasLogin/index.d.ts +5 -0
  151. package/es/plus/saasLogin/index.js +165 -0
  152. package/es/plus/saasLogin/index.less +136 -0
  153. package/es/plus/saasLogin/locales.d.ts +51 -0
  154. package/es/plus/saasLogin/locales.js +50 -0
  155. package/es/plus/saasLogin/types.d.ts +62 -0
  156. package/es/plus/saasLogin/types.js +1 -0
  157. package/es/plus/saasLogin/utils.d.ts +35 -0
  158. package/es/plus/saasLogin/utils.js +31 -0
  159. package/es/plus/saasRegister/components/EntryEmail.d.ts +9 -0
  160. package/es/plus/saasRegister/components/EntryEmail.js +92 -0
  161. package/es/plus/saasRegister/components/EntryInfo.d.ts +9 -0
  162. package/es/plus/saasRegister/components/EntryInfo.js +145 -0
  163. package/es/plus/saasRegister/components/GoLogin.d.ts +4 -0
  164. package/es/plus/saasRegister/components/GoLogin.js +27 -0
  165. package/es/plus/saasRegister/components/Header.d.ts +3 -0
  166. package/es/plus/saasRegister/components/Header.js +62 -0
  167. package/es/plus/saasRegister/components/VerifyError.d.ts +8 -0
  168. package/es/plus/saasRegister/components/VerifyError.js +68 -0
  169. package/es/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
  170. package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
  171. package/es/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
  172. package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
  173. package/es/plus/saasRegister/index.d.ts +5 -0
  174. package/es/plus/saasRegister/index.js +246 -0
  175. package/es/plus/saasRegister/index.less +218 -0
  176. package/es/plus/saasRegister/locales.d.ts +117 -0
  177. package/es/plus/saasRegister/locales.js +116 -0
  178. package/es/plus/saasRegister/types.d.ts +114 -0
  179. package/es/plus/saasRegister/types.js +24 -0
  180. package/es/utils/index.d.ts +1 -1
  181. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  182. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  183. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +22 -2
  184. package/lib/components/appointmentBooking/components/Content/index.js +2 -2
  185. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  186. package/lib/components/appointmentBooking/hooks.js +4 -2
  187. package/lib/components/appointmentBooking/index.js +6 -0
  188. package/lib/components/booking/addons/index.js +1 -11
  189. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  190. package/lib/components/booking/components/footer/index.js +15 -8
  191. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  192. package/lib/components/booking/components/voucher/index.js +3 -1
  193. package/lib/components/booking/forms/table/index.d.ts +0 -1
  194. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  195. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  196. package/lib/components/booking/info/index.d.ts +0 -1
  197. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  198. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  199. package/lib/components/booking/info2/service/addService/utils.js +15 -3
  200. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  201. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  202. package/lib/components/booking/utils.d.ts +2 -2
  203. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  204. package/lib/components/eftpos/form/index.d.ts +0 -1
  205. package/lib/components/eftpos/group/index.d.ts +0 -1
  206. package/lib/components/eftpos/hooks.d.ts +0 -1
  207. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  208. package/lib/components/eftpos/icon/device.d.ts +0 -1
  209. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  210. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  211. package/lib/components/eftposPay/amount.d.ts +1 -1
  212. package/lib/components/eftposPay/app.d.ts +0 -1
  213. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  214. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  215. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  216. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  217. package/lib/components/eftposPay/device.d.ts +1 -1
  218. package/lib/components/eftposPay/hooks.d.ts +2 -2
  219. package/lib/components/eftposPay/store/index.d.ts +3 -3
  220. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  221. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +30 -8
  222. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  223. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  224. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  225. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  226. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  227. package/lib/components/eventBooking/components/progressBar/index.js +0 -18
  228. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -11
  229. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  230. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  231. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  232. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  233. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  234. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  235. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
  236. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -9
  237. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -6
  238. package/lib/components/pay/toC/utils.d.ts +1 -1
  239. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  240. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  241. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  242. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  243. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  244. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  245. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  246. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  247. package/lib/components/schedules/products/index.d.ts +0 -1
  248. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  249. package/lib/components/schedules/utils.d.ts +1 -1
  250. package/lib/components/schedules/utils.js +1 -1
  251. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  252. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  253. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  254. package/lib/components/wallet/Detail/index.js +128 -9
  255. package/lib/components/wallet/Detail/locales.d.ts +51 -0
  256. package/lib/components/wallet/Detail/locales.js +57 -3
  257. package/lib/components/wallet/Detail/serve.js +6 -1
  258. package/lib/components/wallet/components/UsageRules/index.d.ts +23 -0
  259. package/lib/components/wallet/components/UsageRules/index.js +113 -0
  260. package/lib/components/wallet/components/UsageRules/index.less +157 -0
  261. package/lib/components/wallet/components/WalletCard.js +1 -1
  262. package/lib/components/wallet/components/index.d.ts +1 -0
  263. package/lib/components/wallet/components/index.js +3 -0
  264. package/lib/index.d.ts +3 -0
  265. package/lib/index.js +9 -0
  266. package/lib/plus/productSelect/ProductCard/index.less +5 -22
  267. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  268. package/lib/plus/productSelect/components/pisellPriceText/index.js +1 -0
  269. package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
  270. package/lib/plus/saasCreateOrganization/components/Header.d.ts +3 -0
  271. package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
  272. package/lib/plus/saasCreateOrganization/index.d.ts +4 -0
  273. package/lib/plus/saasCreateOrganization/index.js +47 -0
  274. package/lib/plus/saasCreateOrganization/index.less +55 -0
  275. package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
  276. package/lib/plus/saasCreateOrganization/locales.js +38 -0
  277. package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
  278. package/lib/plus/saasCreateOrganization/types.js +17 -0
  279. package/lib/plus/saasLogin/index.d.ts +5 -0
  280. package/lib/plus/saasLogin/index.js +171 -0
  281. package/lib/plus/saasLogin/index.less +136 -0
  282. package/lib/plus/saasLogin/locales.d.ts +51 -0
  283. package/lib/plus/saasLogin/locales.js +74 -0
  284. package/lib/plus/saasLogin/types.d.ts +62 -0
  285. package/lib/plus/saasLogin/types.js +17 -0
  286. package/lib/plus/saasLogin/utils.d.ts +35 -0
  287. package/lib/plus/saasLogin/utils.js +50 -0
  288. package/lib/plus/saasRegister/components/EntryEmail.d.ts +9 -0
  289. package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
  290. package/lib/plus/saasRegister/components/EntryInfo.d.ts +9 -0
  291. package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
  292. package/lib/plus/saasRegister/components/GoLogin.d.ts +4 -0
  293. package/lib/plus/saasRegister/components/GoLogin.js +58 -0
  294. package/lib/plus/saasRegister/components/Header.d.ts +3 -0
  295. package/lib/plus/saasRegister/components/Header.js +99 -0
  296. package/lib/plus/saasRegister/components/VerifyError.d.ts +8 -0
  297. package/lib/plus/saasRegister/components/VerifyError.js +123 -0
  298. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
  299. package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
  300. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
  301. package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
  302. package/lib/plus/saasRegister/index.d.ts +5 -0
  303. package/lib/plus/saasRegister/index.js +205 -0
  304. package/lib/plus/saasRegister/index.less +218 -0
  305. package/lib/plus/saasRegister/locales.d.ts +117 -0
  306. package/lib/plus/saasRegister/locales.js +140 -0
  307. package/lib/plus/saasRegister/types.d.ts +114 -0
  308. package/lib/plus/saasRegister/types.js +54 -0
  309. package/lib/utils/index.d.ts +1 -1
  310. package/lowcode/saas-create-organization/meta.ts +214 -0
  311. package/lowcode/saas-create-organization/snippets.ts +25 -0
  312. package/lowcode/saas-login/meta.ts +370 -0
  313. package/lowcode/saas-login/snippets.ts +38 -0
  314. package/lowcode/saas-register/meta.ts +386 -0
  315. package/lowcode/saas-register/snippets.ts +31 -0
  316. package/package.json +5 -5
@@ -0,0 +1,136 @@
1
+ .pisell-saas-login-container {
2
+ width: 360px;
3
+ max-width: 360px;
4
+ min-width: 266px;
5
+ margin: 0 20px;
6
+ overflow-x: hidden;
7
+
8
+ // Logo样式
9
+ .pisell-saas-login-logo {
10
+ width: fit-content;
11
+ height: 48px;
12
+ border-radius: 8px;
13
+
14
+ &.left {
15
+ margin-right: auto;
16
+ margin-left: 0;
17
+ }
18
+
19
+ &.center {
20
+ margin: 0 auto;
21
+ }
22
+
23
+ &.right {
24
+ margin-left: auto;
25
+ margin-right: 0;
26
+ }
27
+
28
+ img {
29
+ height: 48px;
30
+ object-fit: contain;
31
+ }
32
+ }
33
+
34
+ .pisell-saas-login-welcome-message {
35
+ margin-top: 10px;
36
+ color: #101828;
37
+ text-align: center;
38
+ font-size: 20px;
39
+ font-weight: 500;
40
+ }
41
+
42
+ .pisell-saas-login-title {
43
+ margin-top: 24px;
44
+ font-size: 30px;
45
+ font-weight: 600;
46
+ color: #101828;
47
+ }
48
+
49
+ .pisell-saas-login-subtitle {
50
+ margin-top: 12px;
51
+ font-size: 16px;
52
+ color: #475467;
53
+ font-weight: 400;
54
+ }
55
+
56
+ // 表单区域样式
57
+ .pisell-saas-login-form {
58
+ margin-top: 32px;
59
+ margin-bottom: 16px;
60
+
61
+ // 表单项标题
62
+ .form-item-label {
63
+ font-size: 14px;
64
+ font-weight: 500;
65
+ color: #344054;
66
+ margin-bottom: 6px;
67
+ text-align: left;
68
+ }
69
+
70
+ // 输入框样式
71
+ .pisell-saas-login-input {
72
+ height: 44px;
73
+ border-radius: 8px;
74
+ border: 1px solid #d0d5dd;
75
+ background: #fff;
76
+
77
+ &:hover {
78
+ border-color: var(--theme-color);
79
+ }
80
+
81
+ &:focus {
82
+ border-color: var(--theme-color);
83
+ box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.1);
84
+ }
85
+
86
+ &.ant-input-password {
87
+ padding: 4px 11px;
88
+
89
+ .ant-input {
90
+ height: 34px;
91
+ }
92
+ }
93
+ }
94
+
95
+ // 登录按钮样式
96
+ .pisell-saas-login-button {
97
+ height: 44px;
98
+ border-radius: 8px;
99
+ background: var(--theme-color);
100
+ border: none;
101
+ font-weight: 500;
102
+
103
+ &:hover {
104
+ background: #6941c6;
105
+ }
106
+
107
+ &:focus {
108
+ background: var(--theme-color);
109
+ box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.1);
110
+ }
111
+ }
112
+ }
113
+
114
+ // 页脚样式
115
+ .pisell-saas-login-footer {
116
+ .pisell-saas-login-signup {
117
+ margin-top: 32px;
118
+ margin-bottom: 16px;
119
+ font-size: 14px;
120
+ color: #475467;
121
+ font-weight: 400;
122
+
123
+ a {
124
+ margin-left: 4px;
125
+ cursor: pointer;
126
+ color: #6941c6;
127
+ font-size: 14px;
128
+ font-weight: 600;
129
+
130
+ &:hover {
131
+ color: #6941c6;
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
@@ -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;