|
|
|
@ -42,7 +42,7 @@ import { |
|
|
|
import { IWidgetSubscription } from '@core/api/widget-api.models'; |
|
|
|
import { UtilsService } from '@core/services/utils.service'; |
|
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
|
import { deepClone, hashCode, isDefined, isDefinedAndNotNull, isNumber, isObject, isUndefined } from '@core/utils'; |
|
|
|
import { deepClone, hashCode, isDefined, isDefinedAndNotNull, isObject, isUndefined } from '@core/utils'; |
|
|
|
import cssjs from '@core/css/css'; |
|
|
|
import { CollectionViewer, DataSource } from '@angular/cdk/collections'; |
|
|
|
import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; |
|
|
|
@ -75,6 +75,8 @@ import { |
|
|
|
getHeaderTitle, |
|
|
|
getRowStyleInfo, |
|
|
|
getTableCellButtonActions, |
|
|
|
isValidPageStepCount, |
|
|
|
isValidPageStepIncrement, |
|
|
|
noDataMessage, |
|
|
|
prepareTableCellButtonActions, |
|
|
|
RowStyleInfo, |
|
|
|
@ -311,10 +313,8 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni |
|
|
|
this.rowStylesInfo = getRowStyleInfo(this.ctx, this.settings, 'entity, ctx'); |
|
|
|
|
|
|
|
const pageSize = this.settings.defaultPageSize; |
|
|
|
let pageStepIncrement = Number.isInteger(this.settings.pageStepIncrement) && this.settings.pageStepIncrement > 0 ? |
|
|
|
this.settings.pageStepIncrement : null; |
|
|
|
let pageStepCount = Number.isInteger(this.settings.pageStepCount) && this.settings.pageStepCount > 0 |
|
|
|
&& this.settings.pageStepCount <= 100 ? this.settings.pageStepCount : null; |
|
|
|
let pageStepIncrement = isValidPageStepIncrement(this.settings.pageStepIncrement) ? this.settings.pageStepIncrement : null; |
|
|
|
let pageStepCount = isValidPageStepCount(this.settings.pageStepCount) ? this.settings.pageStepCount : null; |
|
|
|
|
|
|
|
if (Number.isInteger(pageSize) && pageSize > 0) { |
|
|
|
this.defaultPageSize = pageSize; |
|
|
|
|