Releases: Patternslib/Patterns
Release 9.9.4
Release 9.9.3
Release 9.9.2
Release 9.9.1
9.9.1 (2023-05-23)
Release 9.9.1-alpha.0
9.9.1-alpha.0 (2023-05-23)
Bug Fixes
-
pat inject: Second attempt to fix the scrolling behavior, where the scrolling target could not be found. (829a6a6)
The original problem fixed in commit 911b8b8
for 9.9.0-beta.1 addressed a problem where the scroll target was not a
direct child of the injected content but some levels deeper. But this
fix broke the situation where the scroll target is a direct child of the
injected content. The fix applied here handles both situations.
Release 9.9.0
9.9.0 (2023-05-23)
Release 9.9.0-beta.3
9.9.0-beta.3 (2023-05-17)
Features
-
core dom: Add get_position, scroll_to_element, scroll_to_top and scroll_to_bottom functions. (0368c48)
To help with scrolling tasks and to unify them these methods were
introduced:
get_relative_position
: Get the position of an element relative to
another.scroll_to_element
: Scroll the given scroll_container to a given element.scroll_to_top
: Scroll the container to the top.scroll_to_bottom
: Scroll the container to the bottom.
Maintenance
-
pat inject: Use the new scrolling helpers from core.dom. (89d3ef3)
-
pat scroll: Use the new scrolling helpers from core.dom. (f37bc99)
This fixes also the scrolling position from the previous release which
would have been wrong for many cases where the scrolling target is
within a positioned element.
Release 9.9.0-beta.2
9.9.0-beta.2 (2023-05-17)
Bug Fixes
-
pat scroll: Fix scroll to position. (a6d72f3)
The scrolling offset was incorrectly calculated since Patternslib
9.9.0-alpha.5. Fix the calculation for the scrolling position by using
offsetTop
andoffsetLeft
insteadgetBoundingClientRect
.
Release 9.9.0-beta.1
9.9.0-beta.1 (2023-05-17)
Bug Fixes
-
pat display time: Default to locale-formatted output. (c77d01a)
Default to formatted output according to the current locale.
This fixes a regression since 4.1.0 which came with the date picker's
styled behavior but let display time output an ISO date instead of a
formatted date when not output format was set. -
pat inject: Allow to use a scroll container other than the injection target. (efde472)
This fixes a problem when the content should scroll to an element which
is within a scroll container below the injection target. Until now the
scroll container could only be a parent of the injection target. Now it
can be a parent of the scroll-target. -
pat inject: Fix scrolling behavior, where the scrolling target could not be found. (911b8b8)
-
pat validation: Do not disable input elements with formnovalidate. (f30af14)
Do not disable input elements with the
formnovalidate
attribute set
when form validation fails.
E.g. a cancel button:<button formnovalidate>Cancel</button>
.
Maintenance
- pat inject: Give tests a individual number to allow easier selectively testing individual tests. (e819b84)
Release 9.9.0-beta.0
9.9.0-beta.0 (2023-05-11)
Bug Fixes
-
pat calendar: Do not set a Content-Type header when no body is submitted (89d34c1)
-
pat navigation: Fix current marker anchors with child elements. (8578b1b)
The links within a pat-navigation structure might have child elements,
e.g. a span within an anchor. In that case the click target is the span
and not the anchor. Apply a fix where a closest anchor of the click
target is searched, which might be the click target itself.
Maintenance
- Upgrade dependencies. (c0b107e)