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

Skip to content

Commit c7af937

Browse files
authored
Merge pull request gridstack#2101 from adumesny/master
rev 7.1.1
2 parents 85dbeac + cc8fa65 commit c7af937

17 files changed

+38
-36
lines changed

doc/CHANGES.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8+
- [7.1.1 (2022-11-13)](#711-2022-11-13)
89
- [7.1.0 (2022-10-23)](#710-2022-10-23)
910
- [7.0.1 (2022-10-14)](#701-2022-10-14)
1011
- [7.0.0 (2022-10-09)](#700-2022-10-09)
@@ -75,16 +76,19 @@ Change log
7576

7677
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
7778

79+
## 7.1.1 (2022-11-13)
80+
* fix [#939](https://github.com/gridstack/gridstack.js/issues/939) editable elements focus (introduced in v6)
81+
7882
## 7.1.0 (2022-10-23)
7983
* back to MIT license in package.json
8084
* add `GridStackEngine.findEmptyPosition()`
81-
* fixed [#2081](https://github.com/gridstack/gridstack.js/issues/2081) removeWidget() after it's gone from DOM
82-
* fixed [#1985](https://github.com/gridstack/gridstack.js/issues/1985) addWidget() or DOM read in single column mode will not adjust to multi column mode
83-
* fixed [#1975](https://github.com/gridstack/gridstack.js/issues/1975) oneColumnModeDomSort not respected when loading in 1 column
85+
* fix [#2081](https://github.com/gridstack/gridstack.js/issues/2081) removeWidget() after it's gone from DOM
86+
* fix [#1985](https://github.com/gridstack/gridstack.js/issues/1985) addWidget() or DOM read in single column mode will not adjust to multi column mode
87+
* fix [#1975](https://github.com/gridstack/gridstack.js/issues/1975) oneColumnModeDomSort not respected when loading in 1 column
8488

8589
## 7.0.1 (2022-10-14)
86-
* fixed [#2073](https://github.com/gridstack/gridstack.js/issues/2073) SSR (server side rendering) isTouch issue (introduced in v6)
87-
* fixed - removing last item delete sub-grid that are not auto-generated (nested.html vs nested_advanced.html)
90+
* fix [#2073](https://github.com/gridstack/gridstack.js/issues/2073) SSR (server side rendering) isTouch issue (introduced in v6)
91+
* fix - removing last item delete sub-grid that are not auto-generated (nested.html vs nested_advanced.html)
8892

8993
## 7.0.0 (2022-10-09)
9094
* add [#1009](https://github.com/gridstack/gridstack.js/issues/1009) Create sub-grids on the fly,
@@ -95,17 +99,17 @@ See [advance Nested](https://github.com/gridstack/gridstack.js/blob/master/demo/
9599
* add [#1943](https://github.com/gridstack/gridstack.js/issues/1943) you can now drag sub-grids into other sub-grids
96100

97101
## 6.0.3 (2022-10-08)
98-
* fixed [#2055](https://github.com/gridstack/gridstack.js/issues/2055) maxRow=1 resize outside (broke in 6.0.1)
99-
* fixed [#2054](https://github.com/gridstack/gridstack.js/issues/2054) Can't enter text in textarea/input (broke in v6)
102+
* fix [#2055](https://github.com/gridstack/gridstack.js/issues/2055) maxRow=1 resize outside (broke in 6.0.1)
103+
* fix [#2054](https://github.com/gridstack/gridstack.js/issues/2054) Can't enter text in textarea/input (broke in v6)
100104

101105
## 6.0.2 (2022-09-23)
102-
* fixed [#2034](https://github.com/gridstack/gridstack.js/issues/2034) `removeWidget()` breaking resize handle feedback
103-
* fixed [#2043](https://github.com/gridstack/gridstack.js/issues/2043) when swapping shapes in maxRow grid, make sure we still check for 50% coverage
106+
* fix [#2034](https://github.com/gridstack/gridstack.js/issues/2034) `removeWidget()` breaking resize handle feedback
107+
* fix [#2043](https://github.com/gridstack/gridstack.js/issues/2043) when swapping shapes in maxRow grid, make sure we still check for 50% coverage
104108

105109
## 6.0.1 (2022-08-27)
106-
* fixed `float(val)` to set on grid and engine, so save() will read it.
107-
* fixed [#2018](https://github.com/gridstack/gridstack.js/issues/2018) mouseover and React different behavior
108-
* fixed getting nested grid resize handles while dragging child
110+
* fix `float(val)` to set on grid and engine, so save() will read it.
111+
* fix [#2018](https://github.com/gridstack/gridstack.js/issues/2018) mouseover and React different behavior
112+
* fix getting nested grid resize handles while dragging child
109113

110114
## 6.0.0 (2022-08-21)
111115
* converted previous HTML5 `draggable=true` based code to simple Mouse Events and Touch mobile support for drag&Drop.
@@ -272,7 +276,7 @@ HTML5 version will require re-write to plain `mousemove` & mobile `touchmove` in
272276

273277
## 3.1.3 (2021-1-2)
274278

275-
- fix [1540](https://github.com/gridstack/gridstack.js/issues/1540) Safari H5 drag&drop fixed
279+
- fix [1540](https://github.com/gridstack/gridstack.js/issues/1540) Safari H5 drag&drop fix
276280
- fix [1535](https://github.com/gridstack/gridstack.js/issues/1535) use batchUpdate() around grid init to make sure gs-y attributes are respected.
277281
- fix [1545](https://github.com/gridstack/gridstack.js/issues/1545) `disableMove()` correctly prevents drag later (remove events and draggable attribute)
278282
- fix [1546](https://github.com/gridstack/gridstack.js/issues/1546) resize no longer delayed, which caused race conditions errors

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": "7.1.0-dev",
3+
"version": "7.1.1",
44
"description": "TypeScript/JS lib for dashboard layout and creation, responsive, mobile support, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)",
55
"main": "./dist/gridstack.js",
66
"types": "./dist/gridstack.d.ts",

src/dd-base-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-base-impl.ts 7.1.0-dev
2+
* dd-base-impl.ts 7.1.1
33
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-draggable.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-draggable.ts 7.1.0-dev
2+
* dd-draggable.ts 7.1.1
33
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license
44
*/
55

@@ -133,9 +133,8 @@ export class DDDraggable extends DDBaseImplement implements HTMLElementExtendOpt
133133
const skipMouseDown = ['input', 'textarea', 'button', 'select', 'option'];
134134
const name = (e.target as HTMLElement).nodeName.toLowerCase();
135135
if (skipMouseDown.find(skip => skip === name)) return true;
136-
137-
//for contenteditable
138-
if((e.target as HTMLElement).closest('[contenteditable="true"]')) return true;
136+
// also check for content editable
137+
if ((e.target as HTMLElement).closest('[contenteditable="true"]')) return true;
139138

140139
// make sure we are clicking on a drag handle or child of it...
141140
// Note: we don't need to check that's handle is an immediate child, as mouseHandled will prevent parents from also handling it (lowest wins)
@@ -158,9 +157,8 @@ export class DDDraggable extends DDBaseImplement implements HTMLElementExtendOpt
158157
}
159158

160159
e.preventDefault();
161-
162-
//e.preventDefault() prevents blur event which occurs just after mousedown event.
163-
//if an editable content has focus, then blur must be call
160+
// preventDefault() prevents blur event which occurs just after mousedown event.
161+
// if an editable content has focus, then blur must be call
164162
if(document.activeElement) (document.activeElement as HTMLElement).blur();
165163

166164
DDManager.mouseHandled = true;

src/dd-droppable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-droppable.ts 7.1.0-dev
2+
* dd-droppable.ts 7.1.1
33
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-elements.ts 7.1.0-dev
2+
* dd-elements.ts 7.1.1
33
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-gridstack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-gridstack.ts 7.1.0-dev
2+
* dd-gridstack.ts 7.1.1
33
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-manager.ts 7.1.0-dev
2+
* dd-manager.ts 7.1.1
33
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-resizable-handle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-resizable-handle.ts 7.1.0-dev
2+
* dd-resizable-handle.ts 7.1.1
33
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-resizable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-resizable.ts 7.1.0-dev
2+
* dd-resizable.ts 7.1.1
33
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-touch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* touch.ts 7.1.0-dev
2+
* touch.ts 7.1.1
33
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
44
*/
55

src/gridstack-engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-engine.ts 7.1.0-dev
2+
* gridstack-engine.ts 7.1.1
33
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license
44
*/
55

src/gridstack-poly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-poly.ts 7.1.0-dev used for IE and older browser support (not supported in v2-v4.3.1, but again in v4.4)
2+
* gridstack-poly.ts 7.1.1 used for IE and older browser support (not supported in v2-v4.3.1, but again in v4.4)
33
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
44
*/
55

src/gridstack.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack SASS styles 7.1.0-dev
2+
* gridstack SASS styles 7.1.1
33
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
44
*/
55

src/gridstack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* GridStack 7.1.0-dev
2+
* GridStack 7.1.1
33
* https://gridstackjs.com/
44
*
55
* Copyright (c) 2021-2022 Alain Dumesny
@@ -1582,7 +1582,7 @@ export class GridStack {
15821582
return this;
15831583
}
15841584

1585-
static GDRev = '7.1.0-dev';
1585+
static GDRev = '7.1.1';
15861586

15871587
/*
15881588
* drag&drop empty stubs that will be implemented in dd-gridstack.ts for non static grid

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* types.ts 7.1.0-dev
2+
* types.ts 7.1.1
33
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
44
*/
55

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* utils.ts 7.1.0-dev
2+
* utils.ts 7.1.1
33
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
44
*/
55

0 commit comments

Comments
 (0)