Bridge search displays and afforms
authorColeman Watts <coleman@civicrm.org>
Tue, 19 Jan 2021 16:03:48 +0000 (11:03 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 19 Jan 2021 17:23:28 +0000 (12:23 -0500)
commita92d81a18444cc817399df7381e5488c9d0c069f
tree7f88039a852a8f034a16bf3afa22d37266792a68
parent7f9236da98ac79d9d41f74ccb990b4b60499a164
Bridge search displays and afforms

This allows an afform af-fieldset to function without a containing af-form or reference to af-entity
Instead it can directly contain an api-entities tag to assist filling field metadata.
The search extension then adds that tag based on the search parameters.
This also eliminates the need to pass in filters to the search display directly (though it still supports that),
as it will infer them from the presence of an af-fieldset.
ext/afform/core/Civi/Afform/AfformMetadataInjector.php [new file with mode: 0644]
ext/afform/core/afform.php
ext/afform/core/ang/af/afFieldset.directive.js
ext/search/Civi/Search/AfformSearchMetadataInjector.php [new file with mode: 0644]
ext/search/ang/crmSearchDisplay.module.js
ext/search/ang/crmSearchDisplayList/crmSearchDisplayList.component.js
ext/search/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js
ext/search/search.php