Skip to content
Snippets Groups Projects
This project is mirrored from https://*****@github.com/iqb-berlin/verona-modules-aspect.git. Pull mirroring updated .
  1. Jun 05, 2023
  2. May 05, 2023
  3. Jun 03, 2022
  4. May 05, 2022
  5. May 02, 2022
  6. Apr 13, 2022
  7. Mar 25, 2022
  8. Mar 23, 2022
  9. Mar 11, 2022
  10. Feb 09, 2022
    • rhenck's avatar
      Change all selector prefixes from "app" to "aspect" · a6bdf445
      rhenck authored
      This is done according to the Angular best practices and minimizes
      namespace collisions when using other packages which might use the same
      selectors.
      
      Technically the selectors are not even becessary since we use an Angular
      component factory to create element components but it is still useful
      for the DOM element naming, for debugging purposes for example.
      a6bdf445
  11. Dec 10, 2021
    • 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
  12. Dec 07, 2021
    • rhenck's avatar
      [editor] Add section element list · af1b9ad7
      rhenck authored
      This allows to select elements without clicking them on the canvas, as 
      elements may be obstructed or not visible for some reason.
      
      The selection logic is a bit complicated because usually only the 
      overlay components are usd for selection which are also the place to 
      apply any highlighting on. Here we have to find the component element 
      reference from the section. Therefore the double looping 
      'getElementComponent' method.
      
      Also when an elements is selected it briefly gets z-index 100 so it is 
      moved to the front and visible and manipulatable.
      af1b9ad7
  13. Nov 20, 2021
  14. Nov 19, 2021
  15. Nov 11, 2021
    • rhenck's avatar
      [editor] Refactor directory structure and separate dialog components · cc549202
      rhenck authored
      This structure moves closer to the structure template the team decided
      on. Components and services are kept in dedicated folders instead of
      following the logical code structure. This is still not the case here as
      the unit-view component is still nested, but it's closer.
      cc549202
  16. Oct 29, 2021
  17. Oct 28, 2021
  18. Oct 18, 2021
    • rhenck's avatar
      [editor] Refactor directory structure · 9f65f0c9
      rhenck authored
      The main components are right at top level and the directories below
      mimic the data structure (unit->page->section).
      The toolbar is only used in dev mode and does not belong directly to the
      unit view.
      The TextEditor is a complex component and deserves it's own directory
      even though it is used within the unit-view. Might be refactored to its
      own module later.
      9f65f0c9
  19. Oct 13, 2021
  20. Sep 26, 2021
    • rhenck's avatar
      [editor] Add section duplication · 95eb555e
      rhenck authored
      The duplication is done by creating a new element (UnitUIElement)
      for each element of the copied object. And then overwriting it with
      the props of the old one, in addition to assigning a new ID.
      95eb555e
    • rhenck's avatar
      [editor] Improve drag and drop of multiple elements · bcec1fc6
      rhenck authored
      Can now be repositioned and moved between sections properly.
      bcec1fc6
    • rhenck's avatar
      [editor] Refactor selection logic · df0a6139
      rhenck authored
      - The selection service only needs to handle element selection. For
      pages and sections having the index is enough.
      - Those indeces are simple fields instead of observables. This also
      simplifies the components which don't have to get the value out of the
      observables.
      - Therefore the selection service does no longer need to have a direct
      reference to the unit service and it's unit.
      - Selection logic is not done by the section components themselves but
      by the parent canvas component.
      - The unit service can now manipulate pages and section by index in
      addition to passing the necessary objects directly.
      df0a6139
  21. Sep 24, 2021
  22. Sep 23, 2021
  23. Sep 20, 2021
    • rhenck's avatar
      [editor] Refactor section properties / remove edit mode · 94395fb8
      rhenck authored
      The section menu (containing all former properties options and
      reordering) is now shown on section hover.
      - With the removal of the section edit mode the view-only elements
      are no longer needed, as sections can no longer be dragged.
      - The unit service now has a unified logic for moving items in an array,
      being used for pages and sections. Although for pages there is an
      additional regarding the always shown page.
      The reorder function silently ignores nonsense reorders!
      - The prompt dialog now takes the text as parameter
      94395fb8
  24. Sep 17, 2021
  25. Sep 02, 2021
  26. Sep 01, 2021
    • rhenck's avatar
      [editor] Rework drag and drop of dynamic sections · c2a9d50b
      rhenck authored
      To make it work that the section itself can handle drop events, but
      also have the canvas to handle drops when outside of the section, all
      the allowed dropLists have to be connected. Because the lists are not
      properly nested (see below), this needs to be done manually by IDs.
      This list is given to the necessary dropLists to make it possible to
      drop items not only into them but also any other connected dropLists.
      
      Dynamic sections have droplists for the grid cells next to the actual
      elements. Elements can not be children of the grid cells because they
      can span over multiple cells.
      
      Dynamic sections don't have a general drop area, like static sections.
      They have grid placeholder elements which are droplists. Therefore they
      have no parent dropList to add to the list but themselves.
      Static elements only have the parent, which is added to the list.
      
      Resizing in dynamic sections is handled by the section/element-overlays
      themselves.
      
      Ticket #38
      c2a9d50b
  27. Aug 31, 2021
  28. Aug 25, 2021
  29. Aug 23, 2021
  30. Aug 16, 2021
  31. Aug 05, 2021
  32. Aug 03, 2021
    • rhenck's avatar
      [editor] Massively refactor unit and page view · 99094fd3
      rhenck authored
      - ... mostly for dynamic positioning
      - Refactor reordering of sections. They can now be moved by small
      buttons to the side, which appear when hovering. The section edit mode
      is no longer available. -> KISS
      - Removed all toolbars. The props can now be set via the props panel,
      which now has sections for pages, sections and elements. This is to have
      more vertical space available for editing the unit.
      - Sections can now (only) be added via the toolbox panel, where the
      second tab is now exclusively for sections. Future templates are
      supposed to be whole sections, which can also be added from there.
      - Refactor CSS layouting (flex and co) to have better handling of
      vertically growing page (via sections)
      - Some preparation for an upcoming overhaul of selection stuff
      (again :))
      99094fd3
  33. Jul 29, 2021
    • rhenck's avatar
      [editor] Refactor unit selection · 846e7cf5
      rhenck authored
      - UnitService no longer knows about selection. Now needs element to be
      manipulated, as param.
      - Add new SelectionService handling selection of canvas elements. No
      sections yet.
      Move eventing stuff accordingly.
      - Canvas Section now creates it's child overlay component in the
      template instead of dynamic component creation. This make event handling
      easier und is more the Angular Way. Also removes a lot of eventing and
      selection handling from the component.
      - Aligment of selected canvas elements in done in UnitService. That is
      where all unit manipulation should happen.
      - More takeUntil
      846e7cf5
  34. Jul 27, 2021
  35. Jul 09, 2021
Loading