From 90b2cee70d1dfa2d95f0a49bcd12cd69b444f7ca Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 20 Sep 2019 07:26:37 +0100 Subject: [PATCH] [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 --- .../datatable/datatable.component.html | 4 +- .../datatable/datatable.component.ts | 14 +--- docs/core/components/data-column.component.md | 12 ++- docs/core/dialogs/edit-json.dialog.md | 32 ++++++++ .../datatable/data-table-component.e2e.ts | 10 --- .../content-column.component.ts | 6 +- .../data/share-datatable-adapter.spec.ts | 8 +- .../document-list/document-list.module.ts | 5 +- lib/core/data-column/data-column.component.ts | 3 + .../datatable/datatable.component.html | 2 +- .../datatable/json-cell.component.spec.ts | 8 +- .../datatable/json-cell.component.ts | 56 ++++++++++---- lib/core/datatable/data/data-column.model.ts | 15 +++- .../datatable/data/object-datacolumn.model.ts | 4 +- lib/core/dialogs/dialog.module.ts | 2 +- .../download-zip.dialog.html | 5 +- .../download-zip.dialog.scss | 2 - .../download-zip.dialog.spec.ts | 6 +- .../{ => download-zip}/download-zip.dialog.ts | 4 +- .../dialogs/edit-json/edit-json.dialog.html | 13 ++++ .../edit-json/edit-json.dialog.module.ts | 45 ++++++++++++ .../dialogs/edit-json/edit-json.dialog.scss | 19 +++++ .../dialogs/edit-json/edit-json.dialog.ts | 52 +++++++++++++ lib/core/dialogs/public-api.ts | 5 +- .../directives/node-download.directive.ts | 2 +- .../display-text/display-text.widget.ts | 2 +- lib/core/form/components/widgets/index.ts | 9 ++- .../components/widgets/json/json.widget.ts | 56 ++++++++++++++ .../services/form-rendering.service.spec.ts | 6 +- .../form/services/form-rendering.service.ts | 73 ++++++------------- lib/core/i18n/en.json | 4 + 31 files changed, 357 insertions(+), 127 deletions(-) create mode 100644 docs/core/dialogs/edit-json.dialog.md rename lib/core/dialogs/{ => download-zip}/download-zip.dialog.html (83%) rename lib/core/dialogs/{ => download-zip}/download-zip.dialog.scss (75%) rename lib/core/dialogs/{ => download-zip}/download-zip.dialog.spec.ts (96%) rename lib/core/dialogs/{ => download-zip}/download-zip.dialog.ts (96%) create mode 100644 lib/core/dialogs/edit-json/edit-json.dialog.html create mode 100644 lib/core/dialogs/edit-json/edit-json.dialog.module.ts create mode 100644 lib/core/dialogs/edit-json/edit-json.dialog.scss create mode 100644 lib/core/dialogs/edit-json/edit-json.dialog.ts create mode 100644 lib/core/form/components/widgets/json/json.widget.ts diff --git a/demo-shell/src/app/components/datatable/datatable.component.html b/demo-shell/src/app/components/datatable/datatable.component.html index 2c0d852471..39f3fa192b 100644 --- a/demo-shell/src/app/components/datatable/datatable.component.html +++ b/demo-shell/src/app/components/datatable/datatable.component.html @@ -19,8 +19,8 @@ [multiselect]="multiselect" [actions]="true" rowStyleClass="custom-row-style" - (showRowActionsMenu)="onShowRowActionsMenu($event)" (executeRowAction)="onExecuteRowAction($event)" - (row-click)="onRowClick($event)" (row-dblclick)="onRowDblClick($event)"> + (showRowActionsMenu)="onShowRowActionsMenu($event)" + (executeRowAction)="onExecuteRowAction($event)">