4 lines
1.8 KiB
JavaScript
4 lines
1.8 KiB
JavaScript
|
/*! DSFR v1.11.2 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */
|
||
|
!function(){"use strict";var e=window.dsfr,t=e.internals.ns.selector("sidemenu__item"),n=e.internals.ns.selector("collapse"),r={LIST:e.internals.ns.selector("sidemenu__list"),COLLAPSE:t+" > "+n+", "+t+" > *:not("+t+"):not("+n+") > "+n+", "+t+" > *:not("+t+"):not("+n+") > *:not("+t+"):not("+n+") > "+n,COLLAPSE_LEGACY:t+" "+n,ITEM:e.internals.ns.selector("sidemenu__item"),BUTTON:e.internals.ns.selector("sidemenu__btn")},i=function(t){function n(){t.apply(this,arguments)}t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n;var i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"SidemenuList"},n.prototype.validate=function(n){return t.prototype.validate.call(this,n)&&n.node.matches(e.internals.legacy.isLegacy?r.COLLAPSE_LEGACY:r.COLLAPSE)},Object.defineProperties(n,i),n}(e.core.CollapsesGroup),s=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={collapsePrimary:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"SidemenuItem"},n.collapsePrimary.get=function(){return this.element.children.map((function(e){return e.getInstance("CollapseButton")})).filter((function(e){return null!==e&&e.hasClass(r.BUTTON)}))[0]},Object.defineProperties(t.prototype,n),Object.defineProperties(t,i),t}(e.core.Instance);e.sidemenu={SidemenuList:i,SidemenuItem:s,SidemenuSelector:r},e.internals.register(e.sidemenu.SidemenuSelector.LIST,e.sidemenu.SidemenuList),e.internals.register(e.sidemenu.SidemenuSelector.ITEM,e.sidemenu.SidemenuItem)}();
|
||
|
//# sourceMappingURL=sidemenu.nomodule.min.js.map
|