Skip to content
Snippets Groups Projects
This project is mirrored from https://*****@github.com/iqb-berlin/verona-modules-aspect.git. Pull mirroring updated .
  1. Jan 12, 2022
    • rhenck's avatar
      [editor] Rework TextEditor to also accept cloze documents are input · 7f2ac313
      rhenck authored
      Also editor in cloze mode now respects the element's font size.
      7f2ac313
    • rhenck's avatar
      Rework cloze element data · 15cdca5e
      rhenck authored
      - Now only has a variable 'document'. This holds the HTML representation
        in an object. This object is enriched with element models.
      - Because the the TextEditor extension can neither create multiple
        element instances nor use the IDService to generate their IDs, this
        has to be done afterwards. See ClozeParser.
      - The cloze element has rather extensive compatibility handling because
        cloze elements used to save an actual HTML representation. This has to
        be transformed to JSON/object. Therefore we replace the old backslash-
        markers with custom HTML tags. The editor object does this
        transformation. It needs some custom extensions to recognize (and
        don't remove) the HTML tags though.
      - Cloze now shows a placeholder text when empty
      - The cloze component needs a small pipe to extract text formatting
        options from the paragraph parts.
      - For getting the child elements for the player the models have to be
        extracted from the somewhat complex (JSON)document.
      - Added some rudimentary interfaces for the TextEditor document format.
      - Removed the old ClozePart interface. This is quasi part of the new
        interfaces.
      15cdca5e
    • rhenck's avatar
      [editor] Fix minor issues in TextEditor extensions · 71575dd6
      rhenck authored
      - Give proper name
      - Fix variable names
      - Fix deprecated methods
      71575dd6
    • rhenck's avatar
      c04e7014
  2. Jan 05, 2022
  3. Jan 03, 2022
  4. Dec 17, 2021
    • rhenck's avatar
      [editor] Add toggle-button to TextEditor in Cloze-mode · 7bc1ac8c
      rhenck authored
      Also improve tooltips.
      7bc1ac8c
    • rhenck's avatar
      [editor] Fix and improve sizing props panel · 56f65547
      rhenck authored
      - Fix reading values from combinedProperties object. This object has the
      needed property in its root.
      - Don't show alignment buttons in dynamic mode
      - Make the small input fields a little wider so the placeholder text
      does not overflow, when there is no valid value to show. This may happen
      when multiple elements are selected, which have differing values.
      56f65547
    • rhenck's avatar
      [editor] Fix element alignment · 5269a5f4
      rhenck authored
      - Move the method to the unit service, so the proper 
      updateElementProperty method can be used.
      - Also improve the logic, reducing variables.
      5269a5f4
    • rhenck's avatar
      [editor] Improve element selection logic · a682b6d0
      rhenck authored
      Only select the element component when it is not already selected. This 
      prevents delesecting elements which have been multiselected.
      a682b6d0
  5. Dec 16, 2021
  6. Dec 15, 2021
  7. Dec 14, 2021
    • rhenck's avatar
      [editor] Refactor color inputs · d67ba751
      rhenck authored
      Use a suffix button to activate color picker instead of having an extra 
      form field.
      
      Also add direct input for likert line coloring color.
      d67ba751
    • rhenck's avatar
      Fix build process for custom theme · 363058d0
      rhenck authored
      The theme file is now project specific because Angular demands assets
      to be part of the project.
      It also differs in content: The editor theme is only applied to canvas
      elements. For the player every checkbox and radio button is affected.
      
      The components now again use the default color of 'accent'. The custom
      theme now has the green as accent color and no longer primary.
      363058d0
  8. Dec 13, 2021
  9. Dec 10, 2021
    • rhenck's avatar
      [editor] Refactor cloze parser · ccb70e2c
      rhenck authored
      ccb70e2c
    • rhenck's avatar
      Improve code style · ce392fca
      rhenck authored
      Variable naming, reorder imports etc.
      ce392fca
    • rhenck's avatar
      [editor] Refactor Verona API Service · 2ca15907
      rhenck authored
      Introduce interfaces and clean the structure.
      2ca15907
    • rhenck's avatar
      Refactor ElementFactory to abstract class · 33e72a0b
      rhenck authored
      This makes for cleaner imports.
      33e72a0b
    • rhenck's avatar
      [editor] Refactor canvas component events · 4a60c8c2
      rhenck authored
      The dropListList generation is now done when things are changed via the 
      section menu and no longer on element update via unit service.
      Also remove some interfaces to avoid circular imports. The interfaces 
      are so small and insignificant that their form might as well be 
      specified at usage point.
      4a60c8c2
    • rhenck's avatar
      [editor] Refactor unit service · 53f4e848
      rhenck authored
      No longer have unit as subject. Components can use the unit variable as 
      is and still get updated.
      This removes some listener stuff in conected components.
      53f4e848
    • rhenck's avatar
      [editor] Fix element duplication · 2e743910
      rhenck authored
      Was not correctly creating new instances of non-primitive values. Now
      uses "JSON.parse(JSON.stringify(element))" for deep copying the element
      first.
      
      Also refactor by moving the method to the UnitService, where all ID
      handling should take place.
      2e743910
    • rhenck's avatar
      Refactor IDService and add unit tests · 7affe7f9
      rhenck authored
      No longer is a singleton but a normal servicce now again. The singleton 
      logic was needed in the past but not anymore.
      7affe7f9
    • rhenck's avatar
      Set test runner to close after being done · eaecf921
      rhenck authored
      eaecf921
    • rhenck's avatar
      Move ID-Service to editor · 03e8c00b
      rhenck authored
      Generally only the editor needs to generate new IDs. Before there was
      need to have it in common because some elements (like compound elements)
      needed to generte new Elements including IDs.
      Now all ID stuff is handled by the UnitService and the elements classes
      are handed the fully built elements. Unfortunately this means that some
      logic has to move back from classes into the UnitService. To un-bloat
      the UnitService a (and in the future some more) helper class is created
      for this logic.
      
      The most important thing is, that the UIElement no longer generates
      an ID when created. The ID has to be created before and passed to the
      constructor.
      03e8c00b
    • rhenck's avatar
      Move FileService to editor · bfd5272c
      rhenck authored
      bfd5272c
  10. Dec 09, 2021
Loading