[ADF-4894] Json editor dialog (#5082)

* move download-zip to its own folder

* json dialog

* update docs

* update test

* disable e2e test

* json widget for the Form

* remove deprecated test

* fix tests, update display text name
This commit is contained in:
Denys Vuika
2019-09-20 07:26:37 +01:00
committed by GitHub
parent c15807a013
commit 90b2cee70d
31 changed files with 357 additions and 127 deletions

View File

@@ -16,7 +16,7 @@
*/
import { Component, Input } from '@angular/core';
import { LogService, DataColumn, DataRow } from '@alfresco/adf-core';
import { DataColumn, DataRow } from '@alfresco/adf-core';
import { DataCellEvent, DataRowActionEvent, DataSorting, ObjectDataColumn, ObjectDataRow, ObjectDataTableAdapter } from '@alfresco/adf-core';
export class FilteredDataAdapter extends ObjectDataTableAdapter {
@@ -71,7 +71,7 @@ export class DataTableComponent {
email: 'admin@alfresco.com'
};
constructor(private logService: LogService) {
constructor() {
this.reset();
}
@@ -209,19 +209,9 @@ export class DataTableComponent {
onExecuteRowAction(event: DataRowActionEvent) {
const args = event.value;
this.logService.log(args.row);
this.logService.log(args.action);
window.alert(`My custom action: ${args.action.title}`);
}
onRowClick(event) {
this.logService.log(event);
}
onRowDblClick(event) {
this.logService.log(event);
}
toggleStickyHeader() {
this.stickyHeader = !this.stickyHeader;
}