mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Updated AdminLTE to 3.04 assets, added search to side bar, added company select drop down on sidebar. removed extra delete under edit contact
This commit is contained in:
189
dist/js/adminlte.js
vendored
189
dist/js/adminlte.js
vendored
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* AdminLTE v3.0.2 (https://adminlte.io)
|
||||
* AdminLTE v3.0.4 (https://adminlte.io)
|
||||
* Copyright 2014-2020 Colorlib <http://colorlib.com>
|
||||
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
|
||||
*/
|
||||
@@ -62,9 +62,7 @@
|
||||
* ====================================================
|
||||
*/
|
||||
|
||||
var ControlSidebar =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var ControlSidebar = /*#__PURE__*/function () {
|
||||
function ControlSidebar(element, config) {
|
||||
this._element = element;
|
||||
this._config = config;
|
||||
@@ -326,16 +324,16 @@
|
||||
};
|
||||
var Default = {
|
||||
scrollbarTheme: 'os-theme-light',
|
||||
scrollbarAutoHide: 'l'
|
||||
scrollbarAutoHide: 'l',
|
||||
panelAutoHeight: true,
|
||||
loginRegisterAutoHeight: true
|
||||
};
|
||||
/**
|
||||
* Class Definition
|
||||
* ====================================================
|
||||
*/
|
||||
|
||||
var Layout =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Layout = /*#__PURE__*/function () {
|
||||
function Layout(element, config) {
|
||||
this._config = config;
|
||||
this._element = element;
|
||||
@@ -367,16 +365,26 @@
|
||||
|
||||
var max = this._max(heights);
|
||||
|
||||
if (max == heights.control_sidebar) {
|
||||
$(Selector.CONTENT).css('min-height', max);
|
||||
} else if (max == heights.window) {
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header - heights.footer);
|
||||
} else {
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header);
|
||||
var offset = this._config.panelAutoHeight;
|
||||
|
||||
if (offset === true) {
|
||||
offset = 0;
|
||||
}
|
||||
|
||||
if (offset !== false) {
|
||||
if (max == heights.control_sidebar) {
|
||||
$(Selector.CONTENT).css('min-height', max + offset);
|
||||
} else if (max == heights.window) {
|
||||
$(Selector.CONTENT).css('min-height', max + offset - heights.header - heights.footer);
|
||||
} else {
|
||||
$(Selector.CONTENT).css('min-height', max + offset - heights.header);
|
||||
}
|
||||
}
|
||||
|
||||
if ($('body').hasClass(ClassName.LAYOUT_FIXED)) {
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header - heights.footer);
|
||||
if (offset !== false) {
|
||||
$(Selector.CONTENT).css('min-height', max + offset - heights.header - heights.footer);
|
||||
}
|
||||
|
||||
if (typeof $.fn.overlayScrollbars !== 'undefined') {
|
||||
$(Selector.SIDEBAR).overlayScrollbars({
|
||||
@@ -389,6 +397,18 @@
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
_proto.fixLoginRegisterHeight = function fixLoginRegisterHeight() {
|
||||
if ($(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).length === 0) {
|
||||
$('body, html').css('height', 'auto');
|
||||
} else if ($(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).length !== 0) {
|
||||
var box_height = $(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).height();
|
||||
|
||||
if ($('body').css('min-height') !== box_height) {
|
||||
$('body').css('min-height', box_height);
|
||||
}
|
||||
}
|
||||
} // Private
|
||||
;
|
||||
|
||||
@@ -397,6 +417,13 @@
|
||||
|
||||
// Activate layout height watcher
|
||||
this.fixLayoutHeight();
|
||||
|
||||
if (this._config.loginRegisterAutoHeight === true) {
|
||||
this.fixLoginRegisterHeight();
|
||||
} else if (Number.isInteger(this._config.loginRegisterAutoHeight)) {
|
||||
setInterval(this.fixLoginRegisterHeight, this._config.loginRegisterAutoHeight);
|
||||
}
|
||||
|
||||
$(Selector.SIDEBAR).on('collapsed.lte.treeview expanded.lte.treeview', function () {
|
||||
_this.fixLayoutHeight();
|
||||
});
|
||||
@@ -411,14 +438,6 @@
|
||||
$(window).resize(function () {
|
||||
_this.fixLayoutHeight();
|
||||
});
|
||||
|
||||
if (!$('body').hasClass(ClassName.LOGIN_PAGE) && !$('body').hasClass(ClassName.REGISTER_PAGE)) {
|
||||
$('body, html').css('height', 'auto');
|
||||
} else if ($('body').hasClass(ClassName.LOGIN_PAGE) || $('body').hasClass(ClassName.REGISTER_PAGE)) {
|
||||
var box_height = $(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).height();
|
||||
$('body').css('min-height', box_height);
|
||||
}
|
||||
|
||||
$('body.hold-transition').removeClass('hold-transition');
|
||||
};
|
||||
|
||||
@@ -451,6 +470,8 @@
|
||||
|
||||
if (config === 'init' || config === '') {
|
||||
data['_init']();
|
||||
} else if (config === 'fixLayoutHeight' || config === 'fixLoginRegisterHeight') {
|
||||
data[config]();
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -521,18 +542,16 @@
|
||||
WRAPPER: '.wrapper'
|
||||
};
|
||||
var ClassName = {
|
||||
SIDEBAR_OPEN: 'sidebar-open',
|
||||
COLLAPSED: 'sidebar-collapse',
|
||||
OPEN: 'sidebar-open'
|
||||
OPEN: 'sidebar-open',
|
||||
CLOSED: 'sidebar-closed'
|
||||
};
|
||||
/**
|
||||
* Class Definition
|
||||
* ====================================================
|
||||
*/
|
||||
|
||||
var PushMenu =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var PushMenu = /*#__PURE__*/function () {
|
||||
function PushMenu(element, options) {
|
||||
this._element = element;
|
||||
this._options = $.extend({}, Default, options);
|
||||
@@ -554,7 +573,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$(Selector.BODY).removeClass(ClassName.COLLAPSED);
|
||||
$(Selector.BODY).removeClass(ClassName.COLLAPSED).removeClass(ClassName.CLOSED);
|
||||
|
||||
if (this._options.enableRemember) {
|
||||
localStorage.setItem("remember" + EVENT_KEY, ClassName.OPEN);
|
||||
@@ -567,7 +586,7 @@
|
||||
_proto.collapse = function collapse() {
|
||||
if (this._options.autoCollapseSize) {
|
||||
if ($(window).width() <= this._options.autoCollapseSize) {
|
||||
$(Selector.BODY).removeClass(ClassName.OPEN);
|
||||
$(Selector.BODY).removeClass(ClassName.OPEN).addClass(ClassName.CLOSED);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -602,6 +621,8 @@
|
||||
} else if (resize == true) {
|
||||
if ($(Selector.BODY).hasClass(ClassName.OPEN)) {
|
||||
$(Selector.BODY).removeClass(ClassName.OPEN);
|
||||
} else if ($(Selector.BODY).hasClass(ClassName.CLOSED)) {
|
||||
this.expand();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -758,9 +779,7 @@
|
||||
* ====================================================
|
||||
*/
|
||||
|
||||
var Treeview =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Treeview = /*#__PURE__*/function () {
|
||||
function Treeview(element, config) {
|
||||
this._config = config;
|
||||
this._element = element;
|
||||
@@ -923,9 +942,7 @@
|
||||
* ====================================================
|
||||
*/
|
||||
|
||||
var DirectChat =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var DirectChat = /*#__PURE__*/function () {
|
||||
function DirectChat(element, config) {
|
||||
this._element = element;
|
||||
}
|
||||
@@ -1015,9 +1032,7 @@
|
||||
* ====================================================
|
||||
*/
|
||||
|
||||
var TodoList =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var TodoList = /*#__PURE__*/function () {
|
||||
function TodoList(element, config) {
|
||||
this._config = config;
|
||||
this._element = element;
|
||||
@@ -1126,6 +1141,8 @@
|
||||
var ClassName = {
|
||||
CARD: 'card',
|
||||
COLLAPSED: 'collapsed-card',
|
||||
COLLAPSING: 'collapsing-card',
|
||||
EXPANDING: 'expanding-card',
|
||||
WAS_COLLAPSED: 'was-collapsed',
|
||||
MAXIMIZED: 'maximized-card'
|
||||
};
|
||||
@@ -1150,9 +1167,7 @@
|
||||
minimizeIcon: 'fa-compress'
|
||||
};
|
||||
|
||||
var CardWidget =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var CardWidget = /*#__PURE__*/function () {
|
||||
function CardWidget(element, settings) {
|
||||
this._element = element;
|
||||
this._parent = element.parents(Selector.CARD).first();
|
||||
@@ -1169,8 +1184,8 @@
|
||||
_proto.collapse = function collapse() {
|
||||
var _this = this;
|
||||
|
||||
this._parent.children(Selector.CARD_BODY + ", " + Selector.CARD_FOOTER).slideUp(this._settings.animationSpeed, function () {
|
||||
_this._parent.addClass(ClassName.COLLAPSED);
|
||||
this._parent.addClass(ClassName.COLLAPSING).children(Selector.CARD_BODY + ", " + Selector.CARD_FOOTER).slideUp(this._settings.animationSpeed, function () {
|
||||
_this._parent.addClass(ClassName.COLLAPSED).removeClass(ClassName.COLLAPSING);
|
||||
});
|
||||
|
||||
this._parent.find('> ' + Selector.CARD_HEADER + ' ' + this._settings.collapseTrigger + ' .' + this._settings.collapseIcon).addClass(this._settings.expandIcon).removeClass(this._settings.collapseIcon);
|
||||
@@ -1183,8 +1198,8 @@
|
||||
_proto.expand = function expand() {
|
||||
var _this2 = this;
|
||||
|
||||
this._parent.children(Selector.CARD_BODY + ", " + Selector.CARD_FOOTER).slideDown(this._settings.animationSpeed, function () {
|
||||
_this2._parent.removeClass(ClassName.COLLAPSED);
|
||||
this._parent.addClass(ClassName.EXPANDING).children(Selector.CARD_BODY + ", " + Selector.CARD_FOOTER).slideDown(this._settings.animationSpeed, function () {
|
||||
_this2._parent.removeClass(ClassName.COLLAPSED).removeClass(ClassName.EXPANDING);
|
||||
});
|
||||
|
||||
this._parent.find('> ' + Selector.CARD_HEADER + ' ' + this._settings.collapseTrigger + ' .' + this._settings.expandIcon).addClass(this._settings.collapseIcon).removeClass(this._settings.expandIcon);
|
||||
@@ -1388,9 +1403,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
var CardRefresh =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var CardRefresh = /*#__PURE__*/function () {
|
||||
function CardRefresh(element, settings) {
|
||||
this._element = element;
|
||||
this._parent = element.parents(Selector.CARD).first();
|
||||
@@ -1404,12 +1417,6 @@
|
||||
if (this._settings.source === '') {
|
||||
throw new Error('Source url was not defined. Please specify a url in your CardRefresh source option.');
|
||||
}
|
||||
|
||||
this._init();
|
||||
|
||||
if (this._settings.loadOnInit) {
|
||||
this.load();
|
||||
}
|
||||
}
|
||||
|
||||
var _proto = CardRefresh.prototype;
|
||||
@@ -1457,6 +1464,10 @@
|
||||
$(this).find(this._settings.trigger).on('click', function () {
|
||||
_this.load();
|
||||
});
|
||||
|
||||
if (this._settings.loadOnInit) {
|
||||
this.load();
|
||||
}
|
||||
} // Static
|
||||
;
|
||||
|
||||
@@ -1472,7 +1483,7 @@
|
||||
|
||||
if (typeof config === 'string' && config.match(/load/)) {
|
||||
data[config]();
|
||||
} else if (typeof config === 'object') {
|
||||
} else {
|
||||
data._init($(this));
|
||||
}
|
||||
};
|
||||
@@ -1492,6 +1503,11 @@
|
||||
|
||||
CardRefresh._jQueryInterface.call($(this), 'load');
|
||||
});
|
||||
$(document).ready(function () {
|
||||
$(Selector.DATA_REFRESH).each(function () {
|
||||
CardRefresh._jQueryInterface.call($(this));
|
||||
});
|
||||
});
|
||||
/**
|
||||
* jQuery API
|
||||
* ====================================================
|
||||
@@ -1523,18 +1539,22 @@
|
||||
var DATA_KEY = 'lte.dropdown';
|
||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||
var Selector = {
|
||||
DROPDOWN_MENU: 'ul.dropdown-menu',
|
||||
NAVBAR: '.navbar',
|
||||
DROPDOWN_MENU: '.dropdown-menu',
|
||||
DROPDOWN_MENU_ACTIVE: '.dropdown-menu.show',
|
||||
DROPDOWN_TOGGLE: '[data-toggle="dropdown"]'
|
||||
};
|
||||
var ClassName = {
|
||||
DROPDOWN_HOVER: 'dropdown-hover',
|
||||
DROPDOWN_RIGHT: 'dropdown-menu-right'
|
||||
};
|
||||
var Default = {};
|
||||
/**
|
||||
* Class Definition
|
||||
* ====================================================
|
||||
*/
|
||||
|
||||
var Dropdown =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Dropdown = /*#__PURE__*/function () {
|
||||
function Dropdown(element, config) {
|
||||
this._config = config;
|
||||
this._element = element;
|
||||
@@ -1553,6 +1573,35 @@
|
||||
this._element.parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function (e) {
|
||||
$('.dropdown-submenu .show').removeClass("show").hide();
|
||||
});
|
||||
};
|
||||
|
||||
_proto.fixPosition = function fixPosition() {
|
||||
var elm = $(Selector.DROPDOWN_MENU_ACTIVE);
|
||||
|
||||
if (elm.length !== 0) {
|
||||
if (elm.hasClass(ClassName.DROPDOWN_RIGHT)) {
|
||||
elm.css('left', 'inherit');
|
||||
elm.css('right', 0);
|
||||
} else {
|
||||
elm.css('left', 0);
|
||||
elm.css('right', 'inherit');
|
||||
}
|
||||
|
||||
var offset = elm.offset();
|
||||
var width = elm.width();
|
||||
var windowWidth = $(window).width();
|
||||
var visiblePart = windowWidth - offset.left;
|
||||
|
||||
if (offset.left < 0) {
|
||||
elm.css('left', 'inherit');
|
||||
elm.css('right', offset.left - 5);
|
||||
} else {
|
||||
if (visiblePart < width) {
|
||||
elm.css('left', 'inherit');
|
||||
elm.css('right', 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // Static
|
||||
;
|
||||
|
||||
@@ -1567,7 +1616,7 @@
|
||||
$(this).data(DATA_KEY, data);
|
||||
}
|
||||
|
||||
if (config === 'toggleSubmenu') {
|
||||
if (config === 'toggleSubmenu' || config == 'fixPosition') {
|
||||
data[config]();
|
||||
}
|
||||
});
|
||||
@@ -1586,13 +1635,13 @@
|
||||
event.stopPropagation();
|
||||
|
||||
Dropdown._jQueryInterface.call($(this), 'toggleSubmenu');
|
||||
}); // $(Selector.SIDEBAR + ' a').on('focusin', () => {
|
||||
// $(Selector.MAIN_SIDEBAR).addClass(ClassName.SIDEBAR_FOCUSED);
|
||||
// })
|
||||
// $(Selector.SIDEBAR + ' a').on('focusout', () => {
|
||||
// $(Selector.MAIN_SIDEBAR).removeClass(ClassName.SIDEBAR_FOCUSED);
|
||||
// })
|
||||
|
||||
});
|
||||
$(Selector.NAVBAR + ' ' + Selector.DROPDOWN_TOGGLE).on("click", function (event) {
|
||||
event.preventDefault();
|
||||
setTimeout(function () {
|
||||
Dropdown._jQueryInterface.call($(this), 'fixPosition');
|
||||
}, 1);
|
||||
});
|
||||
/**
|
||||
* jQuery API
|
||||
* ====================================================
|
||||
@@ -1671,9 +1720,7 @@
|
||||
* ====================================================
|
||||
*/
|
||||
|
||||
var Toasts =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Toasts = /*#__PURE__*/function () {
|
||||
function Toasts(element, config) {
|
||||
this._config = config;
|
||||
|
||||
|
||||
2
dist/js/adminlte.js.map
vendored
2
dist/js/adminlte.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/js/adminlte.min.js
vendored
4
dist/js/adminlte.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/adminlte.min.js.map
vendored
2
dist/js/adminlte.min.js.map
vendored
File diff suppressed because one or more lines are too long
7
dist/js/demo.js
vendored
7
dist/js/demo.js
vendored
@@ -416,4 +416,11 @@
|
||||
|
||||
return $block
|
||||
}
|
||||
|
||||
$('.product-image-thumb').on('click', function() {
|
||||
const image_element = $(this).find('img');
|
||||
$('.product-image').prop('src', $(image_element).attr('src'))
|
||||
$('.product-image-thumb.active').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
});
|
||||
})(jQuery)
|
||||
|
||||
Reference in New Issue
Block a user