@flusys/ng-layout 3.0.1 → 4.0.0-rc

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,14 +1,14 @@
1
1
  {
2
2
  "name": "@flusys/ng-layout",
3
- "version": "3.0.1",
3
+ "version": "4.0.0-rc",
4
4
  "description": "Layout components for FLUSYS Angular applications",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
7
7
  "@angular/common": ">=21.0.0",
8
8
  "@angular/core": ">=21.0.0",
9
9
  "@angular/router": ">=21.0.0",
10
- "@flusys/ng-core": ">=3.0.1",
11
- "@flusys/ng-shared": ">=3.0.1",
10
+ "@flusys/ng-core": ">=4.0.0-rc",
11
+ "@flusys/ng-shared": ">=4.0.0-rc",
12
12
  "@primeuix/themes": ">=1.0.0",
13
13
  "primeicons": ">=7.0.0",
14
14
  "primeng": ">=21.0.0",
@@ -17,7 +17,10 @@ declare class AppFooter {
17
17
 
18
18
  interface ILauncherApp {
19
19
  id: string;
20
- name: string;
20
+ /** Display name (use nameKey for localization instead) */
21
+ name?: string;
22
+ /** Translation key for the name - preferred over name for localization */
23
+ nameKey?: string;
21
24
  iconType: IconTypeEnum;
22
25
  icon: string;
23
26
  url: string;
@@ -46,7 +49,10 @@ interface IUserInfo {
46
49
  }
47
50
  interface IMenuItem {
48
51
  id?: string;
52
+ /** Display label (use labelKey for localization instead) */
49
53
  label?: string;
54
+ /** Translation key for the label - preferred over label for localization */
55
+ labelKey?: string;
50
56
  icon?: string;
51
57
  iconType?: number;
52
58
  routerLink?: string[];
@@ -73,6 +79,9 @@ interface ILayoutAuthApi {
73
79
  declare const LAYOUT_AUTH_STATE: InjectionToken<ILayoutAuthState>;
74
80
  declare const LAYOUT_AUTH_API: InjectionToken<ILayoutAuthApi>;
75
81
  declare const LAYOUT_NOTIFICATION_BELL: InjectionToken<Type<unknown>>;
82
+ declare const LAYOUT_LANGUAGE_SELECTOR: InjectionToken<Type<unknown>>;
83
+ declare const LAYOUT_LANGUAGE_SELECTOR_PANEL: InjectionToken<Type<unknown>>;
84
+ declare const LAYOUT_IS_RTL: InjectionToken<Signal<boolean>>;
76
85
 
77
86
  interface LayoutConfig {
78
87
  preset?: string;
@@ -111,6 +120,7 @@ declare class LayoutService {
111
120
  private readonly isBrowser;
112
121
  private readonly persistence;
113
122
  private readonly appConfig;
123
+ private readonly translateAdapter;
114
124
  private readonly DEFAULT_CONFIG;
115
125
  private readonly DEFAULT_STATE;
116
126
  private readonly _layoutConfig;
@@ -247,17 +257,19 @@ declare type SurfacesType = {
247
257
  };
248
258
  declare class AppConfigurator {
249
259
  private readonly router;
260
+ private readonly translateAdapter;
250
261
  readonly layoutService: LayoutService;
251
262
  readonly presets: string[];
252
263
  readonly showMenuModeButton: _angular_core.WritableSignal<boolean>;
253
- readonly menuModeOptions: {
264
+ readonly menuModeOptions: _angular_core.Signal<{
254
265
  label: string;
255
266
  value: string;
256
- }[];
267
+ }[]>;
257
268
  constructor();
258
269
  readonly surfaces: SurfacesType[];
259
270
  readonly selectedPrimaryColor: _angular_core.Signal<string | undefined>;
260
271
  readonly selectedSurfaceColor: _angular_core.Signal<string | null | undefined>;
272
+ isSurfaceSelected(surfaceName: string | undefined): boolean;
261
273
  readonly selectedPreset: _angular_core.Signal<string | undefined>;
262
274
  readonly menuMode: _angular_core.Signal<"static" | "overlay" | undefined>;
263
275
  readonly primaryColors: _angular_core.Signal<SurfacesType[]>;
@@ -313,12 +325,14 @@ declare class AppConfigurator {
313
325
  applyTheme(type: string, color: SurfacesType): void;
314
326
  onPresetChange(event: string): void;
315
327
  onMenuModeChange(event: 'static' | 'overlay'): void;
328
+ private translate;
316
329
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppConfigurator, never>;
317
330
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppConfigurator, "app-configurator", never, {}, {}, never, never, true, never>;
318
331
  }
319
332
 
320
333
  declare class AppFloatingConfigurator {
321
334
  private readonly layoutService;
335
+ readonly languageSelectorPanel: _angular_core.Type<unknown> | null;
322
336
  readonly isDarkTheme: _angular_core.Signal<boolean | undefined>;
323
337
  toggleDarkMode(): void;
324
338
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppFloatingConfigurator, never>;
@@ -423,6 +437,7 @@ declare class AppTopbar {
423
437
  private readonly destroyRef;
424
438
  readonly layoutService: LayoutService;
425
439
  readonly notificationBellComponent: _angular_core.Type<unknown> | null;
440
+ readonly languageSelectorComponent: _angular_core.Type<unknown> | null;
426
441
  private readonly configContainer;
427
442
  readonly activePanel: _angular_core.WritableSignal<ActivePanel>;
428
443
  constructor();
@@ -441,6 +456,7 @@ declare class AppCompanyBranchSelector {
441
456
  private readonly authState;
442
457
  private readonly authApi;
443
458
  private readonly messageService;
459
+ private readonly translateAdapter;
444
460
  private readonly document;
445
461
  private readonly elementRef;
446
462
  private readonly _isActive;
@@ -469,6 +485,7 @@ declare class AppCompanyBranchSelector {
469
485
  onBranchChange(branchId: string | null): void;
470
486
  private loadBranches;
471
487
  onSwitch(): void;
488
+ private translate;
472
489
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppCompanyBranchSelector, never>;
473
490
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppCompanyBranchSelector, "app-company-branch-selector", never, {}, {}, never, never, true, never>;
474
491
  }
@@ -492,6 +509,7 @@ declare class AppProfile {
492
509
  private readonly authApi;
493
510
  private readonly layoutService;
494
511
  private readonly messageService;
512
+ private readonly translateAdapter;
495
513
  private readonly document;
496
514
  private readonly elementRef;
497
515
  private readonly _isActive;
@@ -503,6 +521,7 @@ declare class AppProfile {
503
521
  readonly profilePicture: _angular_core.Signal<string>;
504
522
  logout(): void;
505
523
  copySignUpLink(): void;
524
+ private translate;
506
525
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppProfile, never>;
507
526
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppProfile, "app-profile", never, {}, {}, never, never, true, never>;
508
527
  }
@@ -532,5 +551,7 @@ declare const NavyBlueTheme: _primeuix_themes_types.Preset;
532
551
 
533
552
  declare const GreenTheme: _primeuix_themes_types.Preset;
534
553
 
535
- export { AppCompanyBranchSelector, AppConfigurator, AppFloatingConfigurator, AppFooter, AppLauncher, AppLayout, AppMenu, AppMenuitem, AppProfile, AppSidebar, AppTopbar, GreenTheme, LAYOUT_AUTH_API, LAYOUT_AUTH_STATE, LAYOUT_NOTIFICATION_BELL, LayoutPersistenceService, LayoutService, NavyBlueTheme, filterAppsByPermissions, filterMenuByPermissions };
554
+ declare const LAYOUT_MESSAGES: Record<string, string>;
555
+
556
+ export { AppCompanyBranchSelector, AppConfigurator, AppFloatingConfigurator, AppFooter, AppLauncher, AppLayout, AppMenu, AppMenuitem, AppProfile, AppSidebar, AppTopbar, GreenTheme, LAYOUT_AUTH_API, LAYOUT_AUTH_STATE, LAYOUT_IS_RTL, LAYOUT_LANGUAGE_SELECTOR, LAYOUT_LANGUAGE_SELECTOR_PANEL, LAYOUT_MESSAGES, LAYOUT_NOTIFICATION_BELL, LayoutPersistenceService, LayoutService, NavyBlueTheme, filterAppsByPermissions, filterMenuByPermissions };
536
557
  export type { CompanyProfile, DocumentWithViewTransition, IBranchInfo, ICompanyInfo, ILauncherApp, ILayoutAuthApi, ILayoutAuthState, IMenuItem, IUserInfo, LayoutConfig, LayoutState, MenuChangeEvent, UserProfile, ViewTransition };