Skip to content

Releases: Patternslib/Patterns

Release 9.2.0

15 Sep 11:41

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

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

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

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)

Release 9.1.0-beta.3

05 Sep 14:04

Choose a tag to compare

Release 9.1.0-beta.3 Pre-release
Pre-release

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

Features

  • pat sortable: Trigger pat-update after sorting changes. (3bb5513)Other patterns can react on that for example submitting the form with pat-auto-submit.

Bug Fixes

  • pat auto submit: Support pat-clone and pat-sortable. (4ec72ef)When pat-clone adds an element, initialize that element to listen for changes.
    When pat-clone removes an element or pat-sortable changes the order, submit the form.

Maintenance

  • Build: Upgrade dependencies. (e5e2c7b)

Release 9.1.0-beta.2

23 Aug 20:43

Choose a tag to compare

Release 9.1.0-beta.2 Pre-release
Pre-release

9.1.0-beta.2 (2022-08-23)

Maintenance

  • Upgrade pat-tiptap to 4.5.0. (423dfc7)

Release 9.1.0-beta.1

19 Aug 15:52

Choose a tag to compare

Release 9.1.0-beta.1 Pre-release
Pre-release

9.1.0-beta.1 (2022-08-19)

Features

  • core base: Add pattern property autoregister to allow patterns which are not automatically registered in the patternslib registry. (ef4d234)

  • pat inject: Dispatch a patterns-injected-delayed event 10ms after the injection has been done and pass the injected content with it. This allows to re-scan the injected content in cases where a pattern wasn't registered at injection time. (00b66fe)

Bug Fixes

  • pat inject: Fix code error with not scanning and triggering for comment nodes. (c281ae4)

  • pat validation: Do not trigger a pat-update after validation. (b4603c9)

Maintenance

  • Build: Unlink all eventually linked @patternslib dependencies before building bundles. (debeeea)

  • Build: Upgrade dependencies. (515bf42)

  • pat inject: Minor test restructuring. (e740a88)

  • pat validation: Add input with type URL example to demo. (b3e98e0)

Release 9.1.0-beta.0

11 Aug 16:05

Choose a tag to compare

Release 9.1.0-beta.0 Pre-release
Pre-release

9.1.0-beta.0 (2022-08-11)

Features

  • core utils: Add date_diff to calculate the difference in days between two dates, respecting DST‌ offsets. (dd5cc7b)

  • core utils: Add is_iso_date check for testing for iso dates only. (a90afd6)

  • pat display time: Improve the output for date-only dates in relative mode. (e3909a4)When output is from-now (relative date) and the date is a date-only date without a time component, do not include the time in the output.

Maintenance

  • Build: Include bundle name and version in generated files (Feature of @patternslib/dev 2.4.0.) (392998e)

  • pat display time: Improve the documentation. (ef13602)

  • Upgrade dependencies. (070b262)

Release 9.0.1

20 Jul 16:06

Choose a tag to compare

9.0.1 (2022-07-20)

Bug Fixes

  • Build: Fix luxon to 2.4.0 to avoid webpack MF error due to non standard package.json setup. (784f036)

  • pat tooltip: Avoid repositioning of the tooltip arrow. (880ebdb)- Setting the tooltip-container class before async calls.

  • Avoid unnecessary repaints by grouping dom manipulations together.
  • Merge onMount and onShow into onShow method.

Release 9.0.0

17 Jul 21:47

Choose a tag to compare

9.0.0 (2022-07-17)

Features

  • Webpack Module Federation: Dispatch the event patternslib_mf--loaded when all remotes have been initialized. (9c86483)

Bug Fixes

  • pat modal: Trigger pat-modal-ready event only once. (ddb7c5d)For pat-modal instances on anchor elements where pat-inject is involved the
    event pat-modal-ready was triggered twice. This is now fixed and the event
    is only triggered after the modal was inserted.

  • pat tooltip: Fix problem with misaligned tooltip arrow with remote content. (4656100)

  • pat tooltip: Initialize Patterns directly after getting content. (e601fd8)This fixes a problem where onMount was initializing Patterns before get_content returned and inserted the content.

Maintenance

  • Bundle: Upgrade pat-tiptap to 4.3.0. (24bfa4b)

  • core base: Document prevention of pattern double initialization in asynchronous cases. (1d9bb38)

  • pat modal: Document how pat-modal works. (2015e89)