Skip to content

Commit

Permalink
fix(cdk): remove protected from abstract classes for DI (#4027)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored Mar 29, 2023
1 parent 76ccb3a commit 1bbdb79
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export abstract class AbstractTuiEditorResizable<
protected _height = 0;
protected _width = 0;

protected constructor(documentRef: Document, destroy$: TuiDestroyService) {
constructor(documentRef: Document, destroy$: TuiDestroyService) {
super();

merge(
Expand Down
2 changes: 1 addition & 1 deletion projects/cdk/abstract/control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export abstract class AbstractTuiControl<T>
@tuiDefaultProp()
pseudoInvalid: boolean | null = null;

protected constructor(
constructor(
private readonly ngControl: NgControl | null,
protected readonly changeDetectorRef: ChangeDetectorRef,
protected readonly valueTransformer?: TuiControlValueTransformer<T> | null,
Expand Down
2 changes: 1 addition & 1 deletion projects/cdk/abstract/interactive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export abstract class AbstractTuiInteractive {

focusVisible = false;

protected constructor() {
constructor() {
this.autoIdString = `${TUI}${AbstractTuiInteractive.autoId++}${Date.now()}`;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {TuiAutofocusHandler} from '../autofocus.options';

@Directive()
export abstract class AbstractTuiAutofocusHandler implements TuiAutofocusHandler {
protected constructor(
constructor(
protected readonly tuiFocusableComponent: TuiFocusableElementAccessor | null,
protected readonly elementRef: ElementRef<HTMLElement>,
) {}
Expand Down
2 changes: 1 addition & 1 deletion projects/demo/src/modules/app/abstract.app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export abstract class AbstractDemoComponent implements OnInit {
@HostBinding(`$.class._loaded`)
protected readonly pageLoaded = this.pageLoaded$;

protected constructor(
constructor(
protected readonly isCypress: boolean,
protected readonly pageLoaded$: Observable<boolean>,
protected readonly selectedVersion: TuiVersionMeta | null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export abstract class AbstractTuiDataListWrapper<T> {
@tuiDefaultProp()
size: TuiSizeL | TuiSizeXS = this.defaultSize;

protected constructor(
constructor(
protected readonly itemsHandlers: TuiItemsHandlers<T>,
protected readonly defaultSize: TuiSizeL | TuiSizeXS,
) {}
Expand Down

0 comments on commit 1bbdb79

Please sign in to comment.