@coreui/coreui-pro
Advanced tools
Comparing version 2.0.0-beta.5 to 2.0.0-beta.6
/*! | ||
<<<<<<< HEAD | ||
* CoreUI Pro v2.0.0-beta.5 (https://coreui.io/pro/) | ||
======= | ||
* CoreUI v2.0.0-beta.5 (https://coreui.io) | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI Pro v2.0.0-beta.6 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
@@ -37,7 +33,3 @@ * Licensed under MIT (https://coreui.io/pro/) | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): ajax-load.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): ajax-load.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -54,7 +46,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'ajaxLoad'; | ||
<<<<<<< HEAD | ||
var VERSION = '2.0.0-beta.5'; | ||
======= | ||
var VERSION = '2.0.0-beta.5'; | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
var VERSION = '2.0.0-beta.6'; | ||
var DATA_KEY = 'coreui.ajaxLoad'; | ||
@@ -88,3 +76,4 @@ var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; | ||
this._element = element; | ||
var url = location.hash.replace(/^#/, ''); | ||
var url = location.hash.replace(/^#/, ''); // eslint-disable-next-line no-unused-expressions | ||
url !== '' ? this.setUpUrl(url) : this.setUpUrl(this._config.defaultPage); | ||
@@ -110,2 +99,3 @@ | ||
if (typeof Pace !== 'undefined') { | ||
// eslint-disable-next-line no-undef | ||
Pace.restart(); | ||
@@ -154,2 +144,3 @@ } | ||
// eslint-disable-next-line prefer-template | ||
$$$1(document).on(Event.CLICK, Selector.NAV_LINK + '[href!="#"]', function (event) { | ||
@@ -217,7 +208,3 @@ event.preventDefault(); | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): toggle-classes.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): toggle-classes.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -248,7 +235,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): aside-menu.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): aside-menu.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -265,7 +248,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'aside-menu'; | ||
<<<<<<< HEAD | ||
var VERSION = '2.0.0-beta.5'; | ||
======= | ||
var VERSION = '2.0.0-beta.5'; | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
var VERSION = '2.0.0-beta.6'; | ||
var DATA_KEY = 'coreui.aside-menu'; | ||
@@ -367,7 +346,3 @@ var EVENT_KEY = "." + DATA_KEY; | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): sidebar.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): sidebar.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -384,7 +359,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'sidebar'; | ||
<<<<<<< HEAD | ||
var VERSION = '2.0.0-beta.5'; | ||
======= | ||
var VERSION = '2.0.0-beta.5'; | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
var VERSION = '2.0.0-beta.6'; | ||
var DATA_KEY = 'coreui.sidebar'; | ||
@@ -579,3 +550,3 @@ var EVENT_KEY = "." + DATA_KEY; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-beta.5): get-style.js | ||
* CoreUI Utilities (v2.0.0-beta.6): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -589,4 +560,3 @@ * -------------------------------------------------------------------------- | ||
var style = window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, ''); | ||
return style; | ||
return window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, ''); | ||
}; | ||
@@ -596,7 +566,3 @@ | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js | ||
======= | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI Utilities (v2.0.0-beta.6): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -618,7 +584,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js | ||
======= | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI Utilities (v2.0.0-beta.6): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -644,7 +606,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -660,3 +618,3 @@ * -------------------------------------------------------------------------- | ||
var b = "0" + parseInt(rgb[3], 10).toString(16); | ||
return rgb && rgb.length === 4 ? "#" + r.slice(-2) + g.slice(-2) + b.slice(-2) : ''; | ||
return rgb ? "#" + r.slice(-2) + g.slice(-2) + b.slice(-2) : ''; | ||
}; | ||
@@ -666,7 +624,3 @@ | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): index.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): index.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -673,0 +627,0 @@ * -------------------------------------------------------------------------- |
/*! | ||
<<<<<<< HEAD | ||
* CoreUI Pro v2.0.0-beta.5 (https://coreui.io/pro/) | ||
======= | ||
* CoreUI v2.0.0-beta.5 (https://coreui.io) | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI Pro v2.0.0-beta.6 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
* Licensed under MIT (https://coreui.io/pro/) | ||
*/ | ||
<<<<<<< HEAD | ||
!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 a(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 o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}t=t&&t.hasOwnProperty("default")?t.default:t,r=r&&r.hasOwnProperty("default")?r.default:r;var i,n,s,u,c,d,l,f,p,g,h,b,v,y,m,w,I,_,C,L,T,j,S,P,A,D,O,E,k,Q,x,q,U,G,R,K,N,z,V,X,H,J,B=(n="ajaxLoad",s="coreui.ajaxLoad",u=(i=t).fn[n],c="active",d="open",l="click",f=".sidebar-nav .nav-dropdown",p=".sidebar-nav .nav-link",g=".sidebar-nav .nav-item",h={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(e){var t=this._element,n=this._config;i.ajax({type:"GET",url:n.subpagesDirectory+e,dataType:"html",cache:!1,async:!1,success:function(){"undefined"!=typeof Pace&&Pace.restart(),i("body").animate({scrollTop:0},0),i(t).load(n.subpagesDirectory+e,null,function(){window.location.hash=e})},error:function(){window.location.href=n.errorPage}})},e.setUpUrl=function(e){i(p).removeClass(c),i(f).removeClass(d),i(f+':has(a[href="'+e.replace(/^\//,"").split("?")[0]+'"])').addClass(d),i(g+' a[href="'+e.replace(/^\//,"").split("?")[0]+'"]').addClass(c),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({},h,e)},e._addEventListeners=function(){var t=this;i(document).on(l,p+'[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))})},o(n,null,[{key:"VERSION",get:function(){return"2.0.0-beta.5"}},{key:"Default",get:function(){return h}}]),n}(),i.fn[n]=b._jQueryInterface,i.fn[n].Constructor=b,i.fn[n].noConflict=function(){return i.fn[n]=u,b._jQueryInterface},b),M=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)},Y=(y="aside-menu",m="coreui.aside-menu",w=(v=t).fn[y],I={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},_=".aside-menu",C=".aside-menu-toggler",L=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],T=function(){function n(e){this._element=e,this._addEventListeners()}return n.prototype._addEventListeners=function(){v(C).on(I.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;M(t,L)})},n._jQueryInterface=function(){return this.each(function(){var e=v(this),t=e.data(m);t||(t=new n(this),e.data(m,t))})},o(n,null,[{key:"VERSION",get:function(){return"2.0.0-beta.5"}}]),n}(),v(window).on(I.LOAD_DATA_API,function(){var e=v(_);T._jQueryInterface.call(e)}),v.fn[y]=T._jQueryInterface,v.fn[y].Constructor=T,v.fn[y].noConflict=function(){return v.fn[y]=w,T._jQueryInterface},T),F=(S="sidebar",P="coreui.sidebar",A=(j=t).fn[S],D="active",O="brand-minimized",E="open",k="sidebar-minimized",Q={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle"},x="body",q=".brand-minimizer",U=".nav-dropdown-toggle",G=".nav-dropdown-items",R=".nav-link",K=".sidebar-nav",N=".sidebar-nav > .nav",z=".sidebar",V=".sidebar-minimizer",X=".sidebar-toggler",H=["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(k)||new r(document.querySelector(K),{suppressScrollX:!0}),e===Q.DESTROY&&new r(document.querySelector(K),{suppressScrollX:!0}).destroy(),e===Q.TOGGLE&&(document.body.classList.contains(k)?new r(document.querySelector(K),{suppressScrollX:!0}).destroy():new r(document.querySelector(K),{suppressScrollX:!0})))},e.setActiveLink=function(){j(N).find(R).each(function(e,t){var n=t,r=String(window.location).split("?")[0];"#"===r.substr(r.length-1)&&(r=r.slice(0,-1)),j(j(n))[0].href===r&&j(n).addClass(D).parents(G).add(n).each(function(e,t){j(n=t).parent().addClass(E)})})},e._addEventListeners=function(){var t=this;j(q).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(x).toggleClass(O)}),j(U).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.target;j(t).parent().toggleClass(E)}),j(V).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(x).toggleClass(k),t.perfectScrollbar(Q.TOGGLE)}),j(X).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;M(t,H)})},n._jQueryInterface=function(){return this.each(function(){var e=j(this),t=e.data(P);t||(t=new n(this),e.data(P,t))})},o(n,null,[{key:"VERSION",get:function(){return"2.0.0-beta.5"}}]),n}(),j(window).on(Q.LOAD_DATA_API,function(){var e=j(z);J._jQueryInterface.call(e)}),j.fn[S]=J._jQueryInterface,j.fn[S].Constructor=J,j.fn[S].noConflict=function(){return j.fn[S]=A,J._jQueryInterface},J);!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){return void 0===t&&(t=document.body),window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"")},window.HexToRgb=function(e){var t=e.replace("#","");return"rgba("+parseInt(t.substring(0,2),16)+", "+parseInt(t.substring(2,4),16)+", "+parseInt(t.substring(4,6),16)},window.HexToRgba=function(e,t){void 0===t&&(t=100);var n=e.replace("#","");return"rgba("+parseInt(n.substring(0,2),16)+", "+parseInt(n.substring(2,4),16)+", "+parseInt(n.substring(4,6),16)+", "+t/100},window.RgbToHex=function(e){var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),a="0"+parseInt(t[3],10).toString(16);return t&&4===t.length?"#"+n.slice(-2)+r.slice(-2)+a.slice(-2):""},e.AjaxLoad=B,e.AsideMenu=Y,e.Sidebar=F,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 a(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 o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}t=t&&t.hasOwnProperty("default")?t.default:t,r=r&&r.hasOwnProperty("default")?r.default:r;var i,n,s,u,c,d,l,f,p,g,h,b,v,y,m,w,I,_,C,L,T,j,S,P,A,D,O,E,k,Q,x,q,U,G,K,R,N,z,V,X,J,B,M=(n="ajaxLoad",s="coreui.ajaxLoad",u=(i=t).fn[n],c="active",d="open",l="click",f=".sidebar-nav .nav-dropdown",p=".sidebar-nav .nav-link",g=".sidebar-nav .nav-item",h={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(e){var t=this._element,n=this._config;i.ajax({type:"GET",url:n.subpagesDirectory+e,dataType:"html",cache:!1,async:!1,success:function(){"undefined"!=typeof Pace&&Pace.restart(),i("body").animate({scrollTop:0},0),i(t).load(n.subpagesDirectory+e,null,function(){window.location.hash=e})},error:function(){window.location.href=n.errorPage}})},e.setUpUrl=function(e){i(p).removeClass(c),i(f).removeClass(d),i(f+':has(a[href="'+e.replace(/^\//,"").split("?")[0]+'"])').addClass(d),i(g+' a[href="'+e.replace(/^\//,"").split("?")[0]+'"]').addClass(c),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({},h,e)},e._addEventListeners=function(){var t=this;i(document).on(l,p+'[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))})},o(n,null,[{key:"VERSION",get:function(){return"2.0.0-beta.5"}},{key:"Default",get:function(){return h}}]),n}(),i.fn[n]=b._jQueryInterface,i.fn[n].Constructor=b,i.fn[n].noConflict=function(){return i.fn[n]=u,b._jQueryInterface},b),Y=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)},H=(y="aside-menu",m="coreui.aside-menu",w=(v=t).fn[y],I={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},_=".aside-menu",C=".aside-menu-toggler",L=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],T=function(){function n(e){this._element=e,this._addEventListeners()}return n.prototype._addEventListeners=function(){v(C).on(I.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;Y(t,L)})},n._jQueryInterface=function(){return this.each(function(){var e=v(this),t=e.data(m);t||(t=new n(this),e.data(m,t))})},o(n,null,[{key:"VERSION",get:function(){return"2.0.0-beta.5"}}]),n}(),v(window).on(I.LOAD_DATA_API,function(){var e=v(_);T._jQueryInterface.call(e)}),v.fn[y]=T._jQueryInterface,v.fn[y].Constructor=T,v.fn[y].noConflict=function(){return v.fn[y]=w,T._jQueryInterface},T),F=(S="sidebar",P="coreui.sidebar",A=(j=t).fn[S],D="active",O="brand-minimized",E="open",k="sidebar-minimized",Q={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle"},x="body",q=".brand-minimizer",U=".nav-dropdown-toggle",G=".nav-dropdown-items",K=".nav-link",R=".sidebar-nav",N=".sidebar-nav > .nav",z=".sidebar",V=".sidebar-minimizer",X=".sidebar-toggler",J=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],B=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(k)||new r(document.querySelector(R),{suppressScrollX:!0}),e===Q.DESTROY&&new r(document.querySelector(R),{suppressScrollX:!0}).destroy(),e===Q.TOGGLE&&(document.body.classList.contains(k)?new r(document.querySelector(R),{suppressScrollX:!0}).destroy():new r(document.querySelector(R),{suppressScrollX:!0})))},e.setActiveLink=function(){j(N).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)),j(j(n))[0].href===r&&j(n).addClass(D).parents(G).add(n).each(function(e,t){j(n=t).parent().addClass(E)})})},e._addEventListeners=function(){var t=this;j(q).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(x).toggleClass(O)}),j(U).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.target;j(t).parent().toggleClass(E)}),j(V).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(x).toggleClass(k),t.perfectScrollbar(Q.TOGGLE)}),j(X).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;Y(t,J)})},n._jQueryInterface=function(){return this.each(function(){var e=j(this),t=e.data(P);t||(t=new n(this),e.data(P,t))})},o(n,null,[{key:"VERSION",get:function(){return"2.0.0-beta.5"}}]),n}(),j(window).on(Q.LOAD_DATA_API,function(){var e=j(z);B._jQueryInterface.call(e)}),j.fn[S]=B._jQueryInterface,j.fn[S].Constructor=B,j.fn[S].noConflict=function(){return j.fn[S]=A,B._jQueryInterface},B);!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){return void 0===t&&(t=document.body),window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"")},window.hexToRgb=function(e){var t=e.replace("#","");return"rgba("+parseInt(t.substring(0,2),16)+", "+parseInt(t.substring(2,4),16)+", "+parseInt(t.substring(4,6),16)},window.hexToRgba=function(e,t){void 0===t&&(t=100);var n=e.replace("#","");return"rgba("+parseInt(n.substring(0,2),16)+", "+parseInt(n.substring(2,4),16)+", "+parseInt(n.substring(4,6),16)+", "+t/100},window.rgbToHex=function(e){var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),a="0"+parseInt(t[3],10).toString(16);return t&&4===t.length?"#"+n.slice(-2)+r.slice(-2)+a.slice(-2):""},e.AjaxLoad=M,e.AsideMenu=H,e.Sidebar=F,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
!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 a(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 o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}t=t&&t.hasOwnProperty("default")?t.default:t,r=r&&r.hasOwnProperty("default")?r.default:r;var i,n,s,u,c,d,l,f,p,g,h,b,v,y,m,w,I,_,C,L,T,j,S,P,A,D,O,E,k,Q,x,q,U,G,K,R,N,z,V,X,J,B,M=(n="ajaxLoad",s="coreui.ajaxLoad",u=(i=t).fn[n],c="active",d="open",l="click",f=".sidebar-nav .nav-dropdown",p=".sidebar-nav .nav-link",g=".sidebar-nav .nav-item",h={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(e){var t=this._element,n=this._config;i.ajax({type:"GET",url:n.subpagesDirectory+e,dataType:"html",cache:!1,async:!1,success:function(){"undefined"!=typeof Pace&&Pace.restart(),i("body").animate({scrollTop:0},0),i(t).load(n.subpagesDirectory+e,null,function(){window.location.hash=e})},error:function(){window.location.href=n.errorPage}})},e.setUpUrl=function(e){i(p).removeClass(c),i(f).removeClass(d),i(f+':has(a[href="'+e.replace(/^\//,"").split("?")[0]+'"])').addClass(d),i(g+' a[href="'+e.replace(/^\//,"").split("?")[0]+'"]').addClass(c),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({},h,e)},e._addEventListeners=function(){var t=this;i(document).on(l,p+'[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))})},o(n,null,[{key:"VERSION",get:function(){return"2.0.0-beta.6"}},{key:"Default",get:function(){return h}}]),n}(),i.fn[n]=b._jQueryInterface,i.fn[n].Constructor=b,i.fn[n].noConflict=function(){return i.fn[n]=u,b._jQueryInterface},b),Y=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)},H=(y="aside-menu",m="coreui.aside-menu",w=(v=t).fn[y],I={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},_=".aside-menu",C=".aside-menu-toggler",L=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],T=function(){function n(e){this._element=e,this._addEventListeners()}return n.prototype._addEventListeners=function(){v(C).on(I.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;Y(t,L)})},n._jQueryInterface=function(){return this.each(function(){var e=v(this),t=e.data(m);t||(t=new n(this),e.data(m,t))})},o(n,null,[{key:"VERSION",get:function(){return"2.0.0-beta.6"}}]),n}(),v(window).on(I.LOAD_DATA_API,function(){var e=v(_);T._jQueryInterface.call(e)}),v.fn[y]=T._jQueryInterface,v.fn[y].Constructor=T,v.fn[y].noConflict=function(){return v.fn[y]=w,T._jQueryInterface},T),F=(S="sidebar",P="coreui.sidebar",A=(j=t).fn[S],D="active",O="brand-minimized",E="open",k="sidebar-minimized",Q={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle"},x="body",q=".brand-minimizer",U=".nav-dropdown-toggle",G=".nav-dropdown-items",K=".nav-link",R=".sidebar-nav",N=".sidebar-nav > .nav",z=".sidebar",V=".sidebar-minimizer",X=".sidebar-toggler",J=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],B=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(k)||new r(document.querySelector(R),{suppressScrollX:!0}),e===Q.DESTROY&&new r(document.querySelector(R),{suppressScrollX:!0}).destroy(),e===Q.TOGGLE&&(document.body.classList.contains(k)?new r(document.querySelector(R),{suppressScrollX:!0}).destroy():new r(document.querySelector(R),{suppressScrollX:!0})))},e.setActiveLink=function(){j(N).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)),j(j(n))[0].href===r&&j(n).addClass(D).parents(G).add(n).each(function(e,t){j(n=t).parent().addClass(E)})})},e._addEventListeners=function(){var t=this;j(q).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(x).toggleClass(O)}),j(U).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.target;j(t).parent().toggleClass(E)}),j(V).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(x).toggleClass(k),t.perfectScrollbar(Q.TOGGLE)}),j(X).on(Q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;Y(t,J)})},n._jQueryInterface=function(){return this.each(function(){var e=j(this),t=e.data(P);t||(t=new n(this),e.data(P,t))})},o(n,null,[{key:"VERSION",get:function(){return"2.0.0-beta.6"}}]),n}(),j(window).on(Q.LOAD_DATA_API,function(){var e=j(z);B._jQueryInterface.call(e)}),j.fn[S]=B._jQueryInterface,j.fn[S].Constructor=B,j.fn[S].noConflict=function(){return j.fn[S]=A,B._jQueryInterface},B);!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){return void 0===t&&(t=document.body),window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"")},window.hexToRgb=function(e){var t=e.replace("#","");return"rgba("+parseInt(t.substring(0,2),16)+", "+parseInt(t.substring(2,4),16)+", "+parseInt(t.substring(4,6),16)},window.hexToRgba=function(e,t){void 0===t&&(t=100);var n=e.replace("#","");return"rgba("+parseInt(n.substring(0,2),16)+", "+parseInt(n.substring(2,4),16)+", "+parseInt(n.substring(4,6),16)+", "+t/100},window.rgbToHex=function(e){var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),a="0"+parseInt(t[3],10).toString(16);return t?"#"+n.slice(-2)+r.slice(-2)+a.slice(-2):""},e.AjaxLoad=M,e.AsideMenu=H,e.Sidebar=F,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=coreui.min.js.map |
@@ -7,7 +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); } } | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): ajax-load.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): ajax-load.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -23,7 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'ajaxLoad'; | ||
<<<<<<< HEAD | ||
var VERSION = '2.0.0-beta.5'; | ||
======= | ||
var VERSION = '2.0.0-beta.5'; | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
var VERSION = '2.0.0-beta.6'; | ||
var DATA_KEY = 'coreui.ajaxLoad'; | ||
@@ -57,3 +49,4 @@ var JQUERY_NO_CONFLICT = $.fn[NAME]; | ||
this._element = element; | ||
var url = location.hash.replace(/^#/, ''); | ||
var url = location.hash.replace(/^#/, ''); // eslint-disable-next-line no-unused-expressions | ||
url !== '' ? this.setUpUrl(url) : this.setUpUrl(this._config.defaultPage); | ||
@@ -79,2 +72,3 @@ | ||
if (typeof Pace !== 'undefined') { | ||
// eslint-disable-next-line no-undef | ||
Pace.restart(); | ||
@@ -123,2 +117,3 @@ } | ||
// eslint-disable-next-line prefer-template | ||
$(document).on(Event.CLICK, Selector.NAV_LINK + '[href!="#"]', function (event) { | ||
@@ -125,0 +120,0 @@ event.preventDefault(); |
@@ -7,7 +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); } } | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): aside-menu.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): aside-menu.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -23,7 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'aside-menu'; | ||
<<<<<<< HEAD | ||
var VERSION = '2.0.0-beta.5'; | ||
======= | ||
var VERSION = '2.0.0-beta.5'; | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
var VERSION = '2.0.0-beta.6'; | ||
var DATA_KEY = 'coreui.aside-menu'; | ||
@@ -30,0 +22,0 @@ var EVENT_KEY = "." + DATA_KEY; |
/** | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): index.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): index.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -9,0 +5,0 @@ * -------------------------------------------------------------------------- |
@@ -7,7 +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); } } | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): sidebar.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): sidebar.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -23,7 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'sidebar'; | ||
<<<<<<< HEAD | ||
var VERSION = '2.0.0-beta.5'; | ||
======= | ||
var VERSION = '2.0.0-beta.5'; | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
var VERSION = '2.0.0-beta.6'; | ||
var DATA_KEY = 'coreui.sidebar'; | ||
@@ -30,0 +22,0 @@ var EVENT_KEY = "." + DATA_KEY; |
/** | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): toggle-classes.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): toggle-classes.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -9,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-beta.5): get-style.js | ||
* CoreUI Utilities (v2.0.0-beta.6): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -12,5 +12,4 @@ * -------------------------------------------------------------------------- | ||
var style = window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, ''); | ||
return style; | ||
return window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, ''); | ||
}; | ||
//# sourceMappingURL=get-style.js.map |
/** | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js | ||
======= | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI Utilities (v2.0.0-beta.6): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -9,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js | ||
======= | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI Utilities (v2.0.0-beta.6): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -9,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
<<<<<<< HEAD | ||
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js | ||
======= | ||
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js | ||
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be | ||
* CoreUI (v2.0.0-beta.6): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -18,4 +14,4 @@ * -------------------------------------------------------------------------- | ||
var b = "0" + parseInt(rgb[3], 10).toString(16); | ||
return rgb && rgb.length === 4 ? "#" + r.slice(-2) + g.slice(-2) + b.slice(-2) : ''; | ||
return rgb ? "#" + r.slice(-2) + g.slice(-2) + b.slice(-2) : ''; | ||
}; | ||
//# sourceMappingURL=rgb-to-hex.js.map |
@@ -5,3 +5,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-beta.5): ajax-load.js | ||
* CoreUI (v2.0.0-beta.6): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -20,3 +20,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'ajaxLoad' | ||
const VERSION = '2.0.0-beta.5' | ||
const VERSION = '2.0.0-beta.6' | ||
const DATA_KEY = 'coreui.ajaxLoad' | ||
@@ -54,2 +54,3 @@ const JQUERY_NO_CONFLICT = $.fn[NAME] | ||
const url = location.hash.replace(/^#/, '') | ||
// eslint-disable-next-line no-unused-expressions | ||
url !== '' ? this.setUpUrl(url) : this.setUpUrl(this._config.defaultPage) | ||
@@ -83,2 +84,3 @@ this._addEventListeners() | ||
if (typeof Pace !== 'undefined') { | ||
// eslint-disable-next-line no-undef | ||
Pace.restart() | ||
@@ -129,2 +131,3 @@ } | ||
_addEventListeners() { | ||
// eslint-disable-next-line prefer-template | ||
$(document).on(Event.CLICK, Selector.NAV_LINK + '[href!="#"]', (event) => { | ||
@@ -131,0 +134,0 @@ event.preventDefault() |
@@ -6,3 +6,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-beta.5): aside-menu.js | ||
* CoreUI (v2.0.0-beta.6): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -20,3 +20,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'aside-menu' | ||
const VERSION = '2.0.0-beta.5' | ||
const VERSION = '2.0.0-beta.6' | ||
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-beta.5): index.js | ||
* CoreUI (v2.0.0-beta.6): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -11,0 +11,0 @@ * -------------------------------------------------------------------------- |
@@ -7,3 +7,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-beta.5): sidebar.js | ||
* CoreUI (v2.0.0-beta.6): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -21,3 +21,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'sidebar' | ||
const VERSION = '2.0.0-beta.5' | ||
const VERSION = '2.0.0-beta.6' | ||
const DATA_KEY = 'coreui.sidebar' | ||
@@ -24,0 +24,0 @@ const EVENT_KEY = `.${DATA_KEY}` |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-beta.5): toggle-classes.js | ||
* CoreUI (v2.0.0-beta.6): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-beta.5): get-style.js | ||
* CoreUI Utilities (v2.0.0-beta.6): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -8,8 +8,4 @@ * -------------------------------------------------------------------------- | ||
const getStyle = (property, element = document.body) => { | ||
const style = window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, '') | ||
const getStyle = (property, element = document.body) => window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, '') | ||
return style | ||
} | ||
export default getStyle |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.0-beta.6): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.0-beta.6): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js | ||
* CoreUI (v2.0.0-beta.6): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -15,5 +15,5 @@ * -------------------------------------------------------------------------- | ||
return (rgb && rgb.length === 4) ? `#${r.slice(-2)}${g.slice(-2)}${b.slice(-2)}` : '' | ||
return rgb ? `#${r.slice(-2)}${g.slice(-2)}${b.slice(-2)}` : '' | ||
} | ||
export default rgbToHex |
{ | ||
"name": "@coreui/coreui-pro", | ||
"version": "2.0.0-beta.5", | ||
"version": "2.0.0-beta.6", | ||
"description": "UI Kit built on top of Bootstrap 4", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
28972
4431683
2