valtech-components 2.0.840 → 2.0.841
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/services/errors/error-logging.interceptor.mjs +75 -0
- package/esm2022/lib/services/errors/index.mjs +11 -5
- package/esm2022/lib/services/errors/provide-error-handling.mjs +39 -0
- package/esm2022/lib/services/errors/valtech-error.service.mjs +157 -0
- package/esm2022/lib/services/icons.service.mjs +4 -2
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +319 -57
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/services/errors/error-logging.interceptor.d.ts +26 -0
- package/lib/services/errors/index.d.ts +11 -4
- package/lib/services/errors/provide-error-handling.d.ts +34 -0
- package/lib/services/errors/valtech-error.service.d.ts +102 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { IonAvatar, IonCard, IonIcon, IonButton, IonSpinner, IonText, IonModal,
|
|
|
5
5
|
import * as i1 from '@angular/common';
|
|
6
6
|
import { CommonModule, NgStyle, NgFor, isPlatformBrowser, DOCUMENT, NgClass } from '@angular/common';
|
|
7
7
|
import { addIcons } from 'ionicons';
|
|
8
|
-
import { addOutline, addCircleOutline, alertOutline, alertCircleOutline, arrowBackOutline, arrowForwardOutline, arrowDownOutline, settings, settingsOutline, checkmarkCircleOutline, ellipsisHorizontalOutline, notifications, notificationsOutline, openOutline, closeOutline, chatbubblesOutline, shareOutline, heart, heartOutline, home, homeOutline, eyeOffOutline, eyeOutline, scanOutline, chevronDownOutline, chevronForwardOutline, checkmarkOutline, clipboardOutline, copyOutline, filterOutline, locationOutline, calendarOutline, businessOutline, logoTwitter, logoInstagram, logoLinkedin, logoYoutube, logoTiktok, logoFacebook, logoGoogle, createOutline, trashOutline, playOutline, phonePortraitOutline, refreshOutline, documentTextOutline, lockClosedOutline, informationCircleOutline, logoNpm, removeOutline, optionsOutline, personOutline, shieldCheckmarkOutline, keyOutline, desktopOutline, logOutOutline, add, close, share, create, trash, star, camera, mic, send, downloadOutline, chevronDown, language, globeOutline, checkmark, list, grid, apps, menu, search, person, helpCircle, informationCircle, documentText, mail, calendar, folder, chevronForward, ellipsisHorizontal, chevronBack, playBack, playForward, ellipse, starOutline, starHalf, heartHalf, checkmarkCircle, timeOutline, flag, trendingUp, trendingDown, remove, analytics, people, cash, cart, eye, chatbubbleOutline, thumbsUpOutline, thumbsUp, happyOutline, happy, sadOutline, sad, chevronUp, pin, pencil, callOutline, logoWhatsapp, paperPlaneOutline, mailOutline, chevronDownCircleOutline, closeCircle, alertCircle, logoApple, logoMicrosoft, linkOutline, unlinkOutline, chevronBackOutline, sendOutline, chatbubbleEllipsesOutline, swapVerticalOutline, chevronUpOutline, documentOutline, searchOutline, cartOutline, chatbubble, compass, compassOutline, gridOutline, listOutline, folderOutline, documents, documentsOutline, statsChart, statsChartOutline, cameraOutline, bugOutline, bulbOutline, closeCircleOutline, menuOutline } from 'ionicons/icons';
|
|
8
|
+
import { addOutline, addCircleOutline, alertOutline, alertCircleOutline, arrowBackOutline, arrowForwardOutline, arrowDownOutline, settings, settingsOutline, checkmarkCircleOutline, ellipsisHorizontalOutline, notifications, notificationsOutline, openOutline, closeOutline, chatbubblesOutline, shareOutline, heart, heartOutline, home, homeOutline, eyeOffOutline, eyeOutline, scanOutline, chevronDownOutline, chevronForwardOutline, checkmarkOutline, clipboardOutline, copyOutline, filterOutline, locationOutline, calendarOutline, businessOutline, logoTwitter, logoInstagram, logoLinkedin, logoYoutube, logoTiktok, logoFacebook, logoGoogle, createOutline, trashOutline, playOutline, phonePortraitOutline, refreshOutline, documentTextOutline, lockClosedOutline, informationCircleOutline, logoNpm, removeOutline, optionsOutline, personOutline, shieldCheckmarkOutline, keyOutline, desktopOutline, logOutOutline, cloudDownloadOutline, warningOutline, add, close, share, create, trash, star, camera, mic, send, downloadOutline, chevronDown, language, globeOutline, checkmark, list, grid, apps, menu, search, person, helpCircle, informationCircle, documentText, mail, calendar, folder, chevronForward, ellipsisHorizontal, chevronBack, playBack, playForward, ellipse, starOutline, starHalf, heartHalf, checkmarkCircle, timeOutline, flag, trendingUp, trendingDown, remove, analytics, people, cash, cart, eye, chatbubbleOutline, thumbsUpOutline, thumbsUp, happyOutline, happy, sadOutline, sad, chevronUp, pin, pencil, callOutline, logoWhatsapp, paperPlaneOutline, mailOutline, chevronDownCircleOutline, closeCircle, alertCircle, logoApple, logoMicrosoft, linkOutline, unlinkOutline, chevronBackOutline, sendOutline, chatbubbleEllipsesOutline, swapVerticalOutline, chevronUpOutline, documentOutline, searchOutline, cartOutline, chatbubble, compass, compassOutline, gridOutline, listOutline, folderOutline, documents, documentsOutline, statsChart, statsChartOutline, cameraOutline, bugOutline, bulbOutline, closeCircleOutline, menuOutline } from 'ionicons/icons';
|
|
9
9
|
import * as i1$1 from '@angular/router';
|
|
10
10
|
import { RouterLink, Router, NavigationEnd, RouterOutlet, RouterModule } from '@angular/router';
|
|
11
11
|
import { Browser } from '@capacitor/browser';
|
|
@@ -53,7 +53,7 @@ import 'prismjs/components/prism-json';
|
|
|
53
53
|
* Current version of valtech-components.
|
|
54
54
|
* This is automatically updated during the publish process.
|
|
55
55
|
*/
|
|
56
|
-
const VERSION = '2.0.
|
|
56
|
+
const VERSION = '2.0.841';
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Servicio para gestionar presets de componentes.
|
|
@@ -360,6 +360,8 @@ class IconService {
|
|
|
360
360
|
keyOutline,
|
|
361
361
|
desktopOutline,
|
|
362
362
|
logOutOutline,
|
|
363
|
+
cloudDownloadOutline,
|
|
364
|
+
warningOutline,
|
|
363
365
|
});
|
|
364
366
|
}
|
|
365
367
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IconService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -20916,11 +20918,321 @@ function interpretError(err) {
|
|
|
20916
20918
|
}
|
|
20917
20919
|
|
|
20918
20920
|
/**
|
|
20919
|
-
*
|
|
20921
|
+
* Interceptor HTTP de observabilidad (Capa 1 del estándar de manejo de errores).
|
|
20920
20922
|
*
|
|
20921
|
-
*
|
|
20922
|
-
*
|
|
20923
|
-
*
|
|
20923
|
+
* Para CADA respuesta HTTP con error:
|
|
20924
|
+
* 1. Normaliza el error con `interpretError`.
|
|
20925
|
+
* 2. Loguea un evento estructurado a consola con el prefijo `[HTTP]`.
|
|
20926
|
+
* 3. Reporta el error a Firebase Analytics (`source: 'http'`), si hay analytics.
|
|
20927
|
+
*
|
|
20928
|
+
* **NO traga el error** — lo re-lanza tal cual. Las páginas y servicios siguen
|
|
20929
|
+
* recibiendo el error en su `catch` / `catchError` y deciden la UX (eso es
|
|
20930
|
+
* Capa 3: `ValtechErrorService`).
|
|
20931
|
+
*
|
|
20932
|
+
* `AnalyticsService` se inyecta `@Optional()` — apps sin Firebase Analytics
|
|
20933
|
+
* igual obtienen el log estructurado a consola.
|
|
20934
|
+
*
|
|
20935
|
+
* Decisión sobre 401: **se saltea** del tracking de Analytics. Un 401 es el
|
|
20936
|
+
* disparador normal del flujo de refresh de token del `authInterceptor`; el
|
|
20937
|
+
* token se renueva y la request se reintenta de forma transparente. Trackear
|
|
20938
|
+
* cada 401 inundaría Analytics de ruido (cada sesión genera varios al expirar
|
|
20939
|
+
* el access token). El 401 SÍ se loguea a consola (nivel `info`, no `error`)
|
|
20940
|
+
* para no perder la traza en debugging local, pero no se reporta como error.
|
|
20941
|
+
*
|
|
20942
|
+
* Se registra vía {@link provideValtechErrorHandling}.
|
|
20943
|
+
*/
|
|
20944
|
+
const errorLoggingInterceptor = (request, next) => {
|
|
20945
|
+
// `AnalyticsService` puede no estar provisto (apps sin Firebase). El inject
|
|
20946
|
+
// funcional con `optional: true` devuelve `null` en ese caso.
|
|
20947
|
+
const analytics = inject(AnalyticsService, { optional: true });
|
|
20948
|
+
return next(request).pipe(catchError((error) => {
|
|
20949
|
+
const interpreted = interpretError(error);
|
|
20950
|
+
const status = interpreted.status ?? error?.status;
|
|
20951
|
+
// 401 → ruido del refresh de auth. Log informativo, sin Analytics.
|
|
20952
|
+
if (status === 401) {
|
|
20953
|
+
console.info(`[HTTP] 401 ${request.method} ${request.url}` +
|
|
20954
|
+
(interpreted.operationId ? ` (op=${interpreted.operationId})` : ''));
|
|
20955
|
+
return throwError(() => error);
|
|
20956
|
+
}
|
|
20957
|
+
// Log estructurado a consola — siempre, haya o no Analytics.
|
|
20958
|
+
console.error('[HTTP] request failed', {
|
|
20959
|
+
method: request.method,
|
|
20960
|
+
url: request.url,
|
|
20961
|
+
status: status ?? 'n/a',
|
|
20962
|
+
code: interpreted.code,
|
|
20963
|
+
operationId: interpreted.operationId ?? 'n/a',
|
|
20964
|
+
isNetwork: interpreted.isNetwork,
|
|
20965
|
+
message: interpreted.message,
|
|
20966
|
+
});
|
|
20967
|
+
// Reporte a Analytics (best-effort) — solo si hay servicio.
|
|
20968
|
+
if (analytics) {
|
|
20969
|
+
try {
|
|
20970
|
+
analytics.logError(interpreted.message, {
|
|
20971
|
+
source: 'http',
|
|
20972
|
+
code: interpreted.code,
|
|
20973
|
+
url: request.url,
|
|
20974
|
+
method: request.method,
|
|
20975
|
+
status: String(status ?? 0),
|
|
20976
|
+
...(interpreted.operationId ? { operationId: interpreted.operationId } : {}),
|
|
20977
|
+
...(interpreted.isNetwork ? { error_category: 'network' } : {}),
|
|
20978
|
+
});
|
|
20979
|
+
}
|
|
20980
|
+
catch (trackingError) {
|
|
20981
|
+
// El tracking nunca debe romper el flujo HTTP.
|
|
20982
|
+
console.warn('[HTTP] analytics tracking failed:', trackingError);
|
|
20983
|
+
}
|
|
20984
|
+
}
|
|
20985
|
+
// Re-lanzar: NO tragamos el error. La Capa 3 / las páginas lo manejan.
|
|
20986
|
+
return throwError(() => error);
|
|
20987
|
+
}));
|
|
20988
|
+
};
|
|
20989
|
+
|
|
20990
|
+
/**
|
|
20991
|
+
* Provee el manejo de errores estándar del factory Valtech.
|
|
20992
|
+
*
|
|
20993
|
+
* Registra el {@link errorLoggingInterceptor} (Capa 1 — observabilidad): toda
|
|
20994
|
+
* respuesta HTTP con error se normaliza, se loguea de forma estructurada a
|
|
20995
|
+
* consola y se reporta a Firebase Analytics. El interceptor **re-lanza** el
|
|
20996
|
+
* error, así que las páginas siguen haciendo su `catch`.
|
|
20997
|
+
*
|
|
20998
|
+
* Se registra vía `withInterceptors`, igual que el `authInterceptor`. Angular
|
|
20999
|
+
* fusiona los interceptores de múltiples llamadas a `provideHttpClient` dentro
|
|
21000
|
+
* del mismo injector, así que esto compone con `provideValtechAuth()` sin
|
|
21001
|
+
* pisarlo. El orden relativo lo determina Angular por orden de provisión;
|
|
21002
|
+
* para una traza limpia, declarar `provideValtechErrorHandling()` **después**
|
|
21003
|
+
* de `provideValtechAuth(...)` en `main.ts`.
|
|
21004
|
+
*
|
|
21005
|
+
* La Capa 3 ({@link ValtechErrorService}) es `providedIn: 'root'` — no
|
|
21006
|
+
* requiere registro. La Capa 2 (`AnalyticsErrorHandler`, errores no
|
|
21007
|
+
* capturados) la activa `provideValtechFirebase` con `enableErrorTracking`.
|
|
21008
|
+
*
|
|
21009
|
+
* @example
|
|
21010
|
+
* ```typescript
|
|
21011
|
+
* // main.ts
|
|
21012
|
+
* import { provideValtechAuth, provideValtechErrorHandling } from 'valtech-components';
|
|
21013
|
+
*
|
|
21014
|
+
* bootstrapApplication(AppComponent, {
|
|
21015
|
+
* providers: [
|
|
21016
|
+
* provideValtechAuth({ apiUrl: environment.apiUrl }),
|
|
21017
|
+
* provideValtechErrorHandling(),
|
|
21018
|
+
* ],
|
|
21019
|
+
* });
|
|
21020
|
+
* ```
|
|
21021
|
+
*/
|
|
21022
|
+
function provideValtechErrorHandling() {
|
|
21023
|
+
return makeEnvironmentProviders([provideHttpClient(withInterceptors([errorLoggingInterceptor]))]);
|
|
21024
|
+
}
|
|
21025
|
+
|
|
21026
|
+
/**
|
|
21027
|
+
* Service for displaying toast notifications using Ionic's ToastController.
|
|
21028
|
+
* Provides methods to show and present toasts with custom options.
|
|
21029
|
+
*/
|
|
21030
|
+
class ToastService {
|
|
21031
|
+
constructor(toastController) {
|
|
21032
|
+
this.toastController = toastController;
|
|
21033
|
+
}
|
|
21034
|
+
/**
|
|
21035
|
+
* Presents a toast notification with the given options.
|
|
21036
|
+
*
|
|
21037
|
+
* Estándar Valtech: todos los toasts son `color: 'dark'` y `position: 'top'`.
|
|
21038
|
+
* Estos son los defaults cuando el caller no los especifica — no hace falta
|
|
21039
|
+
* pasarlos en cada llamada. El diferenciador semántico (éxito/error) va en
|
|
21040
|
+
* el mensaje, no en el color.
|
|
21041
|
+
*
|
|
21042
|
+
* @param request Toast options (message, duration, position, color, etc.)
|
|
21043
|
+
*/
|
|
21044
|
+
async presentToast(request) {
|
|
21045
|
+
const toast = await this.toastController.create({
|
|
21046
|
+
message: request.message,
|
|
21047
|
+
duration: request.duration,
|
|
21048
|
+
position: request.position ?? 'top',
|
|
21049
|
+
color: request.color ?? 'dark',
|
|
21050
|
+
});
|
|
21051
|
+
await toast.present();
|
|
21052
|
+
}
|
|
21053
|
+
/**
|
|
21054
|
+
* Shows a toast notification and logs the result.
|
|
21055
|
+
* @param request Toast options (message, duration, position, color, etc.)
|
|
21056
|
+
*/
|
|
21057
|
+
show(request) {
|
|
21058
|
+
this.presentToast(request)
|
|
21059
|
+
.then(() => {
|
|
21060
|
+
console.info('Toast created');
|
|
21061
|
+
})
|
|
21062
|
+
.catch(error => {
|
|
21063
|
+
console.error(JSON.stringify(error));
|
|
21064
|
+
});
|
|
21065
|
+
}
|
|
21066
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToastService, deps: [{ token: i2.ToastController }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
21067
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToastService, providedIn: 'root' }); }
|
|
21068
|
+
}
|
|
21069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToastService, decorators: [{
|
|
21070
|
+
type: Injectable,
|
|
21071
|
+
args: [{
|
|
21072
|
+
providedIn: 'root',
|
|
21073
|
+
}]
|
|
21074
|
+
}], ctorParameters: () => [{ type: i2.ToastController }] });
|
|
21075
|
+
|
|
21076
|
+
/**
|
|
21077
|
+
* Key i18n fija de la librería para fallos de red. Las apps pueden definirla en
|
|
21078
|
+
* su contenido i18n (namespace `_global`) para personalizar el texto; si no
|
|
21079
|
+
* existe, se usa {@link NETWORK_FALLBACK_MESSAGE}.
|
|
21080
|
+
*/
|
|
21081
|
+
const VALTECH_NETWORK_ERROR_KEY = 'valtech.error.network';
|
|
21082
|
+
/** Texto en español por defecto cuando {@link VALTECH_NETWORK_ERROR_KEY} no está definida. */
|
|
21083
|
+
const NETWORK_FALLBACK_MESSAGE = 'Sin conexión. Revisá tu internet.';
|
|
21084
|
+
/** Texto genérico en español cuando no hay match ni `fallbackKey`. */
|
|
21085
|
+
const GENERIC_FALLBACK_MESSAGE = 'Ocurrió un error. Intentá de nuevo.';
|
|
21086
|
+
/**
|
|
21087
|
+
* Servicio de UX de errores capturados (Capa 3 del estándar de manejo de errores).
|
|
21088
|
+
*
|
|
21089
|
+
* Mientras la Capa 1 ({@link errorLoggingInterceptor}) observa TODAS las
|
|
21090
|
+
* respuestas HTTP con error, y la Capa 2 (`AnalyticsErrorHandler`) captura los
|
|
21091
|
+
* errores NO manejados, la Capa 3 es el punto único que una página usa en su
|
|
21092
|
+
* `catch` para convertir un error en feedback al usuario.
|
|
21093
|
+
*
|
|
21094
|
+
* Responsabilidades de {@link handle}:
|
|
21095
|
+
* 1. Normaliza el error (`interpretError`).
|
|
21096
|
+
* 2. Loguea a consola + reporta a Analytics (`source: 'handled'`, con `context`).
|
|
21097
|
+
* 3. Resuelve un mensaje localizado (ver orden de resolución en {@link handle}).
|
|
21098
|
+
* 4. Muestra un toast (`color: 'dark'`, estándar Valtech) salvo `toast: false`.
|
|
21099
|
+
* 5. Devuelve el {@link InterpretedError} para que la página decida lógica extra.
|
|
21100
|
+
*
|
|
21101
|
+
* **Nunca lanza.** `AnalyticsService` se inyecta `@Optional()`.
|
|
21102
|
+
*
|
|
21103
|
+
* @example
|
|
21104
|
+
* ```ts
|
|
21105
|
+
* private errors = inject(ValtechErrorService);
|
|
21106
|
+
*
|
|
21107
|
+
* async save() {
|
|
21108
|
+
* try {
|
|
21109
|
+
* await firstValueFrom(this.api.updateProfile(this.form.value));
|
|
21110
|
+
* this.toast.show({ message: 'Perfil actualizado', color: 'dark' });
|
|
21111
|
+
* } catch (err) {
|
|
21112
|
+
* this.errors.handle(err, {
|
|
21113
|
+
* context: 'profile.save',
|
|
21114
|
+
* i18nMap: { EMAIL_TAKEN: 'errors.emailTaken' },
|
|
21115
|
+
* fallbackKey: 'errors.profileSaveFailed',
|
|
21116
|
+
* });
|
|
21117
|
+
* }
|
|
21118
|
+
* }
|
|
21119
|
+
* ```
|
|
21120
|
+
*/
|
|
21121
|
+
class ValtechErrorService {
|
|
21122
|
+
constructor() {
|
|
21123
|
+
this.i18n = inject(I18nService);
|
|
21124
|
+
this.toast = inject(ToastService);
|
|
21125
|
+
// Apps sin Firebase Analytics: el servicio sigue funcionando (log + toast).
|
|
21126
|
+
this.analytics = inject(AnalyticsService, { optional: true });
|
|
21127
|
+
}
|
|
21128
|
+
/**
|
|
21129
|
+
* Maneja un error capturado: normaliza, observa y produce feedback de usuario.
|
|
21130
|
+
*
|
|
21131
|
+
* Orden de resolución del mensaje del toast:
|
|
21132
|
+
* 1. `i18nMap[code]` definido → `i18n.t(esa key)`.
|
|
21133
|
+
* 2. Sin match y `isNetwork` → key de red ({@link VALTECH_NETWORK_ERROR_KEY}),
|
|
21134
|
+
* con fallback al texto español si la app no la tradujo.
|
|
21135
|
+
* 3. `fallbackKey` definido → `i18n.t(fallbackKey)`.
|
|
21136
|
+
* 4. Genérico en español.
|
|
21137
|
+
*
|
|
21138
|
+
* @param err Cualquier error capturado.
|
|
21139
|
+
* @param opts Opciones de contexto, mapeo i18n y toast.
|
|
21140
|
+
* @returns El {@link InterpretedError} normalizado. Nunca lanza.
|
|
21141
|
+
*/
|
|
21142
|
+
handle(err, opts = {}) {
|
|
21143
|
+
const interpreted = interpretError(err);
|
|
21144
|
+
const { context, i18nMap, fallbackKey, i18nNamespace, toast } = opts;
|
|
21145
|
+
// 1. Observabilidad — log estructurado a consola.
|
|
21146
|
+
console.error('[ValtechError] handled', {
|
|
21147
|
+
context: context ?? 'n/a',
|
|
21148
|
+
code: interpreted.code,
|
|
21149
|
+
status: interpreted.status ?? 'n/a',
|
|
21150
|
+
operationId: interpreted.operationId ?? 'n/a',
|
|
21151
|
+
isNetwork: interpreted.isNetwork,
|
|
21152
|
+
message: interpreted.message,
|
|
21153
|
+
});
|
|
21154
|
+
// 2. Reporte a Analytics (best-effort, opcional).
|
|
21155
|
+
if (this.analytics) {
|
|
21156
|
+
try {
|
|
21157
|
+
this.analytics.logError(interpreted.message, {
|
|
21158
|
+
source: 'handled',
|
|
21159
|
+
code: interpreted.code,
|
|
21160
|
+
...(context ? { context } : {}),
|
|
21161
|
+
...(interpreted.status !== undefined ? { status: String(interpreted.status) } : {}),
|
|
21162
|
+
...(interpreted.operationId ? { operationId: interpreted.operationId } : {}),
|
|
21163
|
+
...(interpreted.isNetwork ? { error_category: 'network' } : {}),
|
|
21164
|
+
});
|
|
21165
|
+
}
|
|
21166
|
+
catch (trackingError) {
|
|
21167
|
+
console.warn('[ValtechError] analytics tracking failed:', trackingError);
|
|
21168
|
+
}
|
|
21169
|
+
}
|
|
21170
|
+
// 3. Resolver mensaje localizado para el usuario.
|
|
21171
|
+
const message = this.resolveMessage(interpreted, {
|
|
21172
|
+
i18nMap,
|
|
21173
|
+
fallbackKey,
|
|
21174
|
+
i18nNamespace,
|
|
21175
|
+
});
|
|
21176
|
+
// 4. Toast (estándar Valtech: color 'dark', position 'top').
|
|
21177
|
+
if (toast !== false) {
|
|
21178
|
+
this.toast.show({
|
|
21179
|
+
message,
|
|
21180
|
+
color: 'dark',
|
|
21181
|
+
position: 'top',
|
|
21182
|
+
duration: 3000,
|
|
21183
|
+
});
|
|
21184
|
+
}
|
|
21185
|
+
// 5. Devolver el error normalizado para lógica extra del caller.
|
|
21186
|
+
return interpreted;
|
|
21187
|
+
}
|
|
21188
|
+
/**
|
|
21189
|
+
* Resuelve el mensaje a mostrar siguiendo el orden documentado en {@link handle}.
|
|
21190
|
+
*/
|
|
21191
|
+
resolveMessage(interpreted, opts) {
|
|
21192
|
+
const ns = opts.i18nNamespace;
|
|
21193
|
+
// 1. Match exacto por código de backend.
|
|
21194
|
+
const mappedKey = opts.i18nMap?.[interpreted.code];
|
|
21195
|
+
if (mappedKey) {
|
|
21196
|
+
return this.translate(mappedKey, ns) ?? interpreted.message;
|
|
21197
|
+
}
|
|
21198
|
+
// 2. Fallo de red → key de red de la lib, con fallback español.
|
|
21199
|
+
if (interpreted.isNetwork) {
|
|
21200
|
+
return this.translate(VALTECH_NETWORK_ERROR_KEY, ns) ?? NETWORK_FALLBACK_MESSAGE;
|
|
21201
|
+
}
|
|
21202
|
+
// 3. fallbackKey provisto por la app.
|
|
21203
|
+
if (opts.fallbackKey) {
|
|
21204
|
+
return this.translate(opts.fallbackKey, ns) ?? interpreted.message;
|
|
21205
|
+
}
|
|
21206
|
+
// 4. Genérico — preferir el mensaje del backend (ya viene en español) si lo hay.
|
|
21207
|
+
return interpreted.message || GENERIC_FALLBACK_MESSAGE;
|
|
21208
|
+
}
|
|
21209
|
+
/**
|
|
21210
|
+
* Traduce una key i18n. Devuelve `null` si la key no está definida — el
|
|
21211
|
+
* `I18nService` devuelve un placeholder `[namespace.key]` para keys faltantes;
|
|
21212
|
+
* lo detectamos para poder caer a un fallback en lugar de mostrar el placeholder.
|
|
21213
|
+
*/
|
|
21214
|
+
translate(key, namespace) {
|
|
21215
|
+
const text = this.i18n.t(key, namespace);
|
|
21216
|
+
const ns = namespace ?? '_global';
|
|
21217
|
+
return text === `[${ns}.${key}]` ? null : text;
|
|
21218
|
+
}
|
|
21219
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ValtechErrorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
21220
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ValtechErrorService, providedIn: 'root' }); }
|
|
21221
|
+
}
|
|
21222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ValtechErrorService, decorators: [{
|
|
21223
|
+
type: Injectable,
|
|
21224
|
+
args: [{ providedIn: 'root' }]
|
|
21225
|
+
}] });
|
|
21226
|
+
|
|
21227
|
+
/**
|
|
21228
|
+
* Estándar de manejo de errores del factory Valtech.
|
|
21229
|
+
*
|
|
21230
|
+
* - `interpretError` (Capa 0) — normaliza cualquier error a `InterpretedError`.
|
|
21231
|
+
* Función pura, sin Angular DI.
|
|
21232
|
+
* - `provideValtechErrorHandling` (Capa 1) — registra el interceptor HTTP de
|
|
21233
|
+
* observabilidad: log estructurado + reporte a Analytics, re-lanza el error.
|
|
21234
|
+
* - `ValtechErrorService` (Capa 3) — punto único para el `catch` de una página:
|
|
21235
|
+
* normaliza, observa, resuelve un mensaje i18n y muestra un toast.
|
|
20924
21236
|
*/
|
|
20925
21237
|
|
|
20926
21238
|
/**
|
|
@@ -29407,56 +29719,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
29407
29719
|
*/
|
|
29408
29720
|
// Tipos
|
|
29409
29721
|
|
|
29410
|
-
/**
|
|
29411
|
-
* Service for displaying toast notifications using Ionic's ToastController.
|
|
29412
|
-
* Provides methods to show and present toasts with custom options.
|
|
29413
|
-
*/
|
|
29414
|
-
class ToastService {
|
|
29415
|
-
constructor(toastController) {
|
|
29416
|
-
this.toastController = toastController;
|
|
29417
|
-
}
|
|
29418
|
-
/**
|
|
29419
|
-
* Presents a toast notification with the given options.
|
|
29420
|
-
*
|
|
29421
|
-
* Estándar Valtech: todos los toasts son `color: 'dark'` y `position: 'top'`.
|
|
29422
|
-
* Estos son los defaults cuando el caller no los especifica — no hace falta
|
|
29423
|
-
* pasarlos en cada llamada. El diferenciador semántico (éxito/error) va en
|
|
29424
|
-
* el mensaje, no en el color.
|
|
29425
|
-
*
|
|
29426
|
-
* @param request Toast options (message, duration, position, color, etc.)
|
|
29427
|
-
*/
|
|
29428
|
-
async presentToast(request) {
|
|
29429
|
-
const toast = await this.toastController.create({
|
|
29430
|
-
message: request.message,
|
|
29431
|
-
duration: request.duration,
|
|
29432
|
-
position: request.position ?? 'top',
|
|
29433
|
-
color: request.color ?? 'dark',
|
|
29434
|
-
});
|
|
29435
|
-
await toast.present();
|
|
29436
|
-
}
|
|
29437
|
-
/**
|
|
29438
|
-
* Shows a toast notification and logs the result.
|
|
29439
|
-
* @param request Toast options (message, duration, position, color, etc.)
|
|
29440
|
-
*/
|
|
29441
|
-
show(request) {
|
|
29442
|
-
this.presentToast(request)
|
|
29443
|
-
.then(() => {
|
|
29444
|
-
console.info('Toast created');
|
|
29445
|
-
})
|
|
29446
|
-
.catch(error => {
|
|
29447
|
-
console.error(JSON.stringify(error));
|
|
29448
|
-
});
|
|
29449
|
-
}
|
|
29450
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToastService, deps: [{ token: i2.ToastController }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
29451
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToastService, providedIn: 'root' }); }
|
|
29452
|
-
}
|
|
29453
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToastService, decorators: [{
|
|
29454
|
-
type: Injectable,
|
|
29455
|
-
args: [{
|
|
29456
|
-
providedIn: 'root',
|
|
29457
|
-
}]
|
|
29458
|
-
}], ctorParameters: () => [{ type: i2.ToastController }] });
|
|
29459
|
-
|
|
29460
29722
|
/**
|
|
29461
29723
|
* `val-change-password-modal` — modal de gestión de contraseña para un usuario
|
|
29462
29724
|
* autenticado. Análogo al modal de "recuperar contraseña" del `val-login`.
|
|
@@ -47527,5 +47789,5 @@ function buildFooterLinks(links, t, resolver) {
|
|
|
47527
47789
|
* Generated bundle index. Do not edit.
|
|
47528
47790
|
*/
|
|
47529
47791
|
|
|
47530
|
-
export { ACTION_CARD_DEFAULTS, AD_SIZE_MAP, API_TABLE_COLUMN_LABELS, ARTICLE_SPACING, AVATAR_UPLOAD_DEFAULTS, AccordionComponent, ActionCardComponent, ActionHeaderComponent, ActionType, AdSlotComponent, AdsLoaderService, AdsService, AlertBoxComponent, AnalyticsErrorHandler, AnalyticsRouterTracker, AnalyticsService, AppConfigService, AppVersionService, ArticleBuilder, ArticleComponent, AuthBackgroundComponent, AuthService, AuthStateService, AuthStorageService, AuthSyncService, AvatarComponent, AvatarUploadComponent, BOTTOM_NAV_DEFAULTS, BannerComponent, BaseDefault, BlogPostBuilder, BottomNavComponent, BoxComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CALLOUT_LABELS, CHEV_KEYS, COMMON_COUNTRY_CODES, COMMON_CURRENCIES, CURRENCY_INFO, CardComponent, CardSection, CardType, CardsCarouselComponent, ChangePasswordModalComponent, CheckInputComponent, CheckboxRadioInputComponent, ChipGroupComponent, ClearDefault, ClearDefaultBlock, ClearDefaultFull, ClearDefaultRound, ClearDefaultRoundBlock, ClearDefaultRoundFull, CodeDisplayComponent, CommandDisplayComponent, CommentComponent, CommentInputComponent, CommentSectionComponent, CompanyFooterComponent, ComponentStates, ConfirmationDialogService, ContainerComponent, ContentLoaderComponent, ContentReactionComponent, ContentTransformer, CookieBannerComponent, CountdownComponent, CurrencyInputComponent, DEFAULT_ADS_CONFIG, DEFAULT_APP_CONFIG_SERVICE_CONFIG, DEFAULT_APP_VERSION_SERVICE_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACK_HEADER, DEFAULT_CANCEL_BUTTON, DEFAULT_CHECK_INTERVAL_MS, DEFAULT_CONFIRM_BUTTON, DEFAULT_COUNTDOWN_LABELS, DEFAULT_COUNTDOWN_LABELS_EN, DEFAULT_DEBUG_CONSOLE_CONFIG, DEFAULT_DONATION_CONFIG, DEFAULT_EMPTY_STATE, DEFAULT_EMULATOR_CONFIG, DEFAULT_FEEDBACK_CONFIG, DEFAULT_FEEDBACK_TYPE_OPTIONS, DEFAULT_HOME_HEADER, DEFAULT_INFINITE_LIST_METADATA, DEFAULT_MODAL_CANCEL_BUTTON, DEFAULT_MODAL_CONFIRM_BUTTON, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLATFORMS, DEFAULT_REFRESHER_METADATA, DEFAULT_SKELETON_CONFIG, DataTableComponent, DateInputComponent, DateRangeInputComponent, DebugConsoleComponent, DetailSkeletonComponent, DeviceService, DisplayComponent, DividerComponent, DocsApiTableComponent, DocsBreadcrumbComponent, DocsBuilder, DocsCalloutComponent, DocsCodeExampleComponent, DocsLayoutComponent, DocsNavLinksComponent, DocsNavigationService, DocsPageComponent, DocsSearchComponent, DocsSectionComponent, DocsShellComponent, DocsSidebarComponent, DocsTocComponent, DonationService, DownloadService, EmailInputComponent, ExpandableTextComponent, FEATURES_LIST_DEFAULTS, FabComponent, FaqComponent, FeaturesListComponent, FeedbackFormComponent, FeedbackService, FileInputComponent, FirebaseService, FirestoreCollectionFactory, FirestoreService, FooterComponent, FooterLinksComponent, FormComponent, FormFooterComponent, FormSkeletonComponent, FunHeaderComponent, GlassComponent, GlowCardComponent, GlowComponent, GridSkeletonComponent, HANDOFF_ROUTE_PARAM, HANDOFF_TOKEN_PARAM, HandoffService, HeaderComponent, HintComponent, HorizontalScrollComponent, HourInputComponent, HrefComponent, I18nService, IMAGE_DEFAULTS, INITIAL_AUTH_STATE, INITIAL_MFA_STATE, Icon, IconComponent, IconService, ImageComponent, ImageCropComponent, ImageService, InAppBrowserService, InfiniteListComponent, InfoComponent, InputI18nHelper, InputType, ItemListComponent, LANG_STORAGE_KEY$1 as LANG_STORAGE_KEY, LEGAL_CONTENT_CONFIG, LOGIN_DEFAULTS, LanguageSelectorComponent, LayeredCardComponent, LegalContentService, LegalLinkService, LinkComponent, LinkProcessorService, LinkedProvidersComponent, LinksAccordionComponent, LinksCakeComponent, ListSkeletonComponent, LoadingDirective, LocalStorageService, LocaleService, LoginComponent, MODAL_SIZES, MOTIF_KEYS, MOTION, MaintenancePageComponent, MarkdownArticleParserService, MenuComponent, MessagingService, MetaService, MfaModalComponent, ModalService, MultiSelectSearchComponent, NavigationService, NewsBuilder, NoContentComponent, NotesBoxComponent, NotificationActionService, NotificationsService, NumberFromToComponent, NumberInputComponent, NumberStepperComponent, OAUTH_PROVIDERS_INFO, OAuthCallbackComponent, OAuthService, OrgSwitchService, OutlineDefault, OutlineDefaultBlock, OutlineDefaultFull, OutlineDefaultRound, OutlineDefaultRoundBlock, OutlineDefaultRoundFull, PATTERN_MOTIFS, PATTERN_PALETTES, PLATFORM_CONFIGS, PageContentComponent, PageLinksComponent, PageRefreshService, PageTemplateComponent, PageWrapperComponent, PaginationComponent, PaginationService, PasswordInputComponent, PatternComponent, PhoneInputComponent, PillComponent, PinInputComponent, PlainCodeBoxComponent, PopoverSelectorComponent, PreferencesService, PresetService, PriceTagComponent, PrimarySolidBlockButton, PrimarySolidBlockHrefButton, PrimarySolidBlockIconButton, PrimarySolidBlockIconHrefButton, PrimarySolidDefaultRoundButton, PrimarySolidDefaultRoundHrefButton, PrimarySolidDefaultRoundIconButton, PrimarySolidDefaultRoundIconHrefButton, PrimarySolidFullButton, PrimarySolidFullHrefButton, PrimarySolidFullIconButton, PrimarySolidFullIconHrefButton, PrimarySolidLargeRoundButton, PrimarySolidLargeRoundHrefButton, PrimarySolidLargeRoundIconButton, PrimarySolidLargeRoundIconHrefButton, PrimarySolidSmallRoundButton, PrimarySolidSmallRoundHrefButton, PrimarySolidSmallRoundIconButton, PrimarySolidSmallRoundIconHrefButton, ProcessLinksPipe, ProfileSkeletonComponent, ProgressBarComponent, ProgressRingComponent, ProgressStatusComponent, PrompterComponent, QR_PRESETS, QrCodeComponent, QrGeneratorService, QueryBuilder, QuoteBoxComponent, RadioInputComponent, RangeInputComponent, RatingComponent, RefresherComponent, RightsFooterComponent, RotatingTextComponent, SHAPE_KEYS, SKELETON_LAYOUT_DEFAULT_ROWS, SKELETON_PRESETS, SOLID_KEYS, SearchSelectorComponent, SearchbarComponent, SecondarySolidBlockButton, SecondarySolidBlockHrefButton, SecondarySolidBlockIconButton, SecondarySolidBlockIconHrefButton, SecondarySolidDefaultRoundButton, SecondarySolidDefaultRoundHrefButton, SecondarySolidDefaultRoundIconButton, SecondarySolidDefaultRoundIconHrefButton, SecondarySolidFullButton, SecondarySolidFullHrefButton, SecondarySolidFullIconButton, SecondarySolidFullIconHrefButton, SecondarySolidLargeRoundButton, SecondarySolidLargeRoundHrefButton, SecondarySolidLargeRoundIconButton, SecondarySolidLargeRoundIconHrefButton, SecondarySolidSmallRoundButton, SecondarySolidSmallRoundHrefButton, SecondarySolidSmallRoundIconButton, SecondarySolidSmallRoundIconHrefButton, SegmentControlComponent, SelectSearchComponent, SessionService, ShareButtonsComponent, SimpleComponent, SkeletonComponent, SkeletonLayoutComponent, SkeletonService, SolidBlockButton, SolidDefault, SolidDefaultBlock, SolidDefaultButton, SolidDefaultFull, SolidDefaultRound, SolidDefaultRoundBlock, SolidDefaultRoundButton, SolidDefaultRoundFull, SolidFullButton, SolidLargeButton, SolidLargeRoundButton, SolidSmallButton, SolidSmallRoundButton, StatsCardComponent, StepperComponent, StorageService, SwipeCarouselComponent, TRI_KEYS, TabbedContentComponent, TableSkeletonComponent, TabsComponent, Terminal404Component, TestimonialCardComponent, TestimonialCarouselComponent, TextComponent, TextInputComponent, TextareaInputComponent, ThemeOption, ThemeService, TimelineComponent, TitleBlockComponent, TitleComponent, ToastService, ToggleInputComponent, TokenService, ToolbarActionType, ToolbarComponent, TranslatePipe, TypedCollection, UPDATE_BANNER_DEFAULT_CONTENT, UPDATE_BANNER_I18N_NAMESPACE, UpdateBannerComponent, UserAvatarComponent, UsernameInputComponent, VALTECH_ADS_CONFIG, VALTECH_APP_CONFIG, VALTECH_APP_VERSION, VALTECH_AUTH_CONFIG, VALTECH_COMPANY_LINKS, VALTECH_DEBUG_CONSOLE, VALTECH_DEFAULT_CONTENT, VALTECH_DONATION_CONFIG, VALTECH_FEEDBACK_CONFIG, VALTECH_FIREBASE_CONFIG, VALTECH_FOOTER_I18N, VALTECH_FOOTER_LOGO, VALTECH_LANGUAGE_SELECTOR, VALTECH_LEGAL_CONFIG, VALTECH_SOCIAL_LINKS, VERSION, WizardComponent, WizardFooterComponent, applyDefaultValueToControl, authGuard, authInterceptor, blogPost, buildFooterLinks, buildPath, collections, connectPageRefresh, createFirebaseConfig, createGlowCardProps, createInitialPaginationState, createNumberFromToField, createRefreshableStream, createTitleProps, docs, extractPathParams, generatePatternTiles, generateRandomTile, getAppInfo, getAppVersion, getCollectionPath, getDocumentId, getTimeOfDayKey, goToTop, guestGuard, hasEmulators, interpretError, isAtEnd, isCollectionPath, isDocumentPath, isEmulatorMode, isValidPath, joinPath, maxLength, mulberry32, news, parseMarkdownArticle, permissionGuard, permissionGuardFromRoute, provideLegalContent, provideValtechAds, provideValtechAppConfig, provideValtechAppVersion, provideValtechAuth, provideValtechAuthInterceptor, provideValtechDebugConsole, provideValtechDonations, provideValtechFeedback, provideValtechFirebase, provideValtechI18n, provideValtechLegal, provideValtechPresets, provideValtechSkeleton, query, renderPatternSvgInner, replaceSpecialChars, resolveColor, resolveInputDefaultValue, roleGuard, storagePaths, superAdminGuard, toArticle };
|
|
47792
|
+
export { ACTION_CARD_DEFAULTS, AD_SIZE_MAP, API_TABLE_COLUMN_LABELS, ARTICLE_SPACING, AVATAR_UPLOAD_DEFAULTS, AccordionComponent, ActionCardComponent, ActionHeaderComponent, ActionType, AdSlotComponent, AdsLoaderService, AdsService, AlertBoxComponent, AnalyticsErrorHandler, AnalyticsRouterTracker, AnalyticsService, AppConfigService, AppVersionService, ArticleBuilder, ArticleComponent, AuthBackgroundComponent, AuthService, AuthStateService, AuthStorageService, AuthSyncService, AvatarComponent, AvatarUploadComponent, BOTTOM_NAV_DEFAULTS, BannerComponent, BaseDefault, BlogPostBuilder, BottomNavComponent, BoxComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CALLOUT_LABELS, CHEV_KEYS, COMMON_COUNTRY_CODES, COMMON_CURRENCIES, CURRENCY_INFO, CardComponent, CardSection, CardType, CardsCarouselComponent, ChangePasswordModalComponent, CheckInputComponent, CheckboxRadioInputComponent, ChipGroupComponent, ClearDefault, ClearDefaultBlock, ClearDefaultFull, ClearDefaultRound, ClearDefaultRoundBlock, ClearDefaultRoundFull, CodeDisplayComponent, CommandDisplayComponent, CommentComponent, CommentInputComponent, CommentSectionComponent, CompanyFooterComponent, ComponentStates, ConfirmationDialogService, ContainerComponent, ContentLoaderComponent, ContentReactionComponent, ContentTransformer, CookieBannerComponent, CountdownComponent, CurrencyInputComponent, DEFAULT_ADS_CONFIG, DEFAULT_APP_CONFIG_SERVICE_CONFIG, DEFAULT_APP_VERSION_SERVICE_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACK_HEADER, DEFAULT_CANCEL_BUTTON, DEFAULT_CHECK_INTERVAL_MS, DEFAULT_CONFIRM_BUTTON, DEFAULT_COUNTDOWN_LABELS, DEFAULT_COUNTDOWN_LABELS_EN, DEFAULT_DEBUG_CONSOLE_CONFIG, DEFAULT_DONATION_CONFIG, DEFAULT_EMPTY_STATE, DEFAULT_EMULATOR_CONFIG, DEFAULT_FEEDBACK_CONFIG, DEFAULT_FEEDBACK_TYPE_OPTIONS, DEFAULT_HOME_HEADER, DEFAULT_INFINITE_LIST_METADATA, DEFAULT_MODAL_CANCEL_BUTTON, DEFAULT_MODAL_CONFIRM_BUTTON, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLATFORMS, DEFAULT_REFRESHER_METADATA, DEFAULT_SKELETON_CONFIG, DataTableComponent, DateInputComponent, DateRangeInputComponent, DebugConsoleComponent, DetailSkeletonComponent, DeviceService, DisplayComponent, DividerComponent, DocsApiTableComponent, DocsBreadcrumbComponent, DocsBuilder, DocsCalloutComponent, DocsCodeExampleComponent, DocsLayoutComponent, DocsNavLinksComponent, DocsNavigationService, DocsPageComponent, DocsSearchComponent, DocsSectionComponent, DocsShellComponent, DocsSidebarComponent, DocsTocComponent, DonationService, DownloadService, EmailInputComponent, ExpandableTextComponent, FEATURES_LIST_DEFAULTS, FabComponent, FaqComponent, FeaturesListComponent, FeedbackFormComponent, FeedbackService, FileInputComponent, FirebaseService, FirestoreCollectionFactory, FirestoreService, FooterComponent, FooterLinksComponent, FormComponent, FormFooterComponent, FormSkeletonComponent, FunHeaderComponent, GlassComponent, GlowCardComponent, GlowComponent, GridSkeletonComponent, HANDOFF_ROUTE_PARAM, HANDOFF_TOKEN_PARAM, HandoffService, HeaderComponent, HintComponent, HorizontalScrollComponent, HourInputComponent, HrefComponent, I18nService, IMAGE_DEFAULTS, INITIAL_AUTH_STATE, INITIAL_MFA_STATE, Icon, IconComponent, IconService, ImageComponent, ImageCropComponent, ImageService, InAppBrowserService, InfiniteListComponent, InfoComponent, InputI18nHelper, InputType, ItemListComponent, LANG_STORAGE_KEY$1 as LANG_STORAGE_KEY, LEGAL_CONTENT_CONFIG, LOGIN_DEFAULTS, LanguageSelectorComponent, LayeredCardComponent, LegalContentService, LegalLinkService, LinkComponent, LinkProcessorService, LinkedProvidersComponent, LinksAccordionComponent, LinksCakeComponent, ListSkeletonComponent, LoadingDirective, LocalStorageService, LocaleService, LoginComponent, MODAL_SIZES, MOTIF_KEYS, MOTION, MaintenancePageComponent, MarkdownArticleParserService, MenuComponent, MessagingService, MetaService, MfaModalComponent, ModalService, MultiSelectSearchComponent, NavigationService, NewsBuilder, NoContentComponent, NotesBoxComponent, NotificationActionService, NotificationsService, NumberFromToComponent, NumberInputComponent, NumberStepperComponent, OAUTH_PROVIDERS_INFO, OAuthCallbackComponent, OAuthService, OrgSwitchService, OutlineDefault, OutlineDefaultBlock, OutlineDefaultFull, OutlineDefaultRound, OutlineDefaultRoundBlock, OutlineDefaultRoundFull, PATTERN_MOTIFS, PATTERN_PALETTES, PLATFORM_CONFIGS, PageContentComponent, PageLinksComponent, PageRefreshService, PageTemplateComponent, PageWrapperComponent, PaginationComponent, PaginationService, PasswordInputComponent, PatternComponent, PhoneInputComponent, PillComponent, PinInputComponent, PlainCodeBoxComponent, PopoverSelectorComponent, PreferencesService, PresetService, PriceTagComponent, PrimarySolidBlockButton, PrimarySolidBlockHrefButton, PrimarySolidBlockIconButton, PrimarySolidBlockIconHrefButton, PrimarySolidDefaultRoundButton, PrimarySolidDefaultRoundHrefButton, PrimarySolidDefaultRoundIconButton, PrimarySolidDefaultRoundIconHrefButton, PrimarySolidFullButton, PrimarySolidFullHrefButton, PrimarySolidFullIconButton, PrimarySolidFullIconHrefButton, PrimarySolidLargeRoundButton, PrimarySolidLargeRoundHrefButton, PrimarySolidLargeRoundIconButton, PrimarySolidLargeRoundIconHrefButton, PrimarySolidSmallRoundButton, PrimarySolidSmallRoundHrefButton, PrimarySolidSmallRoundIconButton, PrimarySolidSmallRoundIconHrefButton, ProcessLinksPipe, ProfileSkeletonComponent, ProgressBarComponent, ProgressRingComponent, ProgressStatusComponent, PrompterComponent, QR_PRESETS, QrCodeComponent, QrGeneratorService, QueryBuilder, QuoteBoxComponent, RadioInputComponent, RangeInputComponent, RatingComponent, RefresherComponent, RightsFooterComponent, RotatingTextComponent, SHAPE_KEYS, SKELETON_LAYOUT_DEFAULT_ROWS, SKELETON_PRESETS, SOLID_KEYS, SearchSelectorComponent, SearchbarComponent, SecondarySolidBlockButton, SecondarySolidBlockHrefButton, SecondarySolidBlockIconButton, SecondarySolidBlockIconHrefButton, SecondarySolidDefaultRoundButton, SecondarySolidDefaultRoundHrefButton, SecondarySolidDefaultRoundIconButton, SecondarySolidDefaultRoundIconHrefButton, SecondarySolidFullButton, SecondarySolidFullHrefButton, SecondarySolidFullIconButton, SecondarySolidFullIconHrefButton, SecondarySolidLargeRoundButton, SecondarySolidLargeRoundHrefButton, SecondarySolidLargeRoundIconButton, SecondarySolidLargeRoundIconHrefButton, SecondarySolidSmallRoundButton, SecondarySolidSmallRoundHrefButton, SecondarySolidSmallRoundIconButton, SecondarySolidSmallRoundIconHrefButton, SegmentControlComponent, SelectSearchComponent, SessionService, ShareButtonsComponent, SimpleComponent, SkeletonComponent, SkeletonLayoutComponent, SkeletonService, SolidBlockButton, SolidDefault, SolidDefaultBlock, SolidDefaultButton, SolidDefaultFull, SolidDefaultRound, SolidDefaultRoundBlock, SolidDefaultRoundButton, SolidDefaultRoundFull, SolidFullButton, SolidLargeButton, SolidLargeRoundButton, SolidSmallButton, SolidSmallRoundButton, StatsCardComponent, StepperComponent, StorageService, SwipeCarouselComponent, TRI_KEYS, TabbedContentComponent, TableSkeletonComponent, TabsComponent, Terminal404Component, TestimonialCardComponent, TestimonialCarouselComponent, TextComponent, TextInputComponent, TextareaInputComponent, ThemeOption, ThemeService, TimelineComponent, TitleBlockComponent, TitleComponent, ToastService, ToggleInputComponent, TokenService, ToolbarActionType, ToolbarComponent, TranslatePipe, TypedCollection, UPDATE_BANNER_DEFAULT_CONTENT, UPDATE_BANNER_I18N_NAMESPACE, UpdateBannerComponent, UserAvatarComponent, UsernameInputComponent, VALTECH_ADS_CONFIG, VALTECH_APP_CONFIG, VALTECH_APP_VERSION, VALTECH_AUTH_CONFIG, VALTECH_COMPANY_LINKS, VALTECH_DEBUG_CONSOLE, VALTECH_DEFAULT_CONTENT, VALTECH_DONATION_CONFIG, VALTECH_FEEDBACK_CONFIG, VALTECH_FIREBASE_CONFIG, VALTECH_FOOTER_I18N, VALTECH_FOOTER_LOGO, VALTECH_LANGUAGE_SELECTOR, VALTECH_LEGAL_CONFIG, VALTECH_NETWORK_ERROR_KEY, VALTECH_SOCIAL_LINKS, VERSION, ValtechErrorService, WizardComponent, WizardFooterComponent, applyDefaultValueToControl, authGuard, authInterceptor, blogPost, buildFooterLinks, buildPath, collections, connectPageRefresh, createFirebaseConfig, createGlowCardProps, createInitialPaginationState, createNumberFromToField, createRefreshableStream, createTitleProps, docs, errorLoggingInterceptor, extractPathParams, generatePatternTiles, generateRandomTile, getAppInfo, getAppVersion, getCollectionPath, getDocumentId, getTimeOfDayKey, goToTop, guestGuard, hasEmulators, interpretError, isAtEnd, isCollectionPath, isDocumentPath, isEmulatorMode, isValidPath, joinPath, maxLength, mulberry32, news, parseMarkdownArticle, permissionGuard, permissionGuardFromRoute, provideLegalContent, provideValtechAds, provideValtechAppConfig, provideValtechAppVersion, provideValtechAuth, provideValtechAuthInterceptor, provideValtechDebugConsole, provideValtechDonations, provideValtechErrorHandling, provideValtechFeedback, provideValtechFirebase, provideValtechI18n, provideValtechLegal, provideValtechPresets, provideValtechSkeleton, query, renderPatternSvgInner, replaceSpecialChars, resolveColor, resolveInputDefaultValue, roleGuard, storagePaths, superAdminGuard, toArticle };
|
|
47531
47793
|
//# sourceMappingURL=valtech-components.mjs.map
|