Releases: locomotivemtl/charcoal-attachment
Releases · locomotivemtl/charcoal-attachment
charcoal-attachment 0.11.0
Complete commits list: 0.10.7...0.11.0
Breaking (BC)
⚠️ This WILL break any PHP widget that customizesAttachmentWidget#widgetOptions()
.
- Changed method
AttachmentWidget#widgetOptions()
to return an array instead of a JSON serialized string to allow for easier overriding in subclasses. - Added methods
widgetOptionsAsJson()
andescapedWidgetOptionsAsJson()
toAttachmentWidget
for rendering widget options as JSON. - Added method
AttachmentWidget#widgetDataForJs()
to replace hardcoded widget data options in view file.
Summary
- Added
widgetL10n
localizations toattachment.js
. - Stringified the widget's title in
AttachmentWidget#widgetOptions()
. - Removed
.u-truncate
CSS class from Accordion preview because it often causes the edit button to slide beyond reach.
charcoal-attachment 0.10.7
Complete commits list: 0.10.6...0.10.7
Summary
- Added support for custom Attachment Widget type.
- Removed Attachment Widget from the
AttachmentAwareTrait
and change default behaviour forisActive
at the right locations.
charcoal-attachment 0.10.6
Complete commits list: 0.10.5...0.10.6
Summary
- Added non-storable
type_label
property on Attachment model to display a human-readable attachment type. - Added non-storable
file_or_link
andfile_and_link
properties on Attachment model to display a the attached file(s) and/or link(s) in a single column. - Added link display type to
file
andlink
properties of Attachment model. - Removed
objId
from default widget data in Attachment Form Group widget to prevent an error from theObjectContainerTrait
. - Fixed double form header in Attachment edit view.
- Fixed stretched gallery thumbnails.
- Fixed typo in gallery HTML attributes.
charcoal-attachment 0.10.5
Complete commits list: 0.10.4...0.10.5
Summary
- Changed
AttachmentFormGroup
to now extendAbstractFormGroup
and embedAttachmentWidget
viaNestedWidgetContainer
mixin. - Added support for Container Attachments to delete their children.
- Changed controllers and behaviours to properly clean up the database after Attachment model deletion.
- Disabled validation of
file
property in Attachment model. - Fixed
quickFormIdent
not being assigned depending on if option name iscamelCase
orsnake_case
.
charcoal-attachment 0.10.4
Complete commits list: 0.10.3.1...0.10.4
Summary:
- Attachments are now deleted when
RemoveJoinAction
is called - Added
deleteAttachments()
method toAttachmentAwareTrait
charcoal-attachment 0.10.2
Complete commits list: 0.10.1.4...0.10.2
Summary:
- Replaced
$GLOBALS['widget_template']
with dynamic templating
charcoal-attachment 0.10.1
Complete commits list: 0.10.0.2...0.10.1
Summary:
- Updated locomotivemtl/charcoal-core dependency
- Fixed
objType()
method signature
Charcoal-attachment 0.10.0
Key Features
Fix conflicts between attachment's getter/setter and the attachment loader function
BC Breaks
- Refactored method "attachments" to "getAttachments" to prevent conflicts when using the getter/setter combined with the loader.
What's new in 0.10.0?
Changed
- Refactored method "attachments" to "getAttachments" to prevent conflicts when using the getter/setter combined with the loader.
charcoal-attachment 0.9.0
Applying Charcoal Redux styles
charcoal-attachment 0.8
Highlights:
- Updated for locomotivemtl/charcoal-config:0.8