@unopsitg/ux 21.0.19 → 21.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unopsitg/ux",
3
- "version": "21.0.19",
3
+ "version": "21.0.20",
4
4
  "description": "UNOPS Angular 21 layout shell, brand theme (PrimeNG / PrimeUIX), and shared types",
5
5
  "keywords": [
6
6
  "angular",
@@ -413,6 +413,7 @@ declare class AppSidebar implements OnInit, OnDestroy {
413
413
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppSidebar, "[app-sidebar]", never, {}, {}, never, never, true, never>;
414
414
  }
415
415
 
416
+ type DropdownId = 'notifications' | 'language' | 'profile' | null;
416
417
  interface NotificationsBars {
417
418
  id: string;
418
419
  label: string;
@@ -426,12 +427,13 @@ declare class AppTopbar implements AfterViewChecked {
426
427
  isDarkTheme: _angular_core.Signal<boolean>;
427
428
  isSidebarPinned: _angular_core.Signal<boolean>;
428
429
  searchActive: _angular_core.WritableSignal<boolean>;
429
- profileMenuOpen: _angular_core.WritableSignal<boolean>;
430
+ activeDropdown: _angular_core.WritableSignal<DropdownId>;
430
431
  private shouldFocusSearch;
431
432
  menuButton: ElementRef;
432
433
  searchInput?: ElementRef<HTMLInputElement>;
434
+ notificationsItem: ElementRef;
435
+ languageItem: ElementRef;
433
436
  profileItem: ElementRef;
434
- profilePanel: ElementRef;
435
437
  notificationsBars: _angular_core.WritableSignal<NotificationsBars[]>;
436
438
  notifications: _angular_core.WritableSignal<any[]>;
437
439
  languages: _angular_core.WritableSignal<{
@@ -448,7 +450,8 @@ declare class AppTopbar implements AfterViewChecked {
448
450
  showRightMenu(): void;
449
451
  onConfigButtonClick(): void;
450
452
  selectLanguage(code: string): void;
451
- toggleProfileMenu(event: Event): void;
453
+ toggleDropdown(id: DropdownId, event: Event): void;
454
+ closeDropdown(): void;
452
455
  onDocumentClick(event: MouseEvent): void;
453
456
  openSearch(): void;
454
457
  closeSearch(): void;