mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
@@ -63,6 +63,7 @@ import {MDL} from 'ng2-alfresco-core/material';
|
|||||||
[breadcrumb]="breadcrumb"
|
[breadcrumb]="breadcrumb"
|
||||||
[navigate]="navigation"
|
[navigate]="navigation"
|
||||||
[downloads]="downloads"
|
[downloads]="downloads"
|
||||||
|
folder-icon="fa fa-folder-o"
|
||||||
(itemClick)="onItemClick($event)">
|
(itemClick)="onItemClick($event)">
|
||||||
<quick-folder-actions>
|
<quick-folder-actions>
|
||||||
<quick-folder-action title="Delete" handler="system1"></quick-folder-action>
|
<quick-folder-action title="Delete" handler="system1"></quick-folder-action>
|
||||||
|
@@ -65,6 +65,23 @@ Note the use of ```DOCUMENT_LIST_DIRECTIVES``` barrel that consolidates all the
|
|||||||
It gives you access to ```<document-actions>```, ```<folder-actions>``` and many other directives.
|
It gives you access to ```<document-actions>```, ```<folder-actions>``` and many other directives.
|
||||||
In addition ```DOCUMENT_LIST_PROVIDERS``` exports all primary services and providers needed for component to function.
|
In addition ```DOCUMENT_LIST_PROVIDERS``` exports all primary services and providers needed for component to function.
|
||||||
|
|
||||||
|
### Custom folder icon
|
||||||
|
|
||||||
|
Document list element exposes ```folder-icon``` property that accepts a CSS class list value with
|
||||||
|
```glyphicon glyphicon-folder-close``` by default.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
You can provide any list of classes in order to customize look and feel of the icon.
|
||||||
|
Example below shows the use of [Font Awesome](http://fontawesome.io/) icon instead of the default one:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<alfresco-document-list folder-icon="fa fa-folder-o" ...>
|
||||||
|
</alfresco-document-list>
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Actions
|
### Actions
|
||||||
|
|
||||||
Document List supports declarative actions for Documents and Folders.
|
Document List supports declarative actions for Documents and Folders.
|
||||||
@@ -179,7 +196,7 @@ Every folder action is rendered as a separate button.
|
|||||||
</alfresco-document-list>
|
</alfresco-document-list>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Advanced usage
|
## Advanced usage and customization
|
||||||
|
|
||||||
### Customizing default actions
|
### Customizing default actions
|
||||||
|
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
@@ -8,6 +8,7 @@ import { FolderActionList } from './src/components/folder-action-list';
|
|||||||
import { QuickFolderAction } from './src/components/quick-folder-action';
|
import { QuickFolderAction } from './src/components/quick-folder-action';
|
||||||
import { QuickFolderActionList } from './src/components/quick-folder-action-list';
|
import { QuickFolderActionList } from './src/components/quick-folder-action-list';
|
||||||
import { FolderActionsService } from './src/services/folder-actions.service';
|
import { FolderActionsService } from './src/services/folder-actions.service';
|
||||||
|
import { DocumentActionsService } from './src/services/document-actions.service';
|
||||||
export * from './src/components/document-list';
|
export * from './src/components/document-list';
|
||||||
export * from './src/components/document-action';
|
export * from './src/components/document-action';
|
||||||
export * from './src/components/document-action-list';
|
export * from './src/components/document-action-list';
|
||||||
@@ -21,7 +22,7 @@ export * from './src/services/folder-actions.service';
|
|||||||
export * from './src/services/document-actions.service';
|
export * from './src/services/document-actions.service';
|
||||||
declare var _default: {
|
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)[];
|
||||||
providers: typeof FolderActionsService[];
|
providers: (typeof FolderActionsService | typeof DocumentActionsService)[];
|
||||||
};
|
};
|
||||||
export default _default;
|
export default _default;
|
||||||
export declare const DOCUMENT_LIST_DIRECTIVES: [any];
|
export declare const DOCUMENT_LIST_DIRECTIVES: [any];
|
||||||
|
@@ -26,7 +26,6 @@ System.register(['angular2/core', './../services/alfresco.service'], function(ex
|
|||||||
this._alfrescoService = _alfrescoService;
|
this._alfrescoService = _alfrescoService;
|
||||||
this.navigate = true;
|
this.navigate = true;
|
||||||
this.breadcrumb = false;
|
this.breadcrumb = false;
|
||||||
this.folderIconClass = 'fa fa-folder-o fa-4x';
|
|
||||||
this.thumbnails = true;
|
this.thumbnails = true;
|
||||||
this.downloads = true;
|
this.downloads = true;
|
||||||
this.itemClick = new core_1.EventEmitter();
|
this.itemClick = new core_1.EventEmitter();
|
||||||
@@ -129,7 +128,7 @@ System.register(['angular2/core', './../services/alfresco.service'], function(ex
|
|||||||
__metadata('design:type', Boolean)
|
__metadata('design:type', Boolean)
|
||||||
], DocumentList.prototype, "breadcrumb", void 0);
|
], DocumentList.prototype, "breadcrumb", void 0);
|
||||||
__decorate([
|
__decorate([
|
||||||
core_1.Input('folder-icon-class'),
|
core_1.Input('folder-icon'),
|
||||||
__metadata('design:type', String)
|
__metadata('design:type', String)
|
||||||
], DocumentList.prototype, "folderIconClass", void 0);
|
], DocumentList.prototype, "folderIconClass", void 0);
|
||||||
__decorate([
|
__decorate([
|
||||||
@@ -148,9 +147,9 @@ System.register(['angular2/core', './../services/alfresco.service'], function(ex
|
|||||||
core_1.Component({
|
core_1.Component({
|
||||||
selector: 'alfresco-document-list',
|
selector: 'alfresco-document-list',
|
||||||
styles: [
|
styles: [
|
||||||
"\n :host .breadcrumb {\n margin-bottom: 4px;\n }\n\n :host .folder-icon {\n float: left;\n margin-right: 10px;\n }\n\n :host .file-icon {\n width: 52px;\n height: 52px;\n float: left;\n margin-right: 10px;\n }\n \n :host .document-header {\n font-size: 24px;\n line-height: 32px;\n }\n \n :host .document-header:hover {\n text-decoration: underline;\n }\n "
|
"\n :host .breadcrumb {\n margin-bottom: 4px;\n }\n\n :host .folder-icon {\n float: left;\n margin-right: 10px;\n font-size: 4em;\n }\n\n :host .file-icon {\n width: 52px;\n height: 52px;\n float: left;\n margin-right: 10px;\n }\n \n :host .document-header {\n font-size: 24px;\n line-height: 32px;\n }\n \n :host .document-header:hover {\n text-decoration: underline;\n }\n "
|
||||||
],
|
],
|
||||||
template: "\n <ol *ngIf=\"breadcrumb\" class=\"breadcrumb\">\n <li *ngFor=\"#r of route; #last = last\" [class.active]=\"last\" [ngSwitch]=\"last\">\n <span *ngSwitchWhen=\"true\">{{r.name}}</span>\n <a *ngSwitchDefault href=\"#\" (click)=\"goToRoute(r, $event)\">{{r.name}}</a>\n </li>\n </ol>\n <div *ngIf=\"folder\" class=\"list-group\">\n <a href=\"#\" *ngIf=\"canNavigateParent()\" (click)=\"onNavigateParentClick($event)\" class=\"list-group-item\">\n <i class=\"fa fa-level-up\"></i> ...\n </a>\n <a href=\"#\" *ngFor=\"#document of folder.items\" class=\"list-group-item clearfix\">\n \n <!-- folder actions -->\n <div *ngIf=\"document.isFolder && folderActions.length > 0\" class=\"btn-group pull-right\">\n <button type=\"button\" class=\"btn btn-default\"\n *ngFor=\"#qfa of quickFolderActions\" (click)=\"executeContentAction(document, qfa)\">\n <span *ngIf=\"qfa.icon\" class=\"{{qfa.icon}}\"></span>\n <span *ngIf=\"qfa.title\">{{qfa.title}}</span>\n </button>\n <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" \n aria-haspopup=\"true\" aria-expanded=\"false\">\n Actions <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\">\n <li *ngFor=\"#folderAction of folderActions\">\n <a href=\"#\" (click)=\"executeContentAction(document, folderAction)\">{{folderAction.title}}</a>\n </li>\n </ul>\n </div>\n \n <!-- document actions -->\n <div *ngIf=\"!document.isFolder\" class=\"btn-group pull-right\">\n <button type=\"button\" class=\"btn btn-default\"\n *ngFor=\"#qda of quickDocumentActions\" (click)=\"executeContentAction(document, qda)\">\n <span *ngIf=\"qda.icon\" class=\"{{qda.icon}}\"></span>\n <span *ngIf=\"qda.title\">{{qda.title}}</span>\n </button>\n <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" \n aria-haspopup=\"true\" aria-expanded=\"false\">\n Actions <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\">\n <li>\n <a *ngIf=\"downloads && !document.isFolder\" \n href=\"{{getContentUrl(document)}}\" \n download target=\"_blank\">\n Download\n </a>\n </li>\n <li *ngIf=\"documentActions.length > 0\" role=\"separator\" class=\"divider\"></li>\n <li *ngFor=\"#documentAction of documentActions\">\n <a href=\"#\" (click)=\"executeContentAction(document, documentAction)\">{{documentAction.title}}</a>\n </li>\n </ul>\n </div>\n \n <i *ngIf=\"thumbnails && document.isFolder\" class=\"folder-icon {{folderIconClass}}\"\n (click)=\"onItemClick(document, $event)\">\n </i>\n <img *ngIf=\"thumbnails && !document.isFolder\" class=\"file-icon\"\n alt=\"\"\n src=\"{{getDocumentThumbnailUrl(document)}}\"\n (click)=\"onItemClick(document, $event)\">\n <h1 class=\"list-group-item-heading document-header\" (click)=\"onItemClick(document, $event)\" >\n {{document.displayName}}\n </h1>\n <p class=\"list-group-item-text\">{{document.description}}</p>\n <small>\n Modified {{document.modifiedOn}} by {{document.modifiedBy}}\n </small>\n </a>\n </div>\n ",
|
template: "\n <ol *ngIf=\"breadcrumb\" class=\"breadcrumb\">\n <li *ngFor=\"#r of route; #last = last\" [class.active]=\"last\" [ngSwitch]=\"last\">\n <span *ngSwitchWhen=\"true\">{{r.name}}</span>\n <a *ngSwitchDefault href=\"#\" (click)=\"goToRoute(r, $event)\">{{r.name}}</a>\n </li>\n </ol>\n <div *ngIf=\"folder\" class=\"list-group\">\n <a href=\"#\" *ngIf=\"canNavigateParent()\" (click)=\"onNavigateParentClick($event)\" class=\"list-group-item\">\n <i class=\"fa fa-level-up\"></i> ...\n </a>\n <a href=\"#\" *ngFor=\"#document of folder.items\" class=\"list-group-item clearfix\">\n \n <!-- folder actions -->\n <div *ngIf=\"document.isFolder && folderActions.length > 0\" class=\"btn-group pull-right\">\n <button type=\"button\" class=\"btn btn-default\"\n *ngFor=\"#qfa of quickFolderActions\" (click)=\"executeContentAction(document, qfa)\">\n <span *ngIf=\"qfa.icon\" class=\"{{qfa.icon}}\"></span>\n <span *ngIf=\"qfa.title\">{{qfa.title}}</span>\n </button>\n <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" \n aria-haspopup=\"true\" aria-expanded=\"false\">\n Actions <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\">\n <li *ngFor=\"#folderAction of folderActions\">\n <a href=\"#\" (click)=\"executeContentAction(document, folderAction)\">{{folderAction.title}}</a>\n </li>\n </ul>\n </div>\n \n <!-- document actions -->\n <div *ngIf=\"!document.isFolder\" class=\"btn-group pull-right\">\n <button type=\"button\" class=\"btn btn-default\"\n *ngFor=\"#qda of quickDocumentActions\" (click)=\"executeContentAction(document, qda)\">\n <span *ngIf=\"qda.icon\" class=\"{{qda.icon}}\"></span>\n <span *ngIf=\"qda.title\">{{qda.title}}</span>\n </button>\n <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" \n aria-haspopup=\"true\" aria-expanded=\"false\">\n Actions <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\">\n <li>\n <a *ngIf=\"downloads && !document.isFolder\" \n href=\"{{getContentUrl(document)}}\" \n download target=\"_blank\">\n Download\n </a>\n </li>\n <li *ngIf=\"documentActions.length > 0\" role=\"separator\" class=\"divider\"></li>\n <li *ngFor=\"#documentAction of documentActions\">\n <a href=\"#\" (click)=\"executeContentAction(document, documentAction)\">{{documentAction.title}}</a>\n </li>\n </ul>\n </div>\n \n <i *ngIf=\"thumbnails && document.isFolder\" class=\"folder-icon {{folderIconClass || 'glyphicon glyphicon-folder-close'}}\"\n (click)=\"onItemClick(document, $event)\">\n </i>\n <img *ngIf=\"thumbnails && !document.isFolder\" class=\"file-icon\"\n alt=\"\"\n src=\"{{getDocumentThumbnailUrl(document)}}\"\n (click)=\"onItemClick(document, $event)\">\n <h1 class=\"list-group-item-heading document-header\" (click)=\"onItemClick(document, $event)\" >\n {{document.displayName}}\n </h1>\n <p class=\"list-group-item-text\">{{document.description}}</p>\n <small>\n Modified {{document.modifiedOn}} by {{document.modifiedBy}}\n </small>\n </a>\n </div>\n ",
|
||||||
providers: [alfresco_service_1.AlfrescoService]
|
providers: [alfresco_service_1.AlfrescoService]
|
||||||
}),
|
}),
|
||||||
__metadata('design:paramtypes', [alfresco_service_1.AlfrescoService])
|
__metadata('design:paramtypes', [alfresco_service_1.AlfrescoService])
|
||||||
|
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"document-list.js","sourceRoot":"","sources":["document-list.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAgIA;gBA+BI,sBACY,gBAAiC;oBAAjC,qBAAgB,GAAhB,gBAAgB,CAAiB;oBA9BpC,aAAQ,GAAY,IAAI,CAAC;oBACzB,eAAU,GAAY,KAAK,CAAC;oBACT,oBAAe,GAAW,sBAAsB,CAAC;oBACpE,eAAU,GAAY,IAAI,CAAC;oBAC3B,cAAS,GAAY,IAAI,CAAC;oBAEzB,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,CAAC,UAAU,CAAC,IAAI,CAAC;gBACxD,CAAC;gBAMD,+BAAQ,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C;gBACnD,CAAC;gBAEO,2CAAoB,GAA5B,UAA6B,IAAI;oBAAjC,iBAQC;oBAPG,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;oBAC9B,IAAI,CAAC,gBAAgB;yBAChB,SAAS,CAAC,IAAI,CAAC;yBACf,SAAS,CACN,UAAA,MAAM,IAAI,OAAA,KAAI,CAAC,MAAM,GAAG,MAAM,EAApB,CAAoB,EAC9B,UAAA,KAAK,IAAI,OAAA,KAAI,CAAC,YAAY,GAAQ,KAAK,EAA9B,CAA8B,CAC1C,CAAC;gBACV,CAAC;gBAzHD;oBAAC,YAAK,EAAE;;8DAAA;gBACR;oBAAC,YAAK,EAAE;;gEAAA;gBACR;oBAAC,YAAK,CAAC,aAAa,CAAC;;qEAAA;gBACrB;oBAAC,YAAK,EAAE;;gEAAA;gBACR;oBAAC,YAAK,EAAE;;+DAAA;gBAER;oBAAC,aAAM,EAAE;;+DAAA;gBAnHb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,wBAAwB;wBAClC,MAAM,EAAE;4BACJ,wqBA0BC;yBACJ;wBACD,QAAQ,EAAE,sxIAyET;wBACD,SAAS,EAAE,CAAC,kCAAe,CAAC;qBAC/B,CAAC;;gCAAA;gBA6HF,mBAAC;YAAD,CAAC,AA5HD,IA4HC;YA5HD,uCA4HC,CAAA"}
|
@@ -31,6 +31,7 @@ import {ContentActionModel} from './../models/content-action.model';
|
|||||||
:host .folder-icon {
|
:host .folder-icon {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
font-size: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host .file-icon {
|
:host .file-icon {
|
||||||
@@ -107,7 +108,7 @@ import {ContentActionModel} from './../models/content-action.model';
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<i *ngIf="thumbnails && document.isFolder" class="folder-icon {{folderIconClass}}"
|
<i *ngIf="thumbnails && document.isFolder" class="folder-icon {{folderIconClass || 'glyphicon glyphicon-folder-close'}}"
|
||||||
(click)="onItemClick(document, $event)">
|
(click)="onItemClick(document, $event)">
|
||||||
</i>
|
</i>
|
||||||
<img *ngIf="thumbnails && !document.isFolder" class="file-icon"
|
<img *ngIf="thumbnails && !document.isFolder" class="file-icon"
|
||||||
@@ -130,7 +131,7 @@ export class DocumentList implements OnInit {
|
|||||||
|
|
||||||
@Input() navigate: boolean = true;
|
@Input() navigate: boolean = true;
|
||||||
@Input() breadcrumb: boolean = false;
|
@Input() breadcrumb: boolean = false;
|
||||||
@Input('folder-icon-class') folderIconClass: string = 'fa fa-folder-o fa-4x';
|
@Input('folder-icon') folderIconClass: string;
|
||||||
@Input() thumbnails: boolean = true;
|
@Input() thumbnails: boolean = true;
|
||||||
@Input() downloads: boolean = true;
|
@Input() downloads: boolean = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user