mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
updated docs and dist
This commit is contained in:
2
dist/jquery.gridster.css
vendored
2
dist/jquery.gridster.css
vendored
@@ -1,4 +1,4 @@
|
||||
/*! gridster.js - v0.1.0 - 2012-07-23
|
||||
/*! gridster.js - v0.1.0 - 2012-07-24
|
||||
* https://github.com/ducksboard/gridster.js
|
||||
* Copyright (c) 2012 ducksboard; Licensed MIT, GPL */
|
||||
|
||||
|
50
dist/jquery.gridster.js
vendored
50
dist/jquery.gridster.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*! gridster.js - v0.1.0 - 2012-07-23
|
||||
/*! gridster.js - v0.1.0 - 2012-07-24
|
||||
* https://github.com/ducksboard/gridster.js
|
||||
* Copyright (c) 2012 ducksboard; Licensed MIT, GPL */
|
||||
|
||||
@@ -42,10 +42,10 @@
|
||||
var el = this.el;
|
||||
|
||||
if (el && !update) {
|
||||
this.data = {} || el.offset();
|
||||
this.data = el.offset();
|
||||
this.data.width = el.width();
|
||||
this.data.height = el.height();
|
||||
};
|
||||
}
|
||||
|
||||
if (el && update && !not_update_offsets) {
|
||||
var offset = el.offset();
|
||||
@@ -320,7 +320,7 @@
|
||||
|
||||
}(jQuery, window, document));
|
||||
|
||||
(function(window, undefined) {
|
||||
;(function(window, undefined) {
|
||||
/* Debounce and throttle functions taken from underscore.js */
|
||||
window.debounce = function(func, wait, immediate) {
|
||||
var timeout;
|
||||
@@ -360,7 +360,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
})(window)
|
||||
})(window);
|
||||
|
||||
;(function($, window, document, undefined){
|
||||
|
||||
@@ -411,7 +411,7 @@
|
||||
this.player_min_left = 0 + this.options.offset_left;
|
||||
|
||||
this.init();
|
||||
};
|
||||
}
|
||||
|
||||
var fn = Draggable.prototype;
|
||||
|
||||
@@ -438,7 +438,7 @@
|
||||
fn.drag_handler = function(e) {
|
||||
if (e.which !== 1) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
var self = this;
|
||||
var first = true;
|
||||
@@ -464,7 +464,7 @@
|
||||
|
||||
if (self.is_dragging == true) {
|
||||
throttle(self.on_dragmove.call(self, mme), 130);
|
||||
};
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -492,7 +492,7 @@
|
||||
this.options.start.call(this.$player, e, {
|
||||
helper: this.helper ? this.$helper : this.$player
|
||||
});
|
||||
};
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
@@ -512,12 +512,12 @@
|
||||
}else if(left < this.player_min_left) {
|
||||
left = this.player_min_left;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
left: left,
|
||||
top: top
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -554,7 +554,7 @@
|
||||
'left': offset.left,
|
||||
'top': offset.top
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (this.options.stop) {
|
||||
this.options.stop.call(this.$player, e, ui);
|
||||
@@ -714,7 +714,7 @@
|
||||
this.$wrapper.find('.player-revert').removeClass('player-revert');
|
||||
this.drag_api.disable();
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -726,7 +726,7 @@
|
||||
fn.enable = function() {
|
||||
this.drag_api.enable();
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -828,7 +828,7 @@
|
||||
|
||||
if (callback) {
|
||||
callback.apply(this, el);
|
||||
};
|
||||
}
|
||||
}, this));
|
||||
};
|
||||
|
||||
@@ -897,7 +897,7 @@
|
||||
'data-sizex': wgd.size_x,
|
||||
'data-sizey': wgd.size_y
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
// attach Coord object to player data-coord attribute
|
||||
$el.data('coords', $el.coords());
|
||||
@@ -1068,7 +1068,7 @@
|
||||
var abs_offset = {
|
||||
left: ui.position.left + this.baseX,
|
||||
top: ui.position.top + this.baseY
|
||||
}
|
||||
};
|
||||
|
||||
this.colliders_data = this.collision_api.get_closest_colliders(
|
||||
abs_offset);
|
||||
@@ -1340,7 +1340,7 @@
|
||||
* Sorts an Array of grid coords objects (representing the grid coords of
|
||||
* each widget) placing first the empty cells upper left.
|
||||
*
|
||||
* @method sort_by_row_asc
|
||||
* @method sort_by_row_and_col_asc
|
||||
* @param {Array} widgets Array of grid coords objects
|
||||
* @return {Array} Returns the array sorted.
|
||||
*/
|
||||
@@ -1360,7 +1360,7 @@
|
||||
* Sorts an Array of grid coords objects by column (representing the grid
|
||||
* coords of each widget) in ascending way.
|
||||
*
|
||||
* @method sort_by_row_asc
|
||||
* @method sort_by_col_asc
|
||||
* @param {Array} widgets Array of grid coords objects
|
||||
* @return {Array} Returns the array sorted.
|
||||
*/
|
||||
@@ -1626,7 +1626,7 @@
|
||||
var right_col = (col + phgd.size_x - 1);
|
||||
if (right_col > this.cols) {
|
||||
col = col - (right_col - col);
|
||||
};
|
||||
}
|
||||
|
||||
var moved_down = this.placeholder_grid_data.row < row;
|
||||
var changed_column = this.placeholder_grid_data.col !== col;
|
||||
@@ -2525,19 +2525,19 @@
|
||||
$widgets = $widgets.add(
|
||||
this.$widgets.filter(function() {
|
||||
var tcol = $(this).attr('data-col');
|
||||
return (tcol == col || tcol > col);
|
||||
return (tcol === col || tcol > col);
|
||||
})
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
if (row) {
|
||||
$widgets = $widgets.add(
|
||||
this.$widgets.filter(function() {
|
||||
var trow = $(this).attr('data-row');
|
||||
return (trow == row || trow > row);
|
||||
return (trow === row || trow > row);
|
||||
})
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
return $widgets;
|
||||
}
|
||||
@@ -2589,7 +2589,7 @@
|
||||
// don't duplicate stylesheets for the same configuration
|
||||
if ($.inArray(serialized_opts, Gridster.generated_stylesheets) >= 0) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
Gridster.generated_stylesheets.push(serialized_opts);
|
||||
|
||||
|
2
dist/jquery.gridster.min.css
vendored
2
dist/jquery.gridster.min.css
vendored
@@ -1,3 +1,3 @@
|
||||
/*! gridster.js - v0.1.0 - 2012-07-23
|
||||
/*! gridster.js - v0.1.0 - 2012-07-24
|
||||
* https://github.com/ducksboard/gridster.js
|
||||
* Copyright (c) 2012 ducksboard; Licensed MIT, GPL */.gridster{position:relative}.gridster>*{margin:0 auto;-webkit-transition:height .4s;-moz-transition:height .4s;-o-transition:height .4s;-ms-transition:height .4s;transition:height .4s}.gridster .gs_w{z-index:2;position:absolute}.ready .gs_w:not(.preview-holder){-webkit-transition:opacity .3s,left .3s,top .3s;-moz-transition:opacity .3s,left .3s,top .3s;-o-transition:opacity .3s,left .3s,top .3s;transition:opacity .3s,left .3s,top .3s}.gridster .preview-holder{z-index:1;position:absolute;background-color:#fff;border-color:#fff;opacity:.3}.gridster .player-revert{z-index:10!important;-webkit-transition:left .3s,top .3s!important;-moz-transition:left .3s,top .3s!important;-o-transition:left .3s,top .3s!important;transition:left .3s,top .3s!important}.gridster .dragging{z-index:10!important;-webkit-transition:all 0s!important;-moz-transition:all 0s!important;-o-transition:all 0s!important;transition:all 0s!important}
|
4
dist/jquery.gridster.min.js
vendored
4
dist/jquery.gridster.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -868,14 +868,14 @@
|
||||
</li>
|
||||
|
||||
<li class="index-item method">
|
||||
<a href="#method_sort_by_row_asc">sort_by_row_asc</a>
|
||||
<a href="#method_sort_by_col_asc">sort_by_col_asc</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item method">
|
||||
<a href="#method_sort_by_row_asc">sort_by_row_asc</a>
|
||||
<a href="#method_sort_by_row_and_col_asc">sort_by_row_and_col_asc</a>
|
||||
|
||||
|
||||
|
||||
@@ -7454,113 +7454,8 @@ mapped array of positions.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="method_sort_by_row_asc" class="method item">
|
||||
<h3 class="name"><code>sort_by_row_asc</code></h3>
|
||||
|
||||
|
||||
<div class="args">
|
||||
<span class="paren">(</span><ul class="args-list inline commas">
|
||||
|
||||
<li class="arg">
|
||||
|
||||
<code>widgets</code>
|
||||
|
||||
</li>
|
||||
|
||||
</ul><span class="paren">)</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<span class="returns-inline">
|
||||
<span class="type">Array</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
|
||||
Defined in
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_jquery.gridster.js.html#l720"><code>src/jquery.gridster.js:720</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>Sorts an Array of grid coords objects (representing the grid coords of
|
||||
each widget) in ascending way.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="params">
|
||||
<h4>Parameters:</h4>
|
||||
|
||||
<ul class="params-list">
|
||||
|
||||
<li class="param">
|
||||
|
||||
<code class="param-name">widgets</code>
|
||||
<span class="type">Array</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="param-description">
|
||||
<p>Array of grid coords objects</p>
|
||||
</div>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="returns">
|
||||
<h4>Returns:</h4>
|
||||
|
||||
<div class="returns-description">
|
||||
|
||||
|
||||
<span class="type">Array</span>:
|
||||
|
||||
Returns the array sorted.
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="method_sort_by_row_asc" class="method item">
|
||||
<h3 class="name"><code>sort_by_row_asc</code></h3>
|
||||
<div id="method_sort_by_col_asc" class="method item">
|
||||
<h3 class="name"><code>sort_by_col_asc</code></h3>
|
||||
|
||||
|
||||
<div class="args">
|
||||
@@ -7664,8 +7559,8 @@ coords of each widget) in ascending way.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="method_sort_by_row_asc" class="method item">
|
||||
<h3 class="name"><code>sort_by_row_asc</code></h3>
|
||||
<div id="method_sort_by_row_and_col_asc" class="method item">
|
||||
<h3 class="name"><code>sort_by_row_and_col_asc</code></h3>
|
||||
|
||||
|
||||
<div class="args">
|
||||
@@ -7766,6 +7661,111 @@ each widget) placing first the empty cells upper left.</p>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="method_sort_by_row_asc" class="method item">
|
||||
<h3 class="name"><code>sort_by_row_asc</code></h3>
|
||||
|
||||
|
||||
<div class="args">
|
||||
<span class="paren">(</span><ul class="args-list inline commas">
|
||||
|
||||
<li class="arg">
|
||||
|
||||
<code>widgets</code>
|
||||
|
||||
</li>
|
||||
|
||||
</ul><span class="paren">)</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<span class="returns-inline">
|
||||
<span class="type">Array</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
|
||||
Defined in
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_jquery.gridster.js.html#l720"><code>src/jquery.gridster.js:720</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>Sorts an Array of grid coords objects (representing the grid coords of
|
||||
each widget) in ascending way.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="params">
|
||||
<h4>Parameters:</h4>
|
||||
|
||||
<ul class="params-list">
|
||||
|
||||
<li class="param">
|
||||
|
||||
<code class="param-name">widgets</code>
|
||||
<span class="type">Array</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="param-description">
|
||||
<p>Array of grid coords objects</p>
|
||||
</div>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="returns">
|
||||
<h4>Returns:</h4>
|
||||
|
||||
<div class="returns-description">
|
||||
|
||||
|
||||
<span class="type">Array</span>:
|
||||
|
||||
Returns the array sorted.
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@@ -704,7 +704,7 @@
|
||||
"line": 740,
|
||||
"description": "Sorts an Array of grid coords objects (representing the grid coords of\neach widget) placing first the empty cells upper left.",
|
||||
"itemtype": "method",
|
||||
"name": "sort_by_row_asc",
|
||||
"name": "sort_by_row_and_col_asc",
|
||||
"params": [
|
||||
{
|
||||
"name": "widgets",
|
||||
@@ -723,7 +723,7 @@
|
||||
"line": 760,
|
||||
"description": "Sorts an Array of grid coords objects by column (representing the grid\ncoords of each widget) in ascending way.",
|
||||
"itemtype": "method",
|
||||
"name": "sort_by_row_asc",
|
||||
"name": "sort_by_col_asc",
|
||||
"params": [
|
||||
{
|
||||
"name": "widgets",
|
||||
|
@@ -141,10 +141,10 @@
|
||||
var el = this.el;
|
||||
|
||||
if (el && !update) {
|
||||
this.data = {} || el.offset();
|
||||
this.data = el.offset();
|
||||
this.data.width = el.width();
|
||||
this.data.height = el.height();
|
||||
};
|
||||
}
|
||||
|
||||
if (el && update && !not_update_offsets) {
|
||||
var offset = el.offset();
|
||||
|
@@ -150,7 +150,7 @@
|
||||
this.player_min_left = 0 + this.options.offset_left;
|
||||
|
||||
this.init();
|
||||
};
|
||||
}
|
||||
|
||||
var fn = Draggable.prototype;
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
fn.drag_handler = function(e) {
|
||||
if (e.which !== 1) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
var self = this;
|
||||
var first = true;
|
||||
@@ -203,7 +203,7 @@
|
||||
|
||||
if (self.is_dragging == true) {
|
||||
throttle(self.on_dragmove.call(self, mme), 130);
|
||||
};
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
this.options.start.call(this.$player, e, {
|
||||
helper: this.helper ? this.$helper : this.$player
|
||||
});
|
||||
};
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
@@ -251,12 +251,12 @@
|
||||
}else if(left < this.player_min_left) {
|
||||
left = this.player_min_left;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
left: left,
|
||||
top: top
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@
|
||||
'left': offset.left,
|
||||
'top': offset.top
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (this.options.stop) {
|
||||
this.options.stop.call(this.$player, e, ui);
|
||||
|
@@ -210,7 +210,7 @@
|
||||
this.$wrapper.find('.player-revert').removeClass('player-revert');
|
||||
this.drag_api.disable();
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -222,7 +222,7 @@
|
||||
fn.enable = function() {
|
||||
this.drag_api.enable();
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -324,7 +324,7 @@
|
||||
|
||||
if (callback) {
|
||||
callback.apply(this, el);
|
||||
};
|
||||
}
|
||||
}, this));
|
||||
};
|
||||
|
||||
@@ -393,7 +393,7 @@
|
||||
'data-sizex': wgd.size_x,
|
||||
'data-sizey': wgd.size_y
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
// attach Coord object to player data-coord attribute
|
||||
$el.data('coords', $el.coords());
|
||||
@@ -564,7 +564,7 @@
|
||||
var abs_offset = {
|
||||
left: ui.position.left + this.baseX,
|
||||
top: ui.position.top + this.baseY
|
||||
}
|
||||
};
|
||||
|
||||
this.colliders_data = this.collision_api.get_closest_colliders(
|
||||
abs_offset);
|
||||
@@ -836,7 +836,7 @@
|
||||
* Sorts an Array of grid coords objects (representing the grid coords of
|
||||
* each widget) placing first the empty cells upper left.
|
||||
*
|
||||
* @method sort_by_row_asc
|
||||
* @method sort_by_row_and_col_asc
|
||||
* @param {Array} widgets Array of grid coords objects
|
||||
* @return {Array} Returns the array sorted.
|
||||
*/
|
||||
@@ -856,7 +856,7 @@
|
||||
* Sorts an Array of grid coords objects by column (representing the grid
|
||||
* coords of each widget) in ascending way.
|
||||
*
|
||||
* @method sort_by_row_asc
|
||||
* @method sort_by_col_asc
|
||||
* @param {Array} widgets Array of grid coords objects
|
||||
* @return {Array} Returns the array sorted.
|
||||
*/
|
||||
@@ -1122,7 +1122,7 @@
|
||||
var right_col = (col + phgd.size_x - 1);
|
||||
if (right_col > this.cols) {
|
||||
col = col - (right_col - col);
|
||||
};
|
||||
}
|
||||
|
||||
var moved_down = this.placeholder_grid_data.row < row;
|
||||
var changed_column = this.placeholder_grid_data.col !== col;
|
||||
@@ -2021,19 +2021,19 @@
|
||||
$widgets = $widgets.add(
|
||||
this.$widgets.filter(function() {
|
||||
var tcol = $(this).attr('data-col');
|
||||
return (tcol == col || tcol > col);
|
||||
return (tcol === col || tcol > col);
|
||||
})
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
if (row) {
|
||||
$widgets = $widgets.add(
|
||||
this.$widgets.filter(function() {
|
||||
var trow = $(this).attr('data-row');
|
||||
return (trow == row || trow > row);
|
||||
return (trow === row || trow > row);
|
||||
})
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
return $widgets;
|
||||
}
|
||||
@@ -2085,7 +2085,7 @@
|
||||
// don't duplicate stylesheets for the same configuration
|
||||
if ($.inArray(serialized_opts, Gridster.generated_stylesheets) >= 0) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
Gridster.generated_stylesheets.push(serialized_opts);
|
||||
|
||||
|
Reference in New Issue
Block a user