1 line
No EOL
4 KiB
Text
1 line
No EOL
4 KiB
Text
{"version":3,"file":"sidemenu.module.min.js","sources":["../../../.config/config.js","../../../src/core/api.js","../../../src/component/sidemenu/script/sidemenu/sidemenu-selector.js","../../../src/component/sidemenu/script/sidemenu/sidemenu-list.js","../../../src/component/sidemenu/script/sidemenu/sidemenu-item.js","../../../src/component/sidemenu/index.js","../../../src/component/sidemenu/main.js"],"sourcesContent":["const config = {\r\n prefix: 'fr',\r\n namespace: 'dsfr',\r\n organisation: '@gouvfr',\r\n version: '1.11.2'\r\n};\r\n\r\nexport default config;\r\n","import config from './config.js';\nconst api = window[config.namespace];\nexport default api;\n","import api from '../../api.js';\n\nconst ITEM = api.internals.ns.selector('sidemenu__item');\nconst COLLAPSE = api.internals.ns.selector('collapse');\n\nexport const SidemenuSelector = {\n LIST: api.internals.ns.selector('sidemenu__list'),\n COLLAPSE: `${ITEM} > ${COLLAPSE}, ${ITEM} > *:not(${ITEM}):not(${COLLAPSE}) > ${COLLAPSE}, ${ITEM} > *:not(${ITEM}):not(${COLLAPSE}) > *:not(${ITEM}):not(${COLLAPSE}) > ${COLLAPSE}`,\n COLLAPSE_LEGACY: `${ITEM} ${COLLAPSE}`,\n ITEM: api.internals.ns.selector('sidemenu__item'),\n BUTTON: api.internals.ns.selector('sidemenu__btn')\n};\n","import api from '../../api.js';\nimport { SidemenuSelector } from './sidemenu-selector.js';\n\nclass SidemenuList extends api.core.CollapsesGroup {\n static get instanceClassName () {\n return 'SidemenuList';\n }\n\n validate (member) {\n return super.validate(member) && member.node.matches(api.internals.legacy.isLegacy ? SidemenuSelector.COLLAPSE_LEGACY : SidemenuSelector.COLLAPSE);\n }\n}\n\nexport { SidemenuList };\n","import api from '../../api.js';\nimport { SidemenuSelector } from './sidemenu-selector.js';\n\nclass SidemenuItem extends api.core.Instance {\n static get instanceClassName () {\n return 'SidemenuItem';\n }\n\n get collapsePrimary () {\n const buttons = this.element.children.map(child => child.getInstance('CollapseButton')).filter(button => button !== null && button.hasClass(SidemenuSelector.BUTTON));\n return buttons[0];\n }\n}\n\nexport { SidemenuItem };\n","import api from './api.js';\nimport { SidemenuList } from './script/sidemenu/sidemenu-list.js';\nimport { SidemenuSelector } from './script/sidemenu/sidemenu-selector.js';\nimport { SidemenuItem } from './script/sidemenu/sidemenu-item';\n\napi.sidemenu = {\n SidemenuList: SidemenuList,\n SidemenuItem: SidemenuItem,\n SidemenuSelector: SidemenuSelector\n};\n\nexport default api;\n","import api from './index.js';\n\napi.internals.register(api.sidemenu.SidemenuSelector.LIST, api.sidemenu.SidemenuList);\napi.internals.register(api.sidemenu.SidemenuSelector.ITEM, api.sidemenu.SidemenuItem);\n\nexport default api;\n"],"names":["api","window","ITEM","internals","ns","selector","COLLAPSE","SidemenuSelector","LIST","COLLAPSE_LEGACY","BUTTON","SidemenuList","core","CollapsesGroup","instanceClassName","validate","member","super","node","matches","legacy","isLegacy","SidemenuItem","Instance","collapsePrimary","this","element","children","map","child","getInstance","filter","button","hasClass","sidemenu","register"],"mappings":";AAAA,MCCMA,EAAMC,OAAuB,KCC7BC,EAAOF,EAAIG,UAAUC,GAAGC,SAAS,kBACjCC,EAAWN,EAAIG,UAAUC,GAAGC,SAAS,YAE9BE,EAAmB,CAC9BC,KAAMR,EAAIG,UAAUC,GAAGC,SAAS,kBAChCC,SAAU,GAAGJ,OAAUI,MAAaJ,aAAgBA,UAAaI,QAAeA,MAAaJ,aAAgBA,UAAaI,cAAqBJ,UAAaI,QAAeA,IAC3KG,gBAAiB,GAAGP,KAAQI,IAC5BJ,KAAMF,EAAIG,UAAUC,GAAGC,SAAS,kBAChCK,OAAQV,EAAIG,UAAUC,GAAGC,SAAS,kBCPpC,MAAMM,UAAqBX,EAAIY,KAAKC,eACvBC,+BACT,MAAO,eAGTC,SAAUC,GACR,OAAOC,MAAMF,SAASC,IAAWA,EAAOE,KAAKC,QAAQnB,EAAIG,UAAUiB,OAAOC,SAAWd,EAAiBE,gBAAkBF,EAAiBD,WCN7I,MAAMgB,UAAqBtB,EAAIY,KAAKW,SACvBT,+BACT,MAAO,eAGLU,sBAEF,OADgBC,KAAKC,QAAQC,SAASC,KAAIC,GAASA,EAAMC,YAAY,oBAAmBC,QAAOC,GAAqB,OAAXA,GAAmBA,EAAOC,SAAS1B,EAAiBG,UAC9I,ICLnBV,EAAIkC,SAAW,CACbvB,aAAcA,EACdW,aAAcA,EACdf,iBAAkBA,GCNpBP,EAAIG,UAAUgC,SAASnC,EAAIkC,SAAS3B,iBAAiBC,KAAMR,EAAIkC,SAASvB,cACxEX,EAAIG,UAAUgC,SAASnC,EAAIkC,SAAS3B,iBAAiBL,KAAMF,EAAIkC,SAASZ"} |