Initial support for configurable columns

refs #51
This commit is contained in:
Denys Vuika
2016-05-03 17:01:05 +01:00
parent 40050411a9
commit 0b1b87063c
22 changed files with 375 additions and 10 deletions

View File

@@ -35,6 +35,10 @@
[navigate]="navigation"
folder-icon=""
(itemClick)="onItemClick($event)">
<content-columns>
<content-column title="Created By" source="createdBy"></content-column>
<content-column title="Created On" source="createdOn"></content-column>
</content-columns>
<quick-folder-actions>
<quick-folder-action icon="delete" title="Delete" handler="system1"></quick-folder-action>
</quick-folder-actions>

View File

@@ -7,6 +7,8 @@ import { FolderAction } from './src/components/folder-action';
import { FolderActionList } from './src/components/folder-action-list';
import { QuickFolderAction } from './src/components/quick-folder-action';
import { QuickFolderActionList } from './src/components/quick-folder-action-list';
import { ContentColumn } from './src/components/content-column';
import { ContentColumnList } from './src/components/content-column-list';
import { FolderActionsService } from './src/services/folder-actions.service';
import { DocumentActionsService } from './src/services/document-actions.service';
import { AlfrescoService } from './src/services/alfresco.service';
@@ -19,11 +21,13 @@ export * from './src/components/folder-action';
export * from './src/components/folder-action-list';
export * from './src/components/quick-folder-action';
export * from './src/components/quick-folder-action-list';
export * from './src/components/content-column';
export * from './src/components/content-column-list';
export * from './src/services/folder-actions.service';
export * from './src/services/document-actions.service';
export * from './src/services/alfresco.service';
declare var _default: {
directives: (typeof DocumentList | typeof DocumentAction | typeof DocumentActionList | typeof QuickDocumentAction | typeof QuickDocumentActionList | typeof FolderAction | typeof FolderActionList | typeof QuickFolderAction | typeof QuickFolderActionList)[];
directives: (typeof DocumentList | typeof DocumentAction | typeof DocumentActionList | typeof QuickDocumentAction | typeof QuickDocumentActionList | typeof FolderAction | typeof FolderActionList | typeof QuickFolderAction | typeof QuickFolderActionList | typeof ContentColumn | typeof ContentColumnList)[];
providers: (typeof AlfrescoService | typeof FolderActionsService | typeof DocumentActionsService)[];
};
export default _default;

View File

@@ -1,7 +1,7 @@
System.register(['./src/components/document-list', './src/components/document-action', './src/components/document-action-list', './src/components/quick-document-action', './src/components/quick-document-action-list', './src/components/folder-action', './src/components/folder-action-list', './src/components/quick-folder-action', './src/components/quick-folder-action-list', './src/services/folder-actions.service', './src/services/document-actions.service', './src/services/alfresco.service'], function(exports_1, context_1) {
System.register(['./src/components/document-list', './src/components/document-action', './src/components/document-action-list', './src/components/quick-document-action', './src/components/quick-document-action-list', './src/components/folder-action', './src/components/folder-action-list', './src/components/quick-folder-action', './src/components/quick-folder-action-list', './src/components/content-column', './src/components/content-column-list', './src/services/folder-actions.service', './src/services/document-actions.service', './src/services/alfresco.service'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var document_list_1, document_action_1, document_action_list_1, quick_document_action_1, quick_document_action_list_1, folder_action_1, folder_action_list_1, quick_folder_action_1, quick_folder_action_list_1, folder_actions_service_1, document_actions_service_1, alfresco_service_1;
var document_list_1, document_action_1, document_action_list_1, quick_document_action_1, quick_document_action_list_1, folder_action_1, folder_action_list_1, quick_folder_action_1, quick_folder_action_list_1, content_column_1, content_column_list_1, folder_actions_service_1, document_actions_service_1, alfresco_service_1;
var DOCUMENT_LIST_DIRECTIVES, DOCUMENT_LIST_PROVIDERS;
var exportedNames_1 = {
'DOCUMENT_LIST_DIRECTIVES': true,
@@ -52,6 +52,14 @@ System.register(['./src/components/document-list', './src/components/document-ac
quick_folder_action_list_1 = quick_folder_action_list_1_1;
exportStar_1(quick_folder_action_list_1_1);
},
function (content_column_1_1) {
content_column_1 = content_column_1_1;
exportStar_1(content_column_1_1);
},
function (content_column_list_1_1) {
content_column_list_1 = content_column_list_1_1;
exportStar_1(content_column_list_1_1);
},
function (folder_actions_service_1_1) {
folder_actions_service_1 = folder_actions_service_1_1;
exportStar_1(folder_actions_service_1_1);
@@ -75,7 +83,9 @@ System.register(['./src/components/document-list', './src/components/document-ac
folder_action_1.FolderAction,
folder_action_list_1.FolderActionList,
quick_folder_action_1.QuickFolderAction,
quick_folder_action_list_1.QuickFolderActionList
quick_folder_action_list_1.QuickFolderActionList,
content_column_1.ContentColumn,
content_column_list_1.ContentColumnList
],
providers: [
alfresco_service_1.AlfrescoService,
@@ -92,7 +102,9 @@ System.register(['./src/components/document-list', './src/components/document-ac
folder_action_1.FolderAction,
folder_action_list_1.FolderActionList,
quick_folder_action_1.QuickFolderAction,
quick_folder_action_list_1.QuickFolderActionList
quick_folder_action_list_1.QuickFolderActionList,
content_column_1.ContentColumn,
content_column_list_1.ContentColumnList
]);
exports_1("DOCUMENT_LIST_PROVIDERS", DOCUMENT_LIST_PROVIDERS = [
alfresco_service_1.AlfrescoService,

View File

@@ -1 +1 @@
{"version":3,"file":"ng2-alfresco-documentlist.js","sourceRoot":"","sources":["ng2-alfresco-documentlist.ts"],"names":[],"mappings":";;;;QAgDa,wBAAwB,EAYxB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA/BpC,oBAAe;gBACX,UAAU,EAAE;oBACR,4BAAY;oBACZ,gCAAc;oBACd,yCAAkB;oBAClB,2CAAmB;oBACnB,oDAAuB;oBACvB,4BAAY;oBACZ,qCAAgB;oBAChB,uCAAiB;oBACjB,gDAAqB;iBACxB;gBACD,SAAS,EAAE;oBACP,kCAAe;oBACf,6CAAoB;oBACpB,iDAAsB;iBACzB;aACJ,EAAA;YAEY,sCAAA,wBAAwB,GAAU;gBAC3C,4BAAY;gBACZ,gCAAc;gBACd,yCAAkB;gBAClB,2CAAmB;gBACnB,oDAAuB;gBACvB,4BAAY;gBACZ,qCAAgB;gBAChB,uCAAiB;gBACjB,gDAAqB;aACxB,CAAA,CAAC;YAEW,qCAAA,uBAAuB,GAAU;gBAC1C,kCAAe;gBACf,6CAAoB;gBACpB,iDAAsB;aACzB,CAAA,CAAC"}
{"version":3,"file":"ng2-alfresco-documentlist.js","sourceRoot":"","sources":["ng2-alfresco-documentlist.ts"],"names":[],"mappings":";;;;QAsDa,wBAAwB,EAcxB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAnCpC,oBAAe;gBACX,UAAU,EAAE;oBACR,4BAAY;oBACZ,gCAAc;oBACd,yCAAkB;oBAClB,2CAAmB;oBACnB,oDAAuB;oBACvB,4BAAY;oBACZ,qCAAgB;oBAChB,uCAAiB;oBACjB,gDAAqB;oBACrB,8BAAa;oBACb,uCAAiB;iBACpB;gBACD,SAAS,EAAE;oBACP,kCAAe;oBACf,6CAAoB;oBACpB,iDAAsB;iBACzB;aACJ,EAAA;YAEY,sCAAA,wBAAwB,GAAU;gBAC3C,4BAAY;gBACZ,gCAAc;gBACd,yCAAkB;gBAClB,2CAAmB;gBACnB,oDAAuB;gBACvB,4BAAY;gBACZ,qCAAgB;gBAChB,uCAAiB;gBACjB,gDAAqB;gBACrB,8BAAa;gBACb,uCAAiB;aACpB,CAAA,CAAC;YAEW,qCAAA,uBAAuB,GAAU;gBAC1C,kCAAe;gBACf,6CAAoB;gBACpB,iDAAsB;aACzB,CAAA,CAAC"}

View File

@@ -7,6 +7,8 @@ import {FolderAction} from './src/components/folder-action';
import {FolderActionList} from './src/components/folder-action-list';
import {QuickFolderAction} from './src/components/quick-folder-action';
import {QuickFolderActionList} from './src/components/quick-folder-action-list';
import {ContentColumn} from './src/components/content-column';
import {ContentColumnList} from './src/components/content-column-list';
import {FolderActionsService} from './src/services/folder-actions.service';
import {DocumentActionsService} from './src/services/document-actions.service';
@@ -22,6 +24,8 @@ export * from './src/components/folder-action';
export * from './src/components/folder-action-list';
export * from './src/components/quick-folder-action'
export * from './src/components/quick-folder-action-list';
export * from './src/components/content-column';
export * from './src/components/content-column-list';
// services
export * from './src/services/folder-actions.service';
export * from './src/services/document-actions.service';
@@ -37,7 +41,9 @@ export default {
FolderAction,
FolderActionList,
QuickFolderAction,
QuickFolderActionList
QuickFolderActionList,
ContentColumn,
ContentColumnList
],
providers: [
AlfrescoService,
@@ -55,7 +61,9 @@ export const DOCUMENT_LIST_DIRECTIVES: [any] = [
FolderAction,
FolderActionList,
QuickFolderAction,
QuickFolderActionList
QuickFolderActionList,
ContentColumn,
ContentColumnList
];
export const DOCUMENT_LIST_PROVIDERS: [any] = [

View File

@@ -0,0 +1,7 @@
import { DocumentList } from './document-list';
import { ContentColumnModel } from './../models/content-column.model';
export declare class ContentColumnList {
private documentList;
constructor(documentList: DocumentList);
registerColumn(column: ContentColumnModel): void;
}

View File

@@ -0,0 +1,64 @@
/**
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
System.register(['angular2/core', './document-list'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1, document_list_1;
var ContentColumnList;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
function (document_list_1_1) {
document_list_1 = document_list_1_1;
}],
execute: function() {
ContentColumnList = (function () {
function ContentColumnList(documentList) {
this.documentList = documentList;
// saves reference to parent container
// so that content children can access it
}
ContentColumnList.prototype.registerColumn = function (column) {
if (column) {
this.documentList.columns.push(column);
}
};
ContentColumnList = __decorate([
core_1.Component({
selector: 'content-columns',
template: ''
}),
__metadata('design:paramtypes', [document_list_1.DocumentList])
], ContentColumnList);
return ContentColumnList;
}());
exports_1("ContentColumnList", ContentColumnList);
}
}
});
//# sourceMappingURL=content-column-list.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"content-column-list.js","sourceRoot":"","sources":["content-column-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBACI,2BAAoB,YAA0B;oBAA1B,iBAAY,GAAZ,YAAY,CAAc;oBAC1C,sCAAsC;oBACtC,yCAAyC;gBAC7C,CAAC;gBAED,0CAAc,GAAd,UAAe,MAA0B;oBACrC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;wBACT,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBAC3C,CAAC;gBACL,CAAC;gBAdL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,iBAAiB;wBAC3B,QAAQ,EAAE,EAAE;qBACf,CAAC;;qCAAA;gBAYF,wBAAC;YAAD,CAAC,AAXD,IAWC;YAXD,iDAWC,CAAA"}

View File

@@ -0,0 +1,37 @@
/**
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {Component} from 'angular2/core';
import {DocumentList} from './document-list';
import {ContentColumnModel} from './../models/content-column.model';
@Component({
selector: 'content-columns',
template: ''
})
export class ContentColumnList {
constructor(private documentList: DocumentList) {
// saves reference to parent container
// so that content children can access it
}
registerColumn(column: ContentColumnModel) {
if (column) {
this.documentList.columns.push(column);
}
}
}

View File

@@ -0,0 +1,25 @@
/**
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OnInit } from 'angular2/core';
import { ContentColumnList } from './content-column-list';
export declare class ContentColumn implements OnInit {
private list;
title: string;
source: string;
constructor(list: ContentColumnList);
ngOnInit(): void;
}

View File

@@ -0,0 +1,75 @@
/**
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
System.register(['angular2/core', './content-column-list', './../models/content-column.model'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1, content_column_list_1, content_column_model_1;
var ContentColumn;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
function (content_column_list_1_1) {
content_column_list_1 = content_column_list_1_1;
},
function (content_column_model_1_1) {
content_column_model_1 = content_column_model_1_1;
}],
execute: function() {
ContentColumn = (function () {
function ContentColumn(list) {
this.list = list;
this.title = '';
}
ContentColumn.prototype.ngOnInit = function () {
var model = new content_column_model_1.ContentColumnModel();
model.title = this.title;
model.source = this.source;
this.list.registerColumn(model);
};
__decorate([
core_1.Input(),
__metadata('design:type', String)
], ContentColumn.prototype, "title", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', String)
], ContentColumn.prototype, "source", void 0);
ContentColumn = __decorate([
core_1.Component({
selector: 'content-column',
template: ''
}),
__metadata('design:paramtypes', [content_column_list_1.ContentColumnList])
], ContentColumn);
return ContentColumn;
}());
exports_1("ContentColumn", ContentColumn);
}
}
});
//# sourceMappingURL=content-column.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"content-column.js","sourceRoot":"","sources":["content-column.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBAII,uBACY,IAAuB;oBAAvB,SAAI,GAAJ,IAAI,CAAmB;oBAJ1B,UAAK,GAAW,EAAE,CAAC;gBAK5B,CAAC;gBAED,gCAAQ,GAAR;oBACI,IAAI,KAAK,GAAG,IAAI,yCAAkB,EAAE,CAAC;oBACrC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBACzB,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;oBAE3B,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC;gBAbD;oBAAC,YAAK,EAAE;;4DAAA;gBACR;oBAAC,YAAK,EAAE;;6DAAA;gBANZ;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,gBAAgB;wBAC1B,QAAQ,EAAE,EAAE;qBACf,CAAC;;iCAAA;gBAgBF,oBAAC;YAAD,CAAC,AAfD,IAeC;YAfD,yCAeC,CAAA"}

View File

@@ -0,0 +1,41 @@
/**
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {Component, OnInit, Input} from 'angular2/core';
import {ContentColumnList} from './content-column-list'
import {ContentColumnModel} from './../models/content-column.model';
@Component({
selector: 'content-column',
template: ''
})
export class ContentColumn implements OnInit {
@Input() title: string = '';
@Input() source: string;
constructor(
private list: ContentColumnList) {
}
ngOnInit() {
let model = new ContentColumnModel();
model.title = this.title;
model.source = this.source;
this.list.registerColumn(model);
}
}

View File

@@ -19,6 +19,7 @@ import { AlfrescoService } from './../services/alfresco.service';
import { FolderEntity } from './../core/entities/folder.entity';
import { DocumentEntity } from './../core/entities/document.entity';
import { ContentActionModel } from './../models/content-action.model';
import { ContentColumnModel } from './../models/content-column.model';
export declare class DocumentList implements OnInit, AfterViewChecked {
private _alfrescoService;
navigate: boolean;
@@ -38,6 +39,7 @@ export declare class DocumentList implements OnInit, AfterViewChecked {
quickDocumentActions: ContentActionModel[];
folderActions: ContentActionModel[];
quickFolderActions: ContentActionModel[];
columns: ContentColumnModel[];
canNavigateParent(): boolean;
constructor(_alfrescoService: AlfrescoService);
ngOnInit(): void;

View File

@@ -11,13 +11,15 @@
<th *ngIf="thumbnails"></th>
<!-- Name -->
<th class="mdl-data-table__cell--non-numeric full-width">Name</th>
<!-- Custom columns -->
<th class="mdl-data-table__cell--non-numeric" *ngFor="#col of columns">{{col.title}}</th>
<!-- Actions -->
<th></th>
</tr>
</thead>
<tbody>
<tr class="parent-folder-link" *ngIf="canNavigateParent()" (click)="onNavigateParentClick($event)">
<td colspan="3">
<td [attr.colspan]="3 + columns?.length">
<button class="mdl-button mdl-js-button mdl-button--icon"
(click)="onNavigateParentClick($event)">
<i class="material-icons">arrow_upward</i>
@@ -55,6 +57,10 @@
</span>
</td>
<!-- Custom columns -->
<td *ngFor="#col of columns" class="mdl-data-table__cell--non-numeric">
{{content[col.source]}}
</td>
<!-- Actions: Folder cell template -->
<td *ngIf="content.isFolder">

View File

@@ -54,6 +54,7 @@ System.register(['angular2/core', './../services/alfresco.service'], function(ex
this.quickDocumentActions = [];
this.folderActions = [];
this.quickFolderActions = [];
this.columns = [];
}
DocumentList.prototype.canNavigateParent = function () {
return this.navigate &&

View File

@@ -1 +1 @@
{"version":3,"file":"document-list.js","sourceRoot":"","sources":["document-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAyBH;gBA8BI,sBACY,gBAAiC;oBAAjC,qBAAgB,GAAhB,gBAAgB,CAAiB;oBA7BpC,aAAQ,GAAY,IAAI,CAAC;oBACzB,eAAU,GAAY,KAAK,CAAC;oBAE5B,eAAU,GAAY,IAAI,CAAC;oBAE1B,cAAS,GAAsB,IAAI,mBAAY,EAAE,CAAC;oBAE5D,eAAU,GAAG;wBACT,IAAI,EAAE,kBAAkB;wBACxB,IAAI,EAAE,uBAAuB;qBAChC,CAAC;oBACF,sBAAiB,GAAW,uBAAuB,CAAC;oBAIpD,UAAK,GAAU,EAAE,CAAC;oBAElB,oBAAe,GAAyB,EAAE,CAAC;oBAC3C,yBAAoB,GAAyB,EAAE,CAAC;oBAChD,kBAAa,GAAyB,EAAE,CAAC;oBACzC,uBAAkB,GAAyB,EAAE,CAAC;gBAU3C,CAAC;gBARJ,wCAAiB,GAAjB;oBACI,MAAM,CAAC,IAAI,CAAC,QAAQ;wBAChB,CAAC,IAAI,CAAC,UAAU;wBAChB,IAAI,CAAC,iBAAiB,KAAK,IAAI,CAA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from './../services/alfresco.service';
import {FolderEntity} from './../core/entities/folder.entity';
import {DocumentEntity} from './../core/entities/document.entity';
import {ContentActionModel} from './../models/content-action.model';
import {ContentColumnModel} from './../models/content-column.model';
declare var componentHandler;
declare let __moduleName:string;
@@ -61,6 +62,7 @@ export class DocumentList implements OnInit, AfterViewChecked {
quickDocumentActions: ContentActionModel[] = [];
folderActions: ContentActionModel[] = [];
quickFolderActions: ContentActionModel[] = [];
columns: ContentColumnModel[] = [];
canNavigateParent(): boolean {
return this.navigate &&

View File

@@ -0,0 +1,20 @@
/**
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export declare class ContentColumnModel {
title: string;
source: string;
}

View File

@@ -0,0 +1,33 @@
/**
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
System.register([], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var ContentColumnModel;
return {
setters:[],
execute: function() {
ContentColumnModel = (function () {
function ContentColumnModel() {
}
return ContentColumnModel;
}());
exports_1("ContentColumnModel", ContentColumnModel);
}
}
});
//# sourceMappingURL=content-column.model.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"content-column.model.js","sourceRoot":"","sources":["content-column.model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;YAEH;gBAAA;gBAGA,CAAC;gBAAD,yBAAC;YAAD,CAAC,AAHD,IAGC;YAHD,mDAGC,CAAA"}

View File

@@ -0,0 +1,21 @@
/**
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export class ContentColumnModel {
title: string;
source: string;
}