Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.0.0 #75

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 30 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
# elm-package generated files
elm-stuff

# elm-repl generated files
repl-temp-*

# elm-make generated docs
docs.json

# VS Code settings
.vscode

# elm-make generated files
examples/**/main.js

# experiments
experiments/*
!experiments/README.md
!experiments/Main.elm
!experiments/elm.json

# node modules
node_modules

# node modules
node_modules

# elm-package generated files
elm-stuff

# elm-repl generated files
repl-temp-*

# elm-make generated docs
docs.json

# VS Code settings
.vscode

# IntelliJ IDEA settings
.idea

# EditorConfig settings
.editorconfig

# elm-make generated files
examples/assets/main.js
examples/assets/*.css
examples/assets/*.css.map

# experiments
experiments/index.html
examples/src/WeakCSS/*
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sudo: false

language: node_js
node_js: "10"
node_js: "12"

cache:
directories:
Expand Down
111 changes: 55 additions & 56 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,116 +2,109 @@

All notable changes to this project will be documented in this file.

## [6.0.0] - 2020-03-08
## [7.0.0] - upcoming

### Added
### Fixes

- Add `startPosition` field to `Info` in the `DnDList` module only.
- Add `currentPosition` field to `Info` in the `DnDList` module only.
- Stop sending messages from commands

### Changed
### Features

- Use fixed `position` instead of absolute in `ghostStyles` in both modules.
### Maintenance

## [5.0.0] - 2019-05-06
- Update README, documentation, and examples reflecting the new API

## [6.0.1] - 2020-05-27

### New
### Fixes

- Fix broken ghost coordinates when scrolling, see: [#50]

## [6.0.0] - 2020-03-08

- Transfer groupable items between different groups using only list items as drop elements.
- List state invariant:
- the list is gathered by the grouping property
- if there are auxiliary items, they are keep their header or footer places
### Fixes

### Added
- Use fixed `position` instead of absolute for `ghostStyles` in both modules, see: [#50]

- Add new module `DnDList.Groups`.
### Features

* Introduce `Info` type alias with a lot of useful fields.
* Add `info` field to `System`.
* Move `dragIndex` field from `System` to `Info` as a field called `dragIndex`.
- Add `startPosition` and `currentPosition` fields to `Info` in the `DnDList` module only, see: [#65]

- Add `beforeUpdate` field to `Config`.
- Add `listen` field to `Config`.
- Add `operation` field to `Config`.
## [5.0.0] - 2019-05-06

### Changed
### Features

- Move `message` field from `Config` to `create` function as a new `Msg` argument.
- Reorder items in groupable lists in the module `DnDList.Groups`
- List state invariant:
- the list is gathered by the grouping property
- if there are auxiliary items, they are keep their places as headers or footers

* Rename `Draggable` type to `Model`.
* Rename `draggable` field to `model` in `System`.
* Introduce `Info` type alias with a lot of useful fields
* Add `info` field to `System`

## [4.0.2] - 2019-03-07

### Fixed
### Fixes

- Instead of `Int` use `Float` when extracting mouse position.
- Delete `preventDefault` from `mouseover` because it has no default action.
- Instead of `Int` use `Float` when extracting mouse coordinates
- Delete `preventDefault` from `mouseover` because it has no default action

## [4.0.1] - 2019-02-21

### Docs
### Maintenance

- Update README, documentation, and examples for better understanding.
- Update README, documentation, and examples for better understanding

## [4.0.0] - 2019-02-19

### Changed
### Maintenance

- Rename `draggedIndex` field to `dragIndex` in `System`.
- Rename `draggedIndex` field to `dragIndex` in `System`

## [3.0.0] - 2019-02-18

### Changed

- Add `item` type variable to `System`.
- Move `DnDList.update` function into `System` as a new field called `update`.
- Move `DnDList.getDragIndex` function into `System` as a new field called `draggedIndex`.
### Maintenance

* Rename `events` field to `message` in `Config`.
- Add `item` type variable to `System`
- Move `DnDList.update` function into `System` as a new field called `update`
- Move `DnDList.getDragIndex` function into `System` as a new field called `draggedIndex`

## [2.0.0] - 2019-02-17

### Added
### Maintenance

- Introduce `Config` type alias.
- Replace `Msg` argument with `Config Msg` in `create` function.
- Add the removed `Msg` from `create` to `Config` as a field called `events`.
- Move `Movement` argument from `draggedStyles` to `Config` as a field called `movement`.
- Introduce `Config` type alias

## [1.0.4] - 2019-02-17

### Docs
### Maintenance

- Add example using `mdgriffith/elm-ui`.
- Add example using `mdgriffith/elm-ui`, see: [#2]

## [1.0.3] - 2019-02-14

### Docs
### Maintenance

- Update README, documentation, and examples for better understanding.
- Update README, documentation, and examples for better understanding

## [1.0.2] - 2019-02-12

### Fixed
### Fixes

- The ghost element's position was animated by setting the left and top properties which trigger layout operations, and that's expensive. The better solution is to use a translate on the element, which does not trigger layout.
- Move ghost with `translate` instead of `position`, see: [#1]

## [1.0.1] - 2019-02-08

- No changes, just check how the Elm package system works.
- No changes, just checking how the Elm package system works

## [1.0.0] - 2019-02-08

### New

- Move items in flat lists.
- List state invariant: none
### Features

### Added

- Add module called `DnDList`.
- Reorder items in flat lists in the module `DnDList`
- List state invariant: none

[7.0.0]: https://github.com/annaghi/dnd-list/compare/6.0.0...7.0.0
[6.0.0]: https://github.com/annaghi/dnd-list/compare/5.0.0...6.0.0
[5.0.0]: https://github.com/annaghi/dnd-list/compare/4.0.2...5.0.0
[4.0.2]: https://github.com/annaghi/dnd-list/compare/4.0.1...4.0.2
Expand All @@ -124,3 +117,9 @@ All notable changes to this project will be documented in this file.
[1.0.2]: https://github.com/annaghi/dnd-list/compare/1.0.1...1.0.2
[1.0.1]: https://github.com/annaghi/dnd-list/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/annaghi/dnd-list/releases/tag/1.0.0


[#1]: https://github.com/annaghi/dnd-list/pull/1
[#2]: https://github.com/annaghi/dnd-list/pull/2
[#50]: https://github.com/annaghi/dnd-list/pull/50
[#65]: https://github.com/annaghi/dnd-list/pull/65
5 changes: 3 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
BSD 3-Clause License

Copyright (c) 2019, Anna Bansaghi
Copyright (c) 2019 - 2020, Anna Bansaghi

All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand All @@ -26,4 +27,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading