Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coreui/coreui-pro

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coreui/coreui-pro - npm Package Compare versions

Comparing version 2.0.0-beta.3 to 2.0.0-beta.5

92

dist/js/coreui.js
/*!
* CoreUI Pro v2.0.0-beta.3 (https://coreui.io/pro/)
<<<<<<< HEAD
* CoreUI Pro v2.0.0-beta.5 (https://coreui.io/pro/)
=======
* CoreUI v2.0.0-beta.5 (https://coreui.io)
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Copyright 2018 Łukasz Holeczek

@@ -33,3 +37,7 @@ * Licensed under MIT (https://coreui.io/pro/)

* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): ajax-load.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): ajax-load.js
=======
* CoreUI (v2.0.0-beta.5): ajax-load.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -46,3 +54,7 @@ * --------------------------------------------------------------------------

var NAME = 'ajaxLoad';
var VERSION = '2.0.0-beta.3';
<<<<<<< HEAD
var VERSION = '2.0.0-beta.5';
=======
var VERSION = '2.0.0-beta.5';
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
var DATA_KEY = 'coreui.ajaxLoad';

@@ -202,3 +214,7 @@ var JQUERY_NO_CONFLICT = $$$1.fn[NAME];

* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): toggle-classes.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): toggle-classes.js
=======
* CoreUI (v2.0.0-beta.5): toggle-classes.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -229,3 +245,7 @@ * --------------------------------------------------------------------------

* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): aside-menu.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): aside-menu.js
=======
* CoreUI (v2.0.0-beta.5): aside-menu.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -242,3 +262,7 @@ * --------------------------------------------------------------------------

var NAME = 'aside-menu';
var VERSION = '2.0.0-beta.3';
<<<<<<< HEAD
var VERSION = '2.0.0-beta.5';
=======
var VERSION = '2.0.0-beta.5';
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
var DATA_KEY = 'coreui.aside-menu';

@@ -340,3 +364,7 @@ var EVENT_KEY = "." + DATA_KEY;

* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): sidebar.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): sidebar.js
=======
* CoreUI (v2.0.0-beta.5): sidebar.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -353,3 +381,7 @@ * --------------------------------------------------------------------------

var NAME = 'sidebar';
var VERSION = '2.0.0-beta.3';
<<<<<<< HEAD
var VERSION = '2.0.0-beta.5';
=======
var VERSION = '2.0.0-beta.5';
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
var DATA_KEY = 'coreui.sidebar';

@@ -544,7 +576,7 @@ var EVENT_KEY = "." + DATA_KEY;

* --------------------------------------------------------------------------
* CoreUI Utilities (v1.0.0): get-style.js
* CoreUI Utilities (v2.0.0-beta.5): get-style.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
var GetStyle = function GetStyle(property, element) {
var getStyle = function getStyle(property, element) {
if (element === void 0) {

@@ -560,3 +592,7 @@ element = document.body;

* --------------------------------------------------------------------------
* CoreUI Utilities (v2.0.0-beta.3): hex-to-rgb.js
<<<<<<< HEAD
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js
=======
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -567,3 +603,3 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
var HexToRgb = function HexToRgb(color) {
var hexToRgb = function hexToRgb(color) {
var hex = color.replace('#', '');

@@ -579,3 +615,7 @@ var r = parseInt(hex.substring(0, 2), 16);

* --------------------------------------------------------------------------
* CoreUI Utilities (v2.0.0-beta.3): hex-to-rgba.js
<<<<<<< HEAD
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js
=======
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -586,3 +626,3 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
var HexToRgba = function HexToRgba(color, opacity) {
var hexToRgba = function hexToRgba(color, opacity) {
if (opacity === void 0) {

@@ -602,3 +642,7 @@ opacity = 100;

* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): rgb-to-hex.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js
=======
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -609,3 +653,3 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
var RgbToHex = function RgbToHex(color) {
var rgbToHex = function rgbToHex(color) {
var rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);

@@ -615,3 +659,3 @@ var r = "0" + parseInt(rgb[1], 10).toString(16);

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 && rgb.length === 4) ? '#' + ('0' + parseInt(rgb[1], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[2], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[3], 10).toString(16)).slice(-2) : '';
return rgb && rgb.length === 4 ? "#" + r.slice(-2) + g.slice(-2) + b.slice(-2) : '';
};

@@ -621,3 +665,7 @@

* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): index.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): index.js
=======
* CoreUI (v2.0.0-beta.5): index.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -643,6 +691,6 @@ * --------------------------------------------------------------------------

})($);
window.GetStyle = GetStyle;
window.HexToRgb = HexToRgb;
window.HexToRgba = HexToRgba;
window.RgbToHex = RgbToHex;
window.getStyle = getStyle;
window.hexToRgb = hexToRgb;
window.hexToRgba = hexToRgba;
window.rgbToHex = rgbToHex;

@@ -649,0 +697,0 @@ exports.AjaxLoad = AjaxLoad;

/*!
* CoreUI Pro v2.0.0-beta.3 (https://coreui.io/pro/)
<<<<<<< HEAD
* CoreUI Pro v2.0.0-beta.5 (https://coreui.io/pro/)
=======
* CoreUI v2.0.0-beta.5 (https://coreui.io)
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* 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 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.3"}},{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.3"}}]),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.3"}}]),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})});
<<<<<<< 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
//# sourceMappingURL=coreui.min.js.map

@@ -7,3 +7,7 @@ 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-beta.3): ajax-load.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): ajax-load.js
=======
* CoreUI (v2.0.0-beta.5): ajax-load.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -19,3 +23,7 @@ * --------------------------------------------------------------------------

var NAME = 'ajaxLoad';
var VERSION = '2.0.0-beta.3';
<<<<<<< HEAD
var VERSION = '2.0.0-beta.5';
=======
var VERSION = '2.0.0-beta.5';
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
var DATA_KEY = 'coreui.ajaxLoad';

@@ -22,0 +30,0 @@ var JQUERY_NO_CONFLICT = $.fn[NAME];

@@ -7,3 +7,7 @@ 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-beta.3): aside-menu.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): aside-menu.js
=======
* CoreUI (v2.0.0-beta.5): aside-menu.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -19,3 +23,7 @@ * --------------------------------------------------------------------------

var NAME = 'aside-menu';
var VERSION = '2.0.0-beta.3';
<<<<<<< HEAD
var VERSION = '2.0.0-beta.5';
=======
var VERSION = '2.0.0-beta.5';
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
var DATA_KEY = 'coreui.aside-menu';

@@ -22,0 +30,0 @@ var EVENT_KEY = "." + DATA_KEY;

/**
* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): index.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): index.js
=======
* CoreUI (v2.0.0-beta.5): index.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -24,6 +28,6 @@ * --------------------------------------------------------------------------

window.GetStyle = GetStyle;
window.HexToRgb = HexToRgb;
window.HexToRgba = HexToRgba;
window.RgbToHex = RgbToHex;
window.getStyle = getStyle;
window.hexToRgb = hexToRgb;
window.hexToRgba = hexToRgba;
window.rgbToHex = rgbToHex;
//# sourceMappingURL=index.js.map

@@ -7,3 +7,7 @@ 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-beta.3): sidebar.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): sidebar.js
=======
* CoreUI (v2.0.0-beta.5): sidebar.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -19,3 +23,7 @@ * --------------------------------------------------------------------------

var NAME = 'sidebar';
var VERSION = '2.0.0-beta.3';
<<<<<<< HEAD
var VERSION = '2.0.0-beta.5';
=======
var VERSION = '2.0.0-beta.5';
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
var DATA_KEY = 'coreui.sidebar';

@@ -22,0 +30,0 @@ var EVENT_KEY = "." + DATA_KEY;

/**
* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): toggle-classes.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): toggle-classes.js
=======
* CoreUI (v2.0.0-beta.5): toggle-classes.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -5,0 +9,0 @@ * --------------------------------------------------------------------------

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v1.0.0): get-style.js
* CoreUI Utilities (v2.0.0-beta.5): get-style.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
var GetStyle = function GetStyle(property, element) {
var getStyle = function getStyle(property, element) {
if (element === void 0) {

@@ -9,0 +9,0 @@ element = document.body;

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.0.0-beta.3): hex-to-rgb.js
<<<<<<< HEAD
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js
=======
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -9,3 +13,3 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
var HexToRgb = function HexToRgb(color) {
var hexToRgb = function hexToRgb(color) {
var hex = color.replace('#', '');

@@ -12,0 +16,0 @@ var r = parseInt(hex.substring(0, 2), 16);

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.0.0-beta.3): hex-to-rgba.js
<<<<<<< HEAD
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js
=======
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -9,3 +13,3 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
var HexToRgba = function HexToRgba(color, opacity) {
var hexToRgba = function hexToRgba(color, opacity) {
if (opacity === void 0) {

@@ -12,0 +16,0 @@ opacity = 100;

/**
* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): rgb-to-hex.js
<<<<<<< HEAD
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js
=======
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js
>>>>>>> a926b65c2932926c6b52b4c2e2c2438166fb77be
* Licensed under MIT (https://coreui.io/license)

@@ -9,3 +13,3 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
var RgbToHex = function RgbToHex(color) {
var rgbToHex = function rgbToHex(color) {
var rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);

@@ -15,4 +19,4 @@ var r = "0" + parseInt(rgb[1], 10).toString(16);

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 && rgb.length === 4) ? '#' + ('0' + parseInt(rgb[1], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[2], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[3], 10).toString(16)).slice(-2) : '';
return rgb && rgb.length === 4 ? "#" + 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.3): ajax-load.js
* CoreUI (v2.0.0-beta.5): ajax-load.js
* Licensed under MIT (https://coreui.io/license)

@@ -20,3 +20,3 @@ * --------------------------------------------------------------------------

const NAME = 'ajaxLoad'
const VERSION = '2.0.0-beta.3'
const VERSION = '2.0.0-beta.5'
const DATA_KEY = 'coreui.ajaxLoad'

@@ -23,0 +23,0 @@ const JQUERY_NO_CONFLICT = $.fn[NAME]

@@ -6,3 +6,3 @@ import $ from 'jquery'

* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): aside-menu.js
* CoreUI (v2.0.0-beta.5): aside-menu.js
* Licensed under MIT (https://coreui.io/license)

@@ -20,3 +20,3 @@ * --------------------------------------------------------------------------

const NAME = 'aside-menu'
const VERSION = '2.0.0-beta.3'
const VERSION = '2.0.0-beta.5'
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.3): index.js
* CoreUI (v2.0.0-beta.5): index.js
* Licensed under MIT (https://coreui.io/license)

@@ -38,12 +38,12 @@ * --------------------------------------------------------------------------

// Global functions
import GetStyle from './utilities/get-style'
window.GetStyle = GetStyle
import getStyle from './utilities/get-style'
window.getStyle = getStyle
import HexToRgb from './utilities/hex-to-rgb'
window.HexToRgb = HexToRgb
import hexToRgb from './utilities/hex-to-rgb'
window.hexToRgb = hexToRgb
import HexToRgba from './utilities/hex-to-rgba'
window.HexToRgba = HexToRgba
import hexToRgba from './utilities/hex-to-rgba'
window.hexToRgba = hexToRgba
import RgbToHex from './utilities/rgb-to-hex'
window.RgbToHex = RgbToHex
import rgbToHex from './utilities/rgb-to-hex'
window.rgbToHex = rgbToHex

@@ -7,3 +7,3 @@ import $ from 'jquery'

* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): sidebar.js
* CoreUI (v2.0.0-beta.5): sidebar.js
* Licensed under MIT (https://coreui.io/license)

@@ -21,3 +21,3 @@ * --------------------------------------------------------------------------

const NAME = 'sidebar'
const VERSION = '2.0.0-beta.3'
const VERSION = '2.0.0-beta.5'
const DATA_KEY = 'coreui.sidebar'

@@ -24,0 +24,0 @@ const EVENT_KEY = `.${DATA_KEY}`

/**
* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): toggle-classes.js
* CoreUI (v2.0.0-beta.5): toggle-classes.js
* Licensed under MIT (https://coreui.io/license)

@@ -5,0 +5,0 @@ * --------------------------------------------------------------------------

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v1.0.0): get-style.js
* CoreUI Utilities (v2.0.0-beta.5): get-style.js
* Licensed under MIT (https://coreui.io/license)

@@ -8,3 +8,3 @@ * --------------------------------------------------------------------------

const GetStyle = (property, element = document.body) => {
const getStyle = (property, element = document.body) => {
const style = window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, '')

@@ -15,2 +15,2 @@

export default GetStyle
export default getStyle
/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.0.0-beta.3): hex-to-rgb.js
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgb.js
* Licensed under MIT (https://coreui.io/license)

@@ -9,3 +9,3 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
const HexToRgb = (color) => {
const hexToRgb = (color) => {
const hex = color.replace('#', '')

@@ -20,2 +20,2 @@ const r = parseInt(hex.substring(0, 2), 16)

export default HexToRgb
export default hexToRgb
/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.0.0-beta.3): hex-to-rgba.js
* CoreUI Utilities (v2.0.0-beta.5): hex-to-rgba.js
* Licensed under MIT (https://coreui.io/license)

@@ -9,3 +9,3 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
const HexToRgba = (color, opacity = 100) => {
const hexToRgba = (color, opacity = 100) => {
const hex = color.replace('#', '')

@@ -20,2 +20,2 @@ const r = parseInt(hex.substring(0, 2), 16)

export default HexToRgba
export default hexToRgba

@@ -1,11 +0,11 @@

import GetStyle from './get-style'
import HexToRgb from './hex-to-rgb'
import HexToRgba from './hex-to-rgba'
import RgbToHex from './rgb-to-hex'
import getStyle from './get-style'
import hexToRgb from './hex-to-rgb'
import hexToRgba from './hex-to-rgba'
import rgbToHex from './rgb-to-hex'
export {
GetStyle,
HexToRgb,
HexToRgba,
RgbToHex
getStyle,
hexToRgb,
hexToRgba,
rgbToHex
}
/**
* --------------------------------------------------------------------------
* CoreUI (v2.0.0-beta.3): rgb-to-hex.js
* CoreUI (v2.0.0-beta.5): rgb-to-hex.js
* Licensed under MIT (https://coreui.io/license)

@@ -9,3 +9,3 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
const RgbToHex = (color) => {
const rgbToHex = (color) => {
const rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i)

@@ -17,7 +17,4 @@ const r = `0${parseInt(rgb[1], 10).toString(16)}`

return (rgb && rgb.length === 4) ? `#${r.slice(-2)}${g.slice(-2)}${b.slice(-2)}` : ''
// return (rgb && rgb.length === 4) ? '#' + ('0' + parseInt(rgb[1], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[2], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[3], 10).toString(16)).slice(-2) : '';
}
export default RgbToHex
export default rgbToHex
{
"name": "@coreui/coreui-pro",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.5",
"description": "UI Kit built on top of Bootstrap 4",

@@ -70,12 +70,12 @@ "keywords": [

"dependencies": {
"bootstrap": "^4.0.0"
"bootstrap": "^4.1.0"
},
"devDependencies": {
"@babel/cli": "7.0.0-beta.42",
"@babel/core": "7.0.0-beta.42",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.42",
"@babel/preset-env": "7.0.0-beta.42",
"autoprefixer": "^7.1.6",
"@babel/cli": "7.0.0-beta.44",
"@babel/core": "7.0.0-beta.44",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.44",
"@babel/preset-env": "7.0.0-beta.44",
"autoprefixer": "^8.2.0",
"babel-eslint": "^8.2.2",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-istanbul": "^4.1.6",
"babel-plugin-transform-es2015-modules-strip": "^0.1.1",

@@ -85,8 +85,8 @@ "babel-plugin-transform-object-rest-spread": "^6.26.0",

"cross-env": "^5.1.4",
"eslint": "^4.16.0",
"eslint-plugin-compat": "^2.1.0",
"node-sass": "^4.7.1",
"nodemon": "^1.12.1",
"eslint": "^4.19.1",
"eslint-plugin-compat": "^2.2.0",
"node-sass": "^4.8.3",
"nodemon": "^1.17.3",
"npm-run-all": "^4.1.2",
"postcss-cli": "^4.1.1",
"postcss-cli": "^5.0.0",
"rollup": "^0.57.1",

@@ -98,8 +98,8 @@ "rollup-plugin-babel": "4.0.0-beta.2",

"shx": "^0.2.2",
"stylelint": "^8.2.0",
"stylelint-config-recommended-scss": "^2.0.0",
"stylelint-config-standard": "^17.0.0",
"stylelint-order": "^0.7.0",
"stylelint-scss": "^2.1.0",
"uglify-js": "^3.3.8"
"stylelint": "^9.2.0",
"stylelint-config-recommended-scss": "^3.2.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-order": "^0.8.1",
"stylelint-scss": "^3.0.0",
"uglify-js": "^3.3.20"
},

@@ -106,0 +106,0 @@ "peerDependencies": {

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc