@trimble-oss/modus-bootstrap
Advanced tools
Comparing version 2.0.0-alpha40 to 2.0.0-alpha41
@@ -1,1 +0,1 @@ | ||
"use strict";(function(funcName,baseObj){"use strict";funcName=funcName||"docReady";baseObj=baseObj||window;var readyList=[];var readyFired=false;var readyEventHandlersInstalled=false;function ready(){if(!readyFired){readyFired=true;for(var i=0;i<readyList.length;i++){readyList[i].fn.call(window,readyList[i].ctx)}readyList=[]}}function readyStateChange(){if(document.readyState==="complete"){ready()}}baseObj[funcName]=function(callback,context){if(typeof callback!=="function"){throw new TypeError("callback for docReady(fn) must be a function")}if(readyFired){setTimeout((function(){callback(context)}),1);return}else{readyList.push({fn:callback,ctx:context})}if(document.readyState==="complete"||!document.attachEvent&&document.readyState==="interactive"){setTimeout(ready,1)}else if(!readyEventHandlersInstalled){if(document.addEventListener){document.addEventListener("DOMContentLoaded",ready,false);window.addEventListener("load",ready,false)}else{document.attachEvent("onreadystatechange",readyStateChange);window.attachEvent("onload",ready)}readyEventHandlersInstalled=true}}})("docReady",window);(function(){if(!window.docReady)return;window.docReady((function(){const menuButtons=document.querySelectorAll("[data-modus-item='menu-btn']");if(menuButtons){Array.from(menuButtons).forEach((el=>{el.addEventListener("click",(e=>{sidebarToggle(e.target)}))}))}function findAncestor(element,selector){while((element=element.parentElement)&&!(element.matches||element.matchesSelector).call(element,selector));return element}function sidebarToggle(element){var body=findAncestor(element,".modus-layout").querySelector("[data-modus-item='body']");body.classList.toggle("sidebar-closed");body.classList.toggle("sidebar-open")}}))}); | ||
"use strict";(function(funcName,baseObj){"use strict";funcName=funcName||"docReady";baseObj=baseObj||window;var readyList=[];var readyFired=false;var readyEventHandlersInstalled=false;function ready(){if(!readyFired){readyFired=true;for(var i=0;i<readyList.length;i++){readyList[i].fn.call(window,readyList[i].ctx)}readyList=[]}}function readyStateChange(){if(document.readyState==="complete"){ready()}}baseObj[funcName]=function(callback,context){if(typeof callback!=="function"){throw new TypeError("callback for docReady(fn) must be a function")}if(readyFired){setTimeout((function(){callback(context)}),1);return}else{readyList.push({fn:callback,ctx:context})}if(document.readyState==="complete"||!document.attachEvent&&document.readyState==="interactive"){setTimeout(ready,1)}else if(!readyEventHandlersInstalled){if(document.addEventListener){document.addEventListener("DOMContentLoaded",ready,false);window.addEventListener("load",ready,false)}else{document.attachEvent("onreadystatechange",readyStateChange);window.attachEvent("onload",ready)}readyEventHandlersInstalled=true}}})("docReady",window);(function(){if(!window.docReady)return;window.docReady((function(){console.log("Modus JS Loaded");const menuButtons=document.querySelectorAll("[data-modus-item='menu-btn']");if(menuButtons){Array.from(menuButtons).forEach((el=>{el.addEventListener("click",(e=>{sidebarToggle(e.target)}))}))}function findAncestor(element,selector){while((element=element.parentElement)&&!(element.matches||element.matchesSelector).call(element,selector));return element}function sidebarToggle(element){var body=findAncestor(element,".modus-layout").querySelector("[data-modus-item='body']");body.classList.toggle("sidebar-closed");body.classList.toggle("sidebar-open")}}))})(); |
{ | ||
"name": "@trimble-oss/modus-bootstrap", | ||
"description": "Modus Bootstrap 2 based on Bootstrap v5.x", | ||
"version": "2.0.0-alpha40", | ||
"version": "2.0.0-alpha41", | ||
"config": { | ||
@@ -66,3 +66,3 @@ "version_short": "2.0" | ||
"@stackblitz/sdk": "^1.11.0", | ||
"@trimble-oss/modus-docs-hugo-theme": "1.0.0-alpha23", | ||
"@trimble-oss/modus-docs-hugo-theme": "1.0.0-alpha24", | ||
"@trimble-oss/modus-icons": "^1.14.0", | ||
@@ -89,3 +89,3 @@ "autoprefixer": "^10.4.19", | ||
"nodemon": "^3.1.4", | ||
"npm-run-all2": "^6.2.0", | ||
"npm-run-all2": "^6.2.2", | ||
"postcss": "^8.4.39", | ||
@@ -92,0 +92,0 @@ "postcss-cli": "^11.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3742408
123
23585