phcthemes_admin_panel_pack 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6b9b1c6e71b3bf66b1e154c7f424170f4659d26f2ffba63ac238eb3eb215262
|
4
|
+
data.tar.gz: e2bdb1d886701d2f9decc1270714fc6a4b3d66766b4d57aa069a1ea1d3611d25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db747ff68aa23ffb9bb1a4136be4c354fd9f4d4e0686c6100c3fd42c9fb9c285ba8e50d7b3fbb5e8f1e328639821e4a12254274f9024d7f9cebd2c1a8aafa378
|
7
|
+
data.tar.gz: f7160fdc4d3725d962ffdd697c3cc8e991dee9b076b27cfd575abc8fd49b880b48cf28f54c7b964105840ff22d951234dc550e1d65ef5b37623346ceb6a634f9
|
@@ -107,27 +107,25 @@ var KTApp = function() {
|
|
107
107
|
var sticky = new Sticky('[data-sticky="true"]');
|
108
108
|
}
|
109
109
|
|
110
|
-
var initAbsoluteDropdown = function(
|
110
|
+
var initAbsoluteDropdown = function(context) {
|
111
111
|
var dropdownMenu;
|
112
112
|
|
113
|
-
if (!
|
113
|
+
if (!context) {
|
114
114
|
return;
|
115
115
|
}
|
116
116
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
})
|
127
|
-
|
128
|
-
|
129
|
-
$(e.target).append(dropdownMenu.detach());
|
130
|
-
dropdownMenu.hide();
|
117
|
+
$('body').on('show.bs.dropdown', context, function(e) {
|
118
|
+
dropdownMenu = $(e.target).find('.dropdown-menu');
|
119
|
+
$('body').append(dropdownMenu.detach());
|
120
|
+
dropdownMenu.css('display', 'block');
|
121
|
+
dropdownMenu.position({
|
122
|
+
'my': 'right top',
|
123
|
+
'at': 'right bottom',
|
124
|
+
'of': $(e.relatedTarget),
|
125
|
+
});
|
126
|
+
}).on('hide.bs.dropdown', context, function(e) {
|
127
|
+
$(e.target).append(dropdownMenu.detach());
|
128
|
+
dropdownMenu.hide();
|
131
129
|
});
|
132
130
|
}
|
133
131
|
|
@@ -208,15 +206,15 @@ var KTApp = function() {
|
|
208
206
|
initSticky();
|
209
207
|
},
|
210
208
|
|
211
|
-
initAbsoluteDropdown: function(
|
212
|
-
initAbsoluteDropdown(
|
209
|
+
initAbsoluteDropdown: function(context) {
|
210
|
+
initAbsoluteDropdown(context);
|
213
211
|
},
|
214
212
|
|
215
213
|
block: function(target, options) {
|
216
214
|
var el = $(target);
|
217
215
|
|
218
216
|
options = $.extend(true, {
|
219
|
-
opacity: 0.
|
217
|
+
opacity: 0.05,
|
220
218
|
overlayColor: '#000000',
|
221
219
|
type: '',
|
222
220
|
size: '',
|
@@ -454,7 +452,6 @@ window.KTUtilElementDataStoreID = 0;
|
|
454
452
|
window.KTUtilDelegatedEventHandlers = {};
|
455
453
|
|
456
454
|
var KTUtil = function() {
|
457
|
-
|
458
455
|
var resizeHandlers = [];
|
459
456
|
|
460
457
|
/** @type {object} breakpoints The device width breakpoints **/
|
@@ -2593,7 +2590,7 @@ var KTMenu = function(elementId, options) {
|
|
2593
2590
|
scrollInit: function() {
|
2594
2591
|
if ( the.options.scroll && the.options.scroll.height ) {
|
2595
2592
|
KTUtil.scrollDestroy(element);
|
2596
|
-
KTUtil.scrollInit(element, {
|
2593
|
+
KTUtil.scrollInit(element, {mobileNativeScroll: true, windowScroll: false, resetHeightOnDestroy: true, handleWindowResize: true, height: the.options.scroll.height, rememberPosition: the.options.scroll.rememberPosition});
|
2597
2594
|
} else {
|
2598
2595
|
KTUtil.scrollDestroy(element);
|
2599
2596
|
}
|
@@ -2780,6 +2777,12 @@ var KTMenu = function(elementId, options) {
|
|
2780
2777
|
*/
|
2781
2778
|
handleLinkClick: function(e) {
|
2782
2779
|
var submenu = this.closest('.kt-menu__item.kt-menu__item--submenu'); //
|
2780
|
+
|
2781
|
+
var result = Plugin.eventTrigger('linkClick', this, e);
|
2782
|
+
if (result === false) {
|
2783
|
+
return;
|
2784
|
+
}
|
2785
|
+
|
2783
2786
|
if ( submenu && Plugin.getSubmenuMode(submenu) === 'dropdown' ) {
|
2784
2787
|
Plugin.hideSubmenuDropdowns();
|
2785
2788
|
}
|
@@ -2857,7 +2860,7 @@ var KTMenu = function(elementId, options) {
|
|
2857
2860
|
Plugin.scrollToItem(item);
|
2858
2861
|
Plugin.scrollUpdate();
|
2859
2862
|
|
2860
|
-
Plugin.eventTrigger('submenuToggle', submenu);
|
2863
|
+
Plugin.eventTrigger('submenuToggle', submenu, e);
|
2861
2864
|
});
|
2862
2865
|
|
2863
2866
|
KTUtil.addClass(li, 'kt-menu__item--open');
|
@@ -2865,7 +2868,7 @@ var KTMenu = function(elementId, options) {
|
|
2865
2868
|
} else {
|
2866
2869
|
KTUtil.slideUp(submenu, speed, function() {
|
2867
2870
|
Plugin.scrollToItem(item);
|
2868
|
-
Plugin.eventTrigger('submenuToggle', submenu);
|
2871
|
+
Plugin.eventTrigger('submenuToggle', submenu, e);
|
2869
2872
|
});
|
2870
2873
|
|
2871
2874
|
KTUtil.removeClass(li, 'kt-menu__item--open');
|
@@ -3076,17 +3079,17 @@ var KTMenu = function(elementId, options) {
|
|
3076
3079
|
/**
|
3077
3080
|
* Trigger events
|
3078
3081
|
*/
|
3079
|
-
eventTrigger: function(name,
|
3082
|
+
eventTrigger: function(name, target, e) {
|
3080
3083
|
for (var i = 0; i < the.events.length; i++ ) {
|
3081
3084
|
var event = the.events[i];
|
3082
3085
|
if ( event.name == name ) {
|
3083
3086
|
if ( event.one == true ) {
|
3084
3087
|
if ( event.fired == false ) {
|
3085
3088
|
the.events[i].fired = true;
|
3086
|
-
event.handler.call(this,
|
3089
|
+
return event.handler.call(this, target, e);
|
3087
3090
|
}
|
3088
3091
|
} else {
|
3089
|
-
event.handler.call(this,
|
3092
|
+
return event.handler.call(this, target, e);
|
3090
3093
|
}
|
3091
3094
|
}
|
3092
3095
|
}
|
@@ -3710,21 +3713,21 @@ var KTPortlet = function(elementId, options) {
|
|
3710
3713
|
|
3711
3714
|
if (KTUtil.hasClass(body, 'kt-portlet--sticky')) {
|
3712
3715
|
if (the.options.sticky.position.top instanceof Function) {
|
3713
|
-
top = parseInt(the.options.sticky.position.top.call());
|
3716
|
+
top = parseInt(the.options.sticky.position.top.call(this, the));
|
3714
3717
|
} else {
|
3715
3718
|
top = parseInt(the.options.sticky.position.top);
|
3716
3719
|
}
|
3717
3720
|
|
3718
3721
|
var left;
|
3719
3722
|
if (the.options.sticky.position.left instanceof Function) {
|
3720
|
-
left = parseInt(the.options.sticky.position.left.call());
|
3723
|
+
left = parseInt(the.options.sticky.position.left.call(this, the));
|
3721
3724
|
} else {
|
3722
3725
|
left = parseInt(the.options.sticky.position.left);
|
3723
3726
|
}
|
3724
3727
|
|
3725
3728
|
var right;
|
3726
3729
|
if (the.options.sticky.position.right instanceof Function) {
|
3727
|
-
right = parseInt(the.options.sticky.position.right.call());
|
3730
|
+
right = parseInt(the.options.sticky.position.right.call(this, the));
|
3728
3731
|
} else {
|
3729
3732
|
right = parseInt(the.options.sticky.position.right);
|
3730
3733
|
}
|
@@ -5236,8 +5239,6 @@ var KTWizard = function(elementId, options) {
|
|
5236
5239
|
Plugin.lockTable.call();
|
5237
5240
|
}
|
5238
5241
|
|
5239
|
-
Plugin.columnHide.call();
|
5240
|
-
|
5241
5242
|
Plugin.resetScroll();
|
5242
5243
|
|
5243
5244
|
// check if not is a locked column
|
@@ -5251,6 +5252,8 @@ var KTWizard = function(elementId, options) {
|
|
5251
5252
|
$(datatable.table).find('.' + pfx + 'datatable__row').css('height', '');
|
5252
5253
|
}
|
5253
5254
|
|
5255
|
+
Plugin.columnHide.call();
|
5256
|
+
|
5254
5257
|
Plugin.rowEvenOdd.call();
|
5255
5258
|
|
5256
5259
|
Plugin.sorting.call();
|
@@ -6787,21 +6790,30 @@ var KTWizard = function(elementId, options) {
|
|
6787
6790
|
var screen = util.getViewPort().width;
|
6788
6791
|
// foreach columns setting
|
6789
6792
|
$.each(options.columns, function(i, column) {
|
6790
|
-
if (typeof column.responsive !== 'undefined') {
|
6793
|
+
if (typeof column.responsive !== 'undefined' || typeof column.visible !== 'undefined') {
|
6791
6794
|
var field = column.field;
|
6792
6795
|
var tds = $.grep($(datatable.table).find('.' + pfx + 'datatable__cell'), function(n, i) {
|
6793
6796
|
return field === $(n).data('field');
|
6794
6797
|
});
|
6795
|
-
|
6796
|
-
|
6797
|
-
|
6798
|
-
|
6799
|
-
|
6800
|
-
|
6801
|
-
|
6802
|
-
|
6803
|
-
|
6804
|
-
|
6798
|
+
|
6799
|
+
setTimeout(function () {
|
6800
|
+
// hide by force
|
6801
|
+
if (Plugin.getObject('visible', column) === false) {
|
6802
|
+
$(tds).hide();
|
6803
|
+
} else {
|
6804
|
+
// show/hide by responsive breakpoint
|
6805
|
+
if (util.getBreakpoint(Plugin.getObject('responsive.hidden', column)) >= screen) {
|
6806
|
+
$(tds).hide();
|
6807
|
+
} else {
|
6808
|
+
$(tds).show();
|
6809
|
+
}
|
6810
|
+
if (util.getBreakpoint(Plugin.getObject('responsive.visible', column)) <= screen) {
|
6811
|
+
$(tds).show();
|
6812
|
+
} else {
|
6813
|
+
$(tds).hide();
|
6814
|
+
}
|
6815
|
+
}
|
6816
|
+
});
|
6805
6817
|
}
|
6806
6818
|
});
|
6807
6819
|
},
|
@@ -8125,46 +8137,6 @@ var KTWizard = function(elementId, options) {
|
|
8125
8137
|
return datatable.originalDataSet;
|
8126
8138
|
},
|
8127
8139
|
|
8128
|
-
/**
|
8129
|
-
* @deprecated in v5.0.6
|
8130
|
-
* Hide column by column's field name
|
8131
|
-
* @param fieldName
|
8132
|
-
*/
|
8133
|
-
hideColumn: function(fieldName) {
|
8134
|
-
// add hide option for this column
|
8135
|
-
$.map(options.columns, function(column) {
|
8136
|
-
if (fieldName === column.field) {
|
8137
|
-
column.responsive = {hidden: 'xl'};
|
8138
|
-
}
|
8139
|
-
return column;
|
8140
|
-
});
|
8141
|
-
// hide current displayed column
|
8142
|
-
var tds = $.grep($(datatable.table).find('.' + pfx + 'datatable__cell'), function(n, i) {
|
8143
|
-
return fieldName === $(n).data('field');
|
8144
|
-
});
|
8145
|
-
$(tds).hide();
|
8146
|
-
},
|
8147
|
-
|
8148
|
-
/**
|
8149
|
-
* @deprecated in v5.0.6
|
8150
|
-
* Show column by column's field name
|
8151
|
-
* @param fieldName
|
8152
|
-
*/
|
8153
|
-
showColumn: function(fieldName) {
|
8154
|
-
// add hide option for this column
|
8155
|
-
$.map(options.columns, function(column) {
|
8156
|
-
if (fieldName === column.field) {
|
8157
|
-
delete column.responsive;
|
8158
|
-
}
|
8159
|
-
return column;
|
8160
|
-
});
|
8161
|
-
// hide current displayed column
|
8162
|
-
var tds = $.grep($(datatable.table).find('.' + pfx + 'datatable__cell'), function(n, i) {
|
8163
|
-
return fieldName === $(n).data('field');
|
8164
|
-
});
|
8165
|
-
$(tds).show();
|
8166
|
-
},
|
8167
|
-
|
8168
8140
|
nodeTr: [],
|
8169
8141
|
nodeTd: [],
|
8170
8142
|
nodeCols: [],
|
@@ -8280,15 +8252,16 @@ var KTWizard = function(elementId, options) {
|
|
8280
8252
|
|
8281
8253
|
if (bool) {
|
8282
8254
|
if (Plugin.recentNode === Plugin.nodeCols) {
|
8283
|
-
delete options.columns[index].
|
8255
|
+
delete options.columns[index].visible;
|
8284
8256
|
}
|
8285
8257
|
$(Plugin.recentNode).show();
|
8286
8258
|
} else {
|
8287
8259
|
if (Plugin.recentNode === Plugin.nodeCols) {
|
8288
|
-
Plugin.setOption('columns.' + index + '.
|
8260
|
+
Plugin.setOption('columns.' + index + '.visible', false);
|
8289
8261
|
}
|
8290
8262
|
$(Plugin.recentNode).hide();
|
8291
8263
|
}
|
8264
|
+
Plugin.columnHide();
|
8292
8265
|
Plugin.redraw();
|
8293
8266
|
}
|
8294
8267
|
},
|
@@ -8907,7 +8880,7 @@ var KTChat = function () {
|
|
8907
8880
|
}
|
8908
8881
|
|
8909
8882
|
var node = document.createElement("DIV");
|
8910
|
-
KTUtil.addClass(node, 'kt-chat__message kt-chat__message--right');
|
8883
|
+
KTUtil.addClass(node, 'kt-chat__message kt-chat__message--brand kt-chat__message--right');
|
8911
8884
|
|
8912
8885
|
var html =
|
8913
8886
|
'<div class="kt-chat__user">' +
|
@@ -8933,7 +8906,7 @@ var KTChat = function () {
|
|
8933
8906
|
|
8934
8907
|
setTimeout(function() {
|
8935
8908
|
var node = document.createElement("DIV");
|
8936
|
-
KTUtil.addClass(node, 'kt-chat__message');
|
8909
|
+
KTUtil.addClass(node, 'kt-chat__message kt-chat__message--success');
|
8937
8910
|
|
8938
8911
|
var html =
|
8939
8912
|
'<div class="kt-chat__user">' +
|
@@ -9228,7 +9201,7 @@ var KTQuickPanel = function() {
|
|
9228
9201
|
}
|
9229
9202
|
|
9230
9203
|
var initOffcanvas = function() {
|
9231
|
-
|
9204
|
+
new KTOffcanvas(panel, {
|
9232
9205
|
overlay: true,
|
9233
9206
|
baseClass: 'kt-quick-panel',
|
9234
9207
|
closeBy: 'kt_quick_panel_close_btn',
|
@@ -9756,70 +9729,43 @@ var KTLayout = function() {
|
|
9756
9729
|
|
9757
9730
|
// Init page sticky portlet
|
9758
9731
|
var initPageStickyPortlet = function() {
|
9759
|
-
var asideWidth = 255;
|
9760
|
-
var asideMinimizeWidth = 78;
|
9761
|
-
var asideSecondaryWidth = 60;
|
9762
|
-
var asideSecondaryExpandedWidth = 310;
|
9763
|
-
|
9764
9732
|
return new KTPortlet('kt_page_portlet', {
|
9765
9733
|
sticky: {
|
9766
9734
|
offset: parseInt(KTUtil.css(KTUtil.get('kt_header'), 'height')),
|
9767
9735
|
zIndex: 90,
|
9768
9736
|
position: {
|
9769
9737
|
top: function() {
|
9770
|
-
var
|
9738
|
+
var pos = 0;
|
9771
9739
|
|
9772
9740
|
if (KTUtil.isInResponsiveRange('desktop')) {
|
9773
9741
|
if (KTUtil.hasClass(body, 'kt-header--fixed')) {
|
9774
|
-
|
9742
|
+
pos = pos + parseInt(KTUtil.css(KTUtil.get('kt_header'), 'height'));
|
9775
9743
|
}
|
9776
9744
|
|
9777
9745
|
if (KTUtil.hasClass(body, 'kt-subheader--fixed') && KTUtil.get('kt_subheader')) {
|
9778
|
-
|
9746
|
+
pos = pos + parseInt(KTUtil.css(KTUtil.get('kt_subheader'), 'height'));
|
9779
9747
|
}
|
9780
9748
|
} else {
|
9781
9749
|
if (KTUtil.hasClass(body, 'kt-header-mobile--fixed')) {
|
9782
|
-
|
9750
|
+
pos = pos + parseInt(KTUtil.css(KTUtil.get('kt_header_mobile'), 'height'));
|
9783
9751
|
}
|
9784
9752
|
}
|
9785
9753
|
|
9786
|
-
return
|
9754
|
+
return pos;
|
9787
9755
|
},
|
9788
|
-
left: function() {
|
9789
|
-
var
|
9790
|
-
|
9791
|
-
|
9792
|
-
if (KTUtil.hasClass(body, 'kt-aside--minimize')) {
|
9793
|
-
left += asideMinimizeWidth;
|
9794
|
-
} else if (KTUtil.hasClass(body, 'kt-aside--enabled')) {
|
9795
|
-
left += asideWidth;
|
9796
|
-
}
|
9797
|
-
}
|
9798
|
-
|
9799
|
-
left += parseInt(KTUtil.css(KTUtil.get('kt_content'), 'paddingLeft'));
|
9800
|
-
|
9801
|
-
return left;
|
9756
|
+
left: function(portlet) {
|
9757
|
+
var porletEl = portlet.getSelf();
|
9758
|
+
|
9759
|
+
return KTUtil.offset(porletEl).left;
|
9802
9760
|
},
|
9803
|
-
right: function() {
|
9804
|
-
var
|
9805
|
-
|
9806
|
-
|
9807
|
-
|
9808
|
-
|
9809
|
-
|
9810
|
-
|
9811
|
-
right += asideSecondaryWidth;
|
9812
|
-
}
|
9813
|
-
} else {
|
9814
|
-
right += parseInt(KTUtil.css(KTUtil.get('kt_content'), 'paddingRight'));
|
9815
|
-
}
|
9816
|
-
}
|
9817
|
-
|
9818
|
-
if (KTUtil.get('kt_aside_secondary')) {
|
9819
|
-
right += parseInt(KTUtil.css(KTUtil.get('kt_content'), 'paddingRight'));
|
9820
|
-
}
|
9821
|
-
|
9822
|
-
return right;
|
9761
|
+
right: function(portlet) {
|
9762
|
+
var porletEl = portlet.getSelf();
|
9763
|
+
|
9764
|
+
var portletWidth = parseInt(KTUtil.css(porletEl, 'width'));
|
9765
|
+
var bodyWidth = parseInt(KTUtil.css(KTUtil.get('body'), 'width'));
|
9766
|
+
var portletOffsetLeft = KTUtil.offset(porletEl).left;
|
9767
|
+
|
9768
|
+
return bodyWidth - portletWidth - portletOffsetLeft;
|
9823
9769
|
}
|
9824
9770
|
}
|
9825
9771
|
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
// Load Gem Styles
|
2
|
+
@import "jquery-ui";
|
3
|
+
|
4
|
+
// Load Theme Files
|
5
|
+
@import url("https://cdn.phcnetworks.net/icons/fonts/fontawesome-pro/version-5.8.2/css/all.css");
|
6
|
+
@import url("https://frmwrks.phcnetworks.net/metronic/version-6.0.4/theme/default/dist/assets/vendors/global/vendors.bundle.css");
|
7
|
+
@import url("https://frmwrks.phcnetworks.net/metronic/version-6.0.4/theme/default/dist/assets/css/demo1/style.bundle.css");
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcthemes_admin_panel_pack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -357,7 +357,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
357
357
|
- !ruby/object:Gem::Version
|
358
358
|
version: '0'
|
359
359
|
requirements: []
|
360
|
-
rubygems_version: 3.0.
|
360
|
+
rubygems_version: 3.0.4
|
361
361
|
signing_key:
|
362
362
|
specification_version: 4
|
363
363
|
summary: PHCDevworks - Themes - Admin Panel Pack
|