Version 5.1.0

October 28, 2024

Added

  • Added a collection function to the field that will return a recursive laravel collection for easier use in twig templates and to do manipulations.

Version 5.0.3

September 23, 2024

Fixed

  • Undefined Array Key 0 Error in Craft 5.36 Colour Swatches 5.0.2 #133
  • Error occurs when entering colors directly in the CMS field #127

Version 5.0.2

March 8, 2024

Fixed

  • Fixed the default fetch if the default isn't the first one in the config list

Version 5.0.1

April 15, 2024

Fixed

  • Fixed the bug when default color isn't the first in array #124

Version 5.0.0

March 2, 2024

Added

Version 4.5.0

March 2, 2024

Changed

  • Changed code according to PHPStan advise (prep for Craft 5)

Version 4.4.0

March 2, 2024

Fixed

  • [Docs] Incorrect plugin name used in installation step #115
  • Default swatch value returns as null #109
  • Class Not found exception: percipioglobal\colourswatches\fields\ColourSwatches while creating new field. #112
  • Syntax error when switching from Dropdown field type #111

Version 4.3.0

March 9, 2023

Added

  • Randomly pick a set of colors from the color-swatches.php setup #84

Version 4.2.1

July 8, 2022

Fixed

  • Fixed Element list in control panel - color preview is not displaying corretly if selected option has more than one color #101

Version 4.2.0.1

July 8, 2022

Fixed

  • Fixed an issue where GQL would throw an error if it's a single color

Added

  • Added GraphQL support

Fixed

  • Fixed missing type for getInputHtml $value

Version 4.2.0

July 8, 2022

Added

  • Added GraphQL support

Fixed

  • Fixed missing type for getInputHtml $value

Changed

  • Provided a first level class property to set custom css classes

Version 4.1.0

June 2, 2022

Changed

  • Provided a first level class property to set custom css classes

Version 4.0.5

May 23, 2022

Fixed

  • Fixed the migration to update the namespace

Version 4.0.4

May 12, 2022

Fixed

  • Fixed an issue where Plugin wasn't renamed to ColorSwatches in ColourSwatches field

Version 4.0.3

May 11, 2022

Fixed

  • Fixed an issue where the table attributes could throw a server error when the color was an array

Version 4.0.2

May 11, 2022

Fixed

  • Fixed an issue where the field would save even if it was required
  • Fixed a few missing types

Version 4.0.1

May 6, 2022

Fixed

  • Fixed an issue where $value was not allowed to be null

Version 4.0.0

May 3, 2022

Changed

  • Official Craft 4 release

Version 4.0.0-RC2

May 3, 2022

Added

  • Provided a migration to update the namespace from percipioglobal to percipiolondon

Version 4.0.0-RC1

May 2, 2022

Changed

  • Create release candidate of 4.0.0-beta.2

Version 4.0.0-beta.2

May 2, 2022

Added

  • Updated PHPDocs

Fixed

  • Fixed the editableTable config

Version 4.0.0-beta.1

April 20, 2022

Added

  • Craft CMS 4 compatibility
  • PHPStan Level 5
  • Updated PHPDocs
  • Updated Types

Removed

  • Removed unused element class