fge-auth-component 0.0.0

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 (76) hide show
  1. package/README.md +18 -0
  2. package/dist/api/useLoginApi.d.ts +19 -0
  3. package/dist/api/useLoginInstance.d.ts +11 -0
  4. package/dist/api/usePerfilApi.d.ts +8 -0
  5. package/dist/api/useRecuperarPassApi.d.ts +18 -0
  6. package/dist/api/useRegistroUsuarioApi.d.ts +6 -0
  7. package/dist/components/FgeButtonCounter.vue.d.ts +14 -0
  8. package/dist/components/FgeButtonCounter.vue.d.ts.map +1 -0
  9. package/dist/components/FgeConfirmDialog.vue.d.ts +39 -0
  10. package/dist/components/FgeConfirmDialog.vue.d.ts.map +1 -0
  11. package/dist/components/FgeEnviarCodigo.vue.d.ts +84 -0
  12. package/dist/components/FgeEnviarCodigo.vue.d.ts.map +1 -0
  13. package/dist/components/FgeErrorMessage.vue.d.ts +10 -0
  14. package/dist/components/FgeErrorMessage.vue.d.ts.map +1 -0
  15. package/dist/components/FgeFooter.vue.d.ts +2 -0
  16. package/dist/components/FgeFooter.vue.d.ts.map +1 -0
  17. package/dist/components/FgeHeader.vue.d.ts +2 -0
  18. package/dist/components/FgeHeader.vue.d.ts.map +1 -0
  19. package/dist/components/FgeLoadingComponent.vue.d.ts +2 -0
  20. package/dist/components/FgeLoadingComponent.vue.d.ts.map +1 -0
  21. package/dist/components/FgeLogin.vue.d.ts +2 -0
  22. package/dist/components/FgeLogin.vue.d.ts.map +1 -0
  23. package/dist/components/FgeMenuItems.vue.d.ts +2 -0
  24. package/dist/components/FgeMenuItems.vue.d.ts.map +1 -0
  25. package/dist/components/FgePerfil.vue.d.ts +12 -0
  26. package/dist/components/FgePerfil.vue.d.ts.map +1 -0
  27. package/dist/components/FgePerfilHeader.vue.d.ts +21 -0
  28. package/dist/components/FgePerfilHeader.vue.d.ts.map +1 -0
  29. package/dist/components/FgePerfilSidebar.vue.d.ts +5 -0
  30. package/dist/components/FgePerfilSidebar.vue.d.ts.map +1 -0
  31. package/dist/components/FgeRecuperarPassword.vue.d.ts +2 -0
  32. package/dist/components/FgeRecuperarPassword.vue.d.ts.map +1 -0
  33. package/dist/components/FgeRegistrarPage.vue.d.ts +2 -0
  34. package/dist/components/FgeRegistrarPage.vue.d.ts.map +1 -0
  35. package/dist/components/FgeSidebar.vue.d.ts +87 -0
  36. package/dist/components/FgeSidebar.vue.d.ts.map +1 -0
  37. package/dist/components/FgeStepComponent.vue.d.ts +97 -0
  38. package/dist/components/FgeStepComponent.vue.d.ts.map +1 -0
  39. package/dist/components/FgeToast.vue.d.ts +106 -0
  40. package/dist/components/FgeToast.vue.d.ts.map +1 -0
  41. package/dist/components/PrincipalLoginComp.vue.d.ts +44 -0
  42. package/dist/components/PrincipalLoginComp.vue.d.ts.map +1 -0
  43. package/dist/components/svgIcons/CameraIcon.vue.d.ts +10 -0
  44. package/dist/components/svgIcons/CameraIcon.vue.d.ts.map +1 -0
  45. package/dist/components/svgIcons/CheckMarkIcon.vue.d.ts +14 -0
  46. package/dist/components/svgIcons/CheckMarkIcon.vue.d.ts.map +1 -0
  47. package/dist/components/svgIcons/DefaultUserIcon.vue.d.ts +2 -0
  48. package/dist/components/svgIcons/DefaultUserIcon.vue.d.ts.map +1 -0
  49. package/dist/constants/env.const.d.ts +5 -0
  50. package/dist/constants/locale.const.d.ts +43 -0
  51. package/dist/constants/regex.const.d.ts +4 -0
  52. package/dist/constants/validations.const.d.ts +2 -0
  53. package/dist/fge-auth-component.cjs.js +551 -0
  54. package/dist/fge-auth-component.css +1 -0
  55. package/dist/fge-auth-component.es.js +20585 -0
  56. package/dist/fge-auth-component.umd.js +552 -0
  57. package/dist/helpers/cookie.helper.d.ts +11 -0
  58. package/dist/helpers/error.helper.d.ts +7 -0
  59. package/dist/helpers/file.helper.d.ts +1 -0
  60. package/dist/helpers/helpers.d.ts +1 -0
  61. package/dist/hooks/useCiudadania.d.ts +3 -0
  62. package/dist/hooks/useEnviarMensaje.d.ts +20 -0
  63. package/dist/hooks/useGenericSidebar.d.ts +5 -0
  64. package/dist/hooks/useLoginForm.d.ts +27 -0
  65. package/dist/hooks/usePerfil.d.ts +36 -0
  66. package/dist/hooks/useRecuperarPassword.d.ts +30 -0
  67. package/dist/hooks/useRegisterForm.d.ts +36 -0
  68. package/dist/interfaces/loginInterfaces.d.ts +11 -0
  69. package/dist/main.d.ts +3 -0
  70. package/dist/outputs/index.d.ts +7 -0
  71. package/dist/outputs/main.d.ts +13 -0
  72. package/dist/store/index.d.ts +2 -0
  73. package/dist/store/useLoginStore.d.ts +167 -0
  74. package/dist/store/useStateStore.d.ts +13 -0
  75. package/dist/vite.svg +1 -0
  76. package/package.json +77 -0
@@ -0,0 +1,11 @@
1
+ export interface ISetCookie {
2
+ name: string;
3
+ value: string;
4
+ days?: number;
5
+ hours?: number;
6
+ minutes?: number;
7
+ seconds?: number;
8
+ milliseconds?: number;
9
+ }
10
+ export declare function getCookie(name: string): string | null;
11
+ export declare function setCookie({ name, value, days, hours, minutes, seconds, milliseconds }: ISetCookie): void;
@@ -0,0 +1,7 @@
1
+ interface IFormatError {
2
+ error: any;
3
+ setErrors: Function;
4
+ toast: any;
5
+ }
6
+ export declare const formatearErrores: ({ error, setErrors, toast }: IFormatError) => void;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function fileToBase64(file: Blob): Promise<unknown>;
@@ -0,0 +1 @@
1
+ export declare const isMobile: () => boolean;
@@ -0,0 +1,3 @@
1
+ export default function useCiudadaniaHook(): {
2
+ redirectCD: (finalUrlRedirect?: boolean) => void;
3
+ };
@@ -0,0 +1,20 @@
1
+ import { TMedio } from '../interfaces/loginInterfaces';
2
+ interface IEstados {
3
+ whatsapp: number | null;
4
+ telegram: number | null;
5
+ email: number | null;
6
+ }
7
+ interface IEnviarMensajeFunction {
8
+ callbackApi: Function;
9
+ code?: string;
10
+ counterTime?: number;
11
+ abrirTelegramDialog?: boolean;
12
+ }
13
+ export default function useEnviarMensaje(prefix?: string): {
14
+ refCounter: import("vue").Ref<any>;
15
+ currentContacto: import("vue").Ref<string | null | undefined>;
16
+ currentMedio: import("vue").Ref<TMedio>;
17
+ sePuedeReenviarMensaje: (medio: keyof IEstados, guardarCookie?: boolean) => boolean;
18
+ enviarMensaje: ({ callbackApi, code, counterTime, abrirTelegramDialog }: IEnviarMensajeFunction) => Promise<void>;
19
+ };
20
+ export {};
@@ -0,0 +1,5 @@
1
+ export default function useGenericSidebar(): {
2
+ displayModal: import("vue").Ref<boolean>;
3
+ openDialog: () => void;
4
+ closeDialog: (callback: Function) => void;
5
+ };
@@ -0,0 +1,27 @@
1
+ export default function useLoginForm(): {
2
+ schemas: (import("yup").ObjectSchema<{
3
+ usuario: string;
4
+ password: string;
5
+ }, import("yup").AnyObject, {
6
+ usuario: undefined;
7
+ password: undefined;
8
+ }, ""> | import("yup").ObjectSchema<{
9
+ code: string;
10
+ }, import("yup").AnyObject, {
11
+ code: undefined;
12
+ }, "">)[];
13
+ refCounter: import("vue").Ref<any>;
14
+ currentContacto: import("vue").Ref<string | null | undefined>;
15
+ steps: import("vue").Raw<{
16
+ name: string;
17
+ }[]>;
18
+ currentStep: import("vue").Ref<number>;
19
+ usuarioId: import("vue").Ref<number>;
20
+ errors: import("vue").ComputedRef<Partial<Record<string, string | undefined>>>;
21
+ iconColor: import("vue").ComputedRef<string>;
22
+ onLogin: (e?: Event | undefined) => Promise<Promise<void> | undefined>;
23
+ on2AuthLogin: (e?: Event | undefined) => Promise<Promise<void> | undefined>;
24
+ goLoginPage: () => void;
25
+ onEnviarMensaje: () => Promise<void>;
26
+ redirectCD: (finalUrlRedirect?: boolean) => void;
27
+ };
@@ -0,0 +1,36 @@
1
+ import { IValidarContactoUsuario, TMedio } from '../interfaces/loginInterfaces';
2
+ export default function usePerfil(): {
3
+ values: {
4
+ celular: string;
5
+ email: string;
6
+ direccion: string;
7
+ medio: TMedio;
8
+ codigo: string | undefined;
9
+ oldPassword: string;
10
+ newPassword: string;
11
+ repetirPassword: string;
12
+ };
13
+ mediosVerificados: {
14
+ verificadoWhatsapp: boolean;
15
+ verificadoTelegram: boolean;
16
+ verificadoEmail: boolean;
17
+ };
18
+ currentContacto: import("vue").Ref<string | null | undefined>;
19
+ currentStep: import("vue").Ref<number>;
20
+ steps: import("vue").Ref<{
21
+ name: string;
22
+ }[]>;
23
+ errors: import("vue").ComputedRef<Partial<Record<"newPassword" | "email" | "celular" | "direccion" | "medio" | "codigo" | "oldPassword" | "repetirPassword", string | undefined>>>;
24
+ refCounter: import("vue").Ref<any>;
25
+ isLoading: import("vue").Ref<boolean>;
26
+ inputImageRef: import("vue").Ref<any>;
27
+ onOpenInputFile: () => void;
28
+ onActualizarDatos: (e?: Event | undefined) => Promise<Promise<void> | undefined>;
29
+ onEnviarMensaje: (isTelegram: boolean) => Promise<void>;
30
+ onEnviarCodigoAlBackend: () => Promise<void>;
31
+ onEnviarCodigoAlUsuario: ({ medio, contacto }: IValidarContactoUsuario) => Promise<void>;
32
+ cambiarPass: () => void;
33
+ goProfileStep: () => void;
34
+ onCambiarPasswordPerfil: (e?: Event | undefined) => Promise<Promise<void> | undefined>;
35
+ onCambiarImagenPerfil: (event: any) => Promise<void>;
36
+ };
@@ -0,0 +1,30 @@
1
+ export default function useRecuperarPassword(): {
2
+ refCounter: import("vue").Ref<any>;
3
+ currentStep: import("vue").Ref<number>;
4
+ currentSchema: import("vue").ComputedRef<import("yup").ObjectSchema<{
5
+ usuario: string;
6
+ }, import("yup").AnyObject, {
7
+ usuario: undefined;
8
+ }, ""> | import("yup").ObjectSchema<{
9
+ code: string;
10
+ }, import("yup").AnyObject, {
11
+ code: undefined;
12
+ }, ""> | import("yup").ObjectSchema<{
13
+ password: string;
14
+ repetirPassword: string;
15
+ }, import("yup").AnyObject, {
16
+ password: undefined;
17
+ repetirPassword: undefined;
18
+ }, "">>;
19
+ currentContacto: import("vue").Ref<string | null | undefined>;
20
+ steps: import("vue").Raw<{
21
+ name: string;
22
+ }[]>;
23
+ errors: import("vue").ComputedRef<Partial<Record<"usuario" | "code" | "password" | "repetirPassword", string | undefined>>>;
24
+ onBackStep: () => void;
25
+ onEnviarCodigoAlBackend: (e?: Event | undefined) => Promise<Promise<void> | undefined>;
26
+ onEnviarCodigoAlUsuario: (e?: Event | undefined) => Promise<Promise<void> | undefined>;
27
+ onEnviarMensaje: () => Promise<void>;
28
+ onCambiarPassword: (e?: Event | undefined) => Promise<Promise<void> | undefined>;
29
+ goLoginPage: () => void;
30
+ };
@@ -0,0 +1,36 @@
1
+ import { IValidarContactoUsuario } from '../interfaces/loginInterfaces';
2
+ export default function useLoginForm(): {
3
+ refCounter: import("vue").Ref<any>;
4
+ currentContacto: import("vue").Ref<string | null | undefined>;
5
+ values: {
6
+ ci: string;
7
+ nombres: string;
8
+ paterno: string;
9
+ materno: string;
10
+ fechaNacimiento: Date;
11
+ celular: string;
12
+ email: string;
13
+ direccion: string;
14
+ password: string;
15
+ repetirPassword: string;
16
+ codigoContacto: string | undefined;
17
+ codigoRegistro: string;
18
+ };
19
+ steps: import("vue").Ref<{
20
+ name: string;
21
+ }[]>;
22
+ currentStep: import("vue").Ref<number>;
23
+ mediosVerificados: {
24
+ verificadoWhatsapp: boolean;
25
+ verificadoTelegram: boolean;
26
+ verificadoEmail: boolean;
27
+ };
28
+ errors: import("vue").ComputedRef<Partial<Record<"password" | "email" | "celular" | "direccion" | "repetirPassword" | "ci" | "nombres" | "paterno" | "materno" | "fechaNacimiento" | "codigoContacto" | "codigoRegistro", string | undefined>>>;
29
+ onValidarDatosUsuario: (e?: Event | undefined) => Promise<Promise<void> | undefined>;
30
+ onRegistrarUsuario: (e?: Event | undefined) => Promise<Promise<void> | undefined>;
31
+ onEnviarMensaje: (abrirTelegramDialog?: boolean) => Promise<void>;
32
+ onEnviarCodigoAlUsuario: ({ medio, contacto }: IValidarContactoUsuario) => Promise<void>;
33
+ onEnviarCodigoVerificacion: () => Promise<void>;
34
+ onCancelarVerificacion: () => void;
35
+ onCancelarRegistro: () => void;
36
+ };
@@ -0,0 +1,11 @@
1
+ export interface IValidarContactoUsuario {
2
+ contacto: string;
3
+ medio: 'whatsapp' | 'telegram' | 'email';
4
+ code?: string;
5
+ }
6
+ export interface IMedioVerificado {
7
+ verificadoWhatsapp: boolean;
8
+ verificadoTelegram: boolean;
9
+ verificadoEmail: boolean;
10
+ }
11
+ export type TMedio = 'email' | 'whatsapp' | 'telegram' | undefined;
package/dist/main.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './outputs/main'
2
+ import FgeAuthComponent from './outputs/main'
3
+ export default FgeAuthComponent
@@ -0,0 +1,7 @@
1
+ export { default as FgeLoginComponent } from '../components/PrincipalLoginComp.vue';
2
+ export { default as FgeAuthMenuComponent } from '../components/FgeMenuItems.vue';
3
+ export { default as FgePerfilSidebar } from '../components/FgePerfilSidebar.vue';
4
+ export { default as FgePerfil } from '../components/FgePerfil.vue';
5
+ export { useLoginStore as useFgeAuthLoginStore } from '../store/useLoginStore';
6
+ export { useStateStore as useFgeAuthStateStore } from '../store/useStateStore';
7
+ export { default as AuthStore } from '../store';
@@ -0,0 +1,13 @@
1
+ import type { App } from 'vue';
2
+ import { FgeLoginComponent, FgeAuthMenuComponent, FgePerfilSidebar, FgePerfil, useFgeAuthLoginStore, useFgeAuthStateStore, AuthStore } from '../outputs';
3
+ export type ConfigOptions = {
4
+ enablerPrimeDirectives?: boolean;
5
+ enablerPrimeServices?: boolean;
6
+ configYupLocale?: boolean;
7
+ configPrimeVueLocale?: boolean;
8
+ };
9
+ declare const _default: {
10
+ install: (app: App, options: ConfigOptions) => void;
11
+ };
12
+ export default _default;
13
+ export { FgeLoginComponent, FgeAuthMenuComponent, FgePerfilSidebar, FgePerfil, useFgeAuthLoginStore, useFgeAuthStateStore, AuthStore };
@@ -0,0 +1,2 @@
1
+ declare const store: import("pinia").Pinia;
2
+ export default store;
@@ -0,0 +1,167 @@
1
+ export type ShowPage = 'login' | 'registrar' | 'recuperar-password';
2
+ export declare const AUTH_STORE: () => {
3
+ id: import("vue").Ref<string>;
4
+ currentPage: import("vue").Ref<ShowPage>;
5
+ binnacleId: import("vue").Ref<string | null>;
6
+ apiBaseURL: import("vue").Ref<string>;
7
+ aplicacion: import("vue").Ref<string>;
8
+ userState: import("vue").Ref<{
9
+ token: string | undefined;
10
+ refreshToken: string | undefined;
11
+ user: any;
12
+ isAuth: boolean;
13
+ binnacleId?: string | undefined;
14
+ apps: string[];
15
+ roles: string[];
16
+ permisos: string[];
17
+ }>;
18
+ goLoginPage: () => void;
19
+ goRegistrarPage: () => void;
20
+ goRecuperarCont: () => void;
21
+ onLogin: (values: any) => Promise<{
22
+ [key: string]: any;
23
+ } | undefined>;
24
+ on2AuthLogin: (values: any) => Promise<void>;
25
+ onLogout: () => Promise<void>;
26
+ setBinnacleId: (binnacle: string) => void;
27
+ onLoginCiudadania: (values: any, href?: string) => Promise<void>;
28
+ setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl, newRedirectLoginFunction, newRedirectLogoutFunction }: {
29
+ newBaseURL: string;
30
+ newAplicacion: string;
31
+ newRrhhUrl: string;
32
+ newRedirectLoginFunction?: Function | undefined;
33
+ newRedirectLogoutFunction?: Function | undefined;
34
+ }) => void;
35
+ setDispositivoConfianzaCookie: ({ usuario, value, days }: {
36
+ usuario: string;
37
+ value: string;
38
+ days?: number | undefined;
39
+ }) => Promise<void>;
40
+ updateUserData: (values: {
41
+ [key: string]: any;
42
+ }) => void;
43
+ };
44
+ export declare const useLoginStore: import("pinia").StoreDefinition<"LOGIN_STORE", import("pinia")._UnwrapAll<Pick<{
45
+ id: import("vue").Ref<string>;
46
+ currentPage: import("vue").Ref<ShowPage>;
47
+ binnacleId: import("vue").Ref<string | null>;
48
+ apiBaseURL: import("vue").Ref<string>;
49
+ aplicacion: import("vue").Ref<string>;
50
+ userState: import("vue").Ref<{
51
+ token: string | undefined;
52
+ refreshToken: string | undefined;
53
+ user: any;
54
+ isAuth: boolean;
55
+ binnacleId?: string | undefined;
56
+ apps: string[];
57
+ roles: string[];
58
+ permisos: string[];
59
+ }>;
60
+ goLoginPage: () => void;
61
+ goRegistrarPage: () => void;
62
+ goRecuperarCont: () => void;
63
+ onLogin: (values: any) => Promise<{
64
+ [key: string]: any;
65
+ } | undefined>;
66
+ on2AuthLogin: (values: any) => Promise<void>;
67
+ onLogout: () => Promise<void>;
68
+ setBinnacleId: (binnacle: string) => void;
69
+ onLoginCiudadania: (values: any, href?: string) => Promise<void>;
70
+ setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl, newRedirectLoginFunction, newRedirectLogoutFunction }: {
71
+ newBaseURL: string;
72
+ newAplicacion: string;
73
+ newRrhhUrl: string;
74
+ newRedirectLoginFunction?: Function | undefined;
75
+ newRedirectLogoutFunction?: Function | undefined;
76
+ }) => void;
77
+ setDispositivoConfianzaCookie: ({ usuario, value, days }: {
78
+ usuario: string;
79
+ value: string;
80
+ days?: number | undefined;
81
+ }) => Promise<void>;
82
+ updateUserData: (values: {
83
+ [key: string]: any;
84
+ }) => void;
85
+ }, "id" | "binnacleId" | "currentPage" | "apiBaseURL" | "aplicacion" | "userState">>, Pick<{
86
+ id: import("vue").Ref<string>;
87
+ currentPage: import("vue").Ref<ShowPage>;
88
+ binnacleId: import("vue").Ref<string | null>;
89
+ apiBaseURL: import("vue").Ref<string>;
90
+ aplicacion: import("vue").Ref<string>;
91
+ userState: import("vue").Ref<{
92
+ token: string | undefined;
93
+ refreshToken: string | undefined;
94
+ user: any;
95
+ isAuth: boolean;
96
+ binnacleId?: string | undefined;
97
+ apps: string[];
98
+ roles: string[];
99
+ permisos: string[];
100
+ }>;
101
+ goLoginPage: () => void;
102
+ goRegistrarPage: () => void;
103
+ goRecuperarCont: () => void;
104
+ onLogin: (values: any) => Promise<{
105
+ [key: string]: any;
106
+ } | undefined>;
107
+ on2AuthLogin: (values: any) => Promise<void>;
108
+ onLogout: () => Promise<void>;
109
+ setBinnacleId: (binnacle: string) => void;
110
+ onLoginCiudadania: (values: any, href?: string) => Promise<void>;
111
+ setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl, newRedirectLoginFunction, newRedirectLogoutFunction }: {
112
+ newBaseURL: string;
113
+ newAplicacion: string;
114
+ newRrhhUrl: string;
115
+ newRedirectLoginFunction?: Function | undefined;
116
+ newRedirectLogoutFunction?: Function | undefined;
117
+ }) => void;
118
+ setDispositivoConfianzaCookie: ({ usuario, value, days }: {
119
+ usuario: string;
120
+ value: string;
121
+ days?: number | undefined;
122
+ }) => Promise<void>;
123
+ updateUserData: (values: {
124
+ [key: string]: any;
125
+ }) => void;
126
+ }, never>, Pick<{
127
+ id: import("vue").Ref<string>;
128
+ currentPage: import("vue").Ref<ShowPage>;
129
+ binnacleId: import("vue").Ref<string | null>;
130
+ apiBaseURL: import("vue").Ref<string>;
131
+ aplicacion: import("vue").Ref<string>;
132
+ userState: import("vue").Ref<{
133
+ token: string | undefined;
134
+ refreshToken: string | undefined;
135
+ user: any;
136
+ isAuth: boolean;
137
+ binnacleId?: string | undefined;
138
+ apps: string[];
139
+ roles: string[];
140
+ permisos: string[];
141
+ }>;
142
+ goLoginPage: () => void;
143
+ goRegistrarPage: () => void;
144
+ goRecuperarCont: () => void;
145
+ onLogin: (values: any) => Promise<{
146
+ [key: string]: any;
147
+ } | undefined>;
148
+ on2AuthLogin: (values: any) => Promise<void>;
149
+ onLogout: () => Promise<void>;
150
+ setBinnacleId: (binnacle: string) => void;
151
+ onLoginCiudadania: (values: any, href?: string) => Promise<void>;
152
+ setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl, newRedirectLoginFunction, newRedirectLogoutFunction }: {
153
+ newBaseURL: string;
154
+ newAplicacion: string;
155
+ newRrhhUrl: string;
156
+ newRedirectLoginFunction?: Function | undefined;
157
+ newRedirectLogoutFunction?: Function | undefined;
158
+ }) => void;
159
+ setDispositivoConfianzaCookie: ({ usuario, value, days }: {
160
+ usuario: string;
161
+ value: string;
162
+ days?: number | undefined;
163
+ }) => Promise<void>;
164
+ updateUserData: (values: {
165
+ [key: string]: any;
166
+ }) => void;
167
+ }, "goLoginPage" | "goRegistrarPage" | "goRecuperarCont" | "onLogin" | "on2AuthLogin" | "onLogout" | "setBinnacleId" | "onLoginCiudadania" | "setConfigs" | "setDispositivoConfianzaCookie" | "updateUserData">>;
@@ -0,0 +1,13 @@
1
+ export declare const useStateStore: import("pinia").StoreDefinition<"STATE_STORE", import("pinia")._UnwrapAll<Pick<{
2
+ id: import("vue").Ref<string>;
3
+ isLoading: import("vue").Ref<boolean>;
4
+ setLoading: (value: boolean) => void;
5
+ }, "id" | "isLoading">>, Pick<{
6
+ id: import("vue").Ref<string>;
7
+ isLoading: import("vue").Ref<boolean>;
8
+ setLoading: (value: boolean) => void;
9
+ }, never>, Pick<{
10
+ id: import("vue").Ref<string>;
11
+ isLoading: import("vue").Ref<boolean>;
12
+ setLoading: (value: boolean) => void;
13
+ }, "setLoading">>;
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "fge-auth-component",
3
+ "private": false,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "main": "dist/fge-auth-component.umd.js",
10
+ "module": "dist/fge-auth-component.es.js",
11
+ "exports": {
12
+ ".": {
13
+ "import": "dist/fge-auth-component.es.js",
14
+ "require": "dist/fge-auth-component.umd.js",
15
+ "types": "./dist/outputs/main.d.ts"
16
+ },
17
+ "./dist/fge-auth-component.css": {
18
+ "import": "dist/fge-auth-component.css",
19
+ "require": "dist/fge-auth-component.css"
20
+ }
21
+ },
22
+ "types": "dist/main.d.ts",
23
+ "scripts": {
24
+ "dev": " vite --host",
25
+ "build": "vite build",
26
+ "prepack": "npm run build",
27
+ "preview": "vite preview"
28
+ },
29
+ "peerDependencies": {
30
+ "axios": "^1.4.0",
31
+ "crypto-js": "^4.1.1",
32
+ "vue": "^3.2.47",
33
+ "luxon": "^3.3.0",
34
+ "primeflex": "^3.3.0",
35
+ "primeicons": "^6.0.1",
36
+ "primevue": "^3.27.0",
37
+ "pinia": "^2.0.35",
38
+ "pinia-plugin-store": "^2.1.17",
39
+ "vee-validate": "^4.8.6",
40
+ "yup": "^1.1.1",
41
+ "uuid": "^9.0.0"
42
+ },
43
+ "dependencies": {
44
+ "axios": "^1.4.0",
45
+ "crypto-js": "^4.1.1",
46
+ "vue": "^3.2.47",
47
+ "luxon": "^3.3.0",
48
+ "primeflex": "^3.3.0",
49
+ "primeicons": "^6.0.1",
50
+ "primevue": "^3.27.0",
51
+ "pinia": "^2.0.35",
52
+ "pinia-plugin-store": "^2.1.17",
53
+ "vee-validate": "^4.8.6",
54
+ "yup": "^1.1.1",
55
+ "uuid": "^9.0.0"
56
+ },
57
+ "devDependencies": {
58
+ "@rushstack/eslint-patch": "^1.2.0",
59
+ "@types/crypto-js": "^4.1.1",
60
+ "@types/luxon": "^3.3.0",
61
+ "@types/node": "^18.15.12",
62
+ "@vue/eslint-config-prettier": "^7.1.0",
63
+ "@vue/eslint-config-typescript": "^11.0.2",
64
+ "eslint": "^8.38.0",
65
+ "eslint-plugin-vue": "^9.11.0",
66
+ "path": "^0.12.7",
67
+ "prettier": "^2.8.7",
68
+ "@types/uuid": "^9.0.1",
69
+ "@vitejs/plugin-vue": "^4.1.0",
70
+ "rollup-plugin-typescript2": "^0.34.1",
71
+ "sass": "^1.62.0",
72
+ "typescript": "^5.0.4",
73
+ "vite": "^4.3.1",
74
+ "vite-plugin-dts": "^2.3.0",
75
+ "vue-tsc": "^1.4.0"
76
+ }
77
+ }