Package: plone.patternslib
An add-on to makepatternslibpatterns available within Plone 5.
It has some limitations (see below).FeaturesPlone 5’s Mockup patterns have been relying on the Patternslib core (scanner, registry, base class etc.) for quite some time already.Because of this it’s possible to use Patternslib patterns (as opposed to the Mockup patterns in Plone 5).This package makes a selection of those patterns available in Plone 5.Known IssuesThere are still a few patterns that both Plone 5 and Patternslib have.
They either conflict, because they use the same name or they conflict,
because they attempt to do the same or similar things.
For now we chose to explicitly exclude them here.The Patternslib patterns that are currentlydisabled(for various reasons) are:pat-colour-pickerpat-date-pickerpat-gallerypat-image-croppat-legend: It conflicts with pat-autotocpat-notificationpat-sortable: Naming conflict withpat-sortablein Mockup.pat-subformpat-tabs: New, unreleased Patternslib pattern. Not aware of any conflicts.pat-toggle: Naming conflict withpat-togglein Mockup.pat-tooltip: Naming conflict withpat-tooltipin Mockup.pat-validationExamplesThere are example browser views for four patterns in the browser directory.
If all went well, you can test the following patterns by calling their browser view examples on your plone site:@@pat-depends@@pat-inject@@pat-masonry@@pat-switchDevelopmentThis package is built similarly to how the mockup sources are pulled into the Plone egg. There is a Makefile which clones patternslib.
Similarly to how it is done in Plone5, Patternslib is cloned and built, but only the necessary parts of it are checked in to plone.patternslib.Make sure that when you update Patternslib that the newer version or files are compatible with the version ofpat-utilsthat are in Mockup/Plone 5.0.x.
We are able to override the version ofpat-parser, but notpat-utils,
because it’s included in theplone-compiled.jsbundle (“baked into the cake” so to speak).
This means that we have to rely on the version ofpat-utilsin Mockup/Plone 5.x.
If no new methods have been added topat-utilsin later versions of Patternslib, then it shouldn’t be an issue.If you make some changes to the pattern or the bundle, you need to re-compile the bundle.You can useplone-compile-resourcesscript on a Plone site where this plugin is installed:./bin/plone-compile-resources –site-id=Plone -b bundle-leaflet./bin/plone-compile-resources –site-id=Plone -b patternsInstallationInstall plone.patternslib by adding it to your buildout:[buildout]

...

eggs =
    plone.patternsliband then runningbin/buildout.Install the plone.patternslib package into your site.
It will register a patternslib resource bundle in addition to the existing plone mockup bundles.ContributeIssue Tracker:https://github.com/plone/plone.patternslib/issuesSource Code:https://github.com/plone/plone.patternslibSupportIf you are having issues, please put them into the issue tracker.LicenseThe project is licensed under the GPLv2.jcopkode,jc@opkode.comSyslab.com,pilz@syslab.comChangelog1.3.0 (2023-02-02)Update jQuery to 1.12.4 and Patternslib to 2.1.5.
Fixes:https://github.com/plone/plone.patternslib/issues/73[thet]pat-leafletAJAX geoJSON feature
[petschki]1.2.1 (2020-11-23)Bugfix: Register upgrade step for the correct profile
[frapell]1.2.0 (2020-08-07)Registerpat-datetime-pickerin the resource registry.
[thet]Restructure upgrades to follow bobtemplates.plone recommendations.
[thet]1.1.1 (2020-07-10)Do not autoinclude ZCML (this was not needed here).
[jensens]Fix dependecy chain, depend onProducts.CMFPloneinsetup.py.
[jensens]Upgrade to pat-leaflet 1.4.0.
[thet]1.1.0 (2019-04-11)Upgrade pat-leaflet to 1.3.0.
[thet]Remove 2nd CSS resource from Leaflet Markercluster as Plone doesn’t compile it properly.
[thet]Registerpat-date-picker.
[thet]Update dependencies, deped on Patterns 2.1.x.
[thet]Update to latest Patterns.
[thet]Remove registry initialization in bundles.
[cekk]Declare support for python 3.
[vincero]1.0 (2017-02-28)Git-un-excludedistdirectory within thestaticfolder.
[thet]Fix font-awesome web font path.
[thet]Fix Leaflet icon integration.
[thet]Register resources with their uncompressed files, whereever they are available.
This helps debugging and the resource registry itself can handle compression on it’s own.
[thet]Upgrade Patternslib to latest version.
[thet]Betterpat-galleryintegration.
[thet]Addpat-leafletresources.
[thet]Use bower to manage resources instead of Makefile script.
[thet]Remove browserlayer and add upgrade step for removal from component registry.
[thet]Cleanup.
[thet]0.2 (2016-04-27)Polyfill removeDuplicateObjects so that we can use version 2.0.13 of
Patternslib with Plone/Mockup which still uses Patternslib 2.0.11.0.1 (2016-04-27)Initial release.