@coreui/coreui-pro
Advanced tools
Comparing version 2.0.0 to 2.0.1
/*! | ||
* CoreUI v2.0.0 (https://coreui.io/pro/) | ||
* CoreUI v2.0.1 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
@@ -14,3 +14,3 @@ * Licensed under MIT (https://coreui.io/pro/) | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): get-style.js | ||
* CoreUI Utilities (v2.0.1): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -86,3 +86,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.1): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -123,3 +123,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.1): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -164,3 +164,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): rgb-to-hex.js | ||
* CoreUI (v2.0.1): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -167,0 +167,0 @@ * -------------------------------------------------------------------------- |
/*! | ||
* CoreUI v2.0.0 (https://coreui.io/pro/) | ||
* CoreUI v2.0.1 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://coreui.io/pro/) |
/*! | ||
* CoreUI Pro v2.0.0 (https://coreui.io/pro/) | ||
* CoreUI Pro v2.0.1 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
@@ -33,3 +33,3 @@ * Licensed under MIT (https://coreui.io/pro/) | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): ajax-load.js | ||
* CoreUI (v2.0.1): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -46,3 +46,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'ajaxLoad'; | ||
var VERSION = '2.0.0'; | ||
var VERSION = '2.0.1'; | ||
var DATA_KEY = 'coreui.ajaxLoad'; | ||
@@ -187,3 +187,3 @@ var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; | ||
} else { | ||
_this.setUpUrl(event.currentTarget.pathname); | ||
_this.setUpUrl(event.currentTarget.getAttribute('href')); | ||
} | ||
@@ -241,3 +241,3 @@ }); | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): toggle-classes.js | ||
* CoreUI (v2.0.1): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -267,3 +267,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): aside-menu.js | ||
* CoreUI (v2.0.1): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -280,3 +280,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'aside-menu'; | ||
var VERSION = '2.0.0'; | ||
var VERSION = '2.0.1'; | ||
var DATA_KEY = 'coreui.aside-menu'; | ||
@@ -378,3 +378,3 @@ var EVENT_KEY = "." + DATA_KEY; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): sidebar.js | ||
* CoreUI (v2.0.1): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -391,3 +391,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'sidebar'; | ||
var VERSION = '2.0.0'; | ||
var VERSION = '2.0.1'; | ||
var DATA_KEY = 'coreui.sidebar'; | ||
@@ -582,3 +582,3 @@ var EVENT_KEY = "." + DATA_KEY; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): get-style.js | ||
* CoreUI Utilities (v2.0.1): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -654,3 +654,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.1): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -691,3 +691,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.1): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -732,3 +732,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): rgb-to-hex.js | ||
* CoreUI (v2.0.1): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -758,3 +758,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): index.js | ||
* CoreUI (v2.0.1): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -761,0 +761,0 @@ * -------------------------------------------------------------------------- |
/*! | ||
* CoreUI Pro v2.0.0 (https://coreui.io/pro/) | ||
* CoreUI Pro v2.0.1 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
* Licensed under MIT (https://coreui.io/pro/) | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("perfect-scrollbar")):"function"==typeof define&&define.amd?define(["exports","jquery","perfect-scrollbar"],t):t(e.coreui={},e.jQuery,e.PerfectScrollbar)}(this,function(e,t,r){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}t=t&&t.hasOwnProperty("default")?t.default:t,r=r&&r.hasOwnProperty("default")?r.default:r;var i,n,s,c,u,d,l,f,p,g,h,m,v,b,y,w,I,_,C,j,S,T,L,E,O,A,x,P,D,k,Q,q,U,N,G,R,K,H,M,V,z,B,X,J,Y=(n="ajaxLoad",s="coreui.ajaxLoad",c=(i=t).fn[n],u="active",d="open",l="view-script",f="click",p=".sidebar-nav .nav-dropdown",g=".sidebar-nav .nav-link",h=".sidebar-nav .nav-item",m=".view-script",v={defaultPage:"main.html",errorPage:"404.html",subpagesDirectory:"views/"},b=function(){function n(e,t){this._config=this._getConfig(t),this._element=e;var n=location.hash.replace(/^#/,"");""!==n?this.setUpUrl(n):this.setUpUrl(this._config.defaultPage),this._addEventListeners()}var e=n.prototype;return e.loadPage=function(r){var o=this._element,e=this._config;i.ajax({type:"GET",url:e.subpagesDirectory+r,dataType:"html",beforeSend:function(){i(m).remove()},success:function(e){var t=document.createElement("div");t.innerHTML=e;var n=Array.from(t.querySelectorAll("script")).map(function(e){return e.attributes.getNamedItem("src").nodeValue});t.querySelectorAll("script").forEach(function(e){return e.parentNode.removeChild(e)}),i("body").animate({scrollTop:0},0),i(o).html(t),n.length&&function e(t,n){void 0===n&&(n=0);var r=document.createElement("script");r.type="text/javascript",r.src=t[n],r.className=l,r.onload=r.onreadystatechange=function(){this.readyState&&"complete"!==this.readyState||t.length>n+1&&e(t,n+1)},document.getElementsByTagName("body")[0].appendChild(r)}(n),window.location.hash=r},error:function(){window.location.href=e.errorPage}})},e.setUpUrl=function(e){i(g).removeClass(u),i(p).removeClass(d),i(p+':has(a[href="'+e.replace(/^\//,"").split("?")[0]+'"])').addClass(d),i(h+' a[href="'+e.replace(/^\//,"").split("?")[0]+'"]').addClass(u),this.loadPage(e)},e.loadBlank=function(e){window.open(e)},e.loadTop=function(e){window.location=e},e._getConfig=function(e){return e=Object.assign({},v,e)},e._addEventListeners=function(){var t=this;i(document).on(f,g+'[href!="#"]',function(e){e.preventDefault(),e.stopPropagation(),"_top"===e.currentTarget.target?t.loadTop(e.currentTarget.href):"_blank"===e.currentTarget.target?t.loadBlank(e.currentTarget.href):t.setUpUrl(e.currentTarget.pathname)})},n._jQueryInterface=function(t){return this.each(function(){var e=i(this).data(s);e||(e=new n(this,"object"==typeof t&&t),i(this).data(s,e))})},a(n,null,[{key:"VERSION",get:function(){return"2.0.0"}},{key:"Default",get:function(){return v}}]),n}(),i.fn[n]=b._jQueryInterface,i.fn[n].Constructor=b,i.fn[n].noConflict=function(){return i.fn[n]=c,b._jQueryInterface},b),$=function(e,t){var n=t.indexOf(e),r=t.slice(0,n+1);-1!==r.map(function(e){return document.body.classList.contains(e)}).indexOf(!0)?r.map(function(e){return document.body.classList.remove(e)}):document.body.classList.add(e)},F=(w="aside-menu",I="coreui.aside-menu",_=(y=t).fn[w],C={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},j=".aside-menu",S=".aside-menu-toggler",T=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],L=function(){function n(e){this._element=e,this._addEventListeners()}return n.prototype._addEventListeners=function(){y(S).on(C.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;$(t,T)})},n._jQueryInterface=function(){return this.each(function(){var e=y(this),t=e.data(I);t||(t=new n(this),e.data(I,t))})},a(n,null,[{key:"VERSION",get:function(){return"2.0.0"}}]),n}(),y(window).on(C.LOAD_DATA_API,function(){var e=y(j);L._jQueryInterface.call(e)}),y.fn[w]=L._jQueryInterface,y.fn[w].Constructor=L,y.fn[w].noConflict=function(){return y.fn[w]=_,L._jQueryInterface},L),W=(O="sidebar",A="coreui.sidebar",x=(E=t).fn[O],P="active",D="brand-minimized",k="open",Q="sidebar-minimized",q={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle"},U="body",N=".brand-minimizer",G=".nav-dropdown-toggle",R=".nav-dropdown-items",K=".nav-link",H=".sidebar-nav",M=".sidebar-nav > .nav",V=".sidebar",z=".sidebar-minimizer",B=".sidebar-toggler",X=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],J=function(){function n(e){this._element=e,this.perfectScrollbar(q.INIT),this.setActiveLink(),this._addEventListeners()}var e=n.prototype;return e.perfectScrollbar=function(e){"undefined"!=typeof r&&(e!==q.INIT||document.body.classList.contains(Q)||new r(document.querySelector(H),{suppressScrollX:!0}),e===q.DESTROY&&new r(document.querySelector(H),{suppressScrollX:!0}).destroy(),e===q.TOGGLE&&(document.body.classList.contains(Q)?new r(document.querySelector(H),{suppressScrollX:!0}).destroy():new r(document.querySelector(H),{suppressScrollX:!0})))},e.setActiveLink=function(){E(M).find(K).each(function(e,t){var n=t,r=String(window.location).split("?")[0];"#"===r.substr(r.length-1)&&(r=r.slice(0,-1)),E(E(n))[0].href===r&&E(n).addClass(P).parents(R).add(n).each(function(e,t){E(n=t).parent().addClass(k)})})},e._addEventListeners=function(){var t=this;E(N).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),E(U).toggleClass(D)}),E(G).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.target;E(t).parent().toggleClass(k)}),E(z).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),E(U).toggleClass(Q),t.perfectScrollbar(q.TOGGLE)}),E(B).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;$(t,X)})},n._jQueryInterface=function(){return this.each(function(){var e=E(this),t=e.data(A);t||(t=new n(this),e.data(A,t))})},a(n,null,[{key:"VERSION",get:function(){return"2.0.0"}}]),n}(),E(window).on(q.LOAD_DATA_API,function(){var e=E(V);J._jQueryInterface.call(e)}),E.fn[O]=J._jQueryInterface,E.fn[O].Constructor=J,E.fn[O].noConflict=function(){return E.fn[O]=x,J._jQueryInterface},J);Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});!function(e){if("undefined"==typeof e)throw new TypeError("CoreUI's JavaScript requires jQuery. jQuery must be included before CoreUI's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("CoreUI's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),window.getStyle=function(e,t){var n,r,o;void 0===t&&(t=document.body),n=e.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?(r={},0===(o=Object.entries(document.styleSheets).filter(function(e){return":root"===e[1].cssText.substring(0,":root".length)})).length&&(o=Object.entries(document.styleSheets)),Object.entries(o[0][1].cssRules).filter(function(e){return".ie-custom-properties"===e[1].selectorText})[0][1].style.cssText.split(";").forEach(function(e){if(e){var t=e.split(": ")[0],n=e.split(": ")[1];r["--"+t.trim()]=n.trim()}}),r)[e]:window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return n},window.hexToRgb=function(e){if("undefined"==typeof e)throw new Error("Hex color is not defined");var t,n,r;if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");return 7===e.length?(t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),r=parseInt(e.substring(3,5),16)),"rgba("+t+", "+n+", "+r+")"},window.hexToRgba=function(e,t){if(void 0===t&&(t=100),"undefined"==typeof e)throw new Error("Hex color is not defined");var n,r,o;if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");return 7===e.length?(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16)):(n=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),o=parseInt(e.substring(3,5),16)),"rgba("+n+", "+r+", "+o+", "+t/100+")"},window.rgbToHex=function(e){if("undefined"==typeof e)throw new Error("Hex color is not defined");var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!t)throw new Error(e+" is not a valid rgb color");var n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),o="0"+parseInt(t[3],10).toString(16);return"#"+n.slice(-2)+r.slice(-2)+o.slice(-2)},e.AjaxLoad=Y,e.AsideMenu=F,e.Sidebar=W,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("perfect-scrollbar")):"function"==typeof define&&define.amd?define(["exports","jquery","perfect-scrollbar"],t):t(e.coreui={},e.jQuery,e.PerfectScrollbar)}(this,function(e,t,r){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}t=t&&t.hasOwnProperty("default")?t.default:t,r=r&&r.hasOwnProperty("default")?r.default:r;var a,n,s,c,u,d,l,f,p,g,h,m,v,b,y,w,I,_,C,j,S,T,L,E,O,A,x,P,D,k,Q,q,U,N,G,R,K,H,M,V,z,B,X,J,Y=(n="ajaxLoad",s="coreui.ajaxLoad",c=(a=t).fn[n],u="active",d="open",l="view-script",f="click",p=".sidebar-nav .nav-dropdown",g=".sidebar-nav .nav-link",h=".sidebar-nav .nav-item",m=".view-script",v={defaultPage:"main.html",errorPage:"404.html",subpagesDirectory:"views/"},b=function(){function n(e,t){this._config=this._getConfig(t),this._element=e;var n=location.hash.replace(/^#/,"");""!==n?this.setUpUrl(n):this.setUpUrl(this._config.defaultPage),this._addEventListeners()}var e=n.prototype;return e.loadPage=function(r){var o=this._element,e=this._config;a.ajax({type:"GET",url:e.subpagesDirectory+r,dataType:"html",beforeSend:function(){a(m).remove()},success:function(e){var t=document.createElement("div");t.innerHTML=e;var n=Array.from(t.querySelectorAll("script")).map(function(e){return e.attributes.getNamedItem("src").nodeValue});t.querySelectorAll("script").forEach(function(e){return e.parentNode.removeChild(e)}),a("body").animate({scrollTop:0},0),a(o).html(t),n.length&&function e(t,n){void 0===n&&(n=0);var r=document.createElement("script");r.type="text/javascript",r.src=t[n],r.className=l,r.onload=r.onreadystatechange=function(){this.readyState&&"complete"!==this.readyState||t.length>n+1&&e(t,n+1)},document.getElementsByTagName("body")[0].appendChild(r)}(n),window.location.hash=r},error:function(){window.location.href=e.errorPage}})},e.setUpUrl=function(e){a(g).removeClass(u),a(p).removeClass(d),a(p+':has(a[href="'+e.replace(/^\//,"").split("?")[0]+'"])').addClass(d),a(h+' a[href="'+e.replace(/^\//,"").split("?")[0]+'"]').addClass(u),this.loadPage(e)},e.loadBlank=function(e){window.open(e)},e.loadTop=function(e){window.location=e},e._getConfig=function(e){return e=Object.assign({},v,e)},e._addEventListeners=function(){var t=this;a(document).on(f,g+'[href!="#"]',function(e){e.preventDefault(),e.stopPropagation(),"_top"===e.currentTarget.target?t.loadTop(e.currentTarget.href):"_blank"===e.currentTarget.target?t.loadBlank(e.currentTarget.href):t.setUpUrl(e.currentTarget.getAttribute("href"))})},n._jQueryInterface=function(t){return this.each(function(){var e=a(this).data(s);e||(e=new n(this,"object"==typeof t&&t),a(this).data(s,e))})},i(n,null,[{key:"VERSION",get:function(){return"2.0.1"}},{key:"Default",get:function(){return v}}]),n}(),a.fn[n]=b._jQueryInterface,a.fn[n].Constructor=b,a.fn[n].noConflict=function(){return a.fn[n]=c,b._jQueryInterface},b),$=function(e,t){var n=t.indexOf(e),r=t.slice(0,n+1);-1!==r.map(function(e){return document.body.classList.contains(e)}).indexOf(!0)?r.map(function(e){return document.body.classList.remove(e)}):document.body.classList.add(e)},F=(w="aside-menu",I="coreui.aside-menu",_=(y=t).fn[w],C={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},j=".aside-menu",S=".aside-menu-toggler",T=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],L=function(){function n(e){this._element=e,this._addEventListeners()}return n.prototype._addEventListeners=function(){y(S).on(C.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;$(t,T)})},n._jQueryInterface=function(){return this.each(function(){var e=y(this),t=e.data(I);t||(t=new n(this),e.data(I,t))})},i(n,null,[{key:"VERSION",get:function(){return"2.0.1"}}]),n}(),y(window).on(C.LOAD_DATA_API,function(){var e=y(j);L._jQueryInterface.call(e)}),y.fn[w]=L._jQueryInterface,y.fn[w].Constructor=L,y.fn[w].noConflict=function(){return y.fn[w]=_,L._jQueryInterface},L),W=(O="sidebar",A="coreui.sidebar",x=(E=t).fn[O],P="active",D="brand-minimized",k="open",Q="sidebar-minimized",q={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle"},U="body",N=".brand-minimizer",G=".nav-dropdown-toggle",R=".nav-dropdown-items",K=".nav-link",H=".sidebar-nav",M=".sidebar-nav > .nav",V=".sidebar",z=".sidebar-minimizer",B=".sidebar-toggler",X=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],J=function(){function n(e){this._element=e,this.perfectScrollbar(q.INIT),this.setActiveLink(),this._addEventListeners()}var e=n.prototype;return e.perfectScrollbar=function(e){"undefined"!=typeof r&&(e!==q.INIT||document.body.classList.contains(Q)||new r(document.querySelector(H),{suppressScrollX:!0}),e===q.DESTROY&&new r(document.querySelector(H),{suppressScrollX:!0}).destroy(),e===q.TOGGLE&&(document.body.classList.contains(Q)?new r(document.querySelector(H),{suppressScrollX:!0}).destroy():new r(document.querySelector(H),{suppressScrollX:!0})))},e.setActiveLink=function(){E(M).find(K).each(function(e,t){var n=t,r=String(window.location).split("?")[0];"#"===r.substr(r.length-1)&&(r=r.slice(0,-1)),E(E(n))[0].href===r&&E(n).addClass(P).parents(R).add(n).each(function(e,t){E(n=t).parent().addClass(k)})})},e._addEventListeners=function(){var t=this;E(N).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),E(U).toggleClass(D)}),E(G).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.target;E(t).parent().toggleClass(k)}),E(z).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),E(U).toggleClass(Q),t.perfectScrollbar(q.TOGGLE)}),E(B).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;$(t,X)})},n._jQueryInterface=function(){return this.each(function(){var e=E(this),t=e.data(A);t||(t=new n(this),e.data(A,t))})},i(n,null,[{key:"VERSION",get:function(){return"2.0.1"}}]),n}(),E(window).on(q.LOAD_DATA_API,function(){var e=E(V);J._jQueryInterface.call(e)}),E.fn[O]=J._jQueryInterface,E.fn[O].Constructor=J,E.fn[O].noConflict=function(){return E.fn[O]=x,J._jQueryInterface},J);Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});!function(e){if("undefined"==typeof e)throw new TypeError("CoreUI's JavaScript requires jQuery. jQuery must be included before CoreUI's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("CoreUI's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),window.getStyle=function(e,t){var n,r,o;void 0===t&&(t=document.body),n=e.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?(r={},0===(o=Object.entries(document.styleSheets).filter(function(e){return":root"===e[1].cssText.substring(0,":root".length)})).length&&(o=Object.entries(document.styleSheets)),Object.entries(o[0][1].cssRules).filter(function(e){return".ie-custom-properties"===e[1].selectorText})[0][1].style.cssText.split(";").forEach(function(e){if(e){var t=e.split(": ")[0],n=e.split(": ")[1];r["--"+t.trim()]=n.trim()}}),r)[e]:window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return n},window.hexToRgb=function(e){if("undefined"==typeof e)throw new Error("Hex color is not defined");var t,n,r;if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");return 7===e.length?(t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),r=parseInt(e.substring(3,5),16)),"rgba("+t+", "+n+", "+r+")"},window.hexToRgba=function(e,t){if(void 0===t&&(t=100),"undefined"==typeof e)throw new Error("Hex color is not defined");var n,r,o;if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");return 7===e.length?(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16)):(n=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),o=parseInt(e.substring(3,5),16)),"rgba("+n+", "+r+", "+o+", "+t/100+")"},window.rgbToHex=function(e){if("undefined"==typeof e)throw new Error("Hex color is not defined");var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!t)throw new Error(e+" is not a valid rgb color");var n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),o="0"+parseInt(t[3],10).toString(16);return"#"+n.slice(-2)+r.slice(-2)+o.slice(-2)},e.AjaxLoad=Y,e.AsideMenu=F,e.Sidebar=W,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=coreui.min.js.map |
@@ -7,3 +7,3 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): ajax-load.js | ||
* CoreUI (v2.0.1): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -19,3 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'ajaxLoad'; | ||
var VERSION = '2.0.0'; | ||
var VERSION = '2.0.1'; | ||
var DATA_KEY = 'coreui.ajaxLoad'; | ||
@@ -160,3 +160,3 @@ var JQUERY_NO_CONFLICT = $.fn[NAME]; | ||
} else { | ||
_this.setUpUrl(event.currentTarget.pathname); | ||
_this.setUpUrl(event.currentTarget.getAttribute('href')); | ||
} | ||
@@ -163,0 +163,0 @@ }); |
@@ -7,3 +7,3 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): aside-menu.js | ||
* CoreUI (v2.0.1): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -19,3 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'aside-menu'; | ||
var VERSION = '2.0.0'; | ||
var VERSION = '2.0.1'; | ||
var DATA_KEY = 'coreui.aside-menu'; | ||
@@ -22,0 +22,0 @@ var EVENT_KEY = "." + DATA_KEY; |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): index.js | ||
* CoreUI (v2.0.1): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
@@ -7,3 +7,3 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): sidebar.js | ||
* CoreUI (v2.0.1): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -19,3 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'sidebar'; | ||
var VERSION = '2.0.0'; | ||
var VERSION = '2.0.1'; | ||
var DATA_KEY = 'coreui.sidebar'; | ||
@@ -22,0 +22,0 @@ var EVENT_KEY = "." + DATA_KEY; |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): toggle-classes.js | ||
* CoreUI (v2.0.1): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): get-style.js | ||
* CoreUI Utilities (v2.0.1): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.1): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.1): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): rgb-to-hex.js | ||
* CoreUI (v2.0.1): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
@@ -5,3 +5,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): ajax-load.js | ||
* CoreUI (v2.0.1): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -20,3 +20,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'ajaxLoad' | ||
const VERSION = '2.0.0' | ||
const VERSION = '2.0.1' | ||
const DATA_KEY = 'coreui.ajaxLoad' | ||
@@ -167,3 +167,3 @@ const JQUERY_NO_CONFLICT = $.fn[NAME] | ||
} else { | ||
this.setUpUrl(event.currentTarget.pathname) | ||
this.setUpUrl(event.currentTarget.getAttribute('href')) | ||
} | ||
@@ -170,0 +170,0 @@ }) |
@@ -6,3 +6,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): aside-menu.js | ||
* CoreUI (v2.0.1): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -20,3 +20,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'aside-menu' | ||
const VERSION = '2.0.0' | ||
const VERSION = '2.0.1' | ||
const DATA_KEY = 'coreui.aside-menu' | ||
@@ -23,0 +23,0 @@ const EVENT_KEY = `.${DATA_KEY}` |
@@ -8,3 +8,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): index.js | ||
* CoreUI (v2.0.1): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -11,0 +11,0 @@ * -------------------------------------------------------------------------- |
@@ -7,3 +7,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): sidebar.js | ||
* CoreUI (v2.0.1): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -21,3 +21,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'sidebar' | ||
const VERSION = '2.0.0' | ||
const VERSION = '2.0.1' | ||
const DATA_KEY = 'coreui.sidebar' | ||
@@ -24,0 +24,0 @@ const EVENT_KEY = `.${DATA_KEY}` |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): toggle-classes.js | ||
* CoreUI (v2.0.1): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): get-style.js | ||
* CoreUI Utilities (v2.0.1): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.1): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.1): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0): rgb-to-hex.js | ||
* CoreUI (v2.0.1): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
{ | ||
"name": "@coreui/coreui-pro", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "UI Kit built on top of Bootstrap 4", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -55,3 +55,3 @@ # CoreUI - Free WebApp UI Kit built on top of Bootstrap 4 [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/intent/tweet?text=CoreUI%20-%20Free%20Bootstrap%204%20Admin%20Template%20&url=https://coreui.io&hashtags=bootstrap,admin,template,dashboard,panel,free,angular,react,vue) | ||
``` bash | ||
$ yarn add @coreui/coreui@2.0.0 | ||
$ yarn add @coreui/coreui@2.0.1 | ||
``` | ||
@@ -62,3 +62,3 @@ | ||
``` bash | ||
$ composer require coreui/coreui:2.0.0 | ||
$ composer require coreui/coreui:2.0.1 | ||
``` | ||
@@ -65,0 +65,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4412288