@ngx-smz/layout 19.4.3 → 21.0.0-alpha.1

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.
Files changed (37) hide show
  1. package/fesm2022/ngx-smz-layout.mjs +491 -489
  2. package/fesm2022/ngx-smz-layout.mjs.map +1 -1
  3. package/package.json +4 -10
  4. package/resources/layout/legacy-layout.scss +3 -0
  5. package/resources/layout/variables/_legacy-common.scss +55 -0
  6. package/types/ngx-smz-layout.d.ts +350 -0
  7. package/index.d.ts +0 -5
  8. package/lib/config/config.d.ts +0 -25
  9. package/lib/config/index.d.ts +0 -2
  10. package/lib/config/provide.d.ts +0 -4
  11. package/lib/errors/access.d.ts +0 -6
  12. package/lib/errors/error.d.ts +0 -6
  13. package/lib/errors/errors-pages-service.d.ts +0 -41
  14. package/lib/errors/errors.routes.d.ts +0 -2
  15. package/lib/errors/notfound.d.ts +0 -6
  16. package/lib/layout/component/app.configurator.d.ts +0 -97
  17. package/lib/layout/component/app.floatingconfigurator.d.ts +0 -9
  18. package/lib/layout/component/app.footer.d.ts +0 -21
  19. package/lib/layout/component/app.layout.d.ts +0 -31
  20. package/lib/layout/component/app.menu.d.ts +0 -9
  21. package/lib/layout/component/app.menuitem.d.ts +0 -27
  22. package/lib/layout/component/app.sidebar.d.ts +0 -8
  23. package/lib/layout/component/app.topbar.d.ts +0 -46
  24. package/lib/layout/service/layout.service.d.ts +0 -54
  25. package/lib/layout/service/navigation.service.d.ts +0 -17
  26. package/lib/layout/service/page-title.service.d.ts +0 -16
  27. package/lib/logging/config/config.d.ts +0 -12
  28. package/lib/logging/config/index.d.ts +0 -2
  29. package/lib/logging/config/provide.d.ts +0 -4
  30. package/lib/logging/logging-config.d.ts +0 -7
  31. package/lib/logging/logging-scope.d.ts +0 -4
  32. package/lib/logging/logging.service.d.ts +0 -33
  33. package/lib/shared/component-injector/directives/component-injector.directive.d.ts +0 -20
  34. package/lib/shared/component-injector/interfaces/inject-content.d.ts +0 -8
  35. package/lib/shared/component-injector/interfaces/injectable.d.ts +0 -35
  36. package/lib/shared/component-injector/services/inject-component.service.d.ts +0 -12
  37. package/public-api.d.ts +0 -17
package/package.json CHANGED
@@ -1,13 +1,7 @@
1
1
  {
2
2
  "name": "@ngx-smz/layout",
3
- "version": "19.4.3",
4
- "peerDependencies": {
5
- "@angular/common": ">=19.2.0 <21.0.0",
6
- "@angular/core": ">=19.2.0 <21.0.0",
7
- "@angular/forms": ">=19.2.0 <21.0.0",
8
- "@angular/platform-browser": ">=19.2.0 <21.0.0",
9
- "@angular/router": ">=19.2.0 <21.0.0"
10
- },
3
+ "version": "21.0.0-alpha.1",
4
+ "peerDependencies": {},
11
5
  "dependencies": {
12
6
  "tslib": "^2.3.0"
13
7
  },
@@ -16,13 +10,13 @@
16
10
  "access": "public"
17
11
  },
18
12
  "module": "fesm2022/ngx-smz-layout.mjs",
19
- "typings": "index.d.ts",
13
+ "typings": "types/ngx-smz-layout.d.ts",
20
14
  "exports": {
21
15
  "./package.json": {
22
16
  "default": "./package.json"
23
17
  },
24
18
  ".": {
25
- "types": "./index.d.ts",
19
+ "types": "./types/ngx-smz-layout.d.ts",
26
20
  "default": "./fesm2022/ngx-smz-layout.mjs"
27
21
  }
28
22
  }
@@ -0,0 +1,3 @@
1
+ @use './variables/_legacy-common';
2
+ @use './variables/_light';
3
+ @use './variables/_dark';
@@ -0,0 +1,55 @@
1
+ :root {
2
+ --primary-color: var(--p-primary-color);
3
+ --primary-contrast-color: var(--p-primary-contrast-color);
4
+ --text-color: var(--p-text-color);
5
+ --text-color-secondary: var(--p-text-muted-color);
6
+ --surface-border: var(--p-content-border-color);
7
+ --surface-card: var(--p-content-background);
8
+ --surface-hover: var(--p-content-hover-background);
9
+ --surface-overlay: var(--p-overlay-popover-background);
10
+ --transition-duration: var(--p-transition-duration);
11
+ --maskbg: var(--p-mask-background);
12
+ --content-border-radius: var(--p-content-border-radius);
13
+ --layout-section-transition-duration: 0.2s;
14
+ --element-transition-duration: var(--p-transition-duration);
15
+ --focus-ring-width: var(--p-focus-ring-width);
16
+ --focus-ring-style: var(--p-focus-ring-style);
17
+ --focus-ring-color: var(--p-focus-ring-color);
18
+ --focus-ring-offset: var(--p-focus-ring-offset);
19
+ --focus-ring-shadow: var(--p-focus-ring-shadow);
20
+
21
+ --surface-a: var(--p-surface-0);
22
+ --surface-b: var(--p-surface-50);
23
+ --surface-c: var(--p-surface-100);
24
+ --surface-d: var(--p-surface-200);
25
+ --surface-e: var(--p-surface-0);
26
+ --surface-f: var(--p-surface-0);
27
+ --primary-color-text: var(--p-primary-contrast-color);
28
+ --surface-0: var(--p-surface-0);
29
+ --surface-50: var(--p-surface-50);
30
+ --surface-100: var(--p-surface-100);
31
+ --surface-200: var(--p-surface-200);
32
+ --surface-300: var(--p-surface-300);
33
+ --surface-400: var(--p-surface-400);
34
+ --surface-500: var(--p-surface-500);
35
+ --surface-600: var(--p-surface-600);
36
+ --surface-700: var(--p-surface-700);
37
+ --surface-800: var(--p-surface-800);
38
+ --surface-900: var(--p-surface-900);
39
+ --gray-50: var(--p-surface-50);
40
+ --gray-100: var(--p-surface-100);
41
+ --gray-200: var(--p-surface-200);
42
+ --gray-300: var(--p-surface-300);
43
+ --gray-400: var(--p-surface-400);
44
+ --gray-500: var(--p-surface-500);
45
+ --gray-600: var(--p-surface-600);
46
+ --gray-700: var(--p-surface-700);
47
+ --gray-800: var(--p-surface-800);
48
+ --gray-900: var(--p-surface-900);
49
+ --content-padding: 1.25rem;
50
+ --inline-spacing: 0.5rem;
51
+ --border-radius: 6px;
52
+ --surface-ground: var(--p-surface-100);
53
+ --surface-section: var(--p-surface-0);
54
+ --focus-ring: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
55
+ }
@@ -0,0 +1,350 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ComponentRef, Signal, ElementRef, Renderer2, WritableSignal, InjectionToken, EnvironmentProviders } from '@angular/core';
3
+ import { Router, Routes } from '@angular/router';
4
+ import * as rxjs from 'rxjs';
5
+ import { Subscription } from 'rxjs';
6
+ import { ComponentType } from '@angular/cdk/overlay';
7
+ import { PrimeNG } from 'primeng/config';
8
+ import { MenuItem } from 'primeng/api';
9
+
10
+ interface LayoutConfig {
11
+ preset?: string;
12
+ primary?: string;
13
+ surface?: string | undefined | null;
14
+ darkTheme?: boolean;
15
+ menuMode?: string;
16
+ }
17
+ interface LayoutState {
18
+ staticMenuDesktopInactive?: boolean;
19
+ overlayMenuActive?: boolean;
20
+ configSidebarVisible?: boolean;
21
+ staticMenuMobileActive?: boolean;
22
+ menuHoverActive?: boolean;
23
+ }
24
+ interface MenuChangeEvent {
25
+ key: string;
26
+ routeEvent?: boolean;
27
+ }
28
+ declare class LayoutService {
29
+ private readonly config;
30
+ layoutConfig: i0.WritableSignal<LayoutConfig>;
31
+ layoutState: i0.WritableSignal<LayoutState>;
32
+ private configUpdate;
33
+ private overlayOpen;
34
+ private menuSource;
35
+ private resetSource;
36
+ menuSource$: rxjs.Observable<MenuChangeEvent>;
37
+ resetSource$: rxjs.Observable<unknown>;
38
+ configUpdate$: rxjs.Observable<LayoutConfig>;
39
+ overlayOpen$: rxjs.Observable<any>;
40
+ theme: i0.Signal<"light" | "dark">;
41
+ isSidebarActive: i0.Signal<boolean>;
42
+ isDarkTheme: i0.Signal<boolean>;
43
+ getPrimary: i0.Signal<string>;
44
+ getSurface: i0.Signal<string>;
45
+ isOverlay: i0.Signal<boolean>;
46
+ transitionComplete: i0.WritableSignal<boolean>;
47
+ private initialized;
48
+ constructor();
49
+ private handleDarkModeTransition;
50
+ private startViewTransition;
51
+ toggleDarkMode(config?: LayoutConfig): void;
52
+ private onTransitionEnd;
53
+ onMenuToggle(): void;
54
+ isDesktop(): boolean;
55
+ isMobile(): boolean;
56
+ onConfigUpdate(): void;
57
+ onMenuStateChange(event: MenuChangeEvent): void;
58
+ reset(): void;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
60
+ static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
61
+ }
62
+
63
+ interface InjectableContentEntity {
64
+ key: string;
65
+ data: unknown;
66
+ }
67
+ interface InjectableOutput {
68
+ key: string;
69
+ callback?: (data: never) => void;
70
+ }
71
+
72
+ interface InjectableComponent<TComponent> {
73
+ component: ComponentType<TComponent> | null;
74
+ inputs: InjectableContentEntity[];
75
+ outputs: InjectableOutput[];
76
+ ref?: {
77
+ componentRef: ComponentRef<unknown> | null;
78
+ };
79
+ styleClass?: string;
80
+ componentId?: string;
81
+ }
82
+
83
+ declare class NavigationService {
84
+ private router;
85
+ private location;
86
+ private history;
87
+ private isPopping;
88
+ readonly canGoBack: i0.Signal<boolean>;
89
+ private loggingService;
90
+ private logger;
91
+ constructor();
92
+ /** Para template: [disabled]="!navigationService.canGoBackSignal()" */
93
+ canGoBackSignal(): boolean;
94
+ /** Volta um passo: remove do history e chama Location.back() */
95
+ goBack(): void;
96
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
97
+ static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
98
+ }
99
+
100
+ declare class PageTitleService {
101
+ private router;
102
+ private loggingService;
103
+ private logger;
104
+ private titleSignal;
105
+ readonly title: i0.Signal<string>;
106
+ readonly hasTitle: i0.Signal<boolean>;
107
+ constructor();
108
+ /** Percorre recursivamente o snapshot até a rota mais interna */
109
+ private getDeepestSnapshot;
110
+ /** Lê o title do data da rota mais interna */
111
+ private updateTitle;
112
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageTitleService, never>;
113
+ static ɵprov: i0.ɵɵInjectableDeclaration<PageTitleService>;
114
+ }
115
+
116
+ declare class AppTopbar {
117
+ primeNG: PrimeNG;
118
+ data: Signal<Topbar>;
119
+ layoutService: LayoutService;
120
+ navigationService: NavigationService;
121
+ pageTitleService: PageTitleService;
122
+ toggleDarkMode(): void;
123
+ handleMissingImage(event: Event, placeholder: string): void;
124
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppTopbar, never>;
125
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppTopbar, "app-topbar", never, {}, {}, never, never, true, never>;
126
+ }
127
+ interface Topbar {
128
+ showMenuToggle?: boolean;
129
+ showBackButton?: boolean;
130
+ showConfigurator?: boolean;
131
+ showDarkModeToggle?: boolean;
132
+ logoPath?: {
133
+ light?: string;
134
+ dark?: string;
135
+ };
136
+ appName?: string;
137
+ features?: {
138
+ icon?: Signal<string>;
139
+ avatar?: Signal<string>;
140
+ placeholder?: string;
141
+ label?: string;
142
+ tooltip?: string;
143
+ menuItems?: MenuItem[];
144
+ }[];
145
+ menuItems?: {
146
+ icon?: string;
147
+ label?: string;
148
+ tooltip?: string;
149
+ routerLink?: string;
150
+ callback?: () => void;
151
+ component?: InjectableComponent<unknown>;
152
+ }[];
153
+ }
154
+
155
+ declare class AppSidebar {
156
+ el: ElementRef;
157
+ constructor(el: ElementRef);
158
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebar, never>;
159
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebar, "app-sidebar", never, {}, {}, never, never, true, never>;
160
+ }
161
+
162
+ declare class AppLayout {
163
+ layoutService: LayoutService;
164
+ renderer: Renderer2;
165
+ router: Router;
166
+ overlayMenuOpenSubscription: Subscription;
167
+ menuOutsideClickListener: any;
168
+ appSidebar: AppSidebar;
169
+ appTopBar: AppTopbar;
170
+ constructor(layoutService: LayoutService, renderer: Renderer2, router: Router);
171
+ isOutsideClicked(event: MouseEvent): boolean;
172
+ hideMenu(): void;
173
+ blockBodyScroll(): void;
174
+ unblockBodyScroll(): void;
175
+ get containerClass(): {
176
+ 'layout-overlay': boolean;
177
+ 'layout-static': boolean;
178
+ 'layout-static-inactive': boolean;
179
+ 'layout-overlay-active': boolean;
180
+ 'layout-mobile-active': boolean;
181
+ };
182
+ ngOnDestroy(): void;
183
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppLayout, never>;
184
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppLayout, "app-layout", never, {}, {}, never, never, true, never>;
185
+ }
186
+
187
+ interface Footer {
188
+ leftLogoPath?: {
189
+ light?: string;
190
+ dark?: string;
191
+ };
192
+ rightLogoPath?: {
193
+ light?: string;
194
+ dark?: string;
195
+ };
196
+ version?: string;
197
+ copyright?: string;
198
+ }
199
+
200
+ type SmzUILayoutConfigType = {
201
+ sidebar: WritableSignal<MenuItem[]>;
202
+ footer: WritableSignal<Footer>;
203
+ topbar: WritableSignal<Topbar>;
204
+ layout: WritableSignal<LayoutConfig>;
205
+ state: WritableSignal<LayoutState>;
206
+ hasClaim?: (claims: string[]) => boolean;
207
+ };
208
+ declare class SmzUILayout {
209
+ hasClaim: (claims: string[]) => boolean;
210
+ sidebar: WritableSignal<MenuItem[]>;
211
+ footer: WritableSignal<Footer>;
212
+ topbar: WritableSignal<Topbar>;
213
+ layout: WritableSignal<LayoutConfig>;
214
+ state: WritableSignal<LayoutState>;
215
+ setConfig(config: SmzUILayoutConfigType): void;
216
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmzUILayout, never>;
217
+ static ɵprov: i0.ɵɵInjectableDeclaration<SmzUILayout>;
218
+ }
219
+
220
+ declare const SMZ_UI_LAYOUT_CONFIG: InjectionToken<SmzUILayoutConfigType>;
221
+ declare function provideSmzUILayout(initializers: (() => SmzUILayoutConfigType[])): EnvironmentProviders;
222
+
223
+ declare class AppFloatingConfigurator {
224
+ LayoutService: LayoutService;
225
+ isDarkTheme: i0.Signal<boolean>;
226
+ toggleDarkMode(): void;
227
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppFloatingConfigurator, never>;
228
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppFloatingConfigurator, "app-floating-configurator", never, {}, {}, never, never, true, never>;
229
+ }
230
+
231
+ interface ErrorPageButton {
232
+ label: string;
233
+ url: string;
234
+ command: () => void;
235
+ severity?: 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast';
236
+ }
237
+ interface ErrorPagesConfig {
238
+ notfound?: {
239
+ code: number;
240
+ title: string;
241
+ message: string;
242
+ links: {
243
+ icon: string;
244
+ title: string;
245
+ description: string;
246
+ url: string;
247
+ }[];
248
+ buttons: ErrorPageButton[];
249
+ };
250
+ access?: {
251
+ icon: string;
252
+ title: string;
253
+ message: string;
254
+ imagePath: string;
255
+ buttons: ErrorPageButton[];
256
+ };
257
+ error?: {
258
+ icon: string;
259
+ title: string;
260
+ message: string;
261
+ imagePath: string;
262
+ buttons: ErrorPageButton[];
263
+ };
264
+ }
265
+ declare class ErrorPagesConfigService {
266
+ readonly config: i0.WritableSignal<ErrorPagesConfig>;
267
+ updateConfig(newConfig: Partial<ErrorPagesConfig>): void;
268
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorPagesConfigService, never>;
269
+ static ɵprov: i0.ɵɵInjectableDeclaration<ErrorPagesConfigService>;
270
+ }
271
+
272
+ declare class AccessPageComponent {
273
+ readonly config: ErrorPagesConfig;
274
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccessPageComponent, never>;
275
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccessPageComponent, "app-access", never, {}, {}, never, never, true, never>;
276
+ }
277
+
278
+ declare class ErrorPageComponent {
279
+ readonly config: ErrorPagesConfig;
280
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorPageComponent, never>;
281
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorPageComponent, "app-error", never, {}, {}, never, never, true, never>;
282
+ }
283
+
284
+ declare class NotfoundPageComponent {
285
+ readonly config: ErrorPagesConfig;
286
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotfoundPageComponent, never>;
287
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotfoundPageComponent, "app-notfound", never, {}, {}, never, never, true, never>;
288
+ }
289
+
290
+ declare const ErrorsRoutes: Routes;
291
+
292
+ declare enum LoggingScope {
293
+ NavigationService = "NavigationService",
294
+ PageTitleService = "PageTitleService"
295
+ }
296
+
297
+ interface LoggingConfig {
298
+ enabled: boolean;
299
+ production?: boolean;
300
+ level?: 'debug' | 'info' | 'warn' | 'error';
301
+ restrictedScopes?: (LoggingScope | string)[];
302
+ }
303
+
304
+ type SmzLayoutLoggingConfigType = {
305
+ logging: WritableSignal<LoggingConfig>;
306
+ };
307
+ declare class SmzLayoutLogging {
308
+ logging: WritableSignal<LoggingConfig>;
309
+ setConfig(config: SmzLayoutLoggingConfigType): void;
310
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmzLayoutLogging, never>;
311
+ static ɵprov: i0.ɵɵInjectableDeclaration<SmzLayoutLogging>;
312
+ }
313
+
314
+ declare const SMZ_LAYOUT_LOGGING_CONFIG: InjectionToken<SmzLayoutLoggingConfigType>;
315
+ declare function provideSmzLayoutLogging(initializers: (() => SmzLayoutLoggingConfigType[])): EnvironmentProviders;
316
+
317
+ interface ScopedLogger {
318
+ log(message?: any, ...optionalParams: any[]): void;
319
+ warn(message?: any, ...optionalParams: any[]): void;
320
+ error(message?: any, ...optionalParams: any[]): void;
321
+ debug(message?: any, ...optionalParams: any[]): void;
322
+ }
323
+ declare class LoggingService {
324
+ private configFn;
325
+ private enabled;
326
+ private levelRank;
327
+ /** expose current settings */
328
+ readonly isEnabled: i0.Signal<boolean>;
329
+ readonly currentLevel: i0.Signal<"error" | "debug" | "info" | "warn">;
330
+ readonly activeScopes: i0.Signal<string[]>;
331
+ /** toggle logging global */
332
+ enable(): void;
333
+ disable(): void;
334
+ toggle(): void;
335
+ private shouldLog;
336
+ log(message?: any, ...optionalParams: any[]): void;
337
+ warn(message?: any, ...optionalParams: any[]): void;
338
+ error(message?: any, ...optionalParams: any[]): void;
339
+ debug(message?: any, ...optionalParams: any[]): void;
340
+ /**
341
+ * Retorna um logger com prefixo [owner] e restringe pelos scopes do config
342
+ * owner agora é um LoggingScope ou string
343
+ */
344
+ scoped(owner: LoggingScope | string): ScopedLogger;
345
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoggingService, never>;
346
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoggingService>;
347
+ }
348
+
349
+ export { AccessPageComponent, AppFloatingConfigurator, AppLayout, ErrorPageComponent, ErrorPagesConfigService, ErrorsRoutes, LayoutService, LoggingScope, LoggingService, NotfoundPageComponent, SMZ_LAYOUT_LOGGING_CONFIG, SMZ_UI_LAYOUT_CONFIG, SmzLayoutLogging, SmzUILayout, provideSmzLayoutLogging, provideSmzUILayout };
350
+ export type { Footer, LayoutConfig, LayoutState, LoggingConfig, ScopedLogger, SmzLayoutLoggingConfigType, SmzUILayoutConfigType, Topbar };
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-smz/layout" />
5
- export * from './public-api';
@@ -1,25 +0,0 @@
1
- import { WritableSignal } from '@angular/core';
2
- import { MenuItem } from 'primeng/api';
3
- import { Footer } from '../layout/component/app.footer';
4
- import { Topbar } from '../layout/component/app.topbar';
5
- import { LayoutConfig, LayoutState } from '../layout/service/layout.service';
6
- import * as i0 from "@angular/core";
7
- export type SmzUILayoutConfigType = {
8
- sidebar: WritableSignal<MenuItem[]>;
9
- footer: WritableSignal<Footer>;
10
- topbar: WritableSignal<Topbar>;
11
- layout: WritableSignal<LayoutConfig>;
12
- state: WritableSignal<LayoutState>;
13
- hasClaim?: (claims: string[]) => boolean;
14
- };
15
- export declare class SmzUILayout {
16
- hasClaim: (claims: string[]) => boolean;
17
- sidebar: WritableSignal<MenuItem[]>;
18
- footer: WritableSignal<Footer>;
19
- topbar: WritableSignal<Topbar>;
20
- layout: WritableSignal<LayoutConfig>;
21
- state: WritableSignal<LayoutState>;
22
- setConfig(config: SmzUILayoutConfigType): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<SmzUILayout, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<SmzUILayout>;
25
- }
@@ -1,2 +0,0 @@
1
- export * from './config';
2
- export * from './provide';
@@ -1,4 +0,0 @@
1
- import { EnvironmentProviders, InjectionToken } from '@angular/core';
2
- import { SmzUILayoutConfigType } from './config';
3
- export declare const SMZ_UI_LAYOUT_CONFIG: InjectionToken<SmzUILayoutConfigType>;
4
- export declare function provideSmzUILayout(initializers: (() => SmzUILayoutConfigType[])): EnvironmentProviders;
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AccessPageComponent {
3
- readonly config: import("./errors-pages-service").ErrorPagesConfig;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AccessPageComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<AccessPageComponent, "app-access", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ErrorPageComponent {
3
- readonly config: import("./errors-pages-service").ErrorPagesConfig;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorPageComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<ErrorPageComponent, "app-error", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,41 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export interface ErrorPageButton {
3
- label: string;
4
- url: string;
5
- command: () => void;
6
- severity?: 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast';
7
- }
8
- export interface ErrorPagesConfig {
9
- notfound?: {
10
- code: number;
11
- title: string;
12
- message: string;
13
- links: {
14
- icon: string;
15
- title: string;
16
- description: string;
17
- url: string;
18
- }[];
19
- buttons: ErrorPageButton[];
20
- };
21
- access?: {
22
- icon: string;
23
- title: string;
24
- message: string;
25
- imagePath: string;
26
- buttons: ErrorPageButton[];
27
- };
28
- error?: {
29
- icon: string;
30
- title: string;
31
- message: string;
32
- imagePath: string;
33
- buttons: ErrorPageButton[];
34
- };
35
- }
36
- export declare class ErrorPagesConfigService {
37
- readonly config: import("@angular/core").WritableSignal<ErrorPagesConfig>;
38
- updateConfig(newConfig: Partial<ErrorPagesConfig>): void;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorPagesConfigService, never>;
40
- static ɵprov: i0.ɵɵInjectableDeclaration<ErrorPagesConfigService>;
41
- }
@@ -1,2 +0,0 @@
1
- import { Routes } from '@angular/router';
2
- export declare const ErrorsRoutes: Routes;
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class NotfoundPageComponent {
3
- readonly config: import("./errors-pages-service").ErrorPagesConfig;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NotfoundPageComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NotfoundPageComponent, "app-notfound", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,97 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { PrimeNG } from 'primeng/config';
4
- import { LayoutService } from '../service/layout.service';
5
- import * as i0 from "@angular/core";
6
- declare type SurfacesType = {
7
- name?: string;
8
- palette?: {
9
- 0?: string;
10
- 50?: string;
11
- 100?: string;
12
- 200?: string;
13
- 300?: string;
14
- 400?: string;
15
- 500?: string;
16
- 600?: string;
17
- 700?: string;
18
- 800?: string;
19
- 900?: string;
20
- 950?: string;
21
- };
22
- };
23
- export declare class AppConfigurator implements OnInit {
24
- router: Router;
25
- config: PrimeNG;
26
- layoutService: LayoutService;
27
- platformId: Object;
28
- primeNG: PrimeNG;
29
- presets: string[];
30
- showMenuModeButton: import("@angular/core").WritableSignal<boolean>;
31
- menuModeOptions: {
32
- label: string;
33
- value: string;
34
- }[];
35
- ngOnInit(): void;
36
- surfaces: SurfacesType[];
37
- selectedPrimaryColor: import("@angular/core").Signal<string>;
38
- selectedSurfaceColor: import("@angular/core").Signal<string>;
39
- selectedPreset: import("@angular/core").Signal<string>;
40
- menuMode: import("@angular/core").Signal<string>;
41
- primaryColors: import("@angular/core").Signal<SurfacesType[]>;
42
- getPresetExt(): {
43
- semantic: {
44
- primary: {
45
- 0?: string;
46
- 50?: string;
47
- 100?: string;
48
- 200?: string;
49
- 300?: string;
50
- 400?: string;
51
- 500?: string;
52
- 600?: string;
53
- 700?: string;
54
- 800?: string;
55
- 900?: string;
56
- 950?: string;
57
- };
58
- colorScheme: {
59
- light: {
60
- primary: {
61
- color: string;
62
- contrastColor: string;
63
- hoverColor: string;
64
- activeColor: string;
65
- };
66
- highlight: {
67
- background: string;
68
- focusBackground: string;
69
- color: string;
70
- focusColor: string;
71
- };
72
- };
73
- dark: {
74
- primary: {
75
- color: string;
76
- contrastColor: string;
77
- hoverColor: string;
78
- activeColor: string;
79
- };
80
- highlight: {
81
- background: string;
82
- focusBackground: string;
83
- color: string;
84
- focusColor: string;
85
- };
86
- };
87
- };
88
- };
89
- };
90
- updateColors(event: any, type: string, color: any): void;
91
- applyTheme(type: string, color: any): void;
92
- onPresetChange(event: any): void;
93
- onMenuModeChange(event: string): void;
94
- static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigurator, never>;
95
- static ɵcmp: i0.ɵɵComponentDeclaration<AppConfigurator, "app-configurator", never, {}, {}, never, never, true, never>;
96
- }
97
- export {};
@@ -1,9 +0,0 @@
1
- import { LayoutService } from '../service/layout.service';
2
- import * as i0 from "@angular/core";
3
- export declare class AppFloatingConfigurator {
4
- LayoutService: LayoutService;
5
- isDarkTheme: import("@angular/core").Signal<boolean>;
6
- toggleDarkMode(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<AppFloatingConfigurator, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<AppFloatingConfigurator, "app-floating-configurator", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,21 +0,0 @@
1
- import { WritableSignal } from '@angular/core';
2
- import { LayoutService } from '../service/layout.service';
3
- import * as i0 from "@angular/core";
4
- export declare class AppFooter {
5
- data: WritableSignal<Footer>;
6
- layoutService: LayoutService;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<AppFooter, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<AppFooter, "app-footer", never, {}, {}, never, never, true, never>;
9
- }
10
- export interface Footer {
11
- leftLogoPath?: {
12
- light?: string;
13
- dark?: string;
14
- };
15
- rightLogoPath?: {
16
- light?: string;
17
- dark?: string;
18
- };
19
- version?: string;
20
- copyright?: string;
21
- }