------------------
Incompatibilities:
- The related items and structure patterns have changed quite a lot.
Customizations might break due to these changes.
See below.
New:
- PickADate pattern: Add a button to set the date or time to now and another to clear all inputs.
Remove the clear buttons from the date and time picker itself, as they allowed incomplete input submission (e.g. date only when date and time were required).
Also remove the now obsolete footer buttons as a whole from the date picker.
Add options ``today`` and ``clear`` to hide those buttons when set to ``false``.
Use ``display: inline-block`` instead of problematic ``float:left``.
Refs: PR 740, Fixes 732.
[thet]
- PickADate pattern: Add option to automatically set the time when changing the date.
It defaults to set the time to the current time.
[thet]
- Change default sort option in livesearch pattern.
[rodfersou]
- Show expired label in folder contents for expired attributes
[vangheem]
- Related Items refactorings:
- Make "search" and "browse" mode user-selectable via buttons.
- Remove obsolete tree widget, use "browse" mode instead.
- Let "search" mode search recursively.
- Let "browse" mode start from current path.
- Immediately open select2 results when clicking on "Browse" or "Search" or browsing somewhere.
- Show only selectable items in "search" mode, if defined.
- Show only selectable and folderish items in "browse" mode, if selctable items are defined.
- Exclude already selected items in result list.
- Default closeOnSelect to true.
- Show "Open folder" arrow only when in "browse" mode.
- Seperate templates from JavaScript into xml files.
- Allow optional image and file upload (especially useful for image and file reference widgets).
- Allow configuration of "favorites" to quickly switch the current path via a dropdown menu.
- Adapt TinyMCE pattern to related item changes and remove now obsolete selection and result templates.
- Calculate all paths relative to the ``rootPath``, so that breadcrumbs navigation and favorites do not show paths outside the rootPath.
- For results and selected items with images, add a line break after the image.
[thet]
- More Related items pattern:
- Result button style allow for more room for scrollbar, and have subltle color change on hover to deliniate user-expected behavior of browsing vs. selecting item.
- Related Items pattern: content icon cross-compatibility with Plone 5.x and 4.x (via plone.app.widgets 1.x); in Plone 5 getIcon returned from brain is a boolean, in Plone 4, it is a string -- use this to show content icons in Plone 5 as previous, but also show image scale in Plone 4, but only for images. This is the most reasonable solution to avoid requesting many broken image scales (404) in Plone 4.
[seanupton]
- Structure pattern refactorings:
- Prevent popovers to be closed when clicking on non-visible elements which still use screen space (those with visibility: hidden or opacity: 0). That in addition to elements, which are not visible at all and do not use screen space (display: none). Prevents upload form in structure pattern to be closed when opening the file selection tool.
- Use thumb scale for image preview in rename dialog and optimize the rename dialog layout.
- Remove ``pat-relateditems`` path selection widget but make sure, the path can still be set via navigation within the structure pattern.
- Add ``css`` action menu item option and always do a pattern scan on action menu items. This allows to set patterns on them, e.g. to open a modal or use tooltips.
- Sort Available Columns dialog entries.
[thet]
- Contentloader pattern: Remotely loaded HTML content is wrapped in a ``div`` element, to allow jQuery to find also the first element.
jQuery starts to search at it's first child element.
[thet]
- TinyMCE: Simplify definition of custom imageScales by passing a JSON string.
[thet]
- Upload pattern: Add option ``allowPathSelection`` to disable the related items path selection.
[thet]
- Upgrade TinyMCE to 4.4.3
[ebrehault]
- Add select2 result class based on value of option so it can be styled
[vangheem]
- Add to interpret TinyMCE ``importcss_selector_filter`` and ``filter`` value
of each ``importcss_groups`` configuration value as RegExp value instead
of plain string to make importcss-plugin more configurable through pattern
[datakurre]
- Add ``defaultSortOn`` option in ``livesearch`` pattern.
[Gagaro]
- Add an option to set the path operator in QueryHelp and relateditem pattern.
[Gagaro]
- Add srcset attribute to image modal
[didrix]
Fixes:
- Change ``bool`` function in mockup-utils to allow for truthy values and match on falsy values.
[thet]
- Fix jquery.event.drag to work with HTML5 drag
[vangheem]
- Move tooltip pattern definition after bootstrapTooltip function definition.
This should fix `bootstrapTooltip is not a constructor errors`.
[vangheem]
- Make ``pat-tooltip`` useable by it's own by including the necessary less files and reuse that one in other patterns.
Allow configuration of ``placement`` parameter.
[thet]
- Update outdated links in Learn.md
[staeff]
- Use github fork of grunt-sed and remove unused task.
[gforcada]
- Fixes issue when HTML escaping select2 values. Now removing HTML completely and leave the input unescaped.
[petschki]
- Fix conflict between upload and relateditem browse button.
[Gagaro]