diff --git a/.release-it.js b/.release-it.js index f53a971be..f4c9c61b8 100644 --- a/.release-it.js +++ b/.release-it.js @@ -19,6 +19,7 @@ module.exports = { plugins: { "@release-it/conventional-changelog": { infile: "CHANGES.md", + header: "# Changelog\n\nSee the [history](./docs/history/index.md) for older changelog entries.\n\n", ignoreRecommendedBump: true, preset: { name: "conventionalcommits", diff --git a/.release-it/conventional-changelog-commit.hbs b/.release-it/conventional-changelog-commit.hbs index 594bc5e45..41beef173 100644 --- a/.release-it/conventional-changelog-commit.hbs +++ b/.release-it/conventional-changelog-commit.hbs @@ -59,7 +59,6 @@ {{~this.repository}}#{{this.issue}} {{~/if}}{{/each}} {{~/if}} - {{#if body}} {{~body}} diff --git a/CHANGES.md b/CHANGES.md index f68d7bc52..d56124552 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,7 @@ This bypasses the browser restrictions on request for permission dialoges that a * **pat push:** Restructure code. ([2dbe44f](https://github.com/Patternslib/patterns/commit/2dbe44f8eeb2e32becf4efd5394bd3a4522dc442)) Restructure code and narrow down the error handling for fetching to only the fetch block. + ## [8.1.0-alpha.3](https://github.com/Patternslib/patterns/compare/8.1.0-alpha.2...8.1.0-alpha.3) (2022-06-03) @@ -28,6 +29,7 @@ Restructure code and narrow down the error handling for fetching to only the fet * **pat switch:** When logging errors, add the failing element for better debugging. Also, do not log an error twice. ([83f3df3](https://github.com/Patternslib/patterns/commit/83f3df3eb1091a2e7077e3cc94dc6770a2fd9e91)) + ## [8.1.0-alpha.2](https://github.com/Patternslib/patterns/compare/8.1.0-alpha.1...8.1.0-alpha.2) (2022-06-02) @@ -37,7 +39,6 @@ Restructure code and narrow down the error handling for fetching to only the fet * **pat close panel:** Do not break if no parent .has-close-panel element was found. ([894c05c](https://github.com/Patternslib/patterns/commit/894c05c9995a120cc53305d76d2ac1c69ac30b9e)) - ### Maintenance @@ -47,6 +48,7 @@ Since unterscore 1.13.4 this fixture isn't necessary anymore. * **docs:** Document that you only have to iport module_federation if you are creating a host bundle. ([bccd803](https://github.com/Patternslib/patterns/commit/bccd80391f5c7695bcc439f3c95414d799c72334)) + ## [8.1.0-alpha.1](https://github.com/Patternslib/patterns/compare/8.1.0-alpha.0...8.1.0-alpha.1) (2022-05-31) @@ -56,7 +58,6 @@ Since unterscore 1.13.4 this fixture isn't necessary anymore. * **pat push:** If a notification url is given, open it when clicking on the desktop notification. ([c36e51f](https://github.com/Patternslib/patterns/commit/c36e51f3cc0989e2933d98e7586ba55c147f61cb)) - ### Maintenance @@ -65,6 +66,7 @@ Since unterscore 1.13.4 this fixture isn't necessary anymore. * **push kit:** Remove unused desktop notification code. Use pat-push instead. ([c702833](https://github.com/Patternslib/patterns/commit/c702833c45eedfe774ff85886e5663a1c7c3f36e)) + ## [8.1.0-alpha.0](https://github.com/Patternslib/patterns/compare/8.0.3...8.1.0-alpha.0) (2022-05-30) @@ -87,7 +89,8 @@ This allows to reuse an existing #pat-modal instance and to open modals in modal * **pat modal:** Document panel-header-content. ([ac7000e](https://github.com/Patternslib/patterns/commit/ac7000e9d4f421ba73a5fe049e2f4e1fdda9369e)) -### [8.0.3](https://github.com/Patternslib/patterns/compare/8.0.2...8.0.3) (2022-05-23) + +## [8.0.3](https://github.com/Patternslib/patterns/compare/8.0.2...8.0.3) (2022-05-23) ### Bug Fixes @@ -96,7 +99,6 @@ This allows to reuse an existing #pat-modal instance and to open modals in modal * **Build:** Don't use index.js entry which should be used for module federation and would break chunk loading if used in a non-mf environment. ([ad5381c](https://github.com/Patternslib/patterns/commit/ad5381ce21ab827db133fde3fb56d6497b442c23)) - ### Maintenance @@ -115,7 +117,8 @@ Also remove dry-run as we now have to confirm each step anyways. * **pat modal:** Update demo, re-activate autoload modal. ([09d0e2b](https://github.com/Patternslib/patterns/commit/09d0e2b09f292d06d19af057710802b14bf05ab2)) -### [8.0.2](https://github.com/Patternslib/patterns/compare/8.0.1...8.0.2) (2022-05-19) + +## [8.0.2](https://github.com/Patternslib/patterns/compare/8.0.1...8.0.2) (2022-05-19) ### Bug Fixes @@ -126,7 +129,8 @@ Improve the previous check by setting the var earlier. * **core registry:** Do not reinitialize and already initialized patterns registry. ([809c119](https://github.com/Patternslib/patterns/commit/809c1192b533f2160f98e16ef0b852267b0c5ea5)) -### [8.0.1](https://github.com/Patternslib/patterns/compare/8.0.0...8.0.1) (2022-05-18) + +## [8.0.1](https://github.com/Patternslib/patterns/compare/8.0.0...8.0.1) (2022-05-18) ### Maintenance @@ -204,7 +208,6 @@ Add jest-environment-jsdom as of jest 28 that isn't shipped anymore by default. * **Bundle:** Upgrade jest to version 28. ([4ac079f](https://github.com/Patternslib/patterns/commit/4ac079f184043225ff78aded9390ae9f995036d0)) - ### Breaking Changes @@ -223,2210 +226,3 @@ But if necessary, there is a ``PATTERN_REGISTRY`` export in ``core.registry`` which points to ``window.__patternslib_registry``, a singleton in the global namespace which is shared across instances of the registry. -## [7.12.0](https://github.com/Patternslib/patterns/compare/7.11.0...7.12.0) (2022-05-13) - - -### Features - - -* **core dom:** Add get_data and set_data methods to get or set data directly on DOM nodes. ([1c21f05](https://github.com/Patternslib/patterns/commit/1c21f05eb1a312d3c8ea4df1c29517b3c3ec5c6d)) - - -* **pat close-panel:** New technical/internal pattern to close panels. ([0c9231d](https://github.com/Patternslib/patterns/commit/0c9231d34b438dcc975c050f2c2bb11cc2541621)) -Add new pattern close-panel for internal use to close panels. -This allows to initialize the close buttons after content injections. -It also allows for nested panels where a later opened panel doesn't close a previous opened panel. - - -### Bug Fixes - - -* **pat notification demo:** Place close-button in each notification seperately. ([2c57e3c](https://github.com/Patternslib/patterns/commit/2c57e3ccfd9ba9657c347aec4d523a9463f66f7c)) - - - -### Maintenance - - -* **Build:** Supress console log messages in tests where HTMLFormElement.prototype.submit is not implemented. ([a3bdc78](https://github.com/Patternslib/patterns/commit/a3bdc7866a151ddf00344cd1231e1a1e23b4e1a2)) - - -* **Build:** Upgrade dependencies. ([22129ea](https://github.com/Patternslib/patterns/commit/22129ea7d76b24d0fa581ae085c8f418fb7fea27)) - - -* **pat calendar:** Change console.log statement to a debug statement. ([92a5999](https://github.com/Patternslib/patterns/commit/92a5999ccf9107cc1e44def804433cc99e4c2f83)) - - -* **pat modal:** Add numbers to test case names for easier starting individual cases. ([62a38c9](https://github.com/Patternslib/patterns/commit/62a38c9d196a2e6502bdc5a67f265791d19ed78e)) - - -* **pat modal:** Use new close-panel pattern for closing modals. ([4a6029d](https://github.com/Patternslib/patterns/commit/4a6029d5f34b22d3895c548c5e34c8be32091620)) - - -* **pat notification:** Code simplification and modernization. ([f9d1492](https://github.com/Patternslib/patterns/commit/f9d14923161c3a4937d9c0b1bca9edf61377b269)) - - -* **pat notification:** Use new close-panel pattern for closing notifications. ([b186066](https://github.com/Patternslib/patterns/commit/b186066666c60c3bffc4f286b0b2ae4a327faa57)) - - -* **pat tooltip:** Fix demo to use the referenced tooltip content. ([6013b4b](https://github.com/Patternslib/patterns/commit/6013b4bfd403e054d813a62c66142d57843f12f5)) - - -* **pat tooltip:** Use new close-panel pattern for closing tooltips. ([ca9fc9c](https://github.com/Patternslib/patterns/commit/ca9fc9ceb4cc9eaa6788a53326a7c4dab2d2c27d)) - -## [7.11.0](https://github.com/Patternslib/patterns/compare/7.10.0...7.11.0) (2022-05-06) - - -### Features - - -* **core events:** Add mousedown and mouseup event factories. ([62e1978](https://github.com/Patternslib/patterns/commit/62e1978e9e1ad1cc661c87adc83c6b713f1a2f6c)) - - -* **core parser:** Allow values to span multiple lines. Can be useful to nicely format bigger JSON values. ([54a10c5](https://github.com/Patternslib/patterns/commit/54a10c51ec46712ee2852715e56f3eca5f8939ce)) - - - -### Bug Fixes - - -* **pat auto suggest:** Fix regression introduced in 7.0 where auto suggest wasn't able to handle pre-filled json items properly. ([4c39332](https://github.com/Patternslib/patterns/commit/4c393324f97823f1c5adc031bbd8b5f08c287016)) - - - -### Maintenance - - -* **docs:** Add note to Makefile about GITHUB_TOKEN in .env file. ([2d10732](https://github.com/Patternslib/patterns/commit/2d107328760fe963a07f77b74592e244f628fdcf)) - -## [7.10.0](https://github.com/Patternslib/patterns/compare/7.9.0...7.10.0) (2022-05-05) - - -### Features - - -* **core utils:** Add is_iso_date_time method to check for valid ISO 8601 date/time strings. ([d9fcfac](https://github.com/Patternslib/patterns/commit/d9fcfac6774561ffbef77c4383dd755d2865ac4a)) - - - -### Bug Fixes - - -* **pat validation:** Also validate date/time inputs when the value is empty. ([39249b2](https://github.com/Patternslib/patterns/commit/39249b23c6511990a1eb6965b9f2f03dfd7dd682)) -This clears eventual validation errors when the date input is cleared. - -* **pat validation:** Fix issue where Google Chrome would interpret an invalid date value like "ok-1" as a valid date. ([0fb2359](https://github.com/Patternslib/patterns/commit/0fb2359992ed1fca8574fefb6f6d3f7a275aa270)) - -## [7.9.0](https://github.com/Patternslib/patterns/compare/7.8.0...7.9.0) (2022-04-28) - - -### Features - - -* **pat push:** Add support for desktop notifications. ([009b7a9](https://github.com/Patternslib/patterns/commit/009b7a9cbf0158ff652a305d15715f4a8f767187)) - - -* **pat push:** Added the option to append the fetched content at the end of the pat-push element ([6e3c6dc](https://github.com/Patternslib/patterns/commit/6e3c6dcf296692f3d3d1832638f2fe69ff3d9a78)), closes [#876](https://github.com/Patternslib/patterns/issues/876) -Fixes #876 - -* **pat push:** Scan the injected element for patterns. ([8c75fa1](https://github.com/Patternslib/patterns/commit/8c75fa17719afe5c083cdc5db02170ca5f1d6ed6)) - -## [7.8.0](https://github.com/Patternslib/patterns/compare/7.7.0...7.8.0) (2022-04-15) - - -### Features - - -* **pat tooltip:** Initialize the tooltip's content after each refresh via get_content. This re-initializes any patterns after an update to the tooltip's contents. ([665bea5](https://github.com/Patternslib/patterns/commit/665bea5d5656eb913412c9577b886bc6683a6660)) - - - -### Maintenance - - -* **Build:** Remove customized main changelog template as due to conventional-changelog 4.3.0 the previous header's line break is preserved. ([9e8ecbd](https://github.com/Patternslib/patterns/commit/9e8ecbd42e2b029acb67168ad617aad8993ff10d)) - - -* **Build:** Upgrade dependencies. ([9ea9c21](https://github.com/Patternslib/patterns/commit/9ea9c215ccd71dd561e6a6c67494f098e5f5201b)) - - -* **pat tooltip:** Use add_event_listener from core.events which better handles double registrations and makes it easier to unregister event handlers. ([fe0f0d7](https://github.com/Patternslib/patterns/commit/fe0f0d714a839f3c67b2dfad4b0f8d8fc4b507c3)) - -## [7.7.0](https://github.com/Patternslib/patterns/compare/7.6.0...7.7.0) (2022-04-12) - - -### Features - - -* Introduce ``disable-patterns`` class to prevent from initializing. ([5f137f0](https://github.com/Patternslib/patterns/commit/5f137f0adc8f254a1904148ce7eae66295b23f93)) -To disable patterns when scanning markup for patterns, use the ``disable-patterns`` CSS class. - -Previously we did use the ``dont-touch-this`` class. -This is deprecated due to a ambiguous name and will be removed in the next major version. - - -### Bug Fixes - - -* **Build:** Fix changelog template. ([96f7bac](https://github.com/Patternslib/patterns/commit/96f7bacfc94c30f132d1b9bd175fd499b1162eac)) -Since conventional-changelog 4.2.0 the previous header is merged to the -end of the new changelog entry block. -This is documented here: https://github.com/release-it/conventional-changelog/issues/46 -As long as this issue is not resolved, we're adding a ``#`` at the end -of the changelog block, intending the previous entry in the heading -hierarchy, but that's better than a even more messed up changelog file. - - -## [7.6.0](https://github.com/Patternslib/patterns/compare/7.5.0...7.6.0) (2022-04-08) - - -### Features - - -* **pat tooltip:** For ajax requests, define the accept header. ([a65642e](https://github.com/Patternslib/patterns/commit/a65642ebe4d478bf5591ce23b0075712b1087bf9)) -We're expecting HTML or XML as the response. -This solves a problem with ``*/*`` or json requests being handled by plone.restapi only. - -* **pat tooltip:** Support query strings in remote tooltip content URLs. ([252ee17](https://github.com/Patternslib/patterns/commit/252ee17a155629b5b6141d708f54a23ae9278276)) - - - -### Bug Fixes - -* **Build:** Fix changelog template as per @release-it/conventional-changelog v4.2.0 the header was improperly appended at the end of the new changelog entry. ([276b2d5](https://github.com/Patternslib/patterns/commit/276b2d5253742af7d7d7eef349568a663b2d9aa7)) - - - -### Maintenance - -* **Build:** Upgrade dependencies. ([900eedb](https://github.com/Patternslib/patterns/commit/900eedb47112aba2e8b1b96f31888510af066436)) - - -## [7.5.0](https://github.com/Patternslib/patterns/compare/7.4.0...7.5.0) (2022-04-01) - - -### Features - -* **pat tooltip:** Expose get_content API method and allow to reload the tooltip's content. ([16ba9c1](https://github.com/Patternslib/patterns/commit/16ba9c12d6e8683f5e689a61dbc4cf3e585094ee)) - - - -### Bug Fixes - -* **pat inject tests:** Fix one failing test in GH actions, where document is null. ([0f8d4aa](https://github.com/Patternslib/patterns/commit/0f8d4aaa1a334c682fce3b1d4703553591d1b4ef)) - - - -### Maintenance - -* **Build:** Upgrade dependencies. ([21b911f](https://github.com/Patternslib/patterns/commit/21b911ffab4eff6cbcd765ddcf85eb192d52ad7d)) - -* **pat inject:** Minor code improvements. ([8f507ab](https://github.com/Patternslib/patterns/commit/8f507ab7c6451d0aaf0622297b8cbd343fac959b)) - -* **pat inject tests:** Restore all mocks. ([82cc049](https://github.com/Patternslib/patterns/commit/82cc049d12469fda8d7db2d310d1f92fce4c2cee)) - -* **pat tooltip:** Remove ajax_state. With async/await based loading we do not need to set the ajax_state to avoid multiple ajax calls. ([b5deb4b](https://github.com/Patternslib/patterns/commit/b5deb4becd9f10f7ff948216679abaa18f1f9cf1)) - -* **pat tooltip tests:** Add numbers to test cases so that they can be esier run selectively by filtering. ([72611af](https://github.com/Patternslib/patterns/commit/72611afe0953939e4ac81bac74a9706628e5c520)) - -* **pat tooltip tests:** Restore all mocks completly after each test run. ([8edba74](https://github.com/Patternslib/patterns/commit/8edba744c9ece324b83db12ccfb4a429cc56e3e5)) - - -## [7.4.0](https://github.com/Patternslib/patterns/compare/7.3.0...7.4.0) (2022-03-24) - - -### Features - -* **core parser:** Also convert on/off values to boolean for boolean arguments. ([985f4e2](https://github.com/Patternslib/patterns/commit/985f4e23716ce1509b2a4217ca046906414ca57f)) - -* **pat ajax:** Allow caching of ajax requests by using the option cache which can be set to caching or no-caching. ([49dbecf](https://github.com/Patternslib/patterns/commit/49dbecff6a2189092b1d83b0d3d0c8f490e9290f)) - -* **pat inject:** Allow caching of ajax requests by using the option cache which can be set to caching or no-caching. ([8376c56](https://github.com/Patternslib/patterns/commit/8376c5612464071825cbe380a059363570846685)) - - - -### Bug Fixes - -* **pat inject:** Fix logic for adding executing-class to the pat-inject element. ([e8531de](https://github.com/Patternslib/patterns/commit/e8531de0e4bc2a4626d8c8aa702415975f4c58f4)) - - - -### Breaking Changes - -* **core pluggable:** Remove unused pluggable module. ([c5c2e1b](https://github.com/Patternslib/patterns/commit/c5c2e1b2f938a1be1e78574a8f7987d224e57088)) - - - -### Maintenance - -* **Build:** Upgrade dependencies. ([e5b8fe4](https://github.com/Patternslib/patterns/commit/e5b8fe4bf838f0ff14e279cdf71eb1d23c634b49)) - -* **Build:** Use node version 16 and upgrade setup-node and checkout actions. ([3c98bfa](https://github.com/Patternslib/patterns/commit/3c98bfa2137b15c6159f56e8c8adecd859992ba8)) - -* **core base:** Un-underscore core.base tests. ([4a0ad4b](https://github.com/Patternslib/patterns/commit/4a0ad4b5187dcfe6bd3567a4c8917482f0a66d12)) - -* **core logging:** Cleanup - remove IE8 compatibility code for console.log. ([da0d9d9](https://github.com/Patternslib/patterns/commit/da0d9d92c5f5315b1ea7f1016ea7440c97c8a316)) - -* **core parser:** Un-underscore core.parser tests. ([5faec93](https://github.com/Patternslib/patterns/commit/5faec93378edab0abc23878c9fbb5204ae144ad5)) - -* **core utils:** Un-underscore core.utils. ([cd9c00d](https://github.com/Patternslib/patterns/commit/cd9c00d02d0f4a0c42befd1f1090a768c60370c7)) - -* **Dependencies:** Remove now unused dependency Underscore.js. ([874c6c1](https://github.com/Patternslib/patterns/commit/874c6c15ae54ac8acc2310e9ed0fd82dc4eef3b4)) - -* **pat inject:** Remove console.log statements from tests. ([3db47fe](https://github.com/Patternslib/patterns/commit/3db47fe6c9367bdf17bb5a47939367ad47a174a6)) - -* **pat inject:** Un-underscore pat-inject. ([584420c](https://github.com/Patternslib/patterns/commit/584420ce5f77b1afaa0c84cee11d1dc36b133b88)) - -* **pat navigation:** Remove console.log statement from tests. ([a20fbd4](https://github.com/Patternslib/patterns/commit/a20fbd4c051d6f619f33a5af2d219c560653e7a3)) - - -## [7.3.0](https://github.com/Patternslib/patterns/compare/7.2.0...7.3.0) (2022-03-17) - - -### Features - -* **core base:** Add one event listener to listen for Pattern events only once. ([1028a6d](https://github.com/Patternslib/patterns/commit/1028a6d3a2a15dd72d62b9652e4d39e3c98577e8)) - -* **core dom:** Add a fallback option to find_scroll_container to return something else than document.body if no other scroll container can be found. ([ac220fd](https://github.com/Patternslib/patterns/commit/ac220fd2a38c50acc27b0abe6f900077d4fa9bbb)) - -* **core events:** Add await_event for using await statements to wait for an event to happen. ([1e264c1](https://github.com/Patternslib/patterns/commit/1e264c1fe301beb4b9f95614ffc4e3f000cf570f)) - -* **core events:** Add await_pattern_init helper which can be used to await the event when a pattern instance is initialized. ([ac371e0](https://github.com/Patternslib/patterns/commit/ac371e0ecc57ffd204cfaef1be5b44f266c94fe2)) - - - -### Bug Fixes - -* **pat bumper:** Fallback to null if no scroll container can be found. Fixes a problem with initalization of the IntersectionObserver introduced in 7.2.0. ([c04ea75](https://github.com/Patternslib/patterns/commit/c04ea752f47609f06368b73b6ca3783bc108b55f)) - - - -### Maintenance - -* **pat bumper:** Minor code cleanup. ([edfec61](https://github.com/Patternslib/patterns/commit/edfec619e7c54786b5a82914dce8efaf7fd2c3c8)) - - -## [7.2.0](https://github.com/Patternslib/patterns/compare/7.1.3...7.2.0) (2022-03-16) - - -### Features - -* **core dom:** Add ``find_scroll_container`` to find a scrollable element up in the DOM tree. ([d9eef9e](https://github.com/Patternslib/patterns/commit/d9eef9ec9af4e189f6da91d860fa671f8cc4aa92)) - -* **pat inject:** Rework autoload-visible to use an IntersectionObserver. ([4f26006](https://github.com/Patternslib/patterns/commit/4f260066f9b66a12540e6360d02ab2135870a46b)) -The autoload-visible trigger of pat-inject now uses an IntersectionObserver. -This simplifies the code and improves performance because there are no more complex position calculations involved. - -Fixes: https://github.com/Patternslib/Patterns/issues/955 -* **pat inject:** Support delay time for trigger: autoload-visible. ([d951817](https://github.com/Patternslib/patterns/commit/d951817b7ab165deeea2014c8b353dcbfb9fd9b0)) - - - -### Maintenance - -* Upgrade dependencies. ([2590bcf](https://github.com/Patternslib/patterns/commit/2590bcf109e91a7d4f44e3def76b15f4bd3c39e9)) - -* **core dom:** Move utils.getCSSValue to dom.get_css_value and keep a BBB import. ([25e1846](https://github.com/Patternslib/patterns/commit/25e1846c5f43bc77a51d52ef4b88b744be94147e)) -Move utils.getCSSValue to dom.get_css_value and keep a BBB import in utils. -This change is made for these reasons: -- Avoid circular imports (even if supported). -- Code cleanup - move DOM related methods to dom module. -* **pat bumper:** Update import for get_css_value. ([ccff688](https://github.com/Patternslib/patterns/commit/ccff688ccf2c3fd06800471a5739a63e949bb482)) - -* **pat bumper:** Use new core.dom.find_scroll_container instead own implementation. ([ab98985](https://github.com/Patternslib/patterns/commit/ab989851a444cdafcd37c66da6ee189b62cea878)) - -* **pat gallery:** Update import for get_css_value. ([3268b1e](https://github.com/Patternslib/patterns/commit/3268b1efd2ddca5a26604957d339f4da34389408)) - -* **pat inject:** Update import for get_css_value. ([e378e51](https://github.com/Patternslib/patterns/commit/e378e51f5afd4d1c237baa27bff560a2e5b547b4)) - -* **pat scroll:** Use new core.dom.find_scroll_container instead own implementation. ([3872aaf](https://github.com/Patternslib/patterns/commit/3872aaf90c5bd9f0293cb1ea21256414224f4f93)) - -* **pat tabs:** Update import for get_css_value. ([ce50044](https://github.com/Patternslib/patterns/commit/ce500448d87358f86ee7be9833301afa0577c7cc)) - -* **tests:** Add an IntersectionObserver mock for testing. ([8e84d0f](https://github.com/Patternslib/patterns/commit/8e84d0fc63e04e1d044e23546543c6cdc67f5927)) - - -### [7.1.3](https://github.com/Patternslib/patterns/compare/7.1.2...7.1.3) (2022-03-14) - - -### Bug Fixes - -* **core logging:** Fix invalid use of typeof. ([e2e992d](https://github.com/Patternslib/patterns/commit/e2e992dbb8057f5fde13d521cbbafdc4e9e163ae)) - - - -### Maintenance - -* Upgrade dependencies. ([c0206d1](https://github.com/Patternslib/patterns/commit/c0206d18767042d3b29f472fc744eb5c67c655a3)) - - -### [7.1.2](https://github.com/Patternslib/patterns/compare/7.1.1...7.1.2) (2022-03-14) - - -### Bug Fixes - -* **pat validation:** With depending date validation also validate the dependend date. ([5060fa4](https://github.com/Patternslib/patterns/commit/5060fa4421ed581d5e64717e75eadff8f0c391d7)), closes [#970](https://github.com/Patternslib/patterns/issues/970) -Fixes: #970 - - -### Maintenance - -* **Build:** Makefile - Resolve package version for ZIP bundle at target runtime. ([2d799f8](https://github.com/Patternslib/patterns/commit/2d799f8ad2d29870cca8c8f371c6af11c6e2c924)) - -* **pat tabs:** Fix test for error not thrown. ([c4e00aa](https://github.com/Patternslib/patterns/commit/c4e00aae51df79922893b01a9f593e0f0b1b91e0)) -Fix an ``UnhandledPromiseRejection`` error with an asynchronous test. -The problem popped up in node version 16 and was passing in node version 14. - -### [7.1.1](https://github.com/Patternslib/patterns/compare/7.1.0...7.1.1) (2022-02-16) - - -### Features - -* **core polyfills:** Add polyfills module for modern browsers. ([69402f6](https://github.com/Patternslib/patterns/commit/69402f60c7d80a3cf702a55518404c634bda2eda)) -Currently this holds a polyfill for SubmitEvent.submitter, which isn't available in Safari < 15.4 and jsDOM. - - -### Bug Fixes - -* **pat validation:** Fix release 7.1.0. ([3afb42b](https://github.com/Patternslib/patterns/commit/3afb42bc0ac6f82c634471560f8a73ea58144ce6)) -The event-submitter-polyfill package isn't universally built. -Let's use our new core/polyfills.js module instead and fix the previous release. - -## [7.1.0](https://github.com/Patternslib/patterns/compare/7.0.2...7.1.0) (2022-02-16) - - -### Features - -* **core events:** Standard JavaScript event factories - add "click" event. ([8c7ce5f](https://github.com/Patternslib/patterns/commit/8c7ce5ffdaed0c9fd5641052ca2f0c095c42da1d)) - -* **pat validation:** Do not submit when a formnovalidate buttons was used. ([35f4227](https://github.com/Patternslib/patterns/commit/35f4227227b4acdfe5f202b7d5d996724081beec)) - -* **pat validation:** Set novalidation to pat-validation forms to prevent the browser's validation bubbles to appear. ([a6a8188](https://github.com/Patternslib/patterns/commit/a6a8188dbb11fc56c16f3f0b9aa20a87abb0cd92)) - - - -### Bug Fixes - -* **pat toggle:** Don't let pat-toggle steal the click event and prevent double clicks. ([8b75b8e](https://github.com/Patternslib/patterns/commit/8b75b8eaca157e19e2ccb18354e3e876a23c84ee)) -Do not let pat-toggle prevent the click event after it was catched. -This makes pat-toggle work together with other Patterns, like pat-checklist. -Also, when clicking on a label wrapping a checkbox, the checkbox also emits a click event which results in a unmodified toggle-state. -Prevent double-clicks by debouncing and canceling events. - - -### Maintenance - -* **core events:** Show behvavior of two click events emitted when clicking on a lable wrapping a checkbox. ([259173f](https://github.com/Patternslib/patterns/commit/259173fd6bce27ccfbc7d1ba7091227a96da8417)) - -* **Dependencies:** Upgrade dependencies. ([6a7ea33](https://github.com/Patternslib/patterns/commit/6a7ea330f8ced3c27f08ada1e4d37b0024e367f6)) - -* **pat toggle:** Modernize code. ([5a478a4](https://github.com/Patternslib/patterns/commit/5a478a4576b3f2c9469ca02e1eaed6a45598985e)) - -* **pat validation:** Demo - remove pat-validation type options. ([d60e39b](https://github.com/Patternslib/patterns/commit/d60e39bc48b57ba35308b3cbec1c65c24f457888)) - -### [7.0.2](https://github.com/Patternslib/patterns/compare/7.0.1...7.0.2) (2022-02-15) - - -### Bug Fixes - -* **pat auto suggest:** Fix issue with pat-auto-submit. ([bbf5735](https://github.com/Patternslib/patterns/commit/bbf5735e05717d4faa0c1bab5a3398691775641e)) -Also dispatch a input event after a value has changed to let auto-submit do a form submit. -This fixes an issue introduced in Patternslib 7.0.0. -Note: this will be revisited when reworking auto-submit and input-change-events for standard JavaScript event compatibility. - - -### Maintenance - -* **core events tests:** Add jQuery vs native JavaScript events tests. ([bb3a8e8](https://github.com/Patternslib/patterns/commit/bb3a8e87ce8f201518b4aa4239d14ddc0b233d50)) -Add test showing that jQuery catches native events, but native listeners do not catch jQuery events. -In the mid-term we want to switch to native-only to get rid of this difference. -* **Dependencies:** Upgrade dependencies. ([d5fd1ad](https://github.com/Patternslib/patterns/commit/d5fd1ad41776d1a7ed9b5cc674ef107319317c27)) - -* **pat auto submit:** Cleanup code, improve tests. ([8d289eb](https://github.com/Patternslib/patterns/commit/8d289ebff716ab9a30e7f8ce8c7c47f21835582a)) - -* **pat auto suggest:** Improve and extend tests. ([d4d2e99](https://github.com/Patternslib/patterns/commit/d4d2e994716b7f01647128aad888b3250ed0a4de)) - -### [7.0.1](https://github.com/Patternslib/patterns/compare/7.0.0...7.0.1) (2022-02-08) - - -### Bug Fixes - -* **Build:** Use public_path script while also having publicPath set to auto. ([b8dfdbd](https://github.com/Patternslib/patterns/commit/b8dfdbdd2087f8012defa45aa4ce40ab52c604da)) -We still need to use the ``src/public_path.js`` script as first import in our bundles to correctly resolve the loading path for chunks. -publicPath set to auto does not work in certain environments (e.g. the Plone resource registry). - -Partially reverts 1b6143127f61e5e1c41b088e70ec636c629cd5bb, "Use automatic publicPath determination instead of manually setting it." - - -### Maintenance - -* **build:** Add and expose a "install" target alias to the Makefile as an alias to stamp-yarn. ([e204037](https://github.com/Patternslib/patterns/commit/e2040374eaee37c54f88cc83e89cc2d967eeb8c4)) - -* **build:** Remove unnecessary double-colon from targets. ([070e4d9](https://github.com/Patternslib/patterns/commit/070e4d9d8fa42b1998043cc7715355ce64acc14c)) - -* **Cleanup:** Remove reference to moment-timezone-with-data in .eslintrc - a file which was removed some time ago. ([5de91cc](https://github.com/Patternslib/patterns/commit/5de91cc48ee8f38d8fa8a9f3b1276462a583b0b9)) - -* **Cleanup:** Restructure package.json entries to move less relevant info down. ([a25043b](https://github.com/Patternslib/patterns/commit/a25043b924332ea3410777e92cb400f211d233f4)) - -* **Docs:** Update developer styleguide with simpler commit message scope naming guidelines. ([1b391cb](https://github.com/Patternslib/patterns/commit/1b391cb381a252c54b56f7fb11d41d5f58175eef)) - -* Change the bundle name whichis uploaded to the GitHub release page from patternslib-VERSION.zip to patternslib-bundle-VERSION.zip to better distinguish it from the automatically created Patterns-VERSION.zip source distribution. ([c489a8c](https://github.com/Patternslib/patterns/commit/c489a8ca3c0ce151cf17dd30698fde4d0c7df44e)) - -* **pat validation:** Test and demo validation of datetime-local. ([dc58887](https://github.com/Patternslib/patterns/commit/dc5888773a291f4065eafde183d355eb4b842720)) - -## [7.0.0](https://github.com/Patternslib/patterns/compare/6.4.0...7.0.0) (2022-01-28) - - -### Features - -* **core dom:** Hide method: also set hidden attribute for better semantics. ([379e4a9](https://github.com/Patternslib/patterns/commit/379e4a92992919ddc20d07df59f3af09625c716f)) - -* **core events:** Standard JavaScript event factories - add "scroll" event. ([949b1dc](https://github.com/Patternslib/patterns/commit/949b1dcb05145f1b00e261606aeea794ca65f90d)) - -* **core events:** Standard JavaScript event factories. ([951084f](https://github.com/Patternslib/patterns/commit/951084ffa2eab7a3e96b0f99eaa3f19a778dae8e)) -Provide a library with standard JavaScript event factories, beginning with ``changed`` and ``submit`` events. -* **pat scroll-box:** Allow detection of scroll-stop. ([b226aeb](https://github.com/Patternslib/patterns/commit/b226aebddc3e67ba9e6cf4f8334b0b0c1be5af78)) -Add ``scrolling-up`` and ``scrolling-down`` classes which will be removed after the user has stopped scrolling. -This allows for detection of a scrolling situation vs non-scrolling situation. -* **pat scroll-box:** Optimize performance. ([9caf2be](https://github.com/Patternslib/patterns/commit/9caf2bea348839856c286ae35aedd87ae829cbcd)) -Optimize performance by grouping together DOM manipulation calls. -The browser is now able to better optimize the code in regard to the reflow/repaint cycles. -Also see: https://areknawo.com/dom-performance-case-study/ -* **pat validation:** Allow to define a custom error template. ([986a092](https://github.com/Patternslib/patterns/commit/986a092f892582585a97b5e2f7c1af5780bb6b32)) - - - -### Bug Fixes - -* **pat auto suggest:** Do not change input field to type "hidden". ([ab12b36](https://github.com/Patternslib/patterns/commit/ab12b363db484257f2f8368ffb7dad061fa5ccbc)) -Don't change the date field to a hidden field which would prevent it from validation. -Instead just hide it. -Also, do this not in the transform method but on initialization. -* **pat auto suggest:** Instead of searching for a reset button, listen on the form's reset event for clearing the data. ([cd69e92](https://github.com/Patternslib/patterns/commit/cd69e92cb62b43406d54a0178b392141613d2798)) - -* **pat auto suggest:** Invoke standard JS change event. ([31da974](https://github.com/Patternslib/patterns/commit/31da9748a9288652685ce069f538ea87e6893eea)) -Work around the situation that a jQuery "change" event, submitted by select2, isn't caught by pat-validation. -Select2 also triggers a click event, which we will use here to trigger a standard JS change event. -* **pat date picker:** Do not change input field to type "hidden". ([66f4333](https://github.com/Patternslib/patterns/commit/66f4333bd1f16ed0661a1da0d0cc30256751fe1d)) -Don't change the date field to a hidden field which would prevent it from validation. -Instead just hide it. -Also disable click on label as this would focus/click-forward to the invisible input field and invokes some weird behavior. -* **pat scroll-box:** Immediately and correctly set CSS classes. ([7e7fd23](https://github.com/Patternslib/patterns/commit/7e7fd233480f9eeb9da3b5d01c3f4d283560c179)) -Fix pat-scroll-box to immediately and correctly set the CSS classes by using requestAnimationFrame instead timeouts. - - -### Breaking Changes - -* **core dom create_from_string:** Change create_from_string to be able to create multiple siblings from a string. ([062991c](https://github.com/Patternslib/patterns/commit/062991c45bf5604f36dd38f3da3c7d8661b8a150)) -Returns now a DocumentFragment instead of a single DOM node. -This method wasn't used in Patternslib or any of the core addons. -If you used it and it breaks your code, let me know. -* **core events:** Move add_event_listener and remove_event_listener to core.events. ([661b74c](https://github.com/Patternslib/patterns/commit/661b74c137f5a10ac5144216742386d6f756632c)) -Move add_event_listener and remove_event_listener from core.dom to core.events. -Provide backwards compatibility imports in core.dom. -Those imports will be removed in an upcoming version. -* **pat validation:** Refactor pat-validation for full HTML5 compatibility. ([9999c8f](https://github.com/Patternslib/patterns/commit/9999c8f484ddefd2d043a9dd728451cbb6b173b9)) -- Use the Web API validation framework. - -- Define custom errors with the Web API method ``setCustomValidity`` (e.g. the custom error for the start date not being after the end date with the not ``not-after`` option). - -- Make use and set the Web API ``validityState`` according to validity of the form inputs. - -- Making use of the Web API validation framework allows to use the ``:invalid`` and ``:valid`` CSS selevtors - including for those inpyts with custom validity messages. - -- Validate the form on ``input``, ``change``, ``blur`` and ``submit`` events but make sure only one is run at once. - -- Remove default validation error messages from the configuration. - If no validation message is defined the browser will show a default validation message, already translated into the language of the browser. - -- Remove configuration option ``type``. - Use the ``type`` attribute of the input element instead. For a date field, use ``date``. - For ``integer`` just use ``number``. - If you want to support real, floating numbers, use ``step="any"`` or a real number as step size. - -- Remove dependency on validate.js. - - -### Maintenance - -* Remove unused core/scroll_detection.js. ([19779d2](https://github.com/Patternslib/patterns/commit/19779d227d9a5f79e4438d283fbfe131552bccd6)) - -* **core parser:** Minimal code simplification. ([3c28bb2](https://github.com/Patternslib/patterns/commit/3c28bb241b4c6e508e0627e16e0629cafdc5dc30)) - -* **dependencies:** Remove now unused dependency on validate.js. ([d698930](https://github.com/Patternslib/patterns/commit/d698930e040cb8fca2ae74108d8a587d3ef0d6c3)) - -* **dependencies:** Update browserslist database / caniuse-lite. ([60ac00f](https://github.com/Patternslib/patterns/commit/60ac00fa40beda67f4173839692819b656b7bb9e)) - -* **dependencies:** Upgrade dependencies. ([9f0d41f](https://github.com/Patternslib/patterns/commit/9f0d41fba2448db6f0b33d8b141f35a6b01b7616)) - -* **docs:** Add improve JSDoc strings a bit. ([5f0f6ec](https://github.com/Patternslib/patterns/commit/5f0f6ec08b4b7b7800034d86cce5cff22e044de3)) - -* **pat ajax:** Modernize code. ([3953112](https://github.com/Patternslib/patterns/commit/3953112122a2b05ecfde8e6e2fce18d53af1a54f)) - -* **tests:** Use global instead of window in node based tools like Jest for registering global variables. ([634325c](https://github.com/Patternslib/patterns/commit/634325c7f7c6c2c3dc928a20207c95fdab4e2f9d)) - -* Use caching in GitHub actions. ([504e342](https://github.com/Patternslib/patterns/commit/504e342f58115c66fb563f6eedca8a33e7062beb)) - -## [6.4.0](https://github.com/Patternslib/patterns/compare/6.3.2...6.4.0) (2022-01-24) - - -### Features - -* **webpack:** Add source maps for production and development builds. ([5c720a4](https://github.com/Patternslib/patterns/commit/5c720a4dc54719acf04bca856962cea8d4e9c12f)) -We are using a faster source map generation option with good results for -development builds. -* **webpack:** Only minimize in production mode. ([a6cf125](https://github.com/Patternslib/patterns/commit/a6cf1251985e9f5a01a642d4ececd4cd1b834679)) -Compile development and production bundles with the name bundle.min.js. -This allows to get rid to adapt the script name in production and development - both modes use the same name. -However, it's only minified in production mode. -We think the name .min.js also fits the development bundle as it is still babel-transpiled and webpack compiled. - - -### Maintenance - -* **docs:** Improve documentation on how to use the polyfills loader. ([11339af](https://github.com/Patternslib/patterns/commit/11339af25d91045a28ec8130344b78c936b39af9)) - -* **webpack:** Use automatic publicPath determination instead of manually setting it. ([1b61431](https://github.com/Patternslib/patterns/commit/1b6143127f61e5e1c41b088e70ec636c629cd5bb)) - -### [6.3.2](https://github.com/Patternslib/patterns/compare/6.3.1...6.3.2) (2021-12-22) - - -### Bug Fixes - -* **pat inject:** autoload-visible only when in viewport. ([49863b7](https://github.com/Patternslib/patterns/commit/49863b7999f77e6f8c7b152e4505ca389073d982)) -Fix autload-visible trigger to only load the injection if the element is in the viewport. -As before, this check is done after 100ms. -This prevents loading items when we quickly scoll across them, like with href-section-jumps. - - -### Maintenance - -* **dependencies:** Upgrade dependencies. ([bd1ba37](https://github.com/Patternslib/patterns/commit/bd1ba370faedc1eaaaa9e665461e612d25a46d35)) - -### [6.3.1](https://github.com/Patternslib/patterns/compare/6.3.0...6.3.1) (2021-12-21) - - -### Bug Fixes - -* **pat gallery:** Correctly re-use existing default templates. ([5191041](https://github.com/Patternslib/patterns/commit/51910416235ac5873e1c8480b76574ad5b2cd1c5)) - -* **pat gallery:** Do not reinitialize gallery image sizes too often. ([1f1e4d4](https://github.com/Patternslib/patterns/commit/1f1e4d4c244a8235a088fd9bf3a1da980eb9cabb)) - - - -### Maintenance - -* **dependencies:** Upgrade up to minor versions. ([b0d2177](https://github.com/Patternslib/patterns/commit/b0d2177a67fa083c91b751ac664b7414a0e7acdb)) - -* **pat gallery:** Add demo/test case for extending the pat-gallery page with itself. ([433a95a](https://github.com/Patternslib/patterns/commit/433a95a365269093bbc9b230ab2f78bd4e7037e1)) - -* **pat gallery:** Factor out get_template so that it can be overwritten in subclasses. ([5341141](https://github.com/Patternslib/patterns/commit/53411414d86947b337c3e8db394bbb12ec2165a9)) - -* **pat gallery:** Remove redundant preventDefault. ([8a341aa](https://github.com/Patternslib/patterns/commit/8a341aaf3bb92afd513d8bc18537dbc2ecbeadef)) - -* **pat inject:** Minor documentation fix. ([3b091b8](https://github.com/Patternslib/patterns/commit/3b091b84ccea8fd0ee26dfcc90b39a5961dae3bf)) - -## [6.3.0](https://github.com/Patternslib/patterns/compare/6.2.0...6.3.0) (2021-12-16) - - -### Features - -* **core utils:** removeWildcardClass: Add support for pure DOM nodes instead of needing jQuery objects. ([6be62e8](https://github.com/Patternslib/patterns/commit/6be62e85c4b8148057e2010e7894495227c840a4)) - -* **core utils:** Support NodeList in ensureArray and add option enforce_array if an array-like object should converted to a real array. ([23336b9](https://github.com/Patternslib/patterns/commit/23336b9708a4c2e8bc99e0cd322f54785dbce56c)) - -* **pat calendar:** Change time-format option to configure 24h or 12h time format. ([03437e9](https://github.com/Patternslib/patterns/commit/03437e980cb50eca986e7bc9fdf6f35229725608)) - -* **pat gallery:** Reinitialize the triggers when new elements are loadded into the gallery area. ([276f3f2](https://github.com/Patternslib/patterns/commit/276f3f29453e1e03d36e7c581d783b7596cd3358)) - - - -### Bug Fixes - -* **pat gallery:** Unhide/hide the gallery template when opening/closing it. Fixes some layout issues when gallery isn't closed properly. ([5abca91](https://github.com/Patternslib/patterns/commit/5abca915d1a2e72959cbb6edd7e8ac0d852aaca6)) - - - -### Maintenance - -* **dependencies:** Upgrade dependencies. ([9a35e71](https://github.com/Patternslib/patterns/commit/9a35e71d19f6457ab1de2da99fbcc323298dc1b0)) - -* **pat gallery:** Modernize and improve code. ([30227e6](https://github.com/Patternslib/patterns/commit/30227e6de86de4e6d08dac1a0f0806bde9f63184)) - -* **pat gallery:** Narrow the search path for the Photoswipe template element. It is just within the template. ([6dd5893](https://github.com/Patternslib/patterns/commit/6dd5893601d9575620a75666b89df686d2817fb6)) - -* **pat navigation:** Reduce timeout from 300ms to 1ms to wait for MutationObserver. Also partly simplify test code. ([edf4f14](https://github.com/Patternslib/patterns/commit/edf4f14d6fb37705cd615502585b86b975850188)) - -* **pat switch:** Modernize code. ([78e4756](https://github.com/Patternslib/patterns/commit/78e475675d359461b1a475a0a8e0e6b556437832)) - -* **pat validation:** Modernize code. ([77d3410](https://github.com/Patternslib/patterns/commit/77d3410f7cb7b8eae9f77b60553ccf352e53d06c)) - -* **tests:** Add jest-raw-loader to be able to load templates in tests. ([c36fb49](https://github.com/Patternslib/patterns/commit/c36fb494a26d9dbea7a3a99040d8f8f6d0525052)) - -## [6.2.0](https://github.com/Patternslib/patterns/compare/6.1.0...6.2.0) (2021-12-03) - - -### Features - -* **core utils:** Add escape_html and unescape_html function to replace/unreplace html entity characters. ([dead69c](https://github.com/Patternslib/patterns/commit/dead69c6d51bcfccfb8adaed21999a78bcc1bcfa)) - - - -### Maintenance - -* **pat calendar:** Document preference of setting the language as lang attribute. ([bbf7a6c](https://github.com/Patternslib/patterns/commit/bbf7a6c172a78cdb286c3481b2fbef76881778b7)) - -* **pat display time:** Document preference of setting the language as lang attribute. ([71391db](https://github.com/Patternslib/patterns/commit/71391db5926b01d2fe444c8fc8ae74ca2b879f22)) - -## [6.1.0](https://github.com/Patternslib/patterns/compare/6.0.2...6.1.0) (2021-11-30) - - -### Features - -* **core dom:** Add acquire_attribute to get the value of the first occurence of a defined attribute up the DOM tree. ([d3a2db3](https://github.com/Patternslib/patterns/commit/d3a2db346be549146a6c135cda218c6ac7e59a8a)) - -* **core dom:** Add parameter to acquire_attribute to return a list of all found attributes up the DOM tree. ([732ef34](https://github.com/Patternslib/patterns/commit/732ef34a8d90230661b71a37caa1c25735b4e655)) - -* **pat calendar:** Acquire language from the DOM tree instead only the HTML node if the language is not configured. ([d659e09](https://github.com/Patternslib/patterns/commit/d659e09b1edc11868e6679dbd383953069713626)) - -* **pat display time:** Acquire language from the DOM tree instead only the HTML node if the language is not configured. ([7c65d5c](https://github.com/Patternslib/patterns/commit/7c65d5c18cb0cb6a28cb318750e7421abbba9577)) - - - -### Bug Fixes - -* **pat autofocus:** Scoped autofocus. ([f820445](https://github.com/Patternslib/patterns/commit/f8204451aaf70dabc4671771a5a5c831b610ec31)) -Do not operate on whole DOM tree but only on the scoped element while still working with multiple pat-autofocus instances. - -This fixes a problem where autofocus was set on the wrong element after injection. - - -### Maintenance - -* **Cleanup:** Remove unused icon.svg. Icons are in /style/pattern-icons.svg. ([8ca2acf](https://github.com/Patternslib/patterns/commit/8ca2acf8630c1b639146aa36c2f5a8b51c153e14)) - -* **dependencies:** Upgrade dev dependencies up to minor versions. ([405674d](https://github.com/Patternslib/patterns/commit/405674da28cf95486d631732ccfe9a38a5f27397)) - -### [6.0.2](https://github.com/Patternslib/patterns/compare/6.0.1...6.0.2) (2021-11-25) - - -### Bug Fixes - -* **pat modal:** Fix close-panel with multiple inject forms. ([251675b](https://github.com/Patternslib/patterns/commit/251675ba786ccb3506d6277280a0c8821b12f413)) -Support close-panel with multiple forms.pat-inject in a modal, for example together with pat-stacks. -Previously only the first form used to attach the event handler which listens for the injection success event for closing the modal. -In these cases the modal wasn't closed properly. - - -### Maintenance - -* **build:** Run the GitHub release task unattendet and checkout the modified CHANGES.md afterwards. ([5945e60](https://github.com/Patternslib/patterns/commit/5945e6015edddf7f6aed355f5c63a1dc5236368b)) - -* **dependencies:** Upgrade dev dependencies up to minor versions. ([3f4d0c0](https://github.com/Patternslib/patterns/commit/3f4d0c0a346c031f78e6cbc499ffc870af610034)) - -### [6.0.1](https://github.com/Patternslib/patterns/compare/6.0.0...6.0.1) (2021-11-17) - - -### Maintenance - -* **build:** Cleanup package.json a bit. ([81f3bde](https://github.com/Patternslib/patterns/commit/81f3bde733202593ec4c9787550fd7fc21a70ab2)) - -* **build:** Read release-it changelog template from absolute path. This allows for extending this config in external packages. ([6fb6854](https://github.com/Patternslib/patterns/commit/6fb6854a18c015c988629b8c78b6ff85e2c9dace)) - -* **dependencies:** Upgrade copy-webpack-plugin and specify minimum Node.js version to 12.20.0. ([4804e84](https://github.com/Patternslib/patterns/commit/4804e84ef93ec77776d3c1d52fb75718ac9ce445)) - -* **dependencies:** Upgrade dev dependencies up to minor versions. ([5138216](https://github.com/Patternslib/patterns/commit/51382167b86988f68eb67626e1564fca04c2ba88)) - -* **docs:** Release notes about GitHub access tokens for GitHub releases. ([4167497](https://github.com/Patternslib/patterns/commit/4167497acdbee8d959f60db824b823f27c70040c)) - -## [6.0.0](https://github.com/Patternslib/patterns/compare/5.5.0...6.0.0) (2021-11-17) - - -### Bug Fixes - -* **build:** Do not recommend the next version bump. ([b875a08](https://github.com/Patternslib/patterns/commit/b875a0874f5a13dcd3d63f13b0c3755fc7f6fe83)) -Add option to not automatically detect the next recommended version bump. -Ref: https://github.com/release-it/release-it/issues/833 -Ref: https://github.com/release-it/conventional-changelog/issues/37 - - -### Breaking Changes - -* **build:** Upgrade Webpack to v5. ([39762db](https://github.com/Patternslib/patterns/commit/39762dba37230473b8e27d50ee18dc1a5060a1bf)) -If you extend this webpack configuration and run into problems see the -Webpack upgrade guide: https://webpack.js.org/migrate/5/ - - -### Maintenance - -* **build:** Add `babel_include` option to Webpack config factory. ([d97ded0](https://github.com/Patternslib/patterns/commit/d97ded044c2d60606c50245b4fcba7867058e954)) -Allow to configure exclusions from babel-loader exclude string via the -`babel_include` config option. -The default is to not exclude anything in `node_modules/@patternslib` -and all `pat-*` packaes. -Anything else in `node_modules` is excluded from babel processing. -* **build:** Add CORS header 'Access-Control-Allow-Origin' to allow including the JS from a different URL in test sites. ([3c51dd2](https://github.com/Patternslib/patterns/commit/3c51dd22a974dd56ff947759a597e07cb6ac27d2)) - -* **build:** Add release to Github. ([4636a9d](https://github.com/Patternslib/patterns/commit/4636a9d397e433a437b135b77c7081a31f1e9f49)) - -* **build:** Allow multiple bundles expose jQuery. Needed for module federation where multiple Webpack entry points are loaded. ([59a9991](https://github.com/Patternslib/patterns/commit/59a99915a79d4142eba50c51ba959ccf89e888e1)) - -* **build:** Deactivate duplicates plugin due to non-resolvable error. ([867e08f](https://github.com/Patternslib/patterns/commit/867e08ff50cb5b3dacf0332c14c38e85b564c749)) - -* **build:** Ignore node_modules and docs folder when watching for better performance. ([7b8a1e0](https://github.com/Patternslib/patterns/commit/7b8a1e0c81548f0f686dd5be8f46dba4739a07a3)) - -* **build:** Let screenful be processed by babel-loader. This is necessary since screenful 6.0.0. ([ff95ec6](https://github.com/Patternslib/patterns/commit/ff95ec65ffc58a976486786b77de1ca6b1743467)) - -* **build:** Load svg as resource and not inline. ([298be11](https://github.com/Patternslib/patterns/commit/298be113cf743c422a7ae43bbd36168848cbc7ff)) - -* **build:** Remove clean-webpack-plugin. Use built-in option to clean the output directory before compiling instead. ([604a8ed](https://github.com/Patternslib/patterns/commit/604a8ed58dbe7eaabbf5cdaa6ab76ea6885f4f88)) - -* **build:** Remove ProvidePlugin. Modules depending on jQuery need to explicitly import it. ([f43c8af](https://github.com/Patternslib/patterns/commit/f43c8afd056b1e95959e4ad84e2d4fb37da4d2ae)) - -* **build:** Use new inspectpack instead duplicate-package-checker-webpack-plugin. ([cf57b67](https://github.com/Patternslib/patterns/commit/cf57b678c4ffe45157f0b424a44d0fcb4773b83f)) - -* **dependencies:** Upgrade fullcalendar to 5.10.1. ([9cefa48](https://github.com/Patternslib/patterns/commit/9cefa48921930eb2bcd38050e459f1b656908b7d)) - -* **dependencies:** Upgrade moment-timezone to 0.5.34. ([a7d8d3c](https://github.com/Patternslib/patterns/commit/a7d8d3c38af1651934bfc771f4d25443bb97aa04)) - -* **dependencies:** Upgrade screenfull to 6.0.0. ([491d92e](https://github.com/Patternslib/patterns/commit/491d92e87e08aab5f4ecf0a1500fbf868c89ed27)) - -* **dependencies:** Upgrade tippy.js to 6.3.7. ([0dd51e0](https://github.com/Patternslib/patterns/commit/0dd51e0910f92094701794d3c958b1c984aa1986)) - -## [5.5.0](https://github.com/Patternslib/patterns/compare/5.4.0...5.5.0) (2021-11-15) - - -### Bug Fixes - -* **pat modal:** Fix injection problem with too early closed modals. ([e73bad9](https://github.com/Patternslib/patterns/commit/e73bad98879c1156d997cac3700babe852cef4de)) - -* **pat modal:** Fix not properly unregistered callbacks. ([297f248](https://github.com/Patternslib/patterns/commit/297f2483d0e90d746fa5b57c895ce6c4d4ee90f9)) -Fix a problem with too many callback calls due to multiple handler registrations. -This also led to a situation where the modal was not closed due to one -callback unregistering an event handler where another would have closed -the modal. - -## [5.4.0](https://github.com/Patternslib/patterns/compare/5.3.0...5.4.0) (2021-11-10) - - -### Features - -* **pat ajax:** Add accept parameter with default text/html for ajax requests. We are mainly using text/html in Patternslib - if a JSON response is needed you need to configure it when using pat-ajax. ([f47ea84](https://github.com/Patternslib/patterns/commit/f47ea84c4628efa00e531ef7c5a6c07323867917)) - -* **pat inject:** After failed ajax request, remove loading and executing classes from target and trigger elements. ([3039a4f](https://github.com/Patternslib/patterns/commit/3039a4f84f1afeb45505665284f854f410b889ef)) - -* **pat inject:** Better error handling. ([64fdb9a](https://github.com/Patternslib/patterns/commit/64fdb9afa9f8f26296b246bb522438c1c1e52577)) -Error handling: In a case of injection error, search for a configurable CSS id selector in the error response. -If it is found, inject the rendered error page into the document. -If no valid error response is found fall back to pre-configured error pages. -This allows for some more informative error pages than a very generic one. -The CSS id selector is defined by an optional URL fragment in the pre-configured error pages. - - -### Maintenance - -* **dependencies:** Upgraade dev dependencies. ([e730900](https://github.com/Patternslib/patterns/commit/e7309000ed74ba44a8c158a6b03c847a12c46a2a)) - -* **pat ajax:** Add more tests for passing arguments. ([e64ecac](https://github.com/Patternslib/patterns/commit/e64ecace0c49a4b8981f224d3ef09bc261f9963f)) - -* **release process:** Use JS file instead JSON for the release-it config. ([fc597d7](https://github.com/Patternslib/patterns/commit/fc597d7ffda7c7bda316dc8dd7e4e01320bdcaed)) - -* **Release workflow:** Include commit body and footer messages in the generated Changelog. ([50c70fa](https://github.com/Patternslib/patterns/commit/50c70faac091694010c5c574ae92dbe167f47e80)) - -## [5.3.0](https://github.com/Patternslib/patterns/compare/5.1.2...5.3.0) (2021-10-28) - - -### Features - -* **pat modal:** Dispatch a pat-modal-ready event after the modal is shown. ([4bfb841](https://github.com/Patternslib/patterns/commit/4bfb841642cd564127e643baf35260bfd6b98fdb)) - - -### Bug Fixes - -* **pat inject:** Dispatch the pat-inject-success event via plain JavaScript which better supports plain JavaScript event listeners. ([bf12c5c](https://github.com/Patternslib/patterns/commit/bf12c5c119cb34093d0cc00ffd01d949df063bd9)) - - -### Maintenance - -* **dependencies:** Upgrade dependencies up to minor versions. ([55bf6d6](https://github.com/Patternslib/patterns/commit/55bf6d624b1a601f45a90609481ed02af685ce8c)) -* **Docs:** Add a reference to the changelog. ([0fc8788](https://github.com/Patternslib/patterns/commit/0fc8788f05cc12d48e21e9c467e90a8983f21d92)) -* **Docs:** Update outdated information. ([6025b31](https://github.com/Patternslib/patterns/commit/6025b31e495746c0f317efe2ac09e2a5fe7dd7cb)) - -## [5.2.0] (2021-10-21) - -* Unintentional release with no changes. - - -### [5.1.2](https://github.com/Patternslib/patterns/compare/5.1.1...5.1.2) (2021-10-21) - - -### Bug Fixes - -* Ignore pat-update events with missing parameters. ([b8e1949](https://github.com/Patternslib/patterns/commit/b8e19492091e16e21fd90329bfad2bb187674965)) - -### [5.1.1](https://github.com/Patternslib/patterns/compare/5.1.0...5.1.1) (2021-10-21) - - -### Bug Fixes - -* **pat modal:** Remove call to utils.redraw, which was added in 2014 but apparently never in utils. ([75c410c](https://github.com/Patternslib/patterns/commit/75c410c64ea0bf5e6681a89ac2255cece3e9fb16)) -* **pat scroll-box:** Also set scroll classes immediately in a series of scroll events, additionally to the last scroll event within a threshold. Fixes a problem where some visual changes are applied recognizably late. ([07edce9](https://github.com/Patternslib/patterns/commit/07edce9f804441a1fce047e3b43a300f602f988a)) -* **pat scroll-box:** Set classes on the last scroll event within the threshold time. Fixing a problem where scroll-position-top wasn't set correctly on subsequent scroll-up events. ([fd829d7](https://github.com/Patternslib/patterns/commit/fd829d732f4451ed18f8934ed63edf80804e1012)) - - -### Maintenance - -* **dependencies:** Upgrade dev dependencies up to minor releases. ([1cb75b7](https://github.com/Patternslib/patterns/commit/1cb75b7eff85e1da940b2bf5ad78712e7ca3382d)) -* **pat scroll-box:** Restructure and modernize code for better readability. ([93fe976](https://github.com/Patternslib/patterns/commit/93fe9762515a682f937abeb6749a714c038cfd24)) -* **pat subform:** Documenting the use case of submitting a subform to a different url via formaction on a subform submit button. ([14bd8f6](https://github.com/Patternslib/patterns/commit/14bd8f6cb5f69a312fc990af5f59d8e80514c989)) - -## [5.1.0](https://github.com/Patternslib/patterns/compare/5.0.0...5.1.0) (2021-10-04) - - -### Features - -* **pat tooltip:** Add config option url to explicitly define an url where no ```` is available. ([557cbe4](https://github.com/Patternslib/patterns/commit/557cbe40b60e5605e5ffb7f76fa06e495f055b51)) -* **pat tooltip:** Allow to open the tooltip in JavaScript with via the trigger value none. ([f48dbf6](https://github.com/Patternslib/patterns/commit/f48dbf6d3838a62e2958426bfb86b909b8e14699)) - - -### Bug Fixes - -* **pat tooltip:** Wait a tick before repositioning after setting the content. Might fail due to unset popper instance. ([b5b2797](https://github.com/Patternslib/patterns/commit/b5b279759b558e8a012d116ef72cd5db49cd0304)) - - -### Maintenance - -* **cleanup:** Cleanup unused SCSS/CSS files. ([f53acb0](https://github.com/Patternslib/patterns/commit/f53acb0e8054b8182a0dd5cbf88acf4daf284601)) -* **dependencies:** Upgrade dev dependencies up to minor releases. ([5417506](https://github.com/Patternslib/patterns/commit/54175063edce0df04ca7074ac8fd1479a480b424)) -* **dependencies:** Upgrade dev dependencies up to minor releases. ([ffd3d73](https://github.com/Patternslib/patterns/commit/ffd3d73053f05f1a825558ffcb965fda501ef752)) -* **dependencies:** Upgrade jest-watch-typeahead to 1.0.0. ([23fd772](https://github.com/Patternslib/patterns/commit/23fd772b15d18845291e556e52c085027d0df6f6)) -* **dependencies:** Upgrade tippy.js to 6.3.2. ([5d2aed0](https://github.com/Patternslib/patterns/commit/5d2aed0aeed65eb92cd783ca1be33302b7a23ec1)) -* **pat calendar:** Upgrade fullcalendar from 5.8.0 to 5.9.0. ([28eab77](https://github.com/Patternslib/patterns/commit/28eab77a134f84dc9ad184d49983f4ecb70d5b66)) -* **pat tooltip:** Add pattern API methods to show/hide/destroy the tooltip. ([09a79e1](https://github.com/Patternslib/patterns/commit/09a79e1c22aa4015a953b7062b9ee177ff144a5a)) -* **pat tooltip:** Minor code cleanup. ([6c175ee](https://github.com/Patternslib/patterns/commit/6c175ee9bd7bc6b1ac2d94091ce0e59d1021468c)) -* Update patterns.css. ([39510a3](https://github.com/Patternslib/patterns/commit/39510a3adb41b7918c177327a99dc592b1b059f5)) - -## [5.0.0](https://github.com/Patternslib/patterns/compare/4.7.0...5.0.0) (2021-09-09) - - -### Bug Fixes - -* **build:** Fix passing of environment variables for production and development, so that also babel get's notice of it. ([6a0ad46](https://github.com/Patternslib/patterns/commit/6a0ad4624c397ce299dbe5121ed68847b59d9e43)) - - -### Maintenance - -* **dependencies:** Upgrade dev dependencies up to minor releases. ([61d8bd1](https://github.com/Patternslib/patterns/commit/61d8bd125d46315e0c2caead50ce20419cf95c52)) -* Development mode - explicitly set to no minification and no sourcemap generation (includes no inclusion of code via eval and thus preventing another layer of minification). ([f2de973](https://github.com/Patternslib/patterns/commit/f2de9739e3bee97627c85356a85d9816fd29c66b)) -* In development mode, use latest Chrome and Firefox browser versions for better debugging. ([f04da66](https://github.com/Patternslib/patterns/commit/f04da664c61ae415f6ad222aad2a2cc6605fc410)) - - -### Breaking Changes - -* **build:** The development/production mode needs now be passed via the NODE_ENV environment variable, so that also babel gets notice of it. You eventually need to adapt your build environment. Refer to this change: https://github.com/Patternslib/Patterns/commit/6a0ad4624c397ce299dbe5121ed68847b59d9e43 ([be5a670](https://github.com/Patternslib/patterns/commit/be5a670deab2736c5933e245a6a0346dd1a97d25)) - -## [4.7.0](https://github.com/Patternslib/patterns/compare/4.6.1...4.7.0) (2021-09-09) - - -### Features - -* **core base:** Store the pattern instance on the element also when instantiating manually without scanning the DOM. Also store the pattern instance directly on the DOM node without jQuery.data. ([252f537](https://github.com/Patternslib/patterns/commit/252f537dc3e266b991edef84c2d79c2784a9b1af)) -* **core dom:** add_event_listener and remove_event_listener methods to register event handlers for DOM nodes which can be unregistered by an id. Event handlers with the same id on the same node won't be registered twice. ([57febfd](https://github.com/Patternslib/patterns/commit/57febfd18c5a5d015ab837114ad999f9c14ab2d7)) - - -### Bug Fixes - -* **pat modal:** Wait a tick before destroying the modal so that registered event handlers (like form submit) can kick in before the modal disappears. ([c26ed3a](https://github.com/Patternslib/patterns/commit/c26ed3a70067bb54df4b7575cc10b81654974127)) - - -### Maintenance - -* **dependencies:** Upgrade dev dependencies up to minor releases and other releases up to patch level. ([42cd837](https://github.com/Patternslib/patterns/commit/42cd83716435c595b038ea14da55fc5bb55f205c)) - -### [4.6.1](https://github.com/Patternslib/patterns/compare/4.6.0...4.6.1) (2021-08-18) - - -### Bug Fixes - -* **pat inject:** Parse data attributes as JSON also when the value is a JSON array. ([de9ee8b](https://github.com/Patternslib/patterns/commit/de9ee8b762ed67b359928e713bee021e7465d3c8)) - -## [4.6.0](https://github.com/Patternslib/patterns/compare/4.5.5...4.6.0) (2021-08-17) - - -### Features - -* **core parser:** Add config to not group parsed options. This allows more flexibility when reusing the parser. ([7fea6e6](https://github.com/Patternslib/patterns/commit/7fea6e6a0920989a2575f9d4aca1aa4c18fc084e)) - - -### Bug Fixes - -* **pat inject:** Use the main argument parser when rebasing HTML so that it supports all kinds of arguments, including multiple configurations as seen in pat-inject and semicolons at the end of a config line after a line-break. ([d65892d](https://github.com/Patternslib/patterns/commit/d65892d629aa94e41a54d7a16c6a4d0f24c4b2d6)) - - -### Maintenance - -* **pat inject:** Fix invalid HTML in demo. ([725f834](https://github.com/Patternslib/patterns/commit/725f834d5c7d6de151e8dc4b7b529efc21c60188)) - -### [4.5.5](https://github.com/Patternslib/patterns/compare/4.5.4...4.5.5) (2021-07-23) - - -### Bug Fixes - -* **core dom:** querySelectorAllAndMe: Do not break when no element is passed but return an empty list. ([b5a7177](https://github.com/Patternslib/patterns/commit/b5a7177c7d0901ca8dbe2dad0383c37da6c63fa0)) -* **core registry:** scan: Do not throw an error when trying to scan undefined. ([8c97ae5](https://github.com/Patternslib/patterns/commit/8c97ae5fedf4cb16d55106c5bb80b20a8bf0734e)) -* **pat tooltip:** If a trigger is defined, do not prevent other event handlers from being run. Prevents an error where a form submit button was prevented from submitting the form when it also had the class applied. ([db70b55](https://github.com/Patternslib/patterns/commit/db70b557785cf41c6140d87b7b163a6944fbfdb3)) - - -### Maintenance - -* **pat tooltip:** Correct demo - 1) there is no source: auto, 2) source: content is only for the contents of the tooltip element. When referencing other content on the same page, source: ajax has to be used. ([9205ce0](https://github.com/Patternslib/patterns/commit/9205ce0c4df57a6030f16992db7642c047ddef96)) -* **pat tooltip:** Document that delay can be defined with units. ([88d271a](https://github.com/Patternslib/patterns/commit/88d271a1fb189b76d09cc7d784319d5a99c13bb6)) - -### [4.5.4](https://github.com/Patternslib/patterns/compare/4.5.3...4.5.4) (2021-07-15) - - -### Bug Fixes - -* **pat bumper:** Fix IntersectionObserver issue with Safari where rootMargin wasn't correctly recognized due to formatting issues. ([c0c3351](https://github.com/Patternslib/patterns/commit/c0c3351888d2ead17ac472565f78a5680d647690)) -* **pat tabs:** Prevent infinite loop when only child element is .extra-tabs. ([812fb50](https://github.com/Patternslib/patterns/commit/812fb504263eaaf7b8241e11ce22a8c5d00cd68c)) - - -### Maintenance - -* **dependencies:** Patch level upgrades (eslint minor level) of development dependencies. ([6f6f613](https://github.com/Patternslib/patterns/commit/6f6f6130ecd0301c883962b8b9e503427fdf76d8)) -* Fix the pre-commit command ([8401791](https://github.com/Patternslib/patterns/commit/8401791d088193ceb6cc7a6c9a3776b63964f527)) - -### [4.5.3](https://github.com/Patternslib/patterns/compare/4.5.2...4.5.3) (2021-06-30) - - -### Features - -* **core utils:** Add animation_frame which returns a Promise to be resolved with the next animation frame. Can be used to await for the next repaint cycle in async functions. ([808439a](https://github.com/Patternslib/patterns/commit/808439af22941b92a61d41ee1dacd366622f9c8b)) -* **core utils:** Add get_bounds function to return the client bounding rectangle with rounded integer values instead of double/float values. ([2be2abe](https://github.com/Patternslib/patterns/commit/2be2abebc8a3aa68bc776e41896a36766fbf8758)) -* **core utils:** Make getCSSValue return pixels as integer by default. Introduce a as_float option, if float/double values are needed. ([e0c027d](https://github.com/Patternslib/patterns/commit/e0c027dd2ac990d812cf6e92ae1a14016a1fb7e1)) - - -### Bug Fixes - -* **pat tabs:** Improve algorithm to calculate available width to ensure better stability (not shrinking while moving tabs) and correctness (taking .extra-tabs and style updates while moving tabs into account). ([b812aba](https://github.com/Patternslib/patterns/commit/b812abae6367fc6c1915e60c3cf02792de1c0f09)) -* **pat tabs:** Only run the ResizeObserver callback when width of parent container has changed. This avoids a infinite ResizeObserver callback loop when the height changes due to tab manipulation. Also apply a small threshold of 3 pixels for which the callback isn't run to avoid unnecessary runs. ([7a4432e](https://github.com/Patternslib/patterns/commit/7a4432e49745f028728afa9f588b8de95d655954)) - - -### Maintenance - -* **core utils getCSSValue:** Test for returning 0 if a numerical value (as_pixels, as_float) was requested which doesn't exist. ([51f5bcb](https://github.com/Patternslib/patterns/commit/51f5bcb375a726e1ff7bd0820f8abb79d122d318)) -* **pat tabs:** More debug messages. ([83fcfc5](https://github.com/Patternslib/patterns/commit/83fcfc5114a06b363bbb000c40c2f4f1686edf2c)) - -### [4.5.2](https://github.com/Patternslib/patterns/compare/4.5.1...4.5.2) (2021-06-28) - - -### Bug Fixes - -* **pat tabs:** Only calculate available space twice: Once initially and then after the extra-tabs span including extra classes have been added. This should stabilize tabs calculation in some cases. ([923614a](https://github.com/Patternslib/patterns/commit/923614ab304b617bba64d62ac7b77a3f4cde41af)) - - -### Maintenance - -* **pat tabs:** Test for debounce timeout. ([3c184aa](https://github.com/Patternslib/patterns/commit/3c184aa161cef82b75afb1d85a00f91a839b9bfc)) - -### [4.5.1](https://github.com/Patternslib/patterns/compare/4.5.0...4.5.1) (2021-06-25) - - -### Bug Fixes - -* **pat tabs:** Improve calculation of available width by querying the new available width after each recurision where a tab has been moved into the extra-tabs span. The width might change due to an applied padding when the extra-tabs span is added. ([92c284a](https://github.com/Patternslib/patterns/commit/92c284af00eb1f2a75363734efb4811b705f02b9)) - -## [4.5.0](https://github.com/Patternslib/patterns/compare/4.4.4...4.5.0) (2021-06-25) - - -### Bug Fixes - -* **pat bumper:** Do not the intersection observer callback break when no root is found. ([008b307](https://github.com/Patternslib/patterns/commit/008b3079f33800628b56c422c6bb6096dd294e62)) -* **pat bumper:** Wait for next repaint cycle before searching for the scroll container. Fixes a corner case where no scroll container was found after injecting content and initializing this pattern in the same repaint cycle where no CSS was yet applied. ([4da6918](https://github.com/Patternslib/patterns/commit/4da69182d421027b9d429c6a2ac9d12be3221e10)) - - -### Breaking Changes - -* **pat bumper:** Rework pat-bumper to only set bumping classes. Needs CSS position:sticky. Does not set positions via JavaScript anymore. Ensure performant operation by using an IntersectionObserver. Note: You need to set your pat-bumper elements via CSS to position: sticky. Ref: [#846](https://github.com/Patternslib/patterns/issues/846) Fixes: [#846](https://github.com/Patternslib/patterns/issues/846). Fixes: [#870](https://github.com/Patternslib/patterns/issues/870). ([82d3112](https://github.com/Patternslib/patterns/commit/82d3112edce9afd265c0f9c9b97a6036059b8b16)) -* **pat sticky:** Remove obsolete polyfill for position: sticky. ([bb2bc9a](https://github.com/Patternslib/patterns/commit/bb2bc9ab346c703719229b856ecb0948922cc38c)) - - -### Maintenance - -* **dependencies:** Minor version upgrade of dependencies. ([92ac3d0](https://github.com/Patternslib/patterns/commit/92ac3d029b434178ca64872480449bbb58a15f5e)) -* **pat bumper:** Remove unused/unnecessary side and margin options. Side is dropped as we always set the classes according to the bumped position. Margin is retrieved from the CSS. Register observers for x+y scroll containers if they are different. ([12d56e9](https://github.com/Patternslib/patterns/commit/12d56e9fc222d4fa80bcc8587620454de3a839a0)) -* **pat bumper:** Warn and exit if no position:sticky support is available. E.g. IE11. ([3fe42a9](https://github.com/Patternslib/patterns/commit/3fe42a9e84b1819e0ed869c6587eebd638cea1af)) - -### [4.4.4](https://github.com/Patternslib/patterns/compare/4.4.3...4.4.4) (2021-06-24) - - -### Bug Fixes - -* **pat tabs:** Improve available width calculation by excluding invisible and absolute positioned elements, making it more robust for different scenarios. ([bb0dd19](https://github.com/Patternslib/patterns/commit/bb0dd19a509d9d588b988b78730322b8a8971a64)) - -### [4.4.3](https://github.com/Patternslib/patterns/compare/4.4.2...4.4.3) (2021-06-24) - - -### Bug Fixes - -* **pat forward:** Allow to define the delay with units, e.g. 100ms. ([add916b](https://github.com/Patternslib/patterns/commit/add916b9fec6df7fe89ebb6282e669bb4c86c0df)) -* **pat scroll:** Allow to define the delay with units, e.g. 100ms. Fixes: [#869](https://github.com/Patternslib/patterns/issues/869) ([5a7f783](https://github.com/Patternslib/patterns/commit/5a7f783c24955107fcf1ead318eb808217025af0)) -* **pat scroll:** Reverse the semantics of the scroll offset. Offsets are substracted from the target position to stop BEFORE it. Fixes: [#867](https://github.com/Patternslib/patterns/issues/867) ([318fc99](https://github.com/Patternslib/patterns/commit/318fc9927e426318d83a7de794aa96d8b31768f1)) -* **pat tabs:** Do not count extra-tabs element against available width as this one is absolutely positioned. Fixes: [#868](https://github.com/Patternslib/patterns/issues/868). ([bb2e48c](https://github.com/Patternslib/patterns/commit/bb2e48cd57b145df32992cac32498dad973d00c8)) - - -### Maintenance - -* **pat autofocus:** Use utils.debounce instead custom logic. ([3c9a51c](https://github.com/Patternslib/patterns/commit/3c9a51cf6ce423ffed76e8b9407f0a37b6967b56)) -* **pat calendar:** Use utils.debounce instead custom logic. ([abc4c21](https://github.com/Patternslib/patterns/commit/abc4c2123886b9a510d602b6e042228a38fb5cc0)) -* **pat collapsible:** scroll semantics have changed for pat-scroll. Adapt tests and add doku. ([99a2d38](https://github.com/Patternslib/patterns/commit/99a2d387c23d17772ed869d9e413552d82c8539c)) -* **pat navigation tests:** Use utils.timeout instead nested setTimeout in tests. ([a477076](https://github.com/Patternslib/patterns/commit/a477076aefe6c27c32d32b6f3323b29be8c32958)) -* **pat selectbox:** Use utils.timeout instead setTimeout. ([0eea9b2](https://github.com/Patternslib/patterns/commit/0eea9b2cd87246ffe19bbca2d06945ee7672b29c)) -* **pat tabs:** Clarify tabs calculation logic in code. ([98866ed](https://github.com/Patternslib/patterns/commit/98866eddfa67869efeaa40d5f94e54116d94b566)) - -### [4.4.2](https://github.com/Patternslib/patterns/compare/4.4.1...4.4.2) (2021-06-17) - - -### Bug Fixes - -* **pat tabs:** Improve calculation of available space. It does now 1) check for line breaks of tab elements and 2) check if new position exceeds initial width of .pat-tabs container. ([6d323ac](https://github.com/Patternslib/patterns/commit/6d323ac664979b17453d077ae92e1dfcafa35201)) - -### [4.4.1](https://github.com/Patternslib/patterns/compare/4.4.0...4.4.1) (2021-06-16) - - -### Features - -* **styles:** Introduce a ``_fonts.scss`` to do font imports. Fixes a problem where Webpack could not resolve the font assets path correctly. ([1439e0e](https://github.com/Patternslib/patterns/commit/1439e0e1610770e5447eb68f1ca32db44dfb6d92)) -* **webpack:** Allow passing a config object which overrides keys from a base config. ([f8973ae](https://github.com/Patternslib/patterns/commit/f8973aedb0fdadd669aea4b4ee6d5e7164dda32e)) - - -### Maintenance - -* **dependencies:** Minor version updates. ([ccb00a0](https://github.com/Patternslib/patterns/commit/ccb00a0d1b98fec024a0b54802aa6ac3958939f2)) -* **dependencies:** Upgrade fullcalendar to 5.8.0. ([3c8dcab](https://github.com/Patternslib/patterns/commit/3c8dcab120ca09cd517a64a088f49f1c12e426bb)) - -## [4.4.0](https://github.com/Patternslib/patterns/compare/4.3.1...4.4.0) (2021-06-15) - - -### Features - -* **core utils debounce:** Improve cancelation of previous runs. ([a845264](https://github.com/Patternslib/patterns/commit/a845264379826a790291bfa71a392caa8f4479f2)) -* **pat bumper:** Extra classes depending on bumped side ([#847](https://github.com/Patternslib/patterns/issues/847)). ([5b1acac](https://github.com/Patternslib/patterns/commit/5b1acac3cf67c0aa84208f31562e47e2c3724716)) -* **pat collapsible:** async support for transition function. ([8c35a1a](https://github.com/Patternslib/patterns/commit/8c35a1afa86170dc966b84b67958548adeace1bd)) -* **pat collapsible:** Scroll offset support. ([48a2cdd](https://github.com/Patternslib/patterns/commit/48a2cdddee49c7934fa6d49242cb90f899a135b6)), closes [#840](https://github.com/Patternslib/patterns/issues/840) -* **pat collapsible:** Scrolling support. ([18901c8](https://github.com/Patternslib/patterns/commit/18901c8b8fd9fd68dbbe771b11a7cdae14d5064a)), closes [#840](https://github.com/Patternslib/patterns/issues/840) -* **pat scroll:** Add support for selector self. ([be4d322](https://github.com/Patternslib/patterns/commit/be4d322929d6b1683163fd88636527be1e3eaeaf)), closes [#840](https://github.com/Patternslib/patterns/issues/840) -* **pat scroll:** Add trigger value "manual". ([f3a04a6](https://github.com/Patternslib/patterns/commit/f3a04a6ec2273cdbb2527e990303a0e11e4ca699)), closes [#840](https://github.com/Patternslib/patterns/issues/840) -* **pat scroll:** Allow a delay before scrolling ([#842](https://github.com/Patternslib/patterns/issues/842)). ([cd146eb](https://github.com/Patternslib/patterns/commit/cd146ebed9ea0da0a35a244a36144979222199e6)) -* **pat scroll:** Support await for smoothScroll. ([0a353b3](https://github.com/Patternslib/patterns/commit/0a353b33309e7f308b20b1a91f4b5ef9026e768b)) -* **pat tabs:** Extra classes to indicate tabs state ([#841](https://github.com/Patternslib/patterns/issues/841)). ([aa0efbe](https://github.com/Patternslib/patterns/commit/aa0efbeaa2adee456a5c16757fd662a6839978b1)) - - -### Bug Fixes - -* **pat tabs:** Improve calculation of available space of pat-tabs. Ref: [#848](https://github.com/Patternslib/patterns/issues/848). ([77787af](https://github.com/Patternslib/patterns/commit/77787af9907c502bf83cb7989312f2e8915364c6)) - - -### Breaking Changes - -* **pat scroll:** Apply offset to scrolling position. ([6d54876](https://github.com/Patternslib/patterns/commit/6d548761c6d5eb4a7c29dee877293ff53cd64bde)), closes [#840](https://github.com/Patternslib/patterns/issues/840) - - -### Maintenance - -* **dependencies:** Upgrade dependencies on major level. ([c190e52](https://github.com/Patternslib/patterns/commit/c190e52bcf5e5b7e6a8901a137ec4574cb7624c2)) -* **dependencies:** Upgrade dependencies on minor+patch level. ([53d1434](https://github.com/Patternslib/patterns/commit/53d1434bc87cad2c71aacf1dbeeb4b853c1c5c9c)) -* **pat bumper:** Anounce breaking change for pat-bumper. The JavaScript based positioning will be dropped and needs to be done via CSS position:sticky only. This pattern will only set classes to indicate a bumped element. ([206b02f](https://github.com/Patternslib/patterns/commit/206b02f8bf7ac659d7a48ac6c9c8e3aafba7f0c6)) -* **pat scroll:** Add debug message when scrolling. ([eeaf054](https://github.com/Patternslib/patterns/commit/eeaf05413fe5e0c7935eb5a64749def33b999d08)) -* **pat scroll:** Un-skip selector:bottom test - it passes now. ([769e578](https://github.com/Patternslib/patterns/commit/769e5783403ca38bd1f6c8c76eb69f412bbf7357)) -* **pat scroll:** Updated demo to properly show the use of `delay` ([#842](https://github.com/Patternslib/patterns/issues/842)). ([8984519](https://github.com/Patternslib/patterns/commit/8984519fab2dfe7f6377279f1f42e41963bf028c)) -* **webpack:** Add config entry to minify all available bundles and chunks. No need to configure bundle minification in depending packages. ([b7b1587](https://github.com/Patternslib/patterns/commit/b7b1587e2206ea191e4795c4c03dc0b1d7759e13)) -* **webpack:** Remove unnecessary moment resolve-alias. No need to overload in sub packages for that anymore. ([1127367](https://github.com/Patternslib/patterns/commit/112736716cda3e7872760e72ca9311a8d081db37)) -* Minor code modernizations and cleanup. ([81fa5dc](https://github.com/Patternslib/patterns/commit/81fa5dca6a2bba9434977e17ea0ad7def4acced5)) -* Replace last occurrences of underscore debounce with utils debounce. ([2ef57bf](https://github.com/Patternslib/patterns/commit/2ef57bfc13c97f4cb09542cf2f63d8d88c44ea4b)) -* **webpack:** Update build system with necessary changed from recent version updates. We're still on Webpack 4. ([fbff9f9](https://github.com/Patternslib/patterns/commit/fbff9f9700a55ef33691afaac2375b83e115acd6)) - -### [4.3.1](https://github.com/Patternslib/patterns/compare/4.3.0...4.3.1) (2021-06-08) - - -### Bug Fixes - -* **pat calendar:** Fix .cal-title only searched within calendar controls since 4.2.4. Fixes current date not being updated when browsing the calendar. ([7362b33](https://github.com/Patternslib/patterns/commit/7362b337b8a68ebd2d41bb1bb26bb4f3dd27130c)) - - -### Maintenance - -* **pat sticky:** Deprecate pat sticky. Use CSS position:sticky instead. ([8ac4603](https://github.com/Patternslib/patterns/commit/8ac4603c772a1fe3a3e2e1b38d1e0117124e2c7d)) - -## [4.3.0](https://github.com/Patternslib/patterns/compare/4.2.4...4.3.0) (2021-06-01) - - -### Features - -* **core push kit:** Set connection parameters. ([427d0f1](https://github.com/Patternslib/patterns/commit/427d0f1e60653c95eef073f2a5279032702141e6)) -* **core push kit:** Support for desktop notifications via patterns-notification-exchange and patterns-notification-filter meta tags. ([4c3a615](https://github.com/Patternslib/patterns/commit/4c3a6152ab1bf27dd19d350c11f9b742d961d113)) -* **core push kit:** Use logging framework. ([515acc9](https://github.com/Patternslib/patterns/commit/515acc9d33265668f5162e0a8e94d4394259056b)) -* **core push kit:** Use more generic patterns-push-filter instead patterns-push-user-id to show filtering is available for any topics. ([2aa51b7](https://github.com/Patternslib/patterns/commit/2aa51b78d44f5c459f9b99920962ea05014529db)) - - -### Bug Fixes - -* **pat push:** Fix push kit and push pattern for basic operation. ([34ecbf8](https://github.com/Patternslib/patterns/commit/34ecbf802b37e40855425e34453e2fac0b1857e7)) - - -### Maintenance - -* **core push kit:** Modernize code. ([8987d82](https://github.com/Patternslib/patterns/commit/8987d8201b984b0eed2ed89d014157ed79479c05)) -* **core push kit:** Simplify push kit config, use url instead of server-url. ([6bed6be](https://github.com/Patternslib/patterns/commit/6bed6be0189d1f1dc86a9237f0518aaa03b7cb4d)) -* **core push kit:** Upgrade stompjs ([4ad7532](https://github.com/Patternslib/patterns/commit/4ad7532d0b621a4c6192be05fe1db4f47b2ba076)) -* **docs:** Add note about changing the loglevel through query parameters from https://github.com/Patternslib/logging#configuring-through-url ([695c56b](https://github.com/Patternslib/patterns/commit/695c56b474e81b43efb4bf4c3d23843ad1b1a03e)) -* **pat push:** Modernize code. ([e3da26f](https://github.com/Patternslib/patterns/commit/e3da26f41554f944e4ea1924db3a0576aabcac57)) -* **pat push demo:** Allow to pass the exchange name to the push send script. ([86435f0](https://github.com/Patternslib/patterns/commit/86435f00af14a95349b2773f0872f47566dd1aa6)) -* **pat push demo:** Provide Makefile to manage rabbitmq and producer. ([743e210](https://github.com/Patternslib/patterns/commit/743e2109d5d20a53d8c0089ac093e5b51ab26488)) -* **pat push demo:** Update documentation and examples. ([bdaaf84](https://github.com/Patternslib/patterns/commit/bdaaf84052007f13c6dfdd442c47a699b86f3fa4)) - -### [4.2.4](https://github.com/Patternslib/patterns/compare/4.2.3...4.2.4) (2021-04-28) - - -### Bug Fixes - -* **core parser:** Allow line breaks and spaces before and after pattern arguments. ([ff9c248](https://github.com/Patternslib/patterns/commit/ff9c24865d37e8b0dfdebfe8c8e44963b5e3e2ef)) -* **pat calendar:** Implement calendar-controls. ([bbbed29](https://github.com/Patternslib/patterns/commit/bbbed299404f08749eb6e8f65e62a6e88f8c7fc5)) - - -### Maintenance - -* **Tests:** Remove left-over log messages. ([058ba74](https://github.com/Patternslib/patterns/commit/058ba743cc454a8c1cd9be0260b26d8be47b5c28)) - -### [4.2.3](https://github.com/Patternslib/patterns/compare/4.2.2...4.2.3) (2021-04-26) - - -### Bug Fixes - -* **pat scroll:** Fix scrolling on body as scroll container. ([a099517](https://github.com/Patternslib/patterns/commit/a099517f02bcd7a03e9cc6138ee9f18a79dcd1f0)) - -### [4.2.2](https://github.com/Patternslib/patterns/compare/4.2.1...4.2.2) (2021-04-23) - - -### Bug Fixes - -* **pat date picker:** Add test to check for working clear button in styled behavior with formatted dates. Needs previous commit to work. ([cdb7ba4](https://github.com/Patternslib/patterns/commit/cdb7ba408b277663712da1cf8354119fee1c6dc4)) -* **pat display time:** Restore old behavior and clear the pat-display-time contents on empty datetime attributes. ([58f992c](https://github.com/Patternslib/patterns/commit/58f992c25b0926c590fde30ce2ef2f7843822181)) - - -### Maintenance - -* Upgrade all version within the specified range. ([b0924a7](https://github.com/Patternslib/patterns/commit/b0924a7ccf8c5906f527ccb92296ffa0e534099b)) - -### [4.2.1](https://github.com/Patternslib/patterns/compare/4.2.0...4.2.1) (2021-04-22) - - -### Bug Fixes - -* **pat date picker:** styled behavior: do not format the date when no output-format is given. Also, only import display-date when it's actually used. ([ca8ddae](https://github.com/Patternslib/patterns/commit/ca8ddaedfadb6b309154d195c0323f20df03c607)) -* **pat display time:** Fix relative date / from-now option to work again. ([95e5dea](https://github.com/Patternslib/patterns/commit/95e5dea3f147b5bd5110f087049bbf36dbe3624a)) - - -### Maintenance - -* **pat display time:** Add tests with a fixed timezone. ([40bea37](https://github.com/Patternslib/patterns/commit/40bea37cdd27f3aec2d72a2fd5828ebe38bca6a4)) -* **Release process:** Fix make release-patch target to really release a patch level version. release-it does default to minor level. ([35461c4](https://github.com/Patternslib/patterns/commit/35461c4186f316994f68d7fe40b464e55d51d9a8)) - -## [4.2.0](https://github.com/Patternslib/patterns/compare/4.1.0...4.2.0) (2021-04-21) - - -### Features - -* **core utils:** Add localized_isodate utility method to return in ISO 8602 date. This is to work around timezone shifting issues with the UTC based toISOString method. ([2b395b7](https://github.com/Patternslib/patterns/commit/2b395b7017f73b63dc41c2886bb25654627315d0)) - - -### Bug Fixes - -* **pat date picker tests:** Fix failing test when running around midnight due to timezone shifting issues. ([3dd8527](https://github.com/Patternslib/patterns/commit/3dd852785f09f191498781afaba60e87ac18256a)) - - -### Maintenance - -* **Build:** Also babel-load mockup from node_modules. This simple addition makes unnecessarily complex overload code in mockup obsolete. ([76337b9](https://github.com/Patternslib/patterns/commit/76337b931d1f6cff5c3b177e2cc5773a1dfc6465)) -* **Release workflow:** Do not include the release commit message in the changelog and bypass the commitlint pre-commit hook. ([3ef05dc](https://github.com/Patternslib/patterns/commit/3ef05dc5de83c0c0bee8fc75c0d6c1165245fb83)) - -## [4.1.0](https://github.com/Patternslib/patterns/compare/4.0.0...4.1.0) (2021-04-21) - - -### Features - -* **core registry:** Do not scan patterns wrapped within ``