Skip to content

Releases: locomotivemtl/charcoal-attachment

charcoal-attachment 0.11.0

14 Jul 16:46
Compare
Choose a tag to compare

Complete commits list: 0.10.7...0.11.0

Breaking (BC)

⚠️ This WILL break any PHP widget that customizes AttachmentWidget#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() and escapedWidgetOptionsAsJson() to AttachmentWidget for rendering widget options as JSON.
  • Added method AttachmentWidget#widgetDataForJs() to replace hardcoded widget data options in view file.

Summary

  • Added widgetL10n localizations to attachment.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

14 Jul 16:42
Compare
Choose a tag to compare

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 for isActive at the right locations.

charcoal-attachment 0.10.6

14 Jul 16:41
Compare
Choose a tag to compare

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 and file_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 and link properties of Attachment model.
  • Removed objId from default widget data in Attachment Form Group widget to prevent an error from the ObjectContainerTrait.
  • Fixed double form header in Attachment edit view.
  • Fixed stretched gallery thumbnails.
  • Fixed typo in gallery HTML attributes.

charcoal-attachment 0.10.5

14 Jul 16:36
Compare
Choose a tag to compare

Complete commits list: 0.10.4...0.10.5

Summary

  • Changed AttachmentFormGroup to now extend AbstractFormGroup and embed AttachmentWidget via NestedWidgetContainer 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 is camelCase or snake_case.

charcoal-attachment 0.10.4

18 Mar 15:43
Compare
Choose a tag to compare

Complete commits list: 0.10.3.1...0.10.4

Summary:

  • Attachments are now deleted when RemoveJoinAction is called
  • Added deleteAttachments() method to AttachmentAwareTrait

charcoal-attachment 0.10.2

02 Mar 23:12
006dab1
Compare
Choose a tag to compare

Complete commits list: 0.10.1.4...0.10.2

Summary:

  • Replaced $GLOBALS['widget_template'] with dynamic templating

charcoal-attachment 0.10.1

02 Mar 23:12
Compare
Choose a tag to compare

Complete commits list: 0.10.0.2...0.10.1

Summary:

Charcoal-attachment 0.10.0

11 Sep 14:19
Compare
Choose a tag to compare

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

02 May 15:04
Compare
Choose a tag to compare

Applying Charcoal Redux styles

charcoal-attachment 0.8

20 Nov 18:49
Compare
Choose a tag to compare