Releases: Patternslib/Patterns
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)
Release 9.9.0-alpha.5
9.9.0-alpha.5 (2023-04-21)
Bug Fixes
- pat collapsible: Adapt to changed pat-scroll. (7211616)
Breaking Changes
-
pat scroll: Simplify pattern and remove obsolete functionality. (b62e6e0)
Since pat-navigation now supports marking navigation and content items
with CSS classes based on their scroll position this functionality is
removed from pat-scroll. You can still use pat-scroll in combination
with pat-scroll-marker to achieve the same functionality like before.
Also the jQuery based scroll animation is removed as smooth scrolling is
supported by CSS since long.
Maintenance
Release 9.9.0-alpha.4
9.9.0-alpha.4 (2023-04-19)
Bug Fixes
-
pat navigation: Change default scroll-trigger-selector to "a[href^='#'].scroll-trigger". (efc5826)
In the alpha.3 release it was "a[href^='#'].scroll-marker" where it
should have been "a[href^='#'].scroll-trigger". This is fixed now.
Release 9.9.0-alpha.3
9.9.0-alpha.3 (2023-04-19)
Features
-
core utils: Add is_option_truthy to check Pattern options for a truthy value. (6a6e9fa)
A values "undefined", "null", "false", "none" or "" are considered falsy
and can be used to disable some functionality. Other values including
"0" are considered to be true. -
core utils: parseLength: handle unitless lengths as pixels. (15090e3)
-
pat navigation: Implement scroll-trigger-selector option. (818c68d)
Define the CSS selector which is used to find navigation links with hash
URLs. The default is "a[href^='#'].scroll-marker" which would find all anchor
elements which href starts with a "#" sign and have the class
scroll-marker.
The restriction on scroll-marker allows for other hash-urls in the same
navigation - e.g. a pat-tooltip which references a local content.
If you set it to "none" the scroll marker functionality is not activated. -
pat scroll-marker: Implement selector option. (678aee5)
Define the CSS selector which is used to find navigation links with hash
URLs. The default is "a[href^='#']" which would find all anchor elements
which href starts with a "#" sign.
Bug Fixes
-
pat navigation: Allow "none" to be a valid option for scroll-item-visibility. (456e05a)
-
pat navigation: Rename scroll-marker- options to scroll-item. (a40fc0f)
Implement review comments.
This is not listed as "breaking" change because this change on the
scroll-marker feature happens within the alpha phase.
- pat scroll-marker: Allow "none" to be a valid option for visibility. (e506ed2)