mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
committed by
Denys Vuika
parent
ab9fbda53f
commit
3c1729b960
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user