Bug fixes:
- fix the DictRowConverter when the field schema changes fields and no value for the new column field is available yet. [petschki] (#0)
- For the JSON deserializer, skip empty values from non-required fields. This fixes a problem where empty non-required fields would break deserialization. [thet] (#184)
- Fix bug in vocabulary lookup on ++add++ forms. Override IFieldPermissionChecker the same as for IDexterityContent. [petschki] (#187)
- Add missing plone.autoform exportimport handler. [petschki] (#188)
- Changed the registry.xml to use "plone.base.interfaces.resources.IBundleRegistry" instead of "Products.CMFPlone.interfaces.IBundleRegistry" [cihanandac] (#193)
- Upgrade JS resources. [petschki] (#193)
- Fix bug when pattern class is not the first one, after adding a new row. [frapell] (#198)
Internal:
- configure with plone/meta. [petschki] (#0)
- Update JS Resources. [petschki]
- fix readonly fields in DictRowConverter.toFieldValue. [petschki]
- Remove obsolete GridDataConverter and use default z3c.form.converter.MultiConverter. This now calls the DictRowConverter and translates all columns to their correct widget/field value. [petschki]
- Add JSON deserializer for plone.restapi. [petschki]
- Latest mockup and mf_config updates. [petschki]
- Fix data converters when the row schema is set via autoform hints. [petschki]
- Customizable input widget table css class. [petschki]
- Upgrade to Plone 6 only, with newest z3c.form and module federation. [petschki]
- Scan and init row ui after inserting the row into the DOM tree. Should prevent JS initialization errors. [thet]
- When creating rows clone the row without any attached event handlers. [thet]
- Set auto-append UI state only for auto-append mode. [thet]
- Merge member-only JavaScript with logged-in bundle, not default bundle. [thet]
- Remove unused
init_field.js
script. [thet] - Use latest config for Github Actions and tox. Add Plone 6 related ci and tox config. [thomasmassmann]
Register new pat-datagridfield bundle.
Breaking change: The JavaScript resources have changed a lot. Please run the provided upgrade steps!
If you were customizing templates which loaded these JavaScript resources or customized the JavaScript functionality itself, take special care. The bundle is loaded only for logged-in users.
Rework JavaScript as a Pattern for better initialization.
Row UI buttons optimizations Change row UI elements from anchor to buttons for better semantics. Fix Bootstrap classes, remove unused attributes, add a title to buttons. [thet]
Change UI element classes
Remove non-unique id attributes from UI buttons and add classes instead. Let the button functionality be initialized by the pattern.
- Breaking change:
In this version a pattern handles all the JavaScript functionality to ensure best possible encapsulation between different instances of the datagridfield widget. If you have customized templates, make sure you do the following:
- Add the class
pat-datagridfield
to thedatagridwidget-table-view
nodes (datagridfield_input.pt, datagridfield_input_block.pt). - Add the following classes instead of ids to the ui buttons as shown in this map (datagridfieldobject_input.pt, datagridfieldobject_input_block.pt):
- #btn-addrow -> .dgf--row-add
- #btn-deleterow -> .dgf--row-delete
- #btn-moveup -> .dgf--row-moveup
- #btn-movedown -> .dgf--row-movedown
- Add the class
[thet]
Use pat-datagridfield in templates. [thet]
Remove extra parameter for datagridfield widget as it was unused and untested. [thet]
Clean up upgrade profile definitions and align to Plone standards. [thet]
Use Github actions instead Travis CI. [thet]
Test setup using bobtemplate.plone config. [thet]
Code formatting - black, zpretty, prettier. [thet]
Import with module name. [ksuess]
Register translations in locales directory. [erral]
Add es and eu translations. [erral]
Accessibility fixes. [erral]
- Bug fix for multiple datagridfields per form. Multiple lines were auto added when more than one datagrid was present. Fixes issue 96. [maurits]
- Fix "Unknown directive widgetTemplate" [agitator]
- Bug fix: auto appending row. [ksuess]
- Add missing upgrade profile to_2 [agitator]
- Add support for Python 3 and Plone 5.2. [pbauer, agitator]
- Drop support for Plone 4. [pbauer]
- Use Ressource-Registry (Pat-Registry), Update JS/CSS, Add Uninstall [2silver]
- use Plone5 glyphicons instead of images [2silver]
- Added missing upgrade step, calling browserlayer setup. [sgeulette]
- Display column description if provided in schema field.description. [gbastien, bleybaert]
- Specify in README.rst that versions >= 1.4 are for Plone 5+ and versions < 1.4 are for Plone 4. [gbastien]
- Usability change: add an (hidden) label inside the add commands [keul]
- Compatibility with Plone 5 modals/overlay from mockup [keul]
- Extend uninstall profile. [thet]
- Wrapped commands inside
A
tags, required for accessibility reason (change backported from Products.DataGridField). This also simplify customizing icons with pure CSS. [keul] - Replaced minus icon with a more usable delete icon. [keul]
- Removed ols-school
*
chars for marking fields as required. [keul] - Fix object access [tomgross]
- Fix usage of related items widget in subforms plone/Products.CMFPlone#2446 [tomgross]
- Set widget mode on cell widget in order to support autoform mode directive. [jone]
- Bugfix: do not try to update readonly fields. [jone]
- Cleanup: utf8 headers, isort, code-style. [jensens]
- Remove dependency on plone.directives.form in setup.py, it was not used any longer. [jensens]
- Feature/Fix: Support widgets using patternslib in a DictRow. [jensens]
- Fix: #36 remove grok from all documentation since grok is no longer supported. [jensens]
- Copy relevant parts of ObjectSubform from z3c.form 3.2.10 over here, it was removed in later versions. [jensens]
- Add Browserlayer and use it, also add uninstall step. [jensens]
- Move Demo package to in here. [jensens]
- Fix validation exception on readonly fields. [rodfersou]
- Fix bug for widget.klass is NonType in the block view when defining the class for the field.
- Allow deletion of last row in non-auto-append mode. [gaudenz]
- fixed binding for IChoice fields during validation [djay]
- plone 5 compatibility and fixed travis testing for plone 5 [djay]
- Removed JS code that relies on firefox being used. [neilferreira]
- Stopped referencing the 'event' element when creating a new row as the event that triggered the content of an input changing may have been from another element. [neilferreira]
- Add 'form-widgets-field_id' as widget css id (consistency with other widgets). [thomasdesvenain]
- Fix package dependencies. [hvelarde]
- Use BlockDataGridFieldObject for rows in a BlockDataGridField. [gaudenz]
- Filter out any auto append or template rows in updateWidgets. [gaudenz]
- Add row parameter to aftermoverow JS event [gaudenz]
- Don't reset class attribute on cloned template rows [gaudenz]
- Replace row index in all template row elements, not just input elements. Replace the index in id, name, for, href and data-fieldname attributes when cloning the template row. [gaudenz]
- Added possibility to define the CSS class for the main table when the field is displayed. This way, you can use common Plone existing classes (like 'listing'). [gbastien]
- Fixed auto-append bug when there is more than one datagrid field in page auto-appending one field binds "change.dgf" to another field also. added "$(dgf).find(.." in datagridfield.js line 138 so it binds to right element only. [tareqalam]
- Only abort moveRow if the row is really not found and not if the row idx just happens to be 0. [gaudenz]
- Also update hidden data rows when reindexing in row mode. This fix was previously somehow only done for block mode. [gaudenz]
- Relax requirements for markup, don't assume inputs are direct children of table cells. This makes using custom templates much easier. [gaudenz]
- Fix validate function signature for IValidator API. The API requires a "force" argument. [gaudenz]
- Register the SubformAdapter for IPloneForm layer to avoid that the Adapter from plone.app.z3cform takes precedence. [gaudenz]
- Align travis setup to other packages. [saily]
- Add new V1
bootstrap.py
. [saily] - Added CSS classes to tbody rows (
row-(1...n)
) and thead columns (cell-(1...m)
) to allow more styling in edit forms. [saily] - Fixed wrong template in display mode when set editing to block edit mode [miohtama]
- Added CSS classes (widget.klass attribute) for DataGridField, to separate it from other MultiWidgets [miohtama]
- Add travis-ci configs [jaroel]
- Convert tests to plone.app.testing [jaroel]
- Fix to expect
zope.schema.interfaces.ValidationError
to work better with TooLong and TooShort exceptions. [datakurre] - Fix IE7 failing on <label> for manipulation [miohtama]
- Deal with situations where there is zero rows on DGF and no auto-append row available [miohtama]
- Correctly bind DGF events on DOM content loaded, not when Javascript is parsed [miohtama]
- Don't display movement handles if the row cannot be moved [miohtama]
- Changed move up and down handlers to stay in fixed positions to make cells stay in the same width regardless of moving [miohtama]
- Fixed checkbox saving, was broken by nested DGF support [miohtama]
- Added block edit mode [miohtama]
- "use strict;" and ECMAScript 5 compatible Javascript clean-up [miohtama]
- Added afterrowmoved JS event [miohtama]
- Updated empty row selection. [jstegle]
- Nested DataGridField support (yo dawg...) [miohtama]
- Support plone.autoform and grok'ed row schemas [miohtama]
- Added
DataGridField.extra
parameter, so you can pass out application specific data to Javascript [miohtama]
- be able to use with plone.app.registry [vangheem]
- Fix bug with moving the last row up. [m-martinez]
- Clone events when adding new row - fixes bug where browse button of plone.formwidget.contenttree did nothing for new rows [anthonygerrard]
- Reindex more indexed attributes of cloned row [anthonygerrard]
- Avoid using the "row" CSS class. [davisagli]
- Fixes to work with jQuery 1.3.x (use .remove() instead of .detach(), fetch data attributes a different way, and avoid live binding the change event). [davisagli]
- Don't error out when getting a
FormatterValidationError
, pass it on to z3c.form instead. [claytron] - Give manipulator images a relative src rather than absolute. This previously meant the widget didn't work on sites without Plone/Zope at the root of the domain. [davidjb]
- During auto-insert, add our new row into the document first, before reindexing it and changing its elements' IDs. This allows Javascript that depends on these IDs (such as plone.formwidget.autocomplete) to pick up the correct fields. [davidjb]
- Tidying up and reducing complexity of auto-insert functionality [davidjb]
- Removing unnecessary auto-insert bind and unbind as this is already covered by jQuery's live() function against the auto-append class. Adding/removing this class against rows automatically does this. [davidjb]
- Resolved issue with auto-insert functionality not working by removing table-specific check in Javascript. [davidjb]
- Changed markup/javascript to prevent duplicate HTML id attributes. Changed Javascript to allow for datagrid page templates that don't use tables. [dextermilo]
- Improve spacing in CSS. [davisagli]
- Revert my fix to ensure that blank rows are added, because it duplicated a fix in z3c.form resulting in extra rows. [davisagli]
- Search for datagridInitialise and datagridUpdateWidgets on the parent form, also when in a fieldset. [maurits]
- Register templates on plone.app.z3cform.interfaces.IPloneFormLayer to take precedence over that packages list widget templates. [elro]
- Make sure that updateWidgets is called to add blank rows even if the widget has no value. [davisagli]
- When extracting a row value fails due to a validation error, convert widget values to field values so the value can be successfully applied to the grid widget. [davisagli]
- Register a plone.supermodel handler for the DictRow so it can be used in supermodel models. [davisagli]
- Depend on collective.z3cform.datagridfield_demo as a test extra; use the browser view from this package in the tests. [maurits]
- _validate still used when import/exporting, fix up code so it works [lentinj]
- Add a DictRow serializer for transmogrify.dexterity [lentinj]
- Only use width:100% on input cells that are the only element in the cell [lentinj]
- Reorder row indices backwards when adding rows. This means that adjacent rows don't share the same index temporarily, for example:- - Row 1 and 2 contain input:radio based widgets - Row 0 added, row renumbering starts - Row 1 widgets renamed 2 - Both sets of input:radio share the same name, one deselected - Row 2 widgets renamed 3 - . . . [lentinj]
- Use jQuery to clone rows, and clone the jQuery events on the rows. [lentinj]
- Implemented reorder functionality
- Put in the DictRow class (tks Martin Aspeli)
- Moved the demo code out to a separate package collective.z3cform.datagridfield_demo (tks Laurence Rowe).
- Removed superfluous lines from setup.py (tks Laurence Rowe).
- Removed unnecessary dependency on dexterity (tks Laurence Rowe).
- Removed unnecessary dependency on grok (tks Laurence Rowe).
- Renamed the demo pages. The starting point is now @@demo-collective.z3cform.datagrid .
- The widget can now be configured via the updateWidgets method. It is no longer necessary to create a custom factory.
- The columns can now be omitted.
- Provide a set of demo views for Object access.
- The auto-append functionality did not bind correctly for popup forms. I switched to using jQuery.live() instead of binding at document load time.
- Added a menu to the demo pages
- Added a display only form option.
- Fixed the restructured text of the main README.txt so that it will show more friendly in PyPI.