Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] *: gantt: variable time range #162017

Closed
wants to merge 13 commits into from

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    f32fbb4 View commit details
    Browse the repository at this point in the history
  2. [IMP] web: draggable - prevent click after dragend

    This commit allows to prevent the next eventual click event
    which could happen on drag end if the user does a pointer up
    above the initially dragged element.
    
    It is useful to prevent any click handler from triggering
    after a drag sequence was initiated so that the handlers
    don't overlap with each others in this special case.
    juliusc2066 authored and Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    ab3908c View commit details
    Browse the repository at this point in the history
  3. [FIX] web: draggable - scroll from cursor

    This commit changes the way the draggable hooks handle the "edge
    scrolling":
    
    - before this commit: scrolling started when the dragged element
    approached a border of one of its scrollable parents;
    
    - now: scrolling starts when the cursor approaches a border of the
    scrollable parent.
    Arcasias authored and Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    a1a02d7 View commit details
    Browse the repository at this point in the history
  4. [IMP] web: draggable - restrict direction of edge scrolling

    We make possible to block the edge scrolling in one direction when dragging.
    This can be achieved by setting a new option "direction" in the param
    edgeScrolling of the draggable hook builder. That option can take two
    values: "horizontal" or "vertical". If edgeScrolling is enabled and that
    option is set, scroll will only be possible in that direction.
    Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    9e28956 View commit details
    Browse the repository at this point in the history
  5. [IMP] web: draggable - edge scrolling calls onDrag

    After this commit, the edge scrolling case will continuously call the
    onDrag handler.
    
    This is useful when a visual feedback is computed in the caller's onDrag
    handler.
    
    This is now a requirement for the v3 gantt view.
    Task: 3601456
    brboi authored and Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    7f85ed1 View commit details
    Browse the repository at this point in the history
  6. [IMP] web: draggable - add scrolling edge info

    After this commit, the caller's side will know in the dragging context
    which edge is being scrolled (on edge scrolling situations obviously).
    brboi authored and Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    3540336 View commit details
    Browse the repository at this point in the history
  7. [IMP] web: getPickerCell in datepicker range

    A new param "inBounds" is introduced for getPickerCell.
    If set to true, only the values in the current selected
    datepicker range are returned.
    Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    be117fe View commit details
    Browse the repository at this point in the history
  8. [REF] web: ease override of DatePicker behavior

    This commit slightly changes the signature of the `makePopover` utility
    function in order to ease its override.
    
    Before it expected the whole popover service API, only to use its `add`
    function. Now it expects directly the add function.
    
    Another change is also introduced: the DateTimePicker hook and the
    datetimepicker service now give an easy access to the `createPopover`
    function (which is essentially the `makePopover` utility function).
    
    These changes will allow the v3 gantt view (task 3601456) to place its
    date pickers in dialogs when the display is small.
    brboi authored and Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    f585cd3 View commit details
    Browse the repository at this point in the history
  9. [IMP] web: make datetime_picker cells to take available space

    This commit force the datetime_picker's cells to have the
    same aspect ratio without any specific width or height on
    small screen.
    So the datetime_picker can take the all width space available
    and be always responsive as each cells share the same width
    and the same height to respect the aspect ratio.
    rfr-odoo authored and Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    db7614b View commit details
    Browse the repository at this point in the history
  10. [IMP] web: add custom font awesome stack

    This commit adds a custom class for stacking two elements
    as in some case the `fa-stack` class doesn't work correctly.
    This new class align the inner item on the base line instead
    of being centered.
    
    e.g. of usage:
    ```html
    <span class="o_fa_stack">
        <i class="fa fa-calendar-o" role="img" aria-label="Today" title="Today"/>
        <span>26</span>
    </span>
    ```
    rfr-odoo authored and Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    fc7477b View commit details
    Browse the repository at this point in the history
  11. [REF] web: draggable - clamp not useful

    By construction, delta is less than threshold in all calls to diffToScroll,
    so we can simplify a bit the code and remove the call to clamp.
    Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    32dc8e8 View commit details
    Browse the repository at this point in the history
  12. [IMP] web: wait an animation frame in zoomOut

    Click on the zoom out button in the datepicker provokes a rendering of the
    datepicker. So we make the helper zoomOut wait for an animation frame to
    make it more useful.
    Polymorphe57 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    13c3b47 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    143638a View commit details
    Browse the repository at this point in the history