OpenSlides/openslides/motions
GabrielMeyer 76d760bd41 Replaces the old angular2tree with a custom drag&drop tree
Calculates the direction of the moving.

Finishes the moving of nodes in same level

Adds some style

Sets the padding dynamically

Adds placeholder depends on the horizontal movement

Set the placeholder at the correct place, so the user can see, where he will drop the moved node

Finishes moving of nodes

- Old parents change their option to expand.
- New parents change their option to expand.
- If the user moves a node between nodes with a higher level, the node will be moved to the next index with same or lower level.

Fixes the visibility of moved node

- If the new parent is not visible, the moved node will not be seen.

If the user moves an expanded node, the new parent should expanded, too, if it's not already.

Sending successfully data to the server

- Sorting the items

Handles moving nodes between parent and children

- If the user moves a node between a parent and its children, the children will be relinked to the moved node as their new parent.

Replaces the old `sorting-tree` to a new one

- The new `sorted-tree` replaces the old `sorting-tree`.
- The old package `angular-tree-component` was removed.
- The user will only see the buttons to save or cancel his changes, if he made changes.
- The buttons, that do not work currently, were removed.

Adds a guard to check if the user made changes.

- If the user made changes but he has not saved them, then there is a dialog that will prompt to ask for confirmation.

Before cancelling the changes the user has to confirm this.
2019-03-19 13:19:35 +01:00
..
migrations Separate motion state access level migration 2019-02-12 10:10:40 +01:00
__init__.py Run black 2019-01-08 21:51:52 +01:00
access_permissions.py Added new flag to motion state to control access for different users. 2019-02-01 15:42:02 +01:00
apps.py Projector V 2019-01-28 23:18:27 +01:00
config_variables.py pdf export options 2019-02-14 18:22:25 +01:00
exceptions.py Run black 2019-01-08 21:51:52 +01:00
models.py Hotfix for #4491: Autoupdate for motion when change recommendation changes. 2019-03-13 09:40:04 +01:00
projector.py Bugfix: Amendment statuses 2019-03-09 22:48:21 +01:00
serializers.py Resort python import for isort 4.3.11 (fixes #4467) 2019-03-06 14:54:03 +01:00
signals.py use f-string syntax for strings 2019-01-18 17:37:36 +01:00
views.py Replaces the old angular2tree with a custom drag&drop tree 2019-03-19 13:19:35 +01:00