Skip to content

Commit e32c513

Browse files
committed
Merge branch 'h5' into develop
2 parents 6d690d9 + 56d0bbb commit e32c513

Some content is hidden

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

53 files changed

+2973
-1558
lines changed

Gruntfile.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ module.exports = function(grunt) {
4040
dist: {
4141
files: {
4242
'dist/gridstack-poly.js': ['src/gridstack-poly.js'],
43-
//'dist/jq/jquery.js': ['src/jq/jquery.js'],
44-
//'dist/jq/jquery-ui.js': ['src/jq/jquery-ui.js'],
4543
'dist/src/gridstack.scss': ['src/gridstack.scss'],
4644
'dist/src/gridstack-extra.scss': ['src/gridstack-extra.scss'],
4745
}
@@ -58,14 +56,6 @@ module.exports = function(grunt) {
5856
files: {
5957
'dist/jq/jquery.js': 'src/jq/jquery.js',
6058
'dist/jq/jquery-ui.js': 'src/jq/jquery-ui.js',
61-
/*
62-
'dist/jq/gridstack-dd-jqueryui.min.js': 'dist/jq/gridstack-dd-jqueryui.js',
63-
'dist/gridstack-dd.min.js': 'dist/gridstack-dd.js',
64-
'dist/gridstack-engine.min.js': 'dist/gridstack-engine.js',
65-
'dist/gridstack-poly.min.js': 'src/gridstack-poly.js',
66-
'dist/types.min.js': 'dist/types.js',
67-
'dist/utils.min.js': 'dist/utils.js',
68-
*/
6959
}
7060
}
7161
},

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ alternatively in html
7878

7979
```html
8080
<link href="node_modules/gridstack/dist/gridstack.min.css" rel="stylesheet"/>
81-
<script src="node_modules/gridstack/dist/gridstack.all.js"></script>
81+
<script src="node_modules/gridstack/dist/gridstack-h5.js"></script>
8282
```
8383

8484
## Basic usage
@@ -128,7 +128,7 @@ see [jsfiddle sample](https://jsfiddle.net/adumesny/jqhkry7g) as running example
128128

129129
## Requirements
130130

131-
GridStack no longer requires external dependencies as of v1.0.0 (lodash was removed in v0.5.0 and jquery API in v1.0.0). All you need to include is `gridstack.all.js` and `gridstack.min.css` (layouts are done using CSS column based %).
131+
GridStack no longer requires external dependencies as of v1.0.0 (lodash was removed in v0.5.0 and jquery API in v1.0.0). All you need to include is `gridstack-h5.js` and `gridstack.min.css` (layouts are done using CSS column based %).
132132

133133
## API Documentation
134134

@@ -252,7 +252,7 @@ Please use [jQuery UI Touch Punch](https://github.com/furf/jquery-ui-touch-punch
252252
working on touch-based devices.
253253

254254
```html
255-
<script src="gridstack.all.js"></script>
255+
<script src="gridstack-jq.js"></script>
256256
<script src="jquery.ui.touch-punch.min.js"></script>
257257
```
258258

@@ -359,12 +359,11 @@ v2 is a Typescript rewrite of 1.x, removing all jquery events, using classes and
359359
360360
# jQuery Application
361361
362-
We're working on implementing HTML5 drag'n'drop through the plugin system. Right now it is still jquery-ui based. Because of that we are still bundling `jquery` (3.5.1) + `jquery-ui` (1.12.1 minimal drag|drop|resize) internally in `gridstack.all.js`. IFF your app needs to bring your own version instead, you should **instead** include `gridstack-poly.min.js` (optional IE support) + `gridstack.min.js` + `gridstack.jQueryUI.min.js` after you import your JQ libs. But note that there are issue with jQuery and ES6 import (see [1306](https://github.com/gridstack/gridstack.js/issues/1306)).
362+
We now have a native HTML5 drag'n'drop through the plugin system (default), but the jquery-ui version can be used instead. It will bundle `jquery` (3.5.1) + `jquery-ui` (1.12.1 minimal drag|drop|resize) in `gridstack-jq.js`. IFF your app needs to bring your own version instead, you should **instead** include `gridstack-poly.min.js` (optional IE support) + `gridstack.min.js` + `gridstack.jQueryUI.min.js` after you import your JQ libs. But note that there are issue with jQuery and ES6 import (see [1306](https://github.com/gridstack/gridstack.js/issues/1306)).
363363
364-
Note: v2.0.0 does not currently support importing GridStack Drag&Drop without also including our jquery + jqueryui. Still trying to figure how to make that bundle possible. You will have to use 1.x
365-
366-
As for events, you can still use `$(".grid-stack").on(...)` while jqueryui is used internally for things we don't support, but recommended you don't as that will get dropped at some point.
364+
NOTE: v2.x / v3.0.0 does not currently support importing GridStack Drag&Drop without also including our jquery + jquery-ui. Still trying to figure how to make that bundle possible. You will have to use 1.x for now...
367365
366+
As for events, you can still use `$(".grid-stack").on(...)` for the version that uses jquery-ui for things we don't support.
368367
369368
# Changes
370369

demo/advance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script type="module" src="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons/ionicons.esm.js"></script>
1414
<script nomodule="" src="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons/ionicons.js"></script>
1515

16-
<script src="../dist/gridstack.all.js"></script>
16+
<script src="../dist/gridstack-h5.js"></script>
1717

1818
<style type="text/css">
1919
.grid-stack-item-removing {

demo/anijs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="stylesheet" href="https://anijs.github.io/lib/anicollection/anicollection.css" />
1010
<link rel="stylesheet" href="demo.css"/>
1111

12-
<script src="../dist/gridstack.all.js"></script>
12+
<script src="../dist/gridstack-h5.js"></script>
1313
<script src="https://cdnjs.cloudflare.com/ajax/libs/AniJS/0.9.3/anijs.js"></script>
1414
</head>
1515
<body>

demo/column.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<link rel="stylesheet" href="demo.css"/>
1010
<link rel="stylesheet" href="../dist/gridstack-extra.css"/>
11-
<script src="../dist/gridstack.all.js"></script>
11+
<script src="../dist/gridstack-h5.js"></script>
1212
</head>
1313
<body>
1414
<div class="container-fluid">

demo/experiment/test.html

Lines changed: 0 additions & 86 deletions
This file was deleted.

demo/experiment/test2.html

Lines changed: 0 additions & 37 deletions
This file was deleted.

demo/float.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Float grid demo</title>
88

99
<link rel="stylesheet" href="demo.css"/>
10-
<script src="../dist/gridstack.all.js"></script>
10+
<script src="../dist/gridstack-h5.js"></script>
1111

1212
</head>
1313
<body>

demo/knockout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="stylesheet" href="demo.css"/>
1010

1111
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.0/knockout-debug.js"></script>
12-
<script src="../dist/gridstack.all.js"></script>
12+
<script src="../dist/gridstack-h5.js"></script>
1313
</head>
1414
<body>
1515
<div class="container-fluid">

demo/locked.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Locked demo</title>
88

99
<link rel="stylesheet" href="demo.css"/>
10-
<script src="../dist/gridstack.all.js"></script>
10+
<script src="../dist/gridstack-h5.js"></script>
1111
</style>
1212
</head>
1313
<body>

0 commit comments

Comments
 (0)