biblio-react 3.0.64 → 3.0.65
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/index.js +154 -144
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import * as v from "react";
|
|
|
5
5
|
import { forwardRef as wr, createElement as Qn, createContext as ct, useContext as we, useState as te, useMemo as de, useRef as _e, useCallback as ne, useEffect as ie, Fragment as ut, isValidElement as Ft, Children as ko, cloneElement as Ct, useImperativeHandle as Md, memo as Fd } from "react";
|
|
6
6
|
import Ia from "@mui/icons-material/Lock";
|
|
7
7
|
import Pd from "@mui/icons-material/VpnLock";
|
|
8
|
-
import { MenuItem as et, ListItemIcon as Lt, ListItemText as
|
|
9
|
-
import { useTranslate as he, useUserMenu as Nd, useResourceDefinitions as Sr, AppBar as Vd, UserMenu as Wd, Logout as zd, required as Gd, TopToolbar as Ea, ShowButton as Hd, useNotify as Bo, useDataProvider as Nt, useResourceContext as xe, useRedirect as Vt, ResourceDefinitionContext as Oa, useListContext as
|
|
8
|
+
import { MenuItem as et, ListItemIcon as Lt, ListItemText as to, useMediaQuery as mt, Typography as fo, Box as Y, useTheme as Oo, Card as Ra, CardHeader as Id, Divider as Rd, CardContent as Ta, Stack as li, IconButton as lt, Tooltip as wt, createTheme as Td, ThemeProvider as kd, Chip as ka, Menu as go, Grid as Ad, Button as tr, alpha as _d, StyledEngineProvider as Aa, CircularProgress as _a, DialogTitle as or, Dialog as Zn, DialogContent as nr, Collapse as Dd, List as Ed, Switch as Od, DialogActions as hs, Paper as Da, Table as Bd, TableHead as Ld, TableRow as gs, TableCell as uo, Skeleton as po, TableBody as $d } from "@mui/material";
|
|
9
|
+
import { useTranslate as he, useUserMenu as Nd, useResourceDefinitions as Sr, AppBar as Vd, UserMenu as Wd, Logout as zd, required as Gd, TopToolbar as Ea, ShowButton as Hd, useNotify as Bo, useDataProvider as Nt, useResourceContext as xe, useRedirect as Vt, ResourceDefinitionContext as Oa, useListContext as Wt, useUnselectAll as jd, useStoreContext as qd, NumberField as Ud, DateField as bs, TextField as Yo, ReferenceField as Kd, useResourceDefinition as no, useGetResourceLabel as ci, ResourceContextProvider as Ro, useLocaleState as vr, BulkActionsToolbar as Ba, ValidationError as Xd, useInput as ln, FieldTitle as La, TextInput as $t, ReferenceInput as $a, AutocompleteInput as Na, useChoicesContext as Va, SelectInput as Yd, BooleanInput as Jd, PasswordInput as Wa, Labeled as Mr, useRecordContext as st, ReferenceArrayInput as Qd, AutocompleteArrayInput as Zd, SearchInput as Fr, RadioButtonGroupInput as za, useDeleteWithConfirmController as eu, Button as Ze, Confirm as cn, useFormIsDirty as tu, Toolbar as Ga, ToolbarClasses as ou, SaveButton as dn, useDelete as Ha, useSaveContext as nu, useGetList as ja, Form as Lo, useGetOne as qa, useCreateController as iu, CreateContextProvider as ru, Create as su, Loading as yo, useListController as au, ListContextProvider as Ua, List as Ka, Filter as lu, Pagination as cu, Edit as du, useEditContext as uu, useSidebarState as Xa, Menu as pu, DashboardMenuItem as mu, MenuItemLink as Ya, Layout as fu, FilterContext as hu, FilterButton as gu, sanitizeListRestProps as bu, useLogin as xu, Show as yu, useShowContext as Cu, useCreatePath as wu, useSplatPathBase as Su, getTabbedFormTabFullPath as _n, TabbedFormTabs as Ja, defaultTheme as Qa, FormTab as vu, BooleanField as Mu, ImageInput as Fu, ImageField as Pu, FileInput as Iu, useRecordSelection as Za, ListActions as Ru, Datagrid as Tu, SelectAllButton as ku } from "react-admin";
|
|
10
10
|
import { Link as ir, useNavigate as di, useLocation as dt, Routes as el, Route as tl, useParams as ol, matchPath as en } from "react-router-dom";
|
|
11
|
-
import { styled as
|
|
11
|
+
import { styled as zt, alpha as se, useTheme as ui, ThemeProvider as Pr, useThemeProps as nl } from "@mui/material/styles";
|
|
12
12
|
import un from "@mui/icons-material/Add";
|
|
13
13
|
import Qo from "@mui/icons-material/Cancel";
|
|
14
14
|
import pn from "@mui/icons-material/Delete";
|
|
@@ -21,7 +21,7 @@ import hi from "@mui/material/DialogTitle";
|
|
|
21
21
|
import mn from "@mui/material/Paper";
|
|
22
22
|
import { useGridApiContext as io, useGridSelector as bo, gridColumnVisibilityModelSelector as rl, gridRowSelectionIdsSelector as _u, gridColumnDefinitionsSelector as sl, GridColumnIcon as Du, gridSortModelSelector as Eu, GridArrowUpwardIcon as Ou, GridArrowDownwardIcon as Bu, GridToolbarFilterButton as Lu, GridToolbarExportContainer as $u, gridFilteredSortedRowIdsSelector as Nu, useGridRootProps as al, gridRowSelectionCountSelector as Vu, GridToolbarContainer as Wu, GridClearIcon as zu, GridToolbarQuickFilter as Gu, GridPivotIcon as Hu, getGridDateOperators as ju, useGridApiRef as Ir, gridClasses as rr, useKeepGroupedColumnsHidden as ll, GridActionsCellItem as Po, isAutogeneratedRow as Dn, DataGridPremium as Rr } from "@mui/x-data-grid-premium";
|
|
23
23
|
import { useFormContext as Ge, useWatch as qu, useFormState as cl, useController as Uu } from "react-hook-form";
|
|
24
|
-
import { useDispatch as
|
|
24
|
+
import { useDispatch as Gt, useSelector as Tr } from "react-redux";
|
|
25
25
|
import Pt from "@mui/material/Typography";
|
|
26
26
|
import { isAfter as Ku } from "date-fns";
|
|
27
27
|
import Xu from "date-fns/locale/en-US";
|
|
@@ -61,8 +61,8 @@ import mp from "@mui/icons-material/CheckBox";
|
|
|
61
61
|
import fp from "@mui/icons-material/CheckBoxOutlineBlank";
|
|
62
62
|
import Ao from "@mui/material/List";
|
|
63
63
|
import Ar from "@mui/material/ListItem";
|
|
64
|
-
import
|
|
65
|
-
import
|
|
64
|
+
import Qt from "@mui/material/ListItemButton";
|
|
65
|
+
import Zt from "@mui/material/ListItemIcon";
|
|
66
66
|
import Bt from "@mui/material/ListItemText";
|
|
67
67
|
import hp from "@mui/material/SwipeableDrawer";
|
|
68
68
|
import ar from "@mui/material/Stack";
|
|
@@ -134,7 +134,7 @@ const jp = wr((e, t) => {
|
|
|
134
134
|
onClick: r
|
|
135
135
|
},
|
|
136
136
|
/* @__PURE__ */ i(Lt, { children: /* @__PURE__ */ i(Ia, {}) }),
|
|
137
|
-
/* @__PURE__ */ i(
|
|
137
|
+
/* @__PURE__ */ i(to, { children: o("pos.change_pin") })
|
|
138
138
|
) : null,
|
|
139
139
|
c ? /* @__PURE__ */ Qn(
|
|
140
140
|
et,
|
|
@@ -147,7 +147,7 @@ const jp = wr((e, t) => {
|
|
|
147
147
|
onClick: r
|
|
148
148
|
},
|
|
149
149
|
/* @__PURE__ */ i(Lt, { children: /* @__PURE__ */ i(Pd, {}) }),
|
|
150
|
-
/* @__PURE__ */ i(
|
|
150
|
+
/* @__PURE__ */ i(to, { children: o("pos.change_password") })
|
|
151
151
|
) : null
|
|
152
152
|
];
|
|
153
153
|
}), qp = /* @__PURE__ */ n(() => /* @__PURE__ */ R(Wd, { children: [
|
|
@@ -293,7 +293,7 @@ const jp = wr((e, t) => {
|
|
|
293
293
|
]
|
|
294
294
|
);
|
|
295
295
|
return /* @__PURE__ */ i(kl.Provider, { value: P, children: c });
|
|
296
|
-
}, "GrillaEtriekProvider"),
|
|
296
|
+
}, "GrillaEtriekProvider"), Ht = /* @__PURE__ */ n(() => we(kl), "useGrillaEtriek"), Jp = /* @__PURE__ */ n((e, t, o, r, s) => ({
|
|
297
297
|
type: "RELOAD_CB",
|
|
298
298
|
payload: {
|
|
299
299
|
id: e,
|
|
@@ -346,7 +346,7 @@ const jp = wr((e, t) => {
|
|
|
346
346
|
}), "clearReduxScopeAction");
|
|
347
347
|
let Ts = 0;
|
|
348
348
|
const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createReduxScope"), Br = /* @__PURE__ */ n((e, t, o) => Array.isArray(e) && e.find((r) => r?.id === t && r?.scope === o) || null, "findReduxScopedItem"), Lr = ct({}), $o = ct(void 0), tn = ct(), $r = /* @__PURE__ */ n(({ value: e, children: t }) => {
|
|
349
|
-
const o = Ge()?.control, [r, s] = te({}), a =
|
|
349
|
+
const o = Ge()?.control, [r, s] = te({}), a = Gt(), c = e.scopeIdentity ?? e.estado ?? "ficha", l = _e(c), [d, p] = te(
|
|
350
350
|
() => ur("ficha")
|
|
351
351
|
);
|
|
352
352
|
ie(() => {
|
|
@@ -680,7 +680,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
680
680
|
}, "tienePermisoBotonEspecial"), on = /* @__PURE__ */ n((e, t) => {
|
|
681
681
|
const o = e?.hiddenactions || [];
|
|
682
682
|
return !t || o.length === 0 ? !1 : o.some((r) => r === t);
|
|
683
|
-
}, "estaAccionOculta"),
|
|
683
|
+
}, "estaAccionOculta"), oo = /* @__PURE__ */ n((e, t) => El(e, t?.perbot) && !on(e, t?.key), "esAccionVisible"), Ol = /* @__PURE__ */ n(() => {
|
|
684
684
|
const e = we(Dl), t = di();
|
|
685
685
|
return /* @__PURE__ */ n((r, s = {}) => {
|
|
686
686
|
const { opcion: a, estado: c, ...l } = s, d = `form_${String(r)}`;
|
|
@@ -699,7 +699,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
699
699
|
});
|
|
700
700
|
}, "abrirVentanaSistema");
|
|
701
701
|
}, "useAbrirVentanaSistema"), Bl = /* @__PURE__ */ n(() => {
|
|
702
|
-
const e =
|
|
702
|
+
const e = Gt(), t = Rt();
|
|
703
703
|
return ne(
|
|
704
704
|
(o, r, s, a) => {
|
|
705
705
|
e(Jp(o, r, s, a, t));
|
|
@@ -707,7 +707,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
707
707
|
[e, t]
|
|
708
708
|
);
|
|
709
709
|
}, "useRecargarComboBox"), Ll = /* @__PURE__ */ n(() => {
|
|
710
|
-
const e =
|
|
710
|
+
const e = Gt(), t = Rt();
|
|
711
711
|
return ne(
|
|
712
712
|
(o, r) => {
|
|
713
713
|
e(Zp(o, r, t));
|
|
@@ -715,7 +715,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
715
715
|
[e, t]
|
|
716
716
|
);
|
|
717
717
|
}, "useSetHidden"), $l = /* @__PURE__ */ n(() => {
|
|
718
|
-
const e =
|
|
718
|
+
const e = Gt(), t = Rt();
|
|
719
719
|
return ne(
|
|
720
720
|
(o, r) => {
|
|
721
721
|
e(em(o, r, t));
|
|
@@ -723,7 +723,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
723
723
|
[e, t]
|
|
724
724
|
);
|
|
725
725
|
}, "useSetDisable"), Nl = /* @__PURE__ */ n(() => {
|
|
726
|
-
const e =
|
|
726
|
+
const e = Gt(), t = Rt();
|
|
727
727
|
return ne(
|
|
728
728
|
(o, r) => {
|
|
729
729
|
e(tm(o, r, t));
|
|
@@ -731,7 +731,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
731
731
|
[e, t]
|
|
732
732
|
);
|
|
733
733
|
}, "useSetRequire"), Vl = /* @__PURE__ */ n(() => {
|
|
734
|
-
const e =
|
|
734
|
+
const e = Gt(), t = Rt();
|
|
735
735
|
return ne(
|
|
736
736
|
(o, r) => {
|
|
737
737
|
e(om(o, r, t));
|
|
@@ -739,7 +739,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
739
739
|
[e, t]
|
|
740
740
|
);
|
|
741
741
|
}, "useSetError"), Wl = /* @__PURE__ */ n(() => {
|
|
742
|
-
const e =
|
|
742
|
+
const e = Gt(), t = Rt();
|
|
743
743
|
return ne(
|
|
744
744
|
(o, r) => {
|
|
745
745
|
e(nm(o, r, t));
|
|
@@ -804,7 +804,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
804
804
|
o.refetchQueries({ queryKey: [t], type: "active" });
|
|
805
805
|
}, [o, t]);
|
|
806
806
|
}, "useResourceRefresh"), hn = /* @__PURE__ */ n(() => ({}), "useDefaultHook"), xi = /* @__PURE__ */ n((e) => {
|
|
807
|
-
const t =
|
|
807
|
+
const t = Wt(), o = gt(), r = Vt(), s = di(), a = Co(), c = xe(e), l = jl(e), d = jd(c), p = It(), u = Ht(), m = he(), h = Ol(), [f] = Nr(c), g = we(Oa), C = Sr(), x = `lista_${c.split("_")[1]}`, { getItem: b } = qd(), P = b(`${x}.selectedIds`), S = b(`${x}.selectedDetails`), y = /* @__PURE__ */ n((F) => {
|
|
808
808
|
const M = F?.name;
|
|
809
809
|
!M || C?.[M] || g?.register?.(F);
|
|
810
810
|
}, "registerResource");
|
|
@@ -1054,7 +1054,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
1054
1054
|
}, "clear"),
|
|
1055
1055
|
api: e.apiRef
|
|
1056
1056
|
};
|
|
1057
|
-
}, "useEtrActions"), fm =
|
|
1057
|
+
}, "useEtrActions"), fm = zt("div")(({ theme: e }) => ({
|
|
1058
1058
|
display: "flex",
|
|
1059
1059
|
flexDirection: "column",
|
|
1060
1060
|
alignItems: "center",
|
|
@@ -1144,7 +1144,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
1144
1144
|
),
|
|
1145
1145
|
/* @__PURE__ */ i(Y, { sx: { mt: 1 }, children: e("ra.navigation.no_results") })
|
|
1146
1146
|
] });
|
|
1147
|
-
}, "CustomNoRowsOverlay"), hm =
|
|
1147
|
+
}, "CustomNoRowsOverlay"), hm = zt("div")(({ theme: e }) => ({
|
|
1148
1148
|
display: "flex",
|
|
1149
1149
|
flexDirection: "column",
|
|
1150
1150
|
alignItems: "center",
|
|
@@ -1500,10 +1500,10 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
1500
1500
|
}, "isDateLikeValue"), Nm = /* @__PURE__ */ n((e, t) => {
|
|
1501
1501
|
const o = pt(e?.type).toLowerCase(), r = pt(e?.field).toLowerCase(), s = pt(e?.headerName).toLowerCase();
|
|
1502
1502
|
return o === "date" || o === "datetime" || o === "date-time" || r.includes("fecha") || r.startsWith("fec") || r.endsWith("fec") || s.includes("fecha") || $m(t);
|
|
1503
|
-
}, "isDateLikeColumn"), Vm = /* @__PURE__ */ n(({ children: e, formattedValue: t, value: o }) => e ?? t ?? o ?? "", "getDisplayText"),
|
|
1503
|
+
}, "isDateLikeColumn"), Vm = /* @__PURE__ */ n(({ children: e, formattedValue: t, value: o }) => e ?? t ?? o ?? "", "getDisplayText"), eo = /* @__PURE__ */ n((e) => {
|
|
1504
1504
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean")
|
|
1505
1505
|
return String(e);
|
|
1506
|
-
}, "getPlainTitle"), Wm = /* @__PURE__ */ n(({ children: e, formattedValue: t, value: o }) => pt(t) || pt(o) ||
|
|
1506
|
+
}, "getPlainTitle"), Wm = /* @__PURE__ */ n(({ children: e, formattedValue: t, value: o }) => pt(t) || pt(o) || eo(e), "hasVisibleValue"), zm = /* @__PURE__ */ n(({ displayValue: e, formattedValue: t, value: o }) => v.isValidElement(e) ? !1 : tc({}, t ?? e ?? o).isNumber, "isPlainNumericDisplay"), oc = /* @__PURE__ */ n(({ children: e, displayValue: t, formattedValue: o, value: r }) => eo(o) ?? eo(t) ?? eo(r) ?? eo(e) ?? "", "getVisiblePlainText"), Gm = /* @__PURE__ */ n(({
|
|
1507
1507
|
children: e,
|
|
1508
1508
|
displayValue: t,
|
|
1509
1509
|
formattedValue: o,
|
|
@@ -1531,7 +1531,7 @@ const ur = /* @__PURE__ */ n((e = "scope") => (Ts += 1, `${e}-${Ts}`), "createRe
|
|
|
1531
1531
|
children: c,
|
|
1532
1532
|
disableCombo: l = !1
|
|
1533
1533
|
}) => {
|
|
1534
|
-
const d = Oo(), p = Vm({ children: c, formattedValue: o, value: t }), u =
|
|
1534
|
+
const d = Oo(), p = Vm({ children: c, formattedValue: o, value: t }), u = eo(o) ?? eo(t) ?? eo(c), m = !l && zr(e, { row: r, columns: s, primaryField: a }), h = Gm({
|
|
1535
1535
|
children: c,
|
|
1536
1536
|
displayValue: p,
|
|
1537
1537
|
formattedValue: o,
|
|
@@ -2206,12 +2206,12 @@ function Km(e) {
|
|
|
2206
2206
|
/* @__PURE__ */ i(Ao, { children: l.map((u) => {
|
|
2207
2207
|
const m = d[u.field] !== !1;
|
|
2208
2208
|
return /* @__PURE__ */ i(Ar, { disablePadding: !0, children: /* @__PURE__ */ R(
|
|
2209
|
-
|
|
2209
|
+
Qt,
|
|
2210
2210
|
{
|
|
2211
2211
|
onClick: /* @__PURE__ */ n(() => p(u.field), "onClick"),
|
|
2212
2212
|
disabled: u.hideable === !1,
|
|
2213
2213
|
children: [
|
|
2214
|
-
/* @__PURE__ */ i(
|
|
2214
|
+
/* @__PURE__ */ i(Zt, { children: m ? /* @__PURE__ */ i(mp, { color: "primary" }) : /* @__PURE__ */ i(fp, {}) }),
|
|
2215
2215
|
/* @__PURE__ */ i(Bt, { children: u.headerName || u.field })
|
|
2216
2216
|
]
|
|
2217
2217
|
}
|
|
@@ -2254,11 +2254,11 @@ function Xm(e) {
|
|
|
2254
2254
|
), P = m[b];
|
|
2255
2255
|
let S = "asc";
|
|
2256
2256
|
return P && (S = P.sort === "asc" ? "desc" : null), /* @__PURE__ */ i(Ar, { disablePadding: !0, children: /* @__PURE__ */ R(
|
|
2257
|
-
|
|
2257
|
+
Qt,
|
|
2258
2258
|
{
|
|
2259
2259
|
onClick: /* @__PURE__ */ n(() => g(x.field, S), "onClick"),
|
|
2260
2260
|
children: [
|
|
2261
|
-
/* @__PURE__ */ i(
|
|
2261
|
+
/* @__PURE__ */ i(Zt, { children: P && /* @__PURE__ */ i(
|
|
2262
2262
|
ys,
|
|
2263
2263
|
{
|
|
2264
2264
|
badgeContent: f > 1 ? b + 1 : null,
|
|
@@ -2538,14 +2538,14 @@ function sf(e) {
|
|
|
2538
2538
|
showQuickFilter: s,
|
|
2539
2539
|
showSelection: a = !1,
|
|
2540
2540
|
pivotActive: c = !1
|
|
2541
|
-
} = e, l = io(), { exporter: d } =
|
|
2541
|
+
} = e, l = io(), { exporter: d } = Wt(), {
|
|
2542
2542
|
props: {
|
|
2543
2543
|
actionsContainerRef: p,
|
|
2544
2544
|
filterActionsContainerRef: u,
|
|
2545
2545
|
hideGridToolbarActions: m = !0,
|
|
2546
2546
|
pivotUi: h = "mui"
|
|
2547
2547
|
}
|
|
2548
|
-
} =
|
|
2548
|
+
} = Ht(), f = bo(
|
|
2549
2549
|
l,
|
|
2550
2550
|
Vu
|
|
2551
2551
|
), g = a && f > 0, C = t && m && !c && !g, x = /* @__PURE__ */ n(() => {
|
|
@@ -3155,7 +3155,7 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3155
3155
|
}, "removeStoredSize"), xf = /* @__PURE__ */ n((e, t) => {
|
|
3156
3156
|
!e || !t || (e.style.width = `${Math.round(t.width)}px`, e.style.height = `${Math.round(t.height)}px`, e.style.maxWidth = `${Math.round(t.maxWidth)}px`, e.style.maxHeight = `${Math.round(t.maxHeight)}px`, e.style.minWidth = `${Math.round(t.minWidth)}px`, e.style.minHeight = `${Math.round(t.minHeight)}px`);
|
|
3157
3157
|
}, "applyPopupSizeStyles"), ai = /* @__PURE__ */ n((e) => {
|
|
3158
|
-
const t = Oo(), o = t.metiri?.fichaVisual === !0, r = he(), s = xe(), a = e?.resource ?? s ?? "default", l =
|
|
3158
|
+
const t = Oo(), o = t.metiri?.fichaVisual === !0, r = he(), s = xe(), a = e?.resource ?? s ?? "default", l = Ht()?.props, d = e?.dockviewTabParent === !0, p = v.useContext(Ye) || {}, u = p?.popup ?? p?.popupSize ?? null, m = v.useMemo(
|
|
3159
3159
|
() => ff(u, e?.popupRatio),
|
|
3160
3160
|
[u, e?.popupRatio]
|
|
3161
3161
|
), h = mt((E) => E.breakpoints.down("sm")), [f, g] = v.useState(null), C = v.useMemo(
|
|
@@ -3384,7 +3384,7 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3384
3384
|
const a = yf(t, s);
|
|
3385
3385
|
return s?.container === void 0 && delete a.container, a;
|
|
3386
3386
|
}, "resolvePopupDialogProps"), qr = /* @__PURE__ */ n((e) => {
|
|
3387
|
-
const t = xe(), o = e?.resource ?? t, r = no({ resource: o }).options?.label, s = ci(), a = he(), c = gt(), l = It(), d = cf(), u =
|
|
3387
|
+
const t = xe(), o = e?.resource ?? t, r = no({ resource: o }).options?.label, s = ci(), a = he(), c = gt(), l = It(), d = cf(), u = Ht()?.props, m = d?.resolve ? d.resolve(o) : null, h = ai({
|
|
3388
3388
|
resource: o,
|
|
3389
3389
|
popupRatio: e?.popupRatio
|
|
3390
3390
|
}), f = ai({
|
|
@@ -3574,14 +3574,14 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3574
3574
|
},
|
|
3575
3575
|
children: /* @__PURE__ */ R(Ao, { sx: { p: 2 }, children: [
|
|
3576
3576
|
/* @__PURE__ */ R(
|
|
3577
|
-
|
|
3577
|
+
Qt,
|
|
3578
3578
|
{
|
|
3579
3579
|
disabled: S,
|
|
3580
3580
|
onClick: /* @__PURE__ */ n(() => {
|
|
3581
3581
|
m && m(), F || !r && c ? P({ id: M, record: t.row }) : r && b({ id: M, record: t.row });
|
|
3582
3582
|
}, "onClick"),
|
|
3583
3583
|
children: [
|
|
3584
|
-
/* @__PURE__ */ i(
|
|
3584
|
+
/* @__PURE__ */ i(Zt, { children: r ? F ? /* @__PURE__ */ i(oi, { color: "inherit" }) : wf(
|
|
3585
3585
|
s,
|
|
3586
3586
|
/* @__PURE__ */ i(
|
|
3587
3587
|
ml,
|
|
@@ -3602,7 +3602,7 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3602
3602
|
"editar_list"
|
|
3603
3603
|
),
|
|
3604
3604
|
u && /* @__PURE__ */ R(
|
|
3605
|
-
|
|
3605
|
+
Qt,
|
|
3606
3606
|
{
|
|
3607
3607
|
onClick: /* @__PURE__ */ n(() => {
|
|
3608
3608
|
m && m(), x({
|
|
@@ -3612,7 +3612,7 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3612
3612
|
});
|
|
3613
3613
|
}, "onClick"),
|
|
3614
3614
|
children: [
|
|
3615
|
-
/* @__PURE__ */ i(
|
|
3615
|
+
/* @__PURE__ */ i(Zt, { children: /* @__PURE__ */ i(ti, {}) }),
|
|
3616
3616
|
/* @__PURE__ */ i(
|
|
3617
3617
|
Bt,
|
|
3618
3618
|
{
|
|
@@ -3624,7 +3624,7 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3624
3624
|
"nd_list"
|
|
3625
3625
|
),
|
|
3626
3626
|
p && !y && /* @__PURE__ */ R(
|
|
3627
|
-
|
|
3627
|
+
Qt,
|
|
3628
3628
|
{
|
|
3629
3629
|
onClick: /* @__PURE__ */ n(() => {
|
|
3630
3630
|
m && m(), b({
|
|
@@ -3634,7 +3634,7 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3634
3634
|
});
|
|
3635
3635
|
}, "onClick"),
|
|
3636
3636
|
children: [
|
|
3637
|
-
/* @__PURE__ */ i(
|
|
3637
|
+
/* @__PURE__ */ i(Zt, { children: dc(
|
|
3638
3638
|
a,
|
|
3639
3639
|
/* @__PURE__ */ i(pn, {})
|
|
3640
3640
|
) }),
|
|
@@ -3652,7 +3652,7 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3652
3652
|
}
|
|
3653
3653
|
),
|
|
3654
3654
|
/* @__PURE__ */ i(Y, { sx: { width: "100%" }, children: /* @__PURE__ */ i(Ao, { sx: { p: 2 }, children: o.map((I) => /* @__PURE__ */ R(
|
|
3655
|
-
|
|
3655
|
+
Qt,
|
|
3656
3656
|
{
|
|
3657
3657
|
onClick: /* @__PURE__ */ n(() => typeof I.handler == "function" ? (m && m(), I.handler(
|
|
3658
3658
|
{
|
|
@@ -3662,7 +3662,7 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3662
3662
|
I.key
|
|
3663
3663
|
)) : !1, "onClick"),
|
|
3664
3664
|
children: [
|
|
3665
|
-
/* @__PURE__ */ i(
|
|
3665
|
+
/* @__PURE__ */ i(Zt, { children: I.icon }),
|
|
3666
3666
|
/* @__PURE__ */ i(Bt, { children: I.label })
|
|
3667
3667
|
]
|
|
3668
3668
|
},
|
|
@@ -3768,7 +3768,7 @@ const Ci = /* @__PURE__ */ n((e) => {
|
|
|
3768
3768
|
c
|
|
3769
3769
|
] });
|
|
3770
3770
|
}, "DateFilterInput"), Rf = /* @__PURE__ */ n((e) => {
|
|
3771
|
-
const { onRenderGrilla: t, onLoadGrilla: o, apiRef: r = {} } = e, { isLoading: s } =
|
|
3771
|
+
const { onRenderGrilla: t, onLoadGrilla: o, apiRef: r = {} } = e, { isLoading: s } = Wt(), a = xi(e);
|
|
3772
3772
|
ie(() => {
|
|
3773
3773
|
t && t({ ...a, api: r?.current });
|
|
3774
3774
|
}, []), ie(() => {
|
|
@@ -4154,7 +4154,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4154
4154
|
...be
|
|
4155
4155
|
},
|
|
4156
4156
|
setProps: bt
|
|
4157
|
-
} =
|
|
4157
|
+
} = Ht(), Xe = k ?? Ke, ot = _ ?? Fe, ro = v.useCallback(
|
|
4158
4158
|
(w) => {
|
|
4159
4159
|
if (H.current = w, !!pe) {
|
|
4160
4160
|
if (typeof pe == "function") {
|
|
@@ -4191,7 +4191,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4191
4191
|
}, [O]), Ee = v.useMemo(() => {
|
|
4192
4192
|
const w = { ...be };
|
|
4193
4193
|
return delete w.dataSource, delete w.pivotingColDef, w;
|
|
4194
|
-
}, [be]), At = v.useRef(null),
|
|
4194
|
+
}, [be]), At = v.useRef(null), jt = v.useRef(null), bn = v.useMemo(() => {
|
|
4195
4195
|
const w = {
|
|
4196
4196
|
...qs,
|
|
4197
4197
|
...O?.aggregationFunctions || {},
|
|
@@ -4199,7 +4199,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4199
4199
|
};
|
|
4200
4200
|
return w.count || (w.count = qs.count), w;
|
|
4201
4201
|
}, [O?.aggregationFunctions, be?.aggregationFunctions]), _t = Nt(), {
|
|
4202
|
-
data:
|
|
4202
|
+
data: qt = [],
|
|
4203
4203
|
isFetching: Dt,
|
|
4204
4204
|
selectedIds: vt,
|
|
4205
4205
|
onSelect: Et,
|
|
@@ -4207,10 +4207,10 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4207
4207
|
filterValues: Ot,
|
|
4208
4208
|
setFilters: yn,
|
|
4209
4209
|
sort: Ve,
|
|
4210
|
-
setSort:
|
|
4210
|
+
setSort: Ut,
|
|
4211
4211
|
getData: wo,
|
|
4212
4212
|
exporter: Cn
|
|
4213
|
-
} =
|
|
4213
|
+
} = Wt(), so = v.useRef(He);
|
|
4214
4214
|
v.useEffect(() => {
|
|
4215
4215
|
so.current && !He && vt.length && (Et([]), Se?.([])), so.current = He;
|
|
4216
4216
|
}, [He, Et, Se, vt.length]);
|
|
@@ -4222,7 +4222,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4222
4222
|
Et(A), Se?.(A);
|
|
4223
4223
|
},
|
|
4224
4224
|
[Dt, Et, Se]
|
|
4225
|
-
), Sn = N || !ke || Cn !== !1 || B, No = v.useCallback(async () => typeof wo != "function" ?
|
|
4225
|
+
), Sn = N || !ke || Cn !== !1 || B, No = v.useCallback(async () => typeof wo != "function" ? qt : wo(), [qt, wo]), vn = B ? void 0 : No, ue = v.useMemo(() => {
|
|
4226
4226
|
const w = {
|
|
4227
4227
|
loadingOverlay: gm,
|
|
4228
4228
|
noRowsOverlay: Vr,
|
|
@@ -4327,22 +4327,22 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4327
4327
|
const Go = it.data || [], Oi = Array.isArray(
|
|
4328
4328
|
it.pivotColumns
|
|
4329
4329
|
) ? it.pivotColumns : [], Bi = K.rows || [], xd = K.columns || [], ms = K.values || [], yd = Bi.map(Vn).filter(Boolean), Tn = (A.groupFields || []).map(Vn).filter(Boolean), Ho = A.groupKeys || [], Cd = yd.length > 0 && xd.length === 0 && ms.length === 0, wd = Go.some(
|
|
4330
|
-
(
|
|
4330
|
+
(Yt) => Yt?.childrenCount != null || Yt?.__childrenCount != null
|
|
4331
4331
|
);
|
|
4332
4332
|
let jo = Go, Li = it.total ?? 0;
|
|
4333
4333
|
if (Cd && !wd && Tn.length > 0) {
|
|
4334
|
-
const
|
|
4334
|
+
const Yt = Tn.slice(
|
|
4335
4335
|
0,
|
|
4336
4336
|
Ho.length
|
|
4337
4337
|
), kn = Go.filter(
|
|
4338
|
-
(
|
|
4339
|
-
(lo, co) => String(
|
|
4338
|
+
(Jt) => Yt.every(
|
|
4339
|
+
(lo, co) => String(Jt?.[lo] ?? "") === String(Ho[co] ?? "")
|
|
4340
4340
|
)
|
|
4341
4341
|
), An = Ho.length;
|
|
4342
4342
|
if (An < Tn.length) {
|
|
4343
|
-
const
|
|
4343
|
+
const Jt = Tn[An], lo = /* @__PURE__ */ new Map();
|
|
4344
4344
|
kn.forEach((co) => {
|
|
4345
|
-
const qo = co?.[
|
|
4345
|
+
const qo = co?.[Jt], $i = qo == null ? "" : String(qo), fs = lo.get($i);
|
|
4346
4346
|
if (fs) {
|
|
4347
4347
|
fs.childrenCount += 1;
|
|
4348
4348
|
return;
|
|
@@ -4355,26 +4355,26 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4355
4355
|
}), jo = Array.from(
|
|
4356
4356
|
lo.values()
|
|
4357
4357
|
).map((co, qo) => ({
|
|
4358
|
-
id: `pivot-group-${
|
|
4359
|
-
[
|
|
4358
|
+
id: `pivot-group-${Jt}-${Ho.join("|")}-${co.groupValue || qo}`,
|
|
4359
|
+
[Jt]: co.rawValue,
|
|
4360
4360
|
childrenCount: co.childrenCount
|
|
4361
4361
|
})), Li = jo.length;
|
|
4362
4362
|
} else
|
|
4363
4363
|
jo = kn.map(
|
|
4364
|
-
(
|
|
4365
|
-
...
|
|
4366
|
-
id:
|
|
4364
|
+
(Jt, lo) => ({
|
|
4365
|
+
...Jt,
|
|
4366
|
+
id: Jt?.id ?? `pivot-leaf-${Ho.join("|")}-${lo}`,
|
|
4367
4367
|
childrenCount: 0
|
|
4368
4368
|
})
|
|
4369
4369
|
), Li = jo.length;
|
|
4370
4370
|
}
|
|
4371
|
-
const Sd = Oi.length === 0 && ms.length === 0 && Bi.length > 0 ? Bi.map(Vn).filter(Boolean).map((
|
|
4371
|
+
const Sd = Oi.length === 0 && ms.length === 0 && Bi.length > 0 ? Bi.map(Vn).filter(Boolean).map((Yt) => {
|
|
4372
4372
|
const kn = a.find(
|
|
4373
|
-
(An) => An.field ===
|
|
4373
|
+
(An) => An.field === Yt
|
|
4374
4374
|
);
|
|
4375
4375
|
return {
|
|
4376
|
-
field:
|
|
4377
|
-
headerName: kn?.headerName ??
|
|
4376
|
+
field: Yt,
|
|
4377
|
+
headerName: kn?.headerName ?? Yt,
|
|
4378
4378
|
minWidth: 140
|
|
4379
4379
|
};
|
|
4380
4380
|
}) : Oi;
|
|
@@ -4411,7 +4411,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4411
4411
|
), Yc = W ?? (Mn ? Xc : void 0), { showCreate: Qr, showEdit: Ri, showShow: Jc } = qr({ resource: Ce }), Vo = we(Ye) || {}, {
|
|
4412
4412
|
user: Fn = zs,
|
|
4413
4413
|
lang: Zr = zs
|
|
4414
|
-
} = Vo, Qc = on(Vo, "borrar") || on(Vo, "delete"), Pn = M && !Qc, Ti = we(Dl),
|
|
4414
|
+
} = Vo, Qc = on(Vo, "borrar") || on(Vo, "delete"), Pn = M && !Qc, Ti = we(Dl), Kt = Ur(), Wo = (z.current?.state?.rowGrouping?.model?.length ?? 0) > 0, ki = Wo && !B ? `${Z.h + 4}px` : 0;
|
|
4415
4415
|
ie(() => {
|
|
4416
4416
|
if (!B || ot === "custom" || !z.current?.showSidebar || z.current?.state?.sidebar?.open && z.current?.state?.sidebar?.value === "pivot")
|
|
4417
4417
|
return;
|
|
@@ -4503,7 +4503,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4503
4503
|
columnOrder: A,
|
|
4504
4504
|
columnasConfiguradas: K
|
|
4505
4505
|
};
|
|
4506
|
-
}, [es, ts]),
|
|
4506
|
+
}, [es, ts]), Xt = v.useMemo(
|
|
4507
4507
|
() => ({
|
|
4508
4508
|
columns: {
|
|
4509
4509
|
columnVisibilityModel: os,
|
|
@@ -4513,11 +4513,11 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4513
4513
|
}),
|
|
4514
4514
|
[os, ns, In]
|
|
4515
4515
|
), Ai = v.useMemo(() => {
|
|
4516
|
-
if (
|
|
4517
|
-
return
|
|
4516
|
+
if (Xt?.sorting?.sortModel?.length)
|
|
4517
|
+
return Xt.sorting;
|
|
4518
4518
|
if (Ve.field)
|
|
4519
4519
|
return { sortModel: nn(Ve) };
|
|
4520
|
-
}, [
|
|
4520
|
+
}, [Xt?.sorting, Ve.field, Ve.order]), ed = v.useCallback(
|
|
4521
4521
|
(w = []) => {
|
|
4522
4522
|
if (!B) {
|
|
4523
4523
|
try {
|
|
@@ -4543,20 +4543,20 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4543
4543
|
v.useEffect(() => {
|
|
4544
4544
|
if (B || ae) return;
|
|
4545
4545
|
const w = z.current?.state?.rowGrouping?.model ?? Rn, A = Gs(Ve, w);
|
|
4546
|
-
(A.field !== Ve.field || A.order !== Ve.order) &&
|
|
4546
|
+
(A.field !== Ve.field || A.order !== Ve.order) && Ut(A);
|
|
4547
4547
|
}, [
|
|
4548
4548
|
z,
|
|
4549
4549
|
G,
|
|
4550
4550
|
Rn,
|
|
4551
4551
|
B,
|
|
4552
4552
|
ae,
|
|
4553
|
-
|
|
4553
|
+
Ut,
|
|
4554
4554
|
Ve.field,
|
|
4555
4555
|
Ve.order
|
|
4556
4556
|
]);
|
|
4557
4557
|
const rs = v.useMemo(
|
|
4558
4558
|
() => ({
|
|
4559
|
-
...
|
|
4559
|
+
...Xt,
|
|
4560
4560
|
...Ai ? { sorting: Ai } : {},
|
|
4561
4561
|
pinnedColumns: !ae && !B ? { right: ["actions"] } : {},
|
|
4562
4562
|
rowGrouping: { model: Rn }
|
|
@@ -4567,7 +4567,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4567
4567
|
// },
|
|
4568
4568
|
//},
|
|
4569
4569
|
}),
|
|
4570
|
-
[Rn, Ai, ae,
|
|
4570
|
+
[Rn, Ai, ae, Xt]
|
|
4571
4571
|
), td = ll({
|
|
4572
4572
|
apiRef: z,
|
|
4573
4573
|
initialState: rs
|
|
@@ -4604,7 +4604,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4604
4604
|
}, "onClick")
|
|
4605
4605
|
},
|
|
4606
4606
|
`show-${U}`
|
|
4607
|
-
) : null, We = I || Pn && !Pe, ze = (t || []).filter((ce) =>
|
|
4607
|
+
) : null, We = I || Pn && !Pe, ze = (t || []).filter((ce) => oo(Vo, ce)).map((ce, Ie) => {
|
|
4608
4608
|
const { handler: Ae, key: Qe, sx: it, ...Go } = ce;
|
|
4609
4609
|
return /* @__PURE__ */ i(
|
|
4610
4610
|
Po,
|
|
@@ -4689,7 +4689,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4689
4689
|
color: ge ? "inherit" : "primary"
|
|
4690
4690
|
}
|
|
4691
4691
|
),
|
|
4692
|
-
ge ? void 0 :
|
|
4692
|
+
ge ? void 0 : Kt.palette.primary.main
|
|
4693
4693
|
),
|
|
4694
4694
|
disabled: ge,
|
|
4695
4695
|
onClick: /* @__PURE__ */ n((ce) => {
|
|
@@ -4826,12 +4826,12 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4826
4826
|
wn
|
|
4827
4827
|
]
|
|
4828
4828
|
), ds = Ne.mouseX !== null && Ne.mouseY !== null, us = v.useCallback(
|
|
4829
|
-
(w) => (
|
|
4830
|
-
[
|
|
4829
|
+
(w) => (Xt?.columns?.columnVisibilityModel || {})[w] !== !1,
|
|
4830
|
+
[Xt]
|
|
4831
4831
|
);
|
|
4832
4832
|
v.useEffect(() => {
|
|
4833
4833
|
if (!So.length) {
|
|
4834
|
-
const w = In?.rowGrouping?.model ??
|
|
4834
|
+
const w = In?.rowGrouping?.model ?? Xt?.rowGrouping?.model ?? [];
|
|
4835
4835
|
if (Array.isArray(w) && w.length)
|
|
4836
4836
|
try {
|
|
4837
4837
|
localStorage.setItem(
|
|
@@ -4959,12 +4959,12 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4959
4959
|
v.useEffect(() => {
|
|
4960
4960
|
if (B || !z.current)
|
|
4961
4961
|
return;
|
|
4962
|
-
const w =
|
|
4963
|
-
w && Nn(Fo, w) && (
|
|
4962
|
+
const w = jt.current;
|
|
4963
|
+
w && Nn(Fo, w) && (jt.current = null);
|
|
4964
4964
|
const A = z.current.state?.filter?.filterModel;
|
|
4965
|
-
|
|
4965
|
+
jt.current && !Nn(
|
|
4966
4966
|
Fo,
|
|
4967
|
-
|
|
4967
|
+
jt.current
|
|
4968
4968
|
) || Xs(A) || Nn(A, Fo) || z.current.setFilterModel(Fo);
|
|
4969
4969
|
}, [z, B, Fo]), v.useEffect(
|
|
4970
4970
|
() => () => {
|
|
@@ -4974,7 +4974,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4974
4974
|
);
|
|
4975
4975
|
const rd = Te && Ft(De), sd = /* @__PURE__ */ n(() => {
|
|
4976
4976
|
const w = Array.from(
|
|
4977
|
-
/* @__PURE__ */ new Set([...vt, ...
|
|
4977
|
+
/* @__PURE__ */ new Set([...vt, ...qt.map((A) => A.id)])
|
|
4978
4978
|
);
|
|
4979
4979
|
Et(w), Se?.(w);
|
|
4980
4980
|
}, "selectAllVisibleRows"), ad = /* @__PURE__ */ n((w) => Array.from(w?.ids ?? []), "normalizeRowSelectionModel"), ld = /* @__PURE__ */ n((w) => {
|
|
@@ -4989,7 +4989,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
4989
4989
|
}),
|
|
4990
4990
|
[vt]
|
|
4991
4991
|
), dd = /* @__PURE__ */ n((w) => {
|
|
4992
|
-
if (B && Mn || (
|
|
4992
|
+
if (B && Mn || (jt.current = w, At.current && clearTimeout(At.current), Xs(w)) || Nn(w, Fo))
|
|
4993
4993
|
return;
|
|
4994
4994
|
const le = (z.current.state.rowGrouping?.model || [])[0], ge = b({
|
|
4995
4995
|
groupingField: le,
|
|
@@ -5002,7 +5002,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5002
5002
|
if (B && Mn)
|
|
5003
5003
|
return;
|
|
5004
5004
|
const A = ae ? [] : z.current?.state?.rowGrouping?.model || [];
|
|
5005
|
-
|
|
5005
|
+
Ut(Gs({
|
|
5006
5006
|
field: w.map((K) => K.field).join(","),
|
|
5007
5007
|
order: w.map((K) => K.sort?.toUpperCase() || "ASC").join(",")
|
|
5008
5008
|
}, A, Ve));
|
|
@@ -5063,17 +5063,17 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5063
5063
|
...B && {
|
|
5064
5064
|
"& .MuiDataGrid-columnSeparator": {
|
|
5065
5065
|
opacity: 1,
|
|
5066
|
-
color:
|
|
5066
|
+
color: Kt.palette.text.disabled
|
|
5067
5067
|
},
|
|
5068
5068
|
"& .MuiDataGrid-columnSeparator svg": {
|
|
5069
|
-
color:
|
|
5069
|
+
color: Kt.palette.text.disabled,
|
|
5070
5070
|
fontSize: 18
|
|
5071
5071
|
},
|
|
5072
5072
|
"& .MuiDataGrid-columnSeparator--sideRight": {
|
|
5073
5073
|
right: -3
|
|
5074
5074
|
},
|
|
5075
5075
|
"& .MuiDataGrid-withBorderColor": {
|
|
5076
|
-
borderColor:
|
|
5076
|
+
borderColor: Kt.palette.divider
|
|
5077
5077
|
}
|
|
5078
5078
|
},
|
|
5079
5079
|
"& .metiri-group-row .MuiDataGrid-cell": /* @__PURE__ */ n((w) => ({
|
|
@@ -5159,7 +5159,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5159
5159
|
Ba,
|
|
5160
5160
|
{
|
|
5161
5161
|
selectedIds: vt,
|
|
5162
|
-
selectAllButton: ae &&
|
|
5162
|
+
selectAllButton: ae && qt.some((w) => !vt.includes(w.id)) ? /* @__PURE__ */ i(wt, { title: $("pos.select_all"), children: /* @__PURE__ */ i(
|
|
5163
5163
|
lt,
|
|
5164
5164
|
{
|
|
5165
5165
|
"aria-label": $("pos.select_all"),
|
|
@@ -5172,7 +5172,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5172
5172
|
children: De
|
|
5173
5173
|
}
|
|
5174
5174
|
) : null,
|
|
5175
|
-
/* @__PURE__ */ i(kd, { theme:
|
|
5175
|
+
/* @__PURE__ */ i(kd, { theme: Kt, children: /* @__PURE__ */ R(
|
|
5176
5176
|
Y,
|
|
5177
5177
|
{
|
|
5178
5178
|
ref: ro,
|
|
@@ -5301,14 +5301,14 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5301
5301
|
}), V(null);
|
|
5302
5302
|
}, "onClick"), children: [
|
|
5303
5303
|
/* @__PURE__ */ i(Lt, { children: w ? /* @__PURE__ */ i(np, {}) : /* @__PURE__ */ i(ip, {}) }),
|
|
5304
|
-
/* @__PURE__ */ i(
|
|
5304
|
+
/* @__PURE__ */ i(to, { children: w ? J === "en" ? "Expand all" : "Expandir todo" : J === "en" ? "Collapse all" : "Contraer todo" })
|
|
5305
5305
|
] }, String(w))),
|
|
5306
5306
|
/* @__PURE__ */ R(et, { onClick: /* @__PURE__ */ n(() => {
|
|
5307
5307
|
const w = z.current.state.rowGrouping.model;
|
|
5308
5308
|
z.current.setRowGroupingModel([]), w.forEach((A) => z.current.setColumnVisibility(A, !0)), V(null);
|
|
5309
5309
|
}, "onClick"), children: [
|
|
5310
5310
|
/* @__PURE__ */ i(Lt, { children: /* @__PURE__ */ i(ei, {}) }),
|
|
5311
|
-
/* @__PURE__ */ i(
|
|
5311
|
+
/* @__PURE__ */ i(to, { children: J === "en" ? "Ungroup" : "Desagrupar" })
|
|
5312
5312
|
] })
|
|
5313
5313
|
] }),
|
|
5314
5314
|
/* @__PURE__ */ i(
|
|
@@ -5351,7 +5351,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5351
5351
|
}
|
|
5352
5352
|
},
|
|
5353
5353
|
columns: B ? vo : Ei,
|
|
5354
|
-
rows: Ii ? [] :
|
|
5354
|
+
rows: Ii ? [] : qt,
|
|
5355
5355
|
apiRef: z,
|
|
5356
5356
|
pivotActive: Xe ? B : void 0,
|
|
5357
5357
|
groupingColDef: B ? void 0 : Zc,
|
|
@@ -5421,11 +5421,11 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5421
5421
|
},
|
|
5422
5422
|
paper: {
|
|
5423
5423
|
sx: {
|
|
5424
|
-
backgroundColor:
|
|
5424
|
+
backgroundColor: Kt.palette.background.paper,
|
|
5425
5425
|
backgroundImage: "none",
|
|
5426
5426
|
border: 0,
|
|
5427
|
-
boxShadow:
|
|
5428
|
-
p:
|
|
5427
|
+
boxShadow: Kt.shadows[8],
|
|
5428
|
+
p: Kt.spacing(0.5)
|
|
5429
5429
|
}
|
|
5430
5430
|
}
|
|
5431
5431
|
},
|
|
@@ -5462,7 +5462,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5462
5462
|
}, "onClick"),
|
|
5463
5463
|
children: [
|
|
5464
5464
|
ge ? /* @__PURE__ */ i(Lt, { children: ge }) : null,
|
|
5465
|
-
/* @__PURE__ */ i(
|
|
5465
|
+
/* @__PURE__ */ i(to, { children: le })
|
|
5466
5466
|
]
|
|
5467
5467
|
},
|
|
5468
5468
|
K ?? `ctx-row-action-${A}`
|
|
@@ -5494,10 +5494,10 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5494
5494
|
forceListView: x,
|
|
5495
5495
|
...b
|
|
5496
5496
|
} = e, P = v.useRef(null), S = we(Ye) || {}, { lang: y = [] } = S, F = on(S, "borrar") || on(S, "delete"), M = f && !F, I = C ? [] : (a || []).filter(
|
|
5497
|
-
(me) =>
|
|
5498
|
-
), k = !!(!C && (l || u || g || M || I.length)), _ = xe(e), { sort: L } =
|
|
5497
|
+
(me) => oo(S, me)
|
|
5498
|
+
), k = !!(!C && (l || u || g || M || I.length)), _ = xe(e), { sort: L } = Wt(), W = /* @__PURE__ */ n(() => P.current, "container"), j = mt((me) => me.breakpoints.down("md")), q = x ?? j, D = x && !j, [E] = vr(), O = (E === "en" ? Dr : Er).components.MuiDataGrid.defaultProps.localeText, G = Ir(), {
|
|
5499
5499
|
props: { gridContainerRef: Q, chkSeleccion: T }
|
|
5500
|
-
} =
|
|
5500
|
+
} = Ht(), [V, H] = v.useState({
|
|
5501
5501
|
overlay: null,
|
|
5502
5502
|
params: null
|
|
5503
5503
|
});
|
|
@@ -5728,7 +5728,7 @@ const Xf = v.memo(/* @__PURE__ */ n(function({
|
|
|
5728
5728
|
[p, u]
|
|
5729
5729
|
), f = s === !1 ? s : r?.borra, g = a, C = c, {
|
|
5730
5730
|
props: { viewMode: x = "grilla" }
|
|
5731
|
-
} =
|
|
5731
|
+
} = Ht(), b = l && x === "pivot";
|
|
5732
5732
|
return /* @__PURE__ */ i(Y, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: !b && (t ? !0 : x === "ficha") ? /* @__PURE__ */ i(
|
|
5733
5733
|
Yf,
|
|
5734
5734
|
{
|
|
@@ -6223,7 +6223,7 @@ const Sc = /* @__PURE__ */ n((e) => {
|
|
|
6223
6223
|
}
|
|
6224
6224
|
) });
|
|
6225
6225
|
}, "SelectInputEtriek"), Rc = /* @__PURE__ */ n((e) => {
|
|
6226
|
-
const { propsContenido: t, hidden: o } = tt(e), r =
|
|
6226
|
+
const { propsContenido: t, hidden: o } = tt(e), r = Gt(), s = fn(), a = Ge(), { isLoading: c } = Re(), {
|
|
6227
6227
|
isActive: l,
|
|
6228
6228
|
hasBeenActive: d = l
|
|
6229
6229
|
} = yi(), {
|
|
@@ -6492,12 +6492,12 @@ const Sc = /* @__PURE__ */ n((e) => {
|
|
|
6492
6492
|
bgcolor: e ? a.palette.action.disabledBackground : "background.paper"
|
|
6493
6493
|
}), "sx"),
|
|
6494
6494
|
children: /* @__PURE__ */ i(Ao, { dense: !0, disablePadding: !0, children: o.length ? o.map((a) => /* @__PURE__ */ R(
|
|
6495
|
-
|
|
6495
|
+
Qt,
|
|
6496
6496
|
{
|
|
6497
6497
|
disabled: e,
|
|
6498
6498
|
onDoubleClick: /* @__PURE__ */ n(() => r(a.id), "onDoubleClick"),
|
|
6499
6499
|
children: [
|
|
6500
|
-
/* @__PURE__ */ i(
|
|
6500
|
+
/* @__PURE__ */ i(Zt, { sx: { minWidth: 36 }, children: /* @__PURE__ */ i(
|
|
6501
6501
|
xl,
|
|
6502
6502
|
{
|
|
6503
6503
|
edge: "start",
|
|
@@ -6734,7 +6734,7 @@ const Sc = /* @__PURE__ */ n((e) => {
|
|
|
6734
6734
|
children: ae.map((ee, $) => {
|
|
6735
6735
|
const J = `transfer-list-item-${ee.id}-label`;
|
|
6736
6736
|
return /* @__PURE__ */ R(
|
|
6737
|
-
|
|
6737
|
+
Qt,
|
|
6738
6738
|
{
|
|
6739
6739
|
disabled: l,
|
|
6740
6740
|
role: "listitem",
|
|
@@ -6747,7 +6747,7 @@ const Sc = /* @__PURE__ */ n((e) => {
|
|
|
6747
6747
|
}
|
|
6748
6748
|
}), "sx"),
|
|
6749
6749
|
children: [
|
|
6750
|
-
/* @__PURE__ */ i(
|
|
6750
|
+
/* @__PURE__ */ i(Zt, { children: /* @__PURE__ */ i(
|
|
6751
6751
|
xl,
|
|
6752
6752
|
{
|
|
6753
6753
|
disabled: l,
|
|
@@ -7556,7 +7556,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
7556
7556
|
}, [e]), null;
|
|
7557
7557
|
}, "FormResetter"), Bh = /* @__PURE__ */ n((e) => {
|
|
7558
7558
|
xr = e;
|
|
7559
|
-
}, "registerFormReset"), ry = /* @__PURE__ */ n(() => xr ? (xr(), !0) : !1, "resetForm"), Lh =
|
|
7559
|
+
}, "registerFormReset"), ry = /* @__PURE__ */ n(() => xr ? (xr(), !0) : !1, "resetForm"), Lh = zt(Ze, {
|
|
7560
7560
|
name: "EtrDeleteButton",
|
|
7561
7561
|
overridesResolver: /* @__PURE__ */ n((e, t) => t.root, "overridesResolver")
|
|
7562
7562
|
})(({ theme: e }) => ({
|
|
@@ -7574,7 +7574,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
7574
7574
|
opacity: 0.6,
|
|
7575
7575
|
position: "relative"
|
|
7576
7576
|
}, Wh = /* @__PURE__ */ n((e) => {
|
|
7577
|
-
const t = Ge(), o = Co(), r = _e(ur("etr")).current, s =
|
|
7577
|
+
const t = Ge(), o = Co(), r = _e(ur("etr")).current, s = Gt(), a = o.open ? Vh : Nh;
|
|
7578
7578
|
return ie(
|
|
7579
7579
|
() => () => {
|
|
7580
7580
|
s(dr(r));
|
|
@@ -7987,19 +7987,19 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
7987
7987
|
...Ee
|
|
7988
7988
|
} = Tt || {}, {
|
|
7989
7989
|
columns: At,
|
|
7990
|
-
slots:
|
|
7990
|
+
slots: jt,
|
|
7991
7991
|
slotProps: bn,
|
|
7992
7992
|
..._t
|
|
7993
|
-
} = O || {},
|
|
7993
|
+
} = O || {}, qt = de(() => {
|
|
7994
7994
|
const ue = {
|
|
7995
7995
|
...Ue || {},
|
|
7996
|
-
...
|
|
7996
|
+
...jt || {},
|
|
7997
7997
|
...kt || {},
|
|
7998
7998
|
...b || {},
|
|
7999
7999
|
noRowsOverlay: Vr
|
|
8000
8000
|
};
|
|
8001
8001
|
return typeof ue.toolbar == "boolean" && (ue.toolbar = void 0), ue;
|
|
8002
|
-
}, [Ue,
|
|
8002
|
+
}, [Ue, jt, kt, b]), Dt = de(
|
|
8003
8003
|
() => ({
|
|
8004
8004
|
...X || {},
|
|
8005
8005
|
...bn || {},
|
|
@@ -8019,7 +8019,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
8019
8019
|
label: Ot,
|
|
8020
8020
|
confirmTitle: yn,
|
|
8021
8021
|
confirmContent: Ve
|
|
8022
|
-
} = y,
|
|
8022
|
+
} = y, Ut = de(() => {
|
|
8023
8023
|
const ue = {
|
|
8024
8024
|
editors: vt,
|
|
8025
8025
|
record: Et,
|
|
@@ -8121,7 +8121,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
8121
8121
|
yn,
|
|
8122
8122
|
Ve
|
|
8123
8123
|
]), wo = new Set(
|
|
8124
|
-
|
|
8124
|
+
Ut.filter((ue) => ue.type === "boolean").map((ue) => ue.field)
|
|
8125
8125
|
), Cn = wo.size ? {
|
|
8126
8126
|
...Dt,
|
|
8127
8127
|
toolbar: {
|
|
@@ -8172,10 +8172,10 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
8172
8172
|
JSON.stringify(so)
|
|
8173
8173
|
]
|
|
8174
8174
|
), Sn = de(
|
|
8175
|
-
() =>
|
|
8175
|
+
() => Ut.filter(
|
|
8176
8176
|
(ue) => so[ue?.field] !== !1
|
|
8177
8177
|
),
|
|
8178
|
-
[
|
|
8178
|
+
[Ut, so]
|
|
8179
8179
|
), No = de(
|
|
8180
8180
|
() => Sn.reduce((ue, Oe) => ra(Oe?.width) ? ue + Oe.width : ra(Oe?.minWidth) ? ue + Oe.minWidth : ue + 140, 0),
|
|
8181
8181
|
[Sn]
|
|
@@ -8298,7 +8298,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
8298
8298
|
},
|
|
8299
8299
|
hideFooter: !0,
|
|
8300
8300
|
rows: F,
|
|
8301
|
-
columns:
|
|
8301
|
+
columns: Ut,
|
|
8302
8302
|
sortModel: Ke,
|
|
8303
8303
|
onSortModelChange: /* @__PURE__ */ n((ue) => Fe(ue), "onSortModelChange"),
|
|
8304
8304
|
sortable: !1,
|
|
@@ -8307,8 +8307,8 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
8307
8307
|
disableExport: !0,
|
|
8308
8308
|
filterable: !1,
|
|
8309
8309
|
disableColumnMenu: !0,
|
|
8310
|
-
showToolbar: S ?? !!
|
|
8311
|
-
slots:
|
|
8310
|
+
showToolbar: S ?? !!qt.toolbar,
|
|
8311
|
+
slots: qt,
|
|
8312
8312
|
slotProps: Cn,
|
|
8313
8313
|
...y,
|
|
8314
8314
|
...Ee,
|
|
@@ -8487,7 +8487,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
8487
8487
|
] });
|
|
8488
8488
|
}, "FormDialogTitle"), Lc = "RaFormDialogTitle", $c = {
|
|
8489
8489
|
closeButton: `${Lc}-closeButton`
|
|
8490
|
-
}, qh =
|
|
8490
|
+
}, qh = zt(or, {
|
|
8491
8491
|
name: Lc,
|
|
8492
8492
|
overridesResolver: /* @__PURE__ */ n((e, t) => t.root, "overridesResolver")
|
|
8493
8493
|
})(({ theme: e }) => ({
|
|
@@ -8831,7 +8831,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
8831
8831
|
c,
|
|
8832
8832
|
p
|
|
8833
8833
|
]), m ? null : /* @__PURE__ */ i(la, { ...e });
|
|
8834
|
-
}, "CreateEtriek"), dy =
|
|
8834
|
+
}, "CreateEtriek"), dy = zt(eg, {
|
|
8835
8835
|
name: sn,
|
|
8836
8836
|
overridesResolver: /* @__PURE__ */ n((e, t) => t.root, "overridesResolver")
|
|
8837
8837
|
})(({ theme: e }) => Mi(e)), tg = /* @__PURE__ */ n((e) => {
|
|
@@ -8940,7 +8940,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
8940
8940
|
}
|
|
8941
8941
|
);
|
|
8942
8942
|
}, "ListInDialogButton"), ig = /* @__PURE__ */ i(un, {}), da = 52, rg = 16, ua = ".RaList-main > .MuiTablePagination-root", pa = 100, sg = [25, 50, 100, 200], ag = /* @__PURE__ */ n((e) => /* @__PURE__ */ i(lu, { ...e, children: /* @__PURE__ */ i(Fr, { source: "q", resettable: !0, alwaysOn: !0 }) }), "DefaultListFilter"), lg = /* @__PURE__ */ n(({ pagination: e }) => {
|
|
8943
|
-
const { props: t } =
|
|
8943
|
+
const { props: t } = Ht();
|
|
8944
8944
|
return t?.viewMode === "pivot" || e === !1 ? null : Ft(e) ? e : /* @__PURE__ */ i(cu, { rowsPerPageOptions: sg });
|
|
8945
8945
|
}, "PivotAwarePagination"), Ko = /* @__PURE__ */ n(() => {
|
|
8946
8946
|
}, "noop"), uy = /* @__PURE__ */ n((e) => {
|
|
@@ -9360,7 +9360,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
9360
9360
|
c,
|
|
9361
9361
|
p
|
|
9362
9362
|
]), C ? null : /* @__PURE__ */ i(ma, { ...e });
|
|
9363
|
-
}, "EditEtriek"), my =
|
|
9363
|
+
}, "EditEtriek"), my = zt(pg, {
|
|
9364
9364
|
name: sn,
|
|
9365
9365
|
overridesResolver: /* @__PURE__ */ n((e, t) => t.root, "overridesResolver")
|
|
9366
9366
|
})(({ theme: e }) => Mi(e)), fy = v.forwardRef((e, t) => {
|
|
@@ -9592,7 +9592,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
9592
9592
|
]
|
|
9593
9593
|
}
|
|
9594
9594
|
);
|
|
9595
|
-
}, "StickySimpleFormView"), Cg = /* @__PURE__ */ i(Fi, {}), wg =
|
|
9595
|
+
}, "StickySimpleFormView"), Cg = /* @__PURE__ */ i(Fi, {}), wg = zt(Lo)(({ theme: e }) => ({
|
|
9596
9596
|
display: "flex",
|
|
9597
9597
|
flexDirection: "column",
|
|
9598
9598
|
flex: 1,
|
|
@@ -9781,7 +9781,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
9781
9781
|
}, "RefreshButton"), Pg = /* @__PURE__ */ i(Sp, {}), Ig = /* @__PURE__ */ n((e, t) => {
|
|
9782
9782
|
alert("Falta implementar la función jsBotonGrilla");
|
|
9783
9783
|
}, "defaultJsBotonGrilla"), Rg = [], jc = /* @__PURE__ */ n((e, t) => (e || []).map((o) => {
|
|
9784
|
-
if (!
|
|
9784
|
+
if (!oo(t, o))
|
|
9785
9785
|
return null;
|
|
9786
9786
|
const s = Array.isArray(o?.children) ? jc(o.children, t) : [];
|
|
9787
9787
|
return {
|
|
@@ -9820,7 +9820,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
9820
9820
|
jsBotonGrilla: d = Ig,
|
|
9821
9821
|
refresh: p = !0,
|
|
9822
9822
|
...u
|
|
9823
|
-
} = e, [m, h] = v.useState(null), [f, g] = v.useState(null), [C, x] = v.useState({}), b = he(), P =
|
|
9823
|
+
} = e, [m, h] = v.useState(null), [f, g] = v.useState(null), [C, x] = v.useState({}), b = he(), P = Wt(), { displayedFilters: S, filterValues: y, exporter: F, showFilter: M } = P, I = xe(e), { hasCreate: k } = no(e), _ = we(hu) || r, L = xi(e), W = we(Ye) || {}, {
|
|
9824
9824
|
props: {
|
|
9825
9825
|
hasCreate: j,
|
|
9826
9826
|
hasSeleccionMultiple: q,
|
|
@@ -9836,7 +9836,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
9836
9836
|
apiRef: oe,
|
|
9837
9837
|
extraMenuActions: ae = Rg
|
|
9838
9838
|
}
|
|
9839
|
-
} =
|
|
9839
|
+
} = Ht(), ee = !H && Q === "pivot" ? "grilla" : Q, { showCreate: $ } = qr({ resource: I }), J = mt((X) => X.breakpoints.down("md"));
|
|
9840
9840
|
Md(t, () => O.current);
|
|
9841
9841
|
const fe = { ...L, ...P }, Se = /* @__PURE__ */ n((X) => {
|
|
9842
9842
|
h(X.currentTarget);
|
|
@@ -9898,10 +9898,10 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
9898
9898
|
), Ue = v.useMemo(() => {
|
|
9899
9899
|
const X = [...ae, ...He || []].map((pe) => {
|
|
9900
9900
|
if (pe?.type === "Button")
|
|
9901
|
-
return
|
|
9901
|
+
return oo(W, pe) ? pe : null;
|
|
9902
9902
|
if (pe?.type === "MenuButton") {
|
|
9903
9903
|
const re = pe.options?.[pe.initialSelectedIndex ?? 0];
|
|
9904
|
-
if (!
|
|
9904
|
+
if (!oo(W, re))
|
|
9905
9905
|
return null;
|
|
9906
9906
|
const ke = jc(
|
|
9907
9907
|
pe.options,
|
|
@@ -10042,7 +10042,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
10042
10042
|
fontSize: "inherit"
|
|
10043
10043
|
}) }),
|
|
10044
10044
|
/* @__PURE__ */ i(
|
|
10045
|
-
|
|
10045
|
+
to,
|
|
10046
10046
|
{
|
|
10047
10047
|
primary: X.title,
|
|
10048
10048
|
primaryTypographyProps: Qi
|
|
@@ -10065,7 +10065,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
10065
10065
|
fontSize: "inherit"
|
|
10066
10066
|
}) }),
|
|
10067
10067
|
/* @__PURE__ */ i(
|
|
10068
|
-
|
|
10068
|
+
to,
|
|
10069
10069
|
{
|
|
10070
10070
|
primary: ke,
|
|
10071
10071
|
primaryTypographyProps: Qi
|
|
@@ -10134,7 +10134,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
10134
10134
|
}
|
|
10135
10135
|
),
|
|
10136
10136
|
/* @__PURE__ */ i(
|
|
10137
|
-
|
|
10137
|
+
to,
|
|
10138
10138
|
{
|
|
10139
10139
|
primary: be.label,
|
|
10140
10140
|
primaryTypographyProps: Qi
|
|
@@ -10331,12 +10331,12 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
10331
10331
|
// string
|
|
10332
10332
|
} = e, [c, l] = te(!1), d = _e(), p = xe(e), u = we(Ye) || {}, { menuModel: m, leafOptions: h, menuVisible: f } = de(() => {
|
|
10333
10333
|
const M = [], I = [], k = t?.[s];
|
|
10334
|
-
return
|
|
10335
|
-
if (!
|
|
10334
|
+
return oo(u, k) ? ((t || []).forEach((_) => {
|
|
10335
|
+
if (!oo(u, _))
|
|
10336
10336
|
return;
|
|
10337
10337
|
if (Array.isArray(_?.children) && _.children.length > 0) {
|
|
10338
10338
|
const W = _.children.filter(
|
|
10339
|
-
(j) =>
|
|
10339
|
+
(j) => oo(u, j)
|
|
10340
10340
|
);
|
|
10341
10341
|
if (W.length === 0)
|
|
10342
10342
|
return;
|
|
@@ -10531,7 +10531,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
10531
10531
|
}, "ShowChildren"), Ag = /* @__PURE__ */ n((e) => {
|
|
10532
10532
|
const t = dt(), { useFormulario: o, children: r, ...s } = e, a = Al(e), c = e.estado ?? (t?.state?.estado || "M"), { fichaProps: l } = Xr({ ...e, estado: c });
|
|
10533
10533
|
return /* @__PURE__ */ i(_o, { children: /* @__PURE__ */ i(yu, { id: a, emptyWhileLoading: !0, ...s, ...l?.panel, children: /* @__PURE__ */ i(kg, { estado: c, fichaProps: l, children: r }) }) });
|
|
10534
|
-
}, "ShowEtriek"), Cy =
|
|
10534
|
+
}, "ShowEtriek"), Cy = zt(Ag, {
|
|
10535
10535
|
name: sn,
|
|
10536
10536
|
overridesResolver: /* @__PURE__ */ n((e, t) => t.root, "overridesResolver")
|
|
10537
10537
|
})(({ theme: e }) => Mi(e)), _g = /* @__PURE__ */ n((e) => {
|
|
@@ -10859,7 +10859,7 @@ const Dc = /* @__PURE__ */ n(() => {
|
|
|
10859
10859
|
]
|
|
10860
10860
|
}
|
|
10861
10861
|
);
|
|
10862
|
-
}, "StickyTabbedFormView"), Wg = /* @__PURE__ */ i(Ja, {}), zg = /* @__PURE__ */ i(Fi, {}), Gg =
|
|
10862
|
+
}, "StickyTabbedFormView"), Wg = /* @__PURE__ */ i(Ja, {}), zg = /* @__PURE__ */ i(Fi, {}), Gg = zt(Lo)(({ theme: e }) => ({
|
|
10863
10863
|
display: "flex",
|
|
10864
10864
|
flexDirection: "column",
|
|
10865
10865
|
flex: 1,
|
|
@@ -12534,7 +12534,7 @@ const Ty = {
|
|
|
12534
12534
|
return t;
|
|
12535
12535
|
}
|
|
12536
12536
|
}, "getFuncionarioTooltipLine"), pb = /* @__PURE__ */ n((e) => e ? typeof e == "string" ? e.trim() : typeof e == "object" && !Array.isArray(e) ? String(e.fillista || e.filgrilla || "").trim() : "" : "", "normalizeFilgrilla"), Fa = /* @__PURE__ */ n((e, t) => t ? !e || e === "null" ? t : `(${e}) AND (${t})` : e, "combineFillista"), mb = /* @__PURE__ */ n(({ onRecordsLoaded: e }) => {
|
|
12537
|
-
const { data: t = [], isPending: o, isLoading: r, isFetching: s } =
|
|
12537
|
+
const { data: t = [], isPending: o, isLoading: r, isFetching: s } = Wt(), a = de(
|
|
12538
12538
|
() => Array.isArray(t) ? t : Object.values(t),
|
|
12539
12539
|
[t]
|
|
12540
12540
|
), c = de(
|
|
@@ -12581,13 +12581,23 @@ const Ty = {
|
|
|
12581
12581
|
] }, t)) })
|
|
12582
12582
|
] })
|
|
12583
12583
|
}
|
|
12584
|
-
), "FuncionariosGridSkeleton"), hb = /* @__PURE__ */ n(({ queryOptions: e }) =>
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12584
|
+
), "FuncionariosGridSkeleton"), hb = /* @__PURE__ */ n(({ queryOptions: e }) => {
|
|
12585
|
+
const { total: t } = Wt();
|
|
12586
|
+
return /* @__PURE__ */ i(
|
|
12587
|
+
Ba,
|
|
12588
|
+
{
|
|
12589
|
+
selectAllButton: /* @__PURE__ */ i(
|
|
12590
|
+
ku,
|
|
12591
|
+
{
|
|
12592
|
+
label: "pos.select_all_pages",
|
|
12593
|
+
queryOptions: e,
|
|
12594
|
+
limit: t + 1
|
|
12595
|
+
}
|
|
12596
|
+
)
|
|
12597
|
+
}
|
|
12598
|
+
);
|
|
12599
|
+
}, "TBSFBulkActionsToolbar"), gb = /* @__PURE__ */ n(({ queryOptions: e }) => {
|
|
12600
|
+
const { isPending: t, isLoading: o, isFetching: r } = Wt();
|
|
12591
12601
|
return t || o || r ? /* @__PURE__ */ i(Uc, {}) : /* @__PURE__ */ R(
|
|
12592
12602
|
Tu,
|
|
12593
12603
|
{
|
|
@@ -13807,7 +13817,7 @@ export {
|
|
|
13807
13817
|
lm as descargarLink,
|
|
13808
13818
|
Xx as descargarUrl,
|
|
13809
13819
|
Ry as enMessages,
|
|
13810
|
-
|
|
13820
|
+
oo as esAccionVisible,
|
|
13811
13821
|
Ty as esMessages,
|
|
13812
13822
|
on as estaAccionOculta,
|
|
13813
13823
|
qx as etrFechaMayorQue,
|
|
@@ -13840,7 +13850,7 @@ export {
|
|
|
13840
13850
|
Pi as useFormSubmit,
|
|
13841
13851
|
Hl as useFormToolbar,
|
|
13842
13852
|
dm as useGetJson,
|
|
13843
|
-
|
|
13853
|
+
Ht as useGrillaEtriek,
|
|
13844
13854
|
Al as useIdContext,
|
|
13845
13855
|
Xr as useInitFicha,
|
|
13846
13856
|
gt as useNotifyEtriek,
|