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

@coreui/coreui-pro

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coreui/coreui-pro - npm Package Compare versions

Comparing version 2.1.14 to 3.0.0-apha.13

css/alert.css

259

CHANGELOG.md

@@ -1,174 +0,37 @@

## v2.1.14
- fix(scss): dark popover variables
###### Dependencies update:
- update `rollup` to `^1.15.4`
## v2.1.13
- fix(scss): hotfix for email dark
- fix(scss): hotfix for quill toolbar dark
###### Dependencies update:
- update `rollup` to `1.15.3`
- update `rollup-plugin-node-resolve` to `5.0.2`
## v2.1.12
- fix(scss): new mobile breakpoint variables
```scss
// Breakpoints for mobile defaults:
$breakpoint-mobile-up: lg !default;
$breakpoint-mobile-down: md !default;
```
usage: to shift mobile breakpoint in your template:
1. override `_variables.scss`
```scss
// Variable overrides
$breakpoint-mobile-up: md;
$breakpoint-mobile-down: sm;
```
2. and complementary changes in `index.html`
- body: `sidebar-lg-show` -> `sidebar-md-show`
- mobile sidebar toggler button: `d-lg-none` -> `d-md-none`
- sidebar toggler button:
- `d-md-down-none` -> `d-sm-down-none`
- `data-toggle="sidebar-lg-show"` -> `data-toggle="sidebar-md-show"`
###### Dependencies update:
- update `autoprefixer` to `^9.6.0`
- update `rollup` to `^1.15.1`
- update `stylelint` to `^10.1.0`
## v2.1.11
- fix(sidebar): add optional container `sidebar-scroll`. Thanks @MartijnBastiaansen
- fixes an issue where `sidebar-toggler` causes an error when there is no `sidebar-nav` element in it
- if no container is set, returns null for perfectScrollbar
###### Dependencies update:
- update `rollup` to `^1.13.1`
- update `stylelint-scss` to `^3.8.0`
## v2.1.10
- chore: drop `@babel/polyfill` in favour of `core-js@3` and `regenerator-runtime`
###### Dependencies update:
- update `@babel/polyfill` to `^7.4.4`
- update `@babel/cli` to `^7.4.4`
- update `@babel/core` to `^7.4.5`
- update `@babel/plugin-proposal-object-rest-spread` to `^7.4.4`
- update `@babel/plugin-transform-runtime` to `^7.4.4`
- update `@babel/preset-env` to `^7.4.5`
- update `autoprefixer` to `^9.5.1`
- update `babel-plugin-istanbul` to `^5.1.4`
- update `clean-css-cli` to `^4.3.0`
- update `eslint` to `^5.16.0`
- update `node-sass` to `^4.12.0`
- update `nodemon` to `^1.19.1`
- update `rollup` to `^1.13.0`
- update `stylelint-config-recommended-scss` to `^3.3.0`
- update `stylelint-config-standard` to `^18.3.0`
- update `stylelint-order` to `^2.2.1`
- update `stylelint-scss` to `^3.7.0`
- update `uglify-js` to `^3.6.0`
- update `eslint-plugin-compat` to `^3.1.1`
- update `rollup-plugin-commonjs` to `^10.0.0`
- update `rollup-plugin-node-resolve` to `^5.0.1`
- update `semver` to `^6.1.1`
- update `stylelint` to `^10.0.1`
- update `stylelint-order` to `^3.0.0`
## v2.1.9
- fix(dropdown): rtl caret spacing
- fix(input-group): rtl append, prepend border radius and margins
- fix(rtl): rtl float, margin and padding
- fix(button-group): rtl margin and border-radius
###### Dependencies update:
- update `@babel/core` to `^7.4.0`
- update `@babel/plugin-proposal-object-rest-spread` to `^7.4.0`
- update `@babel/plugin-transform-runtime` to `^7.4.0`
- update `@babel/preset-env` to `^7.4.2`
- update `autoprefixer` to `^9.5.0`
- update `eslint` to `^5.15.3`
- update `rollup` to `^1.7.0`
- update `uglify-js` to `^3.5.1`
## v2.1.8
- fix(scss): `cssnano` mangles `background-position` temp fix (re: BS4 misplaced validation feedback icons)
###### Dependencies update:
- update `@babel/core` to `^7.3.4`
- update `@babel/plugin-proposal-object-rest-spread` to `^7.3.4`
- update `@babel/plugin-transform-runtime` to `^7.3.4`
- update `@babel/preset-env` to `^7.3.4`
- update `autoprefixer` to `^9.4.10`
- update `eslint` to `^5.15.1`
- update `postcss-cli` to `^6.1.2`
- update `rollup` to `^1.6.0`
- update `rollup-plugin-commonjs` to `^9.2.1`
- update `rollup-plugin-node-resolve` to `^4.0.1`
- update `stylelint-order` to `^2.1.0`
- update `stylelint-scss` to `^3.5.4`
## v2.1.7
- update `bootstrap` to `^4.3.1` fixes *Class 'btn' style white-space: nowrap; has been removed creating issues with the btn with favicon* [#151](https://github.com/coreui/coreui-free-react-admin-template/issues/151)
###### Dependencies update:
- update `bootstrap` to `^4.3.1`
- update `@babel/core` to `^7.3.3`
- update `@babel/plugin-proposal-object-rest-spread` to `^7.3.2`
- update `@babel/preset-env` to `^7.3.1`
- update `autoprefixer` to `^9.4.8`
- update `babel-plugin-istanbul` to `^5.1.1`
- update `eslint` to `^5.14.1`
- update `eslint-plugin-compat` to `^2.7.0`
- update `nodemon` to `^1.18.10`
- update `rollup` to `^1.2.2`
- update `rollup-plugin-babel` to `^4.3.2`
- update `rollup-plugin-node-resolve` to `^4.0.0`
- update `stylelint` to `^9.10.1`
- update `stylelint-scss` to `^3.5.3`
- update `popper.js` to `^1.14.7`
## v2.1.6
###### Dependencies update:
- chore: update `bootstrap` to `^4.2.1`
- chore: update `@babel/polyfill` to `^7.2.5`
- chore: update `@babel/cli` to `^7.2.3`
- chore: update `@babel/core` to `^7.2.2`
- chore: update `@babel/preset-env` to `^7.2.3`
- chore: update `autoprefixer` to `^9.4.5`
- chore: update `eslint` to `^5.12.0`
- chore: update `node-sass` to `^4.11.0`
- chore: update `nodemon` to `^1.18.9`
- chore: update `postcss-cli` to `^6.1.1`
- chore: update `rimraf` to `^2.6.3`
- chore: update `rollup` to `^0.68.2`
- chore: update `rollup-plugin-babel` to `^4.3.0`
- chore: update `stylelint-scss` to `^3.5.0`
###### Pull Requests:
- Re-added composer file
- Re-added composer file so new versions can be downloaded via composer
- Replaced relative paths in .scss files so files can be generated correctly
## v2.1.4
- fix(scss): .sidebar .nav-link.disabled
- chore: update `@babel/cli` to `^7.2.0`
- chore: update `@babel/core` to `^7.2.0`
- chore: update `@babel/plugin-external-helpers` to `^7.2.0`
- chore: update `@babel/plugin-proposal-object-rest-spread` to `^7.2.0`
- chore: update `@babel/plugin-proposal-throw-expressions` to `^7.2.0`
- chore: update `@babel/plugin-transform-runtime` to `^7.2.0`
- chore: update `@babel/preset-env` to `^7.2.0`
- chore: update `autoprefixer` to `^9.4.2`
- chore: update `rollup` to `^0.67.4`
- chore: update `stylelint` to `^9.9.0`
- chore: update `stylelint-order` to `^2.0.0`
- chore: update `stylelint-scss` to `^3.4.1`
- chore: update `eslint` to `5.9.0`
## v3.0.0-next
- chore: Move the browserslist config to a separate file.
- chore add `bundlesize`
- chore add `find-unused-sass-variables`
- chore: update `bootstrap` to `4.2.1`
- chore: update `@babel/cli` to `7.2.0`
- chore: update `@babel/core` to `7.2.0`
- chore: update `@babel/plugin-external-helpers` to `7.2.0`
- chore: update `@babel/plugin-proposal-object-rest-spread` to `7.2.0`
- chore: update `@babel/plugin-proposal-throw-expressions` to `7.2.0`
- chore: update `@babel/plugin-transform-runtime` to `7.2.0`
- chore: update `@babel/preset-env` to `7.2.0`
- chore: update `autoprefixer` to `9.4.2`
- chore: update `eslint` to `5.10.0`
- chore: update `node-sass` to `4.11.0`
- chore: update `nodemon` to `1.18.8`
- chore: update `rollup` to `0.67.4`
- chore: update `rollup-plugin-babel` to `4.1.0`
- chore: update `rollup-plugin-node-resolve` to `4.0.0`
- chore: update `stylelint` to `9.9.0`
- chore: update `stylelint-order` to `2.0.0`
- chore: update `stylelint-scss` to `3.4.1`
## v2.1.3
- fix: update `nodemon` to `1.18.7` (vulnerability removed)
- fix: update `npm-run-all` to `^4.1.5` (vulnerability removed)
- chore: update `stylelint-order` to `2.0.0`
- chore: update `nodemon` to `1.18.7` (remove vulnerability)
## v2.1.2
- fix: devDependencies security issues (event-stream, flatmap-stream)
- chore: dependencies update
- update `npm-run-all` to `^4.1.5`
- reinstall `nodemon`
```bash
npm uninstall nodemon
npm install --save-dev nodemon
```
## v2.1.1

@@ -180,3 +43,5 @@ - fix(sidebar): `url("data:,")` turns into `url("'data:,'")`

3. angular 7 cli build complains on `url("'data:,'")`
- chore: update `@babel/cli` to `7.1.5`
- chore: update `stylelint` to `9.8.0`
- chore: update `stylelint-scss` to `3.4.0`
- chore: update `shelljs` to `0.8.3`

@@ -189,11 +54,7 @@ - chore: update `@babel/preset-env` to `7.1.6`

## v2.1.0
- chore: update `@babel/cli` to `7.1.5`
- chore: update `@babel/core` to `7.1.5`
- chore: update `@babel/preset-env` to `7.1.5`
- chore: update `stylelint-scss` to `3.4.0`
---
- feat(scss): sidebar-nav-link-disabled
- chore: update `nodemon` to `1.18.6`
---
- fix(.sidebar-minimizer): add `cursor: pointer`
## v2.0.26
- fix(.sidebar-minimizer): add `cursor: pointer`
- feat: delegated event handlers to support turbolinks (sidebar, aside-menu)- thanks @RyanVasichko

@@ -204,10 +65,16 @@ - chore: update `node-sass` to `4.10.0`

## v2.0.25
- chore: update `eslint-plugin-compat` to `2.6.3`
- fix(buttons.scss): remove `button { @extend .btn; }`
## v2.0.24
- fix(build): add missing `commonjs` for utilities
- chore: add `@babel/polyfill`
- fix(ie): add `NodeList` `forEach` polyfill
- fix(ie): add `NodeList` `forEach` polyfill
- fix(sidebar): add `dataset.toggle` ie10 fix
- fix(aside-menu): add `dataset.toggle` ie10 fix
- fix(aside-menu): add `dataset.toggle` ie10 fix
- chore(build): add `rollup-plugin-commonjs`
## v2.0.23
_broken build, do not use_
## v2.0.22
- fix(buttons.scss): wrong cursor for disabled state

@@ -217,3 +84,5 @@ - chore: update `eslint` to `5.8.0`

- chore: update `stylelint` to `9.7.1`
- feat(sidebar): mobile clickout behaviour
## v2.0.21
- feat(sidebar): mobile clickout behaviour
- chore: update `@babel/plugin-external-helpers` to `7.0.0`

@@ -225,7 +94,6 @@ - chore: update `autoprefixer` to `9.3.1`

## v2.0.20
- fix(layout): sidebar on mobile issue [#23](https://github.com/coreui/coreui-angular/issues/23)
- fix(layout): sidebar on mobile issue [#23](https://github.com/coreui/coreui-angular/issues/23)
- fix: sidebar, sidebar-minimizer `rtl` ie issues, tweaks
- refactor(sidebar.js): ps minor cleanup
- chore: update `autoprefixer` to `9.2.1`
- chore: update `postcss-cli` to `6.0.1`

@@ -249,3 +117,3 @@ ## v2.0.19

- fix(card): `rtl` for `card-header` icon margins
- fix(sidebar): `rtl` for `sidebar-minimizer` icon
- fix(sidebar): `rtl` for `sidebar-minimizer` icon
- chore: update `rollup` to `0.66.6`

@@ -304,29 +172,2 @@ - thanks @MrDevIr

## v2.0.7
- fix(sidebar) mobile sidebar not dismissed on link click
- chore: update `bootstrap` to `4.1.3`
- chore: update `@babel/cli` to `7.0.0`
- chore: update `@babel/core` to `7.0.0`
- chore: update `@babel/plugin-proposal-object-rest-spread` to `7.0.0`
- chore: update `@babel/plugin-proposal-throw-expressions` to `7.0.0`
- chore: update `@babel/plugin-transform-runtime` to `7.0.0`
- chore: update `@babel/preset-env` to `7.0.0`
- chore: update `autoprefixer` to `9.1.5`
- chore: update `babel-eslint` to `9.0.0`
- chore: update `babel-plugin-istanbul` to `5.0.1`
- chore: update `clean-css-cli` to `4.2.1`
- chore: update `eslint` to `5.5.0`
- chore: update `eslint-plugin-compat` to `2.5.1`
- chore: update `node-sass` to `4.9.3`
- chore: update `nodemon` to `1.18.4`
- chore: update `postcss-cli` to `6.0.0`
- chore: update `rollup` to `0.65.0`
- chore: update `rollup-plugin-babel` to `4.0.3`
- chore: update `rollup-plugin-node-resolve` to `3.4.0`
- chore: update `semver` to `5.5.1`
- chore: update `stylelint` to `9.5.0`
- chore: update `stylelint-order` to `1.0.0`
- chore: update `stylelint-scss` to `3.3.0`
- chore: update `uglify-js` to `3.4.9`
## v2.0.6

@@ -333,0 +174,0 @@ - fix(sidebar) static mobile sidebar not dismissed on link click

/*!
* CoreUI Pro v2.1.14 (https://coreui.io/pro/)
* CoreUI v3.0.0-apha.13 (https://coreui.io)
* Copyright 2019 Łukasz Holeczek
* Licensed under MIT (https://coreui.io)
*/

@@ -13,3 +14,3 @@ (function (global, factory) {

* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): classes.js
* CoreUI Utilities (v3.0.0-apha.13): classes.js
* Licensed under MIT (https://coreui.io/license)

@@ -25,558 +26,2 @@ * --------------------------------------------------------------------------

var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
var O = 'object';
var check = function (it) {
return it && it.Math == Math && it;
};
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global_1 =
// eslint-disable-next-line no-undef
check(typeof globalThis == O && globalThis) ||
check(typeof window == O && window) ||
check(typeof self == O && self) ||
check(typeof commonjsGlobal == O && commonjsGlobal) ||
// eslint-disable-next-line no-new-func
Function('return this')();
var fails = function (exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};
// Thank's IE8 for his funny defineProperty
var descriptors = !fails(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor(this, V);
return !!descriptor && descriptor.enumerable;
} : nativePropertyIsEnumerable;
var objectPropertyIsEnumerable = {
f: f
};
var createPropertyDescriptor = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
var toString = {}.toString;
var classofRaw = function (it) {
return toString.call(it).slice(8, -1);
};
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var split = ''.split;
var indexedObject = fails(function () {
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
// eslint-disable-next-line no-prototype-builtins
return !Object('z').propertyIsEnumerable(0);
}) ? function (it) {
return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
} : Object;
// `RequireObjectCoercible` abstract operation
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
var requireObjectCoercible = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
// toObject with fallback for non-array-like ES3 strings
var toIndexedObject = function (it) {
return indexedObject(requireObjectCoercible(it));
};
var isObject = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
// 7.1.1 ToPrimitive(input [, PreferredType])
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
var toPrimitive = function (it, S) {
if (!isObject(it)) return it;
var fn, val;
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
throw TypeError("Can't convert object to primitive value");
};
var hasOwnProperty = {}.hasOwnProperty;
var has = function (it, key) {
return hasOwnProperty.call(it, key);
};
var document$1 = global_1.document;
// typeof document.createElement is 'object' in old IE
var exist = isObject(document$1) && isObject(document$1.createElement);
var documentCreateElement = function (it) {
return exist ? document$1.createElement(it) : {};
};
// Thank's IE8 for his funny defineProperty
var ie8DomDefine = !descriptors && !fails(function () {
return Object.defineProperty(documentCreateElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (ie8DomDefine) try {
return nativeGetOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
};
var objectGetOwnPropertyDescriptor = {
f: f$1
};
var anObject = function (it) {
if (!isObject(it)) {
throw TypeError(String(it) + ' is not an object');
} return it;
};
var nativeDefineProperty = Object.defineProperty;
var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (ie8DomDefine) try {
return nativeDefineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};
var objectDefineProperty = {
f: f$2
};
var hide = descriptors ? function (object, key, value) {
return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
var setGlobal = function (key, value) {
try {
hide(global_1, key, value);
} catch (error) {
global_1[key] = value;
} return value;
};
var shared = createCommonjsModule(function (module) {
var SHARED = '__core-js_shared__';
var store = global_1[SHARED] || setGlobal(SHARED, {});
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: '3.1.3',
mode: 'global',
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
});
});
var functionToString = shared('native-function-to-string', Function.toString);
var WeakMap = global_1.WeakMap;
var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
var id = 0;
var postfix = Math.random();
var uid = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + postfix).toString(36));
};
var keys = shared('keys');
var sharedKey = function (key) {
return keys[key] || (keys[key] = uid(key));
};
var hiddenKeys = {};
var WeakMap$1 = global_1.WeakMap;
var set, get, has$1;
var enforce = function (it) {
return has$1(it) ? get(it) : set(it, {});
};
var getterFor = function (TYPE) {
return function (it) {
var state;
if (!isObject(it) || (state = get(it)).type !== TYPE) {
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
} return state;
};
};
if (nativeWeakMap) {
var store = new WeakMap$1();
var wmget = store.get;
var wmhas = store.has;
var wmset = store.set;
set = function (it, metadata) {
wmset.call(store, it, metadata);
return metadata;
};
get = function (it) {
return wmget.call(store, it) || {};
};
has$1 = function (it) {
return wmhas.call(store, it);
};
} else {
var STATE = sharedKey('state');
hiddenKeys[STATE] = true;
set = function (it, metadata) {
hide(it, STATE, metadata);
return metadata;
};
get = function (it) {
return has(it, STATE) ? it[STATE] : {};
};
has$1 = function (it) {
return has(it, STATE);
};
}
var internalState = {
set: set,
get: get,
has: has$1,
enforce: enforce,
getterFor: getterFor
};
var redefine = createCommonjsModule(function (module) {
var getInternalState = internalState.get;
var enforceInternalState = internalState.enforce;
var TEMPLATE = String(functionToString).split('toString');
shared('inspectSource', function (it) {
return functionToString.call(it);
});
(module.exports = function (O, key, value, options) {
var unsafe = options ? !!options.unsafe : false;
var simple = options ? !!options.enumerable : false;
var noTargetGet = options ? !!options.noTargetGet : false;
if (typeof value == 'function') {
if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
}
if (O === global_1) {
if (simple) O[key] = value;
else setGlobal(key, value);
return;
} else if (!unsafe) {
delete O[key];
} else if (!noTargetGet && O[key]) {
simple = true;
}
if (simple) O[key] = value;
else hide(O, key, value);
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, 'toString', function toString() {
return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
});
});
var ceil = Math.ceil;
var floor = Math.floor;
// `ToInteger` abstract operation
// https://tc39.github.io/ecma262/#sec-tointeger
var toInteger = function (argument) {
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
};
var min = Math.min;
// `ToLength` abstract operation
// https://tc39.github.io/ecma262/#sec-tolength
var toLength = function (argument) {
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
};
var max = Math.max;
var min$1 = Math.min;
// Helper for a popular repeating case of the spec:
// Let integer be ? ToInteger(index).
// If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
var toAbsoluteIndex = function (index, length) {
var integer = toInteger(index);
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
};
// `Array.prototype.{ indexOf, includes }` methods implementation
// false -> Array#indexOf
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
// true -> Array#includes
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
var arrayIncludes = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = toIndexedObject($this);
var length = toLength(O.length);
var index = toAbsoluteIndex(fromIndex, length);
var value;
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
if (IS_INCLUDES && el != el) while (length > index) {
value = O[index++];
// eslint-disable-next-line no-self-compare
if (value != value) return true;
// Array#indexOf ignores holes, Array#includes - not
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
if (O[index] === el) return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;
};
};
var arrayIndexOf = arrayIncludes(false);
var objectKeysInternal = function (object, names) {
var O = toIndexedObject(object);
var i = 0;
var result = [];
var key;
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
// Don't enum bug & hidden keys
while (names.length > i) if (has(O, key = names[i++])) {
~arrayIndexOf(result, key) || result.push(key);
}
return result;
};
// IE8- don't enum bug keys
var enumBugKeys = [
'constructor',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'toLocaleString',
'toString',
'valueOf'
];
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return objectKeysInternal(O, hiddenKeys$1);
};
var objectGetOwnPropertyNames = {
f: f$3
};
var f$4 = Object.getOwnPropertySymbols;
var objectGetOwnPropertySymbols = {
f: f$4
};
var Reflect = global_1.Reflect;
// all object keys, includes non-enumerable and symbols
var ownKeys = Reflect && Reflect.ownKeys || function ownKeys(it) {
var keys = objectGetOwnPropertyNames.f(anObject(it));
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
};
var copyConstructorProperties = function (target, source) {
var keys = ownKeys(source);
var defineProperty = objectDefineProperty.f;
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
}
};
var replacement = /#|\.prototype\./;
var isForced = function (feature, detection) {
var value = data[normalize(feature)];
return value == POLYFILL ? true
: value == NATIVE ? false
: typeof detection == 'function' ? fails(detection)
: !!detection;
};
var normalize = isForced.normalize = function (string) {
return String(string).replace(replacement, '.').toLowerCase();
};
var data = isForced.data = {};
var NATIVE = isForced.NATIVE = 'N';
var POLYFILL = isForced.POLYFILL = 'P';
var isForced_1 = isForced;
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
/*
options.target - name of the target object
options.global - target is the global object
options.stat - export as static methods of target
options.proto - export as prototype methods of target
options.real - real prototype method for the `pure` version
options.forced - export even if the native feature is available
options.bind - bind methods to the target, required for the `pure` version
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
options.unsafe - use the simple assignment of property instead of delete + defineProperty
options.sham - add a flag to not completely full polyfills
options.enumerable - export as enumerable property
options.noTargetGet - prevent calling a getter on target
*/
var _export = function (options, source) {
var TARGET = options.target;
var GLOBAL = options.global;
var STATIC = options.stat;
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
if (GLOBAL) {
target = global_1;
} else if (STATIC) {
target = global_1[TARGET] || setGlobal(TARGET, {});
} else {
target = (global_1[TARGET] || {}).prototype;
}
if (target) for (key in source) {
sourceProperty = source[key];
if (options.noTargetGet) {
descriptor = getOwnPropertyDescriptor$1(target, key);
targetProperty = descriptor && descriptor.value;
} else targetProperty = target[key];
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
// contained in target
if (!FORCED && targetProperty !== undefined) {
if (typeof sourceProperty === typeof targetProperty) continue;
copyConstructorProperties(sourceProperty, targetProperty);
}
// add a flag to not completely full polyfills
if (options.sham || (targetProperty && targetProperty.sham)) {
hide(sourceProperty, 'sham', true);
}
// extend global
redefine(target, key, sourceProperty, options);
}
};
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var objectKeys = Object.keys || function keys(O) {
return objectKeysInternal(O, enumBugKeys);
};
// `ToObject` abstract operation
// https://tc39.github.io/ecma262/#sec-toobject
var toObject = function (argument) {
return Object(requireObjectCoercible(argument));
};
var nativeAssign = Object.assign;
// 19.1.2.1 Object.assign(target, source, ...)
// should work with symbols and should have deterministic property order (V8 bug)
var objectAssign = !nativeAssign || fails(function () {
var A = {};
var B = {};
// eslint-disable-next-line no-undef
var symbol = Symbol();
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
var T = toObject(target);
var argumentsLength = arguments.length;
var index = 1;
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
while (argumentsLength > index) {
var S = indexedObject(arguments[index++]);
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
var length = keys.length;
var j = 0;
var key;
while (length > j) {
key = keys[j++];
if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
}
} return T;
} : nativeAssign;
// `Object.assign` method
// https://tc39.github.io/ecma262/#sec-object.assign
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
assign: objectAssign
});
var FAILS_ON_PRIMITIVES = fails(function () { objectKeys(1); });
// `Object.keys` method
// https://tc39.github.io/ecma262/#sec-object.keys
_export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
keys: function keys(it) {
return objectKeys(toObject(it));
}
});
var deepObjectsMerge = function deepObjectsMerge(target, source) {

@@ -597,709 +42,5 @@ // Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties

var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
// Chrome 38 Symbol has incorrect toString conversion
// eslint-disable-next-line no-undef
return !String(Symbol());
});
var Symbol$1 = global_1.Symbol;
var store$1 = shared('wks');
var wellKnownSymbol = function (name) {
return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
|| (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
};
// `RegExp.prototype.flags` getter implementation
// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
var regexpFlags = function () {
var that = anObject(this);
var result = '';
if (that.global) result += 'g';
if (that.ignoreCase) result += 'i';
if (that.multiline) result += 'm';
if (that.unicode) result += 'u';
if (that.sticky) result += 'y';
return result;
};
var nativeExec = RegExp.prototype.exec;
// This always refers to the native implementation, because the
// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
// which loads this file before patching the method.
var nativeReplace = String.prototype.replace;
var patchedExec = nativeExec;
var UPDATES_LAST_INDEX_WRONG = (function () {
var re1 = /a/;
var re2 = /b*/g;
nativeExec.call(re1, 'a');
nativeExec.call(re2, 'a');
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
})();
// nonparticipating capturing group, copied from es5-shim's String#split patch.
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
if (PATCH) {
patchedExec = function exec(str) {
var re = this;
var lastIndex, reCopy, match, i;
if (NPCG_INCLUDED) {
reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
}
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
match = nativeExec.call(re, str);
if (UPDATES_LAST_INDEX_WRONG && match) {
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
}
if (NPCG_INCLUDED && match && match.length > 1) {
// Fix browsers whose `exec` methods don't consistently return `undefined`
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
nativeReplace.call(match[0], reCopy, function () {
for (i = 1; i < arguments.length - 2; i++) {
if (arguments[i] === undefined) match[i] = undefined;
}
});
}
return match;
};
}
var regexpExec = patchedExec;
var SPECIES = wellKnownSymbol('species');
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
// #replace needs built-in support for named groups.
// #match works fine because it just return the exec results, even if it has
// a "grops" property.
var re = /./;
re.exec = function () {
var result = [];
result.groups = { a: '7' };
return result;
};
return ''.replace(re, '$<a>') !== '7';
});
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
var re = /(?:)/;
var originalExec = re.exec;
re.exec = function () { return originalExec.apply(this, arguments); };
var result = 'ab'.split(re);
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
});
var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
var SYMBOL = wellKnownSymbol(KEY);
var DELEGATES_TO_SYMBOL = !fails(function () {
// String methods call symbol-named RegEp methods
var O = {};
O[SYMBOL] = function () { return 7; };
return ''[KEY](O) != 7;
});
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
// Symbol-named RegExp methods call .exec
var execCalled = false;
var re = /a/;
re.exec = function () { execCalled = true; return null; };
if (KEY === 'split') {
// RegExp[@@split] doesn't call the regex's exec method, but first creates
// a new one. We need to return the patched regex when creating the new one.
re.constructor = {};
re.constructor[SPECIES] = function () { return re; };
}
re[SYMBOL]('');
return !execCalled;
});
if (
!DELEGATES_TO_SYMBOL ||
!DELEGATES_TO_EXEC ||
(KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
) {
var nativeRegExpMethod = /./[SYMBOL];
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
if (regexp.exec === regexpExec) {
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
// The native String method already delegates to @@method (this
// polyfilled function), leasing to infinite recursion.
// We avoid it by directly calling the native @@method method.
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
}
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
}
return { done: false };
});
var stringMethod = methods[0];
var regexMethod = methods[1];
redefine(String.prototype, KEY, stringMethod);
redefine(RegExp.prototype, SYMBOL, length == 2
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
? function (string, arg) { return regexMethod.call(string, this, arg); }
// 21.2.5.6 RegExp.prototype[@@match](string)
// 21.2.5.9 RegExp.prototype[@@search](string)
: function (string) { return regexMethod.call(string, this); }
);
if (sham) hide(RegExp.prototype[SYMBOL], 'sham', true);
}
};
// CONVERT_TO_STRING: true -> String#at
// CONVERT_TO_STRING: false -> String#codePointAt
var stringAt = function (that, pos, CONVERT_TO_STRING) {
var S = String(requireObjectCoercible(that));
var position = toInteger(pos);
var size = S.length;
var first, second;
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
first = S.charCodeAt(position);
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
? CONVERT_TO_STRING ? S.charAt(position) : first
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
};
// `AdvanceStringIndex` abstract operation
// https://tc39.github.io/ecma262/#sec-advancestringindex
var advanceStringIndex = function (S, index, unicode) {
return index + (unicode ? stringAt(S, index, true).length : 1);
};
// `RegExpExec` abstract operation
// https://tc39.github.io/ecma262/#sec-regexpexec
var regexpExecAbstract = function (R, S) {
var exec = R.exec;
if (typeof exec === 'function') {
var result = exec.call(R, S);
if (typeof result !== 'object') {
throw TypeError('RegExp exec method returned something other than an Object or null');
}
return result;
}
if (classofRaw(R) !== 'RegExp') {
throw TypeError('RegExp#exec called on incompatible receiver');
}
return regexpExec.call(R, S);
};
// @@match logic
fixRegexpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
return [
// `String.prototype.match` method
// https://tc39.github.io/ecma262/#sec-string.prototype.match
function match(regexp) {
var O = requireObjectCoercible(this);
var matcher = regexp == undefined ? undefined : regexp[MATCH];
return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
},
// `RegExp.prototype[@@match]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
function (regexp) {
var res = maybeCallNative(nativeMatch, regexp, this);
if (res.done) return res.value;
var rx = anObject(regexp);
var S = String(this);
if (!rx.global) return regexpExecAbstract(rx, S);
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
var A = [];
var n = 0;
var result;
while ((result = regexpExecAbstract(rx, S)) !== null) {
var matchStr = String(result[0]);
A[n] = matchStr;
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
n++;
}
return n === 0 ? null : A;
}
];
});
var max$1 = Math.max;
var min$2 = Math.min;
var floor$1 = Math.floor;
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
var maybeToString = function (it) {
return it === undefined ? it : String(it);
};
// @@replace logic
fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative) {
return [
// `String.prototype.replace` method
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
function replace(searchValue, replaceValue) {
var O = requireObjectCoercible(this);
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
return replacer !== undefined
? replacer.call(searchValue, O, replaceValue)
: nativeReplace.call(String(O), searchValue, replaceValue);
},
// `RegExp.prototype[@@replace]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
function (regexp, replaceValue) {
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
if (res.done) return res.value;
var rx = anObject(regexp);
var S = String(this);
var functionalReplace = typeof replaceValue === 'function';
if (!functionalReplace) replaceValue = String(replaceValue);
var global = rx.global;
if (global) {
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
}
var results = [];
while (true) {
var result = regexpExecAbstract(rx, S);
if (result === null) break;
results.push(result);
if (!global) break;
var matchStr = String(result[0]);
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
}
var accumulatedResult = '';
var nextSourcePosition = 0;
for (var i = 0; i < results.length; i++) {
result = results[i];
var matched = String(result[0]);
var position = max$1(min$2(toInteger(result.index), S.length), 0);
var captures = [];
// NOTE: This is equivalent to
// captures = result.slice(1).map(maybeToString)
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
var namedCaptures = result.groups;
if (functionalReplace) {
var replacerArgs = [matched].concat(captures, position, S);
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
var replacement = String(replaceValue.apply(undefined, replacerArgs));
} else {
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
}
if (position >= nextSourcePosition) {
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
nextSourcePosition = position + matched.length;
}
}
return accumulatedResult + S.slice(nextSourcePosition);
}
];
// https://tc39.github.io/ecma262/#sec-getsubstitution
function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
var tailPos = position + matched.length;
var m = captures.length;
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
if (namedCaptures !== undefined) {
namedCaptures = toObject(namedCaptures);
symbols = SUBSTITUTION_SYMBOLS;
}
return nativeReplace.call(replacement, symbols, function (match, ch) {
var capture;
switch (ch.charAt(0)) {
case '$': return '$';
case '&': return matched;
case '`': return str.slice(0, position);
case "'": return str.slice(tailPos);
case '<':
capture = namedCaptures[ch.slice(1, -1)];
break;
default: // \d\d?
var n = +ch;
if (n === 0) return match;
if (n > m) {
var f = floor$1(n / 10);
if (f === 0) return match;
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
return match;
}
capture = captures[n - 1];
}
return capture === undefined ? '' : capture;
});
}
});
var MATCH = wellKnownSymbol('match');
// `IsRegExp` abstract operation
// https://tc39.github.io/ecma262/#sec-isregexp
var isRegexp = function (it) {
var isRegExp;
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
};
var aFunction = function (it) {
if (typeof it != 'function') {
throw TypeError(String(it) + ' is not a function');
} return it;
};
var SPECIES$1 = wellKnownSymbol('species');
// `SpeciesConstructor` abstract operation
// https://tc39.github.io/ecma262/#sec-speciesconstructor
var speciesConstructor = function (O, defaultConstructor) {
var C = anObject(O).constructor;
var S;
return C === undefined || (S = anObject(C)[SPECIES$1]) == undefined ? defaultConstructor : aFunction(S);
};
var arrayPush = [].push;
var min$3 = Math.min;
var MAX_UINT32 = 0xFFFFFFFF;
// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
// @@split logic
fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
var internalSplit;
if (
'abbc'.split(/(b)*/)[1] == 'c' ||
'test'.split(/(?:)/, -1).length != 4 ||
'ab'.split(/(?:ab)*/).length != 2 ||
'.'.split(/(.?)(.?)/).length != 4 ||
'.'.split(/()()/).length > 1 ||
''.split(/.?/).length
) {
// based on es5-shim implementation, need to rework it
internalSplit = function (separator, limit) {
var string = String(requireObjectCoercible(this));
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
if (lim === 0) return [];
if (separator === undefined) return [string];
// If `separator` is not a regex, use native split
if (!isRegexp(separator)) {
return nativeSplit.call(string, separator, lim);
}
var output = [];
var flags = (separator.ignoreCase ? 'i' : '') +
(separator.multiline ? 'm' : '') +
(separator.unicode ? 'u' : '') +
(separator.sticky ? 'y' : '');
var lastLastIndex = 0;
// Make `global` and avoid `lastIndex` issues by working with a copy
var separatorCopy = new RegExp(separator.source, flags + 'g');
var match, lastIndex, lastLength;
while (match = regexpExec.call(separatorCopy, string)) {
lastIndex = separatorCopy.lastIndex;
if (lastIndex > lastLastIndex) {
output.push(string.slice(lastLastIndex, match.index));
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
lastLength = match[0].length;
lastLastIndex = lastIndex;
if (output.length >= lim) break;
}
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
}
if (lastLastIndex === string.length) {
if (lastLength || !separatorCopy.test('')) output.push('');
} else output.push(string.slice(lastLastIndex));
return output.length > lim ? output.slice(0, lim) : output;
};
// Chakra, V8
} else if ('0'.split(undefined, 0).length) {
internalSplit = function (separator, limit) {
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
};
} else internalSplit = nativeSplit;
return [
// `String.prototype.split` method
// https://tc39.github.io/ecma262/#sec-string.prototype.split
function split(separator, limit) {
var O = requireObjectCoercible(this);
var splitter = separator == undefined ? undefined : separator[SPLIT];
return splitter !== undefined
? splitter.call(separator, O, limit)
: internalSplit.call(String(O), separator, limit);
},
// `RegExp.prototype[@@split]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
//
// NOTE: This cannot be properly polyfilled in engines that don't support
// the 'y' flag.
function (regexp, limit) {
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
if (res.done) return res.value;
var rx = anObject(regexp);
var S = String(this);
var C = speciesConstructor(rx, RegExp);
var unicodeMatching = rx.unicode;
var flags = (rx.ignoreCase ? 'i' : '') +
(rx.multiline ? 'm' : '') +
(rx.unicode ? 'u' : '') +
(SUPPORTS_Y ? 'y' : 'g');
// ^(? + rx + ) is needed, in combination with some S slicing, to
// simulate the 'y' flag.
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
if (lim === 0) return [];
if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
var p = 0;
var q = 0;
var A = [];
while (q < S.length) {
splitter.lastIndex = SUPPORTS_Y ? q : 0;
var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));
var e;
if (
z === null ||
(e = min$3(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
) {
q = advanceStringIndex(S, q, unicodeMatching);
} else {
A.push(S.slice(p, q));
if (A.length === lim) return A;
for (var i = 1; i <= z.length - 1; i++) {
A.push(z[i]);
if (A.length === lim) return A;
}
q = p = e;
}
}
A.push(S.slice(p));
return A;
}
];
}, !SUPPORTS_Y);
// a string of all valid unicode whitespaces
// eslint-disable-next-line max-len
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
var whitespace = '[' + whitespaces + ']';
var ltrim = RegExp('^' + whitespace + whitespace + '*');
var rtrim = RegExp(whitespace + whitespace + '*$');
// 1 -> String#trimStart
// 2 -> String#trimEnd
// 3 -> String#trim
var stringTrim = function (string, TYPE) {
string = String(requireObjectCoercible(string));
if (TYPE & 1) string = string.replace(ltrim, '');
if (TYPE & 2) string = string.replace(rtrim, '');
return string;
};
var non = '\u200B\u0085\u180E';
// check that a method works with the correct list
// of whitespaces and has a correct name
var forcedStringTrimMethod = function (METHOD_NAME) {
return fails(function () {
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
});
};
var FORCED = forcedStringTrimMethod('trim');
// `String.prototype.trim` method
// https://tc39.github.io/ecma262/#sec-string.prototype.trim
_export({ target: 'String', proto: true, forced: FORCED }, {
trim: function trim() {
return stringTrim(this, 3);
}
});
// iterable DOM collections
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
var domIterables = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0
};
// optional / simple context binding
var bindContext = function (fn, that, length) {
aFunction(fn);
if (that === undefined) return fn;
switch (length) {
case 0: return function () {
return fn.call(that);
};
case 1: return function (a) {
return fn.call(that, a);
};
case 2: return function (a, b) {
return fn.call(that, a, b);
};
case 3: return function (a, b, c) {
return fn.call(that, a, b, c);
};
}
return function (/* ...args */) {
return fn.apply(that, arguments);
};
};
// `IsArray` abstract operation
// https://tc39.github.io/ecma262/#sec-isarray
var isArray = Array.isArray || function isArray(arg) {
return classofRaw(arg) == 'Array';
};
var SPECIES$2 = wellKnownSymbol('species');
// `ArraySpeciesCreate` abstract operation
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate
var arraySpeciesCreate = function (originalArray, length) {
var C;
if (isArray(originalArray)) {
C = originalArray.constructor;
// cross-realm fallback
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
else if (isObject(C)) {
C = C[SPECIES$2];
if (C === null) C = undefined;
}
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
};
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
// 0 -> Array#forEach
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
// 1 -> Array#map
// https://tc39.github.io/ecma262/#sec-array.prototype.map
// 2 -> Array#filter
// https://tc39.github.io/ecma262/#sec-array.prototype.filter
// 3 -> Array#some
// https://tc39.github.io/ecma262/#sec-array.prototype.some
// 4 -> Array#every
// https://tc39.github.io/ecma262/#sec-array.prototype.every
// 5 -> Array#find
// https://tc39.github.io/ecma262/#sec-array.prototype.find
// 6 -> Array#findIndex
// https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
var arrayMethods = function (TYPE, specificCreate) {
var IS_MAP = TYPE == 1;
var IS_FILTER = TYPE == 2;
var IS_SOME = TYPE == 3;
var IS_EVERY = TYPE == 4;
var IS_FIND_INDEX = TYPE == 6;
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
var create = specificCreate || arraySpeciesCreate;
return function ($this, callbackfn, that) {
var O = toObject($this);
var self = indexedObject(O);
var boundFunction = bindContext(callbackfn, that, 3);
var length = toLength(self.length);
var index = 0;
var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
var value, result;
for (;length > index; index++) if (NO_HOLES || index in self) {
value = self[index];
result = boundFunction(value, index, O);
if (TYPE) {
if (IS_MAP) target[index] = result; // map
else if (result) switch (TYPE) {
case 3: return true; // some
case 5: return value; // find
case 6: return index; // findIndex
case 2: target.push(value); // filter
} else if (IS_EVERY) return false; // every
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
};
};
var sloppyArrayMethod = function (METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !method || !fails(function () {
// eslint-disable-next-line no-useless-call,no-throw-literal
method.call(null, argument || function () { throw 1; }, 1);
});
};
var internalForEach = arrayMethods(0);
var SLOPPY_METHOD = sloppyArrayMethod('forEach');
// `Array.prototype.forEach` method implementation
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
var arrayForEach = SLOPPY_METHOD ? function forEach(callbackfn /* , thisArg */) {
return internalForEach(this, callbackfn, arguments[1]);
} : [].forEach;
for (var COLLECTION_NAME in domIterables) {
var Collection = global_1[COLLECTION_NAME];
var CollectionPrototype = Collection && Collection.prototype;
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
hide(CollectionPrototype, 'forEach', arrayForEach);
} catch (error) {
CollectionPrototype.forEach = arrayForEach;
}
}
/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): get-css-custom-properties.js
* CoreUI Utilities (v3.0.0-apha.13): get-css-custom-properties.js
* Licensed under MIT (https://coreui.io/license)

@@ -1319,2 +60,3 @@ * @returns {string} css custom property name

if (rules[j].selectorText === '.ie-custom-properties') {
// eslint-disable-next-line prefer-destructuring
cssText = rules[j].cssText;

@@ -1344,2 +86,8 @@ break;

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v3.0.0-apha.13): get-style.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
var minIEVersion = 10;

@@ -1374,3 +122,3 @@

* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): get-color.js
* CoreUI Utilities (v3.0.0-apha.13): get-color.js
* Licensed under MIT (https://coreui.io/license)

@@ -1392,3 +140,3 @@ * --------------------------------------------------------------------------

* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): hex-to-rgb.js
* CoreUI Utilities (v3.0.0-apha.13): hex-to-rgb.js
* Licensed under MIT (https://coreui.io/license)

@@ -1401,3 +149,3 @@ * --------------------------------------------------------------------------

if (typeof color === 'undefined') {
throw new Error('Hex color is not defined');
throw new TypeError('Hex color is not defined');
}

@@ -1430,3 +178,3 @@

* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): hex-to-rgba.js
* CoreUI Utilities (v3.0.0-apha.13): hex-to-rgba.js
* Licensed under MIT (https://coreui.io/license)

@@ -1443,3 +191,3 @@ * --------------------------------------------------------------------------

if (typeof color === 'undefined') {
throw new Error('Hex color is not defined');
throw new TypeError('Hex color is not defined');
}

@@ -1470,123 +218,5 @@

var createProperty = function (object, key, value) {
var propertyKey = toPrimitive(key);
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
else object[propertyKey] = value;
};
var SPECIES$3 = wellKnownSymbol('species');
var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
return !fails(function () {
var array = [];
var constructor = array.constructor = {};
constructor[SPECIES$3] = function () {
return { foo: 1 };
};
return array[METHOD_NAME](Boolean).foo !== 1;
});
};
var SPECIES$4 = wellKnownSymbol('species');
var nativeSlice = [].slice;
var max$2 = Math.max;
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
// `Array.prototype.slice` method
// https://tc39.github.io/ecma262/#sec-array.prototype.slice
// fallback for not array-like ES3 strings and DOM objects
_export({ target: 'Array', proto: true, forced: !SPECIES_SUPPORT }, {
slice: function slice(start, end) {
var O = toIndexedObject(this);
var length = toLength(O.length);
var k = toAbsoluteIndex(start, length);
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
var Constructor, result, n;
if (isArray(O)) {
Constructor = O.constructor;
// cross-realm fallback
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
Constructor = undefined;
} else if (isObject(Constructor)) {
Constructor = Constructor[SPECIES$4];
if (Constructor === null) Constructor = undefined;
}
if (Constructor === Array || Constructor === undefined) {
return nativeSlice.call(O, k, fin);
}
}
result = new (Constructor === undefined ? Array : Constructor)(max$2(fin - k, 0));
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
result.length = n;
return result;
}
});
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
// ES3 wrong here
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
try {
return it[key];
} catch (error) { /* empty */ }
};
// getting tag from ES6+ `Object.prototype.toString`
var classof = function (it) {
var O, tag, result;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
// builtinTag case
: CORRECT_ARGUMENTS ? classofRaw(O)
// ES3 arguments fallback
: (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
};
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
var test = {};
test[TO_STRING_TAG$1] = 'z';
// `Object.prototype.toString` method implementation
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
var objectToString = String(test) !== '[object z]' ? function toString() {
return '[object ' + classof(this) + ']';
} : test.toString;
var ObjectPrototype = Object.prototype;
// `Object.prototype.toString` method
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
if (objectToString !== ObjectPrototype.toString) {
redefine(ObjectPrototype, 'toString', objectToString, { unsafe: true });
}
var TO_STRING = 'toString';
var nativeToString = /./[TO_STRING];
var RegExpPrototype = RegExp.prototype;
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
// FF44- RegExp#toString has a wrong name
var INCORRECT_NAME = nativeToString.name != TO_STRING;
// `RegExp.prototype.toString` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring
if (NOT_GENERIC || INCORRECT_NAME) {
redefine(RegExp.prototype, TO_STRING, function toString() {
var R = anObject(this);
var p = String(R.source);
var rf = R.flags;
var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? regexpFlags.call(R) : rf);
return '/' + p + '/' + f;
}, { unsafe: true });
}
/**
* --------------------------------------------------------------------------
* CoreUI (v2.1.14): rgb-to-hex.js
* CoreUI (v3.0.0-apha.13): rgb-to-hex.js
* Licensed under MIT (https://coreui.io/license)

@@ -1599,3 +229,3 @@ * --------------------------------------------------------------------------

if (typeof color === 'undefined') {
throw new Error('Hex color is not defined');
throw new TypeError('Hex color is not defined');
}

@@ -1602,0 +232,0 @@

/*!
* CoreUI Pro v2.1.14 (https://coreui.io/pro/)
* CoreUI v3.0.0-apha.13 (https://coreui.io)
* Copyright 2019 Łukasz Holeczek
* Licensed under MIT (https://coreui.io)
*/
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).utilities={})}(this,function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,n){return t(n={exports:{}},n.exports),n.exports}function r(t){return t&&t.Math==Math&&t}function f(t){try{return!!t()}catch(t){return!0}}function g(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}function p(t){return j.call(t).slice(8,-1)}function d(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function h(t){return T(d(t))}function m(t){return"object"==typeof t?null!==t:"function"==typeof t}function v(t,n){if(!m(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!m(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!m(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!m(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function l(t,n){return L.call(t,n)}function O(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t}function s(n,e){try{N(b,n,e)}catch(t){b[n]=e}return e}function o(t){return"Symbol(".concat(void 0===t?"":t,")_",(++_+F).toString(36))}var i,u,a,c,y="object",b=r(typeof globalThis==y&&globalThis)||r(typeof window==y&&window)||r(typeof self==y&&self)||r(typeof n==y&&n)||Function("return this")(),x=!f(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),S={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,E={f:w&&!S.call({1:2},1)?function(t){var n=w(this,t);return!!n&&n.enumerable}:S},j={}.toString,I="".split,T=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==p(t)?I.call(t,""):Object(t)}:Object,L={}.hasOwnProperty,M=b.document,R=m(M)&&m(M.createElement),k=!x&&!f(function(){return 7!=Object.defineProperty(function(t){return R?M.createElement(t):{}}("div"),"a",{get:function(){return 7}}).a}),A=Object.getOwnPropertyDescriptor,C={f:x?A:function(t,n){if(t=h(t),n=v(n,!0),k)try{return A(t,n)}catch(t){}if(l(t,n))return g(!E.f.call(t,n),t[n])}},P=Object.defineProperty,$={f:x?P:function(t,n,e){if(O(t),n=v(n,!0),O(e),k)try{return P(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},N=x?function(t,n,e){return $.f(t,n,g(1,e))}:function(t,n,e){return t[n]=e,t},V=e(function(t){var n="__core-js_shared__",e=b[n]||s(n,{});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),D=V("native-function-to-string",Function.toString),G=b.WeakMap,H="function"==typeof G&&/native code/.test(D.call(G)),_=0,F=Math.random(),z=V("keys"),B={},q=b.WeakMap;if(H){var W=new q,K=W.get,U=W.has,Y=W.set;i=function(t,n){return Y.call(W,t,n),n},u=function(t){return K.call(W,t)||{}},a=function(t){return U.call(W,t)}}else{var J=z[c="state"]||(z[c]=o(c));B[J]=!0,i=function(t,n){return N(t,J,n),n},u=function(t){return l(t,J)?t[J]:{}},a=function(t){return l(t,J)}}function Q(t){return isNaN(t=+t)?0:(0<t?lt:ct)(t)}function X(t){return 0<t?st(Q(t),9007199254740991):0}function Z(t,n){var e=Q(t);return e<0?ft(e+n,0):pt(e,n)}function tt(t,n){var e,r=h(t),o=0,i=[];for(e in r)!l(B,e)&&l(r,e)&&i.push(e);for(;n.length>o;)l(r,e=n[o++])&&(~gt(i,e)||i.push(e));return i}function nt(t,n){for(var e=mt(n),r=$.f,o=C.f,i=0;i<e.length;i++){var u=e[i];l(t,u)||r(t,u,o(n,u))}}function et(t,n){var e=wt[St(t)];return e==Ot||e!=Et&&("function"==typeof n?f(n):!!n)}function rt(t,n){var e,r,o,i,u,a=t.target,c=t.global,l=t.stat;if(e=c?b:l?b[a]||s(a,{}):(b[a]||{}).prototype)for(r in n){if(i=n[r],o=t.noTargetGet?(u=It(e,r))&&u.value:e[r],!jt(c?r:a+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;nt(i,o)}(t.sham||o&&o.sham)&&N(i,"sham",!0),at(e,r,i,t)}}function ot(t){return Object(d(t))}var it,ut={set:i,get:u,has:a,enforce:function(t){return a(t)?u(t):i(t,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=u(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},at=e(function(t){var n=ut.get,a=ut.enforce,c=String(D).split("toString");V("inspectSource",function(t){return D.call(t)}),(t.exports=function(t,n,e,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet;"function"==typeof e&&("string"!=typeof n||l(e,"name")||N(e,"name",n),a(e).source=c.join("string"==typeof n?n:"")),t!==b?(o?!u&&t[n]&&(i=!0):delete t[n],i?t[n]=e:N(t,n,e)):i?t[n]=e:s(n,e)})(Function.prototype,"toString",function(){return"function"==typeof this&&n(this).source||D.call(this)})}),ct=Math.ceil,lt=Math.floor,st=Math.min,ft=Math.max,pt=Math.min,gt=(it=!1,function(t,n,e){var r,o=h(t),i=X(o.length),u=Z(e,i);if(it&&n!=n){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((it||u in o)&&o[u]===n)return it||u||0;return!it&&-1}),dt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht=dt.concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return tt(t,ht)}},yt={f:Object.getOwnPropertySymbols},bt=b.Reflect,mt=bt&&bt.ownKeys||function(t){var n=vt.f(O(t)),e=yt.f;return e?n.concat(e(t)):n},xt=/#|\.prototype\./,St=et.normalize=function(t){return String(t).replace(xt,".").toLowerCase()},wt=et.data={},Et=et.NATIVE="N",Ot=et.POLYFILL="P",jt=et,It=C.f,Tt=Object.keys||function(t){return tt(t,dt)},Lt=Object.assign,Mt=!Lt||f(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=Lt({},t)[e]||Tt(Lt({},n)).join("")!=r})?function(t,n){for(var e=ot(t),r=arguments.length,o=1,i=yt.f,u=E.f;o<r;)for(var a,c=T(arguments[o++]),l=i?Tt(c).concat(i(c)):Tt(c),s=l.length,f=0;f<s;)a=l[f++],x&&!u.call(c,a)||(e[a]=c[a]);return e}:Lt;rt({target:"Object",stat:!0,forced:Object.assign!==Mt},{assign:Mt}),rt({target:"Object",stat:!0,forced:f(function(){Tt(1)})},{keys:function(t){return Tt(ot(t))}});function Rt(t){return Nt[t]||(Nt[t]=Pt&&$t[t]||(Pt?$t:o)("Symbol."+t))}function kt(){var t=O(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}var At,Ct,Pt=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())}),$t=b.Symbol,Nt=V("wks"),Vt=RegExp.prototype.exec,Dt=String.prototype.replace,Gt=Vt,Ht=(At=/a/,Ct=/b*/g,Vt.call(At,"a"),Vt.call(Ct,"a"),0!==At.lastIndex||0!==Ct.lastIndex),_t=void 0!==/()??/.exec("")[1];(Ht||_t)&&(Gt=function(t){var n,e,r,o,i=this;return _t&&(e=new RegExp("^"+i.source+"$(?!\\s)",kt.call(i))),Ht&&(n=i.lastIndex),r=Vt.call(i,t),Ht&&r&&(i.lastIndex=i.global?r.index+r[0].length:n),_t&&r&&1<r.length&&Dt.call(r[0],e,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});function Ft(e,t,n,r){var o=Rt(e),i=!f(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),u=i&&!f(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[Wt]=function(){return n}),n[o](""),!t});if(!i||!u||"replace"===e&&!Kt||"split"===e&&!Ut){var a=/./[o],c=n(o,""[e],function(t,n,e,r,o){return n.exec===qt?i&&!o?{done:!0,value:a.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),l=c[0],s=c[1];at(String.prototype,e,l),at(RegExp.prototype,o,2==t?function(t,n){return s.call(t,this,n)}:function(t){return s.call(t,this)}),r&&N(RegExp.prototype[o],"sham",!0)}}function zt(t,n,e){return n+(e?function(t,n,e){var r,o,i=String(d(t)),u=Q(n),a=i.length;return u<0||a<=u?e?"":void 0:(r=i.charCodeAt(u))<55296||56319<r||u+1===a||(o=i.charCodeAt(u+1))<56320||57343<o?e?i.charAt(u):r:e?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}(t,n,!0).length:1)}function Bt(t,n){var e=t.exec;if("function"==typeof e){var r=e.call(t,n);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return qt.call(t,n)}var qt=Gt,Wt=Rt("species"),Kt=!f(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Ut=!f(function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]});Ft("match",1,function(r,l,s){return[function(t){var n=d(this),e=null==t?void 0:t[r];return void 0!==e?e.call(t,n):new RegExp(t)[r](String(n))},function(t){var n=s(l,t,this);if(n.done)return n.value;var e=O(t),r=String(this);if(!e.global)return Bt(e,r);for(var o,i=e.unicode,u=[],a=e.lastIndex=0;null!==(o=Bt(e,r));){var c=String(o[0]);""===(u[a]=c)&&(e.lastIndex=zt(r,X(e.lastIndex),i)),a++}return 0===a?null:u}]});var Yt=Math.max,Jt=Math.min,Qt=Math.floor,Xt=/\$([$&'`]|\d\d?|<[^>]*>)/g,Zt=/\$([$&'`]|\d\d?)/g;Ft("replace",2,function(o,S,w){return[function(t,n){var e=d(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,e,n):S.call(String(e),t,n)},function(t,n){var e=w(S,t,this,n);if(e.done)return e.value;var r=O(t),o=String(this),i="function"==typeof n;i||(n=String(n));var u=r.global;if(u){var a=r.unicode;r.lastIndex=0}for(var c=[];;){var l=Bt(r,o);if(null===l)break;if(c.push(l),!u)break;""===String(l[0])&&(r.lastIndex=zt(o,X(r.lastIndex),a))}for(var s,f="",p=0,g=0;g<c.length;g++){l=c[g];for(var d=String(l[0]),h=Yt(Jt(Q(l.index),o.length),0),v=[],y=1;y<l.length;y++)v.push(void 0===(s=l[y])?s:String(s));var b=l.groups;if(i){var m=[d].concat(v,h,o);void 0!==b&&m.push(b);var x=String(n.apply(void 0,m))}else x=E(d,o,h,v,b,n);p<=h&&(f+=o.slice(p,h)+x,p=h+d.length)}return f+o.slice(p)}];function E(i,u,a,c,l,t){var s=a+i.length,f=c.length,n=Zt;return void 0!==l&&(l=ot(l),n=Xt),S.call(t,n,function(t,n){var e;switch(n.charAt(0)){case"$":return"$";case"&":return i;case"`":return u.slice(0,a);case"'":return u.slice(s);case"<":e=l[n.slice(1,-1)];break;default:var r=+n;if(0==r)return t;if(f<r){var o=Qt(r/10);return 0===o?t:o<=f?void 0===c[o-1]?n.charAt(1):c[o-1]+n.charAt(1):t}e=c[r-1]}return void 0===e?"":e})}});function tn(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}var nn=Rt("match"),en=Rt("species"),rn=[].push,on=Math.min,un=4294967295,an=!f(function(){return!RegExp(un,"y")});Ft("split",2,function(o,v,y){var b;return b="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,n){var e=String(d(this)),r=void 0===n?un:n>>>0;if(0==r)return[];if(void 0===t)return[e];if(!function(t){var n;return m(t)&&(void 0!==(n=t[nn])?!!n:"RegExp"==p(t))}(t))return v.call(e,t,r);for(var o,i,u,a=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,s=new RegExp(t.source,c+"g");(o=qt.call(s,e))&&!(l<(i=s.lastIndex)&&(a.push(e.slice(l,o.index)),1<o.length&&o.index<e.length&&rn.apply(a,o.slice(1)),u=o[0].length,l=i,a.length>=r));)s.lastIndex===o.index&&s.lastIndex++;return l===e.length?!u&&s.test("")||a.push(""):a.push(e.slice(l)),a.length>r?a.slice(0,r):a}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:v.call(this,t,n)}:v,[function(t,n){var e=d(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,e,n):b.call(String(e),t,n)},function(t,n){var e=y(b,t,this,n,b!==v);if(e.done)return e.value;var r=O(t),o=String(this),i=function(t,n){var e,r=O(t).constructor;return void 0===r||null==(e=O(r)[en])?n:tn(e)}(r,RegExp),u=r.unicode,a=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(an?"y":"g"),c=new i(an?r:"^(?:"+r.source+")",a),l=void 0===n?un:n>>>0;if(0==l)return[];if(0===o.length)return null===Bt(c,o)?[o]:[];for(var s=0,f=0,p=[];f<o.length;){c.lastIndex=an?f:0;var g,d=Bt(c,an?o:o.slice(f));if(null===d||(g=on(X(c.lastIndex+(an?0:f)),o.length))===s)f=zt(o,f,u);else{if(p.push(o.slice(s,f)),p.length===l)return p;for(var h=1;h<=d.length-1;h++)if(p.push(d[h]),p.length===l)return p;f=s=g}}return p.push(o.slice(s)),p}]},!an);var cn,ln="\t\n\v\f\r                 \u2028\u2029\ufeff",sn="["+ln+"]",fn=RegExp("^"+sn+sn+"*"),pn=RegExp(sn+sn+"*$");rt({target:"String",proto:!0,forced:(cn="trim",f(function(){return!!ln[cn]()||"​…᠎"!="​…᠎"[cn]()||ln[cn].name!==cn}))},{trim:function(){return function(t,n){return t=String(d(t)),1&n&&(t=t.replace(fn,"")),2&n&&(t=t.replace(pn,"")),t}(this,3)}});var gn,dn,hn,vn,yn,bn,mn,xn,Sn,wn,En,On=Array.isArray||function(t){return"Array"==p(t)},jn=Rt("species"),In=(hn=1==(gn=0),vn=2==gn,yn=3==gn,bn=4==gn,mn=6==gn,xn=5==gn||mn,Sn=dn||function(t,n){var e;return On(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!On(e.prototype)?m(e)&&null===(e=e[jn])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===n?0:n)},function(t,n,e){for(var r,o,i=ot(t),u=T(i),a=function(r,o,t){if(tn(r),void 0===o)return r;switch(t){case 0:return function(){return r.call(o)};case 1:return function(t){return r.call(o,t)};case 2:return function(t,n){return r.call(o,t,n)};case 3:return function(t,n,e){return r.call(o,t,n,e)}}return function(){return r.apply(o,arguments)}}(n,e,3),c=X(u.length),l=0,s=hn?Sn(t,c):vn?Sn(t,0):void 0;l<c;l++)if((xn||l in u)&&(o=a(r=u[l],l,i),gn))if(hn)s[l]=o;else if(o)switch(gn){case 3:return!0;case 5:return r;case 6:return l;case 2:s.push(r)}else if(bn)return!1;return mn?-1:yn||bn?bn:s}),Tn=!(En=[]["forEach"])||!f(function(){En.call(null,wn||function(){throw 1},1)})?function(t,n){return In(this,t,n)}:[].forEach;for(var Ln in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Mn=b[Ln],Rn=Mn&&Mn.prototype;if(Rn&&Rn.forEach!==Tn)try{N(Rn,"forEach",Tn)}catch(t){Rn.forEach=Tn}}function kn(t,n){return void 0===n&&(n=document.body),function(t){return t.match(/^--.*/i)}(t)&&Boolean(document.documentMode)&&10<=document.documentMode?function(){for(var r={},t=document.styleSheets,n="",e=t.length-1;-1<e;e--){for(var o=t[e].cssRules,i=o.length-1;-1<i;i--)if(".ie-custom-properties"===o[i].selectorText){n=o[i].cssText;break}if(n)break}return(n=n.substring(n.lastIndexOf("{")+1,n.lastIndexOf("}"))).split(";").forEach(function(t){if(t){var n=t.split(": ")[0],e=t.split(": ")[1];n&&e&&(r["--"+n.trim()]=e.trim())}}),r}()[t]:window.getComputedStyle(n,null).getPropertyValue(t).replace(/^\s/,"")}var An,Cn=Rt("species"),Pn=Rt("species"),$n=[].slice,Nn=Math.max;rt({target:"Array",proto:!0,forced:!(An="slice",!f(function(){var t=[];return(t.constructor={})[Cn]=function(){return{foo:1}},1!==t[An](Boolean).foo}))},{slice:function(t,n){var e,r,o,i,u,a,c,l=h(this),s=X(l.length),f=Z(t,s),p=Z(void 0===n?s:n,s);if(On(l)&&("function"!=typeof(e=l.constructor)||e!==Array&&!On(e.prototype)?m(e)&&null===(e=e[Pn])&&(e=void 0):e=void 0,e===Array||void 0===e))return $n.call(l,f,p);for(r=new(void 0===e?Array:e)(Nn(p-f,0)),o=0;f<p;f++,o++)f in l&&(i=r,u=o,a=l[f],void 0,(c=v(u))in i?$.f(i,c,g(0,a)):i[c]=a);return r.length=o,r}});var Vn=Rt("toStringTag"),Dn="Arguments"==p(function(){return arguments}()),Gn={};Gn[Rt("toStringTag")]="z";var Hn="[object z]"!==String(Gn)?function(){return"[object "+function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),Vn))?e:Dn?p(n):"Object"==(r=p(n))&&"function"==typeof n.callee?"Arguments":r}(this)+"]"}:Gn.toString,_n=Object.prototype;Hn!==_n.toString&&at(_n,"toString",Hn,{unsafe:!0});var Fn="toString",zn=/./[Fn],Bn=RegExp.prototype,qn=f(function(){return"/a/b"!=zn.call({source:"a",flags:"b"})}),Wn=zn.name!=Fn;(qn||Wn)&&at(RegExp.prototype,Fn,function(){var t=O(this),n=String(t.source),e=t.flags;return"/"+n+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in Bn)?kt.call(t):e)},{unsafe:!0});t.asideMenuCssClasses=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],t.checkBreakpoint=function(t,n){return-1<n.indexOf(t)},t.deepObjectsMerge=function t(n,e){for(var r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];e[i]instanceof Object&&Object.assign(e[i],t(n[i],e[i]))}return Object.assign(n||{},e),n},t.getColor=function(t,n){void 0===n&&(n=document.body);var e=kn("--"+t,n);return e||t},t.getStyle=kn,t.hexToRgb=function(t){if("undefined"==typeof t)throw new Error("Hex color is not defined");var n,e,r;if(!t.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(t+" is not a valid hex color");return r=7===t.length?(n=parseInt(t.substring(1,3),16),e=parseInt(t.substring(3,5),16),parseInt(t.substring(5,7),16)):(n=parseInt(t.substring(1,2),16),e=parseInt(t.substring(2,3),16),parseInt(t.substring(3,5),16)),"rgba("+n+", "+e+", "+r+")"},t.hexToRgba=function(t,n){if(void 0===n&&(n=100),"undefined"==typeof t)throw new Error("Hex color is not defined");var e,r,o;if(!t.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(t+" is not a valid hex color");return o=7===t.length?(e=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16),parseInt(t.substring(5,7),16)):(e=parseInt(t.substring(1,2),16),r=parseInt(t.substring(2,3),16),parseInt(t.substring(3,5),16)),"rgba("+e+", "+r+", "+o+", "+n/100+")"},t.rgbToHex=function(t){if("undefined"==typeof t)throw new Error("Hex color is not defined");if("transparent"===t)return"#00000000";var n=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!n)throw new Error(t+" is not a valid rgb color");var e="0"+parseInt(n[1],10).toString(16),r="0"+parseInt(n[2],10).toString(16),o="0"+parseInt(n[3],10).toString(16);return"#"+e.slice(-2)+r.slice(-2)+o.slice(-2)},t.sidebarCssClasses=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],t.validBreakpoints=["sm","md","lg","xl"],Object.defineProperty(t,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).utilities={})}(this,function(e){"use strict";var t=function(e,t){var r;(void 0===t&&(t=document.body),function(e){return e.match(/^--.*/i)}(e)&&Boolean(document.documentMode)&&document.documentMode>=10)?r=function(){for(var e={},t=document.styleSheets,r="",n=t.length-1;n>-1;n--){for(var s=t[n].cssRules,o=s.length-1;o>-1;o--)if(".ie-custom-properties"===s[o].selectorText){r=s[o].cssText;break}if(r)break}return(r=r.substring(r.lastIndexOf("{")+1,r.lastIndexOf("}"))).split(";").forEach(function(t){if(t){var r=t.split(": ")[0],n=t.split(": ")[1];r&&n&&(e["--"+r.trim()]=n.trim())}}),e}()[e]:r=window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return r};e.asideMenuCssClasses=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],e.checkBreakpoint=function(e,t){return t.indexOf(e)>-1},e.deepObjectsMerge=function e(t,r){for(var n=0,s=Object.keys(r);n<s.length;n++){var o=s[n];r[o]instanceof Object&&Object.assign(r[o],e(t[o],r[o]))}return Object.assign(t||{},r),t},e.getColor=function(e,r){void 0===r&&(r=document.body);var n=t("--"+e,r);return n||e},e.getStyle=t,e.hexToRgb=function(e){if("undefined"==typeof e)throw new TypeError("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 TypeError("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 TypeError("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),s="0"+parseInt(t[3],10).toString(16);return"#"+r.slice(-2)+n.slice(-2)+s.slice(-2)},e.sidebarCssClasses=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],e.validBreakpoints=["sm","md","lg","xl"],Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=coreui-utilities.min.js.map

@@ -1,9 +0,5 @@

import "core-js/modules/es.array.from";
import "core-js/modules/es.array.map";
import "core-js/modules/es.object.assign";
import "core-js/modules/es.string.iterator";
import "core-js/modules/es.string.replace";
import "core-js/modules/es.string.split";
import "core-js/modules/web.dom-collections.for-each";
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
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); } }

@@ -15,193 +11,261 @@

* --------------------------------------------------------------------------
* CoreUI (v2.1.14): ajax-load.js
* CoreUI (v3.0.0-apha.13): ajax-load.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
var AjaxLoad = function ($) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
var NAME = 'ajaxLoad';
var VERSION = '2.1.14';
var DATA_KEY = 'coreui.ajaxLoad';
var JQUERY_NO_CONFLICT = $.fn[NAME];
var ClassName = {
ACTIVE: 'active',
NAV_PILLS: 'nav-pills',
NAV_TABS: 'nav-tabs',
OPEN: 'open',
VIEW_SCRIPT: 'view-script'
};
var Event = {
CLICK: 'click'
};
var Selector = {
HEAD: 'head',
NAV_DROPDOWN: '.sidebar-nav .nav-dropdown',
NAV_LINK: '.sidebar-nav .nav-link',
NAV_ITEM: '.sidebar-nav .nav-item',
VIEW_SCRIPT: '.view-script'
};
var Default = {
defaultPage: 'main.html',
errorPage: '404.html',
subpagesDirectory: 'views/'
};
import { jQuery as $ } from './util/index';
import Data from './dom/data';
import EventHandler from './dom/eventHandler';
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
var AjaxLoad =
/*#__PURE__*/
function () {
function AjaxLoad(element, config) {
this._config = this._getConfig(config);
this._element = element;
var url = location.hash.replace(/^#/, '');
var NAME = 'ajaxLoad';
var VERSION = '3.0.0';
var DATA_KEY = 'coreui.ajaxLoad';
var EVENT_KEY = "." + DATA_KEY;
var DATA_API_KEY = '.data-api';
var JQUERY_NO_CONFLICT = $.fn[NAME];
var ClassName = {
ACTIVE: 'active',
NAV_DROPDOWN_TOGGLE: 'nav-dropdown-toggle',
NAV_PILLS: 'nav-pills',
NAV_TABS: 'nav-tabs',
OPEN: 'open',
VIEW_SCRIPT: 'view-script'
};
var Event = {
CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY
};
var Selector = {
HEAD: 'head',
NAV_DROPDOWN: '.nav .nav-dropdown',
NAV_LINK: '.dropdown-nav-link, .nav .nav-link',
NAV_ITEM: '.nav .nav-item',
SIDEBAT_NAV: '.c-sidebar-nav, .sidebar-nav',
VIEW_SCRIPT: '.view-script'
};
var Default = {
defaultPage: 'main.html',
errorPage: '404.html',
subpagesDirectory: 'views/'
};
if (url !== '') {
this.setUpUrl(url);
} else {
this.setUpUrl(this._config.defaultPage);
}
var AjaxLoad =
/*#__PURE__*/
function () {
function AjaxLoad(element, config) {
this._config = this._getConfig(config);
this._element = element;
var url = location.hash.replace(/^#/, '');
this._addEventListeners();
} // Getters
if (url !== '') {
this.setUpUrl(url);
} else {
this.setUpUrl(this._config.defaultPage);
}
this._addEventListeners();
} // Getters
var _proto = AjaxLoad.prototype;
// Public
_proto.loadPage = function loadPage(url) {
var element = this._element;
var config = this._config;
var _proto = AjaxLoad.prototype;
var loadScripts = function loadScripts(src, element) {
if (element === void 0) {
element = 0;
}
// Public
_proto.loadPage = function loadPage(url) {
var _this = this;
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = src[element];
script.className = ClassName.VIEW_SCRIPT; // eslint-disable-next-line no-multi-assign
var element = this._element;
var config = this._config;
script.onload = script.onreadystatechange = function () {
if (!this.readyState || this.readyState === 'complete') {
if (src.length > element + 1) {
loadScripts(src, element + 1);
}
var loadScripts = function loadScripts(src, element) {
if (element === void 0) {
element = 0;
}
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = src[element];
script.className = ClassName.VIEW_SCRIPT; // eslint-disable-next-line no-multi-assign, unicorn/prefer-add-event-listener
script.onload = script.onreadystatechange = function () {
if (!_this.readyState || _this.readyState === 'complete') {
if (src.length > element + 1) {
loadScripts(src, element + 1);
}
};
var body = document.getElementsByTagName('body')[0];
body.appendChild(script);
}
};
$.ajax({
type: 'GET',
url: config.subpagesDirectory + url,
dataType: 'html',
beforeSend: function beforeSend() {
$(Selector.VIEW_SCRIPT).remove();
},
success: function success(result) {
var wrapper = document.createElement('div');
wrapper.innerHTML = result;
var scripts = Array.from(wrapper.querySelectorAll('script')).map(function (script) {
return script.attributes.getNamedItem('src').nodeValue;
});
wrapper.querySelectorAll('script').forEach(function (script) {
return script.parentNode.removeChild(script);
});
$('body').animate({
scrollTop: 0
}, 0);
$(element).html(wrapper);
var body = document.getElementsByTagName('body')[0];
body.appendChild(script);
};
if (scripts.length) {
loadScripts(scripts);
}
var xhr = new XMLHttpRequest();
xhr.open('GET', config.subpagesDirectory + url); // eslint-disable-next-line unicorn/prefer-add-event-listener
window.location.hash = url;
},
error: function error() {
window.location.href = config.errorPage;
xhr.onload = function (result) {
if (xhr.status === 200) {
var wrapper = document.createElement('div');
wrapper.innerHTML = result.target.response; // eslint-disable-next-line unicorn/prefer-spread
var scripts = Array.from(wrapper.querySelectorAll('script')).map(function (script) {
return script.attributes.getNamedItem('src').nodeValue;
});
wrapper.querySelectorAll('script').forEach(function (script) {
return script.remove(script);
});
window.scrollTo(0, 0);
$(element).html(wrapper);
if (scripts.length) {
loadScripts(scripts);
}
});
};
_proto.setUpUrl = function setUpUrl(url) {
$(Selector.NAV_LINK).removeClass(ClassName.ACTIVE);
$(Selector.NAV_DROPDOWN).removeClass(ClassName.OPEN);
$(Selector.NAV_DROPDOWN + ":has(a[href=\"" + url.replace(/^\//, '').split('?')[0] + "\"])").addClass(ClassName.OPEN);
$(Selector.NAV_ITEM + " a[href=\"" + url.replace(/^\//, '').split('?')[0] + "\"]").addClass(ClassName.ACTIVE);
this.loadPage(url);
window.location.hash = url;
} else {
window.location.href = config.errorPage;
}
};
_proto.loadBlank = function loadBlank(url) {
window.open(url);
};
xhr.send();
};
_proto.loadTop = function loadTop(url) {
window.location = url;
} // Private
;
_proto.setUpUrl = function setUpUrl(url) {
url = url.replace(/^\//, '').split('?')[0]; // eslint-disable-next-line unicorn/prefer-spread
_proto._getConfig = function _getConfig(config) {
config = Object.assign({}, Default, config);
return config;
};
Array.from(document.querySelectorAll(Selector.NAV_LINK)).forEach(function (element) {
element.classList.remove(ClassName.ACTIVE);
}); // eslint-disable-next-line unicorn/prefer-spread
_proto._addEventListeners = function _addEventListeners() {
var _this = this;
Array.from(document.querySelectorAll(Selector.NAV_LINK)).forEach(function (element) {
element.classList.remove(ClassName.ACTIVE);
}); // eslint-disable-next-line unicorn/prefer-spread
$(document).on(Event.CLICK, Selector.NAV_LINK + "[href!=\"#\"]", function (event) {
event.preventDefault();
event.stopPropagation();
Array.from(document.querySelectorAll(Selector.NAV_DROPDOWN)).forEach(function (element) {
element.classList.remove(ClassName.OPEN);
}); // eslint-disable-next-line unicorn/prefer-spread
if (event.currentTarget.target === '_top') {
_this.loadTop(event.currentTarget.href);
} else if (event.currentTarget.target === '_blank') {
_this.loadBlank(event.currentTarget.href);
Array.from(document.querySelectorAll(Selector.NAV_DROPDOWN)).forEach(function (element) {
// eslint-disable-next-line unicorn/prefer-spread
if (Array.from(element.querySelectorAll("a[href*=\"" + url + "\"]")).length > 0) {
element.classList.add(ClassName.OPEN);
}
}); // eslint-disable-next-line unicorn/prefer-spread
Array.from(document.querySelectorAll(Selector.NAV_ITEM + " a[href*=\"" + url + "\"]")).forEach(function (element) {
element.classList.add(ClassName.ACTIVE);
});
this.loadPage(url);
};
_proto.loadBlank = function loadBlank(url) {
window.open(url);
};
_proto.loadTop = function loadTop(url) {
window.location = url;
};
_proto.update = function update(link) {
if (link.href !== '#') {
if (typeof link.dataset.toggle === 'undefined' || link.dataset.toggle === 'null') {
if (link.target === '_top') {
this.loadTop(link.href);
} else if (link.target === '_blank') {
this.loadBlank(link.href);
} else {
_this.setUpUrl(event.currentTarget.getAttribute('href'));
this.setUpUrl(link.getAttribute('href'));
}
});
} // Static
;
}
}
} // Private
;
AjaxLoad._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
var data = $(this).data(DATA_KEY);
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, config);
return config;
};
var _config = typeof config === 'object' && config;
_proto._addEventListeners = function _addEventListeners() {
var _this2 = this;
if (!data) {
data = new AjaxLoad(this, _config);
$(this).data(DATA_KEY, data);
}
});
};
EventHandler.on(document, Event.CLICK_DATA_API, Selector.NAV_LINK, function (event) {
event.preventDefault();
var link = event.target;
_createClass(AjaxLoad, null, [{
key: "VERSION",
get: function get() {
return VERSION;
if (!link.classList.contains(ClassName.NAV_LINK)) {
link = link.closest(Selector.NAV_LINK);
}
}, {
key: "Default",
get: function get() {
return Default;
if (!link.classList.contains(ClassName.NAV_DROPDOWN_TOGGLE) && link.getAttribute('href') !== '#') {
_this2.update(link);
}
}]);
});
} // Static
;
return AjaxLoad;
}();
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
AjaxLoad._ajaxLoadInterface = function _ajaxLoadInterface(element, config) {
var data = Data.getData(element, DATA_KEY);
var _config = typeof config === 'object' && config;
if (!data) {
data = new AjaxLoad(element, _config);
}
if (typeof config === 'string') {
if (typeof data[config] === 'undefined') {
throw new TypeError("No method named \"" + config + "\"");
}
data[config]();
}
};
AjaxLoad._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
AjaxLoad._ajaxLoadInterface(this, config);
});
};
_createClass(AjaxLoad, null, [{
key: "VERSION",
get: function get() {
return VERSION;
}
}, {
key: "Default",
get: function get() {
return Default;
}
}]);
return AjaxLoad;
}();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
// EventHandler.on(window, Event.LOAD_DATA_API, event => {
// console.log(event)
// // const ajax = Array.from(SelectorEngine)
// // makeArray(SelectorEngine.find(Selector.DATA_RIDE))
// console.log('Event Loooooooad')
// // AjaxLoad._ajaxLoadInterface()
// })
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
* * add .ajaxLoad to jQuery only if jQuery is present
*/
if (typeof $ !== 'undefined') {
var _JQUERY_NO_CONFLICT = $.fn[NAME];
$.fn[NAME] = AjaxLoad._jQueryInterface;

@@ -211,8 +275,8 @@ $.fn[NAME].Constructor = AjaxLoad;

$.fn[NAME].noConflict = function () {
$.fn[NAME] = JQUERY_NO_CONFLICT;
$.fn[NAME] = _JQUERY_NO_CONFLICT;
return AjaxLoad._jQueryInterface;
};
}
return AjaxLoad;
}($);
export default AjaxLoad;
//# sourceMappingURL=ajax-load.js.map

@@ -7,107 +7,108 @@ 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.1.14): aside-menu.js
* CoreUI (v3.0.0-apha.13): aside-menu.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
var AsideMenu = function ($) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
var NAME = 'aside-menu';
var VERSION = '2.1.14';
var DATA_KEY = 'coreui.aside-menu';
var EVENT_KEY = "." + DATA_KEY;
var DATA_API_KEY = '.data-api';
var JQUERY_NO_CONFLICT = $.fn[NAME];
var Event = {
CLICK: 'click',
LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY,
TOGGLE: 'toggle'
};
var Selector = {
BODY: 'body',
ASIDE_MENU: '.aside-menu',
ASIDE_MENU_TOGGLER: '.aside-menu-toggler'
};
var ShowClassNames = ['aside-menu-show', 'aside-menu-sm-show', 'aside-menu-md-show', 'aside-menu-lg-show', 'aside-menu-xl-show'];
/**
* ------------------------------------------------------------------------
* Class Definition
* ------------------------------------------------------------------------
*/
import $ from 'jquery';
import toggleClasses from './toggle-classes';
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
var AsideMenu =
/*#__PURE__*/
function () {
function AsideMenu(element) {
this._element = element;
var NAME = 'aside-menu';
var VERSION = '3.0.0';
var DATA_KEY = 'coreui.aside-menu';
var EVENT_KEY = "." + DATA_KEY;
var DATA_API_KEY = '.data-api';
var JQUERY_NO_CONFLICT = $.fn[NAME];
var Event = {
CLICK: 'click',
LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY,
TOGGLE: 'toggle'
};
var Selector = {
BODY: 'body',
ASIDE_MENU: '.aside-menu',
ASIDE_MENU_TOGGLER: '.aside-menu-toggler'
};
var ShowClassNames = ['aside-menu-show', 'aside-menu-sm-show', 'aside-menu-md-show', 'aside-menu-lg-show', 'aside-menu-xl-show'];
/**
* ------------------------------------------------------------------------
* Class Definition
* ------------------------------------------------------------------------
*/
this._addEventListeners();
} // Getters
var AsideMenu =
/*#__PURE__*/
function () {
function AsideMenu(element) {
this._element = element;
this._addEventListeners();
} // Getters
var _proto = AsideMenu.prototype;
// Private
_proto._addEventListeners = function _addEventListeners() {
$(document).on(Event.CLICK, Selector.ASIDE_MENU_TOGGLER, function (event) {
event.preventDefault();
event.stopPropagation();
var toggle = event.currentTarget.dataset ? event.currentTarget.dataset.toggle : $(event.currentTarget).data('toggle');
toggleClasses(toggle, ShowClassNames);
});
} // Static
;
var _proto = AsideMenu.prototype;
AsideMenu._jQueryInterface = function _jQueryInterface() {
return this.each(function () {
var $element = $(this);
var data = $element.data(DATA_KEY);
// Private
_proto._addEventListeners = function _addEventListeners() {
$(document).on(Event.CLICK, Selector.ASIDE_MENU_TOGGLER, function (event) {
event.preventDefault();
event.stopPropagation();
var toggle = event.currentTarget.dataset ? event.currentTarget.dataset.toggle : $(event.currentTarget).data('toggle');
toggleClasses(toggle, ShowClassNames);
});
} // Static
;
if (!data) {
data = new AsideMenu(this);
$element.data(DATA_KEY, data);
}
});
};
AsideMenu._jQueryInterface = function _jQueryInterface() {
return this.each(function () {
var $element = $(this);
var data = $element.data(DATA_KEY);
_createClass(AsideMenu, null, [{
key: "VERSION",
get: function get() {
return VERSION;
if (!data) {
data = new AsideMenu(this);
$element.data(DATA_KEY, data);
}
}]);
});
};
return AsideMenu;
}();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
_createClass(AsideMenu, null, [{
key: "VERSION",
get: function get() {
return VERSION;
}
}]);
return AsideMenu;
}();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(window).on(Event.LOAD_DATA_API, function () {
var asideMenu = $(Selector.ASIDE_MENU);
AsideMenu._jQueryInterface.call(asideMenu);
});
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
$(window).on(Event.LOAD_DATA_API, function () {
var asideMenu = $(Selector.ASIDE_MENU);
$.fn[NAME] = AsideMenu._jQueryInterface;
$.fn[NAME].Constructor = AsideMenu;
AsideMenu._jQueryInterface.call(asideMenu);
});
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
$.fn[NAME].noConflict = function () {
$.fn[NAME] = JQUERY_NO_CONFLICT;
return AsideMenu._jQueryInterface;
};
$.fn[NAME] = AsideMenu._jQueryInterface;
$.fn[NAME].Constructor = AsideMenu;
return AsideMenu;
}($);
$.fn[NAME].noConflict = function () {
$.fn[NAME] = JQUERY_NO_CONFLICT;
return AsideMenu._jQueryInterface;
};
export default AsideMenu;
//# sourceMappingURL=aside-menu.js.map

@@ -1,10 +0,26 @@

import "core-js/modules/es.string.split";
import './polyfill';
import $ from 'jquery';
import AjaxLoad from './ajax-load';
import Alert from './alert';
import AsideMenu from './aside-menu';
import Button from './button';
import Carousel from './carousel';
import Collapse from './collapse';
import Dropdown from './dropdown';
import Modal from './modal';
import Popover from './popover';
import Scrollspy from './scrollspy';
import Sidebar from './sidebar';
import Tab from './tab';
import Toast from './toast';
import Tooltip from './tooltip';
import Util from './util';
/**
* --------------------------------------------------------------------------
* CoreUI (v2.1.14): index.js
* CoreUI (v3.0.0-apha.13): index.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
(function ($) {
(function () {
if (typeof $ === 'undefined') {

@@ -22,10 +38,16 @@ throw new TypeError('CoreUI\'s JavaScript requires jQuery. jQuery must be included before CoreUI\'s JavaScript.');

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');
throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
}
})($);
})();
export { Util, AjaxLoad, Alert, AsideMenu, Button, Carousel, Collapse, Dropdown, Modal, Popover, Scrollspy, Sidebar, Tab, Toast, Tooltip }; // 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;
//# sourceMappingURL=index.js.map

@@ -1,5 +0,1 @@

import "core-js/modules/es.array.find";
import "core-js/modules/es.array.slice";
import "core-js/modules/es.string.split";
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); } }

@@ -11,56 +7,52 @@

* --------------------------------------------------------------------------
* CoreUI (v2.1.14): sidebar.js
* CoreUI (v3.0.0-apha.13): sidebar.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
var Sidebar = function ($) {
import { jQuery as $ } from './util/index';
import Data from './dom/data';
import EventHandler from './dom/event-handler';
import PerfectScrollbar from 'perfect-scrollbar';
import getStyle from './utilities/get-style';
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
var NAME = 'sidebar';
var VERSION = '3.0.0-apha.13';
var DATA_KEY = 'coreui.sidebar';
var EVENT_KEY = "." + DATA_KEY;
var DATA_API_KEY = '.data-api';
var PREFIX = window.CoreUIDefaults ? window.CoreUIDefaults.prefix ? window.CoreUIDefaults.prefix : 'c-' : 'c-';
var Default = {
transition: 400
};
var ClassName = {
ACTIVE: PREFIX + "active",
NAV_DROPDOWN_TOGGLE: PREFIX + "nav-dropdown-toggle",
OPEN: PREFIX + "open",
SIDEBAR_MINIMIZED: PREFIX + "sidebar-minimized",
SIDEBAR_SHOW: PREFIX + "sidebar-show"
};
var Event = {
CLASS_TOGGLE: 'classtoggle',
CLICK: 'click',
CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
DESTROY: 'destroy',
INIT: 'init',
LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY,
TOGGLE: 'toggle',
UPDATE: 'update'
};
var Selector = {
NAV_DROPDOWN_TOGGLE: "." + PREFIX + "nav-dropdown-toggle",
NAV_DROPDOWN: "." + PREFIX + "nav-dropdown",
NAV_LINK: "." + PREFIX + "nav-link",
NAV_LINK_QUERIED: "." + PREFIX + "nav-link-queried",
NAVIGATION_CONTAINER: "." + PREFIX + "sidebar-nav",
SIDEBAR: "." + PREFIX + "sidebar"
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
var NAME = 'sidebar';
var VERSION = '2.1.14';
var DATA_KEY = 'coreui.sidebar';
var EVENT_KEY = "." + DATA_KEY;
var DATA_API_KEY = '.data-api';
var JQUERY_NO_CONFLICT = $.fn[NAME];
var Default = {
transition: 400
};
var ClassName = {
ACTIVE: 'active',
BRAND_MINIMIZED: 'brand-minimized',
NAV_DROPDOWN_TOGGLE: 'nav-dropdown-toggle',
OPEN: 'open',
SIDEBAR_FIXED: 'sidebar-fixed',
SIDEBAR_MINIMIZED: 'sidebar-minimized',
SIDEBAR_OFF_CANVAS: 'sidebar-off-canvas'
};
var Event = {
CLICK: 'click',
DESTROY: 'destroy',
INIT: 'init',
LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY,
TOGGLE: 'toggle',
UPDATE: 'update'
};
var Selector = {
BODY: 'body',
BRAND_MINIMIZER: '.brand-minimizer',
NAV_DROPDOWN_TOGGLE: '.nav-dropdown-toggle',
NAV_DROPDOWN_ITEMS: '.nav-dropdown-items',
NAV_ITEM: '.nav-item',
NAV_LINK: '.nav-link',
NAV_LINK_QUERIED: '.nav-link-queried',
NAVIGATION_CONTAINER: '.sidebar-nav',
NAVIGATION: '.sidebar-nav > .nav',
SIDEBAR: '.sidebar',
SIDEBAR_MINIMIZER: '.sidebar-minimizer',
SIDEBAR_TOGGLER: '.sidebar-toggler',
SIDEBAR_SCROLL: '.sidebar-scroll'
};
var ShowClassNames = ['sidebar-show', 'sidebar-sm-show', 'sidebar-md-show', 'sidebar-lg-show', 'sidebar-xl-show'];
/**
* ------------------------------------------------------------------------
* Class Definition

@@ -70,237 +62,294 @@ * ------------------------------------------------------------------------

var Sidebar =
/*#__PURE__*/
function () {
function Sidebar(element) {
this._element = element;
this.mobile = false;
this.ps = null;
this.perfectScrollbar(Event.INIT);
this.setActiveLink();
this._breakpointTest = this._breakpointTest.bind(this);
this._clickOutListener = this._clickOutListener.bind(this);
};
this._addEventListeners();
var Sidebar =
/*#__PURE__*/
function () {
function Sidebar(element) {
this._element = element;
this.mobile = false;
this.ps = null;
this._addMediaQuery();
} // Getters
this._perfectScrollbar(Event.INIT);
this._setActiveLink();
var _proto = Sidebar.prototype;
this._breakpointTest = this._breakpointTest.bind(this);
this._clickOutListener = this._clickOutListener.bind(this);
// Public
_proto.perfectScrollbar = function perfectScrollbar(event) {
var _this = this;
this._addEventListeners();
if (typeof PerfectScrollbar !== 'undefined') {
var classList = document.body.classList;
this._addMediaQuery();
} // Getters
if (event === Event.INIT && !classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
this.ps = this.makeScrollbar();
}
if (event === Event.DESTROY) {
this.destroyScrollbar();
}
var _proto = Sidebar.prototype;
if (event === Event.TOGGLE) {
if (classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
this.destroyScrollbar();
} else {
this.destroyScrollbar();
this.ps = this.makeScrollbar();
}
}
// Private
_proto._toggleDropdown = function _toggleDropdown(event) {
var toggler = event.target;
if (event === Event.UPDATE && !classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
// ToDo: Add smooth transition
setTimeout(function () {
_this.destroyScrollbar();
if (!toggler.classList.contains(ClassName.NAV_DROPDOWN_TOGGLE)) {
toggler = toggler.closest(Selector.NAV_DROPDOWN_TOGGLE);
}
_this.ps = _this.makeScrollbar();
}, Default.transition);
}
}
};
toggler.parentNode.classList.toggle(ClassName.OPEN);
_proto.makeScrollbar = function makeScrollbar() {
var container = Selector.SIDEBAR_SCROLL;
this._perfectScrollbar(Event.UPDATE);
};
if (document.querySelector(container) === null) {
container = Selector.NAVIGATION_CONTAINER;
_proto._closeSidebar = function _closeSidebar(event) {
var link = event.target;
if (document.querySelector(container) === null) {
return null;
}
}
if (!link.classList.contains(ClassName.NAV_LINK)) {
link = link.closest(Selector.NAV_LINK);
}
var ps = new PerfectScrollbar(document.querySelector(container), {
suppressScrollX: true
}); // ToDo: find real fix for ps rtl
if (this.mobile && !link.classList.contains(ClassName.NAV_DROPDOWN_TOGGLE)) {
this._removeClickOut();
ps.isRtl = false;
return ps;
};
this._element.classList.remove(ClassName.SIDEBAR_SHOW);
}
};
_proto.destroyScrollbar = function destroyScrollbar() {
if (this.ps) {
this.ps.destroy();
this.ps = null;
_proto._perfectScrollbar = function _perfectScrollbar(event) {
var _this = this;
if (typeof PerfectScrollbar !== 'undefined') {
if (event === Event.INIT && !this._element.classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
this.ps = this._makeScrollbar();
}
};
_proto.setActiveLink = function setActiveLink() {
$(Selector.NAVIGATION).find(Selector.NAV_LINK).each(function (key, value) {
var link = value;
var cUrl;
if (event === Event.DESTROY) {
this._destroyScrollbar();
}
if (link.classList.contains(Selector.NAV_LINK_QUERIED)) {
cUrl = String(window.location);
if (event === Event.TOGGLE) {
if (this._element.classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
this._destroyScrollbar();
} else {
cUrl = String(window.location).split('?')[0];
}
this._destroyScrollbar();
if (cUrl.substr(cUrl.length - 1) === '#') {
cUrl = cUrl.slice(0, -1);
this.ps = this._makeScrollbar();
}
}
if ($($(link))[0].href === cUrl) {
$(link).addClass(ClassName.ACTIVE).parents(Selector.NAV_DROPDOWN_ITEMS).add(link).each(function (key, value) {
link = value;
$(link).parent().addClass(ClassName.OPEN);
});
if (event === Event.UPDATE && !this._element.classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
// TODO: Add smooth transition
setTimeout(function () {
_this._destroyScrollbar();
_this.ps = _this._makeScrollbar();
}, Default.transition);
}
}
};
_proto._makeScrollbar = function _makeScrollbar(container) {
if (container === void 0) {
container = Selector.NAVIGATION_CONTAINER;
}
var ps = new PerfectScrollbar(document.querySelector(container), {
suppressScrollX: true
}); // TODO: find real fix for ps rtl
ps.isRtl = false;
return ps;
};
_proto._destroyScrollbar = function _destroyScrollbar() {
if (this.ps) {
this.ps.destroy();
this.ps = null;
}
};
_proto._getParents = function _getParents(element, selector) {
// Element.matches() polyfill
// if (!Element.prototype.matches) {
// Element.prototype.matches =
// Element.prototype.matchesSelector ||
// Element.prototype.mozMatchesSelector ||
// Element.prototype.msMatchesSelector ||
// Element.prototype.oMatchesSelector ||
// Element.prototype.webkitMatchesSelector ||
// function(s) {
// var matches = (this.document || this.ownerDocument).querySelectorAll(s),
// i = matches.length;
// while (--i >= 0 && matches.item(i) !== this) {}
// return i > -1;
// };
// }
// Setup parents array
var parents = []; // Get matching parent elements
for (; element && element !== document; element = element.parentNode) {
// Add matching parents to array
if (selector) {
if (element.matches(selector)) {
parents.push(element);
}
});
} // Private
;
} else {
parents.push(element);
}
}
_proto._addMediaQuery = function _addMediaQuery() {
var sm = getStyle('--breakpoint-sm');
return parents;
};
if (!sm) {
return;
_proto._setActiveLink = function _setActiveLink() {
var _this2 = this;
// eslint-disable-next-line unicorn/prefer-spread
Array.from(this._element.querySelectorAll(Selector.NAV_LINK)).forEach(function (element) {
var currentUrl;
if (element.classList.contains(Selector.NAV_LINK_QUERIED)) {
currentUrl = String(window.location);
} else {
currentUrl = String(window.location).split('?')[0];
}
var smVal = parseInt(sm, 10) - 1;
var mediaQueryList = window.matchMedia("(max-width: " + smVal + "px)");
if (currentUrl.substr(currentUrl.length - 1) === '#') {
currentUrl = currentUrl.slice(0, -1);
}
this._breakpointTest(mediaQueryList);
if (element.href === currentUrl) {
element.classList.add(ClassName.ACTIVE); // eslint-disable-next-line unicorn/prefer-spread
mediaQueryList.addListener(this._breakpointTest);
};
Array.from(_this2._getParents(element, Selector.NAV_DROPDOWN)).forEach(function (element) {
element.classList.add(ClassName.OPEN);
});
}
});
};
_proto._breakpointTest = function _breakpointTest(e) {
this.mobile = Boolean(e.matches);
_proto._addMediaQuery = function _addMediaQuery() {
var sm = getStyle('--breakpoint-sm');
this._toggleClickOut();
};
if (!sm) {
return;
}
_proto._clickOutListener = function _clickOutListener(event) {
if (!this._element.contains(event.target)) {
// or use: event.target.closest(Selector.SIDEBAR) === null
event.preventDefault();
event.stopPropagation();
var smValue = parseInt(sm, 10) - 1;
var mediaQueryList = window.matchMedia("(max-width: " + smValue + "px)");
this._removeClickOut();
this._breakpointTest(mediaQueryList);
document.body.classList.remove('sidebar-show');
}
};
mediaQueryList.addListener(this._breakpointTest);
};
_proto._addClickOut = function _addClickOut() {
document.addEventListener(Event.CLICK, this._clickOutListener, true);
};
_proto._breakpointTest = function _breakpointTest(event) {
this.mobile = Boolean(event.matches);
_proto._removeClickOut = function _removeClickOut() {
document.removeEventListener(Event.CLICK, this._clickOutListener, true);
};
this._toggleClickOut();
};
_proto._toggleClickOut = function _toggleClickOut() {
if (this.mobile && document.body.classList.contains('sidebar-show')) {
document.body.classList.remove('aside-menu-show');
_proto._clickOutListener = function _clickOutListener(event) {
if (!this._element.contains(event.target)) {
// or use: event.target.closest(Selector.SIDEBAR) === null
event.preventDefault();
event.stopPropagation();
this._addClickOut();
} else {
this._removeClickOut();
}
};
this._removeClickOut();
_proto._addEventListeners = function _addEventListeners() {
var _this2 = this;
this._element.classList.remove(ClassName.SIDEBAR_SHOW);
}
};
$(document).on(Event.CLICK, Selector.BRAND_MINIMIZER, function (event) {
event.preventDefault();
event.stopPropagation();
$(Selector.BODY).toggleClass(ClassName.BRAND_MINIMIZED);
});
$(document).on(Event.CLICK, Selector.NAV_DROPDOWN_TOGGLE, function (event) {
event.preventDefault();
event.stopPropagation();
var dropdown = event.target;
$(dropdown).parent().toggleClass(ClassName.OPEN);
_proto._addClickOut = function _addClickOut() {
document.addEventListener(Event.CLICK, this._clickOutListener, true);
};
_this2.perfectScrollbar(Event.UPDATE);
});
$(document).on(Event.CLICK, Selector.SIDEBAR_MINIMIZER, function (event) {
event.preventDefault();
event.stopPropagation();
$(Selector.BODY).toggleClass(ClassName.SIDEBAR_MINIMIZED);
_proto._removeClickOut = function _removeClickOut() {
document.removeEventListener(Event.CLICK, this._clickOutListener, true);
};
_this2.perfectScrollbar(Event.TOGGLE);
});
$(document).on(Event.CLICK, Selector.SIDEBAR_TOGGLER, function (event) {
event.preventDefault();
event.stopPropagation();
var toggle = event.currentTarget.dataset ? event.currentTarget.dataset.toggle : $(event.currentTarget).data('toggle');
toggleClasses(toggle, ShowClassNames);
_proto._toggleClickOut = function _toggleClickOut() {
if (this.mobile && this._element.classList.contains(ClassName.SIDEBAR_SHOW)) {
this._addClickOut();
} else {
this._removeClickOut();
}
};
_this2._toggleClickOut();
});
$(Selector.NAVIGATION + " > " + Selector.NAV_ITEM + " " + Selector.NAV_LINK + ":not(" + Selector.NAV_DROPDOWN_TOGGLE + ")").on(Event.CLICK, function () {
_this2._removeClickOut();
_proto._addEventListeners = function _addEventListeners() {
var _this3 = this;
document.body.classList.remove('sidebar-show');
});
} // Static
;
EventHandler.on(this._element, Event.CLASS_TOGGLE, function (event) {
if (event.detail.className === ClassName.SIDEBAR_MINIMIZED) {
_this3._perfectScrollbar(Event.TOGGLE);
}
Sidebar._jQueryInterface = function _jQueryInterface() {
return this.each(function () {
var $element = $(this);
var data = $element.data(DATA_KEY);
if (event.detail.className === ClassName.SIDEBAR_SHOW) {
_this3._toggleClickOut();
}
});
EventHandler.on(this._element, Event.CLICK_DATA_API, Selector.NAV_DROPDOWN_TOGGLE, function (event) {
event.preventDefault();
if (!data) {
data = new Sidebar(this);
$element.data(DATA_KEY, data);
}
});
};
_this3._toggleDropdown(event);
});
EventHandler.on(this._element, Event.CLICK_DATA_API, Selector.NAV_LINK, function (event) {
_this3._closeSidebar(event);
});
} // Static
;
_createClass(Sidebar, null, [{
key: "VERSION",
get: function get() {
return VERSION;
Sidebar._sidebarInterface = function _sidebarInterface(element, config) {
var data = Data.getData(element, DATA_KEY);
var _config = typeof config === 'object' && config;
if (!data) {
data = new Sidebar(element, _config);
}
if (typeof config === 'string') {
if (typeof data[config] === 'undefined') {
throw new TypeError("No method named \"" + config + "\"");
}
}]);
return Sidebar;
}();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
data[config]();
}
};
Sidebar._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
Sidebar._sidebarInterface(this, config);
});
};
$(window).on(Event.LOAD_DATA_API, function () {
var sidebar = $(Selector.SIDEBAR);
_createClass(Sidebar, null, [{
key: "VERSION",
get: function get() {
return VERSION;
}
}]);
Sidebar._jQueryInterface.call(sidebar);
return Sidebar;
}();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
EventHandler.on(window, Event.LOAD_DATA_API, function () {
// eslint-disable-next-line unicorn/prefer-spread
Array.from(document.querySelectorAll(Selector.SIDEBAR)).forEach(function (element) {
Sidebar._sidebarInterface(element);
});
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
});
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
* add .asyncLoad to jQuery only if jQuery is present
*/
if (typeof $ !== 'undefined') {
var JQUERY_NO_CONFLICT = $.fn[NAME];
$.fn[NAME] = Sidebar._jQueryInterface;

@@ -313,5 +362,5 @@ $.fn[NAME].Constructor = Sidebar;

};
}
return Sidebar;
}($);
export default Sidebar;
//# sourceMappingURL=sidebar.js.map

@@ -1,7 +0,4 @@

import "core-js/modules/es.array.map";
import "core-js/modules/es.array.slice";
/**
* --------------------------------------------------------------------------
* CoreUI (v2.1.14): toggle-classes.js
* CoreUI (v3.0.0-apha.13): toggle-classes.js
* Licensed under MIT (https://coreui.io/license)

@@ -28,2 +25,4 @@ * --------------------------------------------------------------------------

};
export default toggleClasses;
//# sourceMappingURL=toggle-classes.js.map

@@ -1,2 +0,13 @@

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v3.0.0-apha.13): classes.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
export var sidebarCssClasses = ['sidebar-show', 'sidebar-sm-show', 'sidebar-md-show', 'sidebar-lg-show', 'sidebar-xl-show'];
export var asideMenuCssClasses = ['aside-menu-show', 'aside-menu-sm-show', 'aside-menu-md-show', 'aside-menu-lg-show', 'aside-menu-xl-show'];
export var validBreakpoints = ['sm', 'md', 'lg', 'xl'];
export function checkBreakpoint(breakpoint, list) {
return list.indexOf(breakpoint) > -1;
}
//# sourceMappingURL=classes.js.map

@@ -1,4 +0,1 @@

import "core-js/modules/es.object.assign";
import "core-js/modules/es.object.keys";
var deepObjectsMerge = function deepObjectsMerge(target, source) {

@@ -18,2 +15,4 @@ // Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties

};
export default deepObjectsMerge;
//# sourceMappingURL=deep-objects-merge.js.map
/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): get-color.js
* CoreUI Utilities (v3.0.0-apha.13): get-color.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
import getStyle from './get-style';
var getColor = function getColor(rawProperty, element) {

@@ -16,2 +18,4 @@ if (element === void 0) {

};
export default getColor;
//# sourceMappingURL=get-color.js.map

@@ -1,8 +0,4 @@

import "core-js/modules/es.string.split";
import "core-js/modules/es.string.trim";
import "core-js/modules/web.dom-collections.for-each";
/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): get-css-custom-properties.js
* CoreUI Utilities (v3.0.0-apha.13): get-css-custom-properties.js
* Licensed under MIT (https://coreui.io/license)

@@ -22,2 +18,3 @@ * @returns {string} css custom property name

if (rules[j].selectorText === '.ie-custom-properties') {
// eslint-disable-next-line prefer-destructuring
cssText = rules[j].cssText;

@@ -46,2 +43,4 @@ break;

};
export default getCssCustomProperties;
//# sourceMappingURL=get-css-custom-properties.js.map

@@ -1,10 +0,8 @@

import "core-js/modules/es.string.match";
import "core-js/modules/es.string.replace";
/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): get-style.js
* CoreUI Utilities (v3.0.0-apha.13): get-style.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
import getCssCustomProperties from './get-css-custom-properties';
var minIEVersion = 10;

@@ -36,2 +34,4 @@

};
export default getStyle;
//# sourceMappingURL=get-style.js.map

@@ -1,6 +0,4 @@

import "core-js/modules/es.string.match";
/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): hex-to-rgb.js
* CoreUI Utilities (v3.0.0-apha.13): hex-to-rgb.js
* Licensed under MIT (https://coreui.io/license)

@@ -13,3 +11,3 @@ * --------------------------------------------------------------------------

if (typeof color === 'undefined') {
throw new Error('Hex color is not defined');
throw new TypeError('Hex color is not defined');
}

@@ -39,2 +37,4 @@

};
export default hexToRgb;
//# sourceMappingURL=hex-to-rgb.js.map

@@ -1,6 +0,4 @@

import "core-js/modules/es.string.match";
/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): hex-to-rgba.js
* CoreUI Utilities (v3.0.0-apha.13): hex-to-rgba.js
* Licensed under MIT (https://coreui.io/license)

@@ -17,3 +15,3 @@ * --------------------------------------------------------------------------

if (typeof color === 'undefined') {
throw new Error('Hex color is not defined');
throw new TypeError('Hex color is not defined');
}

@@ -43,2 +41,4 @@

};
export default hexToRgba;
//# sourceMappingURL=hex-to-rgba.js.map

@@ -1,2 +0,9 @@

import { asideMenuCssClasses, checkBreakpoint, sidebarCssClasses, validBreakpoints } from './classes';
import deepObjectsMerge from './deep-objects-merge';
import getColor from './get-color';
import getStyle from './get-style';
import hexToRgb from './hex-to-rgb';
import hexToRgba from './hex-to-rgba';
import rgbToHex from './rgb-to-hex';
export { asideMenuCssClasses, checkBreakpoint, sidebarCssClasses, validBreakpoints, deepObjectsMerge, getColor, getStyle, hexToRgb, hexToRgba, rgbToHex };
//# sourceMappingURL=index.js.map

@@ -1,9 +0,4 @@

import "core-js/modules/es.array.slice";
import "core-js/modules/es.object.to-string";
import "core-js/modules/es.regexp.to-string";
import "core-js/modules/es.string.match";
/**
* --------------------------------------------------------------------------
* CoreUI (v2.1.14): rgb-to-hex.js
* CoreUI (v3.0.0-apha.13): rgb-to-hex.js
* Licensed under MIT (https://coreui.io/license)

@@ -16,3 +11,3 @@ * --------------------------------------------------------------------------

if (typeof color === 'undefined') {
throw new Error('Hex color is not defined');
throw new TypeError('Hex color is not defined');
}

@@ -35,2 +30,4 @@

};
export default rgbToHex;
//# sourceMappingURL=rgb-to-hex.js.map

@@ -1,9 +0,4 @@

import $ from 'jquery'
import PerfectScrollbar from 'perfect-scrollbar'
import getStyle from './utilities/get-style'
import toggleClasses from './toggle-classes'
/**
* --------------------------------------------------------------------------
* CoreUI (v2.1.14): sidebar.js
* CoreUI (v3.0.0-apha.13): sidebar.js
* Licensed under MIT (https://coreui.io/license)

@@ -13,283 +8,321 @@ * --------------------------------------------------------------------------

const Sidebar = (($) => {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
import {
jQuery as $
} from './util/index'
import Data from './dom/data'
import EventHandler from './dom/event-handler'
import PerfectScrollbar from 'perfect-scrollbar'
import getStyle from './utilities/get-style'
const NAME = 'sidebar'
const VERSION = '2.1.14'
const DATA_KEY = 'coreui.sidebar'
const EVENT_KEY = `.${DATA_KEY}`
const DATA_API_KEY = '.data-api'
const JQUERY_NO_CONFLICT = $.fn[NAME]
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
const Default = {
transition : 400
}
const NAME = 'sidebar'
const VERSION = '3.0.0-apha.13'
const DATA_KEY = 'coreui.sidebar'
const EVENT_KEY = `.${DATA_KEY}`
const DATA_API_KEY = '.data-api'
const PREFIX = window.CoreUIDefaults ? window.CoreUIDefaults.prefix ? window.CoreUIDefaults.prefix : 'c-' : 'c-'
const ClassName = {
ACTIVE : 'active',
BRAND_MINIMIZED : 'brand-minimized',
NAV_DROPDOWN_TOGGLE : 'nav-dropdown-toggle',
OPEN : 'open',
SIDEBAR_FIXED : 'sidebar-fixed',
SIDEBAR_MINIMIZED : 'sidebar-minimized',
SIDEBAR_OFF_CANVAS : 'sidebar-off-canvas'
}
const Default = {
transition: 400
}
const Event = {
CLICK : 'click',
DESTROY : 'destroy',
INIT : 'init',
LOAD_DATA_API : `load${EVENT_KEY}${DATA_API_KEY}`,
TOGGLE : 'toggle',
UPDATE : 'update'
const ClassName = {
ACTIVE: `${PREFIX}active`,
NAV_DROPDOWN_TOGGLE: `${PREFIX}nav-dropdown-toggle`,
OPEN: `${PREFIX}open`,
SIDEBAR_MINIMIZED: `${PREFIX}sidebar-minimized`,
SIDEBAR_SHOW: `${PREFIX}sidebar-show`
}
const Event = {
CLASS_TOGGLE: 'classtoggle',
CLICK: 'click',
CLICK_DATA_API: `click${EVENT_KEY}${DATA_API_KEY}`,
DESTROY: 'destroy',
INIT: 'init',
LOAD_DATA_API: `load${EVENT_KEY}${DATA_API_KEY}`,
TOGGLE: 'toggle',
UPDATE: 'update'
}
const Selector = {
NAV_DROPDOWN_TOGGLE: `.${PREFIX}nav-dropdown-toggle`,
NAV_DROPDOWN: `.${PREFIX}nav-dropdown`,
NAV_LINK: `.${PREFIX}nav-link`,
NAV_LINK_QUERIED: `.${PREFIX}nav-link-queried`,
NAVIGATION_CONTAINER: `.${PREFIX}sidebar-nav`,
SIDEBAR: `.${PREFIX}sidebar`
}
/**
* ------------------------------------------------------------------------
* Class Definition
* ------------------------------------------------------------------------
*/
class Sidebar {
constructor(element) {
this._element = element
this.mobile = false
this.ps = null
this._perfectScrollbar(Event.INIT)
this._setActiveLink()
this._breakpointTest = this._breakpointTest.bind(this)
this._clickOutListener = this._clickOutListener.bind(this)
this._addEventListeners()
this._addMediaQuery()
}
const Selector = {
BODY : 'body',
BRAND_MINIMIZER : '.brand-minimizer',
NAV_DROPDOWN_TOGGLE : '.nav-dropdown-toggle',
NAV_DROPDOWN_ITEMS : '.nav-dropdown-items',
NAV_ITEM : '.nav-item',
NAV_LINK : '.nav-link',
NAV_LINK_QUERIED : '.nav-link-queried',
NAVIGATION_CONTAINER : '.sidebar-nav',
NAVIGATION : '.sidebar-nav > .nav',
SIDEBAR : '.sidebar',
SIDEBAR_MINIMIZER : '.sidebar-minimizer',
SIDEBAR_TOGGLER : '.sidebar-toggler',
SIDEBAR_SCROLL : '.sidebar-scroll'
// Getters
static get VERSION() {
return VERSION
}
const ShowClassNames = [
'sidebar-show',
'sidebar-sm-show',
'sidebar-md-show',
'sidebar-lg-show',
'sidebar-xl-show'
]
// Private
/**
* ------------------------------------------------------------------------
* Class Definition
* ------------------------------------------------------------------------
*/
class Sidebar {
constructor(element) {
this._element = element
this.mobile = false
this.ps = null
this.perfectScrollbar(Event.INIT)
this.setActiveLink()
this._breakpointTest = this._breakpointTest.bind(this)
this._clickOutListener = this._clickOutListener.bind(this)
this._addEventListeners()
this._addMediaQuery()
_toggleDropdown(event) {
let toggler = event.target
if (!toggler.classList.contains(ClassName.NAV_DROPDOWN_TOGGLE)) {
toggler = toggler.closest(Selector.NAV_DROPDOWN_TOGGLE)
}
// Getters
toggler.parentNode.classList.toggle(ClassName.OPEN)
this._perfectScrollbar(Event.UPDATE)
}
static get VERSION() {
return VERSION
_closeSidebar(event) {
let link = event.target
if (!link.classList.contains(ClassName.NAV_LINK)) {
link = link.closest(Selector.NAV_LINK)
}
// Public
if (this.mobile && !link.classList.contains(ClassName.NAV_DROPDOWN_TOGGLE)) {
this._removeClickOut()
this._element.classList.remove(ClassName.SIDEBAR_SHOW)
}
}
perfectScrollbar(event) {
if (typeof PerfectScrollbar !== 'undefined') {
const classList = document.body.classList
if (event === Event.INIT && !classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
this.ps = this.makeScrollbar()
}
_perfectScrollbar(event) {
if (typeof PerfectScrollbar !== 'undefined') {
if (event === Event.INIT && !this._element.classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
this.ps = this._makeScrollbar()
}
if (event === Event.DESTROY) {
this.destroyScrollbar()
}
if (event === Event.DESTROY) {
this._destroyScrollbar()
}
if (event === Event.TOGGLE) {
if (classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
this.destroyScrollbar()
} else {
this.destroyScrollbar()
this.ps = this.makeScrollbar()
}
if (event === Event.TOGGLE) {
if (this._element.classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
this._destroyScrollbar()
} else {
this._destroyScrollbar()
this.ps = this._makeScrollbar()
}
}
if (event === Event.UPDATE && !classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
// ToDo: Add smooth transition
setTimeout(() => {
this.destroyScrollbar()
this.ps = this.makeScrollbar()
}, Default.transition)
}
if (event === Event.UPDATE && !this._element.classList.contains(ClassName.SIDEBAR_MINIMIZED)) {
// TODO: Add smooth transition
setTimeout(() => {
this._destroyScrollbar()
this.ps = this._makeScrollbar()
}, Default.transition)
}
}
}
makeScrollbar() {
let container = Selector.SIDEBAR_SCROLL
_makeScrollbar(container = Selector.NAVIGATION_CONTAINER) {
const ps = new PerfectScrollbar(document.querySelector(container), {
suppressScrollX: true
})
// TODO: find real fix for ps rtl
ps.isRtl = false
return ps
}
if (document.querySelector(container) === null) {
container = Selector.NAVIGATION_CONTAINER
_destroyScrollbar() {
if (this.ps) {
this.ps.destroy()
this.ps = null
}
}
if (document.querySelector(container) === null) {
return null
_getParents(element, selector) {
// Element.matches() polyfill
// if (!Element.prototype.matches) {
// Element.prototype.matches =
// Element.prototype.matchesSelector ||
// Element.prototype.mozMatchesSelector ||
// Element.prototype.msMatchesSelector ||
// Element.prototype.oMatchesSelector ||
// Element.prototype.webkitMatchesSelector ||
// function(s) {
// var matches = (this.document || this.ownerDocument).querySelectorAll(s),
// i = matches.length;
// while (--i >= 0 && matches.item(i) !== this) {}
// return i > -1;
// };
// }
// Setup parents array
const parents = []
// Get matching parent elements
for (; element && element !== document; element = element.parentNode) {
// Add matching parents to array
if (selector) {
if (element.matches(selector)) {
parents.push(element)
}
} else {
parents.push(element)
}
const ps = new PerfectScrollbar(document.querySelector(container), {
suppressScrollX: true
})
// ToDo: find real fix for ps rtl
ps.isRtl = false
return ps
}
destroyScrollbar() {
if (this.ps) {
this.ps.destroy()
this.ps = null
return parents
}
_setActiveLink() {
// eslint-disable-next-line unicorn/prefer-spread
Array.from(this._element.querySelectorAll(Selector.NAV_LINK)).forEach(element => {
let currentUrl
if (element.classList.contains(Selector.NAV_LINK_QUERIED)) {
currentUrl = String(window.location)
} else {
currentUrl = String(window.location).split('?')[0]
}
}
setActiveLink() {
$(Selector.NAVIGATION).find(Selector.NAV_LINK).each((key, value) => {
let link = value
let cUrl
if (currentUrl.substr(currentUrl.length - 1) === '#') {
currentUrl = currentUrl.slice(0, -1)
}
if (link.classList.contains(Selector.NAV_LINK_QUERIED)) {
cUrl = String(window.location)
} else {
cUrl = String(window.location).split('?')[0]
}
if (element.href === currentUrl) {
element.classList.add(ClassName.ACTIVE)
// eslint-disable-next-line unicorn/prefer-spread
Array.from(this._getParents(element, Selector.NAV_DROPDOWN)).forEach(element => {
element.classList.add(ClassName.OPEN)
})
}
})
}
if (cUrl.substr(cUrl.length - 1) === '#') {
cUrl = cUrl.slice(0, -1)
}
if ($($(link))[0].href === cUrl) {
$(link).addClass(ClassName.ACTIVE).parents(Selector.NAV_DROPDOWN_ITEMS).add(link).each((key, value) => {
link = value
$(link).parent().addClass(ClassName.OPEN)
})
}
})
_addMediaQuery() {
const sm = getStyle('--breakpoint-sm')
if (!sm) {
return
}
// Private
const smValue = parseInt(sm, 10) - 1
const mediaQueryList = window.matchMedia(`(max-width: ${smValue}px)`)
_addMediaQuery() {
const sm = getStyle('--breakpoint-sm')
if (!sm) {
return
}
const smVal = parseInt(sm, 10) - 1
const mediaQueryList = window.matchMedia(`(max-width: ${smVal}px)`)
this._breakpointTest(mediaQueryList)
this._breakpointTest(mediaQueryList)
mediaQueryList.addListener(this._breakpointTest)
}
mediaQueryList.addListener(this._breakpointTest)
}
_breakpointTest(event) {
this.mobile = Boolean(event.matches)
this._toggleClickOut()
}
_breakpointTest(e) {
this.mobile = Boolean(e.matches)
this._toggleClickOut()
_clickOutListener(event) {
if (!this._element.contains(event.target)) { // or use: event.target.closest(Selector.SIDEBAR) === null
event.preventDefault()
event.stopPropagation()
this._removeClickOut()
this._element.classList.remove(ClassName.SIDEBAR_SHOW)
}
}
_clickOutListener(event) {
if (!this._element.contains(event.target)) { // or use: event.target.closest(Selector.SIDEBAR) === null
event.preventDefault()
event.stopPropagation()
this._removeClickOut()
document.body.classList.remove('sidebar-show')
}
}
_addClickOut() {
document.addEventListener(Event.CLICK, this._clickOutListener, true)
}
_addClickOut() {
document.addEventListener(Event.CLICK, this._clickOutListener, true)
}
_removeClickOut() {
document.removeEventListener(Event.CLICK, this._clickOutListener, true)
}
_removeClickOut() {
document.removeEventListener(Event.CLICK, this._clickOutListener, true)
_toggleClickOut() {
if (this.mobile && this._element.classList.contains(ClassName.SIDEBAR_SHOW)) {
this._addClickOut()
} else {
this._removeClickOut()
}
}
_toggleClickOut() {
if (this.mobile && document.body.classList.contains('sidebar-show')) {
document.body.classList.remove('aside-menu-show')
this._addClickOut()
} else {
this._removeClickOut()
_addEventListeners() {
EventHandler.on(this._element, Event.CLASS_TOGGLE, event => {
if (event.detail.className === ClassName.SIDEBAR_MINIMIZED) {
this._perfectScrollbar(Event.TOGGLE)
}
}
_addEventListeners() {
$(document).on(Event.CLICK, Selector.BRAND_MINIMIZER, (event) => {
event.preventDefault()
event.stopPropagation()
$(Selector.BODY).toggleClass(ClassName.BRAND_MINIMIZED)
})
if (event.detail.className === ClassName.SIDEBAR_SHOW) {
this._toggleClickOut()
}
})
$(document).on(Event.CLICK, Selector.NAV_DROPDOWN_TOGGLE, (event) => {
event.preventDefault()
event.stopPropagation()
const dropdown = event.target
$(dropdown).parent().toggleClass(ClassName.OPEN)
this.perfectScrollbar(Event.UPDATE)
})
EventHandler.on(this._element, Event.CLICK_DATA_API, Selector.NAV_DROPDOWN_TOGGLE, event => {
event.preventDefault()
this._toggleDropdown(event)
})
$(document).on(Event.CLICK, Selector.SIDEBAR_MINIMIZER, (event) => {
event.preventDefault()
event.stopPropagation()
$(Selector.BODY).toggleClass(ClassName.SIDEBAR_MINIMIZED)
this.perfectScrollbar(Event.TOGGLE)
})
EventHandler.on(this._element, Event.CLICK_DATA_API, Selector.NAV_LINK, event => {
this._closeSidebar(event)
})
}
$(document).on(Event.CLICK, Selector.SIDEBAR_TOGGLER, (event) => {
event.preventDefault()
event.stopPropagation()
const toggle = event.currentTarget.dataset ? event.currentTarget.dataset.toggle : $(event.currentTarget).data('toggle')
toggleClasses(toggle, ShowClassNames)
this._toggleClickOut()
})
// Static
$(`${Selector.NAVIGATION} > ${Selector.NAV_ITEM} ${Selector.NAV_LINK}:not(${Selector.NAV_DROPDOWN_TOGGLE})`).on(Event.CLICK, () => {
this._removeClickOut()
document.body.classList.remove('sidebar-show')
})
static _sidebarInterface(element, config) {
let data = Data.getData(element, DATA_KEY)
const _config = typeof config === 'object' && config
if (!data) {
data = new Sidebar(element, _config)
}
// Static
if (typeof config === 'string') {
if (typeof data[config] === 'undefined') {
throw new TypeError(`No method named "${config}"`)
}
static _jQueryInterface() {
return this.each(function () {
const $element = $(this)
let data = $element.data(DATA_KEY)
if (!data) {
data = new Sidebar(this)
$element.data(DATA_KEY, data)
}
})
data[config]()
}
}
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
static _jQueryInterface(config) {
return this.each(function () {
Sidebar._sidebarInterface(this, config)
})
}
}
$(window).on(Event.LOAD_DATA_API, () => {
const sidebar = $(Selector.SIDEBAR)
Sidebar._jQueryInterface.call(sidebar)
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
EventHandler.on(window, Event.LOAD_DATA_API, () => {
// eslint-disable-next-line unicorn/prefer-spread
Array.from(document.querySelectorAll(Selector.SIDEBAR)).forEach(element => {
Sidebar._sidebarInterface(element)
})
})
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
* add .asyncLoad to jQuery only if jQuery is present
*/
if (typeof $ !== 'undefined') {
const JQUERY_NO_CONFLICT = $.fn[NAME]
$.fn[NAME] = Sidebar._jQueryInterface

@@ -301,6 +334,4 @@ $.fn[NAME].Constructor = Sidebar

}
}
return Sidebar
})($)
export default Sidebar
/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): classes.js
* CoreUI Utilities (v3.0.0-apha.13): classes.js
* Licensed under MIT (https://coreui.io/license)

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

@@ -0,0 +0,0 @@ const deepObjectsMerge = (target, source) => {

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): get-color.js
* CoreUI Utilities (v3.0.0-apha.13): get-color.js
* Licensed under MIT (https://coreui.io/license)

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

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): get-css-custom-properties.js
* CoreUI Utilities (v3.0.0-apha.13): get-css-custom-properties.js
* Licensed under MIT (https://coreui.io/license)

@@ -16,2 +16,3 @@ * @returns {string} css custom property name

if (rules[j].selectorText === '.ie-custom-properties') {
// eslint-disable-next-line prefer-destructuring
cssText = rules[j].cssText

@@ -21,2 +22,3 @@ break

}
if (cssText) {

@@ -32,3 +34,3 @@ break

cssText.split(';').forEach((property) => {
cssText.split(';').forEach(property => {
if (property) {

@@ -35,0 +37,0 @@ const name = property.split(': ')[0]

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): get-style.js
* CoreUI Utilities (v3.0.0-apha.13): get-style.js
* Licensed under MIT (https://coreui.io/license)

@@ -11,6 +11,7 @@ * --------------------------------------------------------------------------

const isIE1x = () => Boolean(document.documentMode) && document.documentMode >= minIEVersion
const isCustomProperty = (property) => property.match(/^--.*/i)
const isCustomProperty = property => property.match(/^--.*/i)
const getStyle = (property, element = document.body) => {
let style
if (isCustomProperty(property) && isIE1x()) {

@@ -22,2 +23,3 @@ const cssCustomProperties = getCssCustomProperties()

}
return style

@@ -24,0 +26,0 @@ }

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): hex-to-rgb.js
* CoreUI Utilities (v3.0.0-apha.13): hex-to-rgb.js
* Licensed under MIT (https://coreui.io/license)

@@ -9,13 +9,17 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
const hexToRgb = (color) => {
const hexToRgb = color => {
if (typeof color === 'undefined') {
throw new Error('Hex color is not defined')
throw new TypeError('Hex color is not defined')
}
const hex = color.match(/^#(?:[0-9a-f]{3}){1,2}$/i)
if (!hex) {
throw new Error(`${color} is not a valid hex color`)
}
let r
let g
let b
if (color.length === 7) {

@@ -22,0 +26,0 @@ r = parseInt(color.substring(1, 3), 16)

/**
* --------------------------------------------------------------------------
* CoreUI Utilities (v2.1.14): hex-to-rgba.js
* CoreUI Utilities (v3.0.0-apha.13): hex-to-rgba.js
* Licensed under MIT (https://coreui.io/license)

@@ -11,11 +11,15 @@ * --------------------------------------------------------------------------

if (typeof color === 'undefined') {
throw new Error('Hex color is not defined')
throw new TypeError('Hex color is not defined')
}
const hex = color.match(/^#(?:[0-9a-f]{3}){1,2}$/i)
if (!hex) {
throw new Error(`${color} is not a valid hex color`)
}
let r
let g
let b
if (color.length === 7) {

@@ -22,0 +26,0 @@ r = parseInt(color.substring(1, 3), 16)

@@ -0,0 +0,0 @@ import {

/**
* --------------------------------------------------------------------------
* CoreUI (v2.1.14): rgb-to-hex.js
* CoreUI (v3.0.0-apha.13): rgb-to-hex.js
* Licensed under MIT (https://coreui.io/license)

@@ -9,13 +9,17 @@ * --------------------------------------------------------------------------

/* eslint-disable no-magic-numbers */
const rgbToHex = (color) => {
const rgbToHex = color => {
if (typeof color === 'undefined') {
throw new Error('Hex color is not defined')
throw new TypeError('Hex color is not defined')
}
if (color === 'transparent') {
return '#00000000'
}
const rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i)
if (!rgb) {
throw new Error(`${color} is not a valid rgb color`)
}
const r = `0${parseInt(rgb[1], 10).toString(16)}`

@@ -22,0 +26,0 @@ const g = `0${parseInt(rgb[2], 10).toString(16)}`

{
"name": "@coreui/coreui-pro",
"version": "2.1.14",
"version": "3.0.0-apha.13",
"description": "UI Kit built on top of Bootstrap 4",

@@ -16,3 +16,3 @@ "keywords": [

],
"homepage": "https://coreui.io/pro/",
"homepage": "https://coreui.io",
"bugs": {

@@ -22,2 +22,3 @@ "url": "https://github.com/coreui/coreui-pro/issues",

},
"license": "MIT",
"author": {

@@ -36,5 +37,8 @@ "name": "Łukasz Holeczek",

"files": [
"css/",
"dist/",
"js/",
"scss/"
"migration/",
"scss/",
"npm-postinstall.js"
],

@@ -49,33 +53,40 @@ "main": "dist/js/coreui.js",

"scripts": {
"copy-bootstrap": "rimraf scss/bootstrap && copyfiles -a \"node_modules/bootstrap/scss/**/*\" -u 3 scss/bootstrap",
"css": "npm-run-all --parallel css-lint css-compile* --sequential css-prefix css-minify*",
"css-compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/coreui.scss dist/css/coreui.css",
"css-lint": "stylelint --config build/.stylelintrc --syntax scss \"scss/**/*.scss\"",
"bundlesize": "bundlesize",
"copy-bootstrap-scss": "rimraf scss/bootstrap && copyfiles -a \"node_modules/bootstrap/scss/**/*\" -u 3 diff/bootstrap",
"copy-bootstrap-js": "rimraf js/src/bootstrap && copyfiles -a \"node_modules/bootstrap/js/src/**/*\" -u 4 js/src/bootstrap",
"copy-bootstrap": "npm-run-all copy-bootstrap-*",
"css": "npm-run-all --parallel css-lint css-compile* --sequential css-prefix* css-minify*",
"css-compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 8 scss/coreui.scss dist/css/coreui.css",
"css-combine-duplicated-selectors": "postcss dist/css/coreui.css --use postcss-combine-duplicated-selectors --output dist/css/coreui.css",
"css-compile-partials": "node build/scss-partials.js && rimraf css && foreach -g \"scss/partials/*.scss\" -x \"node-sass --include-path scss --output-style expanded --source-map true --source-map-contents true --precision 6 scss/partials/#{name}.scss css/#{name}.css\"",
"css-lint": "npm-run-all --parallel css-lint-*",
"css-lint-styles": "stylelint --syntax scss \"scss/**/*.scss\"",
"css-unused-vars": "fusv scss/",
"css-prefix": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.min.css\"",
"css-minify": "cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/coreui.min.css dist/css/coreui.css",
"css-compile-bootstrap": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap.scss dist/css/bootstrap.css",
"css-minify-bootstrap": "cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap.min.css dist/css/bootstrap.css",
"css-compile-standalone": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/coreui-standalone.scss dist/css/coreui-standalone.css",
"css-minify-standalone": "cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/coreui-standalone.min.css dist/css/coreui-standalone.css",
"css-compile-templates": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/themes/dark/coreui-dark.scss dist/css/themes/coreui-dark.css",
"css-minify-templates": "cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/themes/coreui-dark.min.css dist/css/themes/coreui-dark.css",
"css-prefix-partials": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.min.css\"",
"css-minify": "cleancss --level 2 --format breaksWith=lf --source-map --source-map-inline-sources --output dist/css/coreui.min.css dist/css/coreui.css",
"css-minify-partials": "foreach -g \"css/*.css\" -x \"cleancss --level 1 --format breaksWith=lf --source-map --source-map-inline-sources --output css/#{name}.min.css css/#{name}.css\"",
"dist": "npm-run-all --parallel css js",
"increment-version": "node build/increment-version.js",
"dist-without-lint": "npm-run-all --parallel css-compile* js-compile* --sequential css-prefix* css-minify* js-compile* js-minify*",
"extract-css-details": "node build/extract-css.js",
"js": "npm-run-all js-lint js-compile* js-minify*",
"js-lint": "eslint js/",
"js-lint": "eslint js/ --quiet",
"js-lint-build": "eslint build/",
"js-compile": "rollup --environment BUNDLE:false --config build/rollup.config.js --sourcemap",
"js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap",
"js-compile-plugins": "cross-env PLUGINS=true babel js/src/ --out-dir js/dist/ --source-maps",
"js-compile-utilities": "rollup --environment BUNDLE:false --config build/rollup.config.utilities.js --sourcemap",
"js-minify": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/coreui.js.map,includeSources,url=coreui.min.js.map\" --output dist/js/coreui.min.js dist/js/coreui.js",
"js-minify-utilities": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/coreui-utilities.js.map,includeSources,url=coreui-utilities.min.js.map\" --output dist/js/coreui-utilities.min.js dist/js/coreui-utilities.js",
"js-minify": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/coreui.js.map,includeSources,url=coreui.min.js.map\" --output dist/js/coreui.min.js dist/js/coreui.js",
"js-minify-bundle": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/coreui.bundle.js.map,includeSources,url=coreui.bundle.min.js.map\" --output dist/js/coreui.bundle.min.js dist/js/coreui.bundle.js",
"js-minify-utilities": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/coreui-utilities.js.map,includeSources,url=coreui-utilities.min.js.map\" --output dist/js/coreui-utilities.min.js dist/js/coreui-utilities.js",
"release-version": "node build/change-version.js",
"release-zip": "cd dist/ && zip -r9 coreui-$npm_package_version-dist.zip * && shx mv coreui-$npm_package_version-dist.zip ..",
"test": "npm-run-all css-lint js-lint dist bundlesize",
"watch": "npm-run-all --parallel watch-css watch-js",
"watch-js": "nodemon --ignore js/dist --ignore dist/ -e js -x \"npm-run-all js-compile* js-minify*\"",
"watch-css": "nodemon --ignore dist -e scss -x \"npm run css\""
"watch-js": "nodemon --ignore js/dist/ --ignore dist/ -e js -x \"npm-run-all js-compile* js-minify*\"",
"watch-css": "nodemon --ignore dist/ --ignore css/ --ignore scss/partials/ -e scss -x \"npm run css\""
},
"dependencies": {
"bootstrap": "^4.3.1",
"core-js": "^3.1.3",
"regenerator-runtime": "^0.13.2"
"peerDependencies": {
"perfect-scrollbar": "^1.3.0",
"popper.js": "^1.15.0"
},

@@ -89,25 +100,37 @@ "devDependencies": {

"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"autoprefixer": "^9.6.0",
"babel-eslint": "^10.0.1",
"babel-eslint": "^10.0.2",
"babel-plugin-istanbul": "^5.1.4",
"babel-plugin-transform-es2015-modules-strip": "^0.1.1",
"bundlesize": "^0.17.2",
"chalk": "^2.4.2",
"clean-css-cli": "^4.3.0",
"copyfiles": "^2.1.0",
"cross-env": "^5.2.0",
"cssnano": "^4.1.10",
"eslint": "^5.16.0",
"eslint-plugin-compat": "^3.1.1",
"eslint-config-xo": "^0.26.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-unicorn": "^9.0.0",
"find-unused-sass-variables": "^0.4.0",
"foreach-cli": "^1.8.1",
"list-selectors": "^2.0.0",
"node-sass": "^4.12.0",
"nodemon": "^1.19.1",
"npm-run-all": "^4.1.5",
"postcss-cli": "^6.1.2",
"rimraf": "^2.6.3",
"rollup": "^1.15.4",
"rollup-plugin-babel": "^4.3.2",
"perfect-scrollbar": "^1.3.0",
"popper.js": "^1.15.0",
"postcss-cli": "^6.0.1",
"postcss-combine-duplicated-selectors": "^7.0.0",
"postcss-merge-rules": "^4.0.3",
"rimraf": "^2.6.2",
"rollup": "^1.15.6",
"rollup-plugin-babel": "^4.1.0",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-node-resolve": "^5.0.2",
"rollup-plugin-node-resolve": "^5.0.3",
"semver": "^6.1.1",
"shelljs": "^0.8.3",
"shx": "^0.3.2",
"stylelint": "^10.1.0",
"stylelint": "^10.0.1",
"stylelint-config-recommended-scss": "^3.3.0",

@@ -117,25 +140,34 @@ "stylelint-config-standard": "^18.3.0",

"stylelint-scss": "^3.8.0",
"uglify-js": "^3.6.0"
"terser": "^4.0.0"
},
"peerDependencies": {
"jquery": "1.9.1 - 3",
"perfect-scrollbar": "^1.4.0",
"popper.js": "^1.14.7"
},
"engines": {
"node": ">= 8.7",
"node": ">= 8",
"npm": ">= 5"
},
"browserslist": [
"last 1 major version",
">= 1%",
"Chrome >= 45",
"Firefox >= 38",
"Edge >= 12",
"Explorer >= 10",
"iOS >= 9",
"Safari >= 9",
"Android >= 4.4",
"Opera >= 30"
"bundlesize": [
{
"path": "./dist/css/coreui.css",
"maxSize": "25 kB"
},
{
"path": "./dist/css/coreui.min.css",
"maxSize": "22.5 kB"
},
{
"path": "./dist/js/coreui.bundle.js",
"maxSize": "45 kB"
},
{
"path": "./dist/js/coreui.bundle.min.js",
"maxSize": "25 kB"
},
{
"path": "./dist/js/coreui.js",
"maxSize": "23 kB"
},
{
"path": "./dist/js/coreui.min.js",
"maxSize": "15 kB"
}
]
}

@@ -1,8 +0,1 @@

[![npm package][npm-badge]][npm]
[![NPM downloads][npm-download]][npm]
[npm-badge]: https://img.shields.io/npm/v/@coreui/coreui.png?style=flat-square
[npm-download]: https://img.shields.io/npm/dm/@coreui/coreui.svg?style=flat-square
[npm]: https://www.npmjs.com/package/@coreui/coreui
# 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)

@@ -62,3 +55,3 @@

``` bash
$ yarn add @coreui/coreui@2.1.14
$ yarn add @coreui/coreui@2.1.4
```

@@ -69,3 +62,3 @@

``` bash
$ composer require coreui/coreui:2.1.14
$ composer require coreui/coreui:2.1.4
```

@@ -118,3 +111,3 @@

For transparency into our release cycle and in striving to maintain backward compatibility, CoreUI Admin Template is maintained under [the Semantic Versioning guidelines](http://semver.org/).
For transparency into our release cycle and in striving to maintain backward compatibility, CoreUI Free Admin Template is maintained under [the Semantic Versioning guidelines](http://semver.org/).

@@ -121,0 +114,0 @@ See [the Releases section of our project](https://github.com/coreui/coreui/releases) for changelogs for each release version.

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc