OpenSlides/openslides/utils
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
..
__init__.py Add code 2011-07-31 10:46:29 +02:00
access_permissions.py Run black 2019-01-08 21:51:52 +01:00
arguments.py use f-string syntax for strings 2019-01-18 17:37:36 +01:00
auth.py Fix inSomeGroups for the superadmin, delete empty comments 2019-03-06 08:35:00 +01:00
autoupdate.py Fixed deletion of motions with change recommendations. Fixed #4415. 2019-02-27 20:16:51 +01:00
cache_providers.py use f-string syntax for strings 2019-01-18 17:37:36 +01:00
cache.py Disable the future-lock when updating the restircted data cache 2019-03-04 21:37:00 +01:00
constants.py Make Consumer real async again 2018-09-04 08:57:50 +02:00
consumers.py ViewModelStore, register repositories, improve view model relations 2019-02-08 11:02:56 +01:00
exceptions.py Use python3 2014-08-24 21:21:11 +02:00
main.py activate start command 2019-01-20 11:24:42 +01:00
middleware.py Run black 2019-01-08 21:51:52 +01:00
migrations.py Fix 'errors' 2019-01-30 12:18:59 +01:00
models.py Fixed on_delete field attr. Fixed #4405 2019-03-01 20:53:01 +01:00
plugins.py Run black 2019-01-08 21:51:52 +01:00
projector.py (Current) list of speaker slide 2019-02-22 10:40:28 +01:00
redis.py Run black 2019-01-08 21:51:52 +01:00
rest_api.py Run black 2019-01-08 21:51:52 +01:00
settings.py.tpl increasing default upload size 2019-02-25 09:28:32 +01:00
test.py Remove CollectionElement 2018-11-04 01:06:01 +01:00
utils.py use f-string syntax for strings 2019-01-18 17:37:36 +01:00
validate.py Add text-decoration to bleach whitelist, fix tinymce toolbar 2019-03-08 15:11:55 +01:00
views.py Replaces the old angular2tree with a custom drag&drop tree 2019-03-19 13:19:35 +01:00
websocket.py Run black 2019-01-08 21:51:52 +01:00