Skip to content

Release 9.8.0-alpha.0

Pre-release
Pre-release

Choose a tag to compare

@thet thet released this 05 Dec 21:36
· 604 commits to master since this release

9.8.0-alpha.0 (2022-12-05)

Features

  • core basepattern: Provide the parser as static attribute. (49db677)This change is backwards compatible Change the parser attribute to a
    static attribute and provide it also on the object. This change was
    necessary because pat-inject was using the parser on a registered
    Pattern class to rebase URL configurations in the rebaseHTML method.
    There was no access to the parser attribute on non-instatiated objects
    before, now it is.

  • pat-autosuggest: Add a configurable separator for multiple values. (21cbe8f)

Bug Fixes

  • pat-auto-suggest: Adapt to changes from pat-depends where the event is called on the pat-depends element itself. (926de33)

  • pat-autofocus: Refocus on DOM updates by other Patterns. (4dc2963), closes #1092Set the focus if appropriate when the DOM has changed and a pat-update
    event has thrown. Please note, this does not use an IntersectionObserver
    but relies on other Patterns using the pat-update event. This behavior
    got lost in Patternslib 6.1 and is now restored.Fixes: #1092

  • pat-bumper: Correctly set the bumpuing classes. (e66b987), closes #1083The bumping classes are now set correctly on any bumping direction.

The logic is adapted to work with any top, right, bottom, left, margin, border
and padding setting on a wrapping container, two different containers for x and
y scrolling and on the window viewport as container.Fixes: #1083

  • pat-scroll-box: Fix failing tests due to timing inconsitencies. (7a03ef8)

Maintenance

  • core utils: utils.hideOrShow: add updated dom to pat-update event data. (0b5f92f)

  • pat stacks: Modernize code. (7928880)

  • pat-autofocus: Switch to class based patterns. (4302d6c)

  • pat-bumper: Correct documentation. (fa0254c)

  • pat-bumper: No IE11 support anymore. (bae3f55)

  • pat-bumper: Switch to class based patterns. (2b04cbc)

  • pat-clone-code: Make parser attribute a static attribute. (eb70b84)

  • pat-clone: Add updated dom to pat-update event data. (18375fe), closes #1092Related: #1092

  • pat-clone: Modernize code. (f0d8d5b)

  • pat-collapsible: Add updated dom to pat-update event data. (fde478c), closes #1092Related: #1092

  • pat-collapsible: Modernize code. (870f6dc)

  • pat-collapsible: Switch to class based pattern. (417b0d6)

  • pat-depends: Always throw update event and add changed dom structure. (6152afd), closes #1092Trigger pat-update on pat-depends itself and add updated dom structure to pat-update event data.
    This allows other patterns to also listen to changes in pat-depends.
    Goes together with the previous change on pat-autofocus.Related: #1092

  • pat-equaliser: Add updated dom to pat-update event data. (c66a431)

  • pat-scroll: Add updated dom to pat-update event data. (fc23966)

  • pat-scroll: Code cleanup. (4f27b99)

  • pat-scroll: Fix test markup. (9b788a0)

  • pat-sortable: Add updated dom to pat-update event data. (18711eb)

  • pat-stacks: Add updated dom to pat-update event data. (41f8bb3)

  • pat-stacks: Switch to class based pattern. (6065eae)

  • pat-switch: Add updated dom to pat-update event data. (7434236)

  • pat-toggle: Add updated dom to pat-update event data. (56a0073)