2019-08-12 19:34:23 +03:00
|
|
|
<!--
|
|
|
|
|
|
2023-01-31 10:43:56 +02:00
|
|
|
Copyright © 2016-2023 The Thingsboard Authors
|
2019-08-12 19:34:23 +03:00
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
<mat-drawer-container hasBackdrop="false" class="tb-absolute-fill">
|
|
|
|
|
<mat-drawer *ngIf="entitiesTableConfig.detailsPanelEnabled"
|
|
|
|
|
class="tb-details-drawer mat-elevation-z4"
|
|
|
|
|
#drawer
|
|
|
|
|
mode="over"
|
|
|
|
|
position="end"
|
|
|
|
|
[opened]="isDetailsOpen">
|
|
|
|
|
<tb-entity-details-panel
|
2022-01-19 17:02:18 +02:00
|
|
|
#entityDetailsPanel
|
2019-08-12 19:34:23 +03:00
|
|
|
[entitiesTableConfig]="entitiesTableConfig"
|
2022-01-19 17:02:18 +02:00
|
|
|
[entityId]="isDetailsOpen ? dataSource.currentEntity?.id : null"
|
2020-04-08 19:31:08 +03:00
|
|
|
(closeEntityDetails)="isDetailsOpen = false; detailsPanelOpened.emit(isDetailsOpen);"
|
2019-08-12 19:34:23 +03:00
|
|
|
(entityUpdated)="onEntityUpdated($event)"
|
|
|
|
|
(entityAction)="onEntityAction($event)"
|
|
|
|
|
>
|
|
|
|
|
</tb-entity-details-panel>
|
|
|
|
|
</mat-drawer>
|
|
|
|
|
<mat-drawer-content>
|
2021-12-14 12:40:18 +02:00
|
|
|
<div class="mat-padding tb-entity-table tb-absolute-fill">
|
2023-03-21 13:09:20 +02:00
|
|
|
<div fxLayout="column" class="tb-entity-table-content tb-outlined-border">
|
2023-02-17 19:24:01 +02:00
|
|
|
<mat-toolbar class="mat-mdc-table-toolbar" [fxShow]="!textSearchMode && dataSource.selection.isEmpty()">
|
2019-08-12 19:34:23 +03:00
|
|
|
<div class="mat-toolbar-tools">
|
2020-04-09 17:53:24 +03:00
|
|
|
<div fxLayout="row" fxLayoutAlign="start center" fxLayout.xs="column" fxLayoutAlign.xs="center start" class="title-container">
|
|
|
|
|
<span *ngIf="entitiesTableConfig.tableTitle" class="tb-entity-table-title">{{ entitiesTableConfig.tableTitle }}</span>
|
|
|
|
|
<tb-anchor #entityTableHeader></tb-anchor>
|
|
|
|
|
<tb-timewindow *ngIf="entitiesTableConfig.useTimePageLink" [(ngModel)]="timewindow"
|
|
|
|
|
(ngModelChange)="onTimewindowChange()"
|
2023-04-21 18:00:56 +03:00
|
|
|
asButton strokedButton historyOnly [forAllTimeEnabled]="entitiesTableConfig.forAllTimeEnabled"></tb-timewindow>
|
2020-04-09 17:53:24 +03:00
|
|
|
</div>
|
|
|
|
|
<span fxFlex></span>
|
2019-08-14 19:55:24 +03:00
|
|
|
<div [fxShow]="addEnabled()">
|
2020-04-06 11:04:03 +03:00
|
|
|
<button mat-icon-button [disabled]="isLoading$ | async"
|
2019-08-22 18:44:48 +03:00
|
|
|
*ngIf="!entitiesTableConfig.addActionDescriptors.length; else addActions"
|
2019-08-14 19:55:24 +03:00
|
|
|
(click)="addEntity($event)"
|
|
|
|
|
matTooltip="{{ translations.add | translate }}"
|
|
|
|
|
matTooltipPosition="above">
|
|
|
|
|
<mat-icon>add</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<ng-template #addActions>
|
2020-04-06 11:04:03 +03:00
|
|
|
<button mat-icon-button [disabled]="isLoading$ | async"
|
2019-08-22 18:44:48 +03:00
|
|
|
*ngIf="entitiesTableConfig.addActionDescriptors.length === 1; else addActionsMenu"
|
|
|
|
|
[fxShow]="entitiesTableConfig.addActionDescriptors[0].isEnabled()"
|
|
|
|
|
(click)="entitiesTableConfig.addActionDescriptors[0].onAction($event)"
|
|
|
|
|
matTooltip="{{ entitiesTableConfig.addActionDescriptors[0].name }}"
|
2019-08-15 14:48:14 +03:00
|
|
|
matTooltipPosition="above">
|
2023-11-30 17:55:41 +02:00
|
|
|
<tb-icon>{{entitiesTableConfig.addActionDescriptors[0].icon}}</tb-icon>
|
2019-08-14 19:55:24 +03:00
|
|
|
</button>
|
2019-08-15 14:48:14 +03:00
|
|
|
<ng-template #addActionsMenu>
|
2020-04-06 11:04:03 +03:00
|
|
|
<button mat-icon-button [disabled]="isLoading$ | async"
|
2019-08-15 14:48:14 +03:00
|
|
|
matTooltip="{{ translations.add | translate }}"
|
|
|
|
|
matTooltipPosition="above"
|
|
|
|
|
[matMenuTriggerFor]="addActionsMenu">
|
|
|
|
|
<mat-icon>add</mat-icon>
|
2019-08-14 19:55:24 +03:00
|
|
|
</button>
|
2019-08-15 14:48:14 +03:00
|
|
|
<mat-menu #addActionsMenu="matMenu" xPosition="before">
|
2019-08-22 18:44:48 +03:00
|
|
|
<button mat-menu-item *ngFor="let actionDescriptor of entitiesTableConfig.addActionDescriptors"
|
2019-08-15 14:48:14 +03:00
|
|
|
[disabled]="isLoading$ | async"
|
|
|
|
|
[fxShow]="actionDescriptor.isEnabled()"
|
|
|
|
|
(click)="actionDescriptor.onAction($event)">
|
2023-11-30 17:55:41 +02:00
|
|
|
<tb-icon>{{actionDescriptor.icon}}</tb-icon>
|
2019-08-15 14:48:14 +03:00
|
|
|
<span>{{ actionDescriptor.name }}</span>
|
|
|
|
|
</button>
|
|
|
|
|
</mat-menu>
|
|
|
|
|
</ng-template>
|
2019-08-14 19:55:24 +03:00
|
|
|
</ng-template>
|
|
|
|
|
</div>
|
2020-04-06 11:04:03 +03:00
|
|
|
<button mat-icon-button [disabled]="isLoading$ | async"
|
2019-08-12 19:34:23 +03:00
|
|
|
[fxShow]="actionDescriptor.isEnabled()" *ngFor="let actionDescriptor of headerActionDescriptors"
|
|
|
|
|
matTooltip="{{ actionDescriptor.name }}"
|
|
|
|
|
matTooltipPosition="above"
|
|
|
|
|
(click)="actionDescriptor.onAction($event)">
|
2023-07-21 18:26:14 +03:00
|
|
|
<tb-icon>{{actionDescriptor.icon}}</tb-icon>
|
2019-08-12 19:34:23 +03:00
|
|
|
</button>
|
2020-04-06 11:04:03 +03:00
|
|
|
<button mat-icon-button [disabled]="isLoading$ | async" (click)="updateData()"
|
2019-08-12 19:34:23 +03:00
|
|
|
matTooltip="{{ 'action.refresh' | translate }}"
|
|
|
|
|
matTooltipPosition="above">
|
|
|
|
|
<mat-icon>refresh</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<button *ngIf="entitiesTableConfig.searchEnabled"
|
2020-04-06 11:04:03 +03:00
|
|
|
mat-icon-button [disabled]="isLoading$ | async" (click)="enterFilterMode()"
|
2019-08-12 19:34:23 +03:00
|
|
|
matTooltip="{{ translations.search | translate }}"
|
|
|
|
|
matTooltipPosition="above">
|
|
|
|
|
<mat-icon>search</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-toolbar>
|
2023-02-17 19:24:01 +02:00
|
|
|
<mat-toolbar class="mat-mdc-table-toolbar" [fxShow]="textSearchMode && dataSource.selection.isEmpty()">
|
2019-08-12 19:34:23 +03:00
|
|
|
<div class="mat-toolbar-tools">
|
2020-04-06 11:04:03 +03:00
|
|
|
<button mat-icon-button
|
2019-08-12 19:34:23 +03:00
|
|
|
matTooltip="{{ translations.search | translate }}"
|
|
|
|
|
matTooltipPosition="above">
|
|
|
|
|
<mat-icon>search</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<mat-form-field fxFlex>
|
|
|
|
|
<mat-label> </mat-label>
|
|
|
|
|
<input #searchInput matInput
|
2023-08-14 13:30:24 +03:00
|
|
|
[formControl]="textSearch"
|
2019-08-12 19:34:23 +03:00
|
|
|
placeholder="{{ translations.search | translate }}"/>
|
|
|
|
|
</mat-form-field>
|
2020-04-06 11:04:03 +03:00
|
|
|
<button mat-icon-button (click)="exitFilterMode()"
|
2019-08-12 19:34:23 +03:00
|
|
|
matTooltip="{{ 'action.close' | translate }}"
|
|
|
|
|
matTooltipPosition="above">
|
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-toolbar>
|
2023-02-17 19:24:01 +02:00
|
|
|
<mat-toolbar *ngIf="entitiesTableConfig.selectionEnabled" class="mat-mdc-table-toolbar" color="primary" [fxShow]="!dataSource.selection.isEmpty()">
|
2019-08-12 19:34:23 +03:00
|
|
|
<div class="mat-toolbar-tools">
|
2020-04-09 17:53:24 +03:00
|
|
|
<span class="tb-entity-table-info">
|
|
|
|
|
{{ translations.selectedEntities | translate:{count: dataSource.selection.selected.length} }}
|
|
|
|
|
</span>
|
2019-08-12 19:34:23 +03:00
|
|
|
<span fxFlex></span>
|
2020-04-06 11:04:03 +03:00
|
|
|
<button mat-icon-button [disabled]="isLoading$ | async"
|
2019-08-12 19:34:23 +03:00
|
|
|
[fxShow]="actionDescriptor.isEnabled" *ngFor="let actionDescriptor of groupActionDescriptors"
|
|
|
|
|
matTooltip="{{ actionDescriptor.name }}"
|
|
|
|
|
matTooltipPosition="above"
|
|
|
|
|
(click)="actionDescriptor.onAction($event, dataSource.selection.selected)">
|
2023-11-30 17:55:41 +02:00
|
|
|
<tb-icon>{{actionDescriptor.icon}}</tb-icon>
|
2019-08-12 19:34:23 +03:00
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-toolbar>
|
|
|
|
|
<div fxFlex class="table-container">
|
2020-04-02 11:01:13 +03:00
|
|
|
<table mat-table [dataSource]="dataSource" [trackBy]="trackByEntityId"
|
2020-04-07 17:06:04 +03:00
|
|
|
matSort [matSortActive]="pageLink.sortOrder?.property" [matSortDirection]="pageLink.sortDirection()" matSortDisableClear>
|
2019-08-12 19:34:23 +03:00
|
|
|
<ng-container matColumnDef="select" sticky>
|
2023-02-17 19:24:01 +02:00
|
|
|
<mat-header-cell *matHeaderCellDef style="width: 40px;">
|
2019-08-12 19:34:23 +03:00
|
|
|
<mat-checkbox (change)="$event ? dataSource.masterToggle() : null"
|
|
|
|
|
[checked]="dataSource.selection.hasValue() && (dataSource.isAllSelected() | async)"
|
|
|
|
|
[indeterminate]="dataSource.selection.hasValue() && !(dataSource.isAllSelected() | async)">
|
|
|
|
|
</mat-checkbox>
|
|
|
|
|
</mat-header-cell>
|
|
|
|
|
<mat-cell *matCellDef="let entity">
|
|
|
|
|
<mat-checkbox (click)="$event.stopPropagation()"
|
2019-08-15 20:39:56 +03:00
|
|
|
[fxShow]="entitiesTableConfig.entitySelectionEnabled(entity)"
|
2019-08-12 19:34:23 +03:00
|
|
|
(change)="$event ? dataSource.selection.toggle(entity) : null"
|
|
|
|
|
[checked]="dataSource.selection.isSelected(entity)">
|
|
|
|
|
</mat-checkbox>
|
|
|
|
|
</mat-cell>
|
|
|
|
|
</ng-container>
|
2020-01-22 20:05:30 +02:00
|
|
|
<ng-container [matColumnDef]="column.key" *ngFor="let column of entityColumns; trackBy: trackByColumnKey;">
|
2020-01-24 19:05:41 +02:00
|
|
|
<mat-header-cell [ngClass]="{'mat-number-cell': column.isNumberColumn}"
|
2020-04-07 17:06:04 +03:00
|
|
|
[fxHide.lt-lg]="column.mobileHide"
|
|
|
|
|
*matHeaderCellDef [ngStyle]="headerCellStyle(column)" mat-sort-header [disabled]="!column.sortable">
|
|
|
|
|
{{ column.ignoreTranslate ? column.title : (column.title | translate) }} </mat-header-cell>
|
2020-01-24 19:05:41 +02:00
|
|
|
<mat-cell [ngClass]="{'mat-number-cell': column.isNumberColumn}"
|
2020-04-07 17:06:04 +03:00
|
|
|
[fxHide.lt-lg]="column.mobileHide"
|
2020-01-24 19:05:41 +02:00
|
|
|
*matCellDef="let entity; let row = index"
|
2020-01-22 20:05:30 +02:00
|
|
|
[matTooltip]="cellTooltip(entity, column, row)"
|
2019-08-22 18:44:48 +03:00
|
|
|
matTooltipPosition="above"
|
2020-01-22 20:05:30 +02:00
|
|
|
[ngStyle]="cellStyle(entity, column, row)">
|
2021-06-04 20:49:01 +03:00
|
|
|
<span [innerHTML]="cellContent(entity, column, row)"></span>
|
2021-06-07 14:05:10 +03:00
|
|
|
<ng-template [ngIf]="column.actionCell">
|
2021-06-04 20:49:01 +03:00
|
|
|
<ng-container [ngSwitch]="column.actionCell.type">
|
|
|
|
|
<ng-template [ngSwitchCase]="cellActionType.COPY_BUTTON">
|
|
|
|
|
<tb-copy-button
|
|
|
|
|
[disabled]="isLoading$ | async"
|
|
|
|
|
[fxShow]="column.actionCell.isEnabled(entity)"
|
|
|
|
|
[copyText]="column.actionCell.onAction(null, entity)"
|
|
|
|
|
tooltipText="{{ column.actionCell.nameFunction ? column.actionCell.nameFunction(entity) : column.actionCell.name }}"
|
|
|
|
|
tooltipPosition="above"
|
|
|
|
|
[icon]="column.actionCell.icon"
|
2023-11-30 17:55:41 +02:00
|
|
|
[style]="column.actionCell.style">
|
2021-06-04 20:49:01 +03:00
|
|
|
</tb-copy-button>
|
|
|
|
|
</ng-template>
|
|
|
|
|
<ng-template ngSwitchDefault>
|
|
|
|
|
<button mat-icon-button [disabled]="isLoading$ | async"
|
|
|
|
|
[fxShow]="column.actionCell.isEnabled(entity)"
|
|
|
|
|
matTooltip="{{ column.actionCell.nameFunction ? column.actionCell.nameFunction(entity) : column.actionCell.name }}"
|
|
|
|
|
matTooltipPosition="above"
|
|
|
|
|
(click)="column.actionCell.onAction($event, entity)">
|
2023-11-30 17:55:41 +02:00
|
|
|
<tb-icon [ngStyle]="column.actionCell.style">
|
2021-06-04 20:49:01 +03:00
|
|
|
{{column.actionCell.icon}}
|
2023-11-30 17:55:41 +02:00
|
|
|
</tb-icon>
|
2021-06-04 20:49:01 +03:00
|
|
|
</button>
|
|
|
|
|
</ng-template>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-template>
|
2020-01-22 20:05:30 +02:00
|
|
|
</mat-cell>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container [matColumnDef]="column.key" *ngFor="let column of actionColumns; trackBy: trackByColumnKey;">
|
|
|
|
|
<mat-header-cell *matHeaderCellDef [ngStyle]="headerCellStyle(column)" mat-sort-header [disabled]="!column.sortable"> {{ column.title | translate }} </mat-header-cell>
|
|
|
|
|
<mat-cell *matCellDef="let entity; let row = index"
|
|
|
|
|
[ngStyle]="cellStyle(entity, column, row)">
|
2020-04-06 11:04:03 +03:00
|
|
|
<button mat-icon-button [disabled]="isLoading$ | async"
|
2020-01-22 20:05:30 +02:00
|
|
|
[fxShow]="column.actionDescriptor.isEnabled(entity)"
|
|
|
|
|
matTooltip="{{ column.actionDescriptor.nameFunction ? column.actionDescriptor.nameFunction(entity) : column.actionDescriptor.name }}"
|
|
|
|
|
matTooltipPosition="above"
|
|
|
|
|
(click)="column.actionDescriptor.onAction($event, entity)">
|
2023-11-30 17:55:41 +02:00
|
|
|
<tb-icon [ngStyle]="column.actionDescriptor.style">
|
|
|
|
|
{{column.actionDescriptor.icon}}
|
|
|
|
|
</tb-icon>
|
2019-08-22 18:44:48 +03:00
|
|
|
</button>
|
|
|
|
|
</mat-cell>
|
2019-08-12 19:34:23 +03:00
|
|
|
</ng-container>
|
|
|
|
|
<ng-container matColumnDef="actions" stickyEnd>
|
2023-02-17 19:24:01 +02:00
|
|
|
<mat-header-cell *matHeaderCellDef [ngStyle.gt-md]="{ minWidth: (cellActionDescriptors.length * 48) + 'px',
|
|
|
|
|
maxWidth: (cellActionDescriptors.length * 48) + 'px',
|
|
|
|
|
width: (cellActionDescriptors.length * 48) + 'px' }">
|
2019-08-12 19:34:23 +03:00
|
|
|
{{ entitiesTableConfig.actionsColumnTitle ? (entitiesTableConfig.actionsColumnTitle | translate) : '' }}
|
|
|
|
|
</mat-header-cell>
|
2023-02-17 19:24:01 +02:00
|
|
|
<mat-cell *matCellDef="let entity" [ngStyle.gt-md]="{ minWidth: (cellActionDescriptors.length * 48) + 'px',
|
|
|
|
|
maxWidth: (cellActionDescriptors.length * 48) + 'px',
|
|
|
|
|
width: (cellActionDescriptors.length * 48) + 'px' }">
|
2023-07-17 16:28:17 +03:00
|
|
|
<div [fxHide]="cellActionDescriptors.length !== 1" fxShow.gt-md fxFlex fxLayout="row" fxLayoutAlign="end">
|
2020-04-07 17:06:04 +03:00
|
|
|
<button mat-icon-button [disabled]="(isLoading$ | async) || !actionDescriptor.isEnabled(entity)"
|
2020-04-03 17:32:59 +03:00
|
|
|
*ngFor="let actionDescriptor of cellActionDescriptors"
|
2019-08-12 19:34:23 +03:00
|
|
|
matTooltip="{{ actionDescriptor.nameFunction ? actionDescriptor.nameFunction(entity) : actionDescriptor.name }}"
|
|
|
|
|
matTooltipPosition="above"
|
|
|
|
|
(click)="actionDescriptor.onAction($event, entity)">
|
2023-11-30 17:55:41 +02:00
|
|
|
<tb-icon [ngStyle]="actionDescriptor.style">
|
|
|
|
|
{{actionDescriptor.iconFunction ? actionDescriptor.iconFunction(entity) : actionDescriptor.icon}}
|
|
|
|
|
</tb-icon>
|
2019-08-12 19:34:23 +03:00
|
|
|
</button>
|
|
|
|
|
</div>
|
2023-07-17 16:28:17 +03:00
|
|
|
<div fxHide [fxShow.lt-lg]="cellActionDescriptors.length !== 1" *ngIf="cellActionDescriptors.length">
|
2020-04-02 11:01:13 +03:00
|
|
|
<button mat-icon-button
|
2019-08-12 19:34:23 +03:00
|
|
|
(click)="$event.stopPropagation()"
|
|
|
|
|
[matMenuTriggerFor]="cellActionsMenu">
|
|
|
|
|
<mat-icon class="material-icons">more_vert</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<mat-menu #cellActionsMenu="matMenu" xPosition="before">
|
|
|
|
|
<button mat-menu-item *ngFor="let actionDescriptor of cellActionDescriptors"
|
|
|
|
|
[disabled]="isLoading$ | async"
|
|
|
|
|
[fxShow]="actionDescriptor.isEnabled(entity)"
|
|
|
|
|
(click)="actionDescriptor.onAction($event, entity)">
|
2023-11-30 17:55:41 +02:00
|
|
|
<tb-icon [ngStyle]="actionDescriptor.style">
|
|
|
|
|
{{actionDescriptor.iconFunction ? actionDescriptor.iconFunction(entity) : actionDescriptor.icon}}
|
|
|
|
|
</tb-icon>
|
2019-08-12 19:34:23 +03:00
|
|
|
<span>{{ actionDescriptor.nameFunction ? actionDescriptor.nameFunction(entity) : actionDescriptor.name }}</span>
|
|
|
|
|
</button>
|
|
|
|
|
</mat-menu>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-cell>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<mat-header-row [ngClass]="{'mat-row-select': selectionEnabled}" *matHeaderRowDef="displayedColumns; sticky: true"></mat-header-row>
|
2020-07-15 20:12:05 +03:00
|
|
|
<mat-row [fxShow]="!dataSource.dataLoading"
|
|
|
|
|
[ngClass]="{'mat-row-select': selectionEnabled,
|
2019-08-12 19:34:23 +03:00
|
|
|
'mat-selected': dataSource.selection.isSelected(entity),
|
2022-12-13 16:28:30 +02:00
|
|
|
'tb-current-entity': dataSource.isCurrentEntity(entity),
|
|
|
|
|
'tb-pointer': entitiesTableConfig.rowPointer}"
|
2019-08-12 19:34:23 +03:00
|
|
|
*matRowDef="let entity; columns: displayedColumns;" (click)="onRowClick($event, entity)"></mat-row>
|
2020-04-02 11:01:13 +03:00
|
|
|
</table>
|
2020-04-15 13:00:32 +03:00
|
|
|
<span [fxShow]="!(isLoading$ | async) && (dataSource.isEmpty() | async) && !dataSource.dataLoading"
|
2019-08-12 19:34:23 +03:00
|
|
|
fxLayoutAlign="center center"
|
2020-04-14 19:22:14 +03:00
|
|
|
class="no-data-found">{{ translations.noEntities | translate }}</span>
|
2020-04-15 13:00:32 +03:00
|
|
|
<span [fxShow]="dataSource.dataLoading"
|
|
|
|
|
fxLayoutAlign="center center"
|
|
|
|
|
class="no-data-found">{{ 'common.loading' | translate }}</span>
|
2019-08-12 19:34:23 +03:00
|
|
|
</div>
|
2020-04-08 19:31:08 +03:00
|
|
|
<mat-divider *ngIf="displayPagination"></mat-divider>
|
|
|
|
|
<mat-paginator *ngIf="displayPagination"
|
|
|
|
|
[length]="dataSource.total() | async"
|
2019-08-12 19:34:23 +03:00
|
|
|
[pageIndex]="pageLink.page"
|
|
|
|
|
[pageSize]="pageLink.pageSize"
|
2021-02-01 17:19:00 +02:00
|
|
|
[pageSizeOptions]="pageSizeOptions"
|
2021-12-01 11:32:32 +02:00
|
|
|
[hidePageSize]="hidePageSize"
|
2021-02-01 17:19:00 +02:00
|
|
|
showFirstLastButtons></mat-paginator>
|
2019-08-12 19:34:23 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-drawer-content>
|
|
|
|
|
</mat-drawer-container>
|