Upgrade ng2-alfresco-upload, code fixes

This commit is contained in:
Denys Vuika
2016-09-21 14:12:42 +01:00
parent 90646ce910
commit 6104c5d669
15 changed files with 194 additions and 63 deletions

View File

@@ -16,7 +16,10 @@
*/
import { NgModule, ModuleWithProviders } from '@angular/core';
import { HttpModule } from '@angular/http';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { TranslateModule } from 'ng2-translate/ng2-translate';
import { ALFRESCO_CORE_PROVIDERS } from 'ng2-alfresco-core';
import { AlfrescoSearchService } from './src/services/alfresco-search.service';
@@ -44,7 +47,11 @@ export const ALFRESCO_SEARCH_PROVIDERS: [any] = [
@NgModule({
imports: [
CommonModule
CommonModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
TranslateModule
],
declarations: [
...ALFRESCO_SEARCH_DIRECTIVES

View File

@@ -4,9 +4,19 @@
<i mdl-upgrade class="material-icons">search</i>
</label>
<div [class]="getTextFieldHolderClassName()">
<input mdl-upgrade class="mdl-textfield__input" [type]="inputType" [autocomplete]="getAutoComplete()" data-automation-id="search_input"
#searchInput id="searchControl" [ngFormControl]="searchControl" [(ngModel)]="searchTerm" (focus)="onFocus($event)"
(blur)="onBlur($event)" aria-labelledby="searchLabel">
<input mdl-upgrade
class="mdl-textfield__input"
[type]="inputType"
[autocomplete]="getAutoComplete()"
data-automation-id="search_input"
#searchInput
id="searchControl"
ngControl="searchControl"
[(ngModel)]="searchTerm"
name="searchControl"
(focus)="onFocus($event)"
(blur)="onBlur($event)"
aria-labelledby="searchLabel">
<label id="searchLabel" class="mdl-textfield__label" for="searchControl">{{'SEARCH.CONTROL.LABEL' | translate}}</label>
</div>
</div>