SearchKit - Move field formatting from client-side to server-side
authorColeman Watts <coleman@civicrm.org>
Mon, 30 Aug 2021 15:39:02 +0000 (11:39 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 30 Aug 2021 19:13:54 +0000 (15:13 -0400)
commit1fd2aa717ac8737191e9165a725e77305fdd7d44
tree41b5517981f059a5a64295f8aa4218e402bcec49
parente405006c358be3d9d8d0cde2ba83b5d446482071
SearchKit - Move field formatting from client-side to server-side

Formattig field values server-side allows the view values to be reused in exports.
It also opens the door for more complex formatting to happen on the server, if needed.
13 files changed:
Civi/Api4/Query/SqlExpression.php
Civi/Api4/Query/SqlFunction.php
Civi/Api4/Query/SqlFunctionLOWER.php
Civi/Api4/Query/SqlFunctionUPPER.php
Civi/Api4/Query/SqlNumber.php
Civi/Api4/Query/SqlString.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php
ext/search_kit/ang/crmSearchDisplay/colType/field.html
ext/search_kit/ang/crmSearchDisplay/crmSearchDisplayEditable.component.js
ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js
ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js
ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchRunTest.php