[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

@@ -17,10 +17,8 @@
/* tslint:disable:component-selector no-input-rename */
import { DataColumn } from '@alfresco/adf-core';
import { LogService } from '@alfresco/adf-core';
import { DataColumn, DataColumnType, LogService } from '@alfresco/adf-core';
import { AfterContentInit, Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
import { ContentColumnListComponent } from './content-column-list.component';
@Component({
@@ -33,7 +31,7 @@ export class ContentColumnComponent implements OnInit, AfterContentInit, DataCol
key: string;
@Input()
type: string = 'text';
type: DataColumnType = 'text';
@Input()
format: string;

View File

@@ -190,7 +190,7 @@ describe('ShareDataTableAdapter', () => {
const col = <DataColumn> {
key: 'createdAt',
type: 'string'
type: 'text'
};
const row = new ShareDataRow(file, contentService, null);
@@ -265,7 +265,7 @@ describe('ShareDataTableAdapter', () => {
const adapter = new ShareDataTableAdapter(thumbnailService, contentService, null);
const row = new ShareDataRow(new SmartFolderNode(), contentService, null);
const col = <DataColumn> { type: 'folder', key: '$thumbnail' };
const col = <DataColumn> { type: 'text', key: '$thumbnail' };
const value = adapter.getValue(row, col);
expect(value).toContain(`assets/images/ft_ic_smart_folder`);
@@ -278,7 +278,7 @@ describe('ShareDataTableAdapter', () => {
const adapter = new ShareDataTableAdapter(thumbnailService, contentService, null);
const row = new ShareDataRow(new LinkFolderNode(), contentService, null);
const col = <DataColumn> { type: 'folder', key: '$thumbnail' };
const col = <DataColumn> { type: 'text', key: '$thumbnail' };
const value = adapter.getValue(row, col);
expect(value).toContain(`assets/images/ft_ic_folder_shortcut_link`);
@@ -291,7 +291,7 @@ describe('ShareDataTableAdapter', () => {
const adapter = new ShareDataTableAdapter(thumbnailService, contentService, null);
const row = new ShareDataRow(new RuleFolderNode(), contentService, null);
const col = <DataColumn> { type: 'folder', key: '$thumbnail' };
const col = <DataColumn> { type: 'text', key: '$thumbnail' };
const value = adapter.getValue(row, col);
expect(value).toContain(`assets/images/ft_ic_folder_rule`);

View File

@@ -18,7 +18,7 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { CoreModule } from '@alfresco/adf-core';
import { CoreModule, EditJsonDialogModule } from '@alfresco/adf-core';
import { MaterialModule } from '../material.module';
import { UploadModule } from '../upload/upload.module';
@@ -41,7 +41,8 @@ import { NameColumnComponent } from './components/name-column/name-column.compon
CommonModule,
FlexLayoutModule,
MaterialModule,
UploadModule
UploadModule,
EditJsonDialogModule
],
declarations: [
DocumentListComponent,