SearchKit - Better support for calculated fields as Afform filters
authorColeman Watts <coleman@civicrm.org>
Fri, 2 Sep 2022 14:37:39 +0000 (10:37 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 11 Sep 2022 15:56:41 +0000 (11:56 -0400)
commit725c21311c5537de0114036b32c92850576a7e3e
tree86fc2601da263f4a428ed966ac973326a422490b
parent714c46cf7a37951ba3ba7a7ed3ba20840c6572d5
SearchKit - Better support for calculated fields as Afform filters

Improves support for calculated fields in the Afform Admin UI, allowing them to be
configured more like real fields. This allows e.g. a SUM() aggregate to be made a
"search by range" filter.
Civi/Api4/Service/Spec/SpecFormatter.php
ext/afform/admin/Civi/Api4/Action/Afform/LoadAdminData.php
ext/afform/admin/ang/afGuiEditor/afGuiSearch.component.js
ext/afform/admin/ang/afGuiEditor/afGuiSearch.html
ext/afform/admin/ang/afGuiEditor/elements/afGuiContainer.component.js
ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js
ext/afform/core/Civi/Afform/AfformMetadataInjector.php
ext/afform/mock/ang/testContactEmailSearchForm.aff.html
ext/search_kit/Civi/Search/AfformSearchMetadataInjector.php
ext/search_kit/Civi/Search/Meta.php [new file with mode: 0644]
ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchAfformTest.php