Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
3834f156
Commit
3834f156
authored
Mar 31, 2015
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update font awesome
parent
53a0d5f3
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1393 additions
and
0 deletions
+1393
-0
.npmignore
public/themes/adminlte/vendor/font-awesome/.npmignore
+42
-0
bower.json
public/themes/adminlte/vendor/font-awesome/bower.json
+23
-0
font-awesome.css.map
...mes/adminlte/vendor/font-awesome/css/font-awesome.css.map
+7
-0
fontawesome-webfont.woff2
...inlte/vendor/font-awesome/fonts/fontawesome-webfont.woff2
+0
-0
animated.less
...ic/themes/adminlte/vendor/font-awesome/less/animated.less
+34
-0
_animated.scss
...c/themes/adminlte/vendor/font-awesome/scss/_animated.scss
+34
-0
.bower.json
public/themes/adminlte/vendor/gridstack/.bower.json
+14
-0
LICENSE
public/themes/adminlte/vendor/gridstack/LICENSE
+22
-0
README.md
public/themes/adminlte/vendor/gridstack/README.md
+370
-0
gridstack.min.css
...c/themes/adminlte/vendor/gridstack/dist/gridstack.min.css
+1
-0
gridstack.min.js
...ic/themes/adminlte/vendor/gridstack/dist/gridstack.min.js
+1
-0
gridstack.css
public/themes/adminlte/vendor/gridstack/src/gridstack.css
+120
-0
gridstack.js
public/themes/adminlte/vendor/gridstack/src/gridstack.js
+725
-0
No files found.
public/themes/adminlte/vendor/font-awesome/.npmignore
0 → 100644
View file @
3834f156
*.pyc
*.egg-info
*.db
*.db.old
*.swp
*.db-journal
.coverage
.DS_Store
.installed.cfg
_gh_pages/*
.idea/*
.svn/*
src/website/static/*
src/website/media/*
bin
cfcache
develop-eggs
dist
downloads
eggs
parts
tmp
.sass-cache
node_modules
src/website/settingslocal.py
stunnel.log
.ruby-version
# don't need these in the npm package.
src/
_config.yml
bower.json
component.json
composer.json
CONTRIBUTING.md
Gemfile
Gemfile.lock
public/themes/adminlte/vendor/font-awesome/bower.json
0 → 100644
View file @
3834f156
{
"name"
:
"font-awesome"
,
"description"
:
"Font Awesome"
,
"version"
:
"4.3.0"
,
"keywords"
:
[],
"homepage"
:
"http://fontawesome.io"
,
"dependencies"
:
{},
"devDependencies"
:
{},
"license"
:
[
"OFL-1.1"
,
"MIT"
,
"CC-BY-3.0"
],
"main"
:
[
"./css/font-awesome.css"
,
"./fonts/*"
],
"ignore"
:
[
"*/.*"
,
"*.json"
,
"src"
,
"*.yml"
,
"Gemfile"
,
"Gemfile.lock"
,
"*.md"
]
}
public/themes/adminlte/vendor/font-awesome/css/font-awesome.css.map
0 → 100644
View file @
3834f156
{
"version": 3,
"mappings": ";;;;;;;AAGA,UAUC;EATC,WAAW,EAAE,aAAa;EAC1B,GAAG,EAAE,+CAAgE;EACrE,GAAG,EAAE,ySAAmG;EAKxG,WAAW,EAAE,MAAM;EACnB,UAAU,EAAE,MAAM;ACTpB,GAAmB;EACjB,OAAO,EAAE,YAAY;EACrB,IAAI,EAAE,uCAAwD;EAC9D,SAAS,EAAE,OAAO;EAClB,cAAc,EAAE,IAAI;EACpB,sBAAsB,EAAE,WAAW;EACnC,uBAAuB,EAAE,SAAS;EAClC,SAAS,EAAE,eAAe;;;ACN5B,MAAsB;EACpB,SAAS,EAAE,SAAS;EACpB,WAAW,EAAE,MAAS;EACtB,cAAc,EAAE,IAAI;;AAEtB,MAAsB;EAAE,SAAS,EAAE,GAAG;;AACtC,MAAsB;EAAE,SAAS,EAAE,GAAG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,OAAO,ENvN1B,GAAO;;AMwNvB,4BAA4C;EAAE,OAAO,EN9X1B,GAAO;;AM+XlC,sBAAsC;EAAE,OAAO,ENhM1B,GAAO;;AMiM5B,mBAAmC;EAAE,OAAO,ENI1B,GAAO;;AMHzB,iBAAiC;EAAE,OAAO,EN7I1B,GAAO;;AM8IvB,oBAAoC;EAAE,OAAO,ENjB1B,GAAO;;AMkB1B,qBAAqC;EAAE,OAAO,ENhB1B,GAAO;;AMiB3B;cAC8B;EAAE,OAAO,ENphB1B,GAAO;;AMqhBpB,kBAAkC;EAAE,OAAO,ENd1B,GAAO;;AMexB,gBAAgC;EAAE,OAAO,ENnD1B,GAAO;;AMoDtB,iBAAiC;EAAE,OAAO,ENvF1B,GAAO;;AMwFvB,iBAAiC;EAAE,OAAO,ENrP1B,GAAO",
"sources": ["../scss/_path.scss","../scss/_core.scss","../scss/_larger.scss","../scss/_fixed-width.scss","../scss/_list.scss","../scss/_variables.scss","../scss/_bordered-pulled.scss","../scss/_animated.scss","../scss/_rotated-flipped.scss","../scss/_mixins.scss","../scss/_stacked.scss","../scss/_icons.scss"],
"names": [],
"file": "font-awesome.css"
}
public/themes/adminlte/vendor/font-awesome/fonts/fontawesome-webfont.woff2
0 → 100644
View file @
3834f156
File added
public/themes/adminlte/vendor/font-awesome/less/animated.less
0 → 100644
View file @
3834f156
// Animated Icons
// --------------------------
.@{fa-css-prefix}-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.@{fa-css-prefix}-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
public/themes/adminlte/vendor/font-awesome/scss/_animated.scss
0 → 100644
View file @
3834f156
// Spinning Icons
// --------------------------
.
#{
$fa-css-prefix
}
-spin
{
-webkit-animation
:
fa-spin
2s
infinite
linear
;
animation
:
fa-spin
2s
infinite
linear
;
}
.
#{
$fa-css-prefix
}
-pulse
{
-webkit-animation
:
fa-spin
1s
infinite
steps
(
8
);
animation
:
fa-spin
1s
infinite
steps
(
8
);
}
@-webkit-keyframes
fa-spin
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
100
%
{
-webkit-transform
:
rotate
(
359deg
);
transform
:
rotate
(
359deg
);
}
}
@keyframes
fa-spin
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
100
%
{
-webkit-transform
:
rotate
(
359deg
);
transform
:
rotate
(
359deg
);
}
}
public/themes/adminlte/vendor/gridstack/.bower.json
0 → 100644
View file @
3834f156
{
"name"
:
"gridstack"
,
"homepage"
:
"https://github.com/troolee/gridstack.js"
,
"version"
:
"0.2.2"
,
"_release"
:
"0.2.2"
,
"_resolution"
:
{
"type"
:
"version"
,
"tag"
:
"v0.2.2"
,
"commit"
:
"5c7340018cad0012b731af356b910cd755b4cc24"
},
"_source"
:
"git://github.com/troolee/gridstack.js.git"
,
"_target"
:
"~0.2.2"
,
"_originalSource"
:
"gridstack"
}
\ No newline at end of file
public/themes/adminlte/vendor/gridstack/LICENSE
0 → 100644
View file @
3834f156
The MIT License (MIT)
Copyright (c) 2014 Pavel Reznikov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
public/themes/adminlte/vendor/gridstack/README.md
0 → 100644
View file @
3834f156
gridstack.js
============
gridstack.js is a jQuery plugin for widget layout. This is drag-and-drop multi-column grid. It allows you to build
draggable responsive bootstrap v3 friendly layouts. It also works great with
[
knockout.js
](
http://knockoutjs.com
)
Inspired by
[
gridster.js
](
http://gridster.net
)
. Built with love.
Demo
====
Please visit http://troolee.github.io/gridstack.js/ for demo.
Usage
=====
## Requirements
*
http://underscorejs.org (>= 1.7.0)
*
http://jquery.com (>= 1.11.0)
*
http://jqueryui.com (>= 1.11.0). Minimum required components: Core, Widget, Mouse, Draggable, Resizable
*
(Optional) http://knockoutjs.com (>= 3.2.0)
## Basic usage
```
html
<div
class=
"grid-stack"
>
<div
class=
"grid-stack-item"
data-gs-x=
"0"
data-gs-y=
"0"
data-gs-width=
"4"
data-gs-height=
"2"
>
<div
class=
"grid-stack-item-content"
></div>
</div>
<div
class=
"grid-stack-item"
data-gs-x=
"4"
data-gs-y=
"0"
data-gs-width=
"4"
data-gs-height=
"4"
>
<div
class=
"grid-stack-item-content"
></div>
</div>
</div>
<script
type=
"text/javascript"
>
$
(
function
()
{
var
options
=
{
cell_height
:
80
,
vertical_margin
:
10
};
$
(
'
.grid-stack
'
).
gridstack
(
options
);
});
</script>
```
## Options
-
`animate`
- turns animation on (default:
`false`
)
-
`auto`
- if
`false`
it tells to do not initialize existing items (default:
`true`
)
-
`cell_height`
- one cell height (default:
`60`
)
-
`handle`
- draggable handle selector (default:
`'.grid-stack-item-content'`
)
-
`height`
- maximum rows amount. Default is
`0`
which means no maximum rows
-
`float`
- enable floating widgets (default:
`false`
)
-
`item_class`
- widget class (default:
`'grid-stack-item'`
)
-
`min_width`
- minimal width. If window width is less grid will be shown in one-column mode (default:
`768`
)
-
`placeholder_class`
- class for placeholder (default:
`'grid-stack-placeholder'`
)
-
`vertical_margin`
- vertical gap size (default:
`20`
)
-
`width`
- amount of columns (default:
`12`
)
## Grid attributes
-
`data-gs-animate`
- turns animation on
-
`data-gs-width`
- amount of columns
-
`data-gs-height`
- maximum rows amount. Default is
`0`
which means no maximum rows.
## Item attributes
-
`data-gs-x`
,
`data-gs-y`
- element position
-
`data-gs-width`
,
`data-gs-height`
- element size
-
`data-gs-max-width`
,
`data-gs-min-width`
,
`data-gs-max-height`
,
`data-gs-min-height`
- element constraints
-
`data-gs-no-resize`
- disable element resizing
-
`data-gs-no-move`
- disable element moving
-
`data-gs-auto-position`
- tells to ignore
`data-gs-x`
and
`data-gs-y`
attributes and to place element to the first
available position
-
`data-gs-locked`
- the widget will be locked. It means another widgets couldn't move it during dragging or resizing.
The widget is still can be dragged or resized. You need to add
`data-gs-no-resize`
and
`data-gs-no-move`
attributes
to completely lock the widget.
## Events
### onchange(items)
Occurs when widgets change their position/size
```
javascript
var
serialize_widget_map
=
function
(
items
)
{
console
.
log
(
items
);
};
$
(
'
.grid-stack
'
).
on
(
'
change
'
,
function
(
e
,
items
)
{
serialize_widget_map
(
items
);
});
```
### ondragstart(event, ui)
```
javascript
$
(
'
.grid-stack
'
).
on
(
'
dragstart
'
,
function
(
event
,
ui
)
{
var
grid
=
this
;
var
element
=
event
.
target
;
});
```
### ondragstop(event, ui)
```
javascript
$
(
'
.grid-stack
'
).
on
(
'
dragstop
'
,
function
(
event
,
ui
)
{
var
grid
=
this
;
var
element
=
event
.
target
;
});
```
### onresizestart(event, ui)
```
javascript
$
(
'
.grid-stack
'
).
on
(
'
resizestart
'
,
function
(
event
,
ui
)
{
var
grid
=
this
;
var
element
=
event
.
target
;
});
```
### onresizestop(event, ui)
```
javascript
$
(
'
.grid-stack
'
).
on
(
'
resizestop
'
,
function
(
event
,
ui
)
{
var
grid
=
this
;
var
element
=
event
.
target
;
});
```
## API
### add_widget(el, x, y, width, height, auto_position)
Creates new widget.
Parameters:
-
`el`
- widget to add
-
`x`
,
`y`
,
`width`
,
`height`
- widget position/dimensions (Optional)
-
`auto_position`
- if
`true`
then
`x`
,
`y`
parameters will be ignored and widget will be places on the first available
position
Widget will be always placed even if result height will be more then grid height. You need to use
`will_it_fit`
method
before call
`add_widget`
for additional check.
```
javascript
$
(
'
.grid-stack
'
).
gridstack
();
var
grid
=
$
(
'
.grid-stack
'
).
data
(
'
gridstack
'
);
grid
.
add_widget
(
el
,
0
,
0
,
3
,
2
,
true
);
```
### cell_height()
Gets current cell height.
### cell_height(val)
Update current cell height. This method rebuilds an internal CSS stylesheet. Note: You can expect performance issues if
call this method too often.
```
javascript
grid
.
cell_height
(
grid
.
cell_width
()
*
1.2
);
```
### cell_width()
Gets current cell width.
### locked(el, val)
Locks/unlocks widget.
-
`el`
- widget to modify.
-
`val`
- if
`true`
widget will be locked.
### remove_widget(el)
Removes widget from the grid.
Parameters:
-
`el`
- widget to remove
### remove_all()
Removes all widgets from the grid.
### resize(el, width, \[height\])
Changes widget size
Parameters:
-
`el`
- widget to resize
-
`width`
,
`height`
- new dimensions. If value is
`null`
or
`undefined`
it will be ignored.
### move(el, x, \[y\])
Changes widget position
Parameters:
-
`el`
- widget to move
-
`x`
,
`y`
- new position. If value is
`null`
or
`undefined`
it will be ignored.
### resizable(el, val)
Enables/Disables resizing.
-
`el`
- widget to modify
-
`val`
- if
`true`
widget will be resizable.
### movable(el, val)
Enables/Disables moving.
-
`el`
- widget to modify
-
`val`
- if
`true`
widget will be draggable.
### will_it_fit(x, y, width, height, auto_position)
Returns
`true`
if the
`height`
of the grid will be less the vertical constraint. Always returns
`true`
if grid doesn't
have
`height`
constraint.
```
javascript
if
(
grid
.
will_it_fit
(
new_node
.
x
,
new_node
.
y
,
new_node
.
width
,
new_node
.
height
,
true
))
{
grid
.
add_widget
(
new_node
.
x
,
new_node
.
y
,
new_node
.
width
,
new_node
.
height
,
true
);
}
else
{
alert
(
'
Not enough free space to place the widget
'
);
}
```
## Utils
### GridStackUI.Utils.sort(nodes, \[dir\], \[width\])
Sorts array of nodes
-
`nodes`
- array to sort
-
`dir`
-
`1`
for asc,
`-1`
for desc
-
`width`
- width of the grid. If
`undefined`
the width will be calculated automatically.
## Use with knockout.js
```
javascript
ko
.
components
.
register
(
'
dashboard-grid
'
,
{
viewModel
:
{
createViewModel
:
function
(
params
,
componentInfo
)
{
var
ViewModel
=
function
(
params
,
componentInfo
)
{
var
grid
=
null
;
this
.
widgets
=
params
.
widgets
;
this
.
afterAddWidget
=
function
(
items
)
{
_
.
each
(
items
,
function
(
item
)
{
item
=
$
(
item
);
if
(
grid
==
null
)
{
grid
=
$
(
componentInfo
.
element
).
find
(
'
.grid-stack
'
).
gridstack
({
auto
:
false
}).
data
(
'
gridstack
'
);
}
grid
.
add_widget
(
item
);
ko
.
utils
.
domNodeDisposal
.
addDisposeCallback
(
item
[
0
],
function
()
{
grid
.
remove_widget
(
item
);
});
},
this
);
};
};
return
new
ViewModel
(
params
,
componentInfo
);
}
},
template
:
[
'
<div class="grid-stack">
'
,
'
<!-- ko foreach: widgets, afterRender: afterAddWidget -->
'
,
'
<div class="grid-stack-item" data-bind="attr: {
'
,
'
\'
data-gs-x
\'
: x,
\'
data-gs-y
\'
: y,
'
,
'
\'
data-gs-width
\'
: width,
\'
data-gs-height
\'
: height}">
'
,
'
<span data-bind="text: $index"></span>
'
,
'
</div>
'
,
'
<!-- /ko -->
'
,
'
</div>
'
].
join
(
'
\n
'
)
});
```
and HTML:
```
html
<div
data-bind=
"component: {name: 'dashboard-grid', params: $data}"
></div>
```
Changes
=======
#### v0.2.2 (2014-12-23)
-
fix grid initialization
-
add
`cell_height`
/
`cell_width`
API methods
-
fix boolean attributes (issue #31)
#### v0.2.1 (2014-12-09)
-
add widgets locking (issue #19)
-
add
`will_it_fit`
API method
-
fix auto-positioning (issue #20)
-
add animation (thanks to @ishields)
-
fix
`y`
coordinate calculation when dragging (issue #18)
-
fix
`remove_widget`
(issue #16)
-
minor fixes
#### v0.2.0 (2014-11-30)
-
add
`height`
option
-
auto-generate css rules (widgets
`height`
and
`top`
)
-
add
`GridStackUI.Utils.sort`
utility function
-
add
`remove_all`
API method
-
add
`resize`
and
`move`
API methods
-
add
`resizable`
and
`movable`
API methods
-
add
`data-gs-no-move`
attribute
-
add
`float`
option
-
fix default css rule for inner content
-
minor fixes
#### v0.1.0 (2014-11-18)
Very first version.
License
=======
The MIT License (MIT)
Copyright (c) 2014 Pavel Reznikov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
public/themes/adminlte/vendor/gridstack/dist/gridstack.min.css
0 → 100644
View file @
3834f156
.grid-stack
{
position
:
relative
}
.grid-stack-item
{
position
:
absolute
;
padding
:
0
}
.grid-stack-item
.grid-stack-item-content
,
.grid-stack-item
.placeholder-content
{
margin
:
0
;
position
:
absolute
;
top
:
0
;
left
:
10px
;
right
:
10px
;
bottom
:
0
;
width
:
auto
;
z-index
:
0
!important
;
overflow
:
auto
}
.grid-stack-placeholder
.placeholder-content
{
border
:
1px
dashed
lightgray
}
.grid-stack-item.ui-draggable-dragging
,
.grid-stack-item.ui-resizable-resizing
{
z-index
:
100
}
.grid-stack-item.ui-draggable-dragging
.grid-stack-item-content
,
.grid-stack-item.ui-resizable-resizing
.grid-stack-item-content
{
box-shadow
:
1px
4px
6px
rgba
(
0
,
0
,
0
,
0.2
);
opacity
:
.8
}
.grid-stack-item
.ui-resizable-handle
{
padding
:
3px
;
margin
:
3px
0
;
cursor
:
nwse-resize
;
color
:
gray
;
position
:
absolute
;
bottom
:
0
;
right
:
15px
;
font
:
normal
normal
normal
14px
/
1
FontAwesome
;
text-rendering
:
auto
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
BasicImage
(
rotation
=
1
);
-webkit-transform
:
rotate
(
90deg
);
-ms-transform
:
rotate
(
90deg
);
transform
:
rotate
(
90deg
);
font-size
:
10px
}
.grid-stack-item
.ui-resizable-handle
::before
{
content
:
"\f065"
}
.grid-stack-item
[
data-gs-width
=
"12"
]
{
width
:
100%
}
.grid-stack-item
[
data-gs-width
=
"11"
]
{
width
:
91.66666667%
}
.grid-stack-item
[
data-gs-width
=
"10"
]
{
width
:
83.33333333%
}
.grid-stack-item
[
data-gs-width
=
"9"
]
{
width
:
75%
}
.grid-stack-item
[
data-gs-width
=
"8"
]
{
width
:
66.66666667%
}
.grid-stack-item
[
data-gs-width
=
"7"
]
{
width
:
58.33333333%
}
.grid-stack-item
[
data-gs-width
=
"6"
]
{
width
:
50%
}
.grid-stack-item
[
data-gs-width
=
"5"
]
{
width
:
41.66666667%
}
.grid-stack-item
[
data-gs-width
=
"4"
]
{
width
:
33.33333333%
}
.grid-stack-item
[
data-gs-width
=
"3"
]
{
width
:
25%
}
.grid-stack-item
[
data-gs-width
=
"2"
]
{
width
:
16.66666667%
}
.grid-stack-item
[
data-gs-width
=
"1"
]
{
width
:
8.33333333%
}
.grid-stack-item
[
data-gs-x
=
"12"
]
{
left
:
100%
}
.grid-stack-item
[
data-gs-x
=
"11"
]
{
left
:
91.66666667%
}
.grid-stack-item
[
data-gs-x
=
"10"
]
{
left
:
83.33333333%
}
.grid-stack-item
[
data-gs-x
=
"9"
]
{
left
:
75%
}
.grid-stack-item
[
data-gs-x
=
"8"
]
{
left
:
66.66666667%
}
.grid-stack-item
[
data-gs-x
=
"7"
]
{
left
:
58.33333333%
}
.grid-stack-item
[
data-gs-x
=
"6"
]
{
left
:
50%
}
.grid-stack-item
[
data-gs-x
=
"5"
]
{
left
:
41.66666667%
}
.grid-stack-item
[
data-gs-x
=
"4"
]
{
left
:
33.33333333%
}
.grid-stack-item
[
data-gs-x
=
"3"
]
{
left
:
25%
}
.grid-stack-item
[
data-gs-x
=
"2"
]
{
left
:
16.66666667%
}
.grid-stack-item
[
data-gs-x
=
"1"
]
{
left
:
8.33333333%
}
@media
(
max-width
:
768px
){
.grid-stack-item
{
position
:
relative
!important
;
width
:
auto
!important
;
left
:
0
!important
;
top
:
auto
!important
;
margin-bottom
:
20px
}
.grid-stack
{
height
:
auto
!important
}}
.grid-stack.grid-stack-animate
,
.grid-stack.grid-stack-animate
.grid-stack-item
{
-webkit-transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
;
-moz-transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
;
-o-transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
;
-ms-transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
;
transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
}
.grid-stack.grid-stack-animate
.grid-stack-item.ui-draggable-dragging
,
.grid-stack.grid-stack-animate
.grid-stack-item.ui-resizable-resizing
,
.grid-stack.grid-stack-animate
.grid-stack-item.grid-stack-placeholder
{
-webkit-transition
:
left
0
,
top
0
,
height
0
,
width
0
;
-moz-transition
:
left
0
,
top
0
,
height
0
,
width
0
;
-o-transition
:
left
0
,
top
0
,
height
0
,
width
0
;
transition
:
left
0
,
top
0
,
height
0
,
width
0
}
\ No newline at end of file
public/themes/adminlte/vendor/gridstack/dist/gridstack.min.js
0 → 100644
View file @
3834f156
(
function
(
scope
,
_
){
var
Utils
=
{
is_intercepted
:
function
(
a
,
b
){
return
!
(
a
.
x
+
a
.
width
<=
b
.
x
||
b
.
x
+
b
.
width
<=
a
.
x
||
a
.
y
+
a
.
height
<=
b
.
y
||
b
.
y
+
b
.
height
<=
a
.
y
)},
sort
:
function
(
nodes
,
dir
,
width
){
width
=
width
||
_
.
chain
(
nodes
).
map
(
function
(
node
){
return
node
.
x
+
node
.
width
}).
max
().
value
();
dir
=
dir
!=-
1
?
1
:
-
1
;
return
_
.
sortBy
(
nodes
,
function
(
n
){
return
dir
*
(
n
.
x
+
n
.
y
*
width
)})},
create_stylesheet
:
function
(){
var
style
=
document
.
createElement
(
"
style
"
);
style
.
appendChild
(
document
.
createTextNode
(
""
));
document
.
head
.
appendChild
(
style
);
return
style
.
sheet
},
toBool
:
function
(
v
){
if
(
typeof
v
==
"
boolean
"
)
return
v
;
if
(
typeof
v
==
"
string
"
){
v
=
v
.
toLowerCase
();
return
!
(
v
==
""
||
v
==
"
no
"
||
v
==
"
false
"
||
v
==
"
0
"
)}
return
Boolean
(
v
)}};
var
id_seq
=
0
;
var
GridStackEngine
=
function
(
width
,
onchange
,
float
,
height
,
items
){
this
.
width
=
width
;
this
.
float
=
float
||
false
;
this
.
height
=
height
||
0
;
this
.
nodes
=
items
||
[];
this
.
onchange
=
onchange
||
function
(){}};
GridStackEngine
.
prototype
.
_fix_collisions
=
function
(
node
){
this
.
_sort_nodes
(
-
1
);
var
nn
=
node
,
has_locked
=
Boolean
(
_
.
find
(
this
.
nodes
,
function
(
n
){
return
n
.
locked
}));
if
(
!
this
.
float
&&!
has_locked
){
nn
=
{
x
:
0
,
y
:
node
.
y
,
width
:
this
.
width
,
height
:
node
.
height
}}
while
(
true
){
var
collision_node
=
_
.
find
(
this
.
nodes
,
function
(
n
){
return
n
!=
node
&&
Utils
.
is_intercepted
(
n
,
nn
)},
this
);
if
(
typeof
collision_node
==
"
undefined
"
){
return
}
this
.
move_node
(
collision_node
,
collision_node
.
x
,
node
.
y
+
node
.
height
,
collision_node
.
width
,
collision_node
.
height
,
true
)}};
GridStackEngine
.
prototype
.
_sort_nodes
=
function
(
dir
){
this
.
nodes
=
Utils
.
sort
(
this
.
nodes
,
dir
,
this
.
width
)};
GridStackEngine
.
prototype
.
_pack_nodes
=
function
(){
this
.
_sort_nodes
();
if
(
this
.
float
){
_
.
each
(
this
.
nodes
,
function
(
n
,
i
){
if
(
n
.
_updating
||
typeof
n
.
_orig_y
==
"
undefined
"
||
n
.
y
==
n
.
_orig_y
)
return
;
var
new_y
=
n
.
y
;
while
(
new_y
>=
n
.
_orig_y
){
var
collision_node
=
_
.
chain
(
this
.
nodes
).
find
(
function
(
bn
){
return
n
!=
bn
&&
Utils
.
is_intercepted
({
x
:
n
.
x
,
y
:
new_y
,
width
:
n
.
width
,
height
:
n
.
height
},
bn
)}).
value
();
if
(
!
collision_node
){
n
.
_dirty
=
true
;
n
.
y
=
new_y
}
--
new_y
}},
this
)}
else
{
_
.
each
(
this
.
nodes
,
function
(
n
,
i
){
if
(
n
.
locked
)
return
;
while
(
n
.
y
>
0
){
var
new_y
=
n
.
y
-
1
;
var
can_be_moved
=
i
==
0
;
if
(
i
>
0
){
var
collision_node
=
_
.
chain
(
this
.
nodes
).
first
(
i
).
find
(
function
(
bn
){
return
Utils
.
is_intercepted
({
x
:
n
.
x
,
y
:
new_y
,
width
:
n
.
width
,
height
:
n
.
height
},
bn
)}).
value
();
can_be_moved
=
typeof
collision_node
==
"
undefined
"
}
if
(
!
can_be_moved
){
break
}
n
.
_dirty
=
n
.
y
!=
new_y
;
n
.
y
=
new_y
}},
this
)}};
GridStackEngine
.
prototype
.
_prepare_node
=
function
(
node
,
resizing
){
node
=
_
.
defaults
(
node
||
{},{
width
:
1
,
height
:
1
,
x
:
0
,
y
:
0
});
node
.
x
=
parseInt
(
""
+
node
.
x
);
node
.
y
=
parseInt
(
""
+
node
.
y
);
node
.
width
=
parseInt
(
""
+
node
.
width
);
node
.
height
=
parseInt
(
""
+
node
.
height
);
node
.
auto_position
=
node
.
auto_position
||
false
;
node
.
no_resize
=
node
.
no_resize
||
false
;
node
.
no_move
=
node
.
no_move
||
false
;
if
(
node
.
width
>
this
.
width
){
node
.
width
=
this
.
width
}
else
if
(
node
.
width
<
1
){
node
.
width
=
1
}
if
(
node
.
height
<
1
){
node
.
height
=
1
}
if
(
node
.
x
<
0
){
node
.
x
=
0
}
if
(
node
.
x
+
node
.
width
>
this
.
width
){
if
(
resizing
){
node
.
width
=
this
.
width
-
node
.
x
}
else
{
node
.
x
=
this
.
width
-
node
.
width
}}
if
(
node
.
y
<
0
){
node
.
y
=
0
}
return
node
};
GridStackEngine
.
prototype
.
_notify
=
function
(){
var
deleted_nodes
=
Array
.
prototype
.
slice
.
call
(
arguments
,
1
).
concat
(
this
.
get_dirty_nodes
());
deleted_nodes
=
deleted_nodes
.
concat
(
this
.
get_dirty_nodes
());
this
.
onchange
(
deleted_nodes
)};
GridStackEngine
.
prototype
.
clean_nodes
=
function
(){
_
.
each
(
this
.
nodes
,
function
(
n
){
n
.
_dirty
=
false
})};
GridStackEngine
.
prototype
.
get_dirty_nodes
=
function
(){
return
_
.
filter
(
this
.
nodes
,
function
(
n
){
return
n
.
_dirty
})};
GridStackEngine
.
prototype
.
add_node
=
function
(
node
){
node
=
this
.
_prepare_node
(
node
);
if
(
typeof
node
.
max_width
!=
"
undefined
"
)
node
.
width
=
Math
.
min
(
node
.
width
,
node
.
max_width
);
if
(
typeof
node
.
max_height
!=
"
undefined
"
)
node
.
height
=
Math
.
min
(
node
.
height
,
node
.
max_height
);
if
(
typeof
node
.
min_width
!=
"
undefined
"
)
node
.
width
=
Math
.
max
(
node
.
width
,
node
.
min_width
);
if
(
typeof
node
.
min_height
!=
"
undefined
"
)
node
.
height
=
Math
.
max
(
node
.
height
,
node
.
min_height
);
node
.
_id
=++
id_seq
;
node
.
_dirty
=
true
;
if
(
node
.
auto_position
){
this
.
_sort_nodes
();
for
(
var
i
=
0
;;
++
i
){
var
x
=
i
%
this
.
width
,
y
=
Math
.
floor
(
i
/
this
.
width
);
if
(
x
+
node
.
width
>
this
.
width
){
continue
}
if
(
!
_
.
find
(
this
.
nodes
,
function
(
n
){
return
Utils
.
is_intercepted
({
x
:
x
,
y
:
y
,
width
:
node
.
width
,
height
:
node
.
height
},
n
)})){
node
.
x
=
x
;
node
.
y
=
y
;
break
}}}
this
.
nodes
.
push
(
node
);
this
.
_fix_collisions
(
node
);
this
.
_pack_nodes
();
this
.
_notify
();
return
node
};
GridStackEngine
.
prototype
.
remove_node
=
function
(
node
){
node
.
_id
=
null
;
this
.
nodes
=
_
.
without
(
this
.
nodes
,
node
);
this
.
_pack_nodes
();
this
.
_notify
(
node
)};
GridStackEngine
.
prototype
.
can_move_node
=
function
(
node
,
x
,
y
,
width
,
height
){
var
has_locked
=
Boolean
(
_
.
find
(
this
.
nodes
,
function
(
n
){
return
n
.
locked
}));
if
(
!
this
.
height
&&!
has_locked
)
return
true
;
var
cloned_node
;
var
clone
=
new
GridStackEngine
(
this
.
width
,
null
,
this
.
float
,
0
,
_
.
map
(
this
.
nodes
,
function
(
n
){
if
(
n
==
node
){
cloned_node
=
$
.
extend
({},
n
);
return
cloned_node
}
return
$
.
extend
({},
n
)}));
clone
.
move_node
(
cloned_node
,
x
,
y
,
width
,
height
);
var
res
=
true
;
if
(
has_locked
)
res
&=!
Boolean
(
_
.
find
(
clone
.
nodes
,
function
(
n
){
return
n
!=
cloned_node
&&
Boolean
(
n
.
locked
)
&&
Boolean
(
n
.
_dirty
)}));
if
(
this
.
height
)
res
&=
clone
.
get_grid_height
()
<=
this
.
height
;
return
res
};
GridStackEngine
.
prototype
.
can_be_placed_with_respect_to_height
=
function
(
node
){
if
(
!
this
.
height
)
return
true
;
var
clone
=
new
GridStackEngine
(
this
.
width
,
null
,
this
.
float
,
0
,
_
.
map
(
this
.
nodes
,
function
(
n
){
return
$
.
extend
({},
n
)}));
clone
.
add_node
(
node
);
return
clone
.
get_grid_height
()
<=
this
.
height
};
GridStackEngine
.
prototype
.
move_node
=
function
(
node
,
x
,
y
,
width
,
height
,
no_pack
){
if
(
typeof
x
!=
"
number
"
)
x
=
node
.
x
;
if
(
typeof
y
!=
"
number
"
)
y
=
node
.
y
;
if
(
typeof
width
!=
"
number
"
)
width
=
node
.
width
;
if
(
typeof
height
!=
"
number
"
)
height
=
node
.
height
;
if
(
typeof
node
.
max_width
!=
"
undefined
"
)
width
=
Math
.
min
(
width
,
node
.
max_width
);
if
(
typeof
node
.
max_height
!=
"
undefined
"
)
height
=
Math
.
min
(
height
,
node
.
max_height
);
if
(
typeof
node
.
min_width
!=
"
undefined
"
)
width
=
Math
.
max
(
width
,
node
.
min_width
);
if
(
typeof
node
.
min_height
!=
"
undefined
"
)
height
=
Math
.
max
(
height
,
node
.
min_height
);
if
(
node
.
x
==
x
&&
node
.
y
==
y
&&
node
.
width
==
width
&&
node
.
height
==
height
){
return
node
}
var
resizing
=
node
.
width
!=
width
;
node
.
_dirty
=
true
;
node
.
x
=
x
;
node
.
y
=
y
;
node
.
width
=
width
;
node
.
height
=
height
;
node
=
this
.
_prepare_node
(
node
,
resizing
);
this
.
_fix_collisions
(
node
);
if
(
!
no_pack
){
this
.
_pack_nodes
();
this
.
_notify
()}
return
node
};
GridStackEngine
.
prototype
.
get_grid_height
=
function
(){
return
_
.
reduce
(
this
.
nodes
,
function
(
memo
,
n
){
return
Math
.
max
(
memo
,
n
.
y
+
n
.
height
)},
0
)};
GridStackEngine
.
prototype
.
begin_update
=
function
(
node
){
_
.
each
(
this
.
nodes
,
function
(
n
){
n
.
_orig_y
=
n
.
y
});
node
.
_updating
=
true
};
GridStackEngine
.
prototype
.
end_update
=
function
(){
var
n
=
_
.
find
(
this
.
nodes
,
function
(
n
){
return
n
.
_updating
});
if
(
n
){
n
.
_updating
=
false
}};
var
GridStack
=
function
(
el
,
opts
){
var
self
=
this
,
one_column_mode
;
this
.
container
=
$
(
el
);
this
.
opts
=
_
.
defaults
(
opts
||
{},{
width
:
parseInt
(
this
.
container
.
attr
(
"
data-gs-width
"
))
||
12
,
height
:
parseInt
(
this
.
container
.
attr
(
"
data-gs-height
"
))
||
0
,
item_class
:
"
grid-stack-item
"
,
placeholder_class
:
"
grid-stack-placeholder
"
,
handle
:
"
.grid-stack-item-content
"
,
cell_height
:
60
,
vertical_margin
:
20
,
auto
:
true
,
min_width
:
768
,
"
float
"
:
false
,
_class
:
"
grid-stack-
"
+
(
Math
.
random
()
*
1
e4
).
toFixed
(
0
),
animate
:
Boolean
(
this
.
container
.
attr
(
"
data-gs-animate
"
))
||
false
});
this
.
container
.
addClass
(
this
.
opts
.
_class
);
this
.
_styles
=
Utils
.
create_stylesheet
();
this
.
_styles
.
_max
=
0
;
this
.
grid
=
new
GridStackEngine
(
this
.
opts
.
width
,
function
(
nodes
){
var
max_height
=
0
;
_
.
each
(
nodes
,
function
(
n
){
if
(
n
.
_id
==
null
){
n
.
el
.
remove
()}
else
{
n
.
el
.
attr
(
"
data-gs-x
"
,
n
.
x
).
attr
(
"
data-gs-y
"
,
n
.
y
).
attr
(
"
data-gs-width
"
,
n
.
width
).
attr
(
"
data-gs-height
"
,
n
.
height
);
max_height
=
Math
.
max
(
max_height
,
n
.
y
+
n
.
height
)}});
self
.
_update_styles
(
max_height
+
10
)},
this
.
opts
.
float
,
this
.
opts
.
height
);
if
(
this
.
opts
.
auto
){
var
elements
=
[];
this
.
container
.
find
(
"
.
"
+
this
.
opts
.
item_class
).
each
(
function
(
index
,
el
){
el
=
$
(
el
);
elements
.
push
({
el
:
el
,
i
:
parseInt
(
el
.
attr
(
"
data-gs-x
"
))
+
parseInt
(
el
.
attr
(
"
data-gs-y
"
))
*
parseInt
(
el
.
attr
(
"
data-gs-width
"
))})});
_
.
chain
(
elements
).
sortBy
(
function
(
x
){
return
x
.
i
}).
each
(
function
(
i
){
self
.
_prepare_element
(
i
.
el
)})}
this
.
set_animation
(
this
.
opts
.
animate
);
this
.
placeholder
=
$
(
'
<div class="
'
+
this
.
opts
.
placeholder_class
+
"
"
+
this
.
opts
.
item_class
+
'
"><div class="placeholder-content" /></div>
'
).
hide
();
this
.
container
.
append
(
this
.
placeholder
);
this
.
container
.
height
(
this
.
grid
.
get_grid_height
()
*
(
this
.
opts
.
cell_height
+
this
.
opts
.
vertical_margin
)
-
this
.
opts
.
vertical_margin
);
var
on_resize_handler
=
function
(){
if
(
self
.
_is_one_column_mode
()){
if
(
one_column_mode
)
return
;
one_column_mode
=
true
;
_
.
each
(
self
.
grid
.
nodes
,
function
(
node
){
if
(
!
node
.
no_move
){
node
.
el
.
draggable
(
"
disable
"
)}
if
(
!
node
.
no_resize
){
node
.
el
.
resizable
(
"
disable
"
)}})}
else
{
if
(
!
one_column_mode
)
return
;
one_column_mode
=
false
;
_
.
each
(
self
.
grid
.
nodes
,
function
(
node
){
if
(
!
node
.
no_move
){
node
.
el
.
draggable
(
"
enable
"
)}
if
(
!
node
.
no_resize
){
node
.
el
.
resizable
(
"
enable
"
)}})}};
$
(
window
).
resize
(
on_resize_handler
);
on_resize_handler
()};
GridStack
.
prototype
.
_update_styles
=
function
(
max_height
){
if
(
typeof
max_height
==
"
undefined
"
){
max_height
=
this
.
_styles
.
_max
;
this
.
_styles
.
_max
=
0
;
while
(
this
.
_styles
.
rules
.
length
){
this
.
_styles
.
removeRule
(
0
)}
this
.
_update_container_height
()}
if
(
max_height
>
this
.
_styles
.
_max
){
for
(
var
i
=
this
.
_styles
.
_max
;
i
<
max_height
;
++
i
){
var
css
;
css
=
"
.
"
+
this
.
opts
.
_class
+
"
.
"
+
this
.
opts
.
item_class
+
'
[data-gs-height="
'
+
(
i
+
1
)
+
'
"] { height:
'
+
(
this
.
opts
.
cell_height
*
(
i
+
1
)
+
this
.
opts
.
vertical_margin
*
i
)
+
"
px; }
"
;
this
.
_styles
.
insertRule
(
css
,
i
);
css
=
"
.
"
+
this
.
opts
.
_class
+
"
.
"
+
this
.
opts
.
item_class
+
'
[data-gs-y="
'
+
i
+
'
"] { top:
'
+
(
this
.
opts
.
cell_height
*
i
+
this
.
opts
.
vertical_margin
*
i
)
+
"
px; }
"
;
this
.
_styles
.
insertRule
(
css
,
i
)}
this
.
_styles
.
_max
=
max_height
}};
GridStack
.
prototype
.
_update_container_height
=
function
(){
this
.
container
.
height
(
this
.
grid
.
get_grid_height
()
*
(
this
.
opts
.
cell_height
+
this
.
opts
.
vertical_margin
)
-
this
.
opts
.
vertical_margin
)};
GridStack
.
prototype
.
_is_one_column_mode
=
function
(){
return
$
(
window
).
width
()
<=
this
.
opts
.
min_width
};
GridStack
.
prototype
.
_prepare_element
=
function
(
el
){
var
self
=
this
;
el
=
$
(
el
);
el
.
addClass
(
this
.
opts
.
item_class
);
var
node
=
self
.
grid
.
add_node
({
x
:
el
.
attr
(
"
data-gs-x
"
),
y
:
el
.
attr
(
"
data-gs-y
"
),
width
:
el
.
attr
(
"
data-gs-width
"
),
height
:
el
.
attr
(
"
data-gs-height
"
),
max_width
:
el
.
attr
(
"
data-gs-max-width
"
),
min_width
:
el
.
attr
(
"
data-gs-min-width
"
),
max_height
:
el
.
attr
(
"
data-gs-max-height
"
)
||
100
,
min_height
:
el
.
attr
(
"
data-gs-min-height
"
),
auto_position
:
Utils
.
toBool
(
el
.
attr
(
"
data-gs-auto-position
"
)),
no_resize
:
Utils
.
toBool
(
el
.
attr
(
"
data-gs-no-resize
"
)),
no_move
:
Utils
.
toBool
(
el
.
attr
(
"
data-gs-no-move
"
)),
locked
:
Utils
.
toBool
(
el
.
attr
(
"
data-gs-locked
"
)),
el
:
el
});
el
.
data
(
"
_gridstack_node
"
,
node
);
var
cell_width
,
cell_height
;
var
on_start_moving
=
function
(
event
,
ui
){
var
o
=
$
(
this
);
self
.
grid
.
clean_nodes
();
self
.
grid
.
begin_update
(
node
);
cell_width
=
Math
.
ceil
(
o
.
outerWidth
()
/
o
.
attr
(
"
data-gs-width
"
));
cell_height
=
self
.
opts
.
cell_height
+
self
.
opts
.
vertical_margin
;
self
.
placeholder
.
attr
(
"
data-gs-x
"
,
o
.
attr
(
"
data-gs-x
"
)).
attr
(
"
data-gs-y
"
,
o
.
attr
(
"
data-gs-y
"
)).
attr
(
"
data-gs-width
"
,
o
.
attr
(
"
data-gs-width
"
)).
attr
(
"
data-gs-height
"
,
o
.
attr
(
"
data-gs-height
"
)).
show
();
node
.
el
=
self
.
placeholder
};
var
on_end_moving
=
function
(
event
,
ui
){
var
o
=
$
(
this
);
node
.
el
=
o
;
self
.
placeholder
.
hide
();
o
.
attr
(
"
data-gs-x
"
,
node
.
x
).
attr
(
"
data-gs-y
"
,
node
.
y
).
attr
(
"
data-gs-width
"
,
node
.
width
).
attr
(
"
data-gs-height
"
,
node
.
height
).
removeAttr
(
"
style
"
);
self
.
_update_container_height
();
self
.
container
.
trigger
(
"
change
"
,[
self
.
grid
.
get_dirty_nodes
()]);
self
.
grid
.
end_update
();
self
.
grid
.
_sort_nodes
();
setTimeout
(
function
(){
_
.
each
(
self
.
grid
.
nodes
,
function
(
node
){
node
.
el
.
detach
();
self
.
container
.
append
(
node
.
el
)})},
self
.
opts
.
animate
?
300
:
0
)};
el
.
draggable
({
handle
:
this
.
opts
.
handle
,
scroll
:
true
,
appendTo
:
"
body
"
,
start
:
on_start_moving
,
stop
:
on_end_moving
,
drag
:
function
(
event
,
ui
){
var
x
=
Math
.
round
(
ui
.
position
.
left
/
cell_width
),
y
=
Math
.
floor
((
ui
.
position
.
top
+
cell_height
/
2
)
/
cell_height
);
if
(
!
self
.
grid
.
can_move_node
(
node
,
x
,
y
,
node
.
width
,
node
.
height
)){
return
}
self
.
grid
.
move_node
(
node
,
x
,
y
);
self
.
_update_container_height
()}}).
resizable
({
autoHide
:
true
,
handles
:
"
se
"
,
minHeight
:
this
.
opts
.
cell_height
-
10
,
minWidth
:
70
,
start
:
on_start_moving
,
stop
:
on_end_moving
,
resize
:
function
(
event
,
ui
){
var
width
=
Math
.
round
(
ui
.
size
.
width
/
cell_width
),
height
=
Math
.
round
(
ui
.
size
.
height
/
cell_height
);
if
(
!
self
.
grid
.
can_move_node
(
node
,
node
.
x
,
node
.
y
,
width
,
height
)){
return
}
self
.
grid
.
move_node
(
node
,
node
.
x
,
node
.
y
,
width
,
height
);
self
.
_update_container_height
()}});
if
(
node
.
no_move
||
this
.
_is_one_column_mode
()){
el
.
draggable
(
"
disable
"
)}
if
(
node
.
no_resize
||
this
.
_is_one_column_mode
()){
el
.
resizable
(
"
disable
"
)}
el
.
attr
(
"
data-gs-locked
"
,
node
.
locked
?
"
yes
"
:
null
)};
GridStack
.
prototype
.
set_animation
=
function
(
enable
){
if
(
enable
){
this
.
container
.
addClass
(
"
grid-stack-animate
"
)}
else
{
this
.
container
.
removeClass
(
"
grid-stack-animate
"
)}};
GridStack
.
prototype
.
add_widget
=
function
(
el
,
x
,
y
,
width
,
height
,
auto_position
){
el
=
$
(
el
);
if
(
typeof
x
!=
"
undefined
"
)
el
.
attr
(
"
data-gs-x
"
,
x
);
if
(
typeof
y
!=
"
undefined
"
)
el
.
attr
(
"
data-gs-y
"
,
y
);
if
(
typeof
width
!=
"
undefined
"
)
el
.
attr
(
"
data-gs-width
"
,
width
);
if
(
typeof
height
!=
"
undefined
"
)
el
.
attr
(
"
data-gs-height
"
,
height
);
if
(
typeof
auto_position
!=
"
undefined
"
)
el
.
attr
(
"
data-gs-auto-position
"
,
auto_position
?
"
yes
"
:
null
);
this
.
container
.
append
(
el
);
this
.
_prepare_element
(
el
);
this
.
_update_container_height
()};
GridStack
.
prototype
.
will_it_fit
=
function
(
x
,
y
,
width
,
height
,
auto_position
){
var
node
=
{
x
:
x
,
y
:
y
,
width
:
width
,
height
:
height
,
auto_position
:
auto_position
};
return
this
.
grid
.
can_be_placed_with_respect_to_height
(
node
)};
GridStack
.
prototype
.
remove_widget
=
function
(
el
){
el
=
$
(
el
);
var
node
=
el
.
data
(
"
_gridstack_node
"
);
this
.
grid
.
remove_node
(
node
);
el
.
remove
();
this
.
_update_container_height
()};
GridStack
.
prototype
.
remove_all
=
function
(){
_
.
each
(
this
.
grid
.
nodes
,
function
(
node
){
node
.
el
.
remove
()});
this
.
grid
.
nodes
=
[];
this
.
_update_container_height
()};
GridStack
.
prototype
.
resizable
=
function
(
el
,
val
){
el
=
$
(
el
);
el
.
each
(
function
(
index
,
el
){
el
=
$
(
el
);
var
node
=
el
.
data
(
"
_gridstack_node
"
);
if
(
typeof
node
==
"
undefined
"
){
return
}
node
.
no_resize
=!
(
val
||
false
);
if
(
node
.
no_resize
){
el
.
resizable
(
"
disable
"
)}
else
{
el
.
resizable
(
"
enable
"
)}});
return
this
};
GridStack
.
prototype
.
movable
=
function
(
el
,
val
){
el
=
$
(
el
);
el
.
each
(
function
(
index
,
el
){
el
=
$
(
el
);
var
node
=
el
.
data
(
"
_gridstack_node
"
);
if
(
typeof
node
==
"
undefined
"
){
return
}
node
.
no_move
=!
(
val
||
false
);
if
(
node
.
no_move
){
el
.
draggable
(
"
disable
"
)}
else
{
el
.
draggable
(
"
enable
"
)}});
return
this
};
GridStack
.
prototype
.
locked
=
function
(
el
,
val
){
el
=
$
(
el
);
el
.
each
(
function
(
index
,
el
){
el
=
$
(
el
);
var
node
=
el
.
data
(
"
_gridstack_node
"
);
if
(
typeof
node
==
"
undefined
"
){
return
}
node
.
locked
=
val
||
false
;
el
.
attr
(
"
data-gs-locked
"
,
node
.
locked
?
"
yes
"
:
null
)});
return
this
};
GridStack
.
prototype
.
_update_element
=
function
(
el
,
callback
){
el
=
$
(
el
).
first
();
var
node
=
el
.
data
(
"
_gridstack_node
"
);
if
(
typeof
node
==
"
undefined
"
){
return
}
var
self
=
this
;
self
.
grid
.
clean_nodes
();
self
.
grid
.
begin_update
(
node
);
callback
.
call
(
this
,
el
,
node
);
self
.
_update_container_height
();
self
.
container
.
trigger
(
"
change
"
,[
self
.
grid
.
get_dirty_nodes
()]);
self
.
grid
.
end_update
();
self
.
grid
.
_sort_nodes
();
_
.
each
(
self
.
grid
.
nodes
,
function
(
node
){
node
.
el
.
detach
();
self
.
container
.
append
(
node
.
el
)})};
GridStack
.
prototype
.
resize
=
function
(
el
,
width
,
height
){
this
.
_update_element
(
el
,
function
(
el
,
node
){
width
=
width
!=
null
&&
typeof
width
!=
"
undefined
"
?
width
:
node
.
width
;
height
=
height
!=
null
&&
typeof
height
!=
"
undefined
"
?
height
:
node
.
height
;
this
.
grid
.
move_node
(
node
,
node
.
x
,
node
.
y
,
width
,
height
)})};
GridStack
.
prototype
.
move
=
function
(
el
,
x
,
y
){
this
.
_update_element
(
el
,
function
(
el
,
node
){
x
=
x
!=
null
&&
typeof
x
!=
"
undefined
"
?
x
:
node
.
x
;
y
=
y
!=
null
&&
typeof
y
!=
"
undefined
"
?
y
:
node
.
y
;
this
.
grid
.
move_node
(
node
,
x
,
y
,
node
.
width
,
node
.
height
)})};
GridStack
.
prototype
.
cell_height
=
function
(
val
){
if
(
typeof
val
==
"
undefined
"
){
return
this
.
opts
.
cell_height
}
val
=
parseInt
(
val
);
if
(
val
==
this
.
opts
.
cell_height
)
return
;
this
.
opts
.
cell_height
=
val
||
this
.
opts
.
cell_height
;
this
.
_update_styles
()};
GridStack
.
prototype
.
cell_width
=
function
(){
var
o
=
this
.
container
.
find
(
"
.
"
+
this
.
opts
.
item_class
).
first
();
return
Math
.
ceil
(
o
.
outerWidth
()
/
o
.
attr
(
"
data-gs-width
"
))};
scope
.
GridStackUI
=
GridStack
;
scope
.
GridStackUI
.
Utils
=
Utils
;
$
.
fn
.
gridstack
=
function
(
opts
){
return
this
.
each
(
function
(){
if
(
!
$
(
this
).
data
(
"
gridstack
"
)){
$
(
this
).
data
(
"
gridstack
"
,
new
GridStack
(
this
,
opts
))}})}})(
window
,
_
);
\ No newline at end of file
public/themes/adminlte/vendor/gridstack/src/gridstack.css
0 → 100644
View file @
3834f156
.grid-stack
{
position
:
relative
;
}
.grid-stack-item
{
position
:
absolute
;
padding
:
0
;
}
.grid-stack-item
.grid-stack-item-content
,
.grid-stack-item
.placeholder-content
{
margin
:
0
;
position
:
absolute
;
top
:
0
;
left
:
10px
;
right
:
10px
;
bottom
:
0
;
width
:
auto
;
z-index
:
0
!important
;
overflow
:
auto
;
}
.grid-stack-placeholder
.placeholder-content
{
border
:
1px
dashed
lightgray
;
}
.grid-stack-item.ui-draggable-dragging
,
.grid-stack-item.ui-resizable-resizing
{
z-index
:
100
;
}
.grid-stack-item.ui-draggable-dragging
.grid-stack-item-content
,
.grid-stack-item.ui-resizable-resizing
.grid-stack-item-content
{
box-shadow
:
1px
4px
6px
rgba
(
0
,
0
,
0
,
0.2
);
opacity
:
0.8
;
}
.grid-stack-item
.ui-resizable-handle
{
padding
:
3px
;
margin
:
3px
0
;
cursor
:
nwse-resize
;
color
:
gray
;
position
:
absolute
;
bottom
:
0
;
right
:
15px
;
font
:
normal
normal
normal
14px
/
1
FontAwesome
;
text-rendering
:
auto
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
BasicImage
(
rotation
=
1
);
-webkit-transform
:
rotate
(
90deg
);
-ms-transform
:
rotate
(
90deg
);
transform
:
rotate
(
90deg
);
font-size
:
10px
;
}
.grid-stack-item
.ui-resizable-handle
::before
{
content
:
"\f065"
;
}
.grid-stack-item
[
data-gs-width
=
"12"
]
{
width
:
100%
}
.grid-stack-item
[
data-gs-width
=
"11"
]
{
width
:
91.66666667%
}
.grid-stack-item
[
data-gs-width
=
"10"
]
{
width
:
83.33333333%
}
.grid-stack-item
[
data-gs-width
=
"9"
]
{
width
:
75%
}
.grid-stack-item
[
data-gs-width
=
"8"
]
{
width
:
66.66666667%
}
.grid-stack-item
[
data-gs-width
=
"7"
]
{
width
:
58.33333333%
}
.grid-stack-item
[
data-gs-width
=
"6"
]
{
width
:
50%
}
.grid-stack-item
[
data-gs-width
=
"5"
]
{
width
:
41.66666667%
}
.grid-stack-item
[
data-gs-width
=
"4"
]
{
width
:
33.33333333%
}
.grid-stack-item
[
data-gs-width
=
"3"
]
{
width
:
25%
}
.grid-stack-item
[
data-gs-width
=
"2"
]
{
width
:
16.66666667%
}
.grid-stack-item
[
data-gs-width
=
"1"
]
{
width
:
8.33333333%
}
.grid-stack-item
[
data-gs-x
=
"12"
]
{
left
:
100%
}
.grid-stack-item
[
data-gs-x
=
"11"
]
{
left
:
91.66666667%
}
.grid-stack-item
[
data-gs-x
=
"10"
]
{
left
:
83.33333333%
}
.grid-stack-item
[
data-gs-x
=
"9"
]
{
left
:
75%
}
.grid-stack-item
[
data-gs-x
=
"8"
]
{
left
:
66.66666667%
}
.grid-stack-item
[
data-gs-x
=
"7"
]
{
left
:
58.33333333%
}
.grid-stack-item
[
data-gs-x
=
"6"
]
{
left
:
50%
}
.grid-stack-item
[
data-gs-x
=
"5"
]
{
left
:
41.66666667%
}
.grid-stack-item
[
data-gs-x
=
"4"
]
{
left
:
33.33333333%
}
.grid-stack-item
[
data-gs-x
=
"3"
]
{
left
:
25%
}
.grid-stack-item
[
data-gs-x
=
"2"
]
{
left
:
16.66666667%
}
.grid-stack-item
[
data-gs-x
=
"1"
]
{
left
:
8.33333333%
}
@media
(
max-width
:
768px
)
{
.grid-stack-item
{
position
:
relative
!important
;
width
:
auto
!important
;
left
:
0
!important
;
top
:
auto
!important
;
margin-bottom
:
20px
;
}
.grid-stack
{
height
:
auto
!important
;
}
}
.grid-stack.grid-stack-animate
,
.grid-stack.grid-stack-animate
.grid-stack-item
{
-webkit-transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
;
-moz-transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
;
-o-transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
;
-ms-transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
;
transition
:
left
.3s
,
top
.3s
,
height
.3s
,
width
.3s
;
}
/*Don't animate the placeholder or when dragging/resizing*/
.grid-stack.grid-stack-animate
.grid-stack-item.ui-draggable-dragging
,
.grid-stack.grid-stack-animate
.grid-stack-item.ui-resizable-resizing
,
.grid-stack.grid-stack-animate
.grid-stack-item.grid-stack-placeholder
{
-webkit-transition
:
left
.0s
,
top
.0s
,
height
.0s
,
width
.0s
;
-moz-transition
:
left
.0s
,
top
.0s
,
height
.0s
,
width
.0s
;
-o-transition
:
left
.0s
,
top
.0s
,
height
.0s
,
width
.0s
;
transition
:
left
.0s
,
top
.0s
,
height
.0s
,
width
.0s
;
}
public/themes/adminlte/vendor/gridstack/src/gridstack.js
0 → 100644
View file @
3834f156
(
function
(
scope
,
_
)
{
var
Utils
=
{
is_intercepted
:
function
(
a
,
b
)
{
return
!
(
a
.
x
+
a
.
width
<=
b
.
x
||
b
.
x
+
b
.
width
<=
a
.
x
||
a
.
y
+
a
.
height
<=
b
.
y
||
b
.
y
+
b
.
height
<=
a
.
y
);
},
sort
:
function
(
nodes
,
dir
,
width
)
{
width
=
width
||
_
.
chain
(
nodes
).
map
(
function
(
node
)
{
return
node
.
x
+
node
.
width
;
}).
max
().
value
();
dir
=
dir
!=
-
1
?
1
:
-
1
;
return
_
.
sortBy
(
nodes
,
function
(
n
)
{
return
dir
*
(
n
.
x
+
n
.
y
*
width
);
});
},
create_stylesheet
:
function
()
{
var
style
=
document
.
createElement
(
"
style
"
);
// style.setAttribute("media", "screen")
// style.setAttribute("media", "only screen and (max-width : 1024px)")
// WebKit hack :(
style
.
appendChild
(
document
.
createTextNode
(
""
));
document
.
head
.
appendChild
(
style
);
return
style
.
sheet
;
},
toBool
:
function
(
v
)
{
if
(
typeof
v
==
'
boolean
'
)
return
v
;
if
(
typeof
v
==
'
string
'
)
{
v
=
v
.
toLowerCase
();
return
!
(
v
==
''
||
v
==
'
no
'
||
v
==
'
false
'
||
v
==
'
0
'
);
}
return
Boolean
(
v
);
}
};
var
id_seq
=
0
;
var
GridStackEngine
=
function
(
width
,
onchange
,
float
,
height
,
items
)
{
this
.
width
=
width
;
this
.
float
=
float
||
false
;
this
.
height
=
height
||
0
;
this
.
nodes
=
items
||
[];
this
.
onchange
=
onchange
||
function
()
{};
};
GridStackEngine
.
prototype
.
_fix_collisions
=
function
(
node
)
{
this
.
_sort_nodes
(
-
1
);
var
nn
=
node
,
has_locked
=
Boolean
(
_
.
find
(
this
.
nodes
,
function
(
n
)
{
return
n
.
locked
}));
if
(
!
this
.
float
&&
!
has_locked
)
{
nn
=
{
x
:
0
,
y
:
node
.
y
,
width
:
this
.
width
,
height
:
node
.
height
};
}
while
(
true
)
{
var
collision_node
=
_
.
find
(
this
.
nodes
,
function
(
n
)
{
return
n
!=
node
&&
Utils
.
is_intercepted
(
n
,
nn
);
},
this
);
if
(
typeof
collision_node
==
'
undefined
'
)
{
return
;
}
this
.
move_node
(
collision_node
,
collision_node
.
x
,
node
.
y
+
node
.
height
,
collision_node
.
width
,
collision_node
.
height
,
true
);
}
};
GridStackEngine
.
prototype
.
_sort_nodes
=
function
(
dir
)
{
this
.
nodes
=
Utils
.
sort
(
this
.
nodes
,
dir
,
this
.
width
);
};
GridStackEngine
.
prototype
.
_pack_nodes
=
function
()
{
this
.
_sort_nodes
();
if
(
this
.
float
)
{
_
.
each
(
this
.
nodes
,
function
(
n
,
i
)
{
if
(
n
.
_updating
||
typeof
n
.
_orig_y
==
'
undefined
'
||
n
.
y
==
n
.
_orig_y
)
return
;
var
new_y
=
n
.
y
;
while
(
new_y
>=
n
.
_orig_y
)
{
var
collision_node
=
_
.
chain
(
this
.
nodes
)
.
find
(
function
(
bn
)
{
return
n
!=
bn
&&
Utils
.
is_intercepted
({
x
:
n
.
x
,
y
:
new_y
,
width
:
n
.
width
,
height
:
n
.
height
},
bn
);
})
.
value
();
if
(
!
collision_node
)
{
n
.
_dirty
=
true
;
n
.
y
=
new_y
;
}
--
new_y
;
}
},
this
);
}
else
{
_
.
each
(
this
.
nodes
,
function
(
n
,
i
)
{
if
(
n
.
locked
)
return
;
while
(
n
.
y
>
0
)
{
var
new_y
=
n
.
y
-
1
;
var
can_be_moved
=
i
==
0
;
if
(
i
>
0
)
{
var
collision_node
=
_
.
chain
(
this
.
nodes
)
.
first
(
i
)
.
find
(
function
(
bn
)
{
return
Utils
.
is_intercepted
({
x
:
n
.
x
,
y
:
new_y
,
width
:
n
.
width
,
height
:
n
.
height
},
bn
);
})
.
value
();
can_be_moved
=
typeof
collision_node
==
'
undefined
'
;
}
if
(
!
can_be_moved
)
{
break
;
}
n
.
_dirty
=
n
.
y
!=
new_y
;
n
.
y
=
new_y
;
}
},
this
);
}
};
GridStackEngine
.
prototype
.
_prepare_node
=
function
(
node
,
resizing
)
{
node
=
_
.
defaults
(
node
||
{},
{
width
:
1
,
height
:
1
,
x
:
0
,
y
:
0
});
node
.
x
=
parseInt
(
''
+
node
.
x
);
node
.
y
=
parseInt
(
''
+
node
.
y
);
node
.
width
=
parseInt
(
''
+
node
.
width
);
node
.
height
=
parseInt
(
''
+
node
.
height
);
node
.
auto_position
=
node
.
auto_position
||
false
;
node
.
no_resize
=
node
.
no_resize
||
false
;
node
.
no_move
=
node
.
no_move
||
false
;
if
(
node
.
width
>
this
.
width
)
{
node
.
width
=
this
.
width
;
}
else
if
(
node
.
width
<
1
)
{
node
.
width
=
1
;
}
if
(
node
.
height
<
1
)
{
node
.
height
=
1
;
}
if
(
node
.
x
<
0
)
{
node
.
x
=
0
;
}
if
(
node
.
x
+
node
.
width
>
this
.
width
)
{
if
(
resizing
)
{
node
.
width
=
this
.
width
-
node
.
x
;
}
else
{
node
.
x
=
this
.
width
-
node
.
width
;
}
}
if
(
node
.
y
<
0
)
{
node
.
y
=
0
;
}
return
node
;
};
GridStackEngine
.
prototype
.
_notify
=
function
()
{
var
deleted_nodes
=
Array
.
prototype
.
slice
.
call
(
arguments
,
1
).
concat
(
this
.
get_dirty_nodes
());
deleted_nodes
=
deleted_nodes
.
concat
(
this
.
get_dirty_nodes
());
this
.
onchange
(
deleted_nodes
);
};
GridStackEngine
.
prototype
.
clean_nodes
=
function
()
{
_
.
each
(
this
.
nodes
,
function
(
n
)
{
n
.
_dirty
=
false
});
};
GridStackEngine
.
prototype
.
get_dirty_nodes
=
function
()
{
return
_
.
filter
(
this
.
nodes
,
function
(
n
)
{
return
n
.
_dirty
;
});
};
GridStackEngine
.
prototype
.
add_node
=
function
(
node
)
{
node
=
this
.
_prepare_node
(
node
);
if
(
typeof
node
.
max_width
!=
'
undefined
'
)
node
.
width
=
Math
.
min
(
node
.
width
,
node
.
max_width
);
if
(
typeof
node
.
max_height
!=
'
undefined
'
)
node
.
height
=
Math
.
min
(
node
.
height
,
node
.
max_height
);
if
(
typeof
node
.
min_width
!=
'
undefined
'
)
node
.
width
=
Math
.
max
(
node
.
width
,
node
.
min_width
);
if
(
typeof
node
.
min_height
!=
'
undefined
'
)
node
.
height
=
Math
.
max
(
node
.
height
,
node
.
min_height
);
node
.
_id
=
++
id_seq
;
node
.
_dirty
=
true
;
if
(
node
.
auto_position
)
{
this
.
_sort_nodes
();
for
(
var
i
=
0
;
;
++
i
)
{
var
x
=
i
%
this
.
width
,
y
=
Math
.
floor
(
i
/
this
.
width
);
if
(
x
+
node
.
width
>
this
.
width
)
{
continue
;
}
if
(
!
_
.
find
(
this
.
nodes
,
function
(
n
)
{
return
Utils
.
is_intercepted
({
x
:
x
,
y
:
y
,
width
:
node
.
width
,
height
:
node
.
height
},
n
);
}))
{
node
.
x
=
x
;
node
.
y
=
y
;
break
;
}
}
}
this
.
nodes
.
push
(
node
);
this
.
_fix_collisions
(
node
);
this
.
_pack_nodes
();
this
.
_notify
();
return
node
;
};
GridStackEngine
.
prototype
.
remove_node
=
function
(
node
)
{
node
.
_id
=
null
;
this
.
nodes
=
_
.
without
(
this
.
nodes
,
node
);
this
.
_pack_nodes
();
this
.
_notify
(
node
);
};
GridStackEngine
.
prototype
.
can_move_node
=
function
(
node
,
x
,
y
,
width
,
height
)
{
var
has_locked
=
Boolean
(
_
.
find
(
this
.
nodes
,
function
(
n
)
{
return
n
.
locked
}));
if
(
!
this
.
height
&&
!
has_locked
)
return
true
;
var
cloned_node
;
var
clone
=
new
GridStackEngine
(
this
.
width
,
null
,
this
.
float
,
0
,
_
.
map
(
this
.
nodes
,
function
(
n
)
{
if
(
n
==
node
)
{
cloned_node
=
$
.
extend
({},
n
);
return
cloned_node
;
}
return
$
.
extend
({},
n
)
}));
clone
.
move_node
(
cloned_node
,
x
,
y
,
width
,
height
);
var
res
=
true
;
if
(
has_locked
)
res
&=
!
Boolean
(
_
.
find
(
clone
.
nodes
,
function
(
n
)
{
return
n
!=
cloned_node
&&
Boolean
(
n
.
locked
)
&&
Boolean
(
n
.
_dirty
);
}));
if
(
this
.
height
)
res
&=
clone
.
get_grid_height
()
<=
this
.
height
;
return
res
;
};
GridStackEngine
.
prototype
.
can_be_placed_with_respect_to_height
=
function
(
node
)
{
if
(
!
this
.
height
)
return
true
;
var
clone
=
new
GridStackEngine
(
this
.
width
,
null
,
this
.
float
,
0
,
_
.
map
(
this
.
nodes
,
function
(
n
)
{
return
$
.
extend
({},
n
)
}));
clone
.
add_node
(
node
);
return
clone
.
get_grid_height
()
<=
this
.
height
;
};
GridStackEngine
.
prototype
.
move_node
=
function
(
node
,
x
,
y
,
width
,
height
,
no_pack
)
{
if
(
typeof
x
!=
'
number
'
)
x
=
node
.
x
;
if
(
typeof
y
!=
'
number
'
)
y
=
node
.
y
;
if
(
typeof
width
!=
'
number
'
)
width
=
node
.
width
;
if
(
typeof
height
!=
'
number
'
)
height
=
node
.
height
;
if
(
typeof
node
.
max_width
!=
'
undefined
'
)
width
=
Math
.
min
(
width
,
node
.
max_width
);
if
(
typeof
node
.
max_height
!=
'
undefined
'
)
height
=
Math
.
min
(
height
,
node
.
max_height
);
if
(
typeof
node
.
min_width
!=
'
undefined
'
)
width
=
Math
.
max
(
width
,
node
.
min_width
);
if
(
typeof
node
.
min_height
!=
'
undefined
'
)
height
=
Math
.
max
(
height
,
node
.
min_height
);
if
(
node
.
x
==
x
&&
node
.
y
==
y
&&
node
.
width
==
width
&&
node
.
height
==
height
)
{
return
node
;
}
var
resizing
=
node
.
width
!=
width
;
node
.
_dirty
=
true
;
node
.
x
=
x
;
node
.
y
=
y
;
node
.
width
=
width
;
node
.
height
=
height
;
node
=
this
.
_prepare_node
(
node
,
resizing
);
this
.
_fix_collisions
(
node
);
if
(
!
no_pack
)
{
this
.
_pack_nodes
();
this
.
_notify
();
}
return
node
;
};
GridStackEngine
.
prototype
.
get_grid_height
=
function
()
{
return
_
.
reduce
(
this
.
nodes
,
function
(
memo
,
n
)
{
return
Math
.
max
(
memo
,
n
.
y
+
n
.
height
);
},
0
);
};
GridStackEngine
.
prototype
.
begin_update
=
function
(
node
)
{
_
.
each
(
this
.
nodes
,
function
(
n
)
{
n
.
_orig_y
=
n
.
y
;
});
node
.
_updating
=
true
;
};
GridStackEngine
.
prototype
.
end_update
=
function
()
{
var
n
=
_
.
find
(
this
.
nodes
,
function
(
n
)
{
return
n
.
_updating
;
});
if
(
n
)
{
n
.
_updating
=
false
;
}
};
var
GridStack
=
function
(
el
,
opts
)
{
var
self
=
this
,
one_column_mode
;
this
.
container
=
$
(
el
);
this
.
opts
=
_
.
defaults
(
opts
||
{},
{
width
:
parseInt
(
this
.
container
.
attr
(
'
data-gs-width
'
))
||
12
,
height
:
parseInt
(
this
.
container
.
attr
(
'
data-gs-height
'
))
||
0
,
item_class
:
'
grid-stack-item
'
,
placeholder_class
:
'
grid-stack-placeholder
'
,
handle
:
'
.grid-stack-item-content
'
,
cell_height
:
60
,
vertical_margin
:
20
,
auto
:
true
,
min_width
:
768
,
float
:
false
,
_class
:
'
grid-stack-
'
+
(
Math
.
random
()
*
10000
).
toFixed
(
0
),
animate
:
Boolean
(
this
.
container
.
attr
(
'
data-gs-animate
'
))
||
false
});
this
.
container
.
addClass
(
this
.
opts
.
_class
);
this
.
_styles
=
Utils
.
create_stylesheet
();
this
.
_styles
.
_max
=
0
;
this
.
grid
=
new
GridStackEngine
(
this
.
opts
.
width
,
function
(
nodes
)
{
var
max_height
=
0
;
_
.
each
(
nodes
,
function
(
n
)
{
if
(
n
.
_id
==
null
)
{
n
.
el
.
remove
();
}
else
{
n
.
el
.
attr
(
'
data-gs-x
'
,
n
.
x
)
.
attr
(
'
data-gs-y
'
,
n
.
y
)
.
attr
(
'
data-gs-width
'
,
n
.
width
)
.
attr
(
'
data-gs-height
'
,
n
.
height
);
max_height
=
Math
.
max
(
max_height
,
n
.
y
+
n
.
height
);
}
});
self
.
_update_styles
(
max_height
+
10
);
},
this
.
opts
.
float
,
this
.
opts
.
height
);
if
(
this
.
opts
.
auto
)
{
var
elements
=
[];
this
.
container
.
find
(
'
.
'
+
this
.
opts
.
item_class
).
each
(
function
(
index
,
el
)
{
el
=
$
(
el
);
elements
.
push
({
el
:
el
,
i
:
parseInt
(
el
.
attr
(
'
data-gs-x
'
))
+
parseInt
(
el
.
attr
(
'
data-gs-y
'
))
*
parseInt
(
el
.
attr
(
'
data-gs-width
'
))
});
});
_
.
chain
(
elements
).
sortBy
(
function
(
x
)
{
return
x
.
i
;
}).
each
(
function
(
i
)
{
self
.
_prepare_element
(
i
.
el
);
});
}
this
.
set_animation
(
this
.
opts
.
animate
);
this
.
placeholder
=
$
(
'
<div class="
'
+
this
.
opts
.
placeholder_class
+
'
'
+
this
.
opts
.
item_class
+
'
"><div class="placeholder-content" /></div>
'
).
hide
();
this
.
container
.
append
(
this
.
placeholder
);
this
.
container
.
height
((
this
.
grid
.
get_grid_height
())
*
(
this
.
opts
.
cell_height
+
this
.
opts
.
vertical_margin
)
-
this
.
opts
.
vertical_margin
);
var
on_resize_handler
=
function
()
{
if
(
self
.
_is_one_column_mode
())
{
if
(
one_column_mode
)
return
;
one_column_mode
=
true
;
_
.
each
(
self
.
grid
.
nodes
,
function
(
node
)
{
if
(
!
node
.
no_move
)
{
node
.
el
.
draggable
(
'
disable
'
);
}
if
(
!
node
.
no_resize
)
{
node
.
el
.
resizable
(
'
disable
'
);
}
});
}
else
{
if
(
!
one_column_mode
)
return
;
one_column_mode
=
false
;
_
.
each
(
self
.
grid
.
nodes
,
function
(
node
)
{
if
(
!
node
.
no_move
)
{
node
.
el
.
draggable
(
'
enable
'
);
}
if
(
!
node
.
no_resize
)
{
node
.
el
.
resizable
(
'
enable
'
);
}
});
}
};
$
(
window
).
resize
(
on_resize_handler
);
on_resize_handler
();
};
GridStack
.
prototype
.
_update_styles
=
function
(
max_height
)
{
if
(
typeof
max_height
==
'
undefined
'
)
{
max_height
=
this
.
_styles
.
_max
;
this
.
_styles
.
_max
=
0
;
while
(
this
.
_styles
.
rules
.
length
)
{
this
.
_styles
.
removeRule
(
0
);
}
this
.
_update_container_height
();
}
if
(
max_height
>
this
.
_styles
.
_max
)
{
for
(
var
i
=
this
.
_styles
.
_max
;
i
<
max_height
;
++
i
)
{
var
css
;
css
=
'
.
'
+
this
.
opts
.
_class
+
'
.
'
+
this
.
opts
.
item_class
+
'
[data-gs-height="
'
+
(
i
+
1
)
+
'
"] { height:
'
+
(
this
.
opts
.
cell_height
*
(
i
+
1
)
+
this
.
opts
.
vertical_margin
*
i
)
+
'
px; }
'
;
this
.
_styles
.
insertRule
(
css
,
i
);
css
=
'
.
'
+
this
.
opts
.
_class
+
'
.
'
+
this
.
opts
.
item_class
+
'
[data-gs-y="
'
+
(
i
)
+
'
"] { top:
'
+
(
this
.
opts
.
cell_height
*
i
+
this
.
opts
.
vertical_margin
*
i
)
+
'
px; }
'
;
this
.
_styles
.
insertRule
(
css
,
i
);
}
this
.
_styles
.
_max
=
max_height
;
}
};
GridStack
.
prototype
.
_update_container_height
=
function
()
{
this
.
container
.
height
(
this
.
grid
.
get_grid_height
()
*
(
this
.
opts
.
cell_height
+
this
.
opts
.
vertical_margin
)
-
this
.
opts
.
vertical_margin
);
};
GridStack
.
prototype
.
_is_one_column_mode
=
function
()
{
return
$
(
window
).
width
()
<=
this
.
opts
.
min_width
;
};
GridStack
.
prototype
.
_prepare_element
=
function
(
el
)
{
var
self
=
this
;
el
=
$
(
el
);
el
.
addClass
(
this
.
opts
.
item_class
);
var
node
=
self
.
grid
.
add_node
({
x
:
el
.
attr
(
'
data-gs-x
'
),
y
:
el
.
attr
(
'
data-gs-y
'
),
width
:
el
.
attr
(
'
data-gs-width
'
),
height
:
el
.
attr
(
'
data-gs-height
'
),
max_width
:
el
.
attr
(
'
data-gs-max-width
'
),
min_width
:
el
.
attr
(
'
data-gs-min-width
'
),
max_height
:
el
.
attr
(
'
data-gs-max-height
'
)
||
100
,
min_height
:
el
.
attr
(
'
data-gs-min-height
'
),
auto_position
:
Utils
.
toBool
(
el
.
attr
(
'
data-gs-auto-position
'
)),
no_resize
:
Utils
.
toBool
(
el
.
attr
(
'
data-gs-no-resize
'
)),
no_move
:
Utils
.
toBool
(
el
.
attr
(
'
data-gs-no-move
'
)),
locked
:
Utils
.
toBool
(
el
.
attr
(
'
data-gs-locked
'
)),
el
:
el
});
el
.
data
(
'
_gridstack_node
'
,
node
);
var
cell_width
,
cell_height
;
var
on_start_moving
=
function
(
event
,
ui
)
{
var
o
=
$
(
this
);
self
.
grid
.
clean_nodes
();
self
.
grid
.
begin_update
(
node
);
cell_width
=
Math
.
ceil
(
o
.
outerWidth
()
/
o
.
attr
(
'
data-gs-width
'
));
cell_height
=
self
.
opts
.
cell_height
+
self
.
opts
.
vertical_margin
;
self
.
placeholder
.
attr
(
'
data-gs-x
'
,
o
.
attr
(
'
data-gs-x
'
))
.
attr
(
'
data-gs-y
'
,
o
.
attr
(
'
data-gs-y
'
))
.
attr
(
'
data-gs-width
'
,
o
.
attr
(
'
data-gs-width
'
))
.
attr
(
'
data-gs-height
'
,
o
.
attr
(
'
data-gs-height
'
))
.
show
();
node
.
el
=
self
.
placeholder
;
};
var
on_end_moving
=
function
(
event
,
ui
)
{
var
o
=
$
(
this
);
node
.
el
=
o
;
self
.
placeholder
.
hide
();
o
.
attr
(
'
data-gs-x
'
,
node
.
x
)
.
attr
(
'
data-gs-y
'
,
node
.
y
)
.
attr
(
'
data-gs-width
'
,
node
.
width
)
.
attr
(
'
data-gs-height
'
,
node
.
height
)
.
removeAttr
(
'
style
'
);
self
.
_update_container_height
();
self
.
container
.
trigger
(
'
change
'
,
[
self
.
grid
.
get_dirty_nodes
()]);
self
.
grid
.
end_update
();
self
.
grid
.
_sort_nodes
();
setTimeout
(
function
()
{
//if animating, delay detaching & reattaching all elements until animation finishes
_
.
each
(
self
.
grid
.
nodes
,
function
(
node
)
{
node
.
el
.
detach
();
self
.
container
.
append
(
node
.
el
);
});
},
(
self
.
opts
.
animate
?
300
:
0
));
};
el
.
draggable
({
handle
:
this
.
opts
.
handle
,
scroll
:
true
,
appendTo
:
'
body
'
,
start
:
on_start_moving
,
stop
:
on_end_moving
,
drag
:
function
(
event
,
ui
)
{
var
x
=
Math
.
round
(
ui
.
position
.
left
/
cell_width
),
y
=
Math
.
floor
((
ui
.
position
.
top
+
cell_height
/
2
)
/
cell_height
);
if
(
!
self
.
grid
.
can_move_node
(
node
,
x
,
y
,
node
.
width
,
node
.
height
))
{
return
;
}
self
.
grid
.
move_node
(
node
,
x
,
y
);
self
.
_update_container_height
();
}
}).
resizable
({
autoHide
:
true
,
handles
:
'
se
'
,
minHeight
:
this
.
opts
.
cell_height
-
10
,
minWidth
:
70
,
start
:
on_start_moving
,
stop
:
on_end_moving
,
resize
:
function
(
event
,
ui
)
{
var
width
=
Math
.
round
(
ui
.
size
.
width
/
cell_width
),
height
=
Math
.
round
(
ui
.
size
.
height
/
cell_height
);
if
(
!
self
.
grid
.
can_move_node
(
node
,
node
.
x
,
node
.
y
,
width
,
height
))
{
return
;
}
self
.
grid
.
move_node
(
node
,
node
.
x
,
node
.
y
,
width
,
height
);
self
.
_update_container_height
();
}
});
if
(
node
.
no_move
||
this
.
_is_one_column_mode
())
{
el
.
draggable
(
'
disable
'
);
}
if
(
node
.
no_resize
||
this
.
_is_one_column_mode
())
{
el
.
resizable
(
'
disable
'
);
}
el
.
attr
(
'
data-gs-locked
'
,
node
.
locked
?
'
yes
'
:
null
);
};
GridStack
.
prototype
.
set_animation
=
function
(
enable
)
{
if
(
enable
)
{
this
.
container
.
addClass
(
'
grid-stack-animate
'
);
}
else
{
this
.
container
.
removeClass
(
'
grid-stack-animate
'
);
}
};
GridStack
.
prototype
.
add_widget
=
function
(
el
,
x
,
y
,
width
,
height
,
auto_position
)
{
el
=
$
(
el
);
if
(
typeof
x
!=
'
undefined
'
)
el
.
attr
(
'
data-gs-x
'
,
x
);
if
(
typeof
y
!=
'
undefined
'
)
el
.
attr
(
'
data-gs-y
'
,
y
);
if
(
typeof
width
!=
'
undefined
'
)
el
.
attr
(
'
data-gs-width
'
,
width
);
if
(
typeof
height
!=
'
undefined
'
)
el
.
attr
(
'
data-gs-height
'
,
height
);
if
(
typeof
auto_position
!=
'
undefined
'
)
el
.
attr
(
'
data-gs-auto-position
'
,
auto_position
?
'
yes
'
:
null
);
this
.
container
.
append
(
el
);
this
.
_prepare_element
(
el
);
this
.
_update_container_height
();
};
GridStack
.
prototype
.
will_it_fit
=
function
(
x
,
y
,
width
,
height
,
auto_position
)
{
var
node
=
{
x
:
x
,
y
:
y
,
width
:
width
,
height
:
height
,
auto_position
:
auto_position
};
return
this
.
grid
.
can_be_placed_with_respect_to_height
(
node
);
};
GridStack
.
prototype
.
remove_widget
=
function
(
el
)
{
el
=
$
(
el
);
var
node
=
el
.
data
(
'
_gridstack_node
'
);
this
.
grid
.
remove_node
(
node
);
el
.
remove
();
this
.
_update_container_height
();
};
GridStack
.
prototype
.
remove_all
=
function
()
{
_
.
each
(
this
.
grid
.
nodes
,
function
(
node
)
{
node
.
el
.
remove
();
});
this
.
grid
.
nodes
=
[];
this
.
_update_container_height
();
};
GridStack
.
prototype
.
resizable
=
function
(
el
,
val
)
{
el
=
$
(
el
);
el
.
each
(
function
(
index
,
el
)
{
el
=
$
(
el
);
var
node
=
el
.
data
(
'
_gridstack_node
'
);
if
(
typeof
node
==
'
undefined
'
)
{
return
;
}
node
.
no_resize
=
!
(
val
||
false
);
if
(
node
.
no_resize
)
{
el
.
resizable
(
'
disable
'
);
}
else
{
el
.
resizable
(
'
enable
'
);
}
});
return
this
;
};
GridStack
.
prototype
.
movable
=
function
(
el
,
val
)
{
el
=
$
(
el
);
el
.
each
(
function
(
index
,
el
)
{
el
=
$
(
el
);
var
node
=
el
.
data
(
'
_gridstack_node
'
);
if
(
typeof
node
==
'
undefined
'
)
{
return
;
}
node
.
no_move
=
!
(
val
||
false
);
if
(
node
.
no_move
)
{
el
.
draggable
(
'
disable
'
);
}
else
{
el
.
draggable
(
'
enable
'
);
}
});
return
this
;
};
GridStack
.
prototype
.
locked
=
function
(
el
,
val
)
{
el
=
$
(
el
);
el
.
each
(
function
(
index
,
el
)
{
el
=
$
(
el
);
var
node
=
el
.
data
(
'
_gridstack_node
'
);
if
(
typeof
node
==
'
undefined
'
)
{
return
;
}
node
.
locked
=
(
val
||
false
);
el
.
attr
(
'
data-gs-locked
'
,
node
.
locked
?
'
yes
'
:
null
);
});
return
this
;
};
GridStack
.
prototype
.
_update_element
=
function
(
el
,
callback
)
{
el
=
$
(
el
).
first
();
var
node
=
el
.
data
(
'
_gridstack_node
'
);
if
(
typeof
node
==
'
undefined
'
)
{
return
;
}
var
self
=
this
;
self
.
grid
.
clean_nodes
();
self
.
grid
.
begin_update
(
node
);
callback
.
call
(
this
,
el
,
node
);
self
.
_update_container_height
();
self
.
container
.
trigger
(
'
change
'
,
[
self
.
grid
.
get_dirty_nodes
()]);
self
.
grid
.
end_update
();
self
.
grid
.
_sort_nodes
();
_
.
each
(
self
.
grid
.
nodes
,
function
(
node
)
{
node
.
el
.
detach
();
self
.
container
.
append
(
node
.
el
);
});
};
GridStack
.
prototype
.
resize
=
function
(
el
,
width
,
height
)
{
this
.
_update_element
(
el
,
function
(
el
,
node
)
{
width
=
(
width
!=
null
&&
typeof
width
!=
'
undefined
'
)
?
width
:
node
.
width
;
height
=
(
height
!=
null
&&
typeof
height
!=
'
undefined
'
)
?
height
:
node
.
height
;
this
.
grid
.
move_node
(
node
,
node
.
x
,
node
.
y
,
width
,
height
);
});
};
GridStack
.
prototype
.
move
=
function
(
el
,
x
,
y
)
{
this
.
_update_element
(
el
,
function
(
el
,
node
)
{
x
=
(
x
!=
null
&&
typeof
x
!=
'
undefined
'
)
?
x
:
node
.
x
;
y
=
(
y
!=
null
&&
typeof
y
!=
'
undefined
'
)
?
y
:
node
.
y
;
this
.
grid
.
move_node
(
node
,
x
,
y
,
node
.
width
,
node
.
height
);
});
};
GridStack
.
prototype
.
cell_height
=
function
(
val
)
{
if
(
typeof
val
==
'
undefined
'
)
{
return
this
.
opts
.
cell_height
;
}
val
=
parseInt
(
val
);
if
(
val
==
this
.
opts
.
cell_height
)
return
;
this
.
opts
.
cell_height
=
val
||
this
.
opts
.
cell_height
;
this
.
_update_styles
();
};
GridStack
.
prototype
.
cell_width
=
function
()
{
var
o
=
this
.
container
.
find
(
'
.
'
+
this
.
opts
.
item_class
).
first
();
return
Math
.
ceil
(
o
.
outerWidth
()
/
o
.
attr
(
'
data-gs-width
'
));
};
scope
.
GridStackUI
=
GridStack
;
scope
.
GridStackUI
.
Utils
=
Utils
;
$
.
fn
.
gridstack
=
function
(
opts
)
{
return
this
.
each
(
function
()
{
if
(
!
$
(
this
).
data
(
'
gridstack
'
))
{
$
(
this
).
data
(
'
gridstack
'
,
new
GridStack
(
this
,
opts
));
}
});
};
})(
window
,
_
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment