verben-authentication-ui 0.3.3 → 0.3.4

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 (292) hide show
  1. package/esm2022/lib/components/button/button.component.mjs +46 -0
  2. package/esm2022/lib/components/button/button.module.mjs +20 -0
  3. package/esm2022/lib/components/forgot-password/ForgotPasswordData.mjs +2 -0
  4. package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +86 -0
  5. package/esm2022/lib/components/forgot-password/forgot-password.module.mjs +34 -0
  6. package/esm2022/lib/components/mail/mail.component.mjs +69 -0
  7. package/esm2022/lib/components/mail/mail.module.mjs +21 -0
  8. package/esm2022/lib/components/mail-validation/mail-validation.component.mjs +108 -0
  9. package/esm2022/lib/components/mail-validation/mail-validation.module.mjs +34 -0
  10. package/esm2022/lib/components/o-auth/o-auth.component.mjs +45 -0
  11. package/esm2022/lib/components/o-auth/o-auth.module.mjs +19 -0
  12. package/esm2022/lib/components/otp-input/otp-input.component.mjs +75 -0
  13. package/esm2022/lib/components/otp-input/otp-input.module.mjs +23 -0
  14. package/esm2022/lib/components/reset-password/ResetPasswordData.mjs +2 -0
  15. package/esm2022/lib/components/reset-password/reset-password.component.mjs +107 -0
  16. package/esm2022/lib/components/reset-password/reset-password.module.mjs +34 -0
  17. package/esm2022/lib/components/sign-in/sign-in.component.mjs +240 -0
  18. package/esm2022/lib/components/sign-in/sign-in.module.mjs +24 -0
  19. package/esm2022/lib/components/sign-up/sign-up.component.mjs +223 -0
  20. package/esm2022/lib/components/sign-up/sign-up.module.mjs +24 -0
  21. package/esm2022/lib/components/sso/base-table-style.mjs +53 -0
  22. package/esm2022/lib/components/sso/helper.mjs +14 -0
  23. package/esm2022/lib/components/sso/sso-form/sso-form.component.mjs +74 -0
  24. package/esm2022/lib/components/sso/sso.columns.mjs +29 -0
  25. package/esm2022/lib/components/sso/sso.component.mjs +236 -0
  26. package/esm2022/lib/components/sso/sso.module.mjs +63 -0
  27. package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.mjs +228 -0
  28. package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.mjs +22 -0
  29. package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.mjs +90 -0
  30. package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.mjs +19 -0
  31. package/esm2022/lib/components/user-management/base-table-style.mjs +53 -0
  32. package/esm2022/lib/components/user-management/helper.mjs +26 -0
  33. package/esm2022/lib/components/user-management/useer-management.module.mjs +68 -0
  34. package/esm2022/lib/components/user-management/user-management-form/use-management-form.component.mjs +57 -0
  35. package/esm2022/lib/components/user-management/user-management.columns.mjs +43 -0
  36. package/esm2022/lib/components/user-management/user-management.component.mjs +323 -0
  37. package/esm2022/lib/components/user-request/user-request.component.mjs +206 -0
  38. package/esm2022/lib/components/user-request/user-request.module.mjs +34 -0
  39. package/esm2022/lib/components/user-request-approval/access-request.columns.mjs +24 -0
  40. package/esm2022/lib/components/user-request-approval/base-table-style.mjs +53 -0
  41. package/esm2022/lib/components/user-request-approval/facades/user-access-request.facade.mjs +128 -0
  42. package/esm2022/lib/components/user-request-approval/helper.mjs +35 -0
  43. package/esm2022/lib/components/user-request-approval/services/user-access-request.service.mjs +72 -0
  44. package/esm2022/lib/components/user-request-approval/states/user-access-request.state.mjs +59 -0
  45. package/esm2022/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.mjs +26 -0
  46. package/esm2022/lib/components/user-request-approval/user-request-approval.component.mjs +251 -0
  47. package/esm2022/lib/components/user-request-approval/user-request-approval.module.mjs +77 -0
  48. package/esm2022/lib/components/user-request-approval/user-request-approval.service.mjs +32 -0
  49. package/esm2022/lib/components/user-request-approval/user-request-form/use-request-form.component.mjs +64 -0
  50. package/esm2022/lib/models/ErrorResponse.mjs +11 -0
  51. package/esm2022/lib/models/PasswordRequestParam.mjs +2 -0
  52. package/esm2022/lib/models/ResponseKeyValue.mjs +2 -0
  53. package/esm2022/lib/models/UserRequest.mjs +2 -0
  54. package/esm2022/lib/models/auth-mechanism.mjs +8 -0
  55. package/esm2022/lib/models/base.mjs +2 -0
  56. package/esm2022/lib/models/log-in.mjs +2 -0
  57. package/esm2022/lib/models/mainUser.mjs +2 -0
  58. package/esm2022/lib/models/object-state.mjs +8 -0
  59. package/esm2022/lib/models/otpValue.mjs +2 -0
  60. package/esm2022/lib/models/paged.mjs +2 -0
  61. package/esm2022/lib/models/query-params.mjs +2 -0
  62. package/esm2022/lib/models/request-status.mjs +5 -0
  63. package/esm2022/lib/models/resend-otp-data.mjs +2 -0
  64. package/esm2022/lib/models/sign-up.mjs +2 -0
  65. package/esm2022/lib/models/single-sign-on.mjs +2 -0
  66. package/esm2022/lib/models/status.mjs +6 -0
  67. package/esm2022/lib/models/user-access-request-status.mjs +7 -0
  68. package/esm2022/lib/models/user-access-request.mjs +2 -0
  69. package/esm2022/lib/models/user.mjs +2 -0
  70. package/esm2022/lib/services/environment.service.mjs +26 -0
  71. package/esm2022/lib/services/http-web-request.service.mjs +82 -0
  72. package/esm2022/lib/services/util.service.mjs +32 -0
  73. package/esm2022/public-api.mjs +43 -0
  74. package/esm2022/verben-authentication-ui.mjs +5 -0
  75. package/fesm2022/verben-authentication-ui.mjs +3622 -0
  76. package/fesm2022/verben-authentication-ui.mjs.map +1 -0
  77. package/index.d.ts +5 -0
  78. package/lib/components/button/button.component.d.ts +17 -0
  79. package/lib/components/button/button.module.d.ts +10 -0
  80. package/{src/lib/components/forgot-password/ForgotPasswordData.ts → lib/components/forgot-password/ForgotPasswordData.d.ts} +1 -1
  81. package/lib/components/forgot-password/forgot-password.component.d.ts +28 -0
  82. package/lib/components/forgot-password/forgot-password.module.d.ts +10 -0
  83. package/lib/components/mail/mail.component.d.ts +32 -0
  84. package/lib/components/mail/mail.module.d.ts +11 -0
  85. package/lib/components/mail-validation/mail-validation.component.d.ts +42 -0
  86. package/lib/components/mail-validation/mail-validation.module.d.ts +10 -0
  87. package/lib/components/o-auth/o-auth.component.d.ts +18 -0
  88. package/lib/components/o-auth/o-auth.module.d.ts +9 -0
  89. package/lib/components/otp-input/otp-input.component.d.ts +20 -0
  90. package/lib/components/otp-input/otp-input.module.d.ts +13 -0
  91. package/lib/components/reset-password/ResetPasswordData.d.ts +5 -0
  92. package/lib/components/reset-password/reset-password.component.d.ts +30 -0
  93. package/lib/components/reset-password/reset-password.module.d.ts +10 -0
  94. package/lib/components/sign-in/sign-in.component.d.ts +81 -0
  95. package/lib/components/sign-in/sign-in.module.d.ts +13 -0
  96. package/lib/components/sign-up/sign-up.component.d.ts +66 -0
  97. package/lib/components/sign-up/sign-up.module.d.ts +13 -0
  98. package/lib/components/sso/base-table-style.d.ts +1 -0
  99. package/lib/components/sso/helper.d.ts +2 -0
  100. package/lib/components/sso/sso-form/sso-form.component.d.ts +21 -0
  101. package/lib/components/sso/sso.columns.d.ts +3 -0
  102. package/lib/components/sso/sso.component.d.ts +54 -0
  103. package/lib/components/sso/sso.module.d.ts +11 -0
  104. package/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.d.ts +67 -0
  105. package/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.d.ts +12 -0
  106. package/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.d.ts +39 -0
  107. package/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.d.ts +9 -0
  108. package/lib/components/user-management/base-table-style.d.ts +1 -0
  109. package/lib/components/user-management/helper.d.ts +2 -0
  110. package/lib/components/user-management/useer-management.module.d.ts +11 -0
  111. package/lib/components/user-management/user-management-form/use-management-form.component.d.ts +20 -0
  112. package/lib/components/user-management/user-management.columns.d.ts +3 -0
  113. package/lib/components/user-management/user-management.component.d.ts +60 -0
  114. package/lib/components/user-request/user-request.component.d.ts +60 -0
  115. package/lib/components/user-request/user-request.module.d.ts +10 -0
  116. package/lib/components/user-request-approval/access-request.columns.d.ts +3 -0
  117. package/lib/components/user-request-approval/base-table-style.d.ts +1 -0
  118. package/lib/components/user-request-approval/facades/user-access-request.facade.d.ts +23 -0
  119. package/lib/components/user-request-approval/helper.d.ts +6 -0
  120. package/lib/components/user-request-approval/services/user-access-request.service.d.ts +50 -0
  121. package/lib/components/user-request-approval/states/user-access-request.state.d.ts +21 -0
  122. package/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.d.ts +12 -0
  123. package/lib/components/user-request-approval/user-request-approval.component.d.ts +59 -0
  124. package/lib/components/user-request-approval/user-request-approval.module.d.ts +12 -0
  125. package/lib/components/user-request-approval/user-request-approval.service.d.ts +18 -0
  126. package/lib/components/user-request-approval/user-request-form/use-request-form.component.d.ts +21 -0
  127. package/lib/models/ErrorResponse.d.ts +6 -0
  128. package/lib/models/PasswordRequestParam.d.ts +5 -0
  129. package/lib/models/ResponseKeyValue.d.ts +5 -0
  130. package/lib/models/UserRequest.d.ts +24 -0
  131. package/lib/models/auth-mechanism.d.ts +13 -0
  132. package/lib/models/base.d.ts +10 -0
  133. package/lib/models/log-in.d.ts +7 -0
  134. package/{src/lib/models/mainUser.ts → lib/models/mainUser.d.ts} +2 -3
  135. package/lib/models/object-state.d.ts +6 -0
  136. package/{src/lib/models/otpValue.ts → lib/models/otpValue.d.ts} +1 -3
  137. package/lib/models/paged.d.ts +9 -0
  138. package/lib/models/query-params.d.ts +7 -0
  139. package/lib/models/request-status.d.ts +3 -0
  140. package/lib/models/resend-otp-data.d.ts +8 -0
  141. package/lib/models/sign-up.d.ts +9 -0
  142. package/lib/models/single-sign-on.d.ts +7 -0
  143. package/lib/models/status.d.ts +4 -0
  144. package/lib/models/user-access-request-status.d.ts +5 -0
  145. package/{src/lib/models/user-access-request.ts → lib/models/user-access-request.d.ts} +3 -4
  146. package/lib/models/user.d.ts +23 -0
  147. package/lib/services/environment.service.d.ts +16 -0
  148. package/lib/services/http-web-request.service.d.ts +23 -0
  149. package/lib/services/util.service.d.ts +8 -0
  150. package/package.json +14 -8
  151. package/{src/public-api.ts → public-api.d.ts} +0 -21
  152. package/ng-package.json +0 -8
  153. package/src/lib/components/button/button.component.css +0 -3
  154. package/src/lib/components/button/button.component.html +0 -13
  155. package/src/lib/components/button/button.component.spec.ts +0 -23
  156. package/src/lib/components/button/button.component.ts +0 -24
  157. package/src/lib/components/button/button.module.ts +0 -11
  158. package/src/lib/components/forgot-password/forgot-password.component.css +0 -29
  159. package/src/lib/components/forgot-password/forgot-password.component.html +0 -13
  160. package/src/lib/components/forgot-password/forgot-password.component.spec.ts +0 -23
  161. package/src/lib/components/forgot-password/forgot-password.component.ts +0 -86
  162. package/src/lib/components/forgot-password/forgot-password.module.ts +0 -18
  163. package/src/lib/components/mail/mail.component.css +0 -0
  164. package/src/lib/components/mail/mail.component.html +0 -11
  165. package/src/lib/components/mail/mail.component.spec.ts +0 -23
  166. package/src/lib/components/mail/mail.component.ts +0 -47
  167. package/src/lib/components/mail/mail.module.ts +0 -13
  168. package/src/lib/components/mail-validation/mail-validation.component.css +0 -59
  169. package/src/lib/components/mail-validation/mail-validation.component.html +0 -37
  170. package/src/lib/components/mail-validation/mail-validation.component.spec.ts +0 -23
  171. package/src/lib/components/mail-validation/mail-validation.component.ts +0 -66
  172. package/src/lib/components/mail-validation/mail-validation.module.ts +0 -18
  173. package/src/lib/components/o-auth/o-auth.component.css +0 -21
  174. package/src/lib/components/o-auth/o-auth.component.html +0 -60
  175. package/src/lib/components/o-auth/o-auth.component.spec.ts +0 -23
  176. package/src/lib/components/o-auth/o-auth.component.ts +0 -43
  177. package/src/lib/components/o-auth/o-auth.module.ts +0 -11
  178. package/src/lib/components/otp-input/otp-input.component.css +0 -19
  179. package/src/lib/components/otp-input/otp-input.component.html +0 -14
  180. package/src/lib/components/otp-input/otp-input.component.spec.ts +0 -23
  181. package/src/lib/components/otp-input/otp-input.component.ts +0 -73
  182. package/src/lib/components/otp-input/otp-input.module.ts +0 -15
  183. package/src/lib/components/reset-password/ResetPasswordData.ts +0 -5
  184. package/src/lib/components/reset-password/reset-password.component.css +0 -29
  185. package/src/lib/components/reset-password/reset-password.component.html +0 -22
  186. package/src/lib/components/reset-password/reset-password.component.spec.ts +0 -23
  187. package/src/lib/components/reset-password/reset-password.component.ts +0 -108
  188. package/src/lib/components/reset-password/reset-password.module.ts +0 -18
  189. package/src/lib/components/sign-in/sign-in.component.css +0 -21
  190. package/src/lib/components/sign-in/sign-in.component.html +0 -84
  191. package/src/lib/components/sign-in/sign-in.component.spec.ts +0 -23
  192. package/src/lib/components/sign-in/sign-in.component.ts +0 -184
  193. package/src/lib/components/sign-in/sign-in.module.ts +0 -17
  194. package/src/lib/components/sign-up/sign-up.component.css +0 -36
  195. package/src/lib/components/sign-up/sign-up.component.html +0 -132
  196. package/src/lib/components/sign-up/sign-up.component.spec.ts +0 -23
  197. package/src/lib/components/sign-up/sign-up.component.ts +0 -176
  198. package/src/lib/components/sign-up/sign-up.module.ts +0 -15
  199. package/src/lib/components/sso/base-table-style.ts +0 -52
  200. package/src/lib/components/sso/helper.ts +0 -15
  201. package/src/lib/components/sso/sso-form/sso-form.component.css +0 -13
  202. package/src/lib/components/sso/sso-form/sso-form.component.html +0 -109
  203. package/src/lib/components/sso/sso-form/sso-form.component.spec.ts +0 -23
  204. package/src/lib/components/sso/sso-form/sso-form.component.ts +0 -70
  205. package/src/lib/components/sso/sso.columns.ts +0 -32
  206. package/src/lib/components/sso/sso.component.css +0 -47
  207. package/src/lib/components/sso/sso.component.html +0 -208
  208. package/src/lib/components/sso/sso.component.spec.ts +0 -23
  209. package/src/lib/components/sso/sso.component.ts +0 -261
  210. package/src/lib/components/sso/sso.module.ts +0 -40
  211. package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.css +0 -8
  212. package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.html +0 -30
  213. package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.spec.ts +0 -23
  214. package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.ts +0 -183
  215. package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.ts +0 -15
  216. package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.css +0 -17
  217. package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.html +0 -45
  218. package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.spec.ts +0 -23
  219. package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.ts +0 -57
  220. package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.ts +0 -11
  221. package/src/lib/components/user-management/base-table-style.ts +0 -52
  222. package/src/lib/components/user-management/helper.ts +0 -29
  223. package/src/lib/components/user-management/index.ts +0 -4
  224. package/src/lib/components/user-management/useer-management.module.ts +0 -48
  225. package/src/lib/components/user-management/user-management-form/use-management-form.component.ts +0 -61
  226. package/src/lib/components/user-management/user-management-form/user-management-form.component.css +0 -0
  227. package/src/lib/components/user-management/user-management-form/user-management-form.component.html +0 -91
  228. package/src/lib/components/user-management/user-management-form/user-management-form.component.spec.ts +0 -23
  229. package/src/lib/components/user-management/user-management.columns.ts +0 -45
  230. package/src/lib/components/user-management/user-management.component.css +0 -26
  231. package/src/lib/components/user-management/user-management.component.html +0 -275
  232. package/src/lib/components/user-management/user-management.component.spec.ts +0 -23
  233. package/src/lib/components/user-management/user-management.component.ts +0 -380
  234. package/src/lib/components/user-management/user-management.service.ts +0 -42
  235. package/src/lib/components/user-request/user-request.component.css +0 -91
  236. package/src/lib/components/user-request/user-request.component.html +0 -165
  237. package/src/lib/components/user-request/user-request.component.spec.ts +0 -23
  238. package/src/lib/components/user-request/user-request.component.ts +0 -167
  239. package/src/lib/components/user-request/user-request.module.ts +0 -18
  240. package/src/lib/components/user-request-approval/access-request.columns.ts +0 -26
  241. package/src/lib/components/user-request-approval/base-table-style.ts +0 -52
  242. package/src/lib/components/user-request-approval/facades/user-access-request.facade.ts +0 -152
  243. package/src/lib/components/user-request-approval/helper.ts +0 -39
  244. package/src/lib/components/user-request-approval/services/user-access-request.service.spec.ts +0 -16
  245. package/src/lib/components/user-request-approval/services/user-access-request.service.ts +0 -87
  246. package/src/lib/components/user-request-approval/states/user-access-request.state.ts +0 -65
  247. package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.css +0 -0
  248. package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.html +0 -7
  249. package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.spec.ts +0 -23
  250. package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.ts +0 -22
  251. package/src/lib/components/user-request-approval/user-request-approval.component.css +0 -1
  252. package/src/lib/components/user-request-approval/user-request-approval.component.html +0 -218
  253. package/src/lib/components/user-request-approval/user-request-approval.component.spec.ts +0 -23
  254. package/src/lib/components/user-request-approval/user-request-approval.component.ts +0 -301
  255. package/src/lib/components/user-request-approval/user-request-approval.module.ts +0 -52
  256. package/src/lib/components/user-request-approval/user-request-approval.service.spec.ts +0 -16
  257. package/src/lib/components/user-request-approval/user-request-approval.service.ts +0 -58
  258. package/src/lib/components/user-request-approval/user-request-form/use-request-form.component.ts +0 -66
  259. package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.css +0 -0
  260. package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.html +0 -97
  261. package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.spec.ts +0 -23
  262. package/src/lib/models/ErrorResponse.ts +0 -7
  263. package/src/lib/models/PasswordRequestParam.ts +0 -5
  264. package/src/lib/models/ResponseKeyValue.ts +0 -5
  265. package/src/lib/models/UserRequest.ts +0 -28
  266. package/src/lib/models/auth-mechanism.ts +0 -14
  267. package/src/lib/models/base.ts +0 -11
  268. package/src/lib/models/log-in.ts +0 -7
  269. package/src/lib/models/object-state.ts +0 -6
  270. package/src/lib/models/paged.ts +0 -9
  271. package/src/lib/models/query-params.ts +0 -7
  272. package/src/lib/models/request-status.ts +0 -4
  273. package/src/lib/models/resend-otp-data.ts +0 -8
  274. package/src/lib/models/resource.ts +0 -27
  275. package/src/lib/models/sign-up.ts +0 -11
  276. package/src/lib/models/single-sign-on.ts +0 -9
  277. package/src/lib/models/status.ts +0 -5
  278. package/src/lib/models/user-access-request-status.ts +0 -5
  279. package/src/lib/models/user.ts +0 -24
  280. package/src/lib/services/environment.service.spec.ts +0 -16
  281. package/src/lib/services/environment.service.ts +0 -23
  282. package/src/lib/services/http-web-request.service.spec.ts +0 -16
  283. package/src/lib/services/http-web-request.service.ts +0 -101
  284. package/src/lib/services/util.service.spec.ts +0 -16
  285. package/src/lib/services/util.service.ts +0 -28
  286. package/src/styles.css +0 -96
  287. package/src/theme/tailwind-setup.css +0 -3
  288. package/src/theme/tailwind.css +0 -980
  289. package/tailwind.config.js +0 -20
  290. package/tsconfig.lib.json +0 -15
  291. package/tsconfig.lib.prod.json +0 -11
  292. package/tsconfig.spec.json +0 -15
@@ -1,59 +0,0 @@
1
- /* Container Styles */
2
- .flex {
3
- display: flex;
4
- }
5
- .overflow-hidden {
6
- overflow: hidden;
7
- }
8
- .h-full {
9
- height: 100%;
10
- }
11
-
12
- .underline {
13
- text-decoration: underline;
14
- }
15
-
16
- .mt-4 {
17
- margin-top: 1rem;
18
- }
19
- .resend{
20
- color: blue;
21
- }
22
- .space-y-4 > :not([hidden]) ~ :not([hidden]) {
23
- margin-top: 1rem;
24
- }
25
- .gap-1 > :not([hidden]) ~ :not([hidden]) {
26
- gap: 0.25rem;
27
- }
28
- .pt-3 {
29
- padding-top: 0.75rem;
30
- }
31
- .mt-5 {
32
- margin-top: 1.25rem;
33
- }
34
-
35
- /* Form and Input Styles */
36
- .border {
37
- border-width: 1px;
38
- }
39
-
40
- .rounded-xl {
41
- border-radius: 0.75rem;
42
- }
43
- .px-3 {
44
- padding-left: 0.75rem;
45
- padding-right: 0.75rem;
46
- }
47
- .py-3 {
48
- padding-top: 0.75rem;
49
- padding-bottom: 0.75rem;
50
- }
51
- .flex-col {
52
- flex-direction: column;
53
- }
54
- .w-full {
55
- width: 100%;
56
- }
57
-
58
-
59
-
@@ -1,37 +0,0 @@
1
- <section [ngStyle]="styles" class="{{ customClass }}">
2
- <div *ngIf="currentStep === 'linkSent'">
3
- <p [style.color]="textColor" [style.font-size]="textSize">
4
- Follow the link sent to your e-mail to verify your e-mail address
5
- </p>
6
- <p class="mt-4" (click)="handleResendOtp()">
7
- Didn't get a link? <a href="#" class="underline resend">Resend</a>
8
- </p>
9
- </div>
10
-
11
- <div *ngIf="currentStep === 'verified'">
12
- <p [style.color]="textColor" [style.font-size]="textSize">
13
- Your e-mail has been verified! You will be notified when your access has
14
- been authorized
15
- </p>
16
- </div>
17
-
18
- <div *ngIf="currentStep === 'accessGranted'">
19
- <p [style.color]="textColor" [style.font-size]="textSize">
20
- Your e-mail has been verified!
21
- </p>
22
- <div class="mt-4">
23
- <verbena-button
24
- [text]="text"
25
- [bgColor]="btnBgColor"
26
- [textColor]="color"
27
- [border]="btnBorder"
28
- [borderRadius]="btnBorderRadius"
29
- [pd]="btnPd"
30
- (click)="handleLogin()"
31
- [width]="btnWidth"
32
- textSize="'22px'"
33
- buttonClass="font-medium text-[22px] leading-[33px]"
34
- ></verbena-button>
35
- </div>
36
- </div>
37
- </section>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { MailValidationComponent } from './mail-validation.component';
4
-
5
- describe('MailValidationComponent', () => {
6
- let component: MailValidationComponent;
7
- let fixture: ComponentFixture<MailValidationComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [MailValidationComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(MailValidationComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,66 +0,0 @@
1
- import { Component, EventEmitter, Input, Output } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'lib-mail-validation',
5
- templateUrl: './mail-validation.component.html',
6
- styleUrls: ['./mail-validation.component.css']
7
- })
8
- export class MailValidationComponent {
9
- @Input() customClass: string = '';
10
- @Input() bgColor: string = '#fff';
11
- @Input() boxShadow: string = '4px 4px 4px rgba(0, 0, 0, 0.25)';
12
- @Input() border: string = '1px solid #66666680';
13
- @Input() borderRadius: string = '24px';
14
- @Input() textColor: string = '#666666';
15
- @Input() height: string = 'auto';
16
- @Input() pd: string = '32px 48px';
17
- @Input() width: string = '600px';
18
- @Input() text: string = 'Login';
19
- @Input() textAlign: string = 'center';
20
- @Input() color: string = 'black';
21
- @Input() textSize: string = '32px';
22
- @Input() btnBorder: string = '1px solid #FFE681';
23
- @Input() btnBorderRadius: string = "40px";
24
- @Input() btnBgColor: string = '#FFE681';
25
- @Input() btnWidth: string = '100%';
26
- @Input() btnPd: string = '7px 10px';
27
-
28
- @Output() resendOtp = new EventEmitter<void>();
29
- @Output() proceedToNextStep = new EventEmitter<'verified' | 'accessGranted'>();
30
- @Output() login = new EventEmitter<void>();
31
-
32
- currentStep: 'linkSent' | 'verified' | 'accessGranted' = 'linkSent';
33
-
34
- handleResendOtp() {
35
- this.resendOtp.emit();
36
- }
37
-
38
- goToNextStep() {
39
- switch (this.currentStep) {
40
- case 'linkSent':
41
- this.currentStep = 'verified';
42
- this.proceedToNextStep.emit(this.currentStep);
43
- break;
44
- case 'verified':
45
- this.currentStep = 'accessGranted';
46
- this.proceedToNextStep.emit(this.currentStep);
47
- break;
48
- }
49
- }
50
- get styles() {
51
- return {
52
- 'background-color': this.bgColor,
53
- 'box-shadow': this.boxShadow,
54
- 'border': this.border,
55
- 'border-radius': this.borderRadius,
56
- 'color': this.textColor,
57
- 'max-width': this.width,
58
- 'margin': '0 auto',
59
- 'height': this.height,
60
- 'padding': this.pd,
61
- };
62
- }
63
- handleLogin() {
64
- this.login.emit();
65
- }
66
- }
@@ -1,18 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
3
- import { VerbenaButtonModule, VerbenaInputModule } from 'verben-ng-ui';
4
- import { CommonModule } from '@angular/common';
5
- import { MailValidationComponent } from './mail-validation.component';
6
-
7
- @NgModule({
8
- declarations: [MailValidationComponent],
9
- imports: [
10
- FormsModule,
11
- ReactiveFormsModule,
12
- VerbenaInputModule,
13
- VerbenaButtonModule,
14
- CommonModule,
15
- ],
16
- exports: [MailValidationComponent],
17
- })
18
- export class MailValidationModule {}
@@ -1,21 +0,0 @@
1
- hr {
2
- height: 1px;
3
- margin: 0;
4
- border:1px solid #66666640;
5
- flex:1
6
- }
7
-
8
- .OR{
9
- margin: 0 2px;
10
- color:#666666
11
- }
12
- .oauthWrapper{
13
- display: flex;
14
- flex-direction: column;
15
- gap:12px;
16
- }
17
- .OrFlexWrapper{
18
- display: flex;
19
- align-items: center;
20
- gap:8px;
21
- }
@@ -1,60 +0,0 @@
1
- <section class="oauthWrapper">
2
- <div class="OrFlexWrapper">
3
- <hr/>
4
- <span>OR</span>
5
- <hr/>
6
- </div>
7
- <span *ngIf="showMicrosoft">
8
- <verbena-button
9
- svg="microsoft-logo"
10
- [svgHeight]="24"
11
- [svgWidth]="24"
12
- text="Continue with Microsoft"
13
- bgColor="white"
14
- textColor="black"
15
- border="1px solid #333"
16
- borderRadius="40px"
17
- pd="10px 20px"
18
- width="100%"
19
- svgPosition="left"
20
- buttonClass="font-normal text-[24px] leading-[29.05px] text-[#333] mt-2"
21
- (click)="oAuthWithMicrosoft()"
22
- ></verbena-button>
23
- </span>
24
-
25
- <span *ngIf="showGoogle">
26
- <verbena-button
27
- svg="google-logo"
28
- [svgHeight]="24"
29
- [svgWidth]="24"
30
- text="Continue with Google"
31
- bgColor="white"
32
- textColor="black"
33
- border="1px solid #333"
34
- borderRadius="40px"
35
- pd="10px 20px"
36
- width="100%"
37
- svgPosition="left"
38
- buttonClass="font-normal text-[24px] leading-[29.05px] text-[#333] mt-2"
39
- (click)="oAuthWithGoogle()"
40
- ></verbena-button>
41
- </span>
42
-
43
- <span *ngIf="showApple">
44
- <verbena-button
45
- svg="apple-logo"
46
- [svgHeight]="24"
47
- [svgWidth]="24"
48
- text="Continue with Apple"
49
- bgColor="white"
50
- textColor="black"
51
- border="1px solid #333"
52
- borderRadius="40px"
53
- pd="10px 20px"
54
- width="100%"
55
- svgPosition="left"
56
- buttonClass="font-normal text-[24px] leading-[29.05px] text-[#333] mt-2"
57
- (click)="oAuthWithApple()"
58
- ></verbena-button>
59
- </span>
60
- </section>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { OAuthComponent } from './o-auth.component';
4
-
5
- describe('OAuthComponent', () => {
6
- let component: OAuthComponent;
7
- let fixture: ComponentFixture<OAuthComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [OAuthComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(OAuthComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,43 +0,0 @@
1
- import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
2
- import { AuthMechanism, MechanismType } from '../../models/auth-mechanism';
3
-
4
- @Component({
5
- selector: 'verben-o-auth',
6
- templateUrl: './o-auth.component.html',
7
- styleUrl: './o-auth.component.css'
8
- })
9
- export class OAuthComponent implements OnInit {
10
- showGoogle:boolean = false;
11
- showMicrosoft:boolean = false;
12
- showApple:boolean = false;
13
- @Input() authMechanisms:AuthMechanism[] | null = null
14
- @Output() microsoftClick = new EventEmitter<void>();
15
- @Output() googleClick = new EventEmitter<void>();
16
- @Output() appleClick = new EventEmitter<void>();
17
-
18
-
19
- ngOnInit(): void {
20
- if(this.authMechanisms !== null ){
21
- this.showMicrosoft = this.authMechanisms.some(item =>
22
- item.AuthMechanism.includes(MechanismType.MicrosoftAD)
23
- );
24
- this.showGoogle = this.authMechanisms.some(item =>
25
- item.AuthMechanism.includes(MechanismType.Google)
26
- );
27
- this.showApple = this.authMechanisms.some(item =>
28
- item.AuthMechanism.includes(MechanismType.Apple)
29
- );
30
- }
31
- }
32
-
33
- oAuthWithMicrosoft(){
34
- this.microsoftClick.emit();
35
- }
36
- oAuthWithGoogle(){
37
- this.googleClick.emit();
38
- }
39
- oAuthWithApple(){
40
- this.appleClick.emit();
41
- }
42
-
43
- }
@@ -1,11 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { VerbenaButtonModule, VerbenaInputModule } from 'verben-ng-ui';
4
- import { OAuthComponent } from './o-auth.component';
5
-
6
- @NgModule({
7
- declarations: [OAuthComponent],
8
- imports: [CommonModule,VerbenaInputModule,VerbenaButtonModule],
9
- exports: [OAuthComponent]
10
- })
11
- export class OAuthModule {}
@@ -1,19 +0,0 @@
1
- .otp-container {
2
- display: flex;
3
- gap: 15px;
4
- }
5
-
6
- .otp-input {
7
- width: 50px;
8
- height: 46px;
9
- text-align: center;
10
- font-size: 1.5rem;
11
- border: 1px solid #66666658;
12
- border-radius: 12px;
13
- }
14
-
15
-
16
- .otp-input:focus {
17
- border-color: #FFE681;
18
- outline: none;
19
- }
@@ -1,14 +0,0 @@
1
- <form [formGroup]="otpForm" >
2
- <div formArrayName="otpArray" class="otp-container">
3
- <input
4
- *ngFor="let control of otpArray.controls; let i = index"
5
- [id]="'otp-input-' + i"
6
- class="otp-input {{otpClass}}"
7
- maxlength="1"
8
- (input)="handleInput($event, i)"
9
- (keydown)="handleKeydown($event, i)"
10
- [formControlName]="i"
11
- type="text"
12
- />
13
- </div>
14
- </form>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { OtpInputComponent } from './otp-input.component';
4
-
5
- describe('OtpInputComponent', () => {
6
- let component: OtpInputComponent;
7
- let fixture: ComponentFixture<OtpInputComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [OtpInputComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(OtpInputComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,73 +0,0 @@
1
- import { Component, EventEmitter, Input, Output, OnInit } from '@angular/core';
2
- import { FormBuilder, FormArray, FormControl, FormGroup } from '@angular/forms';
3
-
4
- @Component({
5
- selector: 'verben-otp-input',
6
- templateUrl: './otp-input.component.html',
7
- styleUrl: './otp-input.component.css'
8
- })
9
- export class OtpInputComponent implements OnInit {
10
- @Input() length: number = 6;
11
- @Input() otpClass: string = '';
12
- @Output() otpChange = new EventEmitter<string>();
13
-
14
- otpForm!: FormGroup;
15
-
16
- constructor(private fb: FormBuilder) {}
17
-
18
- ngOnInit() {
19
- this.otpForm = this.fb.group({
20
- otpArray: this.fb.array(Array(this.length).fill('').map(() => new FormControl('')))
21
- });
22
-
23
- this.otpArray.valueChanges.subscribe(() => {
24
- this.emitOtp();
25
- });
26
- }
27
-
28
- get otpArray(): FormArray {
29
- return this.otpForm.get('otpArray') as FormArray;
30
- }
31
-
32
- handleInput(event: any, index: number) {
33
- const value = event.target.value;
34
-
35
- // /\d/.test(value)
36
- if (value.length > 0) {
37
- this.otpArray.at(index).setValue(value);
38
-
39
- if (index < this.length - 1) {
40
- this.focusNextInput(index);
41
- }
42
- } else {
43
- this.otpArray.at(index).setValue('');
44
- }
45
- }
46
-
47
- handleKeydown(event: KeyboardEvent, index: number) {
48
- if (event.key === 'Backspace') {
49
- const currentValue = this.otpArray.at(index).value;
50
-
51
- if (currentValue) {
52
- this.otpArray.at(index).setValue('');
53
- } else if (index > 0) {
54
- this.focusPreviousInput(index);
55
- }
56
- }
57
- }
58
-
59
- private focusNextInput(index: number) {
60
- const nextInput = document.getElementById(`otp-input-${index + 1}`);
61
- nextInput?.focus();
62
- }
63
-
64
- private focusPreviousInput(index: number) {
65
- const prevInput = document.getElementById(`otp-input-${index - 1}`);
66
- prevInput?.focus();
67
- }
68
-
69
- private emitOtp() {
70
- const otp = this.otpArray.value.join('');
71
- this.otpChange.emit(otp);
72
- }
73
- }
@@ -1,15 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
- import { RouterLink } from '@angular/router';
5
- import { VerbenaInputModule } from 'verben-ng-ui';
6
- import { OAuthModule } from '../o-auth/o-auth.module';
7
- import { ButtonModule } from '../button/button.module';
8
- import { OtpInputComponent } from './otp-input.component';
9
-
10
- @NgModule({
11
- declarations: [OtpInputComponent],
12
- imports: [CommonModule, FormsModule,VerbenaInputModule, RouterLink,ButtonModule,OAuthModule,ReactiveFormsModule],
13
- exports: [OtpInputComponent]
14
- })
15
- export class OtpInputModule {}
@@ -1,5 +0,0 @@
1
- export interface ResetPasswordData {
2
- OldPassword?: string;
3
- Password: string;
4
- ConfirmPassword: string;
5
- }
@@ -1,29 +0,0 @@
1
- @import '../../../styles.css';
2
-
3
- .reset-password-container {
4
- gap: 25px;
5
- padding: 50px;
6
- border: 1px solid rgba(102, 102, 102, 0.5);
7
- box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
8
- border-radius: 24px;
9
- }
10
-
11
- .reset-password-title {
12
- font-size: 30px;
13
- font-weight: bold;
14
- }
15
-
16
- .reset-password-subtitle {
17
- font-size: 14px;
18
- font-weight: 500;
19
- color: rgba(102, 102, 102, 1);
20
- }
21
-
22
- .form-field {
23
- gap: 5px;
24
- }
25
-
26
- .form-field-caption {
27
- color: rgba(102, 102, 102, 1);
28
- /* font-weight: 600; */
29
- }
@@ -1,22 +0,0 @@
1
- <div [formGroup]="this.resetPasswordForm" class="reset-password-container flex flex-col">
2
- <div class="reset-password-header flex flex-col">
3
- <div class="reset-password-title">{{title}}</div>
4
- <div class="reset-password-subtitle">{{subTitle}}</div>
5
- </div>
6
- <div *ngIf="showOldPassword" class="form-field flex flex-col">
7
- <div class="form-field-caption">Old Password</div>
8
- <verbena-input bgColor="white" borderRadius="12px" formControlName="OldPassword" type="password"></verbena-input>
9
- </div>
10
- <div class="form-field flex flex-col">
11
- <div class="form-field-caption">New Password</div>
12
- <verbena-input bgColor="white" borderRadius="12px" formControlName="Password" type="password"></verbena-input>
13
- </div>
14
- <div class="form-field flex flex-col">
15
- <div class="form-field-caption">Confirm Password</div>
16
- <verbena-input bgColor="white" borderRadius="12px" formControlName="ConfirmPassword"
17
- type="password"></verbena-input>
18
- </div>
19
- <verbena-button fontWeight="700" (click)="submit()" [text]="buttonCaption" width="100%" [textColor]="buttonTextColor"
20
- [bgColor]="buttonBackgroundColor" borderRadius="25px" [disable]="!this.checkForm()"></verbena-button>
21
-
22
- </div>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { ResetPasswordComponent } from './reset-password.component';
4
-
5
- describe('ResetPasswordComponent', () => {
6
- let component: ResetPasswordComponent;
7
- let fixture: ComponentFixture<ResetPasswordComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [ResetPasswordComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(ResetPasswordComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });