@orbe-agro/client-core 5.1.9 → 5.2.1
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.
- package/dist/@ecme/assets/styles/app.css +1 -1
- package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
- package/dist/@ecme/auth/AuthContext.js +10 -8
- package/dist/@ecme/auth/AuthContext.js.map +1 -1
- package/dist/@ecme/auth/AuthProvider.js +81 -62
- package/dist/@ecme/auth/AuthProvider.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +32 -21
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/Blank.js +3 -17
- package/dist/@ecme/components/layouts/PostLoginLayout/components/Blank.js.map +1 -1
- package/dist/@ecme/components/layouts/RouteNotFound.js.map +1 -1
- package/dist/@ecme/components/route/ProtectedRoute.js +6 -12
- package/dist/@ecme/components/route/ProtectedRoute.js.map +1 -1
- package/dist/@ecme/components/route/PublicRoute.js +7 -7
- package/dist/@ecme/components/route/PublicRoute.js.map +1 -1
- package/dist/@ecme/configs/app.config.js +4 -3
- package/dist/@ecme/configs/app.config.js.map +1 -1
- package/dist/@ecme/configs/routes.config/authRoute.js +3 -2
- package/dist/@ecme/configs/routes.config/authRoute.js.map +1 -1
- package/dist/@ecme/views/auth/ResetPassword/ResetPassword.js +43 -37
- package/dist/@ecme/views/auth/ResetPassword/ResetPassword.js.map +1 -1
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +67 -78
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
- package/dist/@types/@ecme/@types/auth.d.ts +3 -0
- package/dist/@types/@ecme/@types/auth.d.ts.map +1 -1
- package/dist/@types/@ecme/auth/AuthContext.d.ts +2 -1
- package/dist/@types/@ecme/auth/AuthContext.d.ts.map +1 -1
- package/dist/@types/@ecme/auth/AuthProvider.d.ts +2 -2
- package/dist/@types/@ecme/auth/AuthProvider.d.ts.map +1 -1
- package/dist/@types/@ecme/auth/useAuth.d.ts +1 -0
- package/dist/@types/@ecme/auth/useAuth.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/Blank.d.ts +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/Blank.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/RouteNotFound.d.ts.map +1 -1
- package/dist/@types/@ecme/components/route/ProtectedRoute.d.ts.map +1 -1
- package/dist/@types/@ecme/components/route/PublicRoute.d.ts.map +1 -1
- package/dist/@types/@ecme/configs/app.config.d.ts +1 -0
- package/dist/@types/@ecme/configs/app.config.d.ts.map +1 -1
- package/dist/@types/@ecme/configs/routes.config/authRoute.d.ts +1 -1
- package/dist/@types/@ecme/configs/routes.config/authRoute.d.ts.map +1 -1
- package/dist/@types/@ecme/views/auth/ResetPassword/ResetPassword.d.ts +1 -1
- package/dist/@types/@ecme/views/auth/ResetPassword/ResetPassword.d.ts.map +1 -1
- package/dist/@types/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.d.ts +3 -2
- package/dist/@types/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.d.ts.map +1 -1
- package/dist/@types/@ecme/views/auth/SignIn/components/SignInForm.d.ts +2 -2
- package/dist/@types/@ecme/views/auth/SignIn/components/SignInForm.d.ts.map +1 -1
- package/dist/@types/base/@types/api/response/dadosMestres/TDefaultBusinessPartnerResponse.d.ts +1 -0
- package/dist/@types/base/@types/api/response/dadosMestres/TDefaultBusinessPartnerResponse.d.ts.map +1 -1
- package/dist/@types/base/@types/api/response/dadosMestres/TPageUserResponse.d.ts +2 -1
- package/dist/@types/base/@types/api/response/dadosMestres/TPageUserResponse.d.ts.map +1 -1
- package/dist/@types/base/@types/api/response/originacao/TCockpitComprasContratosResponse.d.ts +7 -0
- package/dist/@types/base/@types/api/response/originacao/TCockpitComprasContratosResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/originacao/TContratoCompraGraosByBusinessPartnerResponse.d.ts +10 -0
- package/dist/@types/base/@types/api/response/originacao/TContratoCompraGraosByBusinessPartnerResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/originacao/TContratoCompraGraosEntregaDetailsResponse.d.ts +6 -0
- package/dist/@types/base/@types/api/response/originacao/TContratoCompraGraosEntregaDetailsResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/originacao/TContratoCompraGraosEntregaResponse.d.ts +6 -0
- package/dist/@types/base/@types/api/response/originacao/TContratoCompraGraosEntregaResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/originacao/TDefaultContratoCompraGraosResponse.d.ts +3 -0
- package/dist/@types/base/@types/api/response/originacao/TDefaultContratoCompraGraosResponse.d.ts.map +1 -1
- package/dist/@types/base/@types/api/response/originacao/TDefaultDadosPessoaisResponse.d.ts +6 -0
- package/dist/@types/base/@types/api/response/originacao/TDefaultDadosPessoaisResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/originacao/TDefaultUserResponse.d.ts +2 -0
- package/dist/@types/base/@types/api/response/originacao/TDefaultUserResponse.d.ts.map +1 -1
- package/dist/@types/base/@types/api/response/originacao/TFindAllCockpitComprasResponse.d.ts +6 -0
- package/dist/@types/base/@types/api/response/originacao/TFindAllCockpitComprasResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/models/auth.d.ts +2 -2
- package/dist/@types/base/@types/models/auth.d.ts.map +1 -1
- package/dist/@types/base/components/routes/CrossMfeLink.d.ts +7 -0
- package/dist/@types/base/components/routes/CrossMfeLink.d.ts.map +1 -0
- package/dist/@types/base/components/routes/RoutesBase.d.ts +1 -1
- package/dist/@types/base/components/routes/RoutesBase.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +3 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/originacao/config/cockpitCompras.d.ts +5 -0
- package/dist/@types/base/configs/endpoints.config/originacao/config/cockpitCompras.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts +3 -0
- package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts.map +1 -1
- package/dist/@types/base/services/modules/originacao/cockpitCompras/cockpitComprasService.d.ts +4 -0
- package/dist/@types/base/services/modules/originacao/cockpitCompras/cockpitComprasService.d.ts.map +1 -0
- package/dist/base/@types/api/response/originacao/TCockpitComprasContratosResponse.js +2 -0
- package/dist/base/@types/api/response/originacao/TCockpitComprasContratosResponse.js.map +1 -0
- package/dist/base/@types/api/response/originacao/TContratoCompraGraosByBusinessPartnerResponse.js +2 -0
- package/dist/base/@types/api/response/originacao/TContratoCompraGraosByBusinessPartnerResponse.js.map +1 -0
- package/dist/base/@types/api/response/originacao/TContratoCompraGraosEntregaDetailsResponse.js +2 -0
- package/dist/base/@types/api/response/originacao/TContratoCompraGraosEntregaDetailsResponse.js.map +1 -0
- package/dist/base/@types/api/response/originacao/TContratoCompraGraosEntregaResponse.js +2 -0
- package/dist/base/@types/api/response/originacao/TContratoCompraGraosEntregaResponse.js.map +1 -0
- package/dist/base/@types/api/response/originacao/TDefaultDadosPessoaisResponse.js +2 -0
- package/dist/base/@types/api/response/originacao/TDefaultDadosPessoaisResponse.js.map +1 -0
- package/dist/base/@types/api/response/originacao/TFindAllCockpitComprasResponse.js +2 -0
- package/dist/base/@types/api/response/originacao/TFindAllCockpitComprasResponse.js.map +1 -0
- package/dist/base/assets/styles/init.css +1 -1
- package/dist/base/components/routes/CrossMfeLink.js +15 -0
- package/dist/base/components/routes/CrossMfeLink.js.map +1 -0
- package/dist/base/components/routes/RoutesBase.js +25 -25
- package/dist/base/components/routes/RoutesBase.js.map +1 -1
- package/dist/base/configs/endpoints.config/adm/config/auth.js +1 -1
- package/dist/base/configs/endpoints.config/adm/config/auth.js.map +1 -1
- package/dist/base/configs/endpoints.config/originacao/config/cockpitCompras.js +7 -0
- package/dist/base/configs/endpoints.config/originacao/config/cockpitCompras.js.map +1 -0
- package/dist/base/configs/endpoints.config/originacao/originacao.js +13 -11
- package/dist/base/configs/endpoints.config/originacao/originacao.js.map +1 -1
- package/dist/base/services/modules/originacao/cockpitCompras/cockpitComprasService.js +13 -0
- package/dist/base/services/modules/originacao/cockpitCompras/cockpitComprasService.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,92 +1,81 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as L, Fragment as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as F } from "react";
|
|
3
3
|
import "../../../../components/ui/Button/index.js";
|
|
4
4
|
import "../../../../components/ui/Form/index.js";
|
|
5
|
-
import
|
|
6
|
-
import { apiResetPassword as
|
|
7
|
-
import { useForm as
|
|
8
|
-
import { zodResolver as
|
|
9
|
-
import { z as
|
|
10
|
-
import "../../../../
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
import w from "../../../../components/shared/PasswordInput.js";
|
|
6
|
+
import { apiResetPassword as I } from "../../../../services/AuthService.js";
|
|
7
|
+
import { useForm as B, Controller as h } from "react-hook-form";
|
|
8
|
+
import { zodResolver as N } from "@hookform/resolvers/zod";
|
|
9
|
+
import { z as t } from "zod";
|
|
10
|
+
import "../../../../auth/index.js";
|
|
11
|
+
import { useNavigate as _ } from "react-router-dom";
|
|
12
|
+
import j from "../../../../configs/app.config.js";
|
|
13
|
+
import { useThemeStore as x } from "../../../../store/themeStore.js";
|
|
14
|
+
import { LAYOUT_COLLAPSIBLE_SIDE as U } from "../../../../constants/theme.constant.js";
|
|
15
|
+
import q from "../../../../auth/useAuth.js";
|
|
16
|
+
import { Form as z } from "../../../../components/ui/Form/Form.js";
|
|
17
|
+
import P from "../../../../components/ui/Form/FormItem.js";
|
|
18
|
+
import H from "../../../../components/ui/Button/Button.js";
|
|
19
|
+
const O = t.object({
|
|
20
|
+
id: t.string().optional(),
|
|
21
|
+
newPassword: t.string({ required_error: "Por favor digite uma senha" }),
|
|
22
|
+
confirmPassword: t.string({
|
|
18
23
|
required_error: "Confirme sua nova senha."
|
|
19
|
-
}),
|
|
20
|
-
identify: a.string({
|
|
21
|
-
required_error: "Por favor digite o código de verificação."
|
|
22
24
|
})
|
|
23
|
-
}).refine((
|
|
25
|
+
}).refine((e) => e.newPassword === e.confirmPassword, {
|
|
24
26
|
message: "As senhas não são iguais.",
|
|
25
27
|
path: ["confirmPassword"]
|
|
26
|
-
}),
|
|
27
|
-
var
|
|
28
|
-
const [
|
|
29
|
-
className:
|
|
28
|
+
}), tr = (e) => {
|
|
29
|
+
var f, c;
|
|
30
|
+
const [m, s] = F(!1), g = _(), { updateUserSession: v } = q(), S = x((o) => o.setLayout), {
|
|
31
|
+
className: b,
|
|
30
32
|
setMessage: n,
|
|
31
|
-
setResetComplete:
|
|
32
|
-
resetComplete:
|
|
33
|
+
setResetComplete: i,
|
|
34
|
+
resetComplete: C,
|
|
33
35
|
children: y,
|
|
34
|
-
type:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
type: d,
|
|
37
|
+
userId: E
|
|
38
|
+
} = e, {
|
|
39
|
+
handleSubmit: A,
|
|
40
|
+
formState: { errors: a },
|
|
41
|
+
control: l
|
|
42
|
+
} = B({
|
|
43
|
+
resolver: N(O)
|
|
41
44
|
});
|
|
42
|
-
return /* @__PURE__ */ r("div", { className:
|
|
43
|
-
const { newPassword:
|
|
45
|
+
return /* @__PURE__ */ r("div", { className: b, children: C ? /* @__PURE__ */ r(u, { children: y }) : /* @__PURE__ */ L(z, { onSubmit: A(async (o) => {
|
|
46
|
+
const { newPassword: R } = o;
|
|
47
|
+
s(!0);
|
|
44
48
|
try {
|
|
45
|
-
await
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
type:
|
|
49
|
-
})
|
|
50
|
-
} catch (
|
|
49
|
+
await I({
|
|
50
|
+
id: E ?? "",
|
|
51
|
+
password: R,
|
|
52
|
+
type: d
|
|
53
|
+
}), s(!1), i == null || i(!0), v({ primeiroAcesso: !1 }), S(U), g(j.authenticatedEntryPath);
|
|
54
|
+
} catch (p) {
|
|
51
55
|
n == null || n(
|
|
52
|
-
typeof
|
|
53
|
-
),
|
|
56
|
+
typeof p == "string" ? p : "Houve um erro ao alterar sua senha."
|
|
57
|
+
), s(!1);
|
|
54
58
|
}
|
|
55
|
-
|
|
59
|
+
s(!1);
|
|
56
60
|
}), children: [
|
|
57
|
-
|
|
58
|
-
l,
|
|
59
|
-
{
|
|
60
|
-
label: "Código de verificação",
|
|
61
|
-
invalid: !!o.identify,
|
|
62
|
-
errorMessage: (u = o.identify) == null ? void 0 : u.message,
|
|
63
|
-
children: /* @__PURE__ */ r(
|
|
64
|
-
f,
|
|
65
|
-
{
|
|
66
|
-
name: "identify",
|
|
67
|
-
control: m,
|
|
68
|
-
render: ({ field: e }) => /* @__PURE__ */ r(A, { autoComplete: "off", ...e })
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
),
|
|
61
|
+
d === "RECUPERARSENHA" && /* @__PURE__ */ r(u, {}),
|
|
73
62
|
/* @__PURE__ */ r(
|
|
74
|
-
|
|
63
|
+
P,
|
|
75
64
|
{
|
|
76
65
|
label: "Senha",
|
|
77
|
-
invalid: !!
|
|
78
|
-
errorMessage: (
|
|
66
|
+
invalid: !!a.newPassword,
|
|
67
|
+
errorMessage: (f = a.newPassword) == null ? void 0 : f.message,
|
|
79
68
|
children: /* @__PURE__ */ r(
|
|
80
|
-
|
|
69
|
+
h,
|
|
81
70
|
{
|
|
82
71
|
name: "newPassword",
|
|
83
|
-
control:
|
|
84
|
-
render: ({ field:
|
|
85
|
-
|
|
72
|
+
control: l,
|
|
73
|
+
render: ({ field: o }) => /* @__PURE__ */ r(
|
|
74
|
+
w,
|
|
86
75
|
{
|
|
87
76
|
autoComplete: "off",
|
|
88
77
|
placeholder: "••••••••••••",
|
|
89
|
-
...
|
|
78
|
+
...o
|
|
90
79
|
}
|
|
91
80
|
)
|
|
92
81
|
}
|
|
@@ -94,22 +83,22 @@ const N = a.object({
|
|
|
94
83
|
}
|
|
95
84
|
),
|
|
96
85
|
/* @__PURE__ */ r(
|
|
97
|
-
|
|
86
|
+
P,
|
|
98
87
|
{
|
|
99
88
|
label: "Confirmar Senha",
|
|
100
|
-
invalid: !!
|
|
101
|
-
errorMessage: (
|
|
89
|
+
invalid: !!a.confirmPassword,
|
|
90
|
+
errorMessage: (c = a.confirmPassword) == null ? void 0 : c.message,
|
|
102
91
|
children: /* @__PURE__ */ r(
|
|
103
|
-
|
|
92
|
+
h,
|
|
104
93
|
{
|
|
105
94
|
name: "confirmPassword",
|
|
106
|
-
control:
|
|
107
|
-
render: ({ field:
|
|
108
|
-
|
|
95
|
+
control: l,
|
|
96
|
+
render: ({ field: o }) => /* @__PURE__ */ r(
|
|
97
|
+
w,
|
|
109
98
|
{
|
|
110
99
|
autoComplete: "off",
|
|
111
100
|
placeholder: "Confirm Password",
|
|
112
|
-
...
|
|
101
|
+
...o
|
|
113
102
|
}
|
|
114
103
|
)
|
|
115
104
|
}
|
|
@@ -117,19 +106,19 @@ const N = a.object({
|
|
|
117
106
|
}
|
|
118
107
|
),
|
|
119
108
|
/* @__PURE__ */ r(
|
|
120
|
-
|
|
109
|
+
H,
|
|
121
110
|
{
|
|
122
111
|
className: "mt-5",
|
|
123
112
|
block: !0,
|
|
124
|
-
loading:
|
|
113
|
+
loading: m,
|
|
125
114
|
variant: "solid",
|
|
126
115
|
type: "submit",
|
|
127
|
-
children:
|
|
116
|
+
children: m ? "Enviando..." : "Enviar"
|
|
128
117
|
}
|
|
129
118
|
)
|
|
130
119
|
] }) });
|
|
131
120
|
};
|
|
132
121
|
export {
|
|
133
|
-
|
|
122
|
+
tr as default
|
|
134
123
|
};
|
|
135
124
|
//# sourceMappingURL=ResetPasswordForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordForm.js","sources":["../../../../../../lib/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.tsx"],"sourcesContent":["import { useState } from
|
|
1
|
+
{"version":3,"file":"ResetPasswordForm.js","sources":["../../../../../../lib/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport Button from \"@/components/ui/Button\";\nimport { FormItem, Form } from \"@/components/ui/Form\";\nimport PasswordInput from \"@/components/shared/PasswordInput\";\nimport { apiResetPassword } from \"@/services/AuthService\";\nimport { useForm, Controller } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { z } from \"zod\";\nimport type { ZodType } from \"zod\";\nimport type { CommonProps } from \"@/@types/common\";\nimport { TAlterarPasswordType } from \"@base/@types/models/auth\";\nimport { Input } from \"@/components/ui\";\nimport { useAuth } from \"@/auth\";\nimport { useNavigate } from \"react-router-dom\";\nimport appConfig from \"@/configs/app.config\";\nimport { useThemeStore } from \"@/store/themeStore\";\nimport { LAYOUT_COLLAPSIBLE_SIDE } from \"@/constants/theme.constant\";\n\ninterface ResetPasswordFormProps extends CommonProps {\n resetComplete: boolean;\n setResetComplete?: (compplete: boolean) => void;\n setMessage?: (message: string) => void;\n type: TAlterarPasswordType;\n userId?: string;\n}\n\ntype ResetPasswordFormSchema = {\n id?: string;\n newPassword: string;\n confirmPassword: string;\n};\n\nconst validationSchema: ZodType<ResetPasswordFormSchema> = z\n .object({\n id: z.string().optional(),\n newPassword: z.string({ required_error: \"Por favor digite uma senha\" }),\n confirmPassword: z.string({\n required_error: \"Confirme sua nova senha.\",\n }),\n })\n .refine((data) => data.newPassword === data.confirmPassword, {\n message: \"As senhas não são iguais.\",\n path: [\"confirmPassword\"],\n });\n\nconst ResetPasswordForm = (props: ResetPasswordFormProps) => {\n const [isSubmitting, setSubmitting] = useState<boolean>(false);\n const navigate = useNavigate();\n const { updateUserSession } = useAuth();\n const setLayout = useThemeStore((state) => state.setLayout);\n\n const {\n className,\n setMessage,\n setResetComplete,\n resetComplete,\n children,\n type,\n userId,\n } = props;\n\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<ResetPasswordFormSchema>({\n resolver: zodResolver(validationSchema),\n });\n\n const onResetPassword = async (values: ResetPasswordFormSchema) => {\n const { newPassword } = values;\n setSubmitting(true);\n\n try {\n await apiResetPassword<boolean>({\n id: userId ?? \"\",\n password: newPassword,\n type,\n });\n\n setSubmitting(false);\n setResetComplete?.(true);\n updateUserSession({ primeiroAcesso: false });\n setLayout(LAYOUT_COLLAPSIBLE_SIDE);\n navigate(appConfig.authenticatedEntryPath);\n } catch (errors) {\n setMessage?.(\n typeof errors === \"string\"\n ? errors\n : \"Houve um erro ao alterar sua senha.\"\n );\n setSubmitting(false);\n }\n\n setSubmitting(false);\n };\n\n return (\n <div className={className}>\n {!resetComplete ? (\n <Form onSubmit={handleSubmit(onResetPassword)}>\n {type === \"RECUPERARSENHA\" && (\n <></>\n // <FormItem\n // label=\"Código de verificação\"\n // invalid={Boolean(errors.identify)}\n // errorMessage={errors.identify?.message}\n // >\n // <Controller\n // name=\"identify\"\n // control={control}\n // render={({ field }) => <Input autoComplete=\"off\" {...field} />}\n // />\n // </FormItem>\n )}\n <FormItem\n label=\"Senha\"\n invalid={Boolean(errors.newPassword)}\n errorMessage={errors.newPassword?.message}\n >\n <Controller\n name=\"newPassword\"\n control={control}\n render={({ field }) => (\n <PasswordInput\n autoComplete=\"off\"\n placeholder=\"••••••••••••\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Confirmar Senha\"\n invalid={Boolean(errors.confirmPassword)}\n errorMessage={errors.confirmPassword?.message}\n >\n <Controller\n name=\"confirmPassword\"\n control={control}\n render={({ field }) => (\n <PasswordInput\n autoComplete=\"off\"\n placeholder=\"Confirm Password\"\n {...field}\n />\n )}\n />\n </FormItem>\n <Button\n className=\"mt-5\"\n block\n loading={isSubmitting}\n variant=\"solid\"\n type=\"submit\"\n >\n {isSubmitting ? \"Enviando...\" : \"Enviar\"}\n </Button>\n </Form>\n ) : (\n <>{children}</>\n )}\n </div>\n );\n};\n\nexport default ResetPasswordForm;\n"],"names":["validationSchema","z","data","ResetPasswordForm","props","isSubmitting","setSubmitting","useState","navigate","useNavigate","updateUserSession","useAuth","setLayout","useThemeStore","state","className","setMessage","setResetComplete","resetComplete","children","type","userId","handleSubmit","errors","control","useForm","zodResolver","jsx","Fragment","Form","values","newPassword","apiResetPassword","LAYOUT_COLLAPSIBLE_SIDE","appConfig","FormItem","_a","Controller","field","PasswordInput","_b","Button"],"mappings":";;;;;;;;;;;;;;;;;;AAgCA,MAAMA,IAAqDC,EACxD,OAAO;AAAA,EACN,IAAIA,EAAE,OAAA,EAAS,SAAA;AAAA,EACf,aAAaA,EAAE,OAAO,EAAE,gBAAgB,8BAA8B;AAAA,EACtE,iBAAiBA,EAAE,OAAO;AAAA,IACxB,gBAAgB;AAAA,EAAA,CACjB;AACH,CAAC,EACA,OAAO,CAACC,MAASA,EAAK,gBAAgBA,EAAK,iBAAiB;AAAA,EAC3D,SAAS;AAAA,EACT,MAAM,CAAC,iBAAiB;AAC1B,CAAC,GAEGC,KAAoB,CAACC,MAAkC;;AAC3D,QAAM,CAACC,GAAcC,CAAa,IAAIC,EAAkB,EAAK,GACvDC,IAAWC,EAAA,GACX,EAAE,mBAAAC,EAAA,IAAsBC,EAAA,GACxBC,IAAYC,EAAc,CAACC,MAAUA,EAAM,SAAS,GAEpD;AAAA,IACJ,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,EAAA,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AAAA,gBACX,GAAGD;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,IAEF,gBAAAX;AAAA,MAACQ;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,SAAS,EAAQZ,EAAO;AAAA,QACxB,eAAciB,IAAAjB,EAAO,oBAAP,gBAAAiB,EAAwB;AAAA,QAEtC,UAAA,gBAAAb;AAAA,UAACU;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,SAAAb;AAAA,YACA,QAAQ,CAAC,EAAE,OAAAc,EAAA,MACT,gBAAAX;AAAA,cAACY;AAAA,cAAA;AAAA,gBACC,cAAa;AAAA,gBACb,aAAY;AAAA,gBACX,GAAGD;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,IAEF,gBAAAX;AAAA,MAACc;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,OAAK;AAAA,QACL,SAASpC;AAAA,QACT,SAAQ;AAAA,QACR,MAAK;AAAA,QAEJ,cAAe,gBAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,EAClC,EAAA,CACF,EAEY,CAEhB;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInForm.js","sources":["../../../../../../lib/@ecme/views/auth/SignIn/components/SignInForm.tsx"],"sourcesContent":["import { ReactNode, useState } from
|
|
1
|
+
{"version":3,"file":"SignInForm.js","sources":["../../../../../../lib/@ecme/views/auth/SignIn/components/SignInForm.tsx"],"sourcesContent":["import { ReactNode, useState } from \"react\";\nimport Input from \"@/components/ui/Input\";\nimport Button from \"@/components/ui/Button\";\nimport { FormItem, Form } from \"@/components/ui/Form\";\nimport PasswordInput from \"@/components/shared/PasswordInput\";\nimport classNames from \"@/utils/classNames\";\nimport { useAuth } from \"@/auth\";\nimport { useForm, Controller } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { z, ZodType } from \"zod\";\nimport type { CommonProps } from \"@/@types/common\";\n\ninterface SignInFormProps extends CommonProps {\n disableSubmit?: boolean;\n passwordHint?: string | ReactNode;\n setMessage?: (message: string) => void;\n}\n\ntype SignInFormSchema = {\n username: string;\n password: string;\n};\n\nconst validationSchema: ZodType<SignInFormSchema> = z.object({\n username: z\n .string({ required_error: \"Por favor digite um login.\" })\n .min(1, { message: \"Por favor digite um login válido.\" }),\n password: z\n .string({ required_error: \"Por favor digite uma senha.\" })\n .min(1, { message: \"Por favor digite uma senha válida.\" }),\n});\n\nconst SignInForm = (props: SignInFormProps) => {\n const [isSubmitting, setSubmitting] = useState<boolean>(false);\n\n const { disableSubmit = false, className, setMessage, passwordHint } = props;\n\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<SignInFormSchema>({\n defaultValues: {\n username: \"\",\n password: \"\",\n },\n resolver: zodResolver(validationSchema),\n });\n\n const { signIn } = useAuth();\n\n const onSignIn = async (values: SignInFormSchema) => {\n const { username, password } = values;\n\n if (!disableSubmit) {\n setSubmitting(true);\n\n const result = await signIn({ username, password });\n\n if (result?.status === \"failed\") {\n setMessage?.(result.message);\n }\n }\n\n setSubmitting(false);\n };\n\n return (\n <div className={className}>\n <Form onSubmit={handleSubmit(onSignIn)}>\n <FormItem\n label=\"Login\"\n invalid={Boolean(errors.username)}\n errorMessage={errors.username?.message}\n >\n <Controller\n name=\"username\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"text\"\n placeholder=\"Login\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Senha\"\n invalid={Boolean(errors.password)}\n errorMessage={errors.password?.message}\n className={classNames(\n passwordHint ? \"mb-0\" : \"\",\n errors.password?.message ? \"mb-8\" : \"\"\n )}\n >\n <Controller\n name=\"password\"\n control={control}\n rules={{ required: true }}\n render={({ field }) => (\n <PasswordInput\n type=\"text\"\n placeholder=\"Senha\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n {passwordHint}\n <Button\n block\n loading={isSubmitting}\n variant=\"solid\"\n type=\"submit\"\n className=\"mt-6\"\n >\n {isSubmitting ? \"Entrando...\" : \"Entrar\"}\n </Button>\n </Form>\n </div>\n );\n};\n\nexport default SignInForm;\n"],"names":["validationSchema","z","SignInForm","props","isSubmitting","setSubmitting","useState","disableSubmit","className","setMessage","passwordHint","handleSubmit","errors","control","useForm","zodResolver","signIn","useAuth","jsx","jsxs","Form","values","username","password","result","FormItem","_a","Controller","field","Input","_b","classNames","_c","PasswordInput","Button"],"mappings":";;;;;;;;;;;;;;;;AAuBA,MAAMA,IAA8CC,EAAE,OAAO;AAAA,EAC3D,UAAUA,EACP,OAAO,EAAE,gBAAgB,6BAAA,CAA8B,EACvD,IAAI,GAAG,EAAE,SAAS,qCAAqC;AAAA,EAC1D,UAAUA,EACP,OAAO,EAAE,gBAAgB,+BAA+B,EACxD,IAAI,GAAG,EAAE,SAAS,sCAAsC;AAC7D,CAAC,GAEKC,IAAa,CAACC,MAA2B;;AAC7C,QAAM,CAACC,GAAcC,CAAa,IAAIC,EAAkB,EAAK,GAEvD,EAAE,eAAAC,IAAgB,IAAO,WAAAC,GAAW,YAAAC,GAAY,cAAAC,MAAiBP,GAEjE;AAAA,IACJ,cAAAQ;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,SAAAC;AAAA,EAAA,IACEC,EAA0B;AAAA,IAC5B,eAAe;AAAA,MACb,UAAU;AAAA,MACV,UAAU;AAAA,IAAA;AAAA,IAEZ,UAAUC,EAAYf,CAAgB;AAAA,EAAA,CACvC,GAEK,EAAE,QAAAgB,EAAA,IAAWC,EAAA;AAkBnB,SACE,gBAAAC,EAAC,SAAI,WAAAV,GACH,UAAA,gBAAAW,EAACC,KAAK,UAAUT,EAlBH,OAAOU,MAA6B;AACnD,UAAM,EAAE,UAAAC,GAAU,UAAAC,EAAA,IAAaF;AAE/B,QAAI,CAACd,GAAe;AAClB,M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L;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,IAEDlB;AAAA,IACD,gBAAAQ;AAAA,MAACgB;AAAA,MAAA;AAAA,QACC,OAAK;AAAA,QACL,SAAS9B;AAAA,QACT,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,WAAU;AAAA,QAET,cAAe,gBAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,EAClC,EAAA,CACF,EAAA,CACF;AAEJ;"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export type SignInCredential = {
|
|
2
2
|
username: string;
|
|
3
3
|
password: string;
|
|
4
|
+
primeiroAcesso?: boolean;
|
|
4
5
|
};
|
|
5
6
|
export type SignInResponse = {
|
|
6
7
|
jwtToken: string;
|
|
7
8
|
id: number;
|
|
8
9
|
nome: string;
|
|
10
|
+
primeiroAcesso?: boolean;
|
|
9
11
|
};
|
|
10
12
|
export type SignUpResponse = SignInResponse;
|
|
11
13
|
export type SignUpCredential = {
|
|
@@ -30,6 +32,7 @@ export type User = {
|
|
|
30
32
|
userName?: string | null;
|
|
31
33
|
email?: string | null;
|
|
32
34
|
authority?: string[];
|
|
35
|
+
primeiroAcesso?: boolean;
|
|
33
36
|
};
|
|
34
37
|
export type Token = {
|
|
35
38
|
accessToken: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/@types/auth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/@types/auth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,C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C,EAAE,IAAI,KAAK,IAAI,CAAA;IAC9C,QAAQ,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SignInCredential, SignUpCredential, AuthResult, User, OauthSignInCallbackPayload } from
|
|
1
|
+
import type { SignInCredential, SignUpCredential, AuthResult, User, OauthSignInCallbackPayload } from "@/@types/auth";
|
|
2
2
|
type Auth = {
|
|
3
3
|
authenticated: boolean;
|
|
4
4
|
user: User;
|
|
@@ -6,6 +6,7 @@ type Auth = {
|
|
|
6
6
|
signUp: (values: SignUpCredential) => AuthResult;
|
|
7
7
|
signOut: () => void;
|
|
8
8
|
oAuthSignIn: (callback: (payload: OauthSignInCallbackPayload) => void) => void;
|
|
9
|
+
updateUserSession: (newUserData: Partial<User>) => void;
|
|
9
10
|
};
|
|
10
11
|
declare const AuthContext: import("react").Context<Auth>;
|
|
11
12
|
export default AuthContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/auth/AuthContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/auth/AuthContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,IAAI,EACJ,0BAA0B,EAC3B,MAAM,eAAe,CAAC;AAEvB,KAAK,IAAI,GAAG;IACV,aAAa,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,UAAU,CAAC;IACjD,MAAM,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,UAAU,CAAC;IACjD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,CACX,QAAQ,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,KACpD,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;CACzD,CAAC;AAyBF,QAAA,MAAM,WAAW,+BAQf,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/auth/AuthProvider.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/auth/AuthProvider.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAe,MAAM,kBAAkB,CAAC;AAGjE,KAAK,iBAAiB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC;AAEjD,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAcF,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CA0IpD;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -5,6 +5,7 @@ declare const useAuth: () => {
|
|
|
5
5
|
signUp: (values: import("..").SignUpCredential) => import("..").AuthResult;
|
|
6
6
|
signOut: () => void;
|
|
7
7
|
oAuthSignIn: (callback: (payload: import("..").OauthSignInCallbackPayload) => void) => void;
|
|
8
|
+
updateUserSession: (newUserData: Partial<import("..").User>) => void;
|
|
8
9
|
};
|
|
9
10
|
export default useAuth;
|
|
10
11
|
//# sourceMappingURL=useAuth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/auth/useAuth.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/auth/useAuth.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,OAAO;;;;;;;;CAQZ,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostLoginLayout.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"PostLoginLayout.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAU1C,UAAU,oBAAqB,SAAQ,WAAW;IAChD,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAsBD,QAAA,MAAM,eAAe,GAAI,yCAItB,oBAAoB,4CAsBtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blank.d.ts","sourceRoot":"","sources":["../../../../../../../lib/@ecme/components/layouts/PostLoginLayout/components/Blank.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Blank.d.ts","sourceRoot":"","sources":["../../../../../../../lib/@ecme/components/layouts/PostLoginLayout/components/Blank.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,QAAA,MAAM,KAAK,GAAI,cAAc,WAAW,4CAEvC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteNotFound.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/layouts/RouteNotFound.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RouteNotFound.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/layouts/RouteNotFound.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,GAAI,cAAc,uBAAuB,4CAO3D,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtectedRoute.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/route/ProtectedRoute.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,cAAc,+
|
|
1
|
+
{"version":3,"file":"ProtectedRoute.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/route/ProtectedRoute.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,cAAc,+CAmBnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicRoute.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/route/PublicRoute.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW,+
|
|
1
|
+
{"version":3,"file":"PublicRoute.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/route/PublicRoute.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW,+CAQhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.config.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/configs/app.config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,sBAAsB,EAAE,MAAM,CAAA;IAC9B,wBAAwB,EAAE,MAAM,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,0BAA0B,EAAE,cAAc,GAAG,gBAAgB,GAAG,SAAS,CAAA;IACzE,UAAU,EAAE,OAAO,CAAA;IACnB,oBAAoB,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"app.config.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/configs/app.config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,sBAAsB,EAAE,MAAM,CAAA;IAC9B,wBAAwB,EAAE,MAAM,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,0BAA0B,EAAE,cAAc,GAAG,gBAAgB,GAAG,SAAS,CAAA;IACzE,UAAU,EAAE,OAAO,CAAA;IACnB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,eAAe,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,SAUhB,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authRoute.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/configs/routes.config/authRoute.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"authRoute.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/configs/routes.config/authRoute.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,QAAA,MAAM,SAAS,EAAE,MAsChB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/views/auth/ResetPassword/ResetPassword.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/views/auth/ResetPassword/ResetPassword.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAMhE,KAAK,kBAAkB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,oBAAoB,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,sBAG/B,kBAAkB,4CAuEpB,CAAC;AAEF,QAAA,MAAM,aAAa,+CAElB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { CommonProps } from
|
|
2
|
-
import { TAlterarPasswordType } from
|
|
1
|
+
import type { CommonProps } from "@/@types/common";
|
|
2
|
+
import { TAlterarPasswordType } from "@base/@types/models/auth";
|
|
3
3
|
interface ResetPasswordFormProps extends CommonProps {
|
|
4
4
|
resetComplete: boolean;
|
|
5
5
|
setResetComplete?: (compplete: boolean) => void;
|
|
6
6
|
setMessage?: (message: string) => void;
|
|
7
7
|
type: TAlterarPasswordType;
|
|
8
|
+
userId?: string;
|
|
8
9
|
}
|
|
9
10
|
declare const ResetPasswordForm: (props: ResetPasswordFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default ResetPasswordForm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordForm.d.ts","sourceRoot":"","sources":["../../../../../../../lib/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ResetPasswordForm.d.ts","sourceRoot":"","sources":["../../../../../../../lib/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAQhE,UAAU,sBAAuB,SAAQ,WAAW;IAClD,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAqBD,QAAA,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,4CAuHvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import type { CommonProps } from
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import type { CommonProps } from "@/@types/common";
|
|
3
3
|
interface SignInFormProps extends CommonProps {
|
|
4
4
|
disableSubmit?: boolean;
|
|
5
5
|
passwordHint?: string | ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInForm.d.ts","sourceRoot":"","sources":["../../../../../../../lib/@ecme/views/auth/SignIn/components/SignInForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"SignInForm.d.ts","sourceRoot":"","sources":["../../../../../../../lib/@ecme/views/auth/SignIn/components/SignInForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAU5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,UAAU,eAAgB,SAAQ,WAAW;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAgBD,QAAA,MAAM,UAAU,GAAI,OAAO,eAAe,4CA4FzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/dist/@types/base/@types/api/response/dadosMestres/TDefaultBusinessPartnerResponse.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type TDefaultBusinessPartnerResponse = {
|
|
|
6
6
|
nomeCompletoBusinessPartner: string;
|
|
7
7
|
cnpj: string | null;
|
|
8
8
|
cpf: string | null;
|
|
9
|
+
inscricaoEstadual: string;
|
|
9
10
|
bancosBusinessPartner: TDefaultBancoBusinessPartnerResponse[];
|
|
10
11
|
enderecosBusinessPartner: TDefaultEnderecoBusinessPartnerResponse[];
|
|
11
12
|
isFornecedor: boolean;
|
package/dist/@types/base/@types/api/response/dadosMestres/TDefaultBusinessPartnerResponse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TDefaultBusinessPartnerResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/dadosMestres/TDefaultBusinessPartnerResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AAEpG,MAAM,MAAM,+BAA+B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,2BAA2B,EAAE,MAAM,CAAC;IACpC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,qBAAqB,EAAE,oCAAoC,EAAE,CAAC;IAC9D,wBAAwB,EAAE,uCAAuC,EAAE,CAAC;IACpE,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;CAC3B,CAAA"}
|
|
1
|
+
{"version":3,"file":"TDefaultBusinessPartnerResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/dadosMestres/TDefaultBusinessPartnerResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AAEpG,MAAM,MAAM,+BAA+B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,2BAA2B,EAAE,MAAM,CAAC;IACpC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,oCAAoC,EAAE,CAAC;IAC9D,wBAAwB,EAAE,uCAAuC,EAAE,CAAC;IACpE,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;CAC3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TPageUserResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/dadosMestres/TPageUserResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,
|
|
1
|
+
{"version":3,"file":"TPageUserResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/dadosMestres/TPageUserResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TDefaultContratoCompraGraosResponse } from "./TDefaultContratoCompraGraosResponse";
|
|
2
|
+
export type TCockpitComprasContratosResponse = {
|
|
3
|
+
quantidadeContratos: number;
|
|
4
|
+
quantidadeTotal: number;
|
|
5
|
+
details: TDefaultContratoCompraGraosResponse[];
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=TCockpitComprasContratosResponse.d.ts.map
|
package/dist/@types/base/@types/api/response/originacao/TCockpitComprasContratosResponse.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TCockpitComprasContratosResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TCockpitComprasContratosResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAE5F,MAAM,MAAM,gCAAgC,GAAG;IAC7C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,mCAAmC,EAAE,CAAC;CAChD,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TDefaultBusinessPartnerResponse } from "../dadosMestres/TDefaultBusinessPartnerResponse";
|
|
2
|
+
import { TCockpitComprasContratosResponse } from "./TCockpitComprasContratosResponse";
|
|
3
|
+
import { TContratoCompraGraosEntregaResponse } from "./TContratoCompraGraosEntregaResponse";
|
|
4
|
+
export type TContratoCompraGraosByBusinessPartnerResponse = {
|
|
5
|
+
businessPartner: TDefaultBusinessPartnerResponse;
|
|
6
|
+
contratos: TCockpitComprasContratosResponse;
|
|
7
|
+
entrega: TContratoCompraGraosEntregaResponse;
|
|
8
|
+
saldoPreContrato: number;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=TContratoCompraGraosByBusinessPartnerResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TContratoCompraGraosByBusinessPartnerResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TContratoCompraGraosByBusinessPartnerResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAE5F,MAAM,MAAM,6CAA6C,GAAG;IAC1D,eAAe,EAAE,+BAA+B,CAAC;IACjD,SAAS,EAAE,gCAAgC,CAAC;IAC5C,OAAO,EAAE,mCAAmC,CAAC;IAC7C,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TContratoCompraGraosEntregaDetailsResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TContratoCompraGraosEntregaDetailsResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0CAA0C,GAAG;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
package/dist/@types/base/@types/api/response/originacao/TContratoCompraGraosEntregaResponse.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TContratoCompraGraosEntregaDetailsResponse } from "./TContratoCompraGraosEntregaDetailsResponse";
|
|
2
|
+
export type TContratoCompraGraosEntregaResponse = {
|
|
3
|
+
quantidadeTotal: number;
|
|
4
|
+
details: TContratoCompraGraosEntregaDetailsResponse[];
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=TContratoCompraGraosEntregaResponse.d.ts.map
|
package/dist/@types/base/@types/api/response/originacao/TContratoCompraGraosEntregaResponse.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TContratoCompraGraosEntregaResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TContratoCompraGraosEntregaResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0CAA0C,EAAE,MAAM,8CAA8C,CAAC;AAE1G,MAAM,MAAM,mCAAmC,GAAG;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,0CAA0C,EAAE,CAAC;CACvD,CAAA"}
|