@coreui/coreui-pro
Advanced tools
Comparing version 2.0.14 to 2.0.19
@@ -0,1 +1,33 @@ | ||
## v2.0.19 | ||
- refactor: extract getCssCustomProperties function | ||
- feat: add getColor function | ||
- feat: sidebar set active using query string PR #21 | ||
- chore: update `node-sass` to `4.9.4` | ||
- chore: update `eslint` to `5.7.0` | ||
- chore: update `babel-plugin-istanbul` to `5.1.0` | ||
- chore: update `semver` to `5.6.0` | ||
- chore: update `autoprefixer` to `9.2.0` | ||
## v2.0.18 | ||
- feat: add deep objects merge utility | ||
- chore: build rollup utilities script cleanup | ||
- fix(rgbToHex): transparent is not a valid rgb color ie issue | ||
## v2.0.17 | ||
- fix(card): `rtl` for `card-header` icon margins | ||
- fix(sidebar): `rtl` for `sidebar-minimizer` icon | ||
- chore: update `rollup` to `0.66.6` | ||
- thanks @MrDevIr | ||
## v2.0.16 | ||
- fix(breadcrumb): `rtl` padding | ||
- fix(card): `rtl` float for `card-header-actions` | ||
- fix(sidebar): `rtl` ps scrollbar issue temp fix/refactor | ||
- chore: update `rollup` to `0.66.5` | ||
## v2.0.15 | ||
- feat(sidebar): `badge` margins for `nav-dropdown-toggle` | ||
- chore: update `eslint-plugin-compat` to `2.6.2` | ||
- chore: update `rollup` to `0.66.4` | ||
## v2.0.14 | ||
@@ -5,5 +37,5 @@ - fix(scss): add missing `light-blue` color variable | ||
## v2.0.13 | ||
- chore: update @babel/core to 7.1.2 | ||
- chore: update @babel/cli to 7.1.2 | ||
- chore: update eslint to 5.6.1 | ||
- chore: update `@babel/core` to `7.1.2` | ||
- chore: update `@babel/cli` to `7.1.2` | ||
- chore: update `eslint` to `5.6.1` | ||
@@ -10,0 +42,0 @@ ## v2.0.12 |
/*! | ||
* CoreUI Pro v2.0.14 (https://coreui.io/pro/) | ||
* CoreUI Pro v2.0.19 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
@@ -11,6 +11,24 @@ */ | ||
var deepObjectsMerge = function deepObjectsMerge(target, source) { | ||
// Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties | ||
var _arr = Object.keys(source); | ||
for (var _i = 0; _i < _arr.length; _i++) { | ||
var key = _arr[_i]; | ||
if (source[key] instanceof Object) { | ||
Object.assign(source[key], deepObjectsMerge(target[key], source[key])); | ||
} | ||
} // Join `target` and modified `source` | ||
Object.assign(target || {}, source); | ||
return target; | ||
}; | ||
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): get-style.js | ||
* CoreUI Utilities (v2.0.19): get-css-custom-properties.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
* @returns {string} css custom property name | ||
* -------------------------------------------------------------------------- | ||
@@ -52,2 +70,8 @@ */ | ||
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.19): get-color.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
* -------------------------------------------------------------------------- | ||
*/ | ||
var minIEVersion = 10; | ||
@@ -63,3 +87,3 @@ | ||
var getStyle = function getStyle(property, element) { | ||
var getColor = function getColor(rawProperty, element) { | ||
if (element === void 0) { | ||
@@ -69,2 +93,3 @@ element = document.body; | ||
var property = "--" + rawProperty; | ||
var style; | ||
@@ -79,2 +104,35 @@ | ||
return style ? style : rawProperty; | ||
}; | ||
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.19): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
* -------------------------------------------------------------------------- | ||
*/ | ||
var minIEVersion$1 = 10; | ||
var isIE1x$1 = function isIE1x() { | ||
return Boolean(document.documentMode) && document.documentMode >= minIEVersion$1; | ||
}; | ||
var isCustomProperty$1 = function isCustomProperty(property) { | ||
return property.match(/^--.*/i); | ||
}; | ||
var getStyle = function getStyle(property, element) { | ||
if (element === void 0) { | ||
element = document.body; | ||
} | ||
var style; | ||
if (isCustomProperty$1(property) && isIE1x$1()) { | ||
var cssCustomProperties = getCssCustomProperties(); | ||
style = cssCustomProperties[property]; | ||
} else { | ||
style = window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, ''); | ||
} | ||
return style; | ||
@@ -85,3 +143,3 @@ }; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.19): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -122,3 +180,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.19): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -163,3 +221,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): rgb-to-hex.js | ||
* CoreUI (v2.0.19): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -175,2 +233,6 @@ * -------------------------------------------------------------------------- | ||
if (color === 'transparent') { | ||
return '#00000000'; | ||
} | ||
var rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); | ||
@@ -188,2 +250,4 @@ | ||
exports.deepObjectsMerge = deepObjectsMerge; | ||
exports.getColor = getColor; | ||
exports.getStyle = getStyle; | ||
@@ -190,0 +254,0 @@ exports.hexToRgb = hexToRgb; |
/*! | ||
* CoreUI Pro v2.0.14 (https://coreui.io/pro/) | ||
* CoreUI Pro v2.0.19 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
*/ | ||
!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";e.getStyle=function(e,t){var r;void 0===t&&(t=document.body),r=e.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?function(){for(var n={},e=document.styleSheets,t="",r=e.length-1;-1<r;r--){for(var s=e[r].cssRules,o=s.length-1;-1<o;o--)if(".ie-custom-properties"===s[o].selectorText){t=s[o].cssText;break}if(t)break}return(t=t.substring(t.lastIndexOf("{")+1,t.lastIndexOf("}"))).split(";").forEach(function(e){if(e){var t=e.split(": ")[0],r=e.split(": ")[1];t&&r&&(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 n=7===e.length?(t=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),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 s=7===e.length?(r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)):(r=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),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";var o=function(){for(var n={},e=document.styleSheets,t="",r=e.length-1;-1<r;r--){for(var o=e[r].cssRules,s=o.length-1;-1<s;s--)if(".ie-custom-properties"===o[s].selectorText){t=o[s].cssText;break}if(t)break}return(t=t.substring(t.lastIndexOf("{")+1,t.lastIndexOf("}"))).split(";").forEach(function(e){if(e){var t=e.split(": ")[0],r=e.split(": ")[1];t&&r&&(n["--"+t.trim()]=r.trim())}}),n};e.deepObjectsMerge=function e(t,r){for(var n=Object.keys(r),o=0;o<n.length;o++){var s=n[o];r[s]instanceof Object&&Object.assign(r[s],e(t[s],r[s]))}return Object.assign(t||{},r),t},e.getColor=function(e,t){void 0===t&&(t=document.body);var r,n="--"+e;r=n.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?o()[n]:window.getComputedStyle(t,null).getPropertyValue(n).replace(/^\s/,"");return r||e},e.getStyle=function(e,t){var r;void 0===t&&(t=document.body),r=e.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?o()[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 n=7===e.length?(t=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),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,o;if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");return o=7===e.length?(r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)):(r=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),parseInt(e.substring(3,5),16)),"rgba("+r+", "+n+", "+o+", "+t/100+")"},e.rgbToHex=function(e){if("undefined"==typeof e)throw new Error("Hex color is not defined");if("transparent"===e)return"#00000000";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),o="0"+parseInt(t[3],10).toString(16);return"#"+r.slice(-2)+n.slice(-2)+o.slice(-2)},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=coreui-utilities.min.js.map |
/*! | ||
* CoreUI Pro v2.0.14 (https://coreui.io/pro/) | ||
* CoreUI Pro v2.0.19 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
@@ -32,3 +32,3 @@ */ | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): ajax-load.js | ||
* CoreUI (v2.0.19): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -45,3 +45,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'ajaxLoad'; | ||
var VERSION = '2.0.14'; | ||
var VERSION = '2.0.19'; | ||
var DATA_KEY = 'coreui.ajaxLoad'; | ||
@@ -239,3 +239,3 @@ var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): toggle-classes.js | ||
* CoreUI (v2.0.19): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -265,3 +265,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): aside-menu.js | ||
* CoreUI (v2.0.19): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -278,3 +278,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'aside-menu'; | ||
var VERSION = '2.0.14'; | ||
var VERSION = '2.0.19'; | ||
var DATA_KEY = 'coreui.aside-menu'; | ||
@@ -376,3 +376,3 @@ var EVENT_KEY = "." + DATA_KEY; | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): sidebar.js | ||
* CoreUI (v2.0.19): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -389,3 +389,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'sidebar'; | ||
var VERSION = '2.0.14'; | ||
var VERSION = '2.0.19'; | ||
var DATA_KEY = 'coreui.sidebar'; | ||
@@ -422,2 +422,3 @@ var EVENT_KEY = "." + DATA_KEY; | ||
NAV_LINK: '.nav-link', | ||
NAV_LINK_QUERIED: '.nav-link-queried', | ||
NAVIGATION_CONTAINER: '.sidebar-nav', | ||
@@ -468,5 +469,3 @@ NAVIGATION: '.sidebar-nav > .nav', | ||
} else { | ||
this.ps = this.makeScrollbar(); // ToDo: find real fix for ps rtl | ||
this.ps.isRtl = false; | ||
this.ps = this.makeScrollbar(); | ||
} | ||
@@ -480,5 +479,3 @@ } | ||
_this.ps = _this.makeScrollbar(); // ToDo: find real fix for ps rtl | ||
_this.ps.isRtl = false; | ||
_this.ps = _this.makeScrollbar(); | ||
}, Default.transition); | ||
@@ -494,5 +491,8 @@ } | ||
return new PerfectScrollbar(document.querySelector(container), { | ||
var ps = new PerfectScrollbar(document.querySelector(container), { | ||
suppressScrollX: true | ||
}); | ||
}); // ToDo: find real fix for ps rtl | ||
ps.isRtl = false; | ||
return ps; | ||
}; | ||
@@ -510,4 +510,10 @@ | ||
var link = value; | ||
var cUrl = String(window.location).split('?')[0]; | ||
var cUrl; | ||
if (link.classList.contains(Selector.NAV_LINK_QUERIED)) { | ||
cUrl = String(window.location); | ||
} else { | ||
cUrl = String(window.location).split('?')[0]; | ||
} | ||
if (cUrl.substr(cUrl.length - 1) === '#') { | ||
@@ -614,4 +620,5 @@ cUrl = cUrl.slice(0, -1); | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): get-style.js | ||
* CoreUI Utilities (v2.0.19): get-css-custom-properties.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
* @returns {string} css custom property name | ||
* -------------------------------------------------------------------------- | ||
@@ -653,2 +660,8 @@ */ | ||
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.19): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
* -------------------------------------------------------------------------- | ||
*/ | ||
var minIEVersion = 10; | ||
@@ -683,3 +696,3 @@ | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.19): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -720,3 +733,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.19): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -761,3 +774,3 @@ * -------------------------------------------------------------------------- | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): rgb-to-hex.js | ||
* CoreUI (v2.0.19): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -773,2 +786,6 @@ * -------------------------------------------------------------------------- | ||
if (color === 'transparent') { | ||
return '#00000000'; | ||
} | ||
var rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); | ||
@@ -788,3 +805,3 @@ | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): index.js | ||
* CoreUI (v2.0.19): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -791,0 +808,0 @@ * -------------------------------------------------------------------------- |
/*! | ||
* CoreUI Pro v2.0.14 (https://coreui.io/pro/) | ||
* CoreUI Pro v2.0.19 (https://coreui.io/pro/) | ||
* Copyright 2018 Łukasz Holeczek | ||
*/ | ||
!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,l,d,f,p,h,g,m,b,v,y,w,I,C,_,T,S,L,E,j,A,P,x,D,O,k,Q,U,q,N,R,G,K,H,M,V,z,B,J,Y,$,X,F=(n="ajaxLoad",s="coreui.ajaxLoad",c=(i=t).fn[n],u="active",l="open",d="view-script",f="click",p=".sidebar-nav .nav-dropdown",h=".sidebar-nav .nav-link",g=".sidebar-nav .nav-item",m=".view-script",b={defaultPage:"main.html",errorPage:"404.html",subpagesDirectory:"views/"},v=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=d,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(h).removeClass(u),i(p).removeClass(l),i(p+':has(a[href="'+e.replace(/^\//,"").split("?")[0]+'"])').addClass(l),i(g+' 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({},b,e)},e._addEventListeners=function(){var t=this;i(document).on(f,h+'[href!="#"]',function(e){e.preventDefault(),e.stopPropagation(),"_top"===e.currentTarget.target?t.loadTop(e.currentTarget.href):"_blank"===e.currentTarget.target?t.loadBlank(e.currentTarget.href):t.setUpUrl(e.currentTarget.getAttribute("href"))})},n._jQueryInterface=function(t){return this.each(function(){var e=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.14"}},{key:"Default",get:function(){return b}}]),n}(),i.fn[n]=v._jQueryInterface,i.fn[n].Constructor=v,i.fn[n].noConflict=function(){return i.fn[n]=c,v._jQueryInterface},v),W=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)},Z=(w="aside-menu",I="coreui.aside-menu",C=(y=t).fn[w],_={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},T=".aside-menu",S=".aside-menu-toggler",L=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],E=function(){function n(e){this._element=e,this._addEventListeners()}return n.prototype._addEventListeners=function(){y(S).on(_.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;W(t,L)})},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.14"}}]),n}(),y(window).on(_.LOAD_DATA_API,function(){var e=y(T);E._jQueryInterface.call(e)}),y.fn[w]=E._jQueryInterface,y.fn[w].Constructor=E,y.fn[w].noConflict=function(){return y.fn[w]=C,E._jQueryInterface},E),ee=(A="sidebar",P="coreui.sidebar",x=(j=t).fn[A],D=400,O="active",k="brand-minimized",Q="open",U="sidebar-minimized",q={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle",UPDATE:"update"},N="body",R=".brand-minimizer",G=".nav-dropdown-toggle",K=".nav-dropdown-items",H=".nav-item",M=".nav-link",V=".sidebar-nav",z=".sidebar-nav > .nav",B=".sidebar",J=".sidebar-minimizer",Y=".sidebar-toggler",$=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],X=function(){function n(e){this._element=e,this.ps=null,this.perfectScrollbar(q.INIT),this.setActiveLink(),this._addEventListeners()}var e=n.prototype;return e.perfectScrollbar=function(e){var t=this;"undefined"!=typeof r&&(e!==q.INIT||document.body.classList.contains(U)||(this.ps=this.makeScrollbar()),e===q.DESTROY&&this.destroyScrollbar(),e===q.TOGGLE&&(document.body.classList.contains(U)?this.destroyScrollbar():(this.ps=this.makeScrollbar(),this.ps.isRtl=!1)),e!==q.UPDATE||document.body.classList.contains(U)||setTimeout(function(){t.destroyScrollbar(),t.ps=t.makeScrollbar(),t.ps.isRtl=!1},D))},e.makeScrollbar=function(e){return void 0===e&&(e=V),new r(document.querySelector(e),{suppressScrollX:!0})},e.destroyScrollbar=function(){this.ps&&(this.ps.destroy(),this.ps=null)},e.setActiveLink=function(){j(z).find(M).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(O).parents(K).add(n).each(function(e,t){j(n=t).parent().addClass(Q)})})},e._addEventListeners=function(){var n=this;j(R).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(N).toggleClass(k)}),j(G).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.target;j(t).parent().toggleClass(Q),n.perfectScrollbar(q.UPDATE)}),j(J).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(N).toggleClass(U),n.perfectScrollbar(q.TOGGLE)}),j(Y).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;W(t,$)}),j(z+" > "+H+" "+M+":not("+G+")").on(q.CLICK,function(){document.body.classList.remove("sidebar-show")})},n._jQueryInterface=function(){return this.each(function(){var e=j(this),t=e.data(P);t||(t=new n(this),e.data(P,t))})},a(n,null,[{key:"VERSION",get:function(){return"2.0.14"}}]),n}(),j(window).on(q.LOAD_DATA_API,function(){var e=j(B);X._jQueryInterface.call(e)}),j.fn[A]=X._jQueryInterface,j.fn[A].Constructor=X,j.fn[A].noConflict=function(){return j.fn[A]=x,X._jQueryInterface},X);!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;void 0===t&&(t=document.body),n=e.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?function(){for(var r={},e=document.styleSheets,t="",n=e.length-1;-1<n;n--){for(var o=e[n].cssRules,a=o.length-1;-1<a;a--)if(".ie-custom-properties"===o[a].selectorText){t=o[a].cssText;break}if(t)break}return(t=t.substring(t.lastIndexOf("{")+1,t.lastIndexOf("}"))).split(";").forEach(function(e){if(e){var t=e.split(": ")[0],n=e.split(": ")[1];t&&n&&(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 r=7===e.length?(t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),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 o=7===e.length?(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)):(n=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),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=F,e.AsideMenu=Z,e.Sidebar=ee,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,l,d,f,p,h,g,m,b,v,y,w,I,C,_,S,T,L,E,j,A,P,x,k,D,O,Q,U,q,N,G,R,K,H,M,V,z,B,J,Y,$,X,F,W=(n="ajaxLoad",s="coreui.ajaxLoad",c=(i=t).fn[n],u="active",l="open",d="view-script",f="click",p=".sidebar-nav .nav-dropdown",h=".sidebar-nav .nav-link",g=".sidebar-nav .nav-item",m=".view-script",b={defaultPage:"main.html",errorPage:"404.html",subpagesDirectory:"views/"},v=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=d,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(h).removeClass(u),i(p).removeClass(l),i(p+':has(a[href="'+e.replace(/^\//,"").split("?")[0]+'"])').addClass(l),i(g+' 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({},b,e)},e._addEventListeners=function(){var t=this;i(document).on(f,h+'[href!="#"]',function(e){e.preventDefault(),e.stopPropagation(),"_top"===e.currentTarget.target?t.loadTop(e.currentTarget.href):"_blank"===e.currentTarget.target?t.loadBlank(e.currentTarget.href):t.setUpUrl(e.currentTarget.getAttribute("href"))})},n._jQueryInterface=function(t){return this.each(function(){var e=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.19"}},{key:"Default",get:function(){return b}}]),n}(),i.fn[n]=v._jQueryInterface,i.fn[n].Constructor=v,i.fn[n].noConflict=function(){return i.fn[n]=c,v._jQueryInterface},v),Z=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)},ee=(w="aside-menu",I="coreui.aside-menu",C=(y=t).fn[w],_={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},S=".aside-menu",T=".aside-menu-toggler",L=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],E=function(){function n(e){this._element=e,this._addEventListeners()}return n.prototype._addEventListeners=function(){y(T).on(_.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;Z(t,L)})},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.19"}}]),n}(),y(window).on(_.LOAD_DATA_API,function(){var e=y(S);E._jQueryInterface.call(e)}),y.fn[w]=E._jQueryInterface,y.fn[w].Constructor=E,y.fn[w].noConflict=function(){return y.fn[w]=C,E._jQueryInterface},E),te=(A="sidebar",P="coreui.sidebar",x=(j=t).fn[A],k=400,D="active",O="brand-minimized",Q="open",U="sidebar-minimized",q={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle",UPDATE:"update"},N="body",G=".brand-minimizer",R=".nav-dropdown-toggle",K=".nav-dropdown-items",H=".nav-item",M=".nav-link",V=".nav-link-queried",z=".sidebar-nav",B=".sidebar-nav > .nav",J=".sidebar",Y=".sidebar-minimizer",$=".sidebar-toggler",X=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],F=function(){function n(e){this._element=e,this.ps=null,this.perfectScrollbar(q.INIT),this.setActiveLink(),this._addEventListeners()}var e=n.prototype;return e.perfectScrollbar=function(e){var t=this;"undefined"!=typeof r&&(e!==q.INIT||document.body.classList.contains(U)||(this.ps=this.makeScrollbar()),e===q.DESTROY&&this.destroyScrollbar(),e===q.TOGGLE&&(document.body.classList.contains(U)?this.destroyScrollbar():this.ps=this.makeScrollbar()),e!==q.UPDATE||document.body.classList.contains(U)||setTimeout(function(){t.destroyScrollbar(),t.ps=t.makeScrollbar()},k))},e.makeScrollbar=function(e){void 0===e&&(e=z);var t=new r(document.querySelector(e),{suppressScrollX:!0});return t.isRtl=!1,t},e.destroyScrollbar=function(){this.ps&&(this.ps.destroy(),this.ps=null)},e.setActiveLink=function(){j(B).find(M).each(function(e,t){var n,r=t;"#"===(n=r.classList.contains(V)?String(window.location):String(window.location).split("?")[0]).substr(n.length-1)&&(n=n.slice(0,-1)),j(j(r))[0].href===n&&j(r).addClass(D).parents(K).add(r).each(function(e,t){j(r=t).parent().addClass(Q)})})},e._addEventListeners=function(){var n=this;j(G).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(N).toggleClass(O)}),j(R).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.target;j(t).parent().toggleClass(Q),n.perfectScrollbar(q.UPDATE)}),j(Y).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation(),j(N).toggleClass(U),n.perfectScrollbar(q.TOGGLE)}),j($).on(q.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;Z(t,X)}),j(B+" > "+H+" "+M+":not("+R+")").on(q.CLICK,function(){document.body.classList.remove("sidebar-show")})},n._jQueryInterface=function(){return this.each(function(){var e=j(this),t=e.data(P);t||(t=new n(this),e.data(P,t))})},a(n,null,[{key:"VERSION",get:function(){return"2.0.19"}}]),n}(),j(window).on(q.LOAD_DATA_API,function(){var e=j(J);F._jQueryInterface.call(e)}),j.fn[A]=F._jQueryInterface,j.fn[A].Constructor=F,j.fn[A].noConflict=function(){return j.fn[A]=x,F._jQueryInterface},F);!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;void 0===t&&(t=document.body),n=e.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?function(){for(var r={},e=document.styleSheets,t="",n=e.length-1;-1<n;n--){for(var o=e[n].cssRules,a=o.length-1;-1<a;a--)if(".ie-custom-properties"===o[a].selectorText){t=o[a].cssText;break}if(t)break}return(t=t.substring(t.lastIndexOf("{")+1,t.lastIndexOf("}"))).split(";").forEach(function(e){if(e){var t=e.split(": ")[0],n=e.split(": ")[1];t&&n&&(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 r=7===e.length?(t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),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 o=7===e.length?(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)):(n=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),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");if("transparent"===e)return"#00000000";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=W,e.AsideMenu=ee,e.Sidebar=te,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.14): ajax-load.js | ||
* CoreUI (v2.0.19): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -19,3 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'ajaxLoad'; | ||
var VERSION = '2.0.14'; | ||
var VERSION = '2.0.19'; | ||
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.14): aside-menu.js | ||
* CoreUI (v2.0.19): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -19,3 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'aside-menu'; | ||
var VERSION = '2.0.14'; | ||
var VERSION = '2.0.19'; | ||
var DATA_KEY = 'coreui.aside-menu'; | ||
@@ -22,0 +22,0 @@ var EVENT_KEY = "." + DATA_KEY; |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): index.js | ||
* CoreUI (v2.0.19): 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.14): sidebar.js | ||
* CoreUI (v2.0.19): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -19,3 +19,3 @@ * -------------------------------------------------------------------------- | ||
var NAME = 'sidebar'; | ||
var VERSION = '2.0.14'; | ||
var VERSION = '2.0.19'; | ||
var DATA_KEY = 'coreui.sidebar'; | ||
@@ -52,2 +52,3 @@ var EVENT_KEY = "." + DATA_KEY; | ||
NAV_LINK: '.nav-link', | ||
NAV_LINK_QUERIED: '.nav-link-queried', | ||
NAVIGATION_CONTAINER: '.sidebar-nav', | ||
@@ -98,5 +99,3 @@ NAVIGATION: '.sidebar-nav > .nav', | ||
} else { | ||
this.ps = this.makeScrollbar(); // ToDo: find real fix for ps rtl | ||
this.ps.isRtl = false; | ||
this.ps = this.makeScrollbar(); | ||
} | ||
@@ -110,5 +109,3 @@ } | ||
_this.ps = _this.makeScrollbar(); // ToDo: find real fix for ps rtl | ||
_this.ps.isRtl = false; | ||
_this.ps = _this.makeScrollbar(); | ||
}, Default.transition); | ||
@@ -124,5 +121,8 @@ } | ||
return new PerfectScrollbar(document.querySelector(container), { | ||
var ps = new PerfectScrollbar(document.querySelector(container), { | ||
suppressScrollX: true | ||
}); | ||
}); // ToDo: find real fix for ps rtl | ||
ps.isRtl = false; | ||
return ps; | ||
}; | ||
@@ -140,4 +140,10 @@ | ||
var link = value; | ||
var cUrl = String(window.location).split('?')[0]; | ||
var cUrl; | ||
if (link.classList.contains(Selector.NAV_LINK_QUERIED)) { | ||
cUrl = String(window.location); | ||
} else { | ||
cUrl = String(window.location).split('?')[0]; | ||
} | ||
if (cUrl.substr(cUrl.length - 1) === '#') { | ||
@@ -144,0 +150,0 @@ cUrl = cUrl.slice(0, -1); |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): toggle-classes.js | ||
* CoreUI (v2.0.19): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): get-style.js | ||
* CoreUI Utilities (v2.0.19): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
* -------------------------------------------------------------------------- | ||
*/ | ||
var getCssCustomProperties = function getCssCustomProperties() { | ||
var cssCustomProperties = {}; | ||
var sheets = document.styleSheets; | ||
var cssText = ''; | ||
for (var i = sheets.length - 1; i > -1; i--) { | ||
var rules = sheets[i].cssRules; | ||
for (var j = rules.length - 1; j > -1; j--) { | ||
if (rules[j].selectorText === '.ie-custom-properties') { | ||
cssText = rules[j].cssText; | ||
break; | ||
} | ||
} | ||
if (cssText) { | ||
break; | ||
} | ||
} | ||
cssText = cssText.substring(cssText.lastIndexOf('{') + 1, cssText.lastIndexOf('}')); | ||
cssText.split(';').forEach(function (property) { | ||
if (property) { | ||
var name = property.split(': ')[0]; | ||
var value = property.split(': ')[1]; | ||
if (name && value) { | ||
cssCustomProperties["--" + name.trim()] = value.trim(); | ||
} | ||
} | ||
}); | ||
return cssCustomProperties; | ||
}; | ||
var minIEVersion = 10; | ||
@@ -42,0 +8,0 @@ |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.19): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.19): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): rgb-to-hex.js | ||
* CoreUI (v2.0.19): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -14,2 +14,6 @@ * -------------------------------------------------------------------------- | ||
if (color === 'transparent') { | ||
return '#00000000'; | ||
} | ||
var rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); | ||
@@ -16,0 +20,0 @@ |
@@ -5,3 +5,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): ajax-load.js | ||
* CoreUI (v2.0.19): ajax-load.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -20,3 +20,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'ajaxLoad' | ||
const VERSION = '2.0.14' | ||
const VERSION = '2.0.19' | ||
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.14): aside-menu.js | ||
* CoreUI (v2.0.19): aside-menu.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -20,3 +20,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'aside-menu' | ||
const VERSION = '2.0.14' | ||
const VERSION = '2.0.19' | ||
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.14): index.js | ||
* CoreUI (v2.0.19): index.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -11,0 +11,0 @@ * -------------------------------------------------------------------------- |
@@ -7,3 +7,3 @@ import $ from 'jquery' | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): sidebar.js | ||
* CoreUI (v2.0.19): sidebar.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -21,3 +21,3 @@ * -------------------------------------------------------------------------- | ||
const NAME = 'sidebar' | ||
const VERSION = '2.0.14' | ||
const VERSION = '2.0.19' | ||
const DATA_KEY = 'coreui.sidebar' | ||
@@ -58,2 +58,3 @@ const EVENT_KEY = `.${DATA_KEY}` | ||
NAV_LINK : '.nav-link', | ||
NAV_LINK_QUERIED : '.nav-link-queried', | ||
NAVIGATION_CONTAINER : '.sidebar-nav', | ||
@@ -112,4 +113,2 @@ NAVIGATION : '.sidebar-nav > .nav', | ||
this.ps = this.makeScrollbar() | ||
// ToDo: find real fix for ps rtl | ||
this.ps.isRtl = false | ||
} | ||
@@ -123,4 +122,2 @@ } | ||
this.ps = this.makeScrollbar() | ||
// ToDo: find real fix for ps rtl | ||
this.ps.isRtl = false | ||
}, Default.transition) | ||
@@ -132,5 +129,8 @@ } | ||
makeScrollbar(container = Selector.NAVIGATION_CONTAINER) { | ||
return new PerfectScrollbar(document.querySelector(container), { | ||
const ps = new PerfectScrollbar(document.querySelector(container), { | ||
suppressScrollX: true | ||
}) | ||
// ToDo: find real fix for ps rtl | ||
ps.isRtl = false | ||
return ps | ||
} | ||
@@ -148,8 +148,13 @@ | ||
let link = value | ||
let cUrl = String(window.location).split('?')[0] | ||
let cUrl | ||
if (link.classList.contains(Selector.NAV_LINK_QUERIED)) { | ||
cUrl = String(window.location) | ||
} else { | ||
cUrl = String(window.location).split('?')[0] | ||
} | ||
if (cUrl.substr(cUrl.length - 1) === '#') { | ||
cUrl = cUrl.slice(0, -1) | ||
} | ||
if ($($(link))[0].href === cUrl) { | ||
@@ -156,0 +161,0 @@ $(link).addClass(ClassName.ACTIVE).parents(Selector.NAV_DROPDOWN_ITEMS).add(link).each((key, value) => { |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): toggle-classes.js | ||
* CoreUI (v2.0.19): toggle-classes.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): get-style.js | ||
* CoreUI Utilities (v2.0.19): get-style.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
* -------------------------------------------------------------------------- | ||
*/ | ||
import getCssCustomProperties from './get-css-custom-properties' | ||
const getCssCustomProperties = () => { | ||
const cssCustomProperties = {} | ||
const sheets = document.styleSheets | ||
let cssText = '' | ||
for (let i = sheets.length - 1; i > -1; i--) { | ||
const rules = sheets[i].cssRules | ||
for (let j = rules.length - 1; j > -1; j--) { | ||
if (rules[j].selectorText === '.ie-custom-properties') { | ||
cssText = rules[j].cssText | ||
break | ||
} | ||
} | ||
if (cssText) { | ||
break | ||
} | ||
} | ||
cssText = cssText.substring( | ||
cssText.lastIndexOf('{') + 1, | ||
cssText.lastIndexOf('}') | ||
) | ||
cssText.split(';').forEach((property) => { | ||
if (property) { | ||
const name = property.split(': ')[0] | ||
const value = property.split(': ')[1] | ||
if (name && value) { | ||
cssCustomProperties[`--${name.trim()}`] = value.trim() | ||
} | ||
} | ||
}) | ||
return cssCustomProperties | ||
} | ||
const minIEVersion = 10 | ||
@@ -43,0 +10,0 @@ const isIE1x = () => Boolean(document.documentMode) && document.documentMode >= minIEVersion |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): hex-to-rgb.js | ||
* CoreUI Utilities (v2.0.19): hex-to-rgb.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI Utilities (v2.0.14): hex-to-rgba.js | ||
* CoreUI Utilities (v2.0.19): hex-to-rgba.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -5,0 +5,0 @@ * -------------------------------------------------------------------------- |
@@ -0,1 +1,3 @@ | ||
import deepObjectsMerge from './deep-objects-merge' | ||
import getColor from './get-color' | ||
import getStyle from './get-style' | ||
@@ -7,2 +9,4 @@ import hexToRgb from './hex-to-rgb' | ||
export { | ||
deepObjectsMerge, | ||
getColor, | ||
getStyle, | ||
@@ -9,0 +13,0 @@ hexToRgb, |
/** | ||
* -------------------------------------------------------------------------- | ||
* CoreUI (v2.0.14): rgb-to-hex.js | ||
* CoreUI (v2.0.19): rgb-to-hex.js | ||
* Licensed under MIT (https://coreui.io/license) | ||
@@ -13,2 +13,5 @@ * -------------------------------------------------------------------------- | ||
} | ||
if (color === 'transparent') { | ||
return '#00000000' | ||
} | ||
const rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i) | ||
@@ -15,0 +18,0 @@ if (!rgb) { |
{ | ||
"name": "@coreui/coreui-pro", | ||
"version": "2.0.14", | ||
"version": "2.0.19", | ||
"description": "UI Kit built on top of Bootstrap 4", | ||
@@ -83,6 +83,6 @@ "keywords": [ | ||
"@babel/preset-env": "^7.1.0", | ||
"autoprefixer": "^9.1.5", | ||
"autoprefixer": "^9.2.0", | ||
"babel-eslint": "^10.0.1", | ||
"babel-plugin-external-helpers": "^7.0.0-beta.3", | ||
"babel-plugin-istanbul": "^5.0.1", | ||
"babel-plugin-istanbul": "^5.1.0", | ||
"babel-plugin-transform-es2015-modules-strip": "^0.1.1", | ||
@@ -93,5 +93,5 @@ "babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3", | ||
"cross-env": "^5.2.0", | ||
"eslint": "^5.6.1", | ||
"eslint-plugin-compat": "^2.5.1", | ||
"node-sass": "^4.9.3", | ||
"eslint": "^5.7.0", | ||
"eslint-plugin-compat": "^2.6.2", | ||
"node-sass": "^4.9.4", | ||
"nodemon": "^1.18.4", | ||
@@ -101,6 +101,6 @@ "npm-run-all": "^4.1.3", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.66.2", | ||
"rollup": "^0.66.6", | ||
"rollup-plugin-babel": "^4.0.3", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"semver": "^5.5.1", | ||
"semver": "^5.6.0", | ||
"shelljs": "^0.8.2", | ||
@@ -107,0 +107,0 @@ "shx": "^0.3.2", |
@@ -55,3 +55,3 @@ # CoreUI - WebApp UI Kit built on top of Bootstrap 4 [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/intent/tweet?text=CoreUI%20-%20Free%20Bootstrap%204%20Admin%20Template%20&url=https://coreui.io&hashtags=bootstrap,admin,template,dashboard,panel,free,angular,react,vue) | ||
``` bash | ||
$ yarn add @coreui/coreui@2.0.14 | ||
$ yarn add @coreui/coreui@2.0.19 | ||
``` | ||
@@ -62,3 +62,3 @@ | ||
``` bash | ||
$ composer require coreui/coreui:2.0.14 | ||
$ composer require coreui/coreui:2.0.19 | ||
``` | ||
@@ -65,0 +65,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
6080784
136
41549