themes/ignite-admin/webapp/ignite/js/coreui/index.js
import './polyfill'
import $ from 'jquery'
import AjaxLoad from './ajax-load'
import AsideMenu from './aside-menu'
import Sidebar from './sidebar'
/**
* --------------------------------------------------------------------------
* CoreUI (v2.1.9): index.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
(($) => {
if (typeof $ === 'undefined') {
throw new TypeError('CoreUI\'s JavaScript requires jQuery. jQuery must be included before CoreUI\'s JavaScript.')
}
const version = $.fn.jquery.split(' ')[0].split('.')
const minMajor = 1
const ltMajor = 2
const minMinor = 9
const minPatch = 1
const maxMajor = 4
if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
throw new Error('CoreUI\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0')
}
})($)
export {
AjaxLoad,
AsideMenu,
Sidebar
}
// Global functions
import getStyle from './utilities/get-style'
window.getStyle = getStyle
import hexToRgb from './utilities/hex-to-rgb'
window.hexToRgb = hexToRgb
import hexToRgba from './utilities/hex-to-rgba'
window.hexToRgba = hexToRgba
import rgbToHex from './utilities/rgb-to-hex'
window.rgbToHex = rgbToHex