capibara 1.3.82 → 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 +75 -75
- package/package.json +1 -1
- package/src/scss/components/_input_nav.scss +8 -0
- package/src/util/tableElements.js +17 -4
package/package.json
CHANGED
|
@@ -648,6 +648,14 @@
|
|
|
648
648
|
transition: background-color 0.15s ease;
|
|
649
649
|
cursor: pointer;
|
|
650
650
|
|
|
651
|
+
// El label de campo (.text-subtitle) trae su propio margin pensado para
|
|
652
|
+
// encabezar una sección; dentro de la fila flex del checkbox se anula
|
|
653
|
+
// para no romper la alineación con el input.
|
|
654
|
+
.text-subtitle {
|
|
655
|
+
margin: 0;
|
|
656
|
+
flex: 0 1 auto;
|
|
657
|
+
}
|
|
658
|
+
|
|
651
659
|
&:hover {
|
|
652
660
|
background-color: rgba(25, 118, 210, 0.15);
|
|
653
661
|
}
|
|
@@ -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(
|
|
@@ -4650,7 +4663,7 @@ export default {
|
|
|
4650
4663
|
<input type="checkbox" name="${props.key || ""}" input-key="${
|
|
4651
4664
|
props.key || ""
|
|
4652
4665
|
}" ${value ? "checked" : ""}>
|
|
4653
|
-
<span
|
|
4666
|
+
<span class="text-subtitle">${props.label}</span>
|
|
4654
4667
|
</label>
|
|
4655
4668
|
${helpText ? `<div class="cap-checkbox-help">${helpText}</div>` : ""}
|
|
4656
4669
|
</div>`);
|