capibara 1.3.83 → 1.3.84
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 +73 -73
- package/package.json +1 -1
- package/src/util/tableElements.js +16 -3
package/package.json
CHANGED
|
@@ -1317,7 +1317,7 @@ export default {
|
|
|
1317
1317
|
if (c.isHidden) return;
|
|
1318
1318
|
initialNavList += `<div class="child-initial-nav-item ${
|
|
1319
1319
|
d.isClosed ? "hide" : ""
|
|
1320
|
-
} ${c.rowClass || ""}" child="${d.id || -1}">`;
|
|
1320
|
+
} ${c.rowClass || ""}" child="${d.id || -1}" child-type="${d.type || ""}">`;
|
|
1321
1321
|
|
|
1322
1322
|
if (c.withNav !== false) {
|
|
1323
1323
|
config.timeline.nav.left.initial.vars.forEach((v) => {
|
|
@@ -1483,7 +1483,7 @@ export default {
|
|
|
1483
1483
|
if (c.isHidden) return;
|
|
1484
1484
|
exNavList += `<div class="child-ex-nav-item ${
|
|
1485
1485
|
d.isClosed ? "hide" : ""
|
|
1486
|
-
} ${c.rowClass || ""}" child="${d.id || -1}">`;
|
|
1486
|
+
} ${c.rowClass || ""}" child="${d.id || -1}" child-type="${d.type || ""}">`;
|
|
1487
1487
|
|
|
1488
1488
|
if (c.withNav !== false) {
|
|
1489
1489
|
config.timeline.nav.left.extend.vars.forEach((v) => {
|
|
@@ -1632,7 +1632,7 @@ export default {
|
|
|
1632
1632
|
//buttons
|
|
1633
1633
|
btnNavList += `<div class="cap-btn-child-nav-item parent ${
|
|
1634
1634
|
d.isClosed ? "hide" : ""
|
|
1635
|
-
} ${c.rowClass || ""}" child="${d.id || -1}">
|
|
1635
|
+
} ${c.rowClass || ""}" child="${d.id || -1}" child-type="${d.type || ""}">
|
|
1636
1636
|
<div class="cap-btn-nav-item-content">`;
|
|
1637
1637
|
|
|
1638
1638
|
if (
|
|
@@ -1951,6 +1951,19 @@ export default {
|
|
|
1951
1951
|
itemsToHide.forEach((i) => i.classList.add("hide"));
|
|
1952
1952
|
if (dataConfig) dataConfig.isClosed = true;
|
|
1953
1953
|
}
|
|
1954
|
+
|
|
1955
|
+
// Las filas de nietos en las columnas del sidebar (initial/extend/botones)
|
|
1956
|
+
// son hermanas planas, no descendientes del hijo: sincronizarlas con el
|
|
1957
|
+
// estado del padre y del propio hijo.
|
|
1958
|
+
if ($navLeft && dataConfig && Array.isArray(dataConfig.children)) {
|
|
1959
|
+
dataConfig.children.forEach((c) => {
|
|
1960
|
+
if (!c || !Array.isArray(c.children) || !c.children.length) return;
|
|
1961
|
+
const hidden = dataConfig.isClosed || c.isClosed;
|
|
1962
|
+
$navLeft
|
|
1963
|
+
.querySelectorAll("[child='" + (c.id || -1) + "'][child-type='" + (c.type || "") + "']")
|
|
1964
|
+
.forEach(($row) => $row.classList[hidden ? "add" : "remove"]("hide"));
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1954
1967
|
}
|
|
1955
1968
|
|
|
1956
1969
|
i.dispatchEvent(
|