mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* [ADF-1761] refactoring search * [ADF-1761] added click exit strategy and selection for list items * [ADF-1761] removed old search component replaced with the new implementation * [ADF-1761] removed old component and replaced with the refactored version * [ADF-1761] added the new tests for search control component * [ADF-1761] added test for refactored search component * [ADF-1761] fixed minor twitch start styling the list * [ADF-1761] fixed test * [ADF-1761] removed unused import * [ADF-1761] added search integrations with files component * [ADF-1761] rebased branch on lates development * [ADF-1761] added blur management for search * [ADF-1761] fixed wrong behaviour on blur * [ADF - 1761] fixed responsiveness on smaller resolution * [ADF-1761] reduced font and added white line * [ADF-1761] fixed some blur behaviour * [ADF-1761] added some fix for on blur behaviour * [ADF-1761] fixed some behaviour on blur * [ADF-1761] fix for angular 5 * [ADF-1761] changed name from search integration to search result into demoshell * [ADF-1761] fixed wrong change name * [ADF-1761] added documentation for search control component * [ADF-1761] added documentation for search component * [ADF-1761] fixed wrong link into documentation * [ADF-1761] fixed image for simple example * [ADF-1761] added some improvements and removed duplicated code * [ADF-1761] renamed directive to searchAutocomplete * [ADF-1761] added some changes after Peer review
70 lines
2.3 KiB
TypeScript
70 lines
2.3 KiB
TypeScript
/*!
|
|
* @license
|
|
* Copyright 2016 Alfresco Software, Ltd.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
import { NgModule } from '@angular/core';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { MatInputModule, MatListModule } from '@angular/material';
|
|
import { CoreModule, SearchService, TRANSLATION_PROVIDER } from 'ng2-alfresco-core';
|
|
import { SearchControlComponent } from './src/components/search-control.component';
|
|
import { SearchTriggerDirective } from './src/components/search-trigger.directive';
|
|
import { SearchComponent } from './src/components/search.component';
|
|
|
|
// services
|
|
export { SearchOptions, SearchService } from 'ng2-alfresco-core';
|
|
export * from './src/components/search.component';
|
|
export * from './src/components/search-control.component';
|
|
export { SearchComponent as AlfrescoSearchComponent } from './src/components/search.component';
|
|
export { SearchControlComponent as AlfrescoSearchControlComponent } from './src/components/search-control.component';
|
|
|
|
export const ALFRESCO_SEARCH_DIRECTIVES: [any] = [
|
|
SearchComponent,
|
|
SearchControlComponent,
|
|
SearchTriggerDirective
|
|
];
|
|
|
|
export const ALFRESCO_SEARCH_PROVIDERS: [any] = [
|
|
SearchService
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CoreModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
MatListModule,
|
|
MatInputModule
|
|
],
|
|
declarations: [
|
|
...ALFRESCO_SEARCH_DIRECTIVES
|
|
],
|
|
providers: [
|
|
...ALFRESCO_SEARCH_PROVIDERS,
|
|
{
|
|
provide: TRANSLATION_PROVIDER,
|
|
multi: true,
|
|
useValue: {
|
|
name: 'ng2-alfresco-search',
|
|
source: 'assets/ng2-alfresco-search'
|
|
}
|
|
}
|
|
],
|
|
exports: [
|
|
...ALFRESCO_SEARCH_DIRECTIVES
|
|
]
|
|
})
|
|
export class SearchModule {}
|