Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4394528

Browse files
authored
Merge pull request gridstack#1350 from adumesny/typescript
TS: rev 2.0.0
2 parents 054b3dc + 876de7d commit 4394528

11 files changed

+16
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ alternatively in html
9494
or using CDN (minimized):
9595

9696
```html
97-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]-rc2/dist/gridstack.min.css" />
98-
<script src="https://cdn.jsdelivr.net/npm/[email protected]-rc2/dist/gridstack.all.js"></script>
97+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/gridstack.min.css" />
98+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gridstack.all.js"></script>
9999
```
100100

101101
.map files are included for debugging purposes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridstack",
3-
"version": "2.0.0-rc3",
3+
"version": "2.0.0",
44
"description": "TypeScript/Javascript lib for dashboard layout and creation, no external dependencies, with many wrappers (React, Angular, Ember, knockout...)",
55
"main": "./dist/gridstack.js",
66
"types": "./dist/gridstack.d.ts",

src/gridstack-dd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// gridstack-dd.ts 2.0.0-rc2 @preserve
1+
// gridstack-dd.ts 2.0.0 @preserve
22

33
/**
44
* https://gridstackjs.com/

src/gridstack-engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// gridstack-engine.ts 2.0.0-rc2 @preserve
1+
// gridstack-engine.ts 2.0.0 @preserve
22

33
/**
44
* https://gridstackjs.com/

src/gridstack-extra.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* gridstack 2.0.0-rc2 extra CSS for [2-11] columns (non default)
2+
* gridstack 2.0.0 extra CSS for [2-11] columns (non default)
33
* https://gridstackjs.com/
44
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
55
* gridstack.js may be freely distributed under the MIT license.

src/gridstack-poly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// gridstack-poly.js 2.0.0-rc2 @preserve
1+
// gridstack-poly.js 2.0.0 @preserve
22

33
/** IE and older browsers Polyfills for this library
44
* https://gridstackjs.com/

src/gridstack.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* required gridstack 2.0.0-rc2 CSS for default 12 and 1 columnMode size. Use gridstack-extra.css for others
2+
* required gridstack 2.0.0 CSS for default 12 and 1 columnMode size. Use gridstack-extra.css for others
33
* https://gridstackjs.com/
44
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
55
* gridstack.js may be freely distributed under the MIT license.

src/gridstack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// gridstack.ts 2.0.0-rc2 @preserve
1+
// gridstack.ts 2.0.0 @preserve
22

33
/**
44
* https://gridstackjs.com/

src/jq/gridstack-dd-jqueryui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// gridstack-dd-jqueryui.ts 2.0.0-rc2 @preserve
1+
// gridstack-dd-jqueryui.ts 2.0.0 @preserve
22

33
/** JQuery UI Drag&Drop plugin
44
* https://gridstackjs.com/

src/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// types.ts 2.0.0-rc2 @preserve
1+
// types.ts 2.0.0 @preserve
22

33
/**
44
* https://gridstackjs.com/
@@ -235,10 +235,10 @@ export interface DDDragOpt {
235235
containment?: string;
236236
}
237237
export interface DDDragInOpt extends DDDragOpt {
238-
/** used when draging item from the outside, and canceling (ex: 'invalid')*/
239-
revert?: string;
240-
/** helper function when dropping (ex: 'clone') */
241-
helper?: string;
238+
/** used when dragging item from the outside, and canceling (ex: 'invalid' or your own method)*/
239+
revert?: string | ((event: Event) => HTMLElement);
240+
/** helper function when dropping (ex: 'clone' or your own method) */
241+
helper?: string | ((event: Event) => HTMLElement);
242242
}
243243

244244
/**

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// utils.ts 2.0.0-rc2 @preserve
1+
// utils.ts 2.0.0 @preserve
22

33
/**
44
* https://gridstackjs.com/

0 commit comments

Comments
 (0)