Skip to content

Commit 01e6030

Browse files
authored
Merge pull request #2133 from REJack/v3-dev
updated plugins part 2 & some enhancements
2 parents b84dfe6 + 66f15c4 commit 01e6030

File tree

846 files changed

+121538
-48926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

846 files changed

+121538
-48926
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"presets": [
33
[
4-
"env",
4+
"@babel/preset-env",
55
{
66
"loose": true,
77
"modules": false
88
}
99
]
1010
],
1111
"plugins": [
12-
"external-helpers"
12+
"@babel/plugin-external-helpers"
1313
]
1414
}

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 2
9+

build/js/Widget.js

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ const Widget = (($) => {
1919
const Event = {
2020
EXPANDED : `expanded${EVENT_KEY}`,
2121
COLLAPSED: `collapsed${EVENT_KEY}`,
22+
MAXIMIZED: `maximized${EVENT_KEY}`,
23+
MINIMIZED: `minimized${EVENT_KEY}`,
2224
REMOVED : `removed${EVENT_KEY}`
2325
}
2426

2527
const Selector = {
2628
DATA_REMOVE : '[data-widget="remove"]',
2729
DATA_COLLAPSE : '[data-widget="collapse"]',
30+
DATA_MAXIMIZE : '[data-widget="maximize"]',
2831
CARD : '.card',
2932
CARD_HEADER : '.card-header',
3033
CARD_BODY : '.card-body',
@@ -36,8 +39,12 @@ const Widget = (($) => {
3639

3740
const ClassName = {
3841
COLLAPSED : 'collapsed-card',
42+
WAS_COLLAPSED : 'was-collapsed',
43+
MAXIMIZED : 'maximized-card',
3944
COLLAPSE_ICON : 'fa-minus',
40-
EXPAND_ICON : 'fa-plus'
45+
EXPAND_ICON : 'fa-plus',
46+
MAXIMIZE_ICON : 'fa-expand',
47+
MINIMIZE_ICON : 'fa-compress',
4148
}
4249

4350
const Default = {
@@ -99,6 +106,44 @@ const Widget = (($) => {
99106

100107
this.collapse()
101108
}
109+
110+
toggleMaximize() {
111+
var button = this._element.find('i')
112+
113+
if (this._parent.hasClass(ClassName.MAXIMIZED)) {
114+
button.addClass(ClassName.MAXIMIZE_ICON).removeClass(ClassName.MINIMIZE_ICON)
115+
this._parent.css('cssText', 'height:' + this._parent[0].style.height + ' !important;' +
116+
'width:' + this._parent[0].style.width + ' !important; transition: all .15s;'
117+
).delay(100).queue(function(){
118+
$(this).removeClass(ClassName.MAXIMIZED)
119+
$('html').removeClass(ClassName.MAXIMIZED)
120+
$(this).trigger(Event.MINIMIZED)
121+
$(this).css({
122+
'height': 'inherit',
123+
'width': 'inherit'
124+
})
125+
if ($(this).hasClass(ClassName.WAS_COLLAPSED)) {
126+
$(this).removeClass(ClassName.WAS_COLLAPSED)
127+
}
128+
$(this).dequeue()
129+
})
130+
} else {
131+
button.addClass(ClassName.MINIMIZE_ICON).removeClass(ClassName.MAXIMIZE_ICON)
132+
this._parent.css({
133+
'height': this._parent.height(),
134+
'width': this._parent.width(),
135+
'transition': 'all .15s'
136+
}).delay(150).queue(function(){
137+
$(this).addClass(ClassName.MAXIMIZED)
138+
$('html').addClass(ClassName.MAXIMIZED)
139+
$(this).trigger(Event.MAXIMIZED)
140+
if ($(this).hasClass(ClassName.COLLAPSED)) {
141+
$(this).addClass(ClassName.WAS_COLLAPSED)
142+
}
143+
$(this).dequeue()
144+
})
145+
}
146+
}
102147

103148
// Private
104149

@@ -155,6 +200,14 @@ const Widget = (($) => {
155200
Widget._jQueryInterface.call($(this), 'remove')
156201
})
157202

203+
$(document).on('click', Selector.DATA_MAXIMIZE, function (event) {
204+
if (event) {
205+
event.preventDefault()
206+
}
207+
208+
Widget._jQueryInterface.call($(this), 'toggleMaximize')
209+
})
210+
158211
/**
159212
* jQuery API
160213
* ====================================================

build/npm/Plugins.js

Lines changed: 102 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ const Plugins = [
3737
from: 'node_modules/chart.js/dist/',
3838
to : 'plugins/chart.js'
3939
},
40+
// jQuery UI
41+
{
42+
from: 'node_modules/jquery-ui-dist/',
43+
to : 'plugins/jquery-ui'
44+
},
45+
// Flot
46+
{
47+
from: 'node_modules/flot/dist/es5/',
48+
to : 'plugins/flot'
49+
},
4050
// Summernote
4151
{
4252
from: 'node_modules/summernote/dist/',
@@ -83,7 +93,11 @@ const Plugins = [
8393
from: 'node_modules/fastclick/lib',
8494
to : 'plugins/fastclick'
8595
},
86-
96+
// Date Range Picker
97+
{
98+
from: 'node_modules/daterangepicker/',
99+
to : 'plugins/daterangepicker'
100+
},
87101
// DataTables
88102
{
89103
from: 'node_modules/datatables.net/js',
@@ -97,6 +111,93 @@ const Plugins = [
97111
from: 'node_modules/datatables.net-bs4/css',
98112
to: 'plugins/datatables'
99113
},
114+
// Fullcalendar
115+
{
116+
from: 'node_modules/@fullcalendar/core/',
117+
to : 'plugins/fullcalendar'
118+
},
119+
{
120+
from: 'node_modules/@fullcalendar/bootstrap/',
121+
to : 'plugins/fullcalendar-bootstrap'
122+
},
123+
{
124+
from: 'node_modules/@fullcalendar/daygrid/',
125+
to : 'plugins/fullcalendar-daygrid'
126+
},
127+
{
128+
from: 'node_modules/@fullcalendar/timegrid/',
129+
to : 'plugins/fullcalendar-timegrid'
130+
},
131+
{
132+
from: 'node_modules/@fullcalendar/interaction/',
133+
to : 'plugins/fullcalendar-interaction'
134+
},
135+
// icheck bootstrap
136+
{
137+
from: 'node_modules/icheck-bootstrap/',
138+
to : 'plugins/icheck-bootstrap'
139+
},
140+
// inputmask
141+
{
142+
from: 'node_modules/inputmask/dist/',
143+
to : 'plugins/inputmask'
144+
},
145+
// ion-rangeslider
146+
{
147+
from: 'node_modules/ion-rangeslider/',
148+
to : 'plugins/ion-rangeslider'
149+
},
150+
// JQVMap
151+
{
152+
from: 'node_modules/jqvmap/dist/',
153+
to : 'plugins/jqvmap'
154+
},
155+
// jQuery Mapael
156+
{
157+
from: 'node_modules/jquery-mapael/js/',
158+
to : 'plugins/jquery-mapael'
159+
},
160+
// Raphael
161+
{
162+
from: 'node_modules/raphael/',
163+
to : 'plugins/raphael'
164+
},
165+
// jQuery Mousewheel
166+
{
167+
from: 'node_modules/jquery-mousewheel/',
168+
to : 'plugins/jquery-mousewheel'
169+
},
170+
// jQuery Knob
171+
{
172+
from: 'node_modules/jquery-knob-chif/dist/',
173+
to : 'plugins/jquery-knob'
174+
},
175+
// pace-progress
176+
{
177+
from: 'node_modules/@lgaitan/pace-progress/dist/',
178+
to : 'plugins/pace-progress'
179+
},
180+
// Select2
181+
{
182+
from: 'node_modules/select2/dist/',
183+
to : 'plugins/select2'
184+
},
185+
// Sparklines
186+
{
187+
from: 'node_modules/sparklines/source/',
188+
to : 'plugins/sparklines'
189+
},
190+
// SweetAlert2
191+
{
192+
from: 'node_modules/sweetalert2/dist/',
193+
to : 'plugins/sweetalert2'
194+
},
195+
// Toastr
196+
{
197+
from: 'node_modules/toastr/build/',
198+
to : 'plugins/toastr'
199+
},
200+
100201

101202
// // Doc Assets
102203
// // AdminLTE Dist

build/scss/AdminLTE.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
@import "users-list";
4242
@import "carousel";
4343
@import "social-widgets";
44+
@import "modals";
4445
// PAGES
4546
// ---------------------------------------------------
4647
@import "mailbox";
@@ -51,8 +52,14 @@
5152
@import "profile";
5253
// Plugins
5354
// ---------------------------------------------------
54-
@import "fullcalendar";
55-
@import "select2";
55+
@import "plugins/fullcalendar";
56+
@import "plugins/select2";
57+
@import "plugins/bootstrap-slider";
58+
@import "plugins/icheck-bootstrap";
59+
@import "plugins/mapael";
60+
@import "plugins/jqvmap";
61+
@import "plugins/sweetalert2";
62+
@import "plugins/toastr";
5663
// Miscellaneous
5764
// ---------------------------------------------------
5865
@import "miscellaneous";

build/scss/_bootstrap-variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ $yiq-text-light: $white !default;
101101
$enable-caret: true !default;
102102
$enable-rounded: true !default;
103103
$enable-shadows: true !default;
104-
$enable-gradients: false !default;
104+
$enable-gradients: true !default;
105105
$enable-transitions: true !default;
106106
$enable-hover-media-query: false !default; // Deprecated, no longer affects any compiled CSS
107107
$enable-grid-classes: true !default;

build/scss/_buttons.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434

3535
// Button color variations
3636
.btn-default {
37-
background-color: #f4f4f4;
38-
color: #444;
39-
border-color: #ddd;
37+
background-color: $button-default-background-color;
38+
color: $button-default-color;
39+
border-color: $button-default-border-color;
4040
&:hover,
4141
&:active,
4242
&.hover {
43-
color: #222;
44-
background-color: darken(#f4f4f4, 5%);
43+
color: darken($button-default-color, 10%);
44+
background-color: darken($button-default-background-color, 5%);
4545
}
4646
}
4747

@@ -55,8 +55,8 @@
5555
height: 60px;
5656
text-align: center;
5757
color: #666;
58-
border: 1px solid #ddd;
59-
background-color: #f4f4f4;
58+
border: 1px solid $button-default-border-color;
59+
background-color: $button-default-background-color;
6060
font-size: 12px;
6161
// Icons within the btn
6262
> .fa,
@@ -70,9 +70,9 @@
7070
}
7171

7272
&:hover {
73-
background: #f4f4f4;
74-
color: #444;
75-
border-color: #aaa;
73+
background: $button-default-background-color;
74+
color: $button-default-color;
75+
border-color: darken($button-default-border-color, 20%);
7676
}
7777

7878
&:active,

build/scss/_cards.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,30 @@
1414
}
1515
}
1616

17+
&.maximized-card {
18+
z-index: 9999;
19+
width: 100% !important;
20+
height: 100% !important;
21+
max-width: 100% !important;
22+
max-height: 100% !important;
23+
position: fixed;
24+
top: 0;
25+
left: 0;
26+
27+
&.was-collapsed .card-body {
28+
display: block !important;
29+
}
30+
31+
[data-widget="collapse"] {
32+
display: none;
33+
}
34+
35+
.card-header,
36+
.card-footer {
37+
@include border-radius(0 !important);
38+
}
39+
}
40+
1741
// collapsed mode
1842
&.collapsed-card {
1943
.card-body,
@@ -49,6 +73,11 @@
4973
}
5074
}
5175

76+
// Maximized Card Body Scroll fix
77+
html.maximized-card {
78+
overflow: hidden;
79+
}
80+
5281
.card,
5382
.overlay-wrapper {
5483
// Box overlay for LOADING STATE effect

0 commit comments

Comments
 (0)