mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
* Add pagination module with pagination component * Update the old pagination to have the old selector * Add licence headers to ts files * Update pagination files * Rename properties for consistency reasons and remove redundant event emitters * Add PaginationQueryParams interface to reference the query params used for paginated requests * Add documentation of pagination (work in progress) * Add i18n translations to pagination component * Rename some variables used in pagination template * Update pagination component to be backwards compatible * Update pagination component specs * Update pagination’s documentation * Remove the old pagination code * Add old alfresco-pagination tag selector * Update document list component to include the new pagination * Add adf-pagination in search component * Update link to pagination component from main readme file * Update search component specs * Add a default pagination object in case it’s not provided * Assign pagination to default one to default the missing properties (if any) * Remove unused variables * Add fail hints from expectancies of pagination tests * Add default onInit and remove the old defaults
63 lines
2.1 KiB
HTML
63 lines
2.1 KiB
HTML
<adf-document-menu-action
|
|
*ngIf="creationMenuActions"
|
|
[folderId]="currentFolderId"
|
|
(success)="onActionMenuSuccess($event)"
|
|
(error)="onActionMenuError($event)"
|
|
(permissionErrorEvent)="onPermissionError($event)">
|
|
</adf-document-menu-action>
|
|
|
|
<adf-datatable
|
|
[selectionMode]="selectionMode"
|
|
[data]="data"
|
|
[actions]="contentActions"
|
|
[actionsPosition]="contentActionsPosition"
|
|
[multiselect]="multiselect"
|
|
[allowDropFiles]="allowDropFiles"
|
|
[contextMenu]="contextMenuActions"
|
|
[rowStyle]="rowStyle"
|
|
[rowStyleClass]="rowStyleClass"
|
|
[loading]="loading"
|
|
[showHeader]="!isEmpty()"
|
|
(showRowContextMenu)="onShowRowContextMenu($event)"
|
|
(showRowActionsMenu)="onShowRowActionsMenu($event)"
|
|
(executeRowAction)="onExecuteRowAction($event)"
|
|
(rowClick)="onNodeClick($event.value?.node)"
|
|
(rowDblClick)="onNodeDblClick($event.value?.node)"
|
|
(row-select)="onNodeSelect($event.detail)"
|
|
(row-unselect)="onNodeUnselect($event.detail)">
|
|
|
|
<div *ngIf="!isEmptyTemplateDefined()">
|
|
<no-content-template>
|
|
<ng-template>
|
|
<adf-empty-list
|
|
emptyMsg="ADF-DOCUMENT-LIST.EMPTY.HEADER">
|
|
</adf-empty-list>
|
|
</ng-template>
|
|
</no-content-template>
|
|
</div>
|
|
|
|
<div>
|
|
<loading-content-template>
|
|
<ng-template>
|
|
<div class="adf-document-list-loading-container">
|
|
<md-progress-spinner
|
|
id="adf-document-list-loading"
|
|
class="adf-document-list-loading-margin"
|
|
[color]="'primary'"
|
|
[mode]="'indeterminate'">
|
|
</md-progress-spinner>
|
|
</div>
|
|
</ng-template>
|
|
</loading-content-template>
|
|
</div>
|
|
</adf-datatable>
|
|
|
|
<adf-pagination
|
|
*ngIf="isPaginationEnabled()"
|
|
(changePageSize)="onChangePageSize($event)"
|
|
(nextPage)="onNextPage($event)"
|
|
(prevPage)="onPrevPage($event)"
|
|
[pagination]="pagination"
|
|
[supportedPageSizes]="[5, 10, 15, 20]">
|
|
</adf-pagination>
|