BREAKING CHANGE(decorators): Migrate to TC39 standard decorators (accessor) across components, update tsconfig and bump dependencies

This commit is contained in:
2025-11-17 13:27:11 +00:00
parent 70c29c778c
commit 92f69e2aa6
75 changed files with 2142 additions and 1901 deletions

View File

@@ -31,47 +31,47 @@ export class DeesAppuiBar extends DeesElement {
// INSTANCE PROPERTIES
@property({ type: Array })
public menuItems: interfaces.IAppBarMenuItem[] = [];
accessor menuItems: interfaces.IAppBarMenuItem[] = [];
@property({ type: String })
public breadcrumbs: string = '';
accessor breadcrumbs: string = '';
@property({ type: String })
public breadcrumbSeparator: string = ' > ';
accessor breadcrumbSeparator: string = ' > ';
@property({ type: Boolean })
public showWindowControls: boolean = true;
accessor showWindowControls: boolean = true;
@property({ type: Object })
public user?: {
accessor user: {
name: string;
email?: string;
avatar?: string;
status?: 'online' | 'offline' | 'busy' | 'away';
};
} | undefined = undefined;
@property({ type: Array })
public profileMenuItems: (plugins.tsclass.website.IMenuItem & { shortcut?: string } | { divider: true })[] = [];
accessor profileMenuItems: (plugins.tsclass.website.IMenuItem & { shortcut?: string } | { divider: true })[] = [];
@property({ type: Boolean })
public showSearch: boolean = false;
accessor showSearch: boolean = false;
// STATE
@state()
private activeMenu: string | null = null;
accessor activeMenu: string | null = null;
@state()
private openDropdowns: Set<string> = new Set();
accessor openDropdowns: Set<string> = new Set();
@state()
private focusedItem: string | null = null;
accessor focusedItem: string | null = null;
@state()
private focusedDropdownItem: number = -1;
accessor focusedDropdownItem: number = -1;
@state()
private isProfileDropdownOpen: boolean = false;
accessor isProfileDropdownOpen: boolean = false;
public static styles = appuiAppbarStyles;