init to pos domain

This commit is contained in:
2026-03-18 13:35:57 +03:30
parent f2766e2d7d
commit 1e2f94261e
42 changed files with 635 additions and 809 deletions
+13 -1
View File
@@ -10,6 +10,10 @@ export interface layoutConfig {
menuMode?: string;
}
interface IPanelInfo {
title: string;
}
interface LayoutState {
staticMenuDesktopInactive?: boolean;
overlayMenuActive?: boolean;
@@ -30,7 +34,7 @@ interface MenuChangeEvent {
export class LayoutService {
_config: layoutConfig = {
preset: 'Aura',
primary: 'blue',
primary: 'surface',
surface: null,
darkTheme: localStorage.getItem('isDarkTheme') === 'true',
menuMode: 'static',
@@ -59,6 +63,10 @@ export class LayoutService {
public menuItems = signal<MenuItem[]>([]);
public panelInfo = signal<IPanelInfo>({
title: 'پنل مدیریت کسب‌و‌کار',
});
menuSource$ = this.menuSource.asObservable();
resetSource$ = this.resetSource.asObservable();
@@ -206,4 +214,8 @@ export class LayoutService {
setMenuItems(items: MenuItem[]) {
this.menuItems.set(items);
}
setPanelInfo(info: IPanelInfo) {
this.panelInfo.set(info);
}
}