feat: add logo image and RTL support styles
- Added logo image to assets. - Implemented RTL support styles in rtlSupport.scss for various components including breadcrumb, datatable, and tree node toggle button. chore: configure environment files for production, staging, and development - Created environment.prod.ts for production settings. - Created environment.staging.ts for staging settings. - Created environment.ts for local development settings. feat: define custom theme preset - Added presets.ts to define a custom theme preset using PrimeUIX with specific component styles and semantic colors. chore: set up proxy configuration for local development
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { Injectable, inject, signal } from '@angular/core';
|
||||
import { NavigationStart, Router } from '@angular/router';
|
||||
import { MenuItem } from 'primeng/api';
|
||||
import { filter } from 'rxjs/operators';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class BreadcrumbService {
|
||||
private readonly _items = signal<MenuItem[]>([]);
|
||||
|
||||
private router = inject(Router);
|
||||
|
||||
constructor() {
|
||||
// Clear breadcrumb items on navigation start so previous page items don't persist.
|
||||
// Components for the new route can set their own items in their lifecycle (e.g. ngOnInit).
|
||||
this.router.events.pipe(filter((e) => e instanceof NavigationStart)).subscribe(() => {
|
||||
this.clear();
|
||||
});
|
||||
}
|
||||
|
||||
get items() {
|
||||
return this._items();
|
||||
}
|
||||
|
||||
setItems(items: MenuItem[]) {
|
||||
this._items.set(items);
|
||||
}
|
||||
|
||||
clear() {
|
||||
this._items.set([]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user