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.
- package/esm2022/lib/components/atoms/user-avatar/types.mjs +1 -1
- package/esm2022/lib/components/atoms/user-avatar/user-avatar.component.mjs +3 -3
- package/esm2022/lib/components/molecules/network-banner/network-banner.component.mjs +98 -0
- package/esm2022/lib/components/molecules/textarea-input/textarea-input.component.mjs +3 -3
- package/esm2022/lib/components/templates/page-wrapper/page-wrapper.component.mjs +6 -2
- package/esm2022/lib/services/errors/interpret-error.mjs +5 -9
- package/esm2022/lib/services/i18n/default-content.mjs +17 -1
- package/esm2022/lib/services/network-status/index.mjs +2 -0
- package/esm2022/lib/services/network-status/network-status.service.mjs +59 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/valtech-components.mjs +181 -15
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/user-avatar/types.d.ts +1 -1
- package/lib/components/molecules/network-banner/network-banner.component.d.ts +27 -0
- package/lib/services/network-status/index.d.ts +1 -0
- package/lib/services/network-status/network-status.service.d.ts +18 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -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
package/package.json
CHANGED
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';
|