From 104efbdd3c20846b79359a42b85673e719d71eb5 Mon Sep 17 00:00:00 2001 From: Alain Dumesny Date: Sun, 9 Oct 2022 09:08:12 -0700 Subject: [PATCH] v7.0.0 --- README.md | 7 ++++++- doc/CHANGES.md | 10 +++++----- package.json | 2 +- src/dd-base-impl.ts | 2 +- src/dd-draggable.ts | 2 +- src/dd-droppable.ts | 2 +- src/dd-element.ts | 2 +- src/dd-gridstack.ts | 2 +- src/dd-manager.ts | 2 +- src/dd-resizable-handle.ts | 2 +- src/dd-resizable.ts | 2 +- src/dd-touch.ts | 2 +- src/gridstack-engine.ts | 2 +- src/gridstack-poly.js | 2 +- src/gridstack.scss | 2 +- src/gridstack.ts | 4 ++-- src/types.ts | 2 +- src/utils.ts | 2 +- 18 files changed, 28 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index c03f5040e..fc4181fff 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Join us on Slack: https://gridstackjs.slack.com - [Migrating to v4](#migrating-to-v4) - [Migrating to v5](#migrating-to-v5) - [Migrating to v6](#migrating-to-v6) + - [Migrating to v7](#migrating-to-v7) - [jQuery Application](#jquery-application) - [Changes](#changes) - [The Team](#the-team) @@ -436,10 +437,14 @@ You can now drag in/out of parent into nested child, with new API parameters val ## Migrating to v6 -the API did not really change from v5, but a complete re-write of Drag&Drop to use native mouseevent (instead of HTML draggable=true which is buggy on Mac Safari, and doesn't work on mobile devices) and touchevent (mobile), and we no longer have jquery ui option (wasn't working well for nested grids, didn't want to maintain legacy lib). +the API did not really change from v5, but a complete re-write of Drag&Drop to use native `mouseevent` (instead of HTML draggable=true which is buggy on Mac Safari, and doesn't work on mobile devices) and `touchevent` (mobile), and we no longer have jquery ui option (wasn't working well for nested grids, didn't want to maintain legacy lib). The main difference is you only need to include gridstack.js and get D&D (desktop and mobile) out of the box for the same size as h5 version. +## Migrating to v7 + +New addition, no API breakage per say. See release notes about creating sub-grids on the fly. + # jQuery Application This is **old and no longer apply to v6+**. You'll need to use v5.1.1 and before diff --git a/doc/CHANGES.md b/doc/CHANGES.md index 37daca89e..338420547 100644 --- a/doc/CHANGES.md +++ b/doc/CHANGES.md @@ -5,8 +5,8 @@ Change log **Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)* -- [7.0.0-dev (TBD)](#700-dev-tbd) -- [6.0.3-dev (2022-10-08)](#603-dev-2022-10-08) +- [7.0.0 (2022-10-09)](#700-2022-10-09) +- [6.0.3 (2022-10-08)](#603-2022-10-08) - [6.0.2 (2022-09-23)](#602-2022-09-23) - [6.0.1 (2022-08-27)](#601-2022-08-27) - [6.0.0 (2022-08-21)](#600-2022-08-21) @@ -73,15 +73,15 @@ Change log -## 7.0.0-dev (TBD) +## 7.0.0 (2022-10-09) * add [#1009](https://github.com/gridstack/gridstack.js/issues/1009) Create sub-grids on the fly, by dragging items completely over others (nest) vs partially (push) using new flag `GridStackOptions.subGridDynamic=true`. Thank you [StephanP] for sponsoring it.
See [advance Nested](https://github.com/gridstack/gridstack.js/blob/master/demo/nested_advanced.html) * add - ability to pause drag&drop collision until the user stops moving - see `DDDragOpt.pause` (used for creating nested grids on the fly based on gesture). -* add [#1943](https://github.com/gridstack/gridstack.js/issues/1943) you cna now drag sub-grids into other sub-grids +* add [#1943](https://github.com/gridstack/gridstack.js/issues/1943) you can now drag sub-grids into other sub-grids -## 6.0.3-dev (2022-10-08) +## 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) diff --git a/package.json b/package.json index 836966d76..05d394045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gridstack", - "version": "6.0.3-dev", + "version": "7.0.0", "description": "TypeScript/JS lib for dashboard layout and creation, 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 fa9890db5..ca3d3f823 100644 --- a/src/dd-base-impl.ts +++ b/src/dd-base-impl.ts @@ -1,5 +1,5 @@ /** - * dd-base-impl.ts 6.0.3-dev + * dd-base-impl.ts 7.0.0 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-draggable.ts b/src/dd-draggable.ts index 436a553af..4b120dc6f 100644 --- a/src/dd-draggable.ts +++ b/src/dd-draggable.ts @@ -1,5 +1,5 @@ /** - * dd-draggable.ts 6.0.3-dev + * dd-draggable.ts 7.0.0 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-droppable.ts b/src/dd-droppable.ts index 693061197..1cdd5c8ba 100644 --- a/src/dd-droppable.ts +++ b/src/dd-droppable.ts @@ -1,5 +1,5 @@ /** - * dd-droppable.ts 6.0.3-dev + * dd-droppable.ts 7.0.0 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-element.ts b/src/dd-element.ts index acb4c16a5..91431831b 100644 --- a/src/dd-element.ts +++ b/src/dd-element.ts @@ -1,5 +1,5 @@ /** - * dd-elements.ts 6.0.3-dev + * dd-elements.ts 7.0.0 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-gridstack.ts b/src/dd-gridstack.ts index 134e68474..6d6776f9c 100644 --- a/src/dd-gridstack.ts +++ b/src/dd-gridstack.ts @@ -1,5 +1,5 @@ /** - * dd-gridstack.ts 6.0.3-dev + * dd-gridstack.ts 7.0.0 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-manager.ts b/src/dd-manager.ts index fd3aea83a..915b137f9 100644 --- a/src/dd-manager.ts +++ b/src/dd-manager.ts @@ -1,5 +1,5 @@ /** - * dd-manager.ts 6.0.3-dev + * dd-manager.ts 7.0.0 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-resizable-handle.ts b/src/dd-resizable-handle.ts index c01e8e8c5..230cdb6ed 100644 --- a/src/dd-resizable-handle.ts +++ b/src/dd-resizable-handle.ts @@ -1,5 +1,5 @@ /** - * dd-resizable-handle.ts 6.0.3-dev + * dd-resizable-handle.ts 7.0.0 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-resizable.ts b/src/dd-resizable.ts index bb83cf1c6..e83583d76 100644 --- a/src/dd-resizable.ts +++ b/src/dd-resizable.ts @@ -1,5 +1,5 @@ /** - * dd-resizable.ts 6.0.3-dev + * dd-resizable.ts 7.0.0 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-touch.ts b/src/dd-touch.ts index caf81b98c..14af3a1f7 100644 --- a/src/dd-touch.ts +++ b/src/dd-touch.ts @@ -1,5 +1,5 @@ /** - * touch.ts 6.0.3-dev + * touch.ts 7.0.0 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack-engine.ts b/src/gridstack-engine.ts index 741cfbe41..b6c39f31e 100644 --- a/src/gridstack-engine.ts +++ b/src/gridstack-engine.ts @@ -1,5 +1,5 @@ /** - * gridstack-engine.ts 6.0.3-dev + * gridstack-engine.ts 7.0.0 * Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack-poly.js b/src/gridstack-poly.js index 891cb0c4c..8b93cfbac 100644 --- a/src/gridstack-poly.js +++ b/src/gridstack-poly.js @@ -1,5 +1,5 @@ /** - * gridstack-poly.ts 6.0.3-dev used for IE and older browser support (not supported in v2-v4.3.1, but again in v4.4) + * gridstack-poly.ts 7.0.0 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 d9c06bbd8..4c5e347a3 100644 --- a/src/gridstack.scss +++ b/src/gridstack.scss @@ -1,5 +1,5 @@ /** - * gridstack SASS styles 6.0.3-dev + * gridstack SASS styles 7.0.0 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack.ts b/src/gridstack.ts index 77d871b9d..5060841eb 100644 --- a/src/gridstack.ts +++ b/src/gridstack.ts @@ -1,5 +1,5 @@ /*! - * GridStack 6.0.3-dev + * GridStack 7.0.0 * https://gridstackjs.com/ * * Copyright (c) 2021-2022 Alain Dumesny @@ -1581,7 +1581,7 @@ export class GridStack { return this; } - static GDRev = '6.0.3-dev'; + static GDRev = '7.0.0'; /* * 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 dbac562c9..e0ed0cf61 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,5 @@ /** - * types.ts 6.0.3-dev + * types.ts 7.0.0 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ diff --git a/src/utils.ts b/src/utils.ts index b4d8ee2af..41fa10feb 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,5 @@ /** - * utils.ts 6.0.3-dev + * utils.ts 7.0.0 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */