Skip to content
Snippets Groups Projects
This project is mirrored from https://*****@github.com/iqb-berlin/verona-modules-aspect.git. Pull mirroring updated .
  1. Dec 16, 2022
  2. Dec 12, 2022
  3. Dec 02, 2022
  4. Dec 01, 2022
    • rhenck's avatar
      Fix and refactor DropList component · 39882c75
      rhenck authored
      Rules for when drop is allowed have been fixed. It is quite complicated 
      and therefore a lot of explanatory comments are added.
      
      - improved translation
      - add example file
      39882c75
  5. Nov 29, 2022
    • rhenck's avatar
      Add DropList feature returnToOriginOnReplacement · 705cadf5
      rhenck authored
      Allows DropListvalueObjects which have this setting to be replaced in
      lists which only allow onlyOneItem. When this switch is set, the class
      sets the other 2 internal values
      (originListID?: string; originListIndex) itself. Those can not be seen
      nor changed from outside.
      
      Also refactoring in lots of places around droplists. Better names, 
      cleaner structure, comments.
      
      #305
      705cadf5
  6. Nov 28, 2022
    • rhenck's avatar
      Add new DropList property: deleteDroppedItemWithSameID · 2bd675dc
      rhenck authored
      Lists with this setting delete dropped value objects. This allows 
      putting items back.
      (Only makes sense when used with copyOnDrop. Otherwise there can not be 
      duplicate value IDs).
      
      Also improve constructor value checks to correctly handle nullish 
      booleans.
      
      #281
      2bd675dc
  7. Nov 21, 2022
  8. Nov 20, 2022
  9. Nov 09, 2022
  10. Nov 08, 2022
  11. Nov 07, 2022
    • rhenck's avatar
      Re-implement DropList element · 6d1ad52c
      rhenck authored
      - Replace Material Droplist with native HTML events
      - Remove simple-drop-list element; Cloze elements now use the normal 
      DropList element
      - Add example units
      6d1ad52c
  12. Oct 18, 2022
  13. Oct 07, 2022
  14. Sep 09, 2022
  15. Sep 08, 2022
  16. Aug 30, 2022
  17. Aug 08, 2022
  18. Jun 03, 2022
    • rhenck's avatar
      Fix drag and drop with images · 781568b0
      rhenck authored
      The dragged image did contain carry information about it's element.
      Also remove useless drag and drop functionality for the placeholder.
      781568b0
  19. May 17, 2022
    • rhenck's avatar
      Refactor model interfaces to classes · 2e9be6e9
      rhenck authored
      This way elements can handle their logic themselves without having to
      rely on outside utility classes.
      
      Also restructure files in common in a more logical way.
      2e9be6e9
  20. May 05, 2022
    • rhenck's avatar
      Refactor droplist · abca027e
      rhenck authored
      - Fix DropLists with copyOnDrop to display a placeholder copy of
      dragged elements.
      The drop preview is hidden on those lists. It still has to be in the DOM
      to be the target for the 'falling' animation of the dragged item,
      otherwise it flies to the top left corner of the viewport.
      abca027e
  21. May 02, 2022
    • rhenck's avatar
      Implement copy on drop for dropLists · c6f4e3f2
      rhenck authored
      With this setting elements are copied when being dropped to another 
      list.
      
      On drop it is also checked if the item-ID is already present in the 
      list. If it is the drop event is silently discarded. This allows putting 
      items back in the list without creating duplicate IDs.
      
      Lists with this setting:
      - do show a placeholder of the items being dragged. This way it is 
      conveyed that the item will remain there after being dropped.
      - don't show a placeholder when items are hovered over them, to avoid 
      confusion with duplicate items.
      
      Sorting within DropLists is disabled, since it causes moving items 
      within the list. It has to be discussed if this feature is even needed.
      c6f4e3f2
  22. Apr 19, 2022
  23. Apr 05, 2022
  24. Mar 31, 2022
  25. Mar 02, 2022
    • rhenck's avatar
      Refactor unit definition and sanatizer · 874c1af3
      rhenck authored
      - Units and element are now built via the factory. This ensures only the
        wanted properties are present. All others are discarded.
      - Since the sanatizer is supposed to check the unit defintion version
        it is used by player and editor and therefore put in common.
        This in turn makes it necessary to put the JSON resolver settings
        in the root-TSConfig file.
      - Renamed a couple of properties to have clearer names.
      874c1af3
  26. Feb 28, 2022
  27. Feb 18, 2022
    • rhenck's avatar
      Refactor style interface · 6237ccb2
      rhenck authored
      - Unify font and surface props
      - Use intersection type for additional properties
      - Also rework editor props panel to properly create the combined 
      properties recursively, passing the results to its child panel (tabs).
      New algorithm works without lodash, therefore the package is removed.
      6237ccb2
  28. Feb 17, 2022
    • rhenck's avatar
      Rework models from classes to interfaces · f416ce14
      rhenck authored
      This removes all the classes and goes back to simple interfaces for
      unit, pages etc and all elements. This makes creating them easier and
      cleaner.
      Things like specific needs when setting element properties and most
      importantly compatibility handling is done by a special service module,
      that knows all the elements and how to repair old their potentially
      outdated definitions.
      f416ce14
  29. Feb 16, 2022
  30. Feb 11, 2022
Loading