OpenSlides/openslides
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
..
agenda Replaces the old angular2tree with a custom drag&drop tree 2019-03-19 13:19:35 +01:00
assignments Resort python import for isort 4.3.11 (fixes #4467) 2019-03-06 14:54:03 +01:00
core Hotfix for #4501: Skipped many to many related objects autoupdate signal during migrations. 2019-03-13 10:58:01 +01:00
mediafiles Resort python import for isort 4.3.11 (fixes #4467) 2019-03-06 14:54:03 +01:00
motions Replaces the old angular2tree with a custom drag&drop tree 2019-03-19 13:19:35 +01:00
poll use f-string syntax for strings 2019-01-18 17:37:36 +01:00
topics Resort python import for isort 4.3.11 (fixes #4467) 2019-03-06 14:54:03 +01:00
users rework login system (again) 2019-03-11 13:45:17 +01:00
utils Replaces the old angular2tree with a custom drag&drop tree 2019-03-19 13:19:35 +01:00
__init__.py Run black 2019-01-08 21:51:52 +01:00
__main__.py activate start command 2019-01-20 11:24:42 +01:00
asgi.py activate start command 2019-01-20 11:24:42 +01:00
global_settings.py Run black 2019-01-08 21:51:52 +01:00
routing.py Run black 2019-01-08 21:51:52 +01:00
urls_apps.py Run black 2019-01-08 21:51:52 +01:00
urls.py Wirst work for the projector system on the client 2019-01-19 21:26:05 +01:00