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: 1bcf29b24cc136e61acb8ab41f3f047b832f39fb729cb6a8be57d20f2e7f2621
4
- data.tar.gz: d992b6561304f49bb6cf3fe0d8279e3b4ffeefcd5a4be1a228369fbf126de83e
3
+ metadata.gz: f6b9b1c6e71b3bf66b1e154c7f424170f4659d26f2ffba63ac238eb3eb215262
4
+ data.tar.gz: e2bdb1d886701d2f9decc1270714fc6a4b3d66766b4d57aa069a1ea1d3611d25
5
5
  SHA512:
6
- metadata.gz: 309e384f95b6b239021b387adbbc310ba1f3aa24ac6c05ae94b79839d8b1f8688af4123918762a15ea63b30977512393cc930b1e27ef192bcd3dca38f2a8b688
7
- data.tar.gz: 5bbc22ce684fd0cf5cce44b320a48abe1d9f3af3660f60eb3f80c88e1712d9b33ca985caf18fbac3a04a79ddfb6780c02463468df4fbaf94bf2712f3ba7d3a56
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(dropdown) {
110
+ var initAbsoluteDropdown = function(context) {
111
111
  var dropdownMenu;
112
112
 
113
- if (!dropdown) {
113
+ if (!context) {
114
114
  return;
115
115
  }
116
116
 
117
- dropdown.on('show.bs.dropdown', 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
- });
127
-
128
- dropdown.on('hide.bs.dropdown', function(e) {
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(dropdown) {
212
- initAbsoluteDropdown(dropdown);
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.03,
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, {disableForMobile: true, resetHeightOnDestroy: true, handleWindowResize: true, height: the.options.scroll.height, rememberPosition: the.options.scroll.rememberPosition});
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, args) {
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, the, args);
3089
+ return event.handler.call(this, target, e);
3087
3090
  }
3088
3091
  } else {
3089
- event.handler.call(this, the, args);
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
- if (util.getBreakpoint(column.responsive.hidden) >= screen) {
6796
- $(tds).hide();
6797
- } else {
6798
- $(tds).show();
6799
- }
6800
- if (util.getBreakpoint(column.responsive.visible) <= screen) {
6801
- $(tds).show();
6802
- } else {
6803
- $(tds).hide();
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].responsive;
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 + '.responsive', {hidden: 'xl'});
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
- var offcanvas = new KTOffcanvas(panel, {
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 h = 0;
9738
+ var pos = 0;
9771
9739
 
9772
9740
  if (KTUtil.isInResponsiveRange('desktop')) {
9773
9741
  if (KTUtil.hasClass(body, 'kt-header--fixed')) {
9774
- h = h + parseInt(KTUtil.css(KTUtil.get('kt_header'), 'height'));
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
- h = h + parseInt(KTUtil.css(KTUtil.get('kt_subheader'), 'height'));
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
- h = h + parseInt(KTUtil.css(KTUtil.get('kt_header_mobile'), 'height'));
9750
+ pos = pos + parseInt(KTUtil.css(KTUtil.get('kt_header_mobile'), 'height'));
9783
9751
  }
9784
9752
  }
9785
9753
 
9786
- return h;
9754
+ return pos;
9787
9755
  },
9788
- left: function() {
9789
- var left = 0;
9790
-
9791
- if (KTUtil.isInResponsiveRange('desktop')) {
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 right = 0;
9805
-
9806
- if (KTUtil.isInResponsiveRange('desktop')) {
9807
- if (KTUtil.hasClass(body, 'kt-aside-secondary--enabled')) {
9808
- if (KTUtil.hasClass(body, 'kt-aside-secondary--expanded')) {
9809
- right += asideSecondaryExpandedWidth + asideSecondaryWidth;
9810
- } else {
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");
@@ -1,3 +1,3 @@
1
1
  module PhcthemesAdminPanelPack
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
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.1.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-24 00:00:00.000000000 Z
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.3
360
+ rubygems_version: 3.0.4
361
361
  signing_key:
362
362
  specification_version: 4
363
363
  summary: PHCDevworks - Themes - Admin Panel Pack