[ADF-1518] Update material2 beta 10 and angular 4.3.6 (#2304)

* ignore pkg lock

* update pkg json

* date picker update material beta.10

* isDateInstance moment adapter

* style and  datepicker update material2 beta 10

* update test dateitem to beta10

* regenerate style files

* use material icons web font

* fix data range material 2 beta 10

* minors cleaning

* recreate styles

* remove unused componentHandler var

* fix failing test checkbox
This commit is contained in:
Eugenio Romano
2017-09-15 11:39:27 +01:00
committed by Denys Vuika
parent ab9fbda53f
commit 3c1729b960
55 changed files with 4928 additions and 2761 deletions

View File

@@ -15,14 +15,9 @@
* limitations under the License.
*/
import { AfterViewInit, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
import { EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
let componentHandler: any;
/**
* Base widget component.
*/
export class WidgetComponent implements AfterViewInit, OnChanges {
export class WidgetComponent implements OnChanges {
@Input()
field: any;
@@ -52,17 +47,4 @@ export class WidgetComponent implements AfterViewInit, OnChanges {
this.fieldChanged.emit(field);
}
ngAfterViewInit() {
this.setupMaterialComponents(componentHandler);
}
setupMaterialComponents(handler?: any): boolean {
// workaround for MDL issues with dynamic components
if (handler) {
handler.upgradeAllRegistered();
return true;
}
return false;
}
}