diff --git a/packages/common/src/services/grid.service.ts b/packages/common/src/services/grid.service.ts index 4c583717c..1f3705493 100644 --- a/packages/common/src/services/grid.service.ts +++ b/packages/common/src/services/grid.service.ts @@ -36,13 +36,13 @@ export class GridService { protected _rowSelectionPlugin?: SlickRowSelectionModel; constructor( - protected gridStateService: GridStateService, - protected filterService: FilterService, - protected pubSubService: PubSubService, - protected paginationService: PaginationService, - protected sharedService: SharedService, - protected sortService: SortService, - protected treeDataService: TreeDataService, + protected readonly gridStateService: GridStateService, + protected readonly filterService: FilterService, + protected readonly pubSubService: PubSubService, + protected readonly paginationService: PaginationService, + protected readonly sharedService: SharedService, + protected readonly sortService: SortService, + protected readonly treeDataService: TreeDataService, ) { } /** Getter of SlickGrid DataView object */ diff --git a/packages/common/src/services/pagination.service.ts b/packages/common/src/services/pagination.service.ts index 90e735157..c76f127c1 100644 --- a/packages/common/src/services/pagination.service.ts +++ b/packages/common/src/services/pagination.service.ts @@ -39,7 +39,7 @@ export class PaginationService { grid!: SlickGrid; /** Constructor */ - constructor(protected pubSubService: PubSubService, protected sharedService: SharedService, protected backendUtilities?: BackendUtilityService, protected rxjs?: RxJsFacade) { } + constructor(protected readonly pubSubService: PubSubService, protected readonly sharedService: SharedService, protected readonly backendUtilities?: BackendUtilityService, protected rxjs?: RxJsFacade) { } /** Getter of SlickGrid DataView object */ get dataView(): SlickDataView | undefined { diff --git a/packages/common/src/services/resizer.service.ts b/packages/common/src/services/resizer.service.ts index 6758391e5..fdfcce54c 100644 --- a/packages/common/src/services/resizer.service.ts +++ b/packages/common/src/services/resizer.service.ts @@ -73,7 +73,7 @@ export class ResizerService { return this.gridOptions?.resizeByContentOptions ?? {}; } - constructor(protected pubSubService: PubSubService) { + constructor(protected readonly pubSubService: PubSubService) { this._eventHandler = new Slick.EventHandler(); } diff --git a/packages/common/src/services/sort.service.ts b/packages/common/src/services/sort.service.ts index 5b4483572..50fa04af2 100644 --- a/packages/common/src/services/sort.service.ts +++ b/packages/common/src/services/sort.service.ts @@ -38,7 +38,7 @@ export class SortService { protected _isBackendGrid = false; protected httpCancelRequests$?: Subject; // this will be used to cancel any pending http request - constructor(protected sharedService: SharedService, protected pubSubService: PubSubService, protected backendUtilities?: BackendUtilityService, protected rxjs?: RxJsFacade) { + constructor(protected readonly sharedService: SharedService, protected readonly pubSubService: PubSubService, protected readonly backendUtilities?: BackendUtilityService, protected rxjs?: RxJsFacade) { this._eventHandler = new Slick.EventHandler(); if (this.rxjs) { this.httpCancelRequests$ = this.rxjs.createSubject(); diff --git a/packages/custom-footer-component/src/slick-footer.component.ts b/packages/custom-footer-component/src/slick-footer.component.ts index 561714620..aa854b967 100644 --- a/packages/custom-footer-component/src/slick-footer.component.ts +++ b/packages/custom-footer-component/src/slick-footer.component.ts @@ -63,7 +63,7 @@ export class SlickFooterComponent { this.renderRightFooterText(text); } - constructor(protected grid: SlickGrid, protected customFooterOptions: CustomFooterOption, protected translaterService?: TranslaterService) { + constructor(protected readonly grid: SlickGrid, protected readonly customFooterOptions: CustomFooterOption, protected readonly translaterService?: TranslaterService) { this._bindingHelper = new BindingHelper(); this._bindingHelper.querySelectorPrefix = `.${this.gridUid} `; this._eventHandler = new Slick.EventHandler();