refactor: Convert protected methods to private (#2358)

This commit is contained in:
Dermot Duffy
2026-02-19 20:47:59 -08:00
committed by GitHub
parent 529500ed94
commit 0a67df9a25
122 changed files with 815 additions and 829 deletions
+5 -5
View File
@@ -9,8 +9,8 @@ import { CardDefaultManagerAPI } from './types';
* Manages automated resetting to the default view.
*/
export class DefaultManager {
protected _timer = new Timer();
protected _api: CardDefaultManagerAPI;
private _timer = new Timer();
private _api: CardDefaultManagerAPI;
constructor(api: CardDefaultManagerAPI) {
this._api = api;
@@ -75,17 +75,17 @@ export class DefaultManager {
this._api.getAutomationsManager().deleteAutomations(this);
}
protected _stateChangeHandler = (): void => {
private _stateChangeHandler = (): void => {
this._setToDefaultIfAllowed();
};
protected _setToDefaultIfAllowed(): void {
private _setToDefaultIfAllowed(): void {
if (this._isAutomatedUpdateAllowed()) {
this._api.getViewManager().setViewDefault();
}
}
protected _isAutomatedUpdateAllowed(): boolean {
private _isAutomatedUpdateAllowed(): boolean {
const interactionMode = this._api.getConfigManager().getConfig()?.view
.default_reset.interaction_mode;
return (