@coreui/coreui-pro
Advanced tools
Comparing version 2.0.0-rc.2 to 2.0.0
/*! | ||
* CoreUI v2.0.0-rc.2 (https://coreui.io/pro/) | ||
* CoreUI v2.0.0 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
@@ -14,3 +14,3 @@ * Licensed under MIT (https://coreui.io/pro/) | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): get-style.js | ||
* CoreUI Utilities (v2.0.0): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -24,2 +24,7 @@ * -------------------------------------------------------------------------- | ||
}); | ||
if (root.length === 0) { | ||
root = Object.entries(document.styleSheets); | ||
} | ||
var rule = Object.entries(root[0][1].cssRules).filter(function (value) { | ||
@@ -82,3 +87,3 @@ return value[1].selectorText === '.ie-custom-properties'; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.0): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -119,3 +124,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.0): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -160,3 +165,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): rgb-to-hex.js | ||
* CoreUI (v2.0.0): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -163,0 +168,0 @@ * -------------------------------------------------------------------------- |
/*! | ||
* CoreUI v2.0.0-rc.2 (https://coreui.io/pro/) | ||
* CoreUI v2.0.0 (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):"function"==typeof define&&define.amd?define(["exports"],t):t(e.utilities={})}(this,function(e){"use strict";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});e.getStyle=function(e,t){var r,n,s;void 0===t&&(t=document.body),r=e.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?(n={},s=Object.entries(document.styleSheets).filter(function(e){return":root"===e[1].cssText.substring(0,":root".length)}),Object.entries(s[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],r=e.split(": ")[1];n["--"+t.trim()]=r.trim()}}),n)[e]:window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return r},e.hexToRgb=function(e){if("undefined"==typeof e)throw new Error("Hex color is not defined");var t,r,n;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),r=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),n=parseInt(e.substring(3,5),16)),"rgba("+t+", "+r+", "+n+")"},e.hexToRgba=function(e,t){if(void 0===t&&(t=100),"undefined"==typeof e)throw new Error("Hex color is not defined");var r,n,s;if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");return 7===e.length?(r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),s=parseInt(e.substring(5,7),16)):(r=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),s=parseInt(e.substring(3,5),16)),"rgba("+r+", "+n+", "+s+", "+t/100+")"},e.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 r="0"+parseInt(t[1],10).toString(16),n="0"+parseInt(t[2],10).toString(16),s="0"+parseInt(t[3],10).toString(16);return"#"+r.slice(-2)+n.slice(-2)+s.slice(-2)},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.utilities={})}(this,function(e){"use strict";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});e.getStyle=function(e,t){var r,n,s;void 0===t&&(t=document.body),r=e.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?(n={},0===(s=Object.entries(document.styleSheets).filter(function(e){return":root"===e[1].cssText.substring(0,":root".length)})).length&&(s=Object.entries(document.styleSheets)),Object.entries(s[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],r=e.split(": ")[1];n["--"+t.trim()]=r.trim()}}),n)[e]:window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return r},e.hexToRgb=function(e){if("undefined"==typeof e)throw new Error("Hex color is not defined");var t,r,n;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),r=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),n=parseInt(e.substring(3,5),16)),"rgba("+t+", "+r+", "+n+")"},e.hexToRgba=function(e,t){if(void 0===t&&(t=100),"undefined"==typeof e)throw new Error("Hex color is not defined");var r,n,s;if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");return 7===e.length?(r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),s=parseInt(e.substring(5,7),16)):(r=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),s=parseInt(e.substring(3,5),16)),"rgba("+r+", "+n+", "+s+", "+t/100+")"},e.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 r="0"+parseInt(t[1],10).toString(16),n="0"+parseInt(t[2],10).toString(16),s="0"+parseInt(t[3],10).toString(16);return"#"+r.slice(-2)+n.slice(-2)+s.slice(-2)},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=coreui-utilities.min.js.map |
/*! | ||
* CoreUI Pro v2.0.0-rc.2 (https://coreui.io/pro/) | ||
* CoreUI Pro v2.0.0 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
@@ -33,3 +33,3 @@ * Licensed under MIT (https://coreui.io/pro/) | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): ajax-load.js | ||
* CoreUI (v2.0.0): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -46,3 +46,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'ajaxLoad'; | ||
var VERSION = '2.0.0-rc.2'; | ||
var VERSION = '2.0.0'; | ||
var DATA_KEY = 'coreui.ajaxLoad'; | ||
@@ -240,3 +240,3 @@ var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): toggle-classes.js | ||
* CoreUI (v2.0.0): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -266,3 +266,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): aside-menu.js | ||
* CoreUI (v2.0.0): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -279,3 +279,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'aside-menu'; | ||
var VERSION = '2.0.0-rc.2'; | ||
var VERSION = '2.0.0'; | ||
var DATA_KEY = 'coreui.aside-menu'; | ||
@@ -377,3 +377,3 @@ var EVENT_KEY = "." + DATA_KEY; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): sidebar.js | ||
* CoreUI (v2.0.0): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -390,3 +390,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'sidebar'; | ||
var VERSION = '2.0.0-rc.2'; | ||
var VERSION = '2.0.0'; | ||
var DATA_KEY = 'coreui.sidebar'; | ||
@@ -581,3 +581,3 @@ var EVENT_KEY = "." + DATA_KEY; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): get-style.js | ||
* CoreUI Utilities (v2.0.0): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -591,2 +591,7 @@ * -------------------------------------------------------------------------- | ||
}); | ||
if (root.length === 0) { | ||
root = Object.entries(document.styleSheets); | ||
} | ||
var rule = Object.entries(root[0][1].cssRules).filter(function (value) { | ||
@@ -649,3 +654,3 @@ return value[1].selectorText === '.ie-custom-properties'; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.0): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -686,3 +691,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.0): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -727,3 +732,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): rgb-to-hex.js | ||
* CoreUI (v2.0.0): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -753,3 +758,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): index.js | ||
* CoreUI (v2.0.0): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -756,0 +761,0 @@ * -------------------------------------------------------------------------- |
/*! | ||
* CoreUI Pro v2.0.0-rc.2 (https://coreui.io/pro/) | ||
* CoreUI Pro v2.0.0 (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,T,j,S,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-rc.2"}},{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"},T=".aside-menu",j=".aside-menu-toggler",S=["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(j).on(C.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;$(t,S)})},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-rc.2"}}]),n}(),y(window).on(C.LOAD_DATA_API,function(){var e=y(T);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-rc.2"}}]),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={},o=Object.entries(document.styleSheets).filter(function(e){return":root"===e[1].cssText.substring(0,":root".length)}),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 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})}); | ||
//# 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-rc.2): ajax-load.js | ||
* CoreUI (v2.0.0): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -19,3 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'ajaxLoad'; | ||
var VERSION = '2.0.0-rc.2'; | ||
var VERSION = '2.0.0'; | ||
var DATA_KEY = 'coreui.ajaxLoad'; | ||
@@ -22,0 +22,0 @@ var JQUERY_NO_CONFLICT = $.fn[NAME]; |
@@ -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-rc.2): aside-menu.js | ||
* CoreUI (v2.0.0): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -19,3 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'aside-menu'; | ||
var VERSION = '2.0.0-rc.2'; | ||
var VERSION = '2.0.0'; | ||
var DATA_KEY = 'coreui.aside-menu'; | ||
@@ -22,0 +22,0 @@ var EVENT_KEY = "." + DATA_KEY; |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): index.js | ||
* CoreUI (v2.0.0): 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-rc.2): sidebar.js | ||
* CoreUI (v2.0.0): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -19,3 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'sidebar'; | ||
var VERSION = '2.0.0-rc.2'; | ||
var VERSION = '2.0.0'; | ||
var DATA_KEY = 'coreui.sidebar'; | ||
@@ -22,0 +22,0 @@ var EVENT_KEY = "." + DATA_KEY; |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): toggle-classes.js | ||
* CoreUI (v2.0.0): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): get-style.js | ||
* CoreUI Utilities (v2.0.0): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -12,2 +12,7 @@ * -------------------------------------------------------------------------- | ||
}); | ||
if (root.length === 0) { | ||
root = Object.entries(document.styleSheets); | ||
} | ||
var rule = Object.entries(root[0][1].cssRules).filter(function (value) { | ||
@@ -14,0 +19,0 @@ return value[1].selectorText === '.ie-custom-properties'; |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.0): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.0): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): rgb-to-hex.js | ||
* CoreUI (v2.0.0): 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-rc.2): ajax-load.js | ||
* CoreUI (v2.0.0): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -20,3 +20,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'ajaxLoad' | ||
const VERSION = '2.0.0-rc.2' | ||
const VERSION = '2.0.0' | ||
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-rc.2): aside-menu.js | ||
* CoreUI (v2.0.0): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -20,3 +20,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'aside-menu' | ||
const VERSION = '2.0.0-rc.2' | ||
const VERSION = '2.0.0' | ||
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-rc.2): index.js | ||
* CoreUI (v2.0.0): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -11,0 +11,0 @@ * -------------------------------------------------------------------------- |
@@ -7,3 +7,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): sidebar.js | ||
* CoreUI (v2.0.0): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -21,3 +21,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'sidebar' | ||
const VERSION = '2.0.0-rc.2' | ||
const VERSION = '2.0.0' | ||
const DATA_KEY = 'coreui.sidebar' | ||
@@ -24,0 +24,0 @@ const EVENT_KEY = `.${DATA_KEY}` |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): toggle-classes.js | ||
* CoreUI (v2.0.0): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): get-style.js | ||
* CoreUI Utilities (v2.0.0): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -10,3 +10,6 @@ * -------------------------------------------------------------------------- | ||
const cssCustomProperties = {} | ||
const root = Object.entries(document.styleSheets).filter((value) => value[1].cssText.substring(0, ':root'.length) === ':root') | ||
let root = Object.entries(document.styleSheets).filter((value) => value[1].cssText.substring(0, ':root'.length) === ':root') | ||
if (root.length === 0) { | ||
root = Object.entries(document.styleSheets) | ||
} | ||
const rule = Object.entries(root[0][1].cssRules).filter((value) => value[1].selectorText === '.ie-custom-properties') | ||
@@ -13,0 +16,0 @@ const cssText = rule[0][1].style.cssText |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.0): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.0-rc.2): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.0): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.0-rc.2): rgb-to-hex.js | ||
* CoreUI (v2.0.0): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
{ | ||
"name": "@coreui/coreui-pro", | ||
"version": "2.0.0-rc.2", | ||
"version": "2.0.0", | ||
"description": "UI Kit built on top of Bootstrap 4", | ||
@@ -72,3 +72,3 @@ "keywords": [ | ||
"dependencies": { | ||
"bootstrap": "^4.1.0" | ||
"bootstrap": "^4.1.1" | ||
}, | ||
@@ -75,0 +75,0 @@ "devDependencies": { |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4412153
28916
1
Updatedbootstrap@^4.1.1