diff --git a/doc/CHANGES.md b/doc/CHANGES.md index 0709176d5..32f15433c 100644 --- a/doc/CHANGES.md +++ b/doc/CHANGES.md @@ -5,6 +5,7 @@ Change log **Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)* +- [7.1.1 (2022-11-13)](#711-2022-11-13) - [7.1.0 (2022-10-23)](#710-2022-10-23) - [7.0.1 (2022-10-14)](#701-2022-10-14) - [7.0.0 (2022-10-09)](#700-2022-10-09) @@ -75,16 +76,19 @@ Change log +## 7.1.1 (2022-11-13) +* fix [#939](https://github.com/gridstack/gridstack.js/issues/939) editable elements focus (introduced in v6) + ## 7.1.0 (2022-10-23) * back to MIT license in package.json * add `GridStackEngine.findEmptyPosition()` -* fixed [#2081](https://github.com/gridstack/gridstack.js/issues/2081) removeWidget() after it's gone from DOM -* 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 -* fixed [#1975](https://github.com/gridstack/gridstack.js/issues/1975) oneColumnModeDomSort not respected when loading in 1 column +* fix [#2081](https://github.com/gridstack/gridstack.js/issues/2081) removeWidget() after it's gone from DOM +* 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 +* fix [#1975](https://github.com/gridstack/gridstack.js/issues/1975) oneColumnModeDomSort not respected when loading in 1 column ## 7.0.1 (2022-10-14) -* fixed [#2073](https://github.com/gridstack/gridstack.js/issues/2073) SSR (server side rendering) isTouch issue (introduced in v6) -* fixed - removing last item delete sub-grid that are not auto-generated (nested.html vs nested_advanced.html) +* fix [#2073](https://github.com/gridstack/gridstack.js/issues/2073) SSR (server side rendering) isTouch issue (introduced in v6) +* fix - removing last item delete sub-grid that are not auto-generated (nested.html vs nested_advanced.html) ## 7.0.0 (2022-10-09) * 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/ * add [#1943](https://github.com/gridstack/gridstack.js/issues/1943) you can now drag sub-grids into other sub-grids ## 6.0.3 (2022-10-08) -* fixed [#2055](https://github.com/gridstack/gridstack.js/issues/2055) maxRow=1 resize outside (broke in 6.0.1) -* fixed [#2054](https://github.com/gridstack/gridstack.js/issues/2054) Can't enter text in textarea/input (broke in v6) +* fix [#2055](https://github.com/gridstack/gridstack.js/issues/2055) maxRow=1 resize outside (broke in 6.0.1) +* fix [#2054](https://github.com/gridstack/gridstack.js/issues/2054) Can't enter text in textarea/input (broke in v6) ## 6.0.2 (2022-09-23) -* fixed [#2034](https://github.com/gridstack/gridstack.js/issues/2034) `removeWidget()` breaking resize handle feedback -* fixed [#2043](https://github.com/gridstack/gridstack.js/issues/2043) when swapping shapes in maxRow grid, make sure we still check for 50% coverage +* fix [#2034](https://github.com/gridstack/gridstack.js/issues/2034) `removeWidget()` breaking resize handle feedback +* fix [#2043](https://github.com/gridstack/gridstack.js/issues/2043) when swapping shapes in maxRow grid, make sure we still check for 50% coverage ## 6.0.1 (2022-08-27) -* fixed `float(val)` to set on grid and engine, so save() will read it. -* fixed [#2018](https://github.com/gridstack/gridstack.js/issues/2018) mouseover and React different behavior -* fixed getting nested grid resize handles while dragging child +* fix `float(val)` to set on grid and engine, so save() will read it. +* fix [#2018](https://github.com/gridstack/gridstack.js/issues/2018) mouseover and React different behavior +* fix getting nested grid resize handles while dragging child ## 6.0.0 (2022-08-21) * 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 ## 3.1.3 (2021-1-2) -- fix [1540](https://github.com/gridstack/gridstack.js/issues/1540) Safari H5 drag&drop fixed +- fix [1540](https://github.com/gridstack/gridstack.js/issues/1540) Safari H5 drag&drop fix - fix [1535](https://github.com/gridstack/gridstack.js/issues/1535) use batchUpdate() around grid init to make sure gs-y attributes are respected. - fix [1545](https://github.com/gridstack/gridstack.js/issues/1545) `disableMove()` correctly prevents drag later (remove events and draggable attribute) - fix [1546](https://github.com/gridstack/gridstack.js/issues/1546) resize no longer delayed, which caused race conditions errors diff --git a/package.json b/package.json index 5695b8158..e171d47dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gridstack", - "version": "7.1.0-dev", + "version": "7.1.1", "description": "TypeScript/JS lib for dashboard layout and creation, responsive, mobile support, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)", "main": "./dist/gridstack.js", "types": "./dist/gridstack.d.ts", diff --git a/src/dd-base-impl.ts b/src/dd-base-impl.ts index 538e2a15c..2b774268e 100644 --- a/src/dd-base-impl.ts +++ b/src/dd-base-impl.ts @@ -1,5 +1,5 @@ /** - * dd-base-impl.ts 7.1.0-dev + * dd-base-impl.ts 7.1.1 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-draggable.ts b/src/dd-draggable.ts index 98094642b..1b895d350 100644 --- a/src/dd-draggable.ts +++ b/src/dd-draggable.ts @@ -1,5 +1,5 @@ /** - * dd-draggable.ts 7.1.0-dev + * dd-draggable.ts 7.1.1 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ @@ -133,9 +133,8 @@ export class DDDraggable extends DDBaseImplement implements HTMLElementExtendOpt const skipMouseDown = ['input', 'textarea', 'button', 'select', 'option']; const name = (e.target as HTMLElement).nodeName.toLowerCase(); if (skipMouseDown.find(skip => skip === name)) return true; - - //for contenteditable - if((e.target as HTMLElement).closest('[contenteditable="true"]')) return true; + // also check for content editable + if ((e.target as HTMLElement).closest('[contenteditable="true"]')) return true; // make sure we are clicking on a drag handle or child of it... // 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 } e.preventDefault(); - - //e.preventDefault() prevents blur event which occurs just after mousedown event. - //if an editable content has focus, then blur must be call + // preventDefault() prevents blur event which occurs just after mousedown event. + // if an editable content has focus, then blur must be call if(document.activeElement) (document.activeElement as HTMLElement).blur(); DDManager.mouseHandled = true; diff --git a/src/dd-droppable.ts b/src/dd-droppable.ts index 7c7d7a0fa..2d9b08773 100644 --- a/src/dd-droppable.ts +++ b/src/dd-droppable.ts @@ -1,5 +1,5 @@ /** - * dd-droppable.ts 7.1.0-dev + * dd-droppable.ts 7.1.1 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-element.ts b/src/dd-element.ts index 7a8d3f499..2da174cd1 100644 --- a/src/dd-element.ts +++ b/src/dd-element.ts @@ -1,5 +1,5 @@ /** - * dd-elements.ts 7.1.0-dev + * dd-elements.ts 7.1.1 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-gridstack.ts b/src/dd-gridstack.ts index 2c08c0a29..06150a6cd 100644 --- a/src/dd-gridstack.ts +++ b/src/dd-gridstack.ts @@ -1,5 +1,5 @@ /** - * dd-gridstack.ts 7.1.0-dev + * dd-gridstack.ts 7.1.1 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-manager.ts b/src/dd-manager.ts index 3e307b034..d1af9da73 100644 --- a/src/dd-manager.ts +++ b/src/dd-manager.ts @@ -1,5 +1,5 @@ /** - * dd-manager.ts 7.1.0-dev + * dd-manager.ts 7.1.1 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-resizable-handle.ts b/src/dd-resizable-handle.ts index 4cd748f69..88aba5b4f 100644 --- a/src/dd-resizable-handle.ts +++ b/src/dd-resizable-handle.ts @@ -1,5 +1,5 @@ /** - * dd-resizable-handle.ts 7.1.0-dev + * dd-resizable-handle.ts 7.1.1 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-resizable.ts b/src/dd-resizable.ts index d3c99fbef..edb7bfcaf 100644 --- a/src/dd-resizable.ts +++ b/src/dd-resizable.ts @@ -1,5 +1,5 @@ /** - * dd-resizable.ts 7.1.0-dev + * dd-resizable.ts 7.1.1 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-touch.ts b/src/dd-touch.ts index 83155e4bc..544406b31 100644 --- a/src/dd-touch.ts +++ b/src/dd-touch.ts @@ -1,5 +1,5 @@ /** - * touch.ts 7.1.0-dev + * touch.ts 7.1.1 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack-engine.ts b/src/gridstack-engine.ts index 408a77915..4c9d17240 100644 --- a/src/gridstack-engine.ts +++ b/src/gridstack-engine.ts @@ -1,5 +1,5 @@ /** - * gridstack-engine.ts 7.1.0-dev + * gridstack-engine.ts 7.1.1 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack-poly.js b/src/gridstack-poly.js index 4a1dac30d..91eb3bb04 100644 --- a/src/gridstack-poly.js +++ b/src/gridstack-poly.js @@ -1,5 +1,5 @@ /** - * 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) + * 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) * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack.scss b/src/gridstack.scss index 8f6317f92..42e45c7a0 100644 --- a/src/gridstack.scss +++ b/src/gridstack.scss @@ -1,5 +1,5 @@ /** - * gridstack SASS styles 7.1.0-dev + * gridstack SASS styles 7.1.1 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack.ts b/src/gridstack.ts index dbada3b06..eeca20ca9 100644 --- a/src/gridstack.ts +++ b/src/gridstack.ts @@ -1,5 +1,5 @@ /*! - * GridStack 7.1.0-dev + * GridStack 7.1.1 * https://gridstackjs.com/ * * Copyright (c) 2021-2022 Alain Dumesny @@ -1582,7 +1582,7 @@ export class GridStack { return this; } - static GDRev = '7.1.0-dev'; + static GDRev = '7.1.1'; /* * drag&drop empty stubs that will be implemented in dd-gridstack.ts for non static grid diff --git a/src/types.ts b/src/types.ts index 2cc338e06..0fb24b6f3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,5 @@ /** - * types.ts 7.1.0-dev + * types.ts 7.1.1 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/utils.ts b/src/utils.ts index 8c0bd4893..3c4c7d207 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,5 @@ /** - * utils.ts 7.1.0-dev + * utils.ts 7.1.1 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */