Skip to content

Releases: Patternslib/Patterns

Release 6.3.2

22 Dec 15:51
Compare
Choose a tag to compare

6.3.2 (2021-12-22)

Bug Fixes

  • pat inject: autoload-visible only when in viewport. (49863b7)
    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)

Release 6.3.1

21 Dec 00:07
Compare
Choose a tag to compare

6.3.1 (2021-12-21)

Bug Fixes

  • pat gallery: Correctly re-use existing default templates. (5191041)

  • pat gallery: Do not reinitialize gallery image sizes too often. (1f1e4d4)

Maintenance

  • dependencies: Upgrade up to minor versions. (b0d2177)

  • pat gallery: Add demo/test case for extending the pat-gallery page with itself. (433a95a)

  • pat gallery: Factor out get_template so that it can be overwritten in subclasses. (5341141)

  • pat gallery: Remove redundant preventDefault. (8a341aa)

  • pat inject: Minor documentation fix. (3b091b8)

Release 6.3.0

16 Dec 11:53
Compare
Choose a tag to compare

6.3.0 (2021-12-16)

Features

  • core utils: removeWildcardClass: Add support for pure DOM nodes instead of needing jQuery objects. (6be62e8)

  • core utils: Support NodeList in ensureArray and add option enforce_array if an array-like object should converted to a real array. (23336b9)

  • pat calendar: Change time-format option to configure 24h or 12h time format. (03437e9)

  • pat gallery: Reinitialize the triggers when new elements are loadded into the gallery area. (276f3f2)

Bug Fixes

  • pat gallery: Unhide/hide the gallery template when opening/closing it. Fixes some layout issues when gallery isn't closed properly. (5abca91)

Maintenance

  • dependencies: Upgrade dependencies. (9a35e71)

  • pat gallery: Modernize and improve code. (30227e6)

  • pat gallery: Narrow the search path for the Photoswipe template element. It is just within the template. (6dd5893)

  • pat navigation: Reduce timeout from 300ms to 1ms to wait for MutationObserver. Also partly simplify test code. (edf4f14)

  • pat switch: Modernize code. (78e4756)

  • pat validation: Modernize code. (77d3410)

  • tests: Add jest-raw-loader to be able to load templates in tests. (c36fb49)

Release 6.2.0

03 Dec 22:20
Compare
Choose a tag to compare

6.2.0 (2021-12-03)

Features

  • core utils: Add escape_html and unescape_html function to replace/unreplace html entity characters. (dead69c)

Maintenance

  • pat calendar: Document preference of setting the language as lang attribute. (bbf7a6c)

  • pat display time: Document preference of setting the language as lang attribute. (71391db)

Release 6.1.0

30 Nov 11:40
Compare
Choose a tag to compare

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)

  • core dom: Add parameter to acquire_attribute to return a list of all found attributes up the DOM tree. (732ef34)

  • pat calendar: Acquire language from the DOM tree instead only the HTML node if the language is not configured. (d659e09)

  • pat display time: Acquire language from the DOM tree instead only the HTML node if the language is not configured. (7c65d5c)

Bug Fixes

  • pat autofocus: Scoped autofocus. (f820445)
    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)

  • dependencies: Upgrade dev dependencies up to minor versions. (405674d)

Release 6.0.2

25 Nov 00:15
Compare
Choose a tag to compare

6.0.2 (2021-11-25)

Bug Fixes

  • pat modal: Fix close-panel with multiple inject forms. (251675b)
    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)

  • dependencies: Upgrade dev dependencies up to minor versions. (3f4d0c0)

Release 6.0.1

17 Nov 22:22
Compare
Choose a tag to compare

6.0.1 (2021-11-17)

Maintenance

  • build: Cleanup package.json a bit. (81f3bde)

  • build: Read release-it changelog template from absolute path. This allows for extending this config in external packages. (6fb6854)

  • dependencies: Upgrade copy-webpack-plugin and specify minimum Node.js version to 12.20.0. (4804e84)

  • dependencies: Upgrade dev dependencies up to minor versions. (5138216)

  • docs: Release notes about GitHub access tokens for GitHub releases. (4167497)

Release 6.0.0

17 Nov 02:46
Compare
Choose a tag to compare

6.0.0 (2021-11-17)

Bug Fixes

Breaking Changes

Maintenance

  • build: Add babel_include option to Webpack config factory. (d97ded0)
    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)

  • build: Add release to Github. (4636a9d)

  • build: Allow multiple bundles expose jQuery. Needed for module federation where multiple Webpack entry points are loaded. (59a9991)

  • build: Deactivate duplicates plugin due to non-resolvable error. (867e08f)

  • build: Ignore node_modules and docs folder when watching for better performance. (7b8a1e0)

  • build: Let screenful be processed by babel-loader. This is necessary since screenful 6.0.0. (ff95ec6)

  • build: Load svg as resource and not inline. (298be11)

  • build: Remove clean-webpack-plugin. Use built-in option to clean the output directory before compiling instead. (604a8ed)

  • build: Remove ProvidePlugin. Modules depending on jQuery need to explicitly import it. (f43c8af)

  • build: Use new inspectpack instead duplicate-package-checker-webpack-plugin. (cf57b67)

  • dependencies: Upgrade fullcalendar to 5.10.1. (9cefa48)

  • dependencies: Upgrade moment-timezone to 0.5.34. (a7d8d3c)

  • dependencies: Upgrade screenfull to 6.0.0. (491d92e)

  • dependencies: Upgrade tippy.js to 6.3.7. (0dd51e0)

4.0.0-dev.0

09 Apr 12:02
Compare
Choose a tag to compare
4.0.0-dev.0 Pre-release
Pre-release
  • yarn install (f91a7c2)
  • Infrastructure: Prepare release using release-it. (23c842b)
  • Merge pull request #827 from Patternslib/scr-984 (548394b)
  • pat gallery: Import styles for photoswipe. (ab1af51)
  • pat carousel: Import styles for slick carousel. (a1fea7d)
  • pat auto suggest: Import styles for select2. (cb653bf)
  • pat-tooltip: Import styles for tippy. (901f09f)
  • pat-modal: Import styles. (2fe998e)
  • pat datetime picker: Import styles. (d908a67)
  • pat date picker: Import styles for pikaday. (dc13741)
  • Styles: Import styles by setting __patternslib_import_styles (6d8282c)
  • yarn install/upgrade (d3a8040)
  • Infrastructure: Upgrade jQuery to 3.6.0. (07c4e69)
  • Webpack: Backport changes from Mockup - add loaders for images, svg, sass and xml. (e3ffc9f)
  • Webpack: Automatically detect the chunk path or "webpack_public_path" while still allowing for overriding via "patternslib_public_path". (d4ea4e2)
  • Cleanup: Make dynamic imports from default exports one-liners. (4cd4e27)
  • Export all parsers in all patterns to be able to modify default values or add aliases. (2c500e8)
  • pat datetime picker: Fixes and Cleanup. (9e28bc7)
  • pat carousel: Use imagesloaded instead of timeout to wait for images to have been loaded. (30d879a)
  • pat carousel: Minor modernization. (ff45ce8)
  • pat selectbox: Minor optimization. (26a4a90)
  • pat-modal: Modernize code (a6b8a7a)
  • pat autosuggest: Remove ie<11 compatibility css. (6110184)
  • Merge pull request #826 from Patternslib/core-fixes (e2fb089)
  • pat clone: Document pattern initialization within templates and add test. (dfc9411)
  • pat clone: Code modernization. (8688946)
  • core registry: Do not scan patterns within trees with attribute hidden or class cant-touch-this. (e6308e8)
  • core registry: Slight optimization in scan + tests. (93a84c7)
  • core polyfills: Add polyfill for Node.closest method. (9d8aa24)
  • core dom: Fix usage of optional chaining operator. (b6caa4f)
  • core base test: Remove trigger where it's not used - trigger is a selector and some selectors were invalid thus unused. (1859f28)
  • core dom is_visible: Mock in tests to check only for hidden to avoid unavailable offsetWidth/offsetHeight in Jest. (b9feb15)
  • core dom: Add get_parents to return all parent elements from a given DOM node. (6160980)
  • core base constructor: Await for initalization. (7c85ee5)
  • pat calendar: Explicitly import JavaScript language files to avoid missing Webpack TypeScript loader errors. (af8e62f)
  • pat validation: Add email validation to demo. (384ef56)
  • Merge pull request #817 from Patternslib/support-more-prefixes (1b41fd7)
  • Don't rebase for some additional known prefixes to avoid that the links break when contained in an injected page snippet. This can certainly be made more generic, but for now, it hurts only for the tel links and is a good enough fix for me (702b859)
  • Remove fullcalendar from styles - its included via patterns-sass or webpack. (1c0e402)
  • Merge pull request #816 from Patternslib/dependabot/npm_and_yarn/elliptic-6.5.4 (ea8bba9)
  • Bump elliptic from 6.5.3 to 6.5.4 (4fd24bf)
  • Merge pull request #814 from Patternslib/thet-calfilterfix (ba6b1ac)
  • Revert "Do not apply filter, if filter is empty.", as this leads to unexpected UX. (e83cdaf)
  • Update and simplify minimalpattern (77222dc)
  • Merge pull request #813 from Patternslib/thet-bubbleevents (b8a2828)
  • Dispatch DOM events with bubbling, canceling (c08e757)
  • Merge pull request #812 from Patternslib/thet-fix-esling (3e1e9f8)
  • pat inject: Fix eslint errors. (e2865b5)
  • Merge pull request #811 from Patternslib/inject-config-context (387d5cf)
  • pat inject: Fix target-self context for nested pat-inject (f2343cb)
  • Update documentation.md (0bd93c9)
  • Merge branch 'master' of https://github.com/Patternslib/Patterns (1252d9b)
  • Update documentation.md (c223388)
  • pat calendar: Support on events with a URL via set to some CSS class names. (6780440)
  • Merge pull request #810 from Patternslib/calendar-tooltip (2ddd459)
  • pat-calendar: URL support for event JSON model. (d94bd94)
  • pat calendar: Support on events with a URL via set to . (493e1be)
  • Demos: Add and extend list of patterns. (5bd0ccb)
  • pat calendar: Update demo (a2d3ac9)
  • Brushed up demo page (9e60f24)
  • Merge pull request #809 from Patternslib/fix-formaction-self (35eda23)
  • pat inject: Fix formaction button injections with target self. (b875946)
  • Merge pull request #806 from Patternslib/thet-cal-injectonlyifurl (7241dec)
  • pat-calendar: pat-inject is only set event has a url. (23198b4)
  • Add autocomplete=off to in pat-select. Firefox otherwise prefills with previous form data, even if the selected attribute is used in . See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete (8613b70) pat-calendar: Do not apply filter, if filter is empty. (2acb2c7) Merge pull request #798 from Patternslib/scr-844 (dff47be) pat calendar: Support for rendered events via some configuration options. (005f774) pat-calendar: Do not include properties not existent in the event source. Avoids problem of setting a href attribute of undefined in the calendar. (dc07b43) pat-calendar: Deactivate some more event-add related code paths if not needed. (eb30880) Merge pull request #797 from Patternslib/pat-scroll-click (0badd14) pat-scroll: Do handle click events also when trigger is set to . (48bcf26) Merge pull request #796 from Patternslib/scr-840 (fd68f4e) pat-scroll: selector:bottom (e9d251f) pat-scroll: Modernize code (af2a1e7) No need to deregister the event handler with the logic. (3ad3218) Merge pull request #795 from Patternslib/scr-841 (f6dc2e0) pat forward: Add delay parameter and self for selector. (d520252) pat forward: modernize and simplify code (f3cfef5) Merge pull request #794 from Patternslib/scr-838 (8370636) pat tooltop: Change show/hide classes to less generic names. (c96e0da) pat inject: Rebase URLs in pattern configuration attributes /3 (f95d2f1) pat-inject - Better Error Reporting on inject (4b398c7) Build infrastructure: Use npx as runner for binaries. (2ec4837) Cleanup: Configure TAB for Makefile. (f0120dc) Merge pull request #790 from Patternslib/thet-parser (971199e) pat collapsible demo: Fix url. (4ae77ec) pat date-picker demo: Fix url. (772ed39) pat calendar demo: Fix url. (4708830) pat datetime-picker: Add the parser to the pattern attributes. (3a9d5e0) pat date-picker: Add the parser to the pattern attributes. (a2d6f99) pat collapsible: Add the parser to the pattern attributes. (766ba67) pat calendar: Add the parser to the pattern attributes. (1cff029) pat inject: Rebase URLs in pattern configuration attributes /2 (a2b5f88) core base: Add the parser instance to pattern attributes if available. (9c8ef3b) pat inject: Rebase URLs in pattern configuration attributes. This avoids URLs in pattern configuration to point to unreachable paths in the context where the result is injected into. (e3036e9) pat slides: Avoid jQuery extended CSS selector syntax. (0a3fd54) pat autofocus: Avoid jQuery extended CSS selector syntax. (6de0d64) Fix tests: Add missing import for jquery-ext where it's needed. (06c1728) core utils: Add jqToNode to return a DOM node if a jQuery node was passed. (d97881a) code dom: Make find_parents more robust against DocumentFragments without a parent. (b2ecbec) core registry scan: Clean up selectors before querying. (ce904bf) core registry: Modernize code - Remove underscore and jquery-ext, use more regular js (b50415b) core registry: modernize code (ee09d31) core base: modernize code (336f16d) core mockup-parser: modernize code (2a0e515) core parser: Remove usage of underscore. (dfbb547) core parser: modernize code - class based syntax (a54e8ad) core parser: modernize code - let/const instead of var (3c08438) core parser: modernize code - use arrow functions (91264e4) core parser: modernize code - simpler function definitions (cdb9292) pat-inject: Bugfix: refer to currentTarget which is the element the event handler is attached to. (05d0be5) Merge pull request #788 from Patternslib/scr-732 (eb1f925) pat inject: Allow configurable error pages. Can be disabled by adding pat-inject-errorhandler.off to the URL's query string. (46dee87) pat inject: Allow configurable error pages. Fixes: https://github.com//issues/735 (b4cc0c3) pat-inject: Change log messages to log.debug (8371183) pat-inject: Reuse function and remove code duplication. (ae3295d) pat-inject: Fix this context. See: https://gist.github.com/thet/07145dfbfec9bf6c1213b7fc9f963450 (9e3ae07) pat-inject: refactor to refer to this instance instead of object. (9a551f3) pat-inject: Modernize - use const and let (bcec73b) pat-inject: Modernize - avoid modified this (5f1f4ac) pat-inject: Modernize - functions (0ad4522) core utils debounce: Remove unnecessary var (8f501fd) core dom: Add create_from_string to create a DOM Element from a string. (92fb400) pat-checklist demo: fix html structure (84cfeba) Update patterns (cc9249c) pat calendar demo: fix categories filter (1bb65a0) pat-calendar: okay. temporary last minute fixes to make the demo work on patternslib site (d74d7fc) English as default language for the demo (270dcd5) Path fix (e7c4517) Restore @thet's corrections (d524f06) Merge branch 'master' of https://github.com/Patternslib/Patterns (64e03f8) Calendar demo (b9f52d3) pat-calendar demo: Use absolute URL for temporary patternslib demo website fix. (e740079) Fix bug with image width (93087f4) Update patterns (5e81858) Update patterns (d97ab05) Update patterns (9e00dbc) Update patterns (ece6b32) Update index.html (a0cd9e5) Fix path (379a832) Brushing up demo (8fa4bca) Brushed up demo (5f3609a) ...
Read more

2.1.2 - Aug 29, 2017

29 Aug 10:02
Compare
Choose a tag to compare
  • pat-modal: Followup fix for the issue where chrome is so quick that a modal is closed before the actual injection call can be sent. Now modals can be closed again. (pilz)