valtech-components 2.0.868 → 2.0.870

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.
@@ -41,7 +41,7 @@ export interface UserAvatarMetadata {
41
41
  avatarUrl?: string;
42
42
  /**
43
43
  * Tamaño:
44
- * - `'xsmall'` 24px
44
+ * - `'xsmall'` 28px
45
45
  * - `'small'` (default) 32px
46
46
  * - `'medium'` 48px
47
47
  * - `'large'` 72px
@@ -0,0 +1,27 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * val-network-banner
4
+ *
5
+ * Banner de estado de red que empuja el contenido hacia abajo (no fixed/overlay).
6
+ * - Offline: banner rojo sin cierre, persiste hasta reconexion.
7
+ * - Reconexion: banner verde con boton de cierre y countdown 10s.
8
+ * - Online desde inicio: no renderiza nada.
9
+ *
10
+ * Colocar como primer hijo dentro de ion-content, antes de val-container.
11
+ *
12
+ * @example
13
+ * <val-network-banner />
14
+ */
15
+ export declare class NetworkBannerComponent {
16
+ private readonly i18n;
17
+ private readonly network;
18
+ readonly showBanner: import("@angular/core").Signal<boolean>;
19
+ readonly isOffline: import("@angular/core").Signal<boolean>;
20
+ readonly isReconnected: import("@angular/core").Signal<boolean>;
21
+ readonly countdown: import("@angular/core").Signal<number>;
22
+ readonly closeLabel: import("@angular/core").Signal<string>;
23
+ t(key: string): string;
24
+ dismiss(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<NetworkBannerComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<NetworkBannerComponent, "val-network-banner", never, {}, {}, never, never, true, never>;
27
+ }
@@ -0,0 +1 @@
1
+ export { NetworkStatusService } from './network-status.service';
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NetworkStatusService {
3
+ private _isOnline;
4
+ private _justReconnected;
5
+ private _countdown;
6
+ private _countdownTimer?;
7
+ readonly isOnline: import("@angular/core").Signal<boolean>;
8
+ readonly justReconnected: import("@angular/core").Signal<boolean>;
9
+ readonly countdown: import("@angular/core").Signal<number>;
10
+ constructor();
11
+ private onOnline;
12
+ private onOffline;
13
+ private startCountdown;
14
+ private clearCountdown;
15
+ dismiss(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<NetworkStatusService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<NetworkStatusService>;
18
+ }
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "2.0.868";
5
+ export declare const VERSION = "2.0.870";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.868",
3
+ "version": "2.0.870",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
package/public-api.d.ts CHANGED
@@ -277,6 +277,8 @@ export * from './lib/services/firebase';
277
277
  export * from './lib/services/auth';
278
278
  export * from './lib/services/i18n';
279
279
  export * from './lib/services/preferences';
280
+ export * from './lib/services/network-status';
281
+ export * from './lib/components/molecules/network-banner/network-banner.component';
280
282
  export * from './lib/services/page-refresh/page-refresh.service';
281
283
  export * from './lib/services/refreshable-stream';
282
284
  export * from './lib/services/app-config';