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

@@ -30,65 +30,65 @@ export class DeesAppuiBase extends DeesElement {
// Properties for appbar
@property({ type: Array })
public appbarMenuItems: interfaces.IAppBarMenuItem[] = [];
accessor appbarMenuItems: interfaces.IAppBarMenuItem[] = [];
@property({ type: String })
public appbarBreadcrumbs: string = '';
accessor appbarBreadcrumbs: string = '';
@property({ type: String })
public appbarBreadcrumbSeparator: string = ' > ';
accessor appbarBreadcrumbSeparator: string = ' > ';
@property({ type: Boolean })
public appbarShowWindowControls: boolean = true;
accessor appbarShowWindowControls: boolean = true;
@property({ type: Object })
public appbarUser?: {
accessor appbarUser: {
name: string;
email?: string;
avatar?: string;
status?: 'online' | 'offline' | 'busy' | 'away';
};
} | undefined = undefined;
@property({ type: Array })
public appbarProfileMenuItems: (plugins.tsclass.website.IMenuItem & { shortcut?: string } | { divider: true })[] = [];
accessor appbarProfileMenuItems: (plugins.tsclass.website.IMenuItem & { shortcut?: string } | { divider: true })[] = [];
@property({ type: Boolean })
public appbarShowSearch: boolean = false;
accessor appbarShowSearch: boolean = false;
// Properties for mainmenu
@property({ type: Array })
public mainmenuTabs: interfaces.ITab[] = [];
accessor mainmenuTabs: interfaces.ITab[] = [];
@property({ type: Object })
public mainmenuSelectedTab?: interfaces.ITab;
accessor mainmenuSelectedTab: interfaces.ITab | undefined = undefined;
// Properties for mainselector
@property({ type: Array })
public mainselectorOptions: (interfaces.ISelectionOption | { divider: true })[] = [];
accessor mainselectorOptions: (interfaces.ISelectionOption | { divider: true })[] = [];
@property({ type: Object })
public mainselectorSelectedOption?: interfaces.ISelectionOption;
accessor mainselectorSelectedOption: interfaces.ISelectionOption | undefined = undefined;
// Properties for maincontent
@property({ type: Array })
public maincontentTabs: interfaces.ITab[] = [];
accessor maincontentTabs: interfaces.ITab[] = [];
// References to child components
@state()
public appbar?: DeesAppuiBar;
accessor appbar: DeesAppuiBar | undefined = undefined;
@state()
public mainmenu?: DeesAppuiMainmenu;
accessor mainmenu: DeesAppuiMainmenu | undefined = undefined;
@state()
public mainselector?: DeesAppuiMainselector;
accessor mainselector: DeesAppuiMainselector | undefined = undefined;
@state()
public maincontent?: DeesAppuiMaincontent;
accessor maincontent: DeesAppuiMaincontent | undefined = undefined;
@state()
public activitylog?: DeesAppuiActivitylog;
accessor activitylog: DeesAppuiActivitylog | undefined = undefined;
public static styles = [
cssManager.defaultStyles,