Dia antes primera install
This commit is contained in:
21
node_modules/gridstack/LICENSE
generated
vendored
Normal file
21
node_modules/gridstack/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2020 Alain Dumesny, Dylan Weiss, 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.
|
||||
299
node_modules/gridstack/README.md
generated
vendored
Normal file
299
node_modules/gridstack/README.md
generated
vendored
Normal file
@@ -0,0 +1,299 @@
|
||||
gridstack.js
|
||||
============
|
||||
|
||||
[](https://travis-ci.org/gridstack/gridstack.js)
|
||||
[](https://coveralls.io/github/gridstack/gridstack.js?branch=develop)
|
||||
[](https://david-dm.org/gridstack/gridstack.js)
|
||||
[](https://david-dm.org/gridstack/gridstack.js#info=devDependencies)
|
||||
|
||||
Mobile-friendly Javascript library for dashboard layout and creation. Making a drag-and-drop, multi-column dashboard has never been easier. Allows you to build draggable, responsive bootstrap v3-friendly layouts. It also has multiple bindings and works great with [React](https://reactjs.org/), [Angular](https://angular.io/), [Knockout.js](http://knockoutjs.com), [Ember](https://www.emberjs.com/) and others, and comes with a Typescript definition out of the box.
|
||||
|
||||
Inspired by no-longer maintained gridster.js, built with love.
|
||||
|
||||
Please visit http://gridstackjs.com and [these demos](http://gridstackjs.com/demo/).
|
||||
|
||||
Join us on Slack: https://gridstackjs.troolee.com
|
||||
|
||||
[](https://gridstackjs.troolee.com)
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
|
||||
|
||||
- [Demo and examples](#demo-and-examples)
|
||||
- [Usage](#usage)
|
||||
- [Install](#install)
|
||||
- [Include](#include)
|
||||
- [Basic usage](#basic-usage)
|
||||
- [Requirements](#requirements)
|
||||
- [API Documentation](#api-documentation)
|
||||
- [Extend Library](#extend-library)
|
||||
- [Touch devices support](#touch-devices-support)
|
||||
- [gridstack.js for specific frameworks](#gridstackjs-for-specific-frameworks)
|
||||
- [Change grid columns](#change-grid-columns)
|
||||
- [Custom columns CSS](#custom-columns-css)
|
||||
- [Override resizable/draggable options](#override-resizabledraggable-options)
|
||||
- [Migrating to v0.3.0](#migrating-to-v030)
|
||||
- [Changes](#changes)
|
||||
- [The Team](#the-team)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
|
||||
Demo and examples
|
||||
====
|
||||
|
||||
Please visit http://gridstackjs.com and [these demos](http://gridstackjs.com/demo/).
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
## Install
|
||||
|
||||
* Using yarn / npm:
|
||||
|
||||
[](https://www.npmjs.com/package/gridstack)
|
||||
|
||||
```bash
|
||||
$ yarn install gridstack
|
||||
```
|
||||
|
||||
## Include
|
||||
|
||||
* local:
|
||||
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="gridstack.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
||||
<script src="gridstack.all.js"></script>
|
||||
```
|
||||
|
||||
* Using CDN (minimized):
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@0.6.4/dist/gridstack.min.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/gridstack@0.6.4/dist/gridstack.all.js"></script>
|
||||
```
|
||||
|
||||
* Using CDN (debug):
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@0.6.4/dist/gridstack.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/gridstack@0.6.4/dist/gridstack.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/gridstack@0.6.4/dist/jquery-ui.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/gridstack@0.6.4/dist/gridstack.jQueryUI.js"></script>
|
||||
```
|
||||
|
||||
## Basic usage
|
||||
|
||||
```html
|
||||
<div class="grid-stack">
|
||||
<div class="grid-stack-item">
|
||||
<div class="grid-stack-item-content">Item 1</div>
|
||||
</div>
|
||||
<div class="grid-stack-item" data-gs-width="2">
|
||||
<div class="grid-stack-item-content">Item 2 wider</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('.grid-stack').gridstack();
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
see [jsfiddle sample](https://jsfiddle.net/adumesny/jqhkry7g) as running example too.
|
||||
|
||||
## Requirements
|
||||
|
||||
* [jQuery](http://jquery.com) (>= 1.8)
|
||||
* `Array.prototype.find`, and `Number.isNaN()` for IE and older browsers.
|
||||
* Note: as of v0.5.4 We supply a separate `gridstack-poly.js` for that
|
||||
(part of `gridstack.all.js`) or you can look at other pollyfills
|
||||
([core.js](https://github.com/zloirock/core-js#ecmascript-6-array) and [mozilla.org](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)).
|
||||
|
||||
Using gridstack.js with jQuery UI
|
||||
|
||||
* [jQuery UI](http://jqueryui.com) (>= 1.12.0). Minimum required components: Draggable, Droppable, Resizable (Widget, Mouse, core).
|
||||
* Note: as of v0.5.4 we include this subset as `jquery-ui.js` (and min.js) which is part of `gridstack.all.js`. If you wish to bring your own lib, include the individual gridstack parts instead of all.js
|
||||
* (Optional) [jquery-ui-touch-punch](https://github.com/furf/jquery-ui-touch-punch) for touch-based devices support
|
||||
|
||||
## API Documentation
|
||||
|
||||
Documentation can be found [here](https://github.com/gridstack/gridstack.js/tree/develop/doc).
|
||||
|
||||
|
||||
## Extend Library
|
||||
|
||||
You can easily extend or patch gridstack with code like this:
|
||||
|
||||
```javascript
|
||||
$(function () {
|
||||
// extend gridstack with our own custom method
|
||||
window.GridStackUI.prototype.printCount = function() {
|
||||
console.log('grid has ' + this.grid.nodes.length + ' items');
|
||||
};
|
||||
|
||||
$('.grid-stack').gridstack();
|
||||
|
||||
// you can now call on any grid this...
|
||||
$('.grid-stack').data('gridstack').printCount();
|
||||
});
|
||||
```
|
||||
|
||||
## Touch devices support
|
||||
|
||||
Please use [jQuery UI Touch Punch](https://github.com/furf/jquery-ui-touch-punch) to make jQuery UI Draggable/Resizable
|
||||
working on touch-based devices.
|
||||
|
||||
```html
|
||||
<script src="core-js/client/shim.min.js"></script>
|
||||
<script src="jquery.min.js"></script>
|
||||
<script src="jquery-ui.min.js"></script>
|
||||
<script src="jquery.ui.touch-punch.min.js"></script>
|
||||
|
||||
<script src="gridstack.js"></script>
|
||||
```
|
||||
|
||||
Also `alwaysShowResizeHandle` option may be useful:
|
||||
|
||||
```javascript
|
||||
$(function () {
|
||||
var options = {
|
||||
alwaysShowResizeHandle: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
|
||||
};
|
||||
$('.grid-stack').gridstack(options);
|
||||
});
|
||||
```
|
||||
|
||||
If you're still experiencing issues on touch devices please check [#444](https://github.com/gridstack/gridstack.js/issues/444)
|
||||
|
||||
|
||||
## gridstack.js for specific frameworks
|
||||
|
||||
search for ['gridstack' under NPM](https://www.npmjs.com/search?q=gridstack&ranking=popularity) for latest, more to come...
|
||||
|
||||
- ember: [gridstack-ember](https://github.com/yahoo/ember-gridstack)
|
||||
- AngularJS: [gridstack-angular](https://github.com/kdietrich/gridstack-angular)
|
||||
- Angular8: [lb-gridstack](https://github.com/pfms84/lb-gridstack)
|
||||
- Rails: [gridstack-js-rails](https://github.com/randoum/gridstack-js-rails)
|
||||
- React: [react-gridstack](https://github.com/pitrho/react-gridstack)
|
||||
|
||||
## Change grid columns
|
||||
|
||||
GridStack makes it very easy if you need [1-12] columns out of the box (default is 12), but you always need **2 things** if you need to customize this:
|
||||
|
||||
1) Change the `column` grid option when creating a grid to your number N
|
||||
```js
|
||||
$('.grid-stack').gridstack( {column: N} );
|
||||
```
|
||||
|
||||
2) include `gridstack-extra.css` if **N < 12** (else custom CSS - see next). Without these, things will not render/work correctly.
|
||||
```html
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@0.6.4/dist/gridstack-extra.css"/>
|
||||
|
||||
<div class="grid-stack grid-stack-N">...</div>
|
||||
```
|
||||
|
||||
Note: we added `grid-stack-N` class and `gridstack-extra.css` which defines CSS for grids with custom [1-12] columns. Anything more and you'll need to generate the SASS/CSS yourself (see next).
|
||||
|
||||
See example: [2 grids demo](http://gridstack.github.io/gridstack.js/demo/two.html) with 6 columns
|
||||
|
||||
## Custom columns CSS
|
||||
|
||||
If you need > 12 columns or want to generate the CSS manually you will need to generate CSS rules for `.grid-stack-item[data-gs-width="X"]` and `.grid-stack-item[data-gs-x="X"]`.
|
||||
|
||||
For instance for 3-column grid you need to rewrite CSS to be:
|
||||
|
||||
```css
|
||||
.grid-stack-item[data-gs-width="3"] { width: 100% }
|
||||
.grid-stack-item[data-gs-width="2"] { width: 66.66666667% }
|
||||
.grid-stack-item[data-gs-width="1"] { width: 33.33333333% }
|
||||
|
||||
.grid-stack-item[data-gs-x="2"] { left: 66.66666667% }
|
||||
.grid-stack-item[data-gs-x="1"] { left: 33.33333333% }
|
||||
```
|
||||
|
||||
For 4-column grid it should be:
|
||||
|
||||
```css
|
||||
.grid-stack-item[data-gs-width="4"] { width: 100% }
|
||||
.grid-stack-item[data-gs-width="3"] { width: 75% }
|
||||
.grid-stack-item[data-gs-width="2"] { width: 50% }
|
||||
.grid-stack-item[data-gs-width="1"] { width: 25% }
|
||||
|
||||
.grid-stack-item[data-gs-x="3"] { left: 75% }
|
||||
.grid-stack-item[data-gs-x="2"] { left: 50% }
|
||||
.grid-stack-item[data-gs-x="1"] { left: 25% }
|
||||
```
|
||||
|
||||
and so on.
|
||||
|
||||
Better yet, here is a SASS code snippet which can make life much easier (Thanks to @ascendantofrain, [#81](https://github.com/gridstack/gridstack.js/issues/81) and @StefanM98, [#868](https://github.com/gridstack/gridstack.js/issues/868)) and you can use sites like [sassmeister.com](https://www.sassmeister.com/) to generate the CSS for you instead:
|
||||
|
||||
```sass
|
||||
.grid-stack > .grid-stack-item {
|
||||
|
||||
$gridstack-columns: 12;
|
||||
|
||||
min-width: (100% / $gridstack-columns);
|
||||
|
||||
@for $i from 1 through $gridstack-columns {
|
||||
&[data-gs-width='#{$i}'] { width: (100% / $gridstack-columns) * $i; }
|
||||
&[data-gs-x='#{$i}'] { left: (100% / $gridstack-columns) * $i; }
|
||||
&[data-gs-min-width='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; }
|
||||
&[data-gs-max-width='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
you can also look at the SASS [src/gridstack-extra.scss](https://github.com/gridstack/gridstack.js/blob/develop/src/gridstack-extra.scss) and modify to add more columns
|
||||
and also have the `.grid-stack-N` prefix to support letting the user change columns dynamically.
|
||||
|
||||
## Override resizable/draggable options
|
||||
|
||||
You can override default `resizable`/`draggable` options. For instance to enable other then bottom right resizing handle
|
||||
you can init gridstack like:
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').gridstack({
|
||||
resizable: {
|
||||
handles: 'e, se, s, sw, w'
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
Note: It's not recommended to enable `nw`, `n`, `ne` resizing handles. Their behaviour may be unexpected.
|
||||
|
||||
## Migrating to v0.3.0
|
||||
|
||||
As of v0.3.0, gridstack introduces a new plugin system. The drag'n'drop functionality has been modified to take advantage of this system. Because of this, and to avoid dependency on core code from jQuery UI, the plugin functionality was moved to a separate file.
|
||||
|
||||
To ensure gridstack continues to work, either include the additional `gridstack.jQueryUI.js` file into your HTML or use `gridstack.all.js`:
|
||||
|
||||
```html
|
||||
<script src="gridstack.js"></script>
|
||||
<script src="gridstack.jQueryUI.js"></script>
|
||||
```
|
||||
or
|
||||
```html
|
||||
<script src="gridstack.all.js"></script>
|
||||
```
|
||||
|
||||
We're working on implementing support for other drag'n'drop libraries through the new plugin system.
|
||||
|
||||
Changes
|
||||
=====
|
||||
|
||||
View our change log [here](https://github.com/gridstack/gridstack.js/tree/develop/doc/CHANGES.md).
|
||||
|
||||
|
||||
The Team
|
||||
========
|
||||
|
||||
gridstack.js is currently maintained by [Dylan Weiss](https://github.com/radiolips) and [Alain Dumesny](https://github.com/adumesny), originally created by [Pavel Reznikov](https://github.com/troolee). We appreciate [all contributors](https://github.com/gridstack/gridstack.js/graphs/contributors) for help.
|
||||
555
node_modules/gridstack/dist/gridstack-extra.css
generated
vendored
Normal file
555
node_modules/gridstack/dist/gridstack-extra.css
generated
vendored
Normal file
@@ -0,0 +1,555 @@
|
||||
/*!
|
||||
* gridstack 0.6.4 extra CSS for [2-11] columns (non default)
|
||||
* https://gridstackjs.com/
|
||||
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
|
||||
* gridstack.js may be freely distributed under the MIT license.
|
||||
*/
|
||||
.grid-stack.grid-stack-2 > .grid-stack-item {
|
||||
min-width: 50%; }
|
||||
.grid-stack.grid-stack-2 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 50%; }
|
||||
.grid-stack.grid-stack-2 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 50%; }
|
||||
.grid-stack.grid-stack-2 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 50%; }
|
||||
.grid-stack.grid-stack-2 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 50%; }
|
||||
.grid-stack.grid-stack-2 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-2 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-2 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-2 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 100%; }
|
||||
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item {
|
||||
min-width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-3 > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 100%; }
|
||||
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item {
|
||||
min-width: 25%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 25%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 25%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 25%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 25%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 50%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 50%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 50%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 50%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 75%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 75%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 75%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 75%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-width='4'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-x='4'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-min-width='4'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-4 > .grid-stack-item[data-gs-max-width='4'] {
|
||||
max-width: 100%; }
|
||||
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item {
|
||||
min-width: 20%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 20%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 20%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 20%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 20%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 40%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 40%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 40%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 40%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 60%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 60%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 60%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 60%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-width='4'] {
|
||||
width: 80%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-x='4'] {
|
||||
left: 80%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-min-width='4'] {
|
||||
min-width: 80%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-max-width='4'] {
|
||||
max-width: 80%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-width='5'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-x='5'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-min-width='5'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-5 > .grid-stack-item[data-gs-max-width='5'] {
|
||||
max-width: 100%; }
|
||||
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item {
|
||||
min-width: 16.6666666667%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 16.6666666667%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 16.6666666667%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 16.6666666667%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 16.6666666667%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 50%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 50%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 50%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 50%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-width='4'] {
|
||||
width: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-x='4'] {
|
||||
left: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-min-width='4'] {
|
||||
min-width: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-max-width='4'] {
|
||||
max-width: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-width='5'] {
|
||||
width: 83.3333333333%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-x='5'] {
|
||||
left: 83.3333333333%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-min-width='5'] {
|
||||
min-width: 83.3333333333%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-max-width='5'] {
|
||||
max-width: 83.3333333333%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-width='6'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-x='6'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-min-width='6'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-6 > .grid-stack-item[data-gs-max-width='6'] {
|
||||
max-width: 100%; }
|
||||
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item {
|
||||
min-width: 14.2857142857%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 14.2857142857%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 14.2857142857%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 14.2857142857%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 14.2857142857%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 28.5714285714%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 28.5714285714%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 28.5714285714%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 28.5714285714%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 42.8571428571%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 42.8571428571%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 42.8571428571%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 42.8571428571%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-width='4'] {
|
||||
width: 57.1428571429%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-x='4'] {
|
||||
left: 57.1428571429%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-min-width='4'] {
|
||||
min-width: 57.1428571429%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-max-width='4'] {
|
||||
max-width: 57.1428571429%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-width='5'] {
|
||||
width: 71.4285714286%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-x='5'] {
|
||||
left: 71.4285714286%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-min-width='5'] {
|
||||
min-width: 71.4285714286%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-max-width='5'] {
|
||||
max-width: 71.4285714286%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-width='6'] {
|
||||
width: 85.7142857143%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-x='6'] {
|
||||
left: 85.7142857143%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-min-width='6'] {
|
||||
min-width: 85.7142857143%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-max-width='6'] {
|
||||
max-width: 85.7142857143%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-width='7'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-x='7'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-min-width='7'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-7 > .grid-stack-item[data-gs-max-width='7'] {
|
||||
max-width: 100%; }
|
||||
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item {
|
||||
min-width: 12.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 12.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 12.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 12.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 12.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 25%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 25%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 25%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 25%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 37.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 37.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 37.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 37.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-width='4'] {
|
||||
width: 50%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-x='4'] {
|
||||
left: 50%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-min-width='4'] {
|
||||
min-width: 50%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-max-width='4'] {
|
||||
max-width: 50%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-width='5'] {
|
||||
width: 62.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-x='5'] {
|
||||
left: 62.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-min-width='5'] {
|
||||
min-width: 62.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-max-width='5'] {
|
||||
max-width: 62.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-width='6'] {
|
||||
width: 75%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-x='6'] {
|
||||
left: 75%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-min-width='6'] {
|
||||
min-width: 75%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-max-width='6'] {
|
||||
max-width: 75%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-width='7'] {
|
||||
width: 87.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-x='7'] {
|
||||
left: 87.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-min-width='7'] {
|
||||
min-width: 87.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-max-width='7'] {
|
||||
max-width: 87.5%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-width='8'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-x='8'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-min-width='8'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-8 > .grid-stack-item[data-gs-max-width='8'] {
|
||||
max-width: 100%; }
|
||||
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item {
|
||||
min-width: 11.1111111111%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 11.1111111111%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 11.1111111111%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 11.1111111111%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 11.1111111111%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 22.2222222222%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 22.2222222222%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 22.2222222222%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 22.2222222222%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 33.3333333333%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-width='4'] {
|
||||
width: 44.4444444444%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-x='4'] {
|
||||
left: 44.4444444444%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-min-width='4'] {
|
||||
min-width: 44.4444444444%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-max-width='4'] {
|
||||
max-width: 44.4444444444%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-width='5'] {
|
||||
width: 55.5555555556%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-x='5'] {
|
||||
left: 55.5555555556%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-min-width='5'] {
|
||||
min-width: 55.5555555556%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-max-width='5'] {
|
||||
max-width: 55.5555555556%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-width='6'] {
|
||||
width: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-x='6'] {
|
||||
left: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-min-width='6'] {
|
||||
min-width: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-max-width='6'] {
|
||||
max-width: 66.6666666667%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-width='7'] {
|
||||
width: 77.7777777778%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-x='7'] {
|
||||
left: 77.7777777778%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-min-width='7'] {
|
||||
min-width: 77.7777777778%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-max-width='7'] {
|
||||
max-width: 77.7777777778%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-width='8'] {
|
||||
width: 88.8888888889%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-x='8'] {
|
||||
left: 88.8888888889%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-min-width='8'] {
|
||||
min-width: 88.8888888889%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-max-width='8'] {
|
||||
max-width: 88.8888888889%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-width='9'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-x='9'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-min-width='9'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-9 > .grid-stack-item[data-gs-max-width='9'] {
|
||||
max-width: 100%; }
|
||||
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item {
|
||||
min-width: 10%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 10%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 10%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 10%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 10%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 20%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 20%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 20%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 20%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 30%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 30%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 30%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 30%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='4'] {
|
||||
width: 40%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='4'] {
|
||||
left: 40%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='4'] {
|
||||
min-width: 40%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='4'] {
|
||||
max-width: 40%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='5'] {
|
||||
width: 50%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='5'] {
|
||||
left: 50%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='5'] {
|
||||
min-width: 50%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='5'] {
|
||||
max-width: 50%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='6'] {
|
||||
width: 60%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='6'] {
|
||||
left: 60%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='6'] {
|
||||
min-width: 60%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='6'] {
|
||||
max-width: 60%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='7'] {
|
||||
width: 70%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='7'] {
|
||||
left: 70%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='7'] {
|
||||
min-width: 70%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='7'] {
|
||||
max-width: 70%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='8'] {
|
||||
width: 80%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='8'] {
|
||||
left: 80%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='8'] {
|
||||
min-width: 80%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='8'] {
|
||||
max-width: 80%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='9'] {
|
||||
width: 90%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='9'] {
|
||||
left: 90%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='9'] {
|
||||
min-width: 90%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='9'] {
|
||||
max-width: 90%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-width='10'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-x='10'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-min-width='10'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-10 > .grid-stack-item[data-gs-max-width='10'] {
|
||||
max-width: 100%; }
|
||||
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item {
|
||||
min-width: 9.0909090909%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 9.0909090909%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 9.0909090909%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 9.0909090909%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 9.0909090909%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 18.1818181818%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 18.1818181818%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 18.1818181818%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 18.1818181818%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 27.2727272727%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 27.2727272727%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 27.2727272727%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 27.2727272727%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='4'] {
|
||||
width: 36.3636363636%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='4'] {
|
||||
left: 36.3636363636%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='4'] {
|
||||
min-width: 36.3636363636%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='4'] {
|
||||
max-width: 36.3636363636%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='5'] {
|
||||
width: 45.4545454545%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='5'] {
|
||||
left: 45.4545454545%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='5'] {
|
||||
min-width: 45.4545454545%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='5'] {
|
||||
max-width: 45.4545454545%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='6'] {
|
||||
width: 54.5454545455%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='6'] {
|
||||
left: 54.5454545455%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='6'] {
|
||||
min-width: 54.5454545455%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='6'] {
|
||||
max-width: 54.5454545455%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='7'] {
|
||||
width: 63.6363636364%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='7'] {
|
||||
left: 63.6363636364%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='7'] {
|
||||
min-width: 63.6363636364%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='7'] {
|
||||
max-width: 63.6363636364%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='8'] {
|
||||
width: 72.7272727273%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='8'] {
|
||||
left: 72.7272727273%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='8'] {
|
||||
min-width: 72.7272727273%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='8'] {
|
||||
max-width: 72.7272727273%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='9'] {
|
||||
width: 81.8181818182%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='9'] {
|
||||
left: 81.8181818182%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='9'] {
|
||||
min-width: 81.8181818182%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='9'] {
|
||||
max-width: 81.8181818182%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='10'] {
|
||||
width: 90.9090909091%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='10'] {
|
||||
left: 90.9090909091%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='10'] {
|
||||
min-width: 90.9090909091%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='10'] {
|
||||
max-width: 90.9090909091%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-width='11'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-x='11'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-min-width='11'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-11 > .grid-stack-item[data-gs-max-width='11'] {
|
||||
max-width: 100%; }
|
||||
6
node_modules/gridstack/dist/gridstack-extra.min.css
generated
vendored
Normal file
6
node_modules/gridstack/dist/gridstack-extra.min.css
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
105
node_modules/gridstack/dist/gridstack-poly.js
generated
vendored
Normal file
105
node_modules/gridstack/dist/gridstack-poly.js
generated
vendored
Normal file
@@ -0,0 +1,105 @@
|
||||
/** gridstack.js 0.6.4 - IE and older browsers Polyfills for this library @preserve*/
|
||||
/**
|
||||
* https://gridstackjs.com/
|
||||
* (c) 2019-2020 Alain Dumesny
|
||||
* gridstack.js may be freely distributed under the MIT license.
|
||||
*/
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
|
||||
Number.isNaN = Number.isNaN || function isNaN(input) {
|
||||
return typeof input === 'number' && input !== input;
|
||||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find
|
||||
if (!Array.prototype.find) {
|
||||
Object.defineProperty(Array.prototype, 'find', {
|
||||
value: function (predicate) {
|
||||
// 1. Let O be ? ToObject(this value).
|
||||
if (this == null) {
|
||||
throw TypeError('"this" is null or not defined');
|
||||
}
|
||||
|
||||
var o = Object(this);
|
||||
|
||||
// 2. Let len be ? ToLength(? Get(O, "length")).
|
||||
var len = o.length >>> 0;
|
||||
|
||||
// 3. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||
if (typeof predicate !== 'function') {
|
||||
throw TypeError('predicate must be a function');
|
||||
}
|
||||
|
||||
// 4. If thisArg was supplied, let T be thisArg; else let T be undefined.
|
||||
var thisArg = arguments[1];
|
||||
|
||||
// 5. Let k be 0.
|
||||
var k = 0;
|
||||
|
||||
// 6. Repeat, while k < len
|
||||
while (k < len) {
|
||||
// a. Let Pk be ! ToString(k).
|
||||
// b. Let kValue be ? Get(O, Pk).
|
||||
// c. Let testResult be ToBoolean(? Call(predicate, T, « kValue, k, O »)).
|
||||
// d. If testResult is true, return kValue.
|
||||
var kValue = o[k];
|
||||
if (predicate.call(thisArg, kValue, k, o)) {
|
||||
return kValue;
|
||||
}
|
||||
// e. Increase k by 1.
|
||||
k++;
|
||||
}
|
||||
|
||||
// 7. Return undefined.
|
||||
return undefined;
|
||||
},
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex
|
||||
if (!Array.prototype.findIndex) {
|
||||
Object.defineProperty(Array.prototype, 'findIndex', {
|
||||
value: function(predicate) {
|
||||
// 1. Let O be ? ToObject(this value).
|
||||
if (this == null) {
|
||||
throw new TypeError('"this" is null or not defined');
|
||||
}
|
||||
|
||||
var o = Object(this);
|
||||
|
||||
// 2. Let len be ? ToLength(? Get(O, "length")).
|
||||
var len = o.length >>> 0;
|
||||
|
||||
// 3. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||
if (typeof predicate !== 'function') {
|
||||
throw new TypeError('predicate must be a function');
|
||||
}
|
||||
|
||||
// 4. If thisArg was supplied, let T be thisArg; else let T be undefined.
|
||||
var thisArg = arguments[1];
|
||||
|
||||
// 5. Let k be 0.
|
||||
var k = 0;
|
||||
|
||||
// 6. Repeat, while k < len
|
||||
while (k < len) {
|
||||
// a. Let Pk be ! ToString(k).
|
||||
// b. Let kValue be ? Get(O, Pk).
|
||||
// c. Let testResult be ToBoolean(? Call(predicate, T, « kValue, k, O »)).
|
||||
// d. If testResult is true, return k.
|
||||
var kValue = o[k];
|
||||
if (predicate.call(thisArg, kValue, k, o)) {
|
||||
return k;
|
||||
}
|
||||
// e. Increase k by 1.
|
||||
k++;
|
||||
}
|
||||
|
||||
// 7. Return -1.
|
||||
return -1;
|
||||
},
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
3
node_modules/gridstack/dist/gridstack-poly.min.js
generated
vendored
Normal file
3
node_modules/gridstack/dist/gridstack-poly.min.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/** gridstack.js 0.6.4 - IE and older browsers Polyfills for this library @preserve*/
|
||||
Number.isNaN=Number.isNaN||function(r){return"number"==typeof r&&r!=r},Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(r){if(null==this)throw TypeError('"this" is null or not defined');var e=Object(this),t=e.length>>>0;if("function"!=typeof r)throw TypeError("predicate must be a function");for(var n=arguments[1],i=0;i<t;){var o=e[i];if(r.call(n,o,i,e))return o;i++}},configurable:!0,writable:!0}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(r){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),t=e.length>>>0;if("function"!=typeof r)throw new TypeError("predicate must be a function");for(var n=arguments[1],i=0;i<t;){var o=e[i];if(r.call(n,o,i,e))return i;i++}return-1},configurable:!0,writable:!0});
|
||||
//# sourceMappingURL=gridstack.min.map
|
||||
17
node_modules/gridstack/dist/gridstack.all.js
generated
vendored
Normal file
17
node_modules/gridstack/dist/gridstack.all.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
243
node_modules/gridstack/dist/gridstack.css
generated
vendored
Normal file
243
node_modules/gridstack/dist/gridstack.css
generated
vendored
Normal file
@@ -0,0 +1,243 @@
|
||||
/*!
|
||||
* required gridstack 0.6.4 CSS for default 12 and 1 columnMode size. Use gridstack-extra.css for others
|
||||
* https://gridstackjs.com/
|
||||
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
|
||||
* gridstack.js may be freely distributed under the MIT license.
|
||||
*/
|
||||
:root .grid-stack-item > .ui-resizable-handle {
|
||||
filter: none; }
|
||||
|
||||
.grid-stack {
|
||||
position: relative; }
|
||||
.grid-stack.grid-stack-rtl {
|
||||
direction: ltr; }
|
||||
.grid-stack.grid-stack-rtl > .grid-stack-item {
|
||||
direction: rtl; }
|
||||
.grid-stack .grid-stack-placeholder > .placeholder-content {
|
||||
border: 1px dashed lightgray;
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
bottom: 0;
|
||||
width: auto;
|
||||
z-index: 0 !important;
|
||||
text-align: center; }
|
||||
.grid-stack > .grid-stack-item {
|
||||
min-width: 8.3333333333%;
|
||||
position: absolute;
|
||||
padding: 0; }
|
||||
.grid-stack > .grid-stack-item > .grid-stack-item-content {
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
bottom: 0;
|
||||
width: auto;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto; }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-handle {
|
||||
position: absolute;
|
||||
font-size: 0.1px;
|
||||
display: block;
|
||||
-ms-touch-action: none;
|
||||
touch-action: none; }
|
||||
.grid-stack > .grid-stack-item.ui-resizable-disabled > .ui-resizable-handle,
|
||||
.grid-stack > .grid-stack-item.ui-resizable-autohide > .ui-resizable-handle {
|
||||
display: none; }
|
||||
.grid-stack > .grid-stack-item.ui-draggable-dragging, .grid-stack > .grid-stack-item.ui-resizable-resizing {
|
||||
z-index: 100; }
|
||||
.grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content,
|
||||
.grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content, .grid-stack > .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content,
|
||||
.grid-stack > .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 > .grid-stack-item > .ui-resizable-se,
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-sw {
|
||||
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMS42MjYgNTExLjYyNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjYyNiA1MTEuNjI3OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTMyOC45MDYsNDAxLjk5NGgtMzYuNTUzVjEwOS42MzZoMzYuNTUzYzQuOTQ4LDAsOS4yMzYtMS44MDksMTIuODQ3LTUuNDI2YzMuNjEzLTMuNjE1LDUuNDIxLTcuODk4LDUuNDIxLTEyLjg0NSAgIGMwLTQuOTQ5LTEuODAxLTkuMjMxLTUuNDI4LTEyLjg1MWwtNzMuMDg3LTczLjA5QzI2NS4wNDQsMS44MDksMjYwLjc2LDAsMjU1LjgxMywwYy00Ljk0OCwwLTkuMjI5LDEuODA5LTEyLjg0Nyw1LjQyNCAgIGwtNzMuMDg4LDczLjA5Yy0zLjYxOCwzLjYxOS01LjQyNCw3LjkwMi01LjQyNCwxMi44NTFjMCw0Ljk0NiwxLjgwNyw5LjIyOSw1LjQyNCwxMi44NDVjMy42MTksMy42MTcsNy45MDEsNS40MjYsMTIuODUsNS40MjYgICBoMzYuNTQ1djI5Mi4zNThoLTM2LjU0MmMtNC45NTIsMC05LjIzNSwxLjgwOC0xMi44NSw1LjQyMWMtMy42MTcsMy42MjEtNS40MjQsNy45MDUtNS40MjQsMTIuODU0ICAgYzAsNC45NDUsMS44MDcsOS4yMjcsNS40MjQsMTIuODQ3bDczLjA4OSw3My4wODhjMy42MTcsMy42MTcsNy44OTgsNS40MjQsMTIuODQ3LDUuNDI0YzQuOTUsMCw5LjIzNC0xLjgwNywxMi44NDktNS40MjQgICBsNzMuMDg3LTczLjA4OGMzLjYxMy0zLjYyLDUuNDIxLTcuOTAxLDUuNDIxLTEyLjg0N2MwLTQuOTQ4LTEuODA4LTkuMjMyLTUuNDIxLTEyLjg1NCAgIEMzMzguMTQyLDQwMy44MDIsMzMzLjg1Nyw0MDEuOTk0LDMyOC45MDYsNDAxLjk5NHoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
-webkit-transform: rotate(45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-ms-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
transform: rotate(45deg); }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-se {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
-moz-transform: rotate(-45deg);
|
||||
-ms-transform: rotate(-45deg);
|
||||
-o-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-nw {
|
||||
cursor: nw-resize;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
left: 10px;
|
||||
top: 0; }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-n {
|
||||
cursor: n-resize;
|
||||
height: 10px;
|
||||
top: 0;
|
||||
left: 25px;
|
||||
right: 25px; }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-ne {
|
||||
cursor: ne-resize;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
right: 10px;
|
||||
top: 0; }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-e {
|
||||
cursor: e-resize;
|
||||
width: 10px;
|
||||
right: 10px;
|
||||
top: 15px;
|
||||
bottom: 15px; }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-se {
|
||||
cursor: se-resize;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
right: 10px;
|
||||
bottom: 0; }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-s {
|
||||
cursor: s-resize;
|
||||
height: 10px;
|
||||
left: 25px;
|
||||
bottom: 0;
|
||||
right: 25px; }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-sw {
|
||||
cursor: sw-resize;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
left: 10px;
|
||||
bottom: 0; }
|
||||
.grid-stack > .grid-stack-item > .ui-resizable-w {
|
||||
cursor: w-resize;
|
||||
width: 10px;
|
||||
left: 10px;
|
||||
top: 15px;
|
||||
bottom: 15px; }
|
||||
.grid-stack > .grid-stack-item.ui-draggable-dragging > .ui-resizable-handle {
|
||||
display: none !important; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 8.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 8.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 8.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 8.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='2'] {
|
||||
width: 16.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='2'] {
|
||||
left: 16.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='2'] {
|
||||
min-width: 16.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='2'] {
|
||||
max-width: 16.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='3'] {
|
||||
width: 25%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='3'] {
|
||||
left: 25%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='3'] {
|
||||
min-width: 25%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='3'] {
|
||||
max-width: 25%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='4'] {
|
||||
width: 33.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='4'] {
|
||||
left: 33.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='4'] {
|
||||
min-width: 33.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='4'] {
|
||||
max-width: 33.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='5'] {
|
||||
width: 41.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='5'] {
|
||||
left: 41.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='5'] {
|
||||
min-width: 41.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='5'] {
|
||||
max-width: 41.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='6'] {
|
||||
width: 50%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='6'] {
|
||||
left: 50%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='6'] {
|
||||
min-width: 50%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='6'] {
|
||||
max-width: 50%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='7'] {
|
||||
width: 58.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='7'] {
|
||||
left: 58.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='7'] {
|
||||
min-width: 58.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='7'] {
|
||||
max-width: 58.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='8'] {
|
||||
width: 66.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='8'] {
|
||||
left: 66.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='8'] {
|
||||
min-width: 66.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='8'] {
|
||||
max-width: 66.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='9'] {
|
||||
width: 75%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='9'] {
|
||||
left: 75%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='9'] {
|
||||
min-width: 75%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='9'] {
|
||||
max-width: 75%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='10'] {
|
||||
width: 83.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='10'] {
|
||||
left: 83.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='10'] {
|
||||
min-width: 83.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='10'] {
|
||||
max-width: 83.3333333333%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='11'] {
|
||||
width: 91.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='11'] {
|
||||
left: 91.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='11'] {
|
||||
min-width: 91.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='11'] {
|
||||
max-width: 91.6666666667%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-width='12'] {
|
||||
width: 100%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-x='12'] {
|
||||
left: 100%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-min-width='12'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack > .grid-stack-item[data-gs-max-width='12'] {
|
||||
max-width: 100%; }
|
||||
.grid-stack.grid-stack-1 > .grid-stack-item {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-1 > .grid-stack-item[data-gs-width='1'] {
|
||||
width: 100%; }
|
||||
.grid-stack.grid-stack-1 > .grid-stack-item[data-gs-x='1'] {
|
||||
left: 100%; }
|
||||
.grid-stack.grid-stack-1 > .grid-stack-item[data-gs-min-width='1'] {
|
||||
min-width: 100%; }
|
||||
.grid-stack.grid-stack-1 > .grid-stack-item[data-gs-max-width='1'] {
|
||||
max-width: 100%; }
|
||||
.grid-stack.grid-stack-animate,
|
||||
.grid-stack.grid-stack-animate .grid-stack-item {
|
||||
-webkit-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
|
||||
-moz-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
|
||||
-ms-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
|
||||
-o-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
|
||||
transition: left 0.3s, top 0.3s, height 0.3s, width 0.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 0s, top 0s, height 0s, width 0s;
|
||||
-moz-transition: left 0s, top 0s, height 0s, width 0s;
|
||||
-ms-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; }
|
||||
549
node_modules/gridstack/dist/gridstack.d.ts
generated
vendored
Normal file
549
node_modules/gridstack/dist/gridstack.d.ts
generated
vendored
Normal file
@@ -0,0 +1,549 @@
|
||||
// Type definitions for Gridstack 0.6.4
|
||||
// Project: https://gridstackjs.com/
|
||||
// Definitions by: Pascal Senn <https://github.com/PascalSenn>
|
||||
// Ricky Blankenaufulland <https://github.com/ZoolWay>
|
||||
// Sl1MBoy <https://github.com/Sl1MBoy>
|
||||
// John Archer <https://github.com/JohnArcher>
|
||||
// Alain Dumesny <https://github.com/adumesny>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped initially, but now part of gridstack.js
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
interface JQuery {
|
||||
gridstack(options: GridstackOptions): JQuery;
|
||||
data(key: 'gridstack'): GridStack;
|
||||
}
|
||||
|
||||
/* Other items in https://github.com/gridstack/gridstack.js/blob/develop/doc/README.md
|
||||
* Grid attributes
|
||||
* Item attributes
|
||||
* Events
|
||||
*/
|
||||
|
||||
type GridStackElement = string | HTMLElement | JQuery;
|
||||
|
||||
interface GridStack {
|
||||
/**
|
||||
* Creates new widget and returns it.
|
||||
*
|
||||
* Widget will be always placed even if result height is more than actual grid height.
|
||||
* You need to use willItFit method before calling addWidget for additional check.
|
||||
* See also `makeWidget()`.
|
||||
*
|
||||
* @example
|
||||
* $('.grid-stack').gridstack();
|
||||
* var grid = $('.grid-stack').data('gridstack');
|
||||
* grid.addWidget(el, {width: 3, autoPosition: true});
|
||||
*
|
||||
* @param el widget to add
|
||||
* @param options widget position/size options (optional)
|
||||
*/
|
||||
addWidget(el: GridStackElement, options ? : GridstackWidget): JQuery;
|
||||
|
||||
/**
|
||||
* Creates new widget and returns it.
|
||||
* Legacy: Spelled out version of the widgets options, recommend use new version instead.
|
||||
*
|
||||
* @example
|
||||
* $('.grid-stack').gridstack();
|
||||
* var grid = $('.grid-stack').data('gridstack');
|
||||
* grid.addWidget(el, 0, 0, 3, 2, true);
|
||||
*
|
||||
* @param el widget to add
|
||||
* @param x widget position x (optional)
|
||||
* @param y widget position y (optional)
|
||||
* @param width widget dimension width (optional)
|
||||
* @param height widget dimension height (optional)
|
||||
* @param autoPosition if true then x, y parameters will be ignored and widget will be places on the first available position (optional)
|
||||
* @param minWidth minimum width allowed during resize/creation (optional)
|
||||
* @param maxWidth maximum width allowed during resize/creation (optional)
|
||||
* @param minHeight minimum height allowed during resize/creation (optional)
|
||||
* @param maxHeight maximum height allowed during resize/creation (optional)
|
||||
* @param id value for `data-gs-id` (optional)
|
||||
*/
|
||||
addWidget(el: GridStackElement, x ? : number, y ? : number, width ? : number, height ? : number, autoPosition ? : boolean,
|
||||
minWidth ? : number, maxWidth ? : number, minHeight ? : number, maxHeight ? : number, id ? : number | string): JQuery;
|
||||
|
||||
/**
|
||||
* Initializes batch updates. You will see no changes until commit method is called.
|
||||
*/
|
||||
batchUpdate(): void;
|
||||
|
||||
/**
|
||||
* Gets current cell height.
|
||||
*/
|
||||
cellHeight(): number;
|
||||
|
||||
/**
|
||||
* Update current cell height - see `GridstackOptions.cellHeight` for format.
|
||||
* This method rebuilds an internal CSS style sheet.
|
||||
* Note: You can expect performance issues if call this method too often.
|
||||
*
|
||||
* @param val the cell height
|
||||
* @param noUpdate (Optional) if true, styles will not be updated
|
||||
*
|
||||
* @example
|
||||
* grid.cellHeight(grid.cellWidth() * 1.2);
|
||||
*/
|
||||
cellHeight(val: number | string, noUpdate ? : boolean): void;
|
||||
|
||||
/**
|
||||
* Gets current cell width.
|
||||
*/
|
||||
cellWidth(): number;
|
||||
|
||||
/**
|
||||
* Finishes batch updates. Updates DOM nodes. You must call it after batchUpdate.
|
||||
*/
|
||||
commit(): void;
|
||||
|
||||
/**
|
||||
* relayout grid items to reclaim any empty space
|
||||
*/
|
||||
compact(): void;
|
||||
|
||||
/**
|
||||
* Destroys a grid instance.
|
||||
* @param detachGrid if false nodes and grid will not be removed from the DOM (Optional. Default true).
|
||||
*/
|
||||
destroy(detachGrid ? : boolean): void;
|
||||
|
||||
/**
|
||||
* Disables widgets moving/resizing. This is a shortcut for:
|
||||
* @example
|
||||
* grid.movable('.grid-stack-item', false);
|
||||
* grid.resizable('.grid-stack-item', false);
|
||||
*/
|
||||
disable(): void;
|
||||
|
||||
/**
|
||||
* Enables widgets moving/resizing. This is a shortcut for:
|
||||
* @example
|
||||
* grid.movable('.grid-stack-item', true);
|
||||
* grid.resizable('.grid-stack-item', true);
|
||||
*/
|
||||
enable(): void;
|
||||
|
||||
/**
|
||||
* Enables/disables widget moving.
|
||||
* This is a shortcut for:
|
||||
* @example
|
||||
* grid.movable(this.container.children('.' + this.opts.itemClass), doEnable);
|
||||
*
|
||||
* @param doEnable
|
||||
* @param includeNewWidgets will force new widgets to be draggable as per
|
||||
* doEnable`s value by changing the disableDrag grid option.
|
||||
*/
|
||||
enableMove(doEnable: boolean, includeNewWidgets: boolean): void;
|
||||
|
||||
/**
|
||||
* Enables/disables widget resizing
|
||||
* @param doEnable
|
||||
* @param includeNewWidgets will force new widgets to be draggable as per
|
||||
* doEnable`s value by changing the disableResize grid option.
|
||||
*
|
||||
* This is a shortcut for:
|
||||
* @example
|
||||
* grid.resizable(this.container.children('.' + this.opts.itemClass), doEnable);
|
||||
*/
|
||||
enableResize(doEnable: boolean, includeNewWidgets: boolean): void;
|
||||
|
||||
/**
|
||||
* enable/disable floating widgets (default: `false`) See [example](http://gridstackjs.com/demo/float.html)
|
||||
* @param mode
|
||||
*/
|
||||
float(mode: boolean): void;
|
||||
|
||||
/**
|
||||
* get the current float mode
|
||||
*/
|
||||
float(): boolean;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the position of the cell under a pixel on screen.
|
||||
* @param position the position of the pixel to resolve in
|
||||
* absolute coordinates, as an object with top and left properties
|
||||
* @param useOffset if true, value will be based on offset vs position (Optional. Default false).
|
||||
* Useful when grid is within `position: relative` element
|
||||
*
|
||||
* Returns an object with properties `x` and `y` i.e. the column and row in the grid.
|
||||
*/
|
||||
getCellFromPixel(position: MousePosition, useOffset ? : boolean): CellPosition;
|
||||
|
||||
/**
|
||||
* Checks if specified area is empty.
|
||||
* @param x the position x.
|
||||
* @param y the position y.
|
||||
* @param width the width of to check
|
||||
* @param height the height of to check
|
||||
*/
|
||||
isAreaEmpty(x: number, y: number, width: number, height: number): void;
|
||||
|
||||
/**
|
||||
* Locks/unlocks widget.
|
||||
* @param el widget to modify.
|
||||
* @param val if true widget will be locked.
|
||||
*/
|
||||
locked(el: GridStackElement, val: boolean): void;
|
||||
|
||||
/**
|
||||
* If you add elements to your gridstack container by hand, you have to tell gridstack afterwards to make them widgets.
|
||||
* If you want gridstack to add the elements for you, use addWidget instead.
|
||||
* Makes the given element a widget and returns it.
|
||||
* @param el widget to convert.
|
||||
*
|
||||
* @example
|
||||
* $('.grid-stack').gridstack();
|
||||
* $('.grid-stack').append('<div id="gsi-1" data-gs-x="0" data-gs-y="0" data-gs-width="3" data-gs-height="2"
|
||||
* data-gs-auto-position="true"></div>')
|
||||
* var grid = $('.grid-stack').data('gridstack');
|
||||
* grid.makeWidget('gsi-1');
|
||||
*/
|
||||
makeWidget(el: GridStackElement): JQuery;
|
||||
|
||||
/**
|
||||
* Set the maxWidth for a widget.
|
||||
* @param el widget to modify.
|
||||
* @param val A numeric value of the number of columns
|
||||
*/
|
||||
maxWidth(el: GridStackElement, val: number): void;
|
||||
|
||||
/**
|
||||
* Set the minWidth for a widget.
|
||||
* @param el widget to modify.
|
||||
* @param val A numeric value of the number of columns
|
||||
*/
|
||||
minWidth(el: GridStackElement, val: number): void;
|
||||
|
||||
/**
|
||||
* Set the maxHeight for a widget.
|
||||
* @param el widget to modify.
|
||||
* @param val A numeric value of the number of rows
|
||||
*/
|
||||
maxHeight(el: GridStackElement, val: number): void;
|
||||
|
||||
/**
|
||||
* Set the minHeight for a widget.
|
||||
* @param el widget to modify.
|
||||
* @param val A numeric value of the number of rows
|
||||
*/
|
||||
minHeight(el: GridStackElement, val: number): void;
|
||||
|
||||
/**
|
||||
* Enables/Disables moving.
|
||||
* @param el widget to modify.
|
||||
* @param val if true widget will be draggable.
|
||||
*/
|
||||
movable(el: GridStackElement, val: boolean): void;
|
||||
|
||||
/**
|
||||
* Changes widget position
|
||||
* @param el widget to modify
|
||||
* @param x new position x. If value is null or undefined it will be ignored.
|
||||
* @param y new position y. If value is null or undefined it will be ignored.
|
||||
*/
|
||||
move(el: GridStackElement, x: number, y: number): void;
|
||||
|
||||
/**
|
||||
* Removes widget from the grid.
|
||||
* @param el widget to modify
|
||||
* @param detachNode if false DOM node won't be removed from the tree (Default? true).
|
||||
*/
|
||||
removeWidget(el: GridStackElement, detachNode ? : boolean): void;
|
||||
|
||||
/**
|
||||
* Removes all widgets from the grid.
|
||||
* @param detachNode if false DOM nodes won't be removed from the tree (Default? true).
|
||||
*/
|
||||
removeAll(detachNode ? : boolean): void;
|
||||
|
||||
/**
|
||||
* Changes widget size
|
||||
* @param el widget to modify
|
||||
* @param width new dimensions width. If value is null or undefined it will be ignored.
|
||||
* @param height new dimensions height. If value is null or undefined it will be ignored.
|
||||
*/
|
||||
resize(el: GridStackElement, width: number, height: number): void;
|
||||
|
||||
/**
|
||||
* Enables/Disables resizing.
|
||||
* @param el widget to modify
|
||||
* @param val if true widget will be resizable.
|
||||
*/
|
||||
resizable(el: GridStackElement, val: boolean): void;
|
||||
|
||||
/**
|
||||
* Toggle the grid animation state. Toggles the `grid-stack-animate` class.
|
||||
* @param doAnimate if true the grid will animate.
|
||||
*/
|
||||
setAnimation(doAnimate: boolean): void;
|
||||
|
||||
/**
|
||||
* Modify number of columns in the grid. Will update existing widgets to conform to new number of columns,
|
||||
* as well as cache the original layout so you can revert back to previous positions without loss.
|
||||
* Requires `gridstack-extra.css` or `gridstack-extra.min.css` for [1-11],
|
||||
* else you will need to generate correct CSS (see https://github.com/gridstack/gridstack.js#change-grid-columns)
|
||||
* @param column - Integer > 0 (default 12).
|
||||
* @param doNotPropagate if true existing widgets will not be updated (optional)
|
||||
*/
|
||||
setColumn(column: number, doNotPropagate ? : boolean): void;
|
||||
|
||||
/**
|
||||
* Toggle the grid static state. Also toggle the grid-stack-static class.
|
||||
* @param staticValue if true the grid become static.
|
||||
*/
|
||||
setStatic(staticValue: boolean): void;
|
||||
|
||||
/**
|
||||
* Updates widget position/size.
|
||||
* @param el widget to modify
|
||||
* @param x new position x. If value is null or undefined it will be ignored.
|
||||
* @param y new position y. If value is null or undefined it will be ignored.
|
||||
* @param width new dimensions width. If value is null or undefined it will be ignored.
|
||||
* @param height new dimensions height. If value is null or undefined it will be ignored.
|
||||
*/
|
||||
update(el: GridStackElement, x: number, y: number, width: number, height: number): void;
|
||||
|
||||
/**
|
||||
* returns current vertical margin value
|
||||
*/
|
||||
verticalMargin(): number;
|
||||
|
||||
/**
|
||||
* Updates the vertical margin - see `GridstackOptions.verticalMargin` for format options.
|
||||
*
|
||||
* @param value new vertical margin value
|
||||
* @param noUpdate (optional) if true, styles will not be updated
|
||||
*/
|
||||
verticalMargin(value: number | string, noUpdate ? : boolean): void;
|
||||
|
||||
/**
|
||||
* Returns true if the height of the grid will be less the vertical
|
||||
* constraint. Always returns true if grid doesn't have height constraint.
|
||||
* @param x new position x. If value is null or undefined it will be ignored.
|
||||
* @param y new position y. If value is null or undefined it will be ignored.
|
||||
* @param width new dimensions width. If value is null or undefined it will be ignored.
|
||||
* @param height new dimensions height. If value is null or undefined it will be ignored.
|
||||
* @param autoPosition if true then x, y parameters will be ignored and widget
|
||||
* will be places on the first available position
|
||||
*
|
||||
* @example
|
||||
* if (grid.willItFit(newNode.x, newNode.y, newNode.width, newNode.height, true)) {
|
||||
* grid.addWidget(newNode.el, newNode.x, newNode.y, newNode.width, newNode.height, true);
|
||||
* } else {
|
||||
* alert('Not enough free space to place the widget');
|
||||
* }
|
||||
*/
|
||||
willItFit(x: number, y: number, width: number, height: number, autoPosition: boolean): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the coordinates of an object
|
||||
*/
|
||||
interface MousePosition {
|
||||
top: number;
|
||||
left: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the position of a cell inside the grid
|
||||
*/
|
||||
interface CellPosition {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gridstack Widget creation options
|
||||
* @param x widget position x (default?: 0)
|
||||
* @param y widget position y (default?: 0)
|
||||
* @param width widget dimension width (default?: 1)
|
||||
* @param height widget dimension height (default?: 1)
|
||||
* @param autoPosition if true then x, y parameters will be ignored and widget will be places on the first available position (default?: false)
|
||||
* @param minWidth minimum width allowed during resize/creation (default?: undefined = un-constrained)
|
||||
* @param maxWidth maximum width allowed during resize/creation (default?: undefined = un-constrained)
|
||||
* @param minHeight minimum height allowed during resize/creation (default?: undefined = un-constrained)
|
||||
* @param maxHeight maximum height allowed during resize/creation (default?: undefined = un-constrained)
|
||||
* @param id value for `data-gs-id` stored on the widget (default?: undefined)
|
||||
*/
|
||||
interface GridstackWidget {
|
||||
x ? : number;
|
||||
y ? : number;
|
||||
width ? : number;
|
||||
height ? : number;
|
||||
autoPosition ? : boolean;
|
||||
minWidth ? : number;
|
||||
maxWidth ? : number;
|
||||
minHeight ? : number;
|
||||
maxHeight ? : number;
|
||||
id ? : number | string;
|
||||
}
|
||||
|
||||
declare namespace GridStackUI {
|
||||
interface Utils {
|
||||
/**
|
||||
* Sorts array of nodes
|
||||
* @param nodes array to sort
|
||||
* @param dir 1 for asc, -1 for desc (optional)
|
||||
* @param width width of the grid. If undefined the width will be calculated automatically (optional).
|
||||
**/
|
||||
sort(nodes: HTMLElement[], dir ? : number, width ? : number): void;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gridstack Options
|
||||
* Defines the options for a Gridstack
|
||||
*/
|
||||
interface GridstackOptions {
|
||||
/**
|
||||
* accept widgets dragged from other grids or from outside (default: `false`). Can be:
|
||||
* `true` (uses `'.grid-stack-item'` class filter) or `false`,
|
||||
* string for explicit class name,
|
||||
* function returning a boolean. See [example](http://gridstack.github.io/gridstack.js/demo/two.html)
|
||||
*/
|
||||
acceptWidgets ? : boolean | string | ((i: number, element: Element) => boolean);
|
||||
|
||||
/**
|
||||
* if true the resizing handles are shown even if the user is not hovering over the widget (default?: false)
|
||||
*/
|
||||
alwaysShowResizeHandle ? : boolean;
|
||||
|
||||
/**
|
||||
* turns animation on (default?: true)
|
||||
*/
|
||||
animate ? : boolean;
|
||||
|
||||
/**
|
||||
* if false gridstack will not initialize existing items (default?: true)
|
||||
*/
|
||||
auto ? : boolean;
|
||||
|
||||
/**
|
||||
* one cell height (default?: 60). Can be:
|
||||
* an integer (px)
|
||||
* a string (ex: '100px', '10em', '10rem', '10%')
|
||||
* 0 or null, in which case the library will not generate styles for rows. Everything must be defined in CSS files.
|
||||
* 'auto' - height will be calculated to match cell width (initial square grid).
|
||||
*/
|
||||
cellHeight ? : number | string;
|
||||
|
||||
/**
|
||||
* (internal?) unit for cellHeight (default? 'px')
|
||||
*/
|
||||
cellHeightUnit ? : string;
|
||||
|
||||
/** class that implement drag'n'drop functionality for gridstack. If false grid will be static.
|
||||
* (default?: null - first available plugin will be used)
|
||||
*/
|
||||
ddPlugin ? : boolean | null | any;
|
||||
|
||||
/** disallows dragging of widgets (default?: false) */
|
||||
disableDrag ? : boolean;
|
||||
|
||||
/** disallows resizing of widgets (default?: false). */
|
||||
disableResize ? : boolean;
|
||||
|
||||
/**
|
||||
* allows to override jQuery UI draggable options. (default?: { handle?: '.grid-stack-item-content', scroll?: true, appendTo?: 'body', containment: null })
|
||||
*/
|
||||
draggable ? : {};
|
||||
|
||||
/**
|
||||
* let user drag nested grid items out of a parent or not (default false)
|
||||
*/
|
||||
dragOut ? : boolean;
|
||||
|
||||
/**
|
||||
* draggable handle selector (default?: '.grid-stack-item-content')
|
||||
*/
|
||||
handle ? : string;
|
||||
|
||||
/** draggable handle class (e.g. 'grid-stack-item-content'). If set 'handle' is ignored (default?: null) */
|
||||
handleClass ? : string;
|
||||
|
||||
/**
|
||||
* number of columns (default?: 12). Note: IF you change this, CSS also have to change. See https://github.com/gridstack/gridstack.js#change-grid-columns
|
||||
*/
|
||||
column ? : number;
|
||||
|
||||
/**
|
||||
* maximum rows amount. Default? is 0 which means no maximum rows
|
||||
*/
|
||||
maxRow ? : number;
|
||||
|
||||
/**
|
||||
* enable floating widgets (default?: false) See example (http://gridstack.github.io/gridstack.js/demo/float.html)
|
||||
*/
|
||||
float ? : boolean;
|
||||
|
||||
/**
|
||||
* widget class (default?: 'grid-stack-item')
|
||||
*/
|
||||
itemClass ? : string;
|
||||
|
||||
/**
|
||||
* minimal width. If window width is less, grid will be shown in one column mode (default?: 768)
|
||||
*/
|
||||
minWidth ? : number;
|
||||
|
||||
/** disables the onColumnMode when the window width is less than minWidth (default?: false) */
|
||||
disableOneColumnMode ? : boolean;
|
||||
|
||||
/**
|
||||
* set to true if you want oneColumnMode to use the DOM order and ignore x,y from normal multi column
|
||||
* layouts during sorting. This enables you to have custom 1 column layout that differ from the rest. (default?: false)
|
||||
*/
|
||||
oneColumnModeDomSort?: boolean;
|
||||
|
||||
/**
|
||||
* class for placeholder (default?: 'grid-stack-placeholder')
|
||||
*/
|
||||
placeholderClass ? : string;
|
||||
|
||||
/** placeholder default content (default?: '') */
|
||||
placeholderText ? : string;
|
||||
|
||||
/**
|
||||
* allows to override jQuery UI resizable options. (default?: { autoHide?: true, handles?: 'se' })
|
||||
*/
|
||||
resizable ? : {};
|
||||
|
||||
/**
|
||||
* if true widgets could be removed by dragging outside of the grid. It could also be a jQuery selector string,
|
||||
* in this case widgets will be removed by dropping them there (default?: false)
|
||||
* See example (http://gridstack.github.io/gridstack.js/demo/two.html)
|
||||
*/
|
||||
removable ? : boolean | string;
|
||||
|
||||
/**
|
||||
* time in milliseconds before widget is being removed while dragging outside of the grid. (default?: 2000)
|
||||
*/
|
||||
removeTimeout ? : number;
|
||||
|
||||
/**
|
||||
* if true turns grid to RTL. Possible values are true, false, 'auto' (default?: 'auto')
|
||||
* See [example](http://gridstack.github.io/gridstack.js/demo/rtl.html)
|
||||
*/
|
||||
rtl ? : boolean | 'auto';
|
||||
|
||||
/**
|
||||
* makes grid static (default?: false).If true widgets are not movable/resizable.
|
||||
* You don't even need jQueryUI draggable/resizable. A CSS class
|
||||
* 'grid-stack-static' is also added to the container.
|
||||
*/
|
||||
staticGrid ? : boolean;
|
||||
|
||||
/**
|
||||
* vertical gap size (default?: 20). Can be:
|
||||
* an integer (px)
|
||||
* a string (ex: '2em', '20px', '2rem')
|
||||
*/
|
||||
verticalMargin ? : number | string;
|
||||
|
||||
/**
|
||||
* (internal?) unit for verticalMargin (default? 'px')
|
||||
*/
|
||||
verticalMarginUnit ? : string;
|
||||
}
|
||||
89
node_modules/gridstack/dist/gridstack.jQueryUI.js
generated
vendored
Normal file
89
node_modules/gridstack/dist/gridstack.jQueryUI.js
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
/** gridstack.js 0.6.4 - JQuery UI Drag&Drop plugin @preserve */
|
||||
/**
|
||||
* https://gridstackjs.com/
|
||||
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
|
||||
* gridstack.js may be freely distributed under the MIT license.
|
||||
*/
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery', 'gridstack', 'exports'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
try { jQuery = require('jquery'); } catch (e) {}
|
||||
try { gridstack = require('gridstack'); } catch (e) {}
|
||||
factory(jQuery, gridstack.GridStackUI, exports);
|
||||
} else {
|
||||
factory(jQuery, GridStackUI, window);
|
||||
}
|
||||
})(function($, GridStackUI, scope) {
|
||||
/**
|
||||
* @class JQueryUIGridStackDragDropPlugin
|
||||
* jQuery UI implementation of drag'n'drop gridstack plugin.
|
||||
*/
|
||||
function JQueryUIGridStackDragDropPlugin(grid) {
|
||||
GridStackUI.GridStackDragDropPlugin.call(this, grid);
|
||||
}
|
||||
|
||||
GridStackUI.GridStackDragDropPlugin.registerPlugin(JQueryUIGridStackDragDropPlugin);
|
||||
|
||||
JQueryUIGridStackDragDropPlugin.prototype = Object.create(GridStackUI.GridStackDragDropPlugin.prototype);
|
||||
JQueryUIGridStackDragDropPlugin.prototype.constructor = JQueryUIGridStackDragDropPlugin;
|
||||
|
||||
JQueryUIGridStackDragDropPlugin.prototype.resizable = function(el, opts) {
|
||||
el = $(el);
|
||||
if (opts === 'disable' || opts === 'enable') {
|
||||
el.resizable(opts);
|
||||
} else if (opts === 'option') {
|
||||
var key = arguments[2];
|
||||
var value = arguments[3];
|
||||
el.resizable(opts, key, value);
|
||||
} else {
|
||||
var handles = el.data('gs-resize-handles') ? el.data('gs-resize-handles') :
|
||||
this.grid.opts.resizable.handles;
|
||||
el.resizable($.extend({}, this.grid.opts.resizable, {
|
||||
handles: handles
|
||||
}, {
|
||||
start: opts.start || function() {},
|
||||
stop: opts.stop || function() {},
|
||||
resize: opts.resize || function() {}
|
||||
}));
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
JQueryUIGridStackDragDropPlugin.prototype.draggable = function(el, opts) {
|
||||
el = $(el);
|
||||
if (opts === 'disable' || opts === 'enable') {
|
||||
el.draggable(opts);
|
||||
} else {
|
||||
el.draggable($.extend({}, this.grid.opts.draggable, {
|
||||
containment: (this.grid.opts.isNested && !this.grid.opts.dragOut) ?
|
||||
this.grid.container.parent() :
|
||||
(this.grid.opts.draggable.containment || null),
|
||||
start: opts.start || function() {},
|
||||
stop: opts.stop || function() {},
|
||||
drag: opts.drag || function() {}
|
||||
}));
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
JQueryUIGridStackDragDropPlugin.prototype.droppable = function(el, opts) {
|
||||
el = $(el);
|
||||
el.droppable(opts);
|
||||
return this;
|
||||
};
|
||||
|
||||
JQueryUIGridStackDragDropPlugin.prototype.isDroppable = function(el, opts) {
|
||||
el = $(el);
|
||||
return Boolean(el.data('droppable'));
|
||||
};
|
||||
|
||||
JQueryUIGridStackDragDropPlugin.prototype.on = function(el, eventName, callback) {
|
||||
$(el).on(eventName, callback);
|
||||
return this;
|
||||
};
|
||||
|
||||
scope.JQueryUIGridStackDragDropPlugin = JQueryUIGridStackDragDropPlugin;
|
||||
|
||||
return JQueryUIGridStackDragDropPlugin;
|
||||
});
|
||||
3
node_modules/gridstack/dist/gridstack.jQueryUI.min.js
generated
vendored
Normal file
3
node_modules/gridstack/dist/gridstack.jQueryUI.min.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/** gridstack.js 0.6.4 - JQuery UI Drag&Drop plugin @preserve */
|
||||
!function(t){if("function"==typeof define&&define.amd)define(["jquery","gridstack","exports"],t);else if("undefined"!=typeof exports){try{jQuery=require("jquery")}catch(t){}try{gridstack=require("gridstack")}catch(t){}t(jQuery,gridstack.GridStackUI,exports)}else t(jQuery,GridStackUI,window)}(function(a,e,t){function r(t){e.GridStackDragDropPlugin.call(this,t)}return e.GridStackDragDropPlugin.registerPlugin(r),((r.prototype=Object.create(e.GridStackDragDropPlugin.prototype)).constructor=r).prototype.resizable=function(t,e){if(t=a(t),"disable"===e||"enable"===e)t.resizable(e);else if("option"===e){var r=arguments[2],i=arguments[3];t.resizable(e,r,i)}else{var n=t.data("gs-resize-handles")?t.data("gs-resize-handles"):this.grid.opts.resizable.handles;t.resizable(a.extend({},this.grid.opts.resizable,{handles:n},{start:e.start||function(){},stop:e.stop||function(){},resize:e.resize||function(){}}))}return this},r.prototype.draggable=function(t,e){return t=a(t),"disable"===e||"enable"===e?t.draggable(e):t.draggable(a.extend({},this.grid.opts.draggable,{containment:this.grid.opts.isNested&&!this.grid.opts.dragOut?this.grid.container.parent():this.grid.opts.draggable.containment||null,start:e.start||function(){},stop:e.stop||function(){},drag:e.drag||function(){}})),this},r.prototype.droppable=function(t,e){return(t=a(t)).droppable(e),this},r.prototype.isDroppable=function(t,e){return t=a(t),Boolean(t.data("droppable"))},r.prototype.on=function(t,e,r){return a(t).on(e,r),this},t.JQueryUIGridStackDragDropPlugin=r});
|
||||
//# sourceMappingURL=gridstack.min.map
|
||||
2033
node_modules/gridstack/dist/gridstack.js
generated
vendored
Normal file
2033
node_modules/gridstack/dist/gridstack.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
node_modules/gridstack/dist/gridstack.min.css
generated
vendored
Normal file
6
node_modules/gridstack/dist/gridstack.min.css
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
node_modules/gridstack/dist/gridstack.min.js
generated
vendored
Normal file
9
node_modules/gridstack/dist/gridstack.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/gridstack/dist/gridstack.min.map
generated
vendored
Normal file
1
node_modules/gridstack/dist/gridstack.min.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
253
node_modules/gridstack/doc/CHANGES.md
generated
vendored
Normal file
253
node_modules/gridstack/doc/CHANGES.md
generated
vendored
Normal file
@@ -0,0 +1,253 @@
|
||||
Change log
|
||||
==========================
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
|
||||
|
||||
- [v0.6.4-dev (upcoming changes)](#v064-dev-upcoming-changes)
|
||||
- [v0.6.4 (2020-02-17)](#v064-2020-02-17)
|
||||
- [v0.6.3 (2020-02-05)](#v063-2020-02-05)
|
||||
- [v0.6.2 (2020-02-03)](#v062-2020-02-03)
|
||||
- [v0.6.1 (2020-02-02)](#v061-2020-02-02)
|
||||
- [v0.6.0 (2019-12-24)](#v060-2019-12-24)
|
||||
- [v0.5.5 (2019-11-27)](#v055-2019-11-27)
|
||||
- [v0.5.4 (2019-11-26)](#v054-2019-11-26)
|
||||
- [v0.5.3 (2019-11-20)](#v053-2019-11-20)
|
||||
- [v0.5.2 (2019-11-13)](#v052-2019-11-13)
|
||||
- [v0.5.1 (2019-11-07)](#v051-2019-11-07)
|
||||
- [v0.5.0 (2019-11-06)](#v050-2019-11-06)
|
||||
- [v0.4.0 (2018-05-11)](#v040-2018-05-11)
|
||||
- [v0.3.0 (2017-04-21)](#v030-2017-04-21)
|
||||
- [v0.2.6 (2016-08-17)](#v026-2016-08-17)
|
||||
- [v0.2.5 (2016-03-02)](#v025-2016-03-02)
|
||||
- [v0.2.4 (2016-02-15)](#v024-2016-02-15)
|
||||
- [v0.2.3 (2015-06-23)](#v023-2015-06-23)
|
||||
- [v0.2.2 (2014-12-23)](#v022-2014-12-23)
|
||||
- [v0.2.1 (2014-12-09)](#v021-2014-12-09)
|
||||
- [v0.2.0 (2014-11-30)](#v020-2014-11-30)
|
||||
- [v0.1.0 (2014-11-18)](#v010-2014-11-18)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
## v0.6.4-dev (upcoming changes)
|
||||
|
||||
- TBD
|
||||
|
||||
## v0.6.4 (2020-02-17)
|
||||
|
||||
- fix [#540](https://github.com/gridstack/gridstack.js/issues/540) WebComponent support: CSS file now insert before grid instead of 'head'
|
||||
- fix [#1143](https://github.com/gridstack/gridstack.js/issues/1143) nested grids with different `acceptWidgets` class
|
||||
- fix [#1142](https://github.com/gridstack/gridstack.js/issues/1142) add/remove widget will also trigger change events when it should.
|
||||
- optimized `change` callback to save original x,y,w,h values and only call those that changed [1148](https://github.com/gridstack/gridstack.js/pull/1148)
|
||||
- delete `bower` since [dead](https://snyk.io/blog/bower-is-dead) for a while now
|
||||
|
||||
## v0.6.3 (2020-02-05)
|
||||
|
||||
- fix [#1132](https://github.com/gridstack/gridstack.js/issues/1132) oneColumnMode missing CSS to do layout
|
||||
- del `oneColumnModeClass` / `.grid-stack-one-column-mode` and associated code. If you depended on this, use class `.grid-stack-1` instead since it is 1 column layout anyway [1134](https://github.com/gridstack/gridstack.js/pull/1134)
|
||||
|
||||
## v0.6.2 (2020-02-03)
|
||||
|
||||
- add `oneColumnModeDomSort` true|false to let you specify a custom layout (use dom order instead of x,y) for oneColumnMode `setColumn(1)` [#713](https://github.com/gridstack/gridstack.js/issues/713)
|
||||
- fix oneColumnMode to only restore if we auto went to it as window sizes up [#1125](https://github.com/gridstack/gridstack.js/pull/1125)
|
||||
- editing in 1 column (or few columns) does a better job updating higher layout (track before and after and move items accordingly).
|
||||
Tracking item swap would be even better still. [#1127](https://github.com/gridstack/gridstack.js/pull/1127)
|
||||
|
||||
## v0.6.1 (2020-02-02)
|
||||
|
||||
- fix [#37](https://github.com/gridstack/gridstack.js/issues/37) oneColumnMode (<768px by default) now simply calls `setColumn(1)` and remembers prev columns (so we can restore). This gives
|
||||
us full resize/re-order of items capabilities rather than a locked CSS only layout (see prev rev changes). [#1120](https://github.com/gridstack/gridstack.js/pull/1120)
|
||||
- fix [responsive.html](https://gridstackjs.com/demo/responsive.html) demo [#1121](https://github.com/gridstack/gridstack.js/pull/1121)
|
||||
|
||||
## v0.6.0 (2019-12-24)
|
||||
|
||||
- add `float(val)` to set/get the grid float mode, which will relayout [#1088](https://github.com/gridstack/gridstack.js/pull/1088)
|
||||
- add `compact()` to reclaim any empty space and relayout grid items [#1101](https://github.com/gridstack/gridstack.js/pull/1101)
|
||||
- add `options.dragOut` to let user drag nested grid items out of a parent or not (default false)
|
||||
and jQuery UI `draggable.containment` can now be specified in options. You can now drag&drop between 2 nested grids [#1105](https://github.com/gridstack/gridstack.js/pull/1105)
|
||||
- add `%` as a valid unit for height [#1093](https://github.com/gridstack/gridstack.js/pull/1093). thank you
|
||||
[@trevisanweb](https://github.com/trevisanweb) [@aureality](https://github.com/aureality)
|
||||
[@ZoolWay](https://github.com/ZoolWay)
|
||||
- fix callbacks to get either `added, removed, change` or combination if adding a node require also to change its (x,y) for example.
|
||||
Also you can now call `batchUpdate()` before calling a bunch of `addWidget()` and get a single event callback (more efficient).
|
||||
[#1096](https://github.com/gridstack/gridstack.js/pull/1096)
|
||||
- `removeAll()` is now much faster (no relayout) and calls `removed` event just once with a list [#1097](https://github.com/gridstack/gridstack.js/pull/1097)
|
||||
- `setColumn()` complete re-write and is no longer "Experimental". We now do a reasonable job at sizing/position the widgets (especially 1 column) and
|
||||
also now cache each column layout so you can go back to say 12 column and not loose original layout. [#1098](https://github.com/gridstack/gridstack.js/pull/1098)
|
||||
- fix `addWidget(el)` (no data) would not render item at correct location, and overlap item at (0,0) [#1098](https://github.com/gridstack/gridstack.js/pull/1098)
|
||||
- you can now pre-define size of dragable elements from a sidebar using standard `data-gs-width` and `data-gs-height` - fix
|
||||
[#413](https://github.com/gridstack/gridstack.js/issues/413), [#914](https://github.com/gridstack/gridstack.js/issues/914), [#918](https://github.com/gridstack/gridstack.js/issues/918),
|
||||
[#922](https://github.com/gridstack/gridstack.js/issues/922), [#933](https://github.com/gridstack/gridstack.js/issues/933)
|
||||
thanks [@ermcgrat](https://github.com/ermcgrat) and others for pointing out code issue.
|
||||
|
||||
## v0.5.5 (2019-11-27)
|
||||
|
||||
- min files include rev number/license [#1075](https://github.com/gridstack/gridstack.js/pull/1075)
|
||||
- npm package fix to exclude more temporary content [#1078](https://github.com/gridstack/gridstack.js/pull/1078)
|
||||
- removed `jquery-ui/*` requirements from AMD packing in `gridstack.jQueryUI.js` as it was causing App compile missing errors now that we include a subset of jquery-ui
|
||||
|
||||
## v0.5.4 (2019-11-26)
|
||||
|
||||
- fix for griditems with x=0 placement wrong order (introduced by [#1017](https://github.com/gridstack/gridstack.js/issues/10510174)) ([#1054](https://github.com/gridstack/gridstack.js/issues/1054)).
|
||||
- fix `cellHeight(val)` not working due to style change (introduced by [#937](https://github.com/gridstack/gridstack.js/issues/937)) ([#1068](https://github.com/gridstack/gridstack.js/issues/1068)).
|
||||
- add `gridstack-poly.js` for IE and older browsers, removed `core-js` lib from samples (<1k vs 85k), and all IE8 mentions ([#1061](https://github.com/gridstack/gridstack.js/pull/1061)).
|
||||
- add `jquery-ui.js` (and min.js) as minimal subset we need (55k vs 248k), which is now part of `gridstack.all.js`. Include individual parts if you need your own lib instead of all.js
|
||||
([#1064](https://github.com/gridstack/gridstack.js/pull/1064)).
|
||||
- changed jquery dependency to lowest we can use (>=1.8) ([#629](https://github.com/gridstack/gridstack.js/issues/629)).
|
||||
- add advance demo from web site ([#1073](https://github.com/gridstack/gridstack.js/pull/1073)).
|
||||
|
||||
## v0.5.3 (2019-11-20)
|
||||
|
||||
- grid options `width` is now `column`, `height` now `maxRow`, and `setGridWidth()` now `setColumn()` to match what they are. Old names are still supported (console warnings). Various fixes for custom # of column and re-wrote entire doc section ([#1053](https://github.com/gridstack/gridstack.js/issues/1053)).
|
||||
- fix widgets not animating when `animate: true` is used. on every move, styles were recreated-fix should slightly improve gridstack.js speed ([#937](https://github.com/gridstack/gridstack.js/issues/937)).
|
||||
- fix moving widgets when having multiple grids. jquery-ui workaround ([#1043](https://github.com/gridstack/gridstack.js/issues/1043)).
|
||||
- switch to eslint ([#763](https://github.com/gridstack/gridstack.js/issues/763)) thanks [@rwstoneback](https://github.com/rwstoneback).
|
||||
- fix null values `addWidget()` options ([#1042](https://github.com/gridstack/gridstack.js/issues/1042)).
|
||||
|
||||
## v0.5.2 (2019-11-13)
|
||||
|
||||
- fix undefined `x,y` position messes up grid ([#1017](https://github.com/gridstack/gridstack.js/issues/1017)).
|
||||
- changed code to 2 spaces.
|
||||
- fix minHeight during `onStartMoving()` ([#999](https://github.com/gridstack/gridstack.js/issues/999)).
|
||||
- add `gridstack.d.ts` TypeScript definition file now included - no need to include `@types/gridstack`, easier to update ([#1036](https://github.com/gridstack/gridstack.js/pull/1036)).
|
||||
- add `addWidget(el, options)` to pass object so you don't have to spell 10 params. ([#907](https://github.com/gridstack/gridstack.js/issues/907)).
|
||||
|
||||
## v0.5.1 (2019-11-07)
|
||||
|
||||
- reduced npm package size from 672k to 324k (drop demo, src and extra files)
|
||||
|
||||
## v0.5.0 (2019-11-06)
|
||||
|
||||
- emit `dropped` event when a widget is dropped from one grid into another ([#823](https://github.com/gridstack/gridstack.js/issues/823)).
|
||||
- don't throw error if no bounding scroll element is found ([#891](https://github.com/gridstack/gridstack.js/issues/891)).
|
||||
- don't push locked widgets even if they are at the top of the grid ([#882](https://github.com/gridstack/gridstack.js/issues/882)).
|
||||
- RequireJS and CommonJS now export on the `exports` module fix ([#643](https://github.com/gridstack/gridstack.js/issues/643)).
|
||||
- automatically scroll page when widget is moving beyond viewport ([#827](https://github.com/gridstack/gridstack.js/issues/827)).
|
||||
- removed lodash dependencies ([#693](https://github.com/gridstack/gridstack.js/issues/693)).
|
||||
- don't overwrite globals jQuery when in a modular environment ([#974](https://github.com/gridstack/gridstack.js/pull/974)).
|
||||
- removed z-index from `.grid-stack-item-content` causing child modal dialog clipping ([#984](https://github.com/gridstack/gridstack.js/pull/984)).
|
||||
- convert project to use yarn ([#983](https://github.com/gridstack/gridstack.js/pull/983)).
|
||||
|
||||
## v0.4.0 (2018-05-11)
|
||||
|
||||
- widgets can have their own resize handles. Use `data-gs-resize-handles` element attribute to use. For example, `data-gs-resize-handles="e,w"` will make the particular widget only resize west and east. ([#494](https://github.com/gridstack/gridstack.js/issues/494)).
|
||||
- enable sidebar items to be duplicated properly. Pass `helper: 'clone'` in `draggable` options. ([#661](https://github.com/gridstack/gridstack.js/issues/661), [#396](https://github.com/gridstack/gridstack.js/issues/396), [#499](https://github.com/gridstack/gridstack.js/issues/499)).
|
||||
- fix `staticGrid` grid option ([#743](https://github.com/gridstack/gridstack.js/issues/743))
|
||||
- preserve inline styles when moving/cloning items (thanks [@silverwind](https://github.com/silverwind))
|
||||
- fix bug causing heights not to get set ([#744](https://github.com/gridstack/gridstack.js/issues/744))
|
||||
- allow grid to have min-height, fixes ([#628](https://github.com/gridstack/gridstack.js/issues/628)) thanks [@adumesny](https://github.com/adumesny)
|
||||
- widget x and y are now ints (thanks [@DonnchaC](https://github.com/donnchac))
|
||||
- allow all droppable options (thanks [@vigor-vlad](https://github.com/vigor-vlad))
|
||||
- properly track mouse position in `getCellFromPixel` (thanks [@aletorrado](https://github.com/aletorrado))
|
||||
- remove instance of `!important` (thanks [@krilllind](https://github.com/krilllind))
|
||||
- scroll when moving widget up or down out of viewport ([#827](https://github.com/gridstack/gridstack.js/issues/827))
|
||||
|
||||
## v0.3.0 (2017-04-21)
|
||||
|
||||
- remove placeholder when dragging widget below grid (already worked when dragging left, above, and to the right of grid).
|
||||
- prevent extra checks for removing widget when dragging off grid.
|
||||
- trigger `added` when a widget is added via dropping from one grid to another.
|
||||
- trigger `removed` when a widget is removed via dropping from one grid to another.
|
||||
- trigger `removed` when a widget is removed via dropping on a removable zone ([#607](https://github.com/gridstack/gridstack.js/issues/607) and [#550](https://github.com/gridstack/gridstack.js/issues/550)).
|
||||
- trigger custom event for `resizestop` called `gsresizestop` ([#577](https://github.com/gridstack/gridstack.js/issues/577) and [#398](https://github.com/gridstack/gridstack.js/issues/398)).
|
||||
- prevent dragging/resizing in `oneColumnMode` ([#593](https://github.com/gridstack/gridstack.js/issues/593)).
|
||||
- add `oneColumnModeClass` option to grid.
|
||||
- remove 768px CSS styles, moved to grid-stack-one-column-mode class.
|
||||
- add max-width override on grid-stck-one-column-mode ([#462](https://github.com/gridstack/gridstack.js/issues/462)).
|
||||
- add internal function`isNodeChangedPosition`, minor optimization to move/drag.
|
||||
- drag'n'drop plugin system. Move jQuery UI dependencies to separate plugin file.
|
||||
|
||||
## v0.2.6 (2016-08-17)
|
||||
|
||||
- update requirements to the latest versions of jQuery (v3.1.0+) and jquery-ui (v1.12.0+).
|
||||
- fix jQuery `size()` ([#486](https://github.com/gridstack/gridstack.js/issues/486)).
|
||||
- update `destroy([detachGrid])` call ([#422](https://github.com/gridstack/gridstack.js/issues/422)).
|
||||
- don't mutate options when calling `draggable` and `resizable`. ([#505](https://github.com/gridstack/gridstack.js/issues/505)).
|
||||
- update _notify to allow detach ([#411](https://github.com/gridstack/gridstack.js/issues/411)).
|
||||
- fix code that checks for jquery-ui ([#481](https://github.com/gridstack/gridstack.js/issues/481)).
|
||||
- fix `cellWidth` calculation on empty grid
|
||||
|
||||
## v0.2.5 (2016-03-02)
|
||||
|
||||
- update names to respect js naming convention.
|
||||
- `cellHeight` and `verticalMargin` can now be string (e.g. '3em', '20px') (Thanks to @jlowcs).
|
||||
- add `maxWidth`/`maxHeight` methods.
|
||||
- add `enableMove`/`enableResize` methods.
|
||||
- fix window resize issue [#331](https://github.com/gridstack/gridstack.js/issues/331)).
|
||||
- add options `disableDrag` and `disableResize`.
|
||||
- fix `batchUpdate`/`commit` (Thank to @radiolips)
|
||||
- remove dependency of FontAwesome
|
||||
- RTL support
|
||||
- `'auto'` value for `cellHeight` option
|
||||
- fix `setStatic` method
|
||||
- add `setAnimation` method to API
|
||||
- add `setColumn` method ([#227](https://github.com/gridstack/gridstack.js/issues/227))
|
||||
- add `removable`/`removeTimeout` *(experimental)*
|
||||
- add `detachGrid` parameter to `destroy` method ([#216](https://github.com/gridstack/gridstack.js/issues/216)) (thanks @jhpedemonte)
|
||||
- add `useOffset` parameter to `getCellFromPixel` method ([#237](https://github.com/gridstack/gridstack.js/issues/237))
|
||||
- add `minWidth`, `maxWidth`, `minHeight`, `maxHeight`, `id` parameters to `addWidget` ([#188](https://github.com/gridstack/gridstack.js/issues/188))
|
||||
- add `added` and `removed` events for when a widget is added or removed, respectively. ([#54](https://github.com/gridstack/gridstack.js/issues/54))
|
||||
- add `acceptWidgets` parameter. Widgets can now be draggable between grids or from outside *(experimental)*
|
||||
|
||||
## v0.2.4 (2016-02-15)
|
||||
|
||||
- fix closure compiler/linter warnings
|
||||
- add `staticGrid` option.
|
||||
- add `minWidth`/`minHeight` methods (Thanks to @cvillemure)
|
||||
- add `destroy` method (Thanks to @zspitzer)
|
||||
- add `placeholderText` option (Thanks to @slauyama)
|
||||
- add `handleClass` option.
|
||||
- add `makeWidget` method.
|
||||
- lodash v 4.x support (Thanks to @andrewr88)
|
||||
|
||||
## v0.2.3 (2015-06-23)
|
||||
|
||||
- gridstack-extra.css
|
||||
- add support of lodash.js
|
||||
- add `isAreaEmpty` method
|
||||
- nested grids
|
||||
- add `batchUpdate`/`commit` methods
|
||||
- add `update` method
|
||||
- allow to override `resizable`/`draggable` options
|
||||
- add `disable`/`enable` methods
|
||||
- add `getCellFromPixel` (thanks to @juchi)
|
||||
- AMD support
|
||||
- fix nodes sorting
|
||||
- improved touch devices support
|
||||
- add `alwaysShowResizeHandle` option
|
||||
- minor fixes and improvements
|
||||
|
||||
## v0.2.2 (2014-12-23)
|
||||
|
||||
- fix grid initialization
|
||||
- add `cellHeight`/`cellWidth` API methods
|
||||
- fix boolean attributes ([#31](https://github.com/gridstack/gridstack.js/issues/31))
|
||||
|
||||
## v0.2.1 (2014-12-09)
|
||||
|
||||
- add widgets locking ([#19](https://github.com/gridstack/gridstack.js/issues/19))
|
||||
- add `willItFit` API method
|
||||
- fix auto-positioning ([#20](https://github.com/gridstack/gridstack.js/issues/20))
|
||||
- add animation (thanks to @ishields)
|
||||
- fix `y` coordinate calculation when dragging ([#18](https://github.com/gridstack/gridstack.js/issues/18))
|
||||
- fix `removeWidget` ([#16](https://github.com/gridstack/gridstack.js/issues/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 `removeAll` 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.
|
||||
514
node_modules/gridstack/doc/README.md
generated
vendored
Normal file
514
node_modules/gridstack/doc/README.md
generated
vendored
Normal file
@@ -0,0 +1,514 @@
|
||||
gridstack.js API
|
||||
================
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
|
||||
|
||||
- [Options](#options)
|
||||
- [Grid attributes](#grid-attributes)
|
||||
- [Item attributes](#item-attributes)
|
||||
- [Events](#events)
|
||||
- [added(event, items)](#addedevent-items)
|
||||
- [change(event, items)](#changeevent-items)
|
||||
- [disable(event)](#disableevent)
|
||||
- [dragstart(event, ui)](#dragstartevent-ui)
|
||||
- [dragstop(event, ui)](#dragstopevent-ui)
|
||||
- [dropped(event, previousWidget, newWidget)](#droppedevent-previouswidget-newwidget)
|
||||
- [enable(event)](#enableevent)
|
||||
- [removed(event, items)](#removedevent-items)
|
||||
- [resizestart(event, ui)](#resizestartevent-ui)
|
||||
- [gsresizestop(event, ui)](#gsresizestopevent-ui)
|
||||
- [API](#api)
|
||||
- [addWidget(el, [options])](#addwidgetel-options)
|
||||
- [addWidget(el, [x, y, width, height, autoPosition, minWidth, maxWidth, minHeight, maxHeight, id])](#addwidgetel-x-y-width-height-autoposition-minwidth-maxwidth-minheight-maxheight-id)
|
||||
- [batchUpdate()](#batchupdate)
|
||||
- [compact()](#compact)
|
||||
- [cellHeight()](#cellheight)
|
||||
- [cellHeight(val, noUpdate)](#cellheightval-noupdate)
|
||||
- [cellWidth()](#cellwidth)
|
||||
- [commit()](#commit)
|
||||
- [destroy([detachGrid])](#destroydetachgrid)
|
||||
- [disable()](#disable)
|
||||
- [enable()](#enable)
|
||||
- [enableMove(doEnable, includeNewWidgets)](#enablemovedoenable-includenewwidgets)
|
||||
- [enableResize(doEnable, includeNewWidgets)](#enableresizedoenable-includenewwidgets)
|
||||
- [float(val?)](#floatval)
|
||||
- [getCellFromPixel(position[, useOffset])](#getcellfrompixelposition-useoffset)
|
||||
- [isAreaEmpty(x, y, width, height)](#isareaemptyx-y-width-height)
|
||||
- [locked(el, val)](#lockedel-val)
|
||||
- [makeWidget(el)](#makewidgetel)
|
||||
- [maxHeight(el, val)](#maxheightel-val)
|
||||
- [minHeight(el, val)](#minheightel-val)
|
||||
- [maxWidth(el, val)](#maxwidthel-val)
|
||||
- [minWidth(el, val)](#minwidthel-val)
|
||||
- [movable(el, val)](#movableel-val)
|
||||
- [move(el, x, y)](#moveel-x-y)
|
||||
- [removeWidget(el[, detachNode])](#removewidgetel-detachnode)
|
||||
- [removeAll([detachNode])](#removealldetachnode)
|
||||
- [resize(el, width, height)](#resizeel-width-height)
|
||||
- [resizable(el, val)](#resizableel-val)
|
||||
- [setAnimation(doAnimate)](#setanimationdoanimate)
|
||||
- [setColumn(column, doNotPropagate)](#setcolumncolumn-donotpropagate)
|
||||
- [setStatic(staticValue)](#setstaticstaticvalue)
|
||||
- [update(el, x, y, width, height)](#updateel-x-y-width-height)
|
||||
- [verticalMargin()](#verticalmargin)
|
||||
- [verticalMargin(value, noUpdate)](#verticalmarginvalue-noupdate)
|
||||
- [willItFit(x, y, width, height, autoPosition)](#willitfitx-y-width-height-autoposition)
|
||||
- [Utils](#utils)
|
||||
- [GridStackUI.Utils.sort(nodes[, dir[, width]])](#gridstackuiutilssortnodes-dir-width)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
## Options
|
||||
|
||||
- `acceptWidgets` - accept widgets dragged from other grids or from outside (default: `false`). Can be:
|
||||
* `true` (uses `'.grid-stack-item'` class filter) or `false`
|
||||
* string for explicit class name
|
||||
* function (i: number, element: Element) returning a boolean. See [example](http://gridstack.github.io/gridstack.js/demo/two.html)
|
||||
- `alwaysShowResizeHandle` - if `true` the resizing handles are shown even if the user is not hovering over the widget
|
||||
(default: `false`)
|
||||
- `animate` - turns animation on (default: `false`)
|
||||
- `auto` - if `false` gridstack will not initialize existing items (default: `true`)
|
||||
- `cellHeight` - one cell height (default: `60`). Can be:
|
||||
* an integer (px)
|
||||
* a string (ex: '100px', '10em', '10rem', '10%')
|
||||
* 0 or null, in which case the library will not generate styles for rows. Everything must be defined in CSS files.
|
||||
* `'auto'` - height will be calculated to match cell width (initial square grid).
|
||||
- `column` - number of columns (default: `12`) which can change on the fly with `setColumn()` as well. See [example](http://gridstackjs.com/demo/column.html)
|
||||
- `ddPlugin` - class that implement drag'n'drop functionallity for gridstack. If `false` grid will be static. (default: `null` - first available plugin will be used)
|
||||
- `disableDrag` - disallows dragging of widgets (default: `false`).
|
||||
- `disableOneColumnMode` - disables the onColumnMode when the window width is less than minWidth (default: 'false')
|
||||
- `disableResize` - disallows resizing of widgets (default: `false`).
|
||||
- `draggable` - allows to override jQuery UI draggable options. (default: `{handle: '.grid-stack-item-content', scroll: false, appendTo: 'body', containment: null}`)
|
||||
- `dragOut` to let user drag nested grid items out of a parent or not (default false) See [example](http://gridstackjs.com/demo/nested.html)
|
||||
- `float` - enable floating widgets (default: `false`) See [example](http://gridstackjs.com/demo/float.html)
|
||||
- `handle` - draggable handle selector (default: `'.grid-stack-item-content'`)
|
||||
- `handleClass` - draggable handle class (e.g. `'grid-stack-item-content'`). If set `handle` is ignored (default: `null`)
|
||||
- `itemClass` - widget class (default: `'grid-stack-item'`)
|
||||
- `maxRow` - maximum rows amount. Default is `0` which means no maximum rows
|
||||
- `minWidth` - minimal width. If window width is less than or equal to, grid will be shown in one-column mode (default: `768`)
|
||||
- `oneColumnModeDomSort` - set to `true` if you want oneColumnMode to use the DOM order and ignore x,y from normal multi column layouts during sorting. This enables you to have custom 1 column layout that differ from the rest. (default?: `false`)
|
||||
- `placeholderClass` - class for placeholder (default: `'grid-stack-placeholder'`)
|
||||
- `placeholderText` - placeholder default content (default: `''`)
|
||||
- `resizable` - allows to override jQuery UI resizable options. (default: `{autoHide: true, handles: 'se'}`)
|
||||
- `removable` - if `true` widgets could be removed by dragging outside of the grid. It could also be a jQuery selector string, in this case widgets will be removed by dropping them there (default: `false`) See [example](http://gridstackjs.com/demo/two.html)
|
||||
- `removeTimeout` - time in milliseconds before widget is being removed while dragging outside of the grid. (default: `2000`)
|
||||
- `rtl` - if `true` turns grid to RTL. Possible values are `true`, `false`, `'auto'` (default: `'auto'`) See [example](http://gridstackjs.com/demo/rtl.html)
|
||||
- `staticGrid` - makes grid static (default `false`). If true widgets are not movable/resizable. You don't even need jQueryUI draggable/resizable. A CSS class `grid-stack-static` is also added to the container.
|
||||
- `verticalMargin` - vertical gap size (default: `20`). Can be:
|
||||
* an integer (px)
|
||||
* a string (ex: '2em', '20px', '2rem')
|
||||
|
||||
## Grid attributes
|
||||
|
||||
- `data-gs-animate` - turns animation on
|
||||
- `data-gs-column` - amount of columns. Setting non-default value must be supported by equivalent change in CSS, [see docs here](https://github.com/gridstack/gridstack.js#change-grid-columns).
|
||||
- `data-gs-max-row` - maximum rows amount. Default is `0` which means no maximum rows.
|
||||
- `data-gs-current-height` - current rows amount. Set by the library only. Can be used by the CSS rules.
|
||||
|
||||
## Item attributes
|
||||
|
||||
- `data-gs-x`, `data-gs-y` - (number) element position in row/column. Note: if one is missing this will `autoPosition` the item
|
||||
- `data-gs-width`, `data-gs-height` - (number) element size in row/column
|
||||
- `data-gs-id`- (number | string) good for quick identification (for example in change event)
|
||||
- `data-gs-max-width`, `data-gs-min-width`, `data-gs-max-height`, `data-gs-min-height` - element constraints in row/column
|
||||
- `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. Having either one missing will also do that.
|
||||
- `data-gs-locked` - the widget will be locked. It means another widget wouldn't be able to move it during dragging or resizing.
|
||||
The widget can still be dragged or resized. You need to add `data-gs-no-resize` and `data-gs-no-move` attributes
|
||||
to completely lock the widget.
|
||||
- `data-gs-resize-handles` - sets resize handles for a specific widget.
|
||||
|
||||
## Events
|
||||
|
||||
### added(event, items)
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').on('added', function(event, items) {
|
||||
for (var i = 0; i < items.length; i++) {
|
||||
console.log('item added');
|
||||
console.log(items[i]);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
### change(event, items)
|
||||
|
||||
Occurs when adding/removing widgets or existing widgets change their position/size
|
||||
|
||||
```javascript
|
||||
var serializeWidgetMap = function(items) {
|
||||
console.log(items);
|
||||
};
|
||||
|
||||
$('.grid-stack').on('change', function(event, items) {
|
||||
serializeWidgetMap(items);
|
||||
});
|
||||
```
|
||||
|
||||
### disable(event)
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').on('disable', function(event) {
|
||||
var grid = event.target;
|
||||
});
|
||||
```
|
||||
|
||||
### dragstart(event, ui)
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').on('dragstart', function(event, ui) {
|
||||
var grid = this;
|
||||
var element = event.target;
|
||||
});
|
||||
```
|
||||
|
||||
### dragstop(event, ui)
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').on('dragstop', function(event, ui) {
|
||||
var grid = this;
|
||||
var element = event.target;
|
||||
});
|
||||
```
|
||||
|
||||
### dropped(event, previousWidget, newWidget)
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').on('dropped', function(event, previousWidget, newWidget) {
|
||||
console.log('Removed widget that was dragged out of grid:', previousWidget);
|
||||
console.log('Added widget in dropped grid:', newWidget);
|
||||
});
|
||||
```
|
||||
|
||||
### enable(event)
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').on('enable', function(event) {
|
||||
var grid = event.target;
|
||||
});
|
||||
```
|
||||
|
||||
### removed(event, items)
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').on('removed', function(event, items) {
|
||||
for (var i = 0; i < items.length; i++) {
|
||||
console.log('item removed');
|
||||
console.log(items[i]);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
### resizestart(event, ui)
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').on('resizestart', function(event, ui) {
|
||||
var grid = this;
|
||||
var element = event.target;
|
||||
});
|
||||
```
|
||||
|
||||
### gsresizestop(event, ui)
|
||||
**Note**: this is a custom event name that is guaranteed to be called
|
||||
**after** the jqueryui resizestop event where we update `data-gs-width` and `data-gs-height`.
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').on('gsresizestop', function(event, elem) {
|
||||
var newHeight = $(elem).attr('data-gs-height');
|
||||
});
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### addWidget(el, [options])
|
||||
|
||||
Creates new widget and returns it. Options is an object containing the fields x,y,width,height,etc... described below.
|
||||
|
||||
### addWidget(el, [x, y, width, height, autoPosition, minWidth, maxWidth, minHeight, maxHeight, id])
|
||||
|
||||
Creates new widget and returns it.
|
||||
|
||||
Parameters:
|
||||
|
||||
- `el` - widget to add
|
||||
- `x`, `y`, `width`, `height` - widget position/dimensions (optional)
|
||||
- `autoPosition` - if `true` then `x`, `y` parameters will be ignored and widget will be places on the first available
|
||||
position (optional)
|
||||
- `minWidth` minimum width allowed during resize/creation (optional)
|
||||
- `maxWidth` maximum width allowed during resize/creation (optional)
|
||||
- `minHeight` minimum height allowed during resize/creation (optional)
|
||||
- `maxHeight` maximum height allowed during resize/creation (optional)
|
||||
- `id` value for `data-gs-id` (optional)
|
||||
|
||||
Widget will be always placed even if result height is more than actual grid height. You need to use `willItFit` method
|
||||
before calling `addWidget` for additional check.
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').gridstack();
|
||||
var grid = $('.grid-stack').data('gridstack');
|
||||
grid.addWidget(el, 0, 0, 3, 2, true);
|
||||
```
|
||||
|
||||
### batchUpdate()
|
||||
|
||||
starts batch updates. You will see no changes until `commit()` method is called.
|
||||
|
||||
### compact()
|
||||
|
||||
relayout grid items to reclaim any empty space.
|
||||
|
||||
### cellHeight()
|
||||
|
||||
Gets current cell height.
|
||||
|
||||
### cellHeight(val, noUpdate)
|
||||
|
||||
Update current cell height. This method rebuilds an internal CSS stylesheet (unless optional noUpdate=true). Note: You can expect performance issues if
|
||||
call this method too often.
|
||||
|
||||
```javascript
|
||||
grid.cellHeight(grid.cellWidth() * 1.2);
|
||||
```
|
||||
|
||||
### cellWidth()
|
||||
|
||||
Gets current cell width.
|
||||
|
||||
### commit()
|
||||
|
||||
Ends batch updates. Updates DOM nodes. You must call it after `batchUpdate()`.
|
||||
|
||||
### destroy([detachGrid])
|
||||
|
||||
Destroys a grid instance.
|
||||
|
||||
Parameters:
|
||||
|
||||
- `detachGrid` - if `false` nodes and grid will not be removed from the DOM (Optional. Default `true`).
|
||||
|
||||
### disable()
|
||||
|
||||
Disables widgets moving/resizing. This is a shortcut for:
|
||||
|
||||
```javascript
|
||||
grid.movable('.grid-stack-item', false);
|
||||
grid.resizable('.grid-stack-item', false);
|
||||
```
|
||||
|
||||
### enable()
|
||||
|
||||
Enables widgets moving/resizing. This is a shortcut for:
|
||||
|
||||
```javascript
|
||||
grid.movable('.grid-stack-item', true);
|
||||
grid.resizable('.grid-stack-item', true);
|
||||
```
|
||||
|
||||
### enableMove(doEnable, includeNewWidgets)
|
||||
|
||||
Enables/disables widget moving. `includeNewWidgets` will force new widgets to be draggable as per `doEnable`'s value by changing the `disableDrag` grid option. This is a shortcut for:
|
||||
|
||||
```javascript
|
||||
grid.movable(this.container.children('.' + this.opts.itemClass), doEnable);
|
||||
```
|
||||
|
||||
### enableResize(doEnable, includeNewWidgets)
|
||||
|
||||
Enables/disables widget resizing. `includeNewWidgets` will force new widgets to be resizable as per `doEnable`'s value by changing the `disableResize` grid option. This is a shortcut for:
|
||||
|
||||
```javascript
|
||||
grid.resizable(this.container.children('.' + this.opts.itemClass), doEnable);
|
||||
```
|
||||
|
||||
### float(val?)
|
||||
|
||||
set/get floating widgets (default: `false`)
|
||||
|
||||
- `val` - boolean to set true/false, else get the current value
|
||||
|
||||
### getCellFromPixel(position[, useOffset])
|
||||
|
||||
Get the position of the cell under a pixel on screen.
|
||||
|
||||
Parameters :
|
||||
|
||||
- `position` - the position of the pixel to resolve in absolute coordinates, as an object with `top` and `left` properties
|
||||
- `useOffset` - if `true`, value will be based on offset vs position (Optional. Default `false`). Useful when grid is within `position: relative` element.
|
||||
|
||||
Returns an object with properties `x` and `y` i.e. the column and row in the grid.
|
||||
|
||||
### isAreaEmpty(x, y, width, height)
|
||||
|
||||
Checks if specified area is empty.
|
||||
|
||||
### locked(el, val)
|
||||
|
||||
Locks/unlocks widget.
|
||||
|
||||
- `el` - widget to modify.
|
||||
- `val` - if `true` widget will be locked.
|
||||
|
||||
### makeWidget(el)
|
||||
|
||||
If you add elements to your gridstack container by hand, you have to tell gridstack afterwards to make them widgets. If you want gridstack to add the elements for you, use `addWidget` instead.
|
||||
Makes the given element a widget and returns it.
|
||||
|
||||
Parameters:
|
||||
|
||||
- `el` - element to convert to a widget
|
||||
|
||||
```javascript
|
||||
$('.grid-stack').gridstack();
|
||||
|
||||
$('.grid-stack').append('<div id="gsi-1" data-gs-x="0" data-gs-y="0" data-gs-width="3" data-gs-height="2" data-gs-auto-position="true"></div>')
|
||||
var grid = $('.grid-stack').data('gridstack');
|
||||
grid.makeWidget('gsi-1');
|
||||
```
|
||||
|
||||
### maxHeight(el, val)
|
||||
|
||||
Set the `maxHeight` for a widget.
|
||||
|
||||
- `el` - widget to modify.
|
||||
- `val` - A numeric value of the number of rows
|
||||
|
||||
### minHeight(el, val)
|
||||
|
||||
Set the `minHeight` for a widget.
|
||||
|
||||
- `el` - widget to modify.
|
||||
- `val` - A numeric value of the number of rows
|
||||
|
||||
### maxWidth(el, val)
|
||||
|
||||
Set the `maxWidth` for a widget.
|
||||
|
||||
- `el` - widget to modify.
|
||||
- `val` - A numeric value of the number of columns
|
||||
|
||||
### minWidth(el, val)
|
||||
|
||||
Set the `minWidth` for a widget.
|
||||
|
||||
- `el` - widget to modify.
|
||||
- `val` - A numeric value of the number of columns
|
||||
|
||||
### movable(el, val)
|
||||
|
||||
Enables/Disables moving.
|
||||
|
||||
- `el` - widget to modify
|
||||
- `val` - if `true` widget will be draggable.
|
||||
|
||||
### 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.
|
||||
|
||||
### removeWidget(el[, detachNode])
|
||||
|
||||
Removes widget from the grid.
|
||||
|
||||
Parameters:
|
||||
|
||||
- `el` - widget to remove.
|
||||
- `detachNode` - if `false` node won't be removed from the DOM (Optional. Default `true`).
|
||||
|
||||
### removeAll([detachNode])
|
||||
|
||||
Removes all widgets from the grid.
|
||||
|
||||
Parameters:
|
||||
|
||||
- `detachNode` - if `false` nodes won't be removed from the DOM (Optional. Default `true`).
|
||||
|
||||
### 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.
|
||||
|
||||
### resizable(el, val)
|
||||
|
||||
Enables/Disables resizing.
|
||||
|
||||
- `el` - widget to modify
|
||||
- `val` - if `true` widget will be resizable.
|
||||
|
||||
### setAnimation(doAnimate)
|
||||
|
||||
Toggle the grid animation state. Toggles the `grid-stack-animate` class.
|
||||
|
||||
- `doAnimate` - if `true` the grid will animate.
|
||||
|
||||
### setColumn(column, doNotPropagate)
|
||||
|
||||
Modify number of columns in the grid. Will update existing widgets to conform to new number of columns,
|
||||
as well as cache the original layout so you can revert back to previous positions without loss.
|
||||
Requires `gridstack-extra.css` or `gridstack-extra.min.css` for [1-11],
|
||||
else you will need to generate correct CSS (see https://github.com/gridstack/gridstack.js#change-grid-columns)
|
||||
|
||||
- `column` - Integer > 0 (default 12).
|
||||
- `doNotPropagate` - if true existing widgets will not be updated.
|
||||
|
||||
### setStatic(staticValue)
|
||||
|
||||
Toggle the grid static state. Also toggle the `grid-stack-static` class.
|
||||
|
||||
- `staticValue` - if `true` the grid becomes static.
|
||||
|
||||
### update(el, x, y, width, height)
|
||||
|
||||
Parameters:
|
||||
|
||||
- `el` - widget to move
|
||||
- `x`, `y` - new position. If value is `null` or `undefined` it will be ignored.
|
||||
- `width`, `height` - new dimensions. If value is `null` or `undefined` it will be ignored.
|
||||
|
||||
Updates widget position/size.
|
||||
|
||||
### verticalMargin()
|
||||
|
||||
returns current vertical margin value.
|
||||
|
||||
### verticalMargin(value, noUpdate)
|
||||
|
||||
Parameters:
|
||||
|
||||
- `value` - new vertical margin value.
|
||||
- `noUpdate` - if true, styles will not be updated.
|
||||
|
||||
### willItFit(x, y, width, height, autoPosition)
|
||||
|
||||
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.willItFit(newNode.x, newNode.y, newNode.width, newNode.height, true)) {
|
||||
grid.addWidget(newNode.el, newNode.x, newNode.y, newNode.width, newNode.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 (optional)
|
||||
- `width` - width of the grid. If `undefined` the width will be calculated automatically (optional).
|
||||
73
node_modules/gridstack/package.json
generated
vendored
Normal file
73
node_modules/gridstack/package.json
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"name": "gridstack",
|
||||
"version": "0.6.4",
|
||||
"description": "gridstack.js for dashboard layout and creation, with many wrappers (React, Angular, Ember, knockout...)",
|
||||
"main": "dist/gridstack.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gridstack/gridstack.js.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "grunt && doctoc ./README.md && doctoc ./doc/README.md && doctoc ./doc/CHANGES.md",
|
||||
"test": "grunt lint && karma start karma.conf.js",
|
||||
"lint": "grunt lint",
|
||||
"reset": "rm -rf dist node_modules",
|
||||
"prepublishOnly": "yarn build"
|
||||
},
|
||||
"keywords": [
|
||||
"gridstack.js",
|
||||
"grid",
|
||||
"gridster",
|
||||
"layout",
|
||||
"responsive",
|
||||
"dashboard",
|
||||
"resize",
|
||||
"drag&drop",
|
||||
"widgets",
|
||||
"Angular",
|
||||
"React",
|
||||
"Typescript"
|
||||
],
|
||||
"author": "Pavel Reznikov <pashka.reznikov@gmail.com>",
|
||||
"contributors": [
|
||||
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)",
|
||||
"Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/gridstack/gridstack.js/issues"
|
||||
},
|
||||
"homepage": "http://gridstack.github.io/gridstack.js/",
|
||||
"dependencies": {
|
||||
"jquery": "^1.8 || 2 || 3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"connect": "^3.6.6",
|
||||
"core-js": "^3.0.0",
|
||||
"coveralls": "^3.0.3",
|
||||
"doctoc": "^1.4.0",
|
||||
"grunt": "^1.0.4",
|
||||
"grunt-cli": "^1.3.2",
|
||||
"grunt-contrib-connect": "^2.0.0",
|
||||
"grunt-contrib-copy": "^1.0.0",
|
||||
"grunt-contrib-cssmin": "^3.0.0",
|
||||
"grunt-contrib-uglify": "^4.0.1",
|
||||
"grunt-contrib-watch": "^1.1.0",
|
||||
"grunt-eslint": "^20.1.0",
|
||||
"grunt-protractor-runner": "^5.0.0",
|
||||
"grunt-protractor-webdriver": "^0.2.5",
|
||||
"grunt-sass": "2.1.0",
|
||||
"jasmine-core": "^3.3.0",
|
||||
"karma": "^4.0.1",
|
||||
"karma-chrome-launcher": "^2.2.0",
|
||||
"karma-coverage": "^1.1.2",
|
||||
"karma-coveralls": "^2.1.0",
|
||||
"karma-jasmine": "^2.0.1",
|
||||
"puppeteer": "^1.13.0",
|
||||
"serve-static": "^1.13.2"
|
||||
},
|
||||
"resolutions": {
|
||||
"lodash": "^4.17.13",
|
||||
"js-yaml": "^3.13.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user