4 lines
1.2 KiB
JavaScript
4 lines
1.2 KiB
JavaScript
|
/*! 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
|