Skip to content
Snippets Groups Projects
This project is mirrored from https://*****@github.com/iqb-berlin/verona-modules-aspect.git. Pull mirroring updated .
  1. Sep 30, 2024
  2. Jun 03, 2024
    • rhenck's avatar
      Move MessageService to Editor project · 9e5ff29f
      rhenck authored
      This is only used by the Editor. It was in common while the 
      SanitizationService was used by the Player which then could display 
      errors. Sanitization has been refactored and this is no longer needed.
      9e5ff29f
  3. Jul 25, 2023
    • rhenck's avatar
      Comment faulty Sanitizer (old) method · 7d284c4e
      rhenck authored
      This whole class will be deleted soon.
      7d284c4e
    • rhenck's avatar
      Rework ClozeElement document parsing · da7f46a4
      rhenck authored
      The ClozeDocument needs properly instantiated UIElements for the custom 
      elements.
      Instead of creating a new ClozeDocument on the basis of what TipTap is 
      producing and replacing the custom parts with instances, the 
      ClozeDocument is kept in place but the custom parts are collected into a 
      list and changed there.
      
      #450
      da7f46a4
  4. Jul 17, 2023
  5. Jul 05, 2023
  6. Jun 30, 2023
    • rhenck's avatar
      Refactor PositionProperties · 7f571ddf
      rhenck authored
      - Remove dynamicPositioning from PositionProperties. This is not 
      knowledge that the element needs to know. In the few places it was used, 
      it was fixed or solved by asking the containing section about which 
      positioning is active.
      
      - Fix and improve cloze child sizing. All can now have dynamic width and 
      height.
      
      - Fix empty lines in ClozeDocument rendering
      
      - Editor SelectionService now knows if a cloze child is selected. This 
      way the PropertiesPanel can show valid dimension inputs regardless of 
      the underlying section.
      7f571ddf
  7. Jun 15, 2023
  8. Jun 05, 2023
  9. May 24, 2023
  10. Jan 06, 2023
  11. Jan 05, 2023
  12. Jan 04, 2023
    • Richard Henck's avatar
      Add replacement feature and other small improvements · 60664b22
      Richard Henck authored
      - allowReplacement (moved from element to list prop)
      - originList and Index are non-optional (means placeholders have to be 
      used sometimes)
      - Re-introduced the dict of all DropListComponents. This is the only way 
      I have found to get a reference to a DropListComponent by ID. This is 
      needed for returning to origin. Origin is not actually part of the 
      transaction and needs to be fetched from somewhere else. Hence the dict.
      
      - Console statements still present for debugging.
      60664b22
  13. Jan 03, 2023
  14. 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
  15. Oct 14, 2022
  16. Sep 15, 2022
    • rhenck's avatar
      Rework ID handling · 0e45e323
      rhenck authored
      - remove ID handling from model classes. This is now done by the editor 
      itself (mainly unit service).
      - Rename and move IDManager to editor as IDService
      0e45e323
    • rhenck's avatar
      [editor] Add ID check to sanitizer · d284c2e7
      rhenck authored
      Just called from the editor, before creating the Unit instance.
      It goes through all IDs and checks for duplicates. If found it generates 
      a new one and shows the prompt.
      d284c2e7
  17. Sep 13, 2022
  18. Sep 12, 2022
  19. Sep 08, 2022
  20. Sep 06, 2022
  21. Sep 05, 2022
  22. Aug 09, 2022
    • rhenck's avatar
      Add sanitization for option element values · 0e9a02dc
      rhenck authored
      sanatizer
      TextImageLabel:
       position -> imgPosition
      
      DragNDropValueObject
       stringValue -> text
       imgSrcValue -> imgSrc
      
      RadioButtonGroupComplexElement
       columns -> options
      
      Likert
       columns -> options
      0e9a02dc
  23. Aug 01, 2022
  24. Jun 03, 2022
    • rhenck's avatar
      Fix type issues · e1ab36e3
      rhenck authored
      Remove 'any's be adding proper types and using 'never'.
      e1ab36e3
  25. Jun 01, 2022
    • rhenck's avatar
      Quick and dirty fix sanitization service tests · 2f9dcce3
      rhenck authored
      2f9dcce3
    • rhenck's avatar
      Fix simple drop list properties panel · f63443af
      rhenck authored
      Now properly finds all normal and simple drop lists.
      This is achieved by a new method of unit all it's sub-components, which 
      returns all contained elements with and optional type filter.
      
      Also improve (still not very pretty) styling of the drop list props 
      panel.
      
      #260 #259
      f63443af
    • rhenck's avatar
      Add sanitization for drop-list-simple · e74d1ae5
      rhenck authored
      e74d1ae5
    • rhenck's avatar
      Fix sanitization of cloze elements · 044b0c92
      rhenck authored
      The creation of a temporary cloze elements fails when it encounters 
      unknown child types.
      Therefore we use a static ClozeElement method to get the child elements 
      from the document instead of the whole element.
      044b0c92
    • rhenck's avatar
      Rework class initialization · f28b0678
      rhenck authored
      - Elements initialize their fields explicitly and not with
        Object.assign, since Object.assign also assigns
        (and therefore overwrites) parent fields.
      - IDService is no longer an Angular service but a basic singleton. This
        allows to use it in classes.
      - The IDManager can be optionally passed to unit and element
        constructors. When present the elements check and fix their given ID
        when created.
        This way elements can be created without depending on the external
        IDManager but also with the dependency.
      - ElementFactory is no longer used to create elements. Those are now
        either created directly via 'new' or via the Section, which knows the
        different element types.
      f28b0678
  26. 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
  27. May 10, 2022
Loading