biblio-react 3.0.0-alpha194 → 3.0.0-alpha195
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 +68 -64
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33488,58 +33488,59 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33488
33488
|
)
|
|
33489
33489
|
}
|
|
33490
33490
|
), "AsistenteList"), qH = { fillista: "empcod=-1", mapId: ["funnro"] }, GH = /* @__PURE__ */ a((e) => {
|
|
33491
|
-
const { filgrilla: t = {} } = e, [
|
|
33491
|
+
const { filgrilla: t = {}, meta: r = {} } = e, [n, o] = Be(qH), [i, s] = Be([]), l = Ja();
|
|
33492
33492
|
Ge(() => {
|
|
33493
33493
|
(/* @__PURE__ */ a(async () => {
|
|
33494
|
-
const
|
|
33495
|
-
|
|
33494
|
+
const g = await d("");
|
|
33495
|
+
s(g);
|
|
33496
33496
|
}, "loadInitialData"))();
|
|
33497
33497
|
}, []);
|
|
33498
|
-
const
|
|
33499
|
-
(
|
|
33500
|
-
|
|
33501
|
-
fillista:
|
|
33498
|
+
const u = et(
|
|
33499
|
+
(h, g) => {
|
|
33500
|
+
o({
|
|
33501
|
+
fillista: g,
|
|
33502
33502
|
mapId: ["funnro"],
|
|
33503
|
+
meta: r,
|
|
33503
33504
|
...t
|
|
33504
33505
|
});
|
|
33505
33506
|
},
|
|
33506
|
-
[
|
|
33507
|
-
),
|
|
33507
|
+
[o]
|
|
33508
|
+
), d = /* @__PURE__ */ a(async (h) => {
|
|
33508
33509
|
try {
|
|
33509
|
-
return (await
|
|
33510
|
-
parentId:
|
|
33511
|
-
})).data.map((
|
|
33512
|
-
...
|
|
33513
|
-
children:
|
|
33514
|
-
hasItems:
|
|
33510
|
+
return (await l.getChildNodes("form_224", {
|
|
33511
|
+
parentId: h
|
|
33512
|
+
})).data.map((m) => ({
|
|
33513
|
+
...m,
|
|
33514
|
+
children: m.children || [],
|
|
33515
|
+
hasItems: m.hasItems
|
|
33515
33516
|
// Asegúrate de que este atributo esté presente
|
|
33516
33517
|
}));
|
|
33517
33518
|
} catch {
|
|
33518
33519
|
throw new Error("Data Loading Error");
|
|
33519
33520
|
}
|
|
33520
|
-
}, "fetchData"),
|
|
33521
|
-
const
|
|
33522
|
-
|
|
33523
|
-
if (
|
|
33524
|
-
const
|
|
33525
|
-
return { ...
|
|
33526
|
-
} else if (
|
|
33521
|
+
}, "fetchData"), p = /* @__PURE__ */ a(async (h, g) => {
|
|
33522
|
+
const m = /* @__PURE__ */ a(async (y) => Promise.all(
|
|
33523
|
+
y.map(async (x) => {
|
|
33524
|
+
if (x.id === g && x.children.length === 0 && x.hasItems) {
|
|
33525
|
+
const k = await d(g);
|
|
33526
|
+
return { ...x, children: k };
|
|
33527
|
+
} else if (x.children.length > 0)
|
|
33527
33528
|
return {
|
|
33528
|
-
...
|
|
33529
|
-
children: await
|
|
33529
|
+
...x,
|
|
33530
|
+
children: await m(x.children)
|
|
33530
33531
|
};
|
|
33531
|
-
return
|
|
33532
|
+
return x;
|
|
33532
33533
|
})
|
|
33533
|
-
), "updateNodeChildren"),
|
|
33534
|
-
|
|
33535
|
-
}, "handleItemExpansionToggle"),
|
|
33534
|
+
), "updateNodeChildren"), b = await m(i);
|
|
33535
|
+
s(b);
|
|
33536
|
+
}, "handleItemExpansionToggle"), f = /* @__PURE__ */ a((h) => h.map((g) => /* @__PURE__ */ v(Tv, { itemId: g.id, label: g.text, children: g.children.length > 0 ? f(g.children) : g.hasItems ? /* @__PURE__ */ v(
|
|
33536
33537
|
Tv,
|
|
33537
33538
|
{
|
|
33538
|
-
itemId: `${
|
|
33539
|
+
itemId: `${g.id}-placeholder`,
|
|
33539
33540
|
label: "Cargando..."
|
|
33540
33541
|
},
|
|
33541
|
-
`${
|
|
33542
|
-
) : null },
|
|
33542
|
+
`${g.id}-placeholder`
|
|
33543
|
+
) : null }, g.id)), "renderTreeItems");
|
|
33543
33544
|
return /* @__PURE__ */ W(
|
|
33544
33545
|
st,
|
|
33545
33546
|
{
|
|
@@ -33564,10 +33565,10 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33564
33565
|
vM,
|
|
33565
33566
|
{
|
|
33566
33567
|
id: "funcionarios-treeview",
|
|
33567
|
-
onItemExpansionToggle:
|
|
33568
|
-
onItemSelectionToggle:
|
|
33569
|
-
getItemId: /* @__PURE__ */ a((
|
|
33570
|
-
children:
|
|
33568
|
+
onItemExpansionToggle: p,
|
|
33569
|
+
onItemSelectionToggle: u,
|
|
33570
|
+
getItemId: /* @__PURE__ */ a((h) => h.id, "getItemId"),
|
|
33571
|
+
children: f(i)
|
|
33571
33572
|
}
|
|
33572
33573
|
)
|
|
33573
33574
|
}
|
|
@@ -33582,7 +33583,7 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33582
33583
|
height: { md: "70vh" },
|
|
33583
33584
|
width: { xs: "100%", md: "auto" }
|
|
33584
33585
|
},
|
|
33585
|
-
children: /* @__PURE__ */ v(UH, { resource: "form_224", filter:
|
|
33586
|
+
children: /* @__PURE__ */ v(UH, { resource: "form_224", filter: n })
|
|
33586
33587
|
}
|
|
33587
33588
|
)
|
|
33588
33589
|
]
|
|
@@ -33606,42 +33607,43 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33606
33607
|
onClose: l,
|
|
33607
33608
|
onConfirm: u,
|
|
33608
33609
|
translateOptions: d = {},
|
|
33609
|
-
filgrilla: p
|
|
33610
|
-
|
|
33611
|
-
|
|
33612
|
-
|
|
33610
|
+
filgrilla: p,
|
|
33611
|
+
meta: f
|
|
33612
|
+
} = e, h = Lt(), g = et(
|
|
33613
|
+
(b, y) => {
|
|
33614
|
+
b.stopPropagation(), u(b, y);
|
|
33613
33615
|
},
|
|
33614
33616
|
[u]
|
|
33615
|
-
),
|
|
33616
|
-
|
|
33617
|
+
), m = et((b) => {
|
|
33618
|
+
b.stopPropagation();
|
|
33617
33619
|
}, []);
|
|
33618
33620
|
return /* @__PURE__ */ W(
|
|
33619
33621
|
Hl,
|
|
33620
33622
|
{
|
|
33621
33623
|
open: t,
|
|
33622
33624
|
onClose: l,
|
|
33623
|
-
onClick:
|
|
33625
|
+
onClick: m,
|
|
33624
33626
|
fullWidth: !0,
|
|
33625
33627
|
maxWidth: "lg",
|
|
33626
33628
|
PaperComponent: KH,
|
|
33627
33629
|
"aria-labelledby": "draggable-dialog-title",
|
|
33628
33630
|
children: [
|
|
33629
|
-
/* @__PURE__ */ v(ql, { style: JH, id: "draggable-dialog-title", children:
|
|
33630
|
-
/* @__PURE__ */ v(Ul, { dividers: !0, children: /* @__PURE__ */ v(GH, { filgrilla: p }) }),
|
|
33631
|
+
/* @__PURE__ */ v(ql, { style: JH, id: "draggable-dialog-title", children: h(n, { _: n, ...d }) }),
|
|
33632
|
+
/* @__PURE__ */ v(Ul, { dividers: !0, children: /* @__PURE__ */ v(GH, { filgrilla: p, meta: f }) }),
|
|
33631
33633
|
/* @__PURE__ */ W(Wl, { children: [
|
|
33632
33634
|
/* @__PURE__ */ W(Tn, { disabled: r, onClick: l, children: [
|
|
33633
33635
|
/* @__PURE__ */ v(s, { sx: { paddingRight: "0.5em" } }),
|
|
33634
|
-
|
|
33636
|
+
h(o, { _: o })
|
|
33635
33637
|
] }),
|
|
33636
33638
|
/* @__PURE__ */ W(
|
|
33637
33639
|
Tn,
|
|
33638
33640
|
{
|
|
33639
33641
|
disabled: r,
|
|
33640
|
-
onClick: /* @__PURE__ */ a((
|
|
33642
|
+
onClick: /* @__PURE__ */ a((b) => g(b, "yes"), "onClick"),
|
|
33641
33643
|
autoFocus: !0,
|
|
33642
33644
|
children: [
|
|
33643
33645
|
/* @__PURE__ */ v(i, { sx: { paddingRight: "0.5em" } }),
|
|
33644
|
-
|
|
33646
|
+
h("ra.action.confirm")
|
|
33645
33647
|
]
|
|
33646
33648
|
}
|
|
33647
33649
|
)
|
|
@@ -33663,34 +33665,35 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33663
33665
|
allowNone: m = !0,
|
|
33664
33666
|
allowAll: b = !0,
|
|
33665
33667
|
filgrilla: y,
|
|
33666
|
-
|
|
33668
|
+
meta: x,
|
|
33669
|
+
...k
|
|
33667
33670
|
}
|
|
33668
|
-
} = xr(e), { [t]:
|
|
33671
|
+
} = xr(e), { [t]: T = {} } = u, C = cn(e), S = T.onChange === void 0 ? r : T.onChange;
|
|
33669
33672
|
Ge(() => {
|
|
33670
33673
|
d.current || (setTimeout(() => {
|
|
33671
33674
|
s.setValue(t, QH);
|
|
33672
33675
|
}, 0), d.current = !0);
|
|
33673
33676
|
}, [s, t]);
|
|
33674
|
-
const
|
|
33677
|
+
const w = et(() => {
|
|
33675
33678
|
i(!1);
|
|
33676
|
-
}, [i]),
|
|
33679
|
+
}, [i]), P = /* @__PURE__ */ a((A, M) => {
|
|
33677
33680
|
i(!1), s.setValue(t, {
|
|
33678
33681
|
seleccion: n.join(",").replaceAll("funnro=", ""),
|
|
33679
33682
|
all: !1,
|
|
33680
33683
|
none: !1
|
|
33681
|
-
}),
|
|
33682
|
-
}, "handleConfirm"),
|
|
33684
|
+
}), S && S(C, l, A);
|
|
33685
|
+
}, "handleConfirm"), F = /* @__PURE__ */ a((A) => {
|
|
33683
33686
|
s.setValue(t, {
|
|
33684
33687
|
seleccion: "",
|
|
33685
33688
|
all: !1,
|
|
33686
33689
|
none: !0
|
|
33687
|
-
}),
|
|
33688
|
-
}, "handleNinguno"),
|
|
33690
|
+
}), S && S(C, l, A);
|
|
33691
|
+
}, "handleNinguno"), $ = /* @__PURE__ */ a((A) => {
|
|
33689
33692
|
s.setValue(t, {
|
|
33690
33693
|
seleccion: "",
|
|
33691
33694
|
all: !0,
|
|
33692
33695
|
none: !1
|
|
33693
|
-
}),
|
|
33696
|
+
}), S && S(C, l, A);
|
|
33694
33697
|
}, "handleTodos");
|
|
33695
33698
|
return p ? null : /* @__PURE__ */ W(Ur, { children: [
|
|
33696
33699
|
/* @__PURE__ */ v(
|
|
@@ -33706,7 +33709,7 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33706
33709
|
children: /* @__PURE__ */ v(
|
|
33707
33710
|
En,
|
|
33708
33711
|
{
|
|
33709
|
-
...
|
|
33712
|
+
...k,
|
|
33710
33713
|
source: t,
|
|
33711
33714
|
label: g,
|
|
33712
33715
|
readOnly: !0,
|
|
@@ -33718,7 +33721,7 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33718
33721
|
m && /* @__PURE__ */ v(
|
|
33719
33722
|
jr,
|
|
33720
33723
|
{
|
|
33721
|
-
onClick:
|
|
33724
|
+
onClick: F,
|
|
33722
33725
|
disabled: f,
|
|
33723
33726
|
"aria-label": "Ninguno",
|
|
33724
33727
|
size: "small",
|
|
@@ -33729,7 +33732,7 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33729
33732
|
b && /* @__PURE__ */ v(
|
|
33730
33733
|
jr,
|
|
33731
33734
|
{
|
|
33732
|
-
onClick:
|
|
33735
|
+
onClick: $,
|
|
33733
33736
|
disabled: f,
|
|
33734
33737
|
"aria-label": "Todos",
|
|
33735
33738
|
size: "small",
|
|
@@ -33740,7 +33743,7 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33740
33743
|
/* @__PURE__ */ v(
|
|
33741
33744
|
jr,
|
|
33742
33745
|
{
|
|
33743
|
-
onClick: /* @__PURE__ */ a((
|
|
33746
|
+
onClick: /* @__PURE__ */ a((A) => i(!0), "onClick"),
|
|
33744
33747
|
disabled: f,
|
|
33745
33748
|
"aria-label": "Selección",
|
|
33746
33749
|
size: "small",
|
|
@@ -33759,9 +33762,10 @@ const _H = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
33759
33762
|
{
|
|
33760
33763
|
isOpen: o,
|
|
33761
33764
|
title: `Selección de ${g}`,
|
|
33762
|
-
onConfirm:
|
|
33763
|
-
onClose:
|
|
33764
|
-
filgrilla: y
|
|
33765
|
+
onConfirm: P,
|
|
33766
|
+
onClose: w,
|
|
33767
|
+
filgrilla: y,
|
|
33768
|
+
meta: x
|
|
33765
33769
|
}
|
|
33766
33770
|
)
|
|
33767
33771
|
] });
|