/** * A search field section (e.g. .field-section) is identified by: * - sf-search-field-group[group-id=(relative | event | relation | type)] * A search field section is included (using CSS visibility) in the form if (see _isGroupShown): * - there is no collectionSearchFields and the default config does not exclude the field group section * - there is no group-id (indicating this is a subgroup) * - if there is a config that specifies the section then that setting is obeyed * - if the collectionSearchFields.searchFields includes any of the sf-search-field-group.fieldList entries * * A search field group, its trigger and its closer are all identified by the triggerId * - .trigger[for=triggerId] (always visible in horizontal mode but toggles with .closer in vertical mode) * - .closer[for=triggerId] (in vertical mode only - not used in horizontal mode) * - fs-search-field-group[trigger-id=triggerId] * A search field group, its trigger and its closer are included in the form if: * - there are no collectionSearchFields AND the triggerId is enabled by default * - there are collectionSearchFields AND the triggerId is requested in the searchFields * The fs-search-field-group should be visible if: * - there is no triggerId specified * - the triggerId is in the defaultOpenTriggerIds * - the search fields have content in them from the previous search (NOT YET IMPLEMENTED) */