@ngx-smz/layout 21.10.0-next.11 → 21.10.0-next.13

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": "@ngx-smz/layout",
3
- "version": "21.10.0-next.11",
3
+ "version": "21.10.0-next.13",
4
4
  "peerDependencies": {
5
5
  "@ngx-smz/ui-kit": ">=21.10.0-0",
6
6
  "@ngx-smz/core": ">=21.10.0-0"
@@ -1,20 +1,20 @@
1
- :root {
2
- --primary-color: rgb(var(--smz-color-primary));
3
- --primary-contrast-color: rgb(var(--smz-color-on-primary));
4
- --text-color: rgb(var(--smz-color-fg));
5
- --text-color-secondary: rgb(var(--smz-color-fg-muted));
6
- --surface-border: rgb(var(--smz-color-line));
7
- --surface-card: rgb(var(--smz-color-surface-1));
8
- --surface-hover: rgb(var(--smz-color-surface-3));
9
- --surface-overlay: rgb(var(--smz-color-surface-2));
10
- --transition-duration: var(--smz-duration);
11
- --maskbg: rgb(0 0 0 / 0.4);
12
- --content-border-radius: var(--smz-radius-card);
13
- --layout-section-transition-duration: 0.2s;
14
- --element-transition-duration: var(--smz-duration);
15
- --focus-ring-width: 2px;
16
- --focus-ring-style: solid;
17
- --focus-ring-color: rgb(var(--smz-color-focus));
18
- --focus-ring-offset: 2px;
19
- --focus-ring-shadow: none;
20
- }
1
+ :root {
2
+ --primary-color: rgb(var(--smz-color-primary));
3
+ --primary-contrast-color: rgb(var(--smz-color-on-primary));
4
+ --text-color: rgb(var(--smz-color-fg));
5
+ --text-color-secondary: rgb(var(--smz-color-fg-muted));
6
+ --surface-border: rgb(var(--smz-color-line));
7
+ --surface-card: rgb(var(--smz-color-surface-1));
8
+ --surface-hover: rgb(var(--smz-color-surface-3));
9
+ --surface-overlay: rgb(var(--smz-color-surface-2));
10
+ --transition-duration: var(--smz-duration);
11
+ --maskbg: rgb(0 0 0 / 0.4);
12
+ --content-border-radius: var(--smz-radius-card);
13
+ --layout-section-transition-duration: 0.2s;
14
+ --element-transition-duration: var(--smz-duration);
15
+ --focus-ring-width: 2px;
16
+ --focus-ring-style: solid;
17
+ --focus-ring-color: rgb(var(--smz-color-focus));
18
+ --focus-ring-offset: 2px;
19
+ --focus-ring-shadow: none;
20
+ }
@@ -1,5 +1,5 @@
1
- :root[class*='app-dark'] {
2
- --surface-ground: rgb(var(--smz-color-surface-0));
3
- --code-background: #1e293b;
4
- --code-color: #f1f5f9;
5
- }
1
+ :root[class*='app-dark'] {
2
+ --surface-ground: rgb(var(--smz-color-surface-0));
3
+ --code-background: #1e293b;
4
+ --code-color: #f1f5f9;
5
+ }
@@ -1,5 +1,5 @@
1
- :root {
2
- --surface-ground: rgb(var(--smz-color-surface-0));
3
- --code-background: #0f172a;
4
- --code-color: #e2e8f0;
5
- }
1
+ :root {
2
+ --surface-ground: rgb(var(--smz-color-surface-0));
3
+ --code-background: #0f172a;
4
+ --code-color: #e2e8f0;
5
+ }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ComponentRef, Signal, ElementRef, Renderer2, WritableSignal, InjectionToken, EnvironmentProviders } from '@angular/core';
2
+ import { ComponentRef, Signal, ElementRef, OnDestroy, Renderer2, WritableSignal, InjectionToken, EnvironmentProviders } from '@angular/core';
3
3
  import { Router, Routes } from '@angular/router';
4
4
  import * as rxjs from 'rxjs';
5
5
  import { Subscription } from 'rxjs';
@@ -37,7 +37,7 @@ declare class LayoutService {
37
37
  menuSource$: rxjs.Observable<MenuChangeEvent>;
38
38
  resetSource$: rxjs.Observable<unknown>;
39
39
  configUpdate$: rxjs.Observable<LayoutConfig>;
40
- overlayOpen$: rxjs.Observable<any>;
40
+ overlayOpen$: rxjs.Observable<null>;
41
41
  theme: i0.Signal<"light" | "dark">;
42
42
  isSidebarActive: i0.Signal<boolean>;
43
43
  isDarkTheme: i0.Signal<boolean>;
@@ -161,12 +161,12 @@ declare class AppSidebar {
161
161
  static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebar, "app-sidebar", never, {}, {}, never, never, true, never>;
162
162
  }
163
163
 
164
- declare class AppLayout {
164
+ declare class AppLayout implements OnDestroy {
165
165
  layoutService: LayoutService;
166
166
  renderer: Renderer2;
167
167
  router: Router;
168
168
  overlayMenuOpenSubscription: Subscription;
169
- menuOutsideClickListener: any;
169
+ menuOutsideClickListener: (() => void) | null;
170
170
  appSidebar: AppSidebar;
171
171
  appTopBar: AppTopbar;
172
172
  constructor(layoutService: LayoutService, renderer: Renderer2, router: Router);
@@ -174,14 +174,7 @@ declare class AppLayout {
174
174
  hideMenu(): void;
175
175
  blockBodyScroll(): void;
176
176
  unblockBodyScroll(): void;
177
- get containerClass(): {
178
- 'layout-overlay': boolean;
179
- 'layout-static': boolean;
180
- 'layout-static-inactive': boolean;
181
- 'layout-overlay-active': boolean;
182
- 'layout-mobile-active': boolean;
183
- 'layout-sidebar-hidden': boolean;
184
- };
177
+ get containerClass(): Record<string, boolean>;
185
178
  ngOnDestroy(): void;
186
179
  static ɵfac: i0.ɵɵFactoryDeclaration<AppLayout, never>;
187
180
  static ɵcmp: i0.ɵɵComponentDeclaration<AppLayout, "app-layout", never, {}, {}, never, never, true, never>;
@@ -289,8 +282,7 @@ declare function configureSmzUILayout(): SmzUILayoutProvisionBuilder;
289
282
  *
290
283
  * @param resolveHasClaim Optional factory run **during app initialization** (injection context).
291
284
  */
292
- declare function provideSmzUILayout(initializers: () => SmzUILayoutConfigType[]): EnvironmentProviders;
293
- declare function provideSmzUILayout(initializers: () => SmzUILayoutConfigType[], resolveHasClaim: () => (claims: string[]) => boolean): EnvironmentProviders;
285
+ declare function provideSmzUILayout(initializers: () => SmzUILayoutConfigType[], resolveHasClaim?: () => (claims: string[]) => boolean): EnvironmentProviders;
294
286
 
295
287
  declare class AppFloatingConfigurator {
296
288
  LayoutService: LayoutService;
@@ -376,9 +368,9 @@ interface LoggingConfig {
376
368
  restrictedScopes?: (LoggingScope | string)[];
377
369
  }
378
370
 
379
- type SmzLayoutLoggingConfigType = {
371
+ interface SmzLayoutLoggingConfigType {
380
372
  logging: WritableSignal<LoggingConfig>;
381
- };
373
+ }
382
374
  declare class SmzLayoutLogging {
383
375
  logging: WritableSignal<LoggingConfig>;
384
376
  setConfig(config: SmzLayoutLoggingConfigType): void;
@@ -390,10 +382,10 @@ declare const SMZ_LAYOUT_LOGGING_CONFIG: InjectionToken<SmzLayoutLoggingConfigTy
390
382
  declare function provideSmzLayoutLogging(initializers: (() => SmzLayoutLoggingConfigType[])): EnvironmentProviders;
391
383
 
392
384
  interface ScopedLogger {
393
- log(message?: any, ...optionalParams: any[]): void;
394
- warn(message?: any, ...optionalParams: any[]): void;
395
- error(message?: any, ...optionalParams: any[]): void;
396
- debug(message?: any, ...optionalParams: any[]): void;
385
+ log(message?: unknown, ...optionalParams: unknown[]): void;
386
+ warn(message?: unknown, ...optionalParams: unknown[]): void;
387
+ error(message?: unknown, ...optionalParams: unknown[]): void;
388
+ debug(message?: unknown, ...optionalParams: unknown[]): void;
397
389
  }
398
390
  declare class LoggingService {
399
391
  private configFn;
@@ -408,10 +400,10 @@ declare class LoggingService {
408
400
  disable(): void;
409
401
  toggle(): void;
410
402
  private shouldLog;
411
- log(message?: any, ...optionalParams: any[]): void;
412
- warn(message?: any, ...optionalParams: any[]): void;
413
- error(message?: any, ...optionalParams: any[]): void;
414
- debug(message?: any, ...optionalParams: any[]): void;
403
+ log(message?: unknown, ...optionalParams: unknown[]): void;
404
+ warn(message?: unknown, ...optionalParams: unknown[]): void;
405
+ error(message?: unknown, ...optionalParams: unknown[]): void;
406
+ debug(message?: unknown, ...optionalParams: unknown[]): void;
415
407
  /**
416
408
  * Retorna um logger com prefixo [owner] e restringe pelos scopes do config
417
409
  * owner agora é um LoggingScope ou string