react-ecosistema-unp 0.5.12 → 0.5.13
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/auth/hooks/useFinalizarSesion.js +1 -1
- package/dist/shared/components/MenuLateral.js +1 -1
- package/dist/shared/components/VentanaLienzo.js +10 -9
- package/dist/shared/components/VentanaTabs.js +61 -60
- package/dist/{useFinalizarSesion-CqFXvTMK.js → useFinalizarSesion-COlHmXt5.js} +912 -719
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, Fragment as x, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useEffect as p } from "react";
|
|
3
|
-
import { u as z, a as k } from "../../useFinalizarSesion-
|
|
3
|
+
import { u as z, a as k } from "../../useFinalizarSesion-COlHmXt5.js";
|
|
4
4
|
import { urlBase as M, urlCertificadoLaboral as w } from "../../utils/Url.js";
|
|
5
5
|
import { G as c } from "../../iconBase-LROS5hdG.js";
|
|
6
6
|
import '../../assets/MenuLateral.css';class o extends Error {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import s from "react";
|
|
3
|
+
import { B as a } from "../../useFinalizarSesion-COlHmXt5.js";
|
|
3
4
|
import { MenuLateral as m } from "./MenuLateral.js";
|
|
4
|
-
const
|
|
5
|
-
const [e,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* @__PURE__ */ n("div", { className: `${e ? "menu-open" : ""}`, children: /* @__PURE__ */ n("div", { className: "main-section", style: { padding: "0.5rem" }, children:
|
|
5
|
+
const u = ({ children: o }) => {
|
|
6
|
+
const [e, t] = s.useState(!1);
|
|
7
|
+
return /* @__PURE__ */ r(a, { children: [
|
|
8
|
+
/* @__PURE__ */ n(m, { onToggle: () => {
|
|
9
|
+
t(!e);
|
|
10
|
+
}, isOpen: e }),
|
|
11
|
+
/* @__PURE__ */ n("div", { className: `${e ? "menu-open" : ""}`, children: /* @__PURE__ */ n("div", { className: "main-section", style: { padding: "0.5rem" }, children: o }) })
|
|
11
12
|
] });
|
|
12
13
|
};
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
u as VentanaLienzo
|
|
15
16
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { jsx as r, jsxs as j } from "react/jsx-runtime";
|
|
2
2
|
import * as b from "react";
|
|
3
|
-
import
|
|
3
|
+
import T, { useRef as O, useContext as E, useEffect as M } from "react";
|
|
4
|
+
import { B as H } from "../../useFinalizarSesion-COlHmXt5.js";
|
|
4
5
|
import { MenuLateral as F } from "./MenuLateral.js";
|
|
5
|
-
import { N as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { S as P, T as
|
|
9
|
-
import { c as
|
|
10
|
-
function
|
|
6
|
+
import { N as W, u as Y, a as z, d as G, b as J, q as Q, c as B, e as D, f as X, g as Z } from "../../NotificacionUsuario-kzdhBqMF.js";
|
|
7
|
+
import { u as ee, T as te, g as ne, a as ae, b as re } from "../../Bootstrap-B6mAgGTS.js";
|
|
8
|
+
import { u as L, c as k } from "../../ThemeProvider-CFCmmLJC.js";
|
|
9
|
+
import { S as P, T as se, m as oe } from "../../TabContext-BvNFEruk.js";
|
|
10
|
+
import { c as le } from "../../CardHeaderContext-DVw0yHuy.js";
|
|
11
|
+
function R(n, e) {
|
|
11
12
|
let a = 0;
|
|
12
13
|
return b.Children.map(n, (t) => /* @__PURE__ */ b.isValidElement(t) ? e(t, a++) : t);
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
+
function ie(n, e) {
|
|
15
16
|
let a = 0;
|
|
16
17
|
b.Children.forEach(n, (t) => {
|
|
17
18
|
/* @__PURE__ */ b.isValidElement(t) && e(t, a++);
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
const
|
|
21
|
-
function
|
|
21
|
+
const ce = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
|
|
22
|
+
function de(n, e) {
|
|
22
23
|
if (n == null) return {};
|
|
23
24
|
var a = {};
|
|
24
25
|
for (var t in n) if ({}.hasOwnProperty.call(n, t)) {
|
|
@@ -27,8 +28,8 @@ function ce(n, e) {
|
|
|
27
28
|
}
|
|
28
29
|
return a;
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
-
},
|
|
31
|
+
const A = () => {
|
|
32
|
+
}, I = G("event-key"), U = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
32
33
|
let {
|
|
33
34
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
34
35
|
as: a = "div",
|
|
@@ -36,22 +37,22 @@ const I = () => {
|
|
|
36
37
|
activeKey: s,
|
|
37
38
|
role: c,
|
|
38
39
|
onKeyDown: o
|
|
39
|
-
} = n, u =
|
|
40
|
-
const x =
|
|
40
|
+
} = n, u = de(n, ce);
|
|
41
|
+
const x = Y(), m = O(!1), y = E(P), l = E(se);
|
|
41
42
|
let v, N;
|
|
42
43
|
l && (c = c || "tablist", s = l.activeKey, v = l.getControlledId, N = l.getControllerId);
|
|
43
44
|
const f = O(null), p = (i) => {
|
|
44
45
|
const d = f.current;
|
|
45
46
|
if (!d) return null;
|
|
46
|
-
const
|
|
47
|
+
const K = Q(d, `[${I}]:not([aria-disabled=true])`), S = d.querySelector("[aria-selected=true]");
|
|
47
48
|
if (!S || S !== document.activeElement) return null;
|
|
48
|
-
const w =
|
|
49
|
+
const w = K.indexOf(S);
|
|
49
50
|
if (w === -1) return null;
|
|
50
51
|
let g = w + i;
|
|
51
|
-
return g >=
|
|
52
|
+
return g >= K.length && (g = 0), g < 0 && (g = K.length - 1), K[g];
|
|
52
53
|
}, h = (i, d) => {
|
|
53
54
|
i != null && (t == null || t(i, d), y == null || y(i, d));
|
|
54
|
-
},
|
|
55
|
+
}, C = (i) => {
|
|
55
56
|
if (o == null || o(i), !l)
|
|
56
57
|
return;
|
|
57
58
|
let d;
|
|
@@ -67,28 +68,28 @@ const I = () => {
|
|
|
67
68
|
default:
|
|
68
69
|
return;
|
|
69
70
|
}
|
|
70
|
-
d && (i.preventDefault(), h(d.dataset[
|
|
71
|
+
d && (i.preventDefault(), h(d.dataset[J("EventKey")] || null, i), m.current = !0, x());
|
|
71
72
|
};
|
|
72
73
|
M(() => {
|
|
73
74
|
if (f.current && m.current) {
|
|
74
|
-
const i = f.current.querySelector(`[${
|
|
75
|
+
const i = f.current.querySelector(`[${I}][aria-selected=true]`);
|
|
75
76
|
i == null || i.focus();
|
|
76
77
|
}
|
|
77
78
|
m.current = !1;
|
|
78
79
|
});
|
|
79
|
-
const q =
|
|
80
|
+
const q = ee(e, f);
|
|
80
81
|
return /* @__PURE__ */ r(P.Provider, {
|
|
81
82
|
value: h,
|
|
82
|
-
children: /* @__PURE__ */ r(
|
|
83
|
+
children: /* @__PURE__ */ r(z.Provider, {
|
|
83
84
|
value: {
|
|
84
85
|
role: c,
|
|
85
86
|
// used by NavLink to determine it's role
|
|
86
|
-
activeKey:
|
|
87
|
-
getControlledId: v ||
|
|
88
|
-
getControllerId: N ||
|
|
87
|
+
activeKey: oe(s),
|
|
88
|
+
getControlledId: v || A,
|
|
89
|
+
getControllerId: N || A
|
|
89
90
|
},
|
|
90
91
|
children: /* @__PURE__ */ r(a, Object.assign({}, u, {
|
|
91
|
-
onKeyDown:
|
|
92
|
+
onKeyDown: C,
|
|
92
93
|
ref: q,
|
|
93
94
|
role: c
|
|
94
95
|
}))
|
|
@@ -96,16 +97,16 @@ const I = () => {
|
|
|
96
97
|
});
|
|
97
98
|
});
|
|
98
99
|
U.displayName = "Nav";
|
|
99
|
-
const
|
|
100
|
-
Item:
|
|
100
|
+
const ue = Object.assign(U, {
|
|
101
|
+
Item: W
|
|
101
102
|
}), $ = /* @__PURE__ */ b.forwardRef(({
|
|
102
103
|
className: n,
|
|
103
104
|
bsPrefix: e,
|
|
104
105
|
as: a = "div",
|
|
105
106
|
...t
|
|
106
|
-
}, s) => (e =
|
|
107
|
+
}, s) => (e = L(e, "nav-item"), /* @__PURE__ */ r(a, {
|
|
107
108
|
ref: s,
|
|
108
|
-
className:
|
|
109
|
+
className: k(n, e),
|
|
109
110
|
...t
|
|
110
111
|
})));
|
|
111
112
|
$.displayName = "NavItem";
|
|
@@ -121,18 +122,18 @@ const V = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
|
121
122
|
className: m,
|
|
122
123
|
activeKey: y,
|
|
123
124
|
...l
|
|
124
|
-
} =
|
|
125
|
+
} = D(n, {
|
|
125
126
|
activeKey: "onSelect"
|
|
126
|
-
}), v =
|
|
127
|
+
}), v = L(t, "nav");
|
|
127
128
|
let N, f, p = !1;
|
|
128
|
-
const h = E(
|
|
129
|
-
return h ? (N = h.bsPrefix, p = u ?? !0) :
|
|
129
|
+
const h = E(X), C = E(le);
|
|
130
|
+
return h ? (N = h.bsPrefix, p = u ?? !0) : C && ({
|
|
130
131
|
cardHeaderBsPrefix: f
|
|
131
|
-
} =
|
|
132
|
+
} = C), /* @__PURE__ */ r(ue, {
|
|
132
133
|
as: a,
|
|
133
134
|
ref: e,
|
|
134
135
|
activeKey: y,
|
|
135
|
-
className:
|
|
136
|
+
className: k(m, {
|
|
136
137
|
[v]: !p,
|
|
137
138
|
[`${N}-nav`]: p,
|
|
138
139
|
[`${N}-nav-scroll`]: p && x,
|
|
@@ -145,17 +146,17 @@ const V = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
|
145
146
|
});
|
|
146
147
|
});
|
|
147
148
|
V.displayName = "Nav";
|
|
148
|
-
const
|
|
149
|
+
const fe = Object.assign(V, {
|
|
149
150
|
Item: $,
|
|
150
|
-
Link:
|
|
151
|
+
Link: B
|
|
151
152
|
});
|
|
152
|
-
function
|
|
153
|
+
function me(n) {
|
|
153
154
|
let e;
|
|
154
|
-
return
|
|
155
|
+
return ie(n, (a) => {
|
|
155
156
|
e == null && (e = a.props.eventKey);
|
|
156
157
|
}), e;
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
+
function ve(n) {
|
|
159
160
|
const {
|
|
160
161
|
title: e,
|
|
161
162
|
eventKey: a,
|
|
@@ -167,7 +168,7 @@ function me(n) {
|
|
|
167
168
|
return e == null ? null : /* @__PURE__ */ r($, {
|
|
168
169
|
as: "li",
|
|
169
170
|
role: "presentation",
|
|
170
|
-
children: /* @__PURE__ */ r(
|
|
171
|
+
children: /* @__PURE__ */ r(B, {
|
|
171
172
|
as: "button",
|
|
172
173
|
type: "button",
|
|
173
174
|
eventKey: a,
|
|
@@ -188,31 +189,31 @@ const _ = (n) => {
|
|
|
188
189
|
unmountOnExit: c = !1,
|
|
189
190
|
variant: o = "tabs",
|
|
190
191
|
children: u,
|
|
191
|
-
activeKey: x =
|
|
192
|
+
activeKey: x = me(u),
|
|
192
193
|
...m
|
|
193
|
-
} =
|
|
194
|
+
} = D(n, {
|
|
194
195
|
activeKey: "onSelect"
|
|
195
196
|
});
|
|
196
|
-
return /* @__PURE__ */ j(
|
|
197
|
+
return /* @__PURE__ */ j(te, {
|
|
197
198
|
id: e,
|
|
198
199
|
activeKey: x,
|
|
199
200
|
onSelect: a,
|
|
200
|
-
transition:
|
|
201
|
+
transition: ne(t),
|
|
201
202
|
mountOnEnter: s,
|
|
202
203
|
unmountOnExit: c,
|
|
203
|
-
children: [/* @__PURE__ */ r(
|
|
204
|
+
children: [/* @__PURE__ */ r(fe, {
|
|
204
205
|
id: e,
|
|
205
206
|
...m,
|
|
206
207
|
role: "tablist",
|
|
207
208
|
as: "ul",
|
|
208
209
|
variant: o,
|
|
209
|
-
children:
|
|
210
|
-
}), /* @__PURE__ */ r(
|
|
211
|
-
children:
|
|
210
|
+
children: R(u, ve)
|
|
211
|
+
}), /* @__PURE__ */ r(ae, {
|
|
212
|
+
children: R(u, (y) => {
|
|
212
213
|
const l = {
|
|
213
214
|
...y.props
|
|
214
215
|
};
|
|
215
|
-
return delete l.title, delete l.disabled, delete l.tabClassName, delete l.tabAttrs, /* @__PURE__ */ r(
|
|
216
|
+
return delete l.title, delete l.disabled, delete l.tabClassName, delete l.tabAttrs, /* @__PURE__ */ r(re, {
|
|
216
217
|
...l
|
|
217
218
|
});
|
|
218
219
|
})
|
|
@@ -220,24 +221,24 @@ const _ = (n) => {
|
|
|
220
221
|
});
|
|
221
222
|
};
|
|
222
223
|
_.displayName = "Tabs";
|
|
223
|
-
const
|
|
224
|
-
const [e, a] =
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
224
|
+
const Te = ({ children: n }) => {
|
|
225
|
+
const [e, a] = T.useState(!1), [t, s] = T.useState(void 0);
|
|
226
|
+
return /* @__PURE__ */ j(H, { children: [
|
|
227
|
+
/* @__PURE__ */ r(Z, {}),
|
|
228
|
+
/* @__PURE__ */ r(F, { onToggle: () => {
|
|
229
|
+
a(!e);
|
|
230
|
+
}, isOpen: e }),
|
|
230
231
|
/* @__PURE__ */ r("div", { className: `${e ? "menu-open" : ""}`, children: /* @__PURE__ */ r("div", { className: "main-section", children: /* @__PURE__ */ r(
|
|
231
232
|
_,
|
|
232
233
|
{
|
|
233
234
|
id: "controlled-tab",
|
|
234
235
|
activeKey: t,
|
|
235
236
|
onSelect: (o) => s(o !== null ? o : void 0),
|
|
236
|
-
children:
|
|
237
|
+
children: T.Children.map(n, (o) => T.isValidElement(o) ? o : null)
|
|
237
238
|
}
|
|
238
239
|
) }) })
|
|
239
240
|
] });
|
|
240
241
|
};
|
|
241
242
|
export {
|
|
242
|
-
|
|
243
|
+
Te as VentanaTabs
|
|
243
244
|
};
|