TP_JO2024/home/dist/component/sidemenu/sidemenu.module.min.js

4 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2024-03-27 17:19:37 +01:00
/*! DSFR v1.11.2 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */
const e=window.dsfr,n=e.internals.ns.selector("sidemenu__item"),s=e.internals.ns.selector("collapse"),t={LIST:e.internals.ns.selector("sidemenu__list"),COLLAPSE:`${n} > ${s}, ${n} > *:not(${n}):not(${s}) > ${s}, ${n} > *:not(${n}):not(${s}) > *:not(${n}):not(${s}) > ${s}`,COLLAPSE_LEGACY:`${n} ${s}`,ITEM:e.internals.ns.selector("sidemenu__item"),BUTTON:e.internals.ns.selector("sidemenu__btn")};class i extends e.core.CollapsesGroup{static get instanceClassName(){return"SidemenuList"}validate(n){return super.validate(n)&&n.node.matches(e.internals.legacy.isLegacy?t.COLLAPSE_LEGACY:t.COLLAPSE)}}class l extends e.core.Instance{static get instanceClassName(){return"SidemenuItem"}get collapsePrimary(){return this.element.children.map((e=>e.getInstance("CollapseButton"))).filter((e=>null!==e&&e.hasClass(t.BUTTON)))[0]}}e.sidemenu={SidemenuList:i,SidemenuItem:l,SidemenuSelector:t},e.internals.register(e.sidemenu.SidemenuSelector.LIST,e.sidemenu.SidemenuList),e.internals.register(e.sidemenu.SidemenuSelector.ITEM,e.sidemenu.SidemenuItem);
//# sourceMappingURL=sidemenu.module.min.js.map