valtech-components 4.0.42 → 4.0.45
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/organisms/account-view/account-view.component.mjs +3 -3
- package/esm2022/lib/components/organisms/auth-cta/auth-cta.component.mjs +23 -7
- package/esm2022/lib/components/organisms/auth-cta/types.mjs +1 -1
- package/esm2022/lib/components/organisms/change-email-modal/change-email-modal.component.mjs +3 -3
- package/esm2022/lib/components/organisms/change-password-modal/change-password-modal.component.mjs +3 -3
- package/esm2022/lib/components/organisms/delete-account-modal/delete-account-modal.component.mjs +3 -3
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +3 -3
- package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.component.mjs +30 -6
- package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.i18n.mjs +3 -1
- package/esm2022/lib/services/auth/auth.service.mjs +26 -28
- package/esm2022/lib/services/auth/oauth-callback.component.mjs +13 -11
- package/esm2022/lib/services/auth/oauth.service.mjs +10 -14
- package/esm2022/lib/services/auth/storage.service.mjs +7 -11
- package/esm2022/lib/services/firebase/config.mjs +5 -5
- package/esm2022/lib/services/theme.service.mjs +1 -3
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +1 -2
- package/fesm2022/valtech-components.mjs +119 -129
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/auth-cta/types.d.ts +5 -1
- package/lib/components/organisms/switch-org-modal/switch-org-modal.component.d.ts +4 -1
- package/lib/services/auth/oauth.service.d.ts +7 -6
- package/lib/services/auth/storage.service.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/src/lib/services/firebase/firebase-messaging-sw.js +145 -0
- package/esm2022/lib/components/atoms/splash/splash.component.mjs +0 -45
- package/lib/components/atoms/splash/splash.component.d.ts +0 -23
|
@@ -23,10 +23,14 @@ export interface AuthCtaMetadata {
|
|
|
23
23
|
registerRoute?: string | any[];
|
|
24
24
|
/** External href for the register button */
|
|
25
25
|
registerHref?: string;
|
|
26
|
-
/** Decorative image shown to the right (desktop) */
|
|
26
|
+
/** Decorative image shown to the right (desktop) or above the text */
|
|
27
27
|
image?: string;
|
|
28
28
|
/** Alt text for the image */
|
|
29
29
|
imageAlt?: string;
|
|
30
|
+
/** Where to place the image. Default: 'side' (right on desktop, below on mobile) */
|
|
31
|
+
imagePosition?: 'side' | 'top';
|
|
32
|
+
/** Size of the image when imagePosition is 'top'. Default: 'small' */
|
|
33
|
+
imageSize?: 'small' | 'large';
|
|
30
34
|
/** Background color — Ionic color name or any CSS color */
|
|
31
35
|
backgroundColor?: string;
|
|
32
36
|
/** Content alignment. Default: 'center' */
|
|
@@ -30,6 +30,8 @@ export declare class SwitchOrgModalComponent {
|
|
|
30
30
|
onSuccess?: () => void;
|
|
31
31
|
/** Callback al hacer clic en "Mi perfil" (pasado por `componentProps`). */
|
|
32
32
|
onProfileClick?: () => void;
|
|
33
|
+
/** Callback al hacer clic en "Nueva organización". Si está presente, muestra el CTA. */
|
|
34
|
+
onCreateOrg?: () => void;
|
|
33
35
|
/** Namespace i18n con que la vista resuelve sus textos. */
|
|
34
36
|
i18nNamespace: string;
|
|
35
37
|
readonly orgs: import("@angular/core").WritableSignal<Organization[]>;
|
|
@@ -50,8 +52,9 @@ export declare class SwitchOrgModalComponent {
|
|
|
50
52
|
onSelect(org: Organization): Promise<void>;
|
|
51
53
|
private loadOrgs;
|
|
52
54
|
onProfile(): void;
|
|
55
|
+
onCreateNew(): void;
|
|
53
56
|
dismiss(): void;
|
|
54
57
|
t(key: string): string;
|
|
55
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchOrgModalComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchOrgModalComponent, "val-switch-org-modal", never, { "_modalRef": { "alias": "_modalRef"; "required": false; }; "onSuccess": { "alias": "onSuccess"; "required": false; }; "onProfileClick": { "alias": "onProfileClick"; "required": false; }; "i18nNamespace": { "alias": "i18nNamespace"; "required": false; }; }, {}, never, never, true, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchOrgModalComponent, "val-switch-org-modal", never, { "_modalRef": { "alias": "_modalRef"; "required": false; }; "onSuccess": { "alias": "onSuccess"; "required": false; }; "onProfileClick": { "alias": "onProfileClick"; "required": false; }; "onCreateOrg": { "alias": "onCreateOrg"; "required": false; }; "i18nNamespace": { "alias": "i18nNamespace"; "required": false; }; }, {}, never, never, true, never>;
|
|
57
60
|
}
|
|
@@ -108,12 +108,13 @@ export declare class OAuthService {
|
|
|
108
108
|
/**
|
|
109
109
|
* Verifica que el callback traiga el nonce del flujo actual (M-07).
|
|
110
110
|
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
111
|
+
* Estricto: si el opener generó un nonce (siempre, en clientes nuevos) exige
|
|
112
|
+
* que el callback lo traiga y coincida. Un payload forjado en localStorage por
|
|
113
|
+
* XSS no conoce el nonce (vive solo en memoria) → se rechaza.
|
|
114
|
+
*
|
|
115
|
+
* ⚠️ Requiere que el backend ya eche `client_nonce` en el callback. Deploy:
|
|
116
|
+
* backend ANTES que el frontend, si no este check rechaza callbacks legítimos
|
|
117
|
+
* (sin nonce) durante la ventana de transición.
|
|
117
118
|
*/
|
|
118
119
|
private isNonceValid;
|
|
119
120
|
/**
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from './lib/directives/has-permission.directive';
|
|
|
3
3
|
export * from './lib/components/atoms/avatar/avatar.component';
|
|
4
4
|
export * from './lib/components/atoms/avatar/types';
|
|
5
5
|
export * from './lib/components/atoms/box/box.component';
|
|
6
|
-
export * from './lib/components/atoms/splash/splash.component';
|
|
7
6
|
export * from './lib/components/atoms/box/types';
|
|
8
7
|
export * from './lib/components/atoms/glow/glow.component';
|
|
9
8
|
export * from './lib/components/atoms/glow/types';
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Firebase Messaging Service Worker
|
|
3
|
+
*
|
|
4
|
+
* Service Worker estático para Firebase Cloud Messaging.
|
|
5
|
+
* Carga la configuración dinámicamente desde /firebase-config.js.
|
|
6
|
+
*
|
|
7
|
+
* CONFIGURACIÓN:
|
|
8
|
+
* 1. Crea firebase.config.json con tu configuración de Firebase
|
|
9
|
+
* 2. Ejecuta: npm run generate:firebase-config
|
|
10
|
+
* Esto genera /firebase-config.js con: self.FIREBASE_CONFIG = {...}
|
|
11
|
+
* 3. Agrega este SW y firebase-config.js a los assets de angular.json
|
|
12
|
+
*
|
|
13
|
+
* Ver README.md para documentación completa.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
// Importar Firebase scripts
|
|
17
|
+
importScripts('https://www.gstatic.com/firebasejs/10.7.0/firebase-app-compat.js');
|
|
18
|
+
importScripts('https://www.gstatic.com/firebasejs/10.7.0/firebase-messaging-compat.js');
|
|
19
|
+
|
|
20
|
+
// Importar configuración desde archivo externo (generado en build)
|
|
21
|
+
// Este archivo define: self.FIREBASE_CONFIG = { ... }
|
|
22
|
+
try {
|
|
23
|
+
importScripts('/firebase-config.js');
|
|
24
|
+
} catch (e) {
|
|
25
|
+
console.error('[SW] No se pudo cargar firebase-config.js:', e);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Verificar que la configuración existe
|
|
29
|
+
if (!self.FIREBASE_CONFIG) {
|
|
30
|
+
console.error('[SW] FIREBASE_CONFIG no está definido.');
|
|
31
|
+
console.error('[SW] Ejecuta: npm run generate:firebase-config');
|
|
32
|
+
} else {
|
|
33
|
+
// Inicializar Firebase
|
|
34
|
+
firebase.initializeApp(self.FIREBASE_CONFIG);
|
|
35
|
+
|
|
36
|
+
// Obtener instancia de messaging
|
|
37
|
+
const messaging = firebase.messaging();
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Handler para mensajes en background.
|
|
41
|
+
*/
|
|
42
|
+
messaging.onBackgroundMessage((payload) => {
|
|
43
|
+
console.log('[SW] Mensaje recibido en background:', payload);
|
|
44
|
+
|
|
45
|
+
// Web push usa mensajes data-only (sin bloque `notification`) para que el
|
|
46
|
+
// navegador NO auto-muestre una notificación duplicada — el SW es el único
|
|
47
|
+
// que la pinta. Title/body/icon llegan dentro de `data`. Se mantiene el
|
|
48
|
+
// fallback a `payload.notification` por compatibilidad con mensajes
|
|
49
|
+
// legacy o nativos que sí traen el bloque.
|
|
50
|
+
const data = payload.data || {};
|
|
51
|
+
const notificationTitle =
|
|
52
|
+
payload.notification?.title || data.title || 'Nueva notificación';
|
|
53
|
+
const notificationBody = payload.notification?.body || data.body || '';
|
|
54
|
+
const notificationIcon =
|
|
55
|
+
payload.notification?.icon || data.icon || '/assets/icon/favicon.ico';
|
|
56
|
+
|
|
57
|
+
const notificationOptions = {
|
|
58
|
+
body: notificationBody,
|
|
59
|
+
icon: notificationIcon,
|
|
60
|
+
image: payload.notification?.image,
|
|
61
|
+
badge: '/assets/icon/badge.png',
|
|
62
|
+
tag: payload.messageId || data.messageId || 'default',
|
|
63
|
+
data: {
|
|
64
|
+
...data,
|
|
65
|
+
messageId: payload.messageId || data.messageId,
|
|
66
|
+
title: notificationTitle,
|
|
67
|
+
body: notificationBody,
|
|
68
|
+
},
|
|
69
|
+
vibrate: [200, 100, 200],
|
|
70
|
+
requireInteraction: data.require_interaction === 'true',
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
return self.registration.showNotification(notificationTitle, notificationOptions);
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Handler para clicks en notificaciones.
|
|
78
|
+
*/
|
|
79
|
+
self.addEventListener('notificationclick', (event) => {
|
|
80
|
+
console.log('[SW] Click en notificación:', event);
|
|
81
|
+
event.notification.close();
|
|
82
|
+
|
|
83
|
+
const data = event.notification.data || {};
|
|
84
|
+
let targetUrl = '/';
|
|
85
|
+
|
|
86
|
+
if (data.route) {
|
|
87
|
+
targetUrl = data.route;
|
|
88
|
+
} else if (data.url) {
|
|
89
|
+
targetUrl = data.url;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (data.query_params) {
|
|
93
|
+
const separator = targetUrl.includes('?') ? '&' : '?';
|
|
94
|
+
targetUrl += separator + data.query_params;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const notificationPayload = {
|
|
98
|
+
type: 'NOTIFICATION_CLICK',
|
|
99
|
+
notification: {
|
|
100
|
+
title: data.title,
|
|
101
|
+
body: data.body,
|
|
102
|
+
data: data,
|
|
103
|
+
messageId: data.messageId,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
event.waitUntil(
|
|
108
|
+
clients
|
|
109
|
+
.matchAll({ type: 'window', includeUncontrolled: true })
|
|
110
|
+
.then((clientList) => {
|
|
111
|
+
// Siempre enviar postMessage para que la app pueda reaccionar
|
|
112
|
+
for (const client of clientList) {
|
|
113
|
+
client.postMessage(notificationPayload);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Navegar si hay route o url
|
|
117
|
+
if (targetUrl !== '/') {
|
|
118
|
+
for (const client of clientList) {
|
|
119
|
+
if ('navigate' in client) {
|
|
120
|
+
return client.navigate(targetUrl).then((c) => c?.focus());
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// Si no hay cliente abierto, abrir nueva ventana
|
|
124
|
+
if (clients.openWindow) {
|
|
125
|
+
return clients.openWindow(targetUrl);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Solo hacer focus si no hay navegación
|
|
130
|
+
for (const client of clientList) {
|
|
131
|
+
if ('focus' in client) {
|
|
132
|
+
return client.focus();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (clients.openWindow) {
|
|
136
|
+
return clients.openWindow('/');
|
|
137
|
+
}
|
|
138
|
+
})
|
|
139
|
+
);
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
self.addEventListener('notificationclose', (event) => {
|
|
143
|
+
console.log('[SW] Notificación cerrada:', event.notification.tag);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Component, input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* `val-splash` — splash a pantalla completa reutilizable, idéntico al de arranque
|
|
5
|
-
* de la app (`.app-splash` del `index.html`): logo centrado con pulse, fondo
|
|
6
|
-
* claro/oscuro vía `prefers-color-scheme`. Para cargas fundamentales dentro de la
|
|
7
|
-
* app (p.ej. el callback OAuth) que deben verse iguales al arranque, en vez de
|
|
8
|
-
* un segundo loader casi-duplicado.
|
|
9
|
-
*
|
|
10
|
-
* El logo apunta por defecto a `assets/images/main-{light,dark}.svg` — los mismos
|
|
11
|
-
* assets de la app consumer que usa el splash de `index.html` — y resuelven en
|
|
12
|
-
* runtime contra la app. Override por inputs si hace falta. Fondo overridable con
|
|
13
|
-
* las CSS vars `--val-splash-bg` / `--val-splash-bg-dark`.
|
|
14
|
-
*/
|
|
15
|
-
export class SplashComponent {
|
|
16
|
-
constructor() {
|
|
17
|
-
/** Logo para tema claro. Default = asset de la app (igual que index.html). */
|
|
18
|
-
this.logoLight = input('assets/images/main-light.svg');
|
|
19
|
-
/** Logo para tema oscuro (vía prefers-color-scheme). */
|
|
20
|
-
this.logoDark = input('assets/images/main-dark.svg');
|
|
21
|
-
/** Texto alternativo del logo. */
|
|
22
|
-
this.alt = input('Valtech');
|
|
23
|
-
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SplashComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: SplashComponent, isStandalone: true, selector: "val-splash", inputs: { logoLight: { classPropertyName: "logoLight", publicName: "logoLight", isSignal: true, isRequired: false, transformFunction: null }, logoDark: { classPropertyName: "logoDark", publicName: "logoDark", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
26
|
-
<div class="val-splash">
|
|
27
|
-
<picture>
|
|
28
|
-
<source media="(prefers-color-scheme: dark)" [srcset]="logoDark()" />
|
|
29
|
-
<img class="val-splash__logo" [src]="logoLight()" [alt]="alt()" />
|
|
30
|
-
</picture>
|
|
31
|
-
</div>
|
|
32
|
-
`, isInline: true, styles: [".val-splash{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:var(--val-splash-bg, #fbfbfb);z-index:9999;animation:val-splash-in .25s ease}.val-splash__logo{width:180px;max-width:50vw;animation:val-splash-pulse 1.8s ease-in-out infinite}@keyframes val-splash-in{0%{opacity:0}to{opacity:1}}@keyframes val-splash-pulse{0%,to{opacity:1}50%{opacity:.55}}@media (prefers-color-scheme: dark){.val-splash{background:var(--val-splash-bg-dark, #0e0420)}}\n"] }); }
|
|
33
|
-
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SplashComponent, decorators: [{
|
|
35
|
-
type: Component,
|
|
36
|
-
args: [{ selector: 'val-splash', standalone: true, template: `
|
|
37
|
-
<div class="val-splash">
|
|
38
|
-
<picture>
|
|
39
|
-
<source media="(prefers-color-scheme: dark)" [srcset]="logoDark()" />
|
|
40
|
-
<img class="val-splash__logo" [src]="logoLight()" [alt]="alt()" />
|
|
41
|
-
</picture>
|
|
42
|
-
</div>
|
|
43
|
-
`, styles: [".val-splash{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:var(--val-splash-bg, #fbfbfb);z-index:9999;animation:val-splash-in .25s ease}.val-splash__logo{width:180px;max-width:50vw;animation:val-splash-pulse 1.8s ease-in-out infinite}@keyframes val-splash-in{0%{opacity:0}to{opacity:1}}@keyframes val-splash-pulse{0%,to{opacity:1}50%{opacity:.55}}@media (prefers-color-scheme: dark){.val-splash{background:var(--val-splash-bg-dark, #0e0420)}}\n"] }]
|
|
44
|
-
}] });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsYXNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9hdG9tcy9zcGxhc2gvc3BsYXNoLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFFakQ7Ozs7Ozs7Ozs7O0dBV0c7QUFzREgsTUFBTSxPQUFPLGVBQWU7SUFyRDVCO1FBc0RFLDhFQUE4RTtRQUNyRSxjQUFTLEdBQUcsS0FBSyxDQUFDLDhCQUE4QixDQUFDLENBQUM7UUFDM0Qsd0RBQXdEO1FBQy9DLGFBQVEsR0FBRyxLQUFLLENBQUMsNkJBQTZCLENBQUMsQ0FBQztRQUN6RCxrQ0FBa0M7UUFDekIsUUFBRyxHQUFHLEtBQUssQ0FBQyxTQUFTLENBQUMsQ0FBQztLQUNqQzsrR0FQWSxlQUFlO21HQUFmLGVBQWUseWNBbERoQjs7Ozs7OztHQU9UOzs0RkEyQ1UsZUFBZTtrQkFyRDNCLFNBQVM7K0JBQ0UsWUFBWSxjQUNWLElBQUksWUFDTjs7Ozs7OztHQU9UIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBpbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIGB2YWwtc3BsYXNoYCDigJQgc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AgICAgICAwJSxcbiAgICAgICAgMTAwJSB7XG4gICAgICAgICAgb3BhY2l0eTogMTtcbiAgICAgICAgfVxuICAgICAgICA1MCUge1xuICAgICAgICAgIG9wYWNpdHk6IDAuNTU7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIEBtZWRpYSAocHJlZmVycy1jb2xvci1zY2hlbWU6IGRhcmspIHtcbiAgICAgICAgLnZhbC1zcGxhc2gge1xuICAgICAgICAgIGJhY2tncm91bmQ6IHZhcigtLXZhbC1zcGxhc2gtYmctZGFyaywgIzBlMDQyMCk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICBgLFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBTcGxhc2hDb21wb25lbnQge1xuICAvKiogTG9nbyBwYXJhIHRlbWEgY2xhcm8uIERlZmF1bHQgPSBhc3NldCBkZSBsYSBhcHAgKGlndWFsIHF1ZSBpbmRleC5odG1sKS4gKi9cbiAgcmVhZG9ubHkgbG9nb0xpZ2h0ID0gaW5wdXQoJ2Fzc2V0cy9pbWFnZXMvbWFpbi1saWdodC5zdmcnKTtcbiAgLyoqIExvZ28gcGFyYSB0ZW1hIG9zY3VybyAodsOtYSBwcmVmZXJzLWNvbG9yLXNjaGVtZSkuICovXG4gIHJlYWRvbmx5IGxvZ29EYXJrID0gaW5wdXQoJ2Fzc2V0cy9pbWFnZXMvbWFpbi1kYXJrLnN2ZycpO1xuICAvKiogVGV4dG8gYWx0ZXJuYXRpdm8gZGVsIGxvZ28uICovXG4gIHJlYWRvbmx5IGFsdCA9IGlucHV0KCdWYWx0ZWNoJyk7XG59XG4iXX0=
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* `val-splash` — splash a pantalla completa reutilizable, idéntico al de arranque
|
|
4
|
-
* de la app (`.app-splash` del `index.html`): logo centrado con pulse, fondo
|
|
5
|
-
* claro/oscuro vía `prefers-color-scheme`. Para cargas fundamentales dentro de la
|
|
6
|
-
* app (p.ej. el callback OAuth) que deben verse iguales al arranque, en vez de
|
|
7
|
-
* un segundo loader casi-duplicado.
|
|
8
|
-
*
|
|
9
|
-
* El logo apunta por defecto a `assets/images/main-{light,dark}.svg` — los mismos
|
|
10
|
-
* assets de la app consumer que usa el splash de `index.html` — y resuelven en
|
|
11
|
-
* runtime contra la app. Override por inputs si hace falta. Fondo overridable con
|
|
12
|
-
* las CSS vars `--val-splash-bg` / `--val-splash-bg-dark`.
|
|
13
|
-
*/
|
|
14
|
-
export declare class SplashComponent {
|
|
15
|
-
/** Logo para tema claro. Default = asset de la app (igual que index.html). */
|
|
16
|
-
readonly logoLight: import("@angular/core").InputSignal<string>;
|
|
17
|
-
/** Logo para tema oscuro (vía prefers-color-scheme). */
|
|
18
|
-
readonly logoDark: import("@angular/core").InputSignal<string>;
|
|
19
|
-
/** Texto alternativo del logo. */
|
|
20
|
-
readonly alt: import("@angular/core").InputSignal<string>;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SplashComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SplashComponent, "val-splash", never, { "logoLight": { "alias": "logoLight"; "required": false; "isSignal": true; }; "logoDark": { "alias": "logoDark"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
-
}
|