Skip to content

Releases: Patternslib/Patterns

Release 9.5.0

27 Sep 07:20
Compare
Choose a tag to compare

9.5.0 (2022-09-27)

Features

  • pat close panel: Better close-panel support. (fbc20a8)- Do not close panels when the form is invalid and submitted.
  • Simplify the close panel logic by switching to event based triggering.
  • Allow to postpone close panel events by pat-inject until successful
    injection.
  • Simplify pat-modal's close-panel logic.
  • pat validation: Add submit buttons to disable selector per default. (e6f8ba3)

Bug Fixes

  • core registry: Always put pat-validation first in the pattern execution chain. (27fb575)

  • pat validation: Fix problem with submitting invalid forms with pat-inject. (b01819a)Stop submit event propagation if the form is invalid.
    This fixes a problem where a invalid form could be submitted via pat-inject.

Maintenance

  • pat navigation: Remove console.log debug message from tests. (4529761)

  • pat validation: Add modal use case to demo. (aa99e2e)

Release 9.4.0

23 Sep 07:52
Compare
Choose a tag to compare

9.4.0 (2022-09-23)

Features

  • pat forward: Do not steal the click event. (7755aa8)When a pat-forward element is clicked, allow to propagate the click event so that other handlers can also react.
    Fixes: #1063

  • pat tooltip: Keep the title attribute for source ajax and content. (fa6bff7)The tooltip element's title attribute is only stripped if the source is set to title (the default) and kept otherwise.
    Fixes: #945

Bug Fixes

  • pat inject: Update the URL earlier (a02488d)Update the history/URL after the injection has been done and before post
    processing - e.g. scanning for new patterns - is happening.
    Other patterns like pat-navigation are depending on an updated URL state.

  • pat navigation: Fix selector for checking existing current classes. (3091a29)

Release 9.3.1

21 Sep 11:28
Compare
Choose a tag to compare

9.3.1 (2022-09-21)

Maintenance

  • Build: Upgrade pat-upload to 3.1.1 to fix the previous pat-upload brown bag release. (030b801)pat-upload 3.1.0 did not include the advertised changes and was basically the same as 3.0.0.

Release 9.3.0

20 Sep 17:36
Compare
Choose a tag to compare

9.3.0 (2022-09-20)

Features

  • pat navigation: Mark the navigation items after injection. (ec2a795)After a pat-inject has updated the navigation, re-mark all navigation items.
    This is an alternative and approach to the previous mutation observer based one.

Maintenance

  • Build: Upgrade dependencies. (60b4e2e)

Release 9.3.0-beta.0

16 Sep 15:43
Compare
Choose a tag to compare
Release 9.3.0-beta.0 Pre-release
Pre-release

9.3.0-beta.0 (2022-09-16)

Maintenance

  • core base: Remove console.log statement from tests. (09d533e)

Breaking Changes

  • pat navigation: Improve performance by removing the unnecessary mutation observer. (7c28913)Since we're almost always using pat-inject for replacing or adding DOM nodes
    and we already have support for pat-inject here, the mutation observer is not
    necessary. Removing it improves the performance in situations where the
    navigation structure is updated - for example off-canvas navigation updates
    with pat-tabs would invoke many mutation observer callback hits. The previous
    performance improvement solved the performance penalty by deferring the
    callback for 10ms, but this is taking that further by avoiding it at all.

Release 9.2.1

16 Sep 15:03
Compare
Choose a tag to compare

9.2.1 (2022-09-16)

Bug Fixes

  • pat navigation: Do not break when no item wrapper is found. (6c84a41)

  • pat navigation: Improve the performance when the navigation elements change. (a6ec32b)Debounce the mutation observer callback which initialized the markings for 100ms for better performance.

  • pat navigation: Initialize the click handler on the element directly. (0b099cc)This way it needs to be initialized only once, even if the subtree changes.
    Remove the init_listeners from the mutation observer for better
    performance.

  • pat navigation: Only search within the current element. (417085e)

  • pat navigation: Remove mockup-related checking of input fields. (1e5afe7)

Release 9.2.0

15 Sep 11:41
Compare
Choose a tag to compare

9.2.0 (2022-09-15)

Features

  • pat close panel: Support for closing dialog panels. (7593048)

  • pat navigation: Add URL-based navigation markers. (9a0f7a3)That feature was also present in the old implementation but is now improved.

  • pat navigation: Always set in-path classes. (16bc8a2)When doing URL based checkings do always set the in-path classes for an active submenu item, even if it does not match the URL path hierachy.

  • pat navigation: Support click-only markings. (904e54f)Mark the navigation items also on clicks on anchors without pat-inject.

  • pat navigation: When a navigation wrapper is in-path, also mark the corresponding anchor as in-path. (e9da003)

Bug Fixes

  • Build: Register jQuery globally. (e72f41a)Since the module federation support jQuery was registered globally too late for some scripts.
    Now jQuery is registered as soon as the index.js is loaded.
    This allows for following scripts to use jQuery.

  • core base: Do not break when initialized with no element. (cd16107)

Breaking Changes

  • pat navigation: Set explicit pattern trigger. (968edca)Do only trigger the pattern on the .pat-navigation class and remove the trigger for .navigation classes and <nav> elements.

Maintenance

  • core dom: Code optimization for dom.find_parents. (de1fb71)

  • core dom: Update documentation. (4ac25cc)

  • HTMLDialogElement support not in @patternslib/dev 2.7.0. (d2c279f)

  • Modernize header markup in demo files. (2f366e9)

  • pat inject: Move core.utils.rebaseURL to inject patterns. (144240d)core.utils.rebaseURL was only used by the inject pattern and is in this form not useful for broader use.
    If you need to rebase an relative or absolute URL against a base url, use:
    new URL(url, base_url)

  • pat inject: Specify allowed values for the history parameter. (e36c58c)

  • pat navigation: Modernize code. (f5269de)

  • pat navigation: Refactor implementation for more stability. (458e76b)

  • Upgrade dependencies. (806fc24)

Release 9.1.1

08 Sep 10:08
Compare
Choose a tag to compare

9.1.1 (2022-09-08)

Bug Fixes

  • pat display time: Fix relative time for timezone corner cases. (3c62c65)For date-only from-now, just use Intl.RelativeTimeFormat to avoid any
    timezone calculation mistakes. This prevents a case where in days in the
    future or past were shown as 9 days due to timezone differences in some
    circumstances.

Maintenance

  • pat display time: Extend the demo. (2bd1ff6)

  • pat inject: Correct docs that the history parameter does not have record set as default. (7f06eda)

  • pat inject: Re-organize the demos. (3d3e8c3)- Create dedicated demo folder and move demo files in there.

  • Remove inject-history folder and move demo into inject.

Release 9.1.0

06 Sep 23:51
Compare
Choose a tag to compare

9.1.0 (2022-09-06)

Bug Fixes

  • pat sortable: Fix sorting functionality when sort item has any other class than .sortable. (75815a6)

Maintenance

  • pat display time: Fix tests and demo which failed due to timezone offsets around midnight. (a5d0695)

Release 9.1.0-beta.4

05 Sep 14:20
Compare
Choose a tag to compare
Release 9.1.0-beta.4 Pre-release
Pre-release

9.1.0-beta.4 (2022-09-05)

Bug Fixes

  • Build: Resolve to jquery 3.6.1 to not include mutliple jquery versions. (e1c7d01)