@forsakringskassan/docs-generator 3.22.1 → 3.22.2
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/runtime-internal.mjs +47 -8
- package/package.json +1 -1
|
@@ -293602,6 +293602,51 @@ mermaid_default.initialize({
|
|
|
293602
293602
|
}
|
|
293603
293603
|
});
|
|
293604
293604
|
|
|
293605
|
+
// src/runtime/close-all-details.ts
|
|
293606
|
+
function forceReflow(element3) {
|
|
293607
|
+
element3.style.display = "none";
|
|
293608
|
+
element3.offsetHeight;
|
|
293609
|
+
element3.style.removeProperty("display");
|
|
293610
|
+
}
|
|
293611
|
+
function closeNested(event3) {
|
|
293612
|
+
if (!event3) {
|
|
293613
|
+
return;
|
|
293614
|
+
}
|
|
293615
|
+
const targetDetails = event3;
|
|
293616
|
+
if (targetDetails.tagName !== "DETAILS") {
|
|
293617
|
+
return;
|
|
293618
|
+
}
|
|
293619
|
+
if (targetDetails.open) {
|
|
293620
|
+
return;
|
|
293621
|
+
}
|
|
293622
|
+
const openChildren = targetDetails.querySelectorAll("details[open]");
|
|
293623
|
+
openChildren.forEach((child) => {
|
|
293624
|
+
child.removeAttribute("open");
|
|
293625
|
+
});
|
|
293626
|
+
const parentList = targetDetails.closest("ul");
|
|
293627
|
+
if (!parentList) {
|
|
293628
|
+
return;
|
|
293629
|
+
}
|
|
293630
|
+
forceReflow(parentList);
|
|
293631
|
+
}
|
|
293632
|
+
function initCloseDetailMenu() {
|
|
293633
|
+
const mobileNav = document.querySelector(
|
|
293634
|
+
".docs-mobile-nav-wrapper"
|
|
293635
|
+
);
|
|
293636
|
+
if (!mobileNav) {
|
|
293637
|
+
return;
|
|
293638
|
+
}
|
|
293639
|
+
mobileNav.addEventListener(
|
|
293640
|
+
"toggle",
|
|
293641
|
+
({ target }) => {
|
|
293642
|
+
closeNested(target);
|
|
293643
|
+
},
|
|
293644
|
+
{
|
|
293645
|
+
capture: true
|
|
293646
|
+
}
|
|
293647
|
+
);
|
|
293648
|
+
}
|
|
293649
|
+
|
|
293605
293650
|
// src/runtime/breakpoints.ts
|
|
293606
293651
|
var style3 = getComputedStyle(document.documentElement);
|
|
293607
293652
|
var BREAKPOINT_SMALL = style3.getPropertyValue("--docs-breakpoint-sm");
|
|
@@ -293677,11 +293722,6 @@ var variableBlock = document.createElement("style");
|
|
|
293677
293722
|
var header = document.querySelector("header");
|
|
293678
293723
|
var footer = document.querySelector("footer");
|
|
293679
293724
|
var previousPath = location.pathname;
|
|
293680
|
-
function closeNested(details) {
|
|
293681
|
-
for (const nested of details.querySelectorAll("details")) {
|
|
293682
|
-
nested.open = false;
|
|
293683
|
-
}
|
|
293684
|
-
}
|
|
293685
293725
|
function cloneScripts(element3, href) {
|
|
293686
293726
|
const ts = String(Date.now());
|
|
293687
293727
|
for (const script2 of element3.querySelectorAll("script")) {
|
|
@@ -293818,9 +293858,7 @@ function updateSidenavHeight(navigation2) {
|
|
|
293818
293858
|
}
|
|
293819
293859
|
for (const details of document.querySelectorAll("details")) {
|
|
293820
293860
|
details.addEventListener("toggle", () => {
|
|
293821
|
-
|
|
293822
|
-
closeNested(details);
|
|
293823
|
-
}
|
|
293861
|
+
closeNested(details);
|
|
293824
293862
|
});
|
|
293825
293863
|
}
|
|
293826
293864
|
var toggle = document.querySelector(
|
|
@@ -293985,6 +294023,7 @@ onContentReady(() => {
|
|
|
293985
294023
|
return;
|
|
293986
294024
|
}
|
|
293987
294025
|
headerLayoutDetector(newRefs.nav);
|
|
294026
|
+
initCloseDetailMenu();
|
|
293988
294027
|
});
|
|
293989
294028
|
|
|
293990
294029
|
// src/runtime/motd/motd-symbol.ts
|