@tinya-code/gas-admin-ui 0.2.0-alpha.2 → 0.2.0-alpha.4
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/README.md +234 -2
- package/fesm2022/{tinya-code-gas-admin-ui-calendar-view-CquWGzw7.mjs → tinya-code-gas-admin-ui-calendar-view-ZTYs-r49.mjs} +12 -7
- package/fesm2022/tinya-code-gas-admin-ui-calendar-view-ZTYs-r49.mjs.map +1 -0
- package/fesm2022/{tinya-code-gas-admin-ui-condition-evaluator-DmvlAP9z.mjs → tinya-code-gas-admin-ui-condition-evaluator-CHzJuOx2.mjs} +2 -2
- package/fesm2022/{tinya-code-gas-admin-ui-condition-evaluator-DmvlAP9z.mjs.map → tinya-code-gas-admin-ui-condition-evaluator-CHzJuOx2.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-data-source.service-vAi2DYL9.mjs → tinya-code-gas-admin-ui-data-source.service-Cw1rdrWZ.mjs} +2 -2
- package/fesm2022/{tinya-code-gas-admin-ui-data-source.service-vAi2DYL9.mjs.map → tinya-code-gas-admin-ui-data-source.service-Cw1rdrWZ.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-error-mapper.service-dKQNLNRJ.mjs → tinya-code-gas-admin-ui-error-mapper.service-BQ--gSnT.mjs} +2 -2
- package/fesm2022/{tinya-code-gas-admin-ui-error-mapper.service-dKQNLNRJ.mjs.map → tinya-code-gas-admin-ui-error-mapper.service-BQ--gSnT.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-file-CKh878UH.mjs → tinya-code-gas-admin-ui-file-JstsF8C5.mjs} +3 -3
- package/fesm2022/{tinya-code-gas-admin-ui-file-CKh878UH.mjs.map → tinya-code-gas-admin-ui-file-JstsF8C5.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-form-view-_LpdZb15.mjs → tinya-code-gas-admin-ui-form-view-BcjgVVKC.mjs} +9 -9
- package/fesm2022/{tinya-code-gas-admin-ui-form-view-_LpdZb15.mjs.map → tinya-code-gas-admin-ui-form-view-BcjgVVKC.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-image-BPfPNwru.mjs → tinya-code-gas-admin-ui-image-CnGes7gs.mjs} +3 -3
- package/fesm2022/{tinya-code-gas-admin-ui-image-BPfPNwru.mjs.map → tinya-code-gas-admin-ui-image-CnGes7gs.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-kanban-view-C-w9mhiB.mjs → tinya-code-gas-admin-ui-kanban-view-QK7OSFoV.mjs} +4 -4
- package/fesm2022/{tinya-code-gas-admin-ui-kanban-view-C-w9mhiB.mjs.map → tinya-code-gas-admin-ui-kanban-view-QK7OSFoV.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-list-BKr33pde.mjs → tinya-code-gas-admin-ui-list-CiNQ3DMg.mjs} +2 -2
- package/fesm2022/{tinya-code-gas-admin-ui-list-BKr33pde.mjs.map → tinya-code-gas-admin-ui-list-CiNQ3DMg.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-multiselect-SfZJHfbh.mjs → tinya-code-gas-admin-ui-multiselect-BiKb7192.mjs} +3 -3
- package/fesm2022/{tinya-code-gas-admin-ui-multiselect-SfZJHfbh.mjs.map → tinya-code-gas-admin-ui-multiselect-BiKb7192.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-relation-WCflawIU.mjs → tinya-code-gas-admin-ui-relation-CvxkEGHs.mjs} +3 -3
- package/fesm2022/{tinya-code-gas-admin-ui-relation-WCflawIU.mjs.map → tinya-code-gas-admin-ui-relation-CvxkEGHs.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-render-registry-ghv7Mb1x.mjs → tinya-code-gas-admin-ui-render-registry-B7mmgFSW.mjs} +10 -10
- package/fesm2022/{tinya-code-gas-admin-ui-render-registry-ghv7Mb1x.mjs.map → tinya-code-gas-admin-ui-render-registry-B7mmgFSW.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-schema-catalog-CL4IZDce.mjs → tinya-code-gas-admin-ui-schema-catalog-CsB26qUM.mjs} +193 -58
- package/fesm2022/tinya-code-gas-admin-ui-schema-catalog-CsB26qUM.mjs.map +1 -0
- package/fesm2022/{tinya-code-gas-admin-ui-seed-BnwHE1Tw.mjs → tinya-code-gas-admin-ui-seed-CJEt__kZ.mjs} +2 -2
- package/fesm2022/{tinya-code-gas-admin-ui-seed-BnwHE1Tw.mjs.map → tinya-code-gas-admin-ui-seed-CJEt__kZ.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-select-BaF4kSXl.mjs → tinya-code-gas-admin-ui-select-DPKRS6Gn.mjs} +3 -3
- package/fesm2022/{tinya-code-gas-admin-ui-select-BaF4kSXl.mjs.map → tinya-code-gas-admin-ui-select-DPKRS6Gn.mjs.map} +1 -1
- package/fesm2022/{tinya-code-gas-admin-ui-upload.service-C7GzSmuL.mjs → tinya-code-gas-admin-ui-upload.service-BNvH04S3.mjs} +2 -2
- package/fesm2022/{tinya-code-gas-admin-ui-upload.service-C7GzSmuL.mjs.map → tinya-code-gas-admin-ui-upload.service-BNvH04S3.mjs.map} +1 -1
- package/fesm2022/tinya-code-gas-admin-ui.mjs +87 -42
- package/fesm2022/tinya-code-gas-admin-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/tinya-code-gas-admin-ui.d.ts +224 -25
- package/fesm2022/tinya-code-gas-admin-ui-calendar-view-CquWGzw7.mjs.map +0 -1
- package/fesm2022/tinya-code-gas-admin-ui-schema-catalog-CL4IZDce.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { EnvironmentProviders, InjectionToken, Provider, Signal, TemplateRef, Type } from "@angular/core";
|
|
3
3
|
import { CanActivateFn, Route, Router, Routes } from "@angular/router";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
|
-
import { HttpEvent, HttpInterceptorFn } from "@angular/common/http";
|
|
5
|
+
import { HttpClient, HttpEvent, HttpHeaders, HttpInterceptorFn, HttpParams } from "@angular/common/http";
|
|
6
6
|
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
7
7
|
import { LucideIcon } from "@lucide/angular";
|
|
8
8
|
import { FieldTree, PathKind, SchemaFn, SchemaPath, SchemaPathRules } from "@angular/forms/signals";
|
|
@@ -322,6 +322,12 @@ export interface WidgetBase {
|
|
|
322
322
|
help?: string;
|
|
323
323
|
/** Ancho en la grilla del panel (1–12), igual que un campo. */
|
|
324
324
|
width?: GridWidth;
|
|
325
|
+
/**
|
|
326
|
+
* Ancho en la grilla en mobile (1–12). Por defecto `12` (ancho completo,
|
|
327
|
+
* apilado). Declararlo permite controlar el layout responsive en pantallas
|
|
328
|
+
* chicas sin tocar el ancho de escritorio (`width`).
|
|
329
|
+
*/
|
|
330
|
+
mobileWidth?: GridWidth;
|
|
325
331
|
/**
|
|
326
332
|
* De dónde saca sus datos (F8 · R6.5).
|
|
327
333
|
*
|
|
@@ -516,6 +522,79 @@ export interface ResourceEndpoints {
|
|
|
516
522
|
create?: string;
|
|
517
523
|
update?: string;
|
|
518
524
|
remove?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Declaración opcional de cómo unwrappear la respuesta de esta operación.
|
|
527
|
+
* Cuando se declara, el motor extrae el contenido de `dataKey` antes de
|
|
528
|
+
* devolverlo al consumidor (ej.: `{ data: [...] }` → `[...]`).
|
|
529
|
+
* Si no se declara, el motor mantiene el comportamiento actual:
|
|
530
|
+
* respuesta pasada tal cual (array plano, `{ items }`, o objeto crudo).
|
|
531
|
+
* Esta declaración es por operación; si se desea un valor global, usarlo
|
|
532
|
+
* en cada operación o considerar un default a nivel de config en futuro.
|
|
533
|
+
*/
|
|
534
|
+
responseUnwrap?: ResponseUnwrap;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Cómo el motor debe desempaquetar la respuesta HTTP antes de entregarla.
|
|
538
|
+
* Opcional y opt-in: schemas sin este campo siguen el contrato actual.
|
|
539
|
+
*
|
|
540
|
+
* - `dataKey`: clave en el body que contiene el payload real (ej. `data`,
|
|
541
|
+
* `items`, `result`). Si el body no tiene esta clave, se devuelve `undefined`
|
|
542
|
+
* para lista / objeto vacío según corresponda, y se lanza error en modo
|
|
543
|
+
* estricto si se configura.
|
|
544
|
+
* - `metaKey`: clave con metadatos (paginación, total, etc.). Se ignora en
|
|
545
|
+
* el valor devuelto al consumidor pero puede leerse si el motor la expone
|
|
546
|
+
* en futuro.
|
|
547
|
+
* - `apply`: `'list' | 'get' | 'create' | 'update' | 'remove' | 'all'`.
|
|
548
|
+
* Qué operaciones aplican el unwrap. Por defecto `'all'` cuando se declara.
|
|
549
|
+
*/
|
|
550
|
+
export interface ResponseUnwrap {
|
|
551
|
+
dataKey: string;
|
|
552
|
+
metaKey?: string;
|
|
553
|
+
apply?: 'list' | 'get' | 'create' | 'update' | 'remove' | 'all';
|
|
554
|
+
/**
|
|
555
|
+
* Claves de metadata de paginación dentro del sobre. Usadas por
|
|
556
|
+
* `ApiService.listPage()` para armar `PageResult<T>`. Opcional: sin
|
|
557
|
+
* declaración, el motor intenta auto-detectar claves comunes
|
|
558
|
+
* (`nextCursor`, `total`, `hasMore`) y, si no hay, `hasMore = false`.
|
|
559
|
+
*/
|
|
560
|
+
pagination?: {
|
|
561
|
+
/** Clave del cursor siguiente dentro de `meta` (o del body si no hay `metaKey`). */
|
|
562
|
+
cursorKey?: string;
|
|
563
|
+
/** Clave del total de registros. */
|
|
564
|
+
totalKey?: string;
|
|
565
|
+
/** Clave del flag booleano "hay más páginas". */
|
|
566
|
+
hasMoreKey?: string;
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Método HTTP soportado por endpoints personalizados.
|
|
571
|
+
* Declarado aquí (y no en api.service.ts) para evitar ciclos de importación
|
|
572
|
+
* entre modelos y servicios.
|
|
573
|
+
*/
|
|
574
|
+
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
575
|
+
/**
|
|
576
|
+
* Definición de un endpoint personalizado más allá de los cinco estándar
|
|
577
|
+
* (list/get/create/update/remove). Permite al consumidor declarar rutas con
|
|
578
|
+
* verbos arbitrarios, segmentos extra, payloads JSON o multipart, y unwrap de
|
|
579
|
+
* respuesta propio.
|
|
580
|
+
*
|
|
581
|
+
* Ejemplo:
|
|
582
|
+
* name: 'recalculate-ranks'
|
|
583
|
+
* method: 'POST'
|
|
584
|
+
* path: '/admin/businesses/{businessId}/ranks/recalculate'
|
|
585
|
+
* payloadMode: 'json'
|
|
586
|
+
*/
|
|
587
|
+
export interface CustomEndpointDefinition {
|
|
588
|
+
/** Nombre único del endpoint dentro del recurso. Se usa para invocarlo. */
|
|
589
|
+
name: string;
|
|
590
|
+
/** Método HTTP de la petición. */
|
|
591
|
+
method: HttpMethod;
|
|
592
|
+
/** Ruta relativa a `API_URL`. Puede incluir marcadores {key}, {auth.user.id}, etc. */
|
|
593
|
+
path: string;
|
|
594
|
+
/** Modo de payload: 'json' (default) o 'multipart' para FormData. */
|
|
595
|
+
payloadMode?: 'json' | 'multipart';
|
|
596
|
+
/** Unwrap de respuesta override para este endpoint. Si no se declara, se usa el del recurso. */
|
|
597
|
+
responseUnwrap?: ResponseUnwrap;
|
|
519
598
|
}
|
|
520
599
|
export interface ResourceSchema {
|
|
521
600
|
/** Identificador interno (`categories`). */
|
|
@@ -533,6 +612,8 @@ export interface ResourceSchema {
|
|
|
533
612
|
keyField: string;
|
|
534
613
|
/** Campo que se muestra como nombre del registro. */
|
|
535
614
|
titleField: string;
|
|
615
|
+
/** Endpoints personalizados más allá de list/get/create/update/remove. */
|
|
616
|
+
customEndpoints?: Record<string, CustomEndpointDefinition>;
|
|
536
617
|
/** Si el listado se reordena (requiere `positionField`). */
|
|
537
618
|
sortable?: boolean;
|
|
538
619
|
positionField?: string;
|
|
@@ -810,31 +891,46 @@ export interface AuthSchema {
|
|
|
810
891
|
firebase?: FirebaseAuthConfig;
|
|
811
892
|
}
|
|
812
893
|
/**
|
|
813
|
-
*
|
|
814
|
-
*
|
|
815
|
-
*
|
|
894
|
+
* URL base de la API (baseapi §2.3): es la URL directa del Web App de Apps
|
|
895
|
+
* Script; ahí se hace el `POST` del envelope `{ token, method, path, payload }`.
|
|
896
|
+
* OBLIGATORIO proporcionarlo en `app.config.ts`:
|
|
897
|
+
* `{ provide: API_URL, useValue: 'https://…' }` (Fase 3). Vacío = mismo origen.
|
|
898
|
+
*/
|
|
899
|
+
export declare const API_URL: InjectionToken<string>;
|
|
900
|
+
/**
|
|
901
|
+
* Superficie mínima que `gas-admin-ui` usa de Firebase Auth.
|
|
902
|
+
* Implementada por la aplicación consumidora; inyectada vía `FIREBASE_AUTH_ADAPTER`.
|
|
903
|
+
* Mantener la interfaz fina evita acoplar la librería a una versión específica de Firebase.
|
|
816
904
|
*/
|
|
817
905
|
interface FirebaseAuthAdapter {
|
|
818
906
|
/**
|
|
819
|
-
*
|
|
820
|
-
*
|
|
907
|
+
* Abre un popup de Google sign-in y resuelve al ID token de Firebase.
|
|
908
|
+
* Rechaza si el usuario cancela o hay error.
|
|
821
909
|
*/
|
|
822
910
|
signInWithGoogle(): Promise<string>;
|
|
823
911
|
/**
|
|
824
|
-
*
|
|
825
|
-
*
|
|
912
|
+
* Inicia sesión con email y contraseña vía Firebase y resuelve al ID token.
|
|
913
|
+
* Se usa cuando provider === 'password' Y firebase está configurado (Firebase email auth).
|
|
826
914
|
*/
|
|
827
915
|
signInWithEmailAndPassword(email: string, password: string): Promise<string>;
|
|
828
|
-
/**
|
|
916
|
+
/**
|
|
917
|
+
* Cierra sesión en Firebase (llamado junto al clear de la sesión de la app).
|
|
918
|
+
*/
|
|
829
919
|
signOut(): Promise<void>;
|
|
920
|
+
/**
|
|
921
|
+
* Obtiene un ID token de Firebase FRESCO para usarlo en la cabecera
|
|
922
|
+
* `Authorization: Bearer <token>` de las peticiones REST.
|
|
923
|
+
*
|
|
924
|
+
* OPCIONAL: si el adaptador no lo implementa, `gas-admin-ui` envía el token
|
|
925
|
+
* de sesión almacenado tal cual (comportamiento actual). Implementarlo
|
|
926
|
+
* permite refrescar el ID token antes de cada petición REST, evitando
|
|
927
|
+
* errores "ID token inválido" tras la expiración de Firebase (1 hora).
|
|
928
|
+
*
|
|
929
|
+
* El adaptador decide cuándo refrescar (p. ej. `getIdToken(true)` de Firebase
|
|
930
|
+
* SDK fuerza la renovación; sin argumento devuelve el cacheado si aún es válido).
|
|
931
|
+
*/
|
|
932
|
+
getIdToken?(): Promise<string>;
|
|
830
933
|
}
|
|
831
|
-
/**
|
|
832
|
-
* URL base de la API (baseapi §2.3): es la URL directa del Web App de Apps
|
|
833
|
-
* Script; ahí se hace el `POST` del envelope `{ token, method, path, payload }`.
|
|
834
|
-
* OBLIGATORIO proporcionarlo en `app.config.ts`:
|
|
835
|
-
* `{ provide: API_URL, useValue: 'https://…' }` (Fase 3). Vacío = mismo origen.
|
|
836
|
-
*/
|
|
837
|
-
export declare const API_URL: InjectionToken<string>;
|
|
838
934
|
/**
|
|
839
935
|
* Token DI opcional para el adaptador de Firebase Auth.
|
|
840
936
|
* Proporcionado por la aplicación consumidora cuando usa proveedores federados o Firebase Auth.
|
|
@@ -880,6 +976,14 @@ export declare const API_DRIVER: InjectionToken<"gas" | "rest">;
|
|
|
880
976
|
*/
|
|
881
977
|
type ValueSources = Readonly<Record<string, () => unknown>>;
|
|
882
978
|
export declare const VALUE_SOURCES: InjectionToken<Readonly<Record<string, () => unknown>>>;
|
|
979
|
+
/**
|
|
980
|
+
* Unwrap de respuesta global por defecto (`GasAdminConfig.defaultResponseUnwrap`).
|
|
981
|
+
*
|
|
982
|
+
* Se fusiona con la declaración `endpoint.responseUnwrap` de cada recurso:
|
|
983
|
+
* la del recurso tiene prioridad en las claves que declara. Sin token, sólo
|
|
984
|
+
* aplica lo declarado por recurso — cero impacto en schemas existentes.
|
|
985
|
+
*/
|
|
986
|
+
export declare const DEFAULT_RESPONSE_UNWRAP: InjectionToken<ResponseUnwrap>;
|
|
883
987
|
/** Fija el catálogo (uso interno de `provideGasAdmin`; testable directo). */
|
|
884
988
|
export declare function setSchemaCatalog(schemas: readonly ResourceSchema[], auth?: AuthSchema): void;
|
|
885
989
|
/** Busca un schema por `id`; `undefined` si no existe. */
|
|
@@ -915,6 +1019,13 @@ interface GasAdminConfig {
|
|
|
915
1019
|
* ningún path que no lleve marcadores — cero impacto en schemas existentes.
|
|
916
1020
|
*/
|
|
917
1021
|
valueSources?: ValueSources;
|
|
1022
|
+
/**
|
|
1023
|
+
* Unwrap de respuesta global por defecto. Se fusiona con la declaración
|
|
1024
|
+
* `endpoint.responseUnwrap` de cada recurso (la del recurso tiene prioridad
|
|
1025
|
+
* en claves declaradas). Opcional: sin él, sólo aplica lo declarado por
|
|
1026
|
+
* recurso — cero impacto en schemas existentes (R2).
|
|
1027
|
+
*/
|
|
1028
|
+
defaultResponseUnwrap?: ResponseUnwrap;
|
|
918
1029
|
}
|
|
919
1030
|
/**
|
|
920
1031
|
* Wiring completo del motor: catálogo + HTTP con el interceptor de
|
|
@@ -998,6 +1109,23 @@ export declare class ApiError extends Error {
|
|
|
998
1109
|
* dos: sin este archivo no hay ciclo de imports.
|
|
999
1110
|
*/
|
|
1000
1111
|
export declare function renewedTokenOf(body: unknown): string | null;
|
|
1112
|
+
/**
|
|
1113
|
+
* Resultado de una página para `ApiService.listPage()`.
|
|
1114
|
+
*
|
|
1115
|
+
* El backend envía la metadata de paginación dentro del sobre (típicamente
|
|
1116
|
+
* en `meta`); el motor la extrae según la declaración `responseUnwrap.pagination`
|
|
1117
|
+
* y la entrega en este shape. `list()` NO usa este tipo: sigue devolviendo `T[]`.
|
|
1118
|
+
*/
|
|
1119
|
+
export interface PageResult<T> {
|
|
1120
|
+
/** Registros de la página actual. */
|
|
1121
|
+
items: T[];
|
|
1122
|
+
/** Cursor para pedir la página siguiente; `null` cuando no hay más. */
|
|
1123
|
+
nextCursor: string | null;
|
|
1124
|
+
/** Total de registros del conjunto, si el backend lo informa; `0` si no. */
|
|
1125
|
+
total: number;
|
|
1126
|
+
/** `true` si hay al menos una página más. `false` sin cursor informativo. */
|
|
1127
|
+
hasMore: boolean;
|
|
1128
|
+
}
|
|
1001
1129
|
/**
|
|
1002
1130
|
* Guards de sesión (auth.md §5.3).
|
|
1003
1131
|
*
|
|
@@ -1106,6 +1234,40 @@ export declare class NotificationService {
|
|
|
1106
1234
|
}
|
|
1107
1235
|
/** Métodos que entiende el envelope del backend (baseapi §2.3). */
|
|
1108
1236
|
type EnvelopeMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
1237
|
+
/** Dependencias del transporte, aportadas por la fachada (no hay singleton acá). */
|
|
1238
|
+
interface TransportDeps {
|
|
1239
|
+
http: HttpClient;
|
|
1240
|
+
/** URL base (`API_URL`): el Web App de Apps Script o el origen REST. */
|
|
1241
|
+
apiUrl: string;
|
|
1242
|
+
/** Getter del token de SESIÓN, leído en CADA petición (R2.8). */
|
|
1243
|
+
sessionToken: () => string | null;
|
|
1244
|
+
/**
|
|
1245
|
+
* Refresco opcional de ID token (Fase Firebase): si existe, se llama antes
|
|
1246
|
+
* de armar la cabecera Authorization. Un rechazo viaja por el canal de
|
|
1247
|
+
* errores — nunca se manda una petición con token inválido.
|
|
1248
|
+
*/
|
|
1249
|
+
getIdToken?: () => Promise<string>;
|
|
1250
|
+
}
|
|
1251
|
+
/** `POST text/plain` a `apiUrl` con el envelope GAS. */
|
|
1252
|
+
declare function sendGas<T>(deps: TransportDeps, path: string, method: EnvelopeMethod, payload?: Record<string, unknown> | FormData, multipart?: boolean): Observable<T>;
|
|
1253
|
+
/**
|
|
1254
|
+
* Verbo HTTP real con `Authorization: Bearer`. Si el adaptador provee
|
|
1255
|
+
* `getIdToken()`, se resuelve el token fresco ANTES de la cabecera; si no,
|
|
1256
|
+
* se usa el de sesión almacenado (fallback). Cualquier error de `getIdToken()`
|
|
1257
|
+
* se propaga por el canal de errores.
|
|
1258
|
+
*/
|
|
1259
|
+
declare function sendRest<T>(deps: TransportDeps, path: string, method: EnvelopeMethod, payload?: Record<string, unknown> | FormData, multipart?: boolean): Observable<T>;
|
|
1260
|
+
/** Despacho REST concreto sobre una URL ya construida. */
|
|
1261
|
+
declare function doRestRequest<T>(deps: TransportDeps, url: string, method: EnvelopeMethod, payload: Record<string, unknown> | FormData | undefined, headers?: HttpHeaders, multipart?: boolean): Observable<T>;
|
|
1262
|
+
/** `${apiUrl}${path}` normalizada: sin dobles slashes ni path sin slash inicial. */
|
|
1263
|
+
declare function buildUrl(apiUrl: string, path: string): string;
|
|
1264
|
+
/**
|
|
1265
|
+
* Convierte un payload en HttpParams para peticiones GET y DELETE en modo REST.
|
|
1266
|
+
* Si un valor es un objeto plano (ej: `{ view: 'calendar', params: { orden: 'es' } }`),
|
|
1267
|
+
* lo aplana un nivel para que sus claves viajen como query params reales
|
|
1268
|
+
* en lugar de serializarse como `params=[object Object]`.
|
|
1269
|
+
*/
|
|
1270
|
+
declare function toHttpParams(payload?: Record<string, unknown>): HttpParams;
|
|
1109
1271
|
/**
|
|
1110
1272
|
* CRUD genérico sobre el contrato v2 (baseapi §2.3) con soporte dual-driver:
|
|
1111
1273
|
*
|
|
@@ -1123,6 +1285,8 @@ export declare class ApiService {
|
|
|
1123
1285
|
private readonly driver;
|
|
1124
1286
|
/** Fuentes que aporta el consumidor (`provideGasAdmin({ valueSources })`). */
|
|
1125
1287
|
private readonly valueSources;
|
|
1288
|
+
/** Adaptador opcional de Firebase Auth para refrescar el ID token antes de peticiones REST. */
|
|
1289
|
+
private readonly firebaseAuthAdapter;
|
|
1126
1290
|
/**
|
|
1127
1291
|
* Acceso PEREZOSO a `ConfigService` (R2 · plan doc/context-sources-plan.md).
|
|
1128
1292
|
*
|
|
@@ -1133,6 +1297,14 @@ export declare class ApiService {
|
|
|
1133
1297
|
* parcial), devuelve `null` y el resolver falla ruidoso con «sin valor».
|
|
1134
1298
|
*/
|
|
1135
1299
|
private readonly injector;
|
|
1300
|
+
/** Unwrap global por defecto (`GasAdminConfig.defaultResponseUnwrap`); opcional. */
|
|
1301
|
+
private readonly defaultUnwrap;
|
|
1302
|
+
/**
|
|
1303
|
+
* Declaración de unwrap EFECTIVA para un endpoint: fusión del default
|
|
1304
|
+
* global con la declaración por recurso (recurso gana en las claves que
|
|
1305
|
+
* declara). Sin ninguna de las dos ⇒ `undefined` (comportamiento actual).
|
|
1306
|
+
*/
|
|
1307
|
+
private effectiveUnwrap;
|
|
1136
1308
|
/**
|
|
1137
1309
|
* Listado. El backend envuelve la respuesta cuando la operación declara
|
|
1138
1310
|
* `shape.envelope: 'list'` (F5) ⇒ `{ items, nextCursor, total }` (R6.4);
|
|
@@ -1148,6 +1320,21 @@ export declare class ApiService {
|
|
|
1148
1320
|
* llamada es la de siempre — la lectura llana del recurso.
|
|
1149
1321
|
*/
|
|
1150
1322
|
list<T>(endpoint: ResourceEndpoints, payload?: Record<string, unknown>): Observable<T[]>;
|
|
1323
|
+
/**
|
|
1324
|
+
* Listado paginado OPT-IN (plan doc/engine-refactor-plan.md · Fase 3).
|
|
1325
|
+
*
|
|
1326
|
+
* Misma petición que `list()` pero devuelve `PageResult<T>` con la metadata
|
|
1327
|
+
* de paginación que el backend envía en el sobre (`{ items, nextCursor,
|
|
1328
|
+
* total }` o dentro de `meta` con unwrap declarado). Las claves se leen
|
|
1329
|
+
* según `responseUnwrap.pagination` (cursorKey/totalKey/hasMoreKey) o se
|
|
1330
|
+
* auto-detectan (`nextCursor`, `total`, `hasMore`).
|
|
1331
|
+
*
|
|
1332
|
+
* `payload` acepta normalmente `{ cursor, limit }` para pedir la página
|
|
1333
|
+
* siguiente; viaja como cualquier otro payload (query params en GET REST,
|
|
1334
|
+
* campo `payload` del envelope en GAS). `list()` no cambia: sigue
|
|
1335
|
+
* devolviendo `T[]` (R11).
|
|
1336
|
+
*/
|
|
1337
|
+
listPage<T>(endpoint: ResourceEndpoints, payload?: Record<string, unknown>): Observable<PageResult<T>>;
|
|
1151
1338
|
/** `key` solo aplica a colecciones (`{key}` en la plantilla); los singleton no la llevan. */
|
|
1152
1339
|
get<T>(endpoint: ResourceEndpoints, key?: string): Observable<T>;
|
|
1153
1340
|
create<T>(endpoint: ResourceEndpoints, payload: Record<string, unknown>): Observable<T>;
|
|
@@ -1159,7 +1346,26 @@ export declare class ApiService {
|
|
|
1159
1346
|
* `/admin/upload-signature`, etc.
|
|
1160
1347
|
*/
|
|
1161
1348
|
request<T>(method: EnvelopeMethod, path: string | undefined, payload?: Record<string, unknown>): Observable<T>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Invoca un endpoint personalizado declarado por el consumidor.
|
|
1351
|
+
*
|
|
1352
|
+
* Acepta bien la definición directa (`CustomEndpointDefinition`) o un schema
|
|
1353
|
+
* + nombre (resuelve en `schema.customEndpoints`). El despacho respeta el
|
|
1354
|
+
* método, la ruta, el modo de payload (json/multipart) y el unwrap propios
|
|
1355
|
+
* de la declaración.
|
|
1356
|
+
*/
|
|
1357
|
+
invokeCustomEndpoint<T>(definitionOrSchema: CustomEndpointDefinition | ResourceSchema, nameOrPayload?: string | Record<string, unknown> | FormData, payload?: Record<string, unknown> | FormData, key?: string): Observable<T>;
|
|
1358
|
+
/** Alias corto de `invokeCustomEndpoint`. */
|
|
1359
|
+
invokeCustom<T>(schemaOrDefinition: ResourceSchema | CustomEndpointDefinition, nameOrPayload?: string | Record<string, unknown> | FormData, payload?: Record<string, unknown> | FormData, key?: string): Observable<T>;
|
|
1360
|
+
/** Alias adicional por compatibilidad. */
|
|
1361
|
+
custom<T>(schemaOrDefinition: ResourceSchema | CustomEndpointDefinition, nameOrPayload?: string | Record<string, unknown> | FormData, payload?: Record<string, unknown> | FormData, key?: string): Observable<T>;
|
|
1162
1362
|
private send;
|
|
1363
|
+
/**
|
|
1364
|
+
* Dependencias del transporte (Fase 4): la fachada sólo arma este objeto y
|
|
1365
|
+
* delega en `transport.ts`. El token de sesión y el ID token fresco se
|
|
1366
|
+
* resuelven vía getters en el momento de la petición (R2.8 / refresh).
|
|
1367
|
+
*/
|
|
1368
|
+
private transportDeps;
|
|
1163
1369
|
/**
|
|
1164
1370
|
* Fuentes de contexto de ESTA petición: getters, no valores — se evalúan
|
|
1165
1371
|
* sólo si el path trae marcadores.
|
|
@@ -1168,9 +1374,6 @@ export declare class ApiService {
|
|
|
1168
1374
|
* dueño de sus fuentes y el registro del consumidor no las pisa.
|
|
1169
1375
|
*/
|
|
1170
1376
|
private buildSources;
|
|
1171
|
-
private sendGas;
|
|
1172
|
-
private sendRest;
|
|
1173
|
-
private buildUrl;
|
|
1174
1377
|
private withKey;
|
|
1175
1378
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, never>;
|
|
1176
1379
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
@@ -1268,10 +1471,6 @@ export declare class AuthService {
|
|
|
1268
1471
|
* que deja una sesión muerta en el servidor.
|
|
1269
1472
|
*/
|
|
1270
1473
|
logout(): Observable<void>;
|
|
1271
|
-
/** Revoca las sesiones del usuario en todos sus dispositivos. */
|
|
1272
|
-
logoutAll(): Observable<{
|
|
1273
|
-
effectiveWithinSeconds: number;
|
|
1274
|
-
}>;
|
|
1275
1474
|
/** Revalida la sesión restaurada contra `/auth/me`; sin token ⇒ sin viaje. */
|
|
1276
1475
|
restore(): Observable<void>;
|
|
1277
1476
|
/**
|
|
@@ -1518,14 +1717,14 @@ export declare class Sidebar {
|
|
|
1518
1717
|
private readonly auth;
|
|
1519
1718
|
private readonly notifications;
|
|
1520
1719
|
readonly isAuthenticated: import("@angular/core").Signal<boolean>;
|
|
1521
|
-
readonly
|
|
1720
|
+
readonly loggingOut: import("@angular/core").WritableSignal<boolean>;
|
|
1522
1721
|
/**
|
|
1523
1722
|
* R2.10 — el menú se corta dos veces: `isVisible` (permisos declarados
|
|
1524
1723
|
* en el schema) y `canAccess` (auth.md §5.3, `access` de la sesión).
|
|
1525
1724
|
* Sólo UX: filtrar acá no protege nada, el back re-verifica en R2.6.
|
|
1526
1725
|
*/
|
|
1527
1726
|
readonly menuItems: import("@angular/core").Signal<MenuEntry[]>;
|
|
1528
|
-
|
|
1727
|
+
closeSession(): Promise<void>;
|
|
1529
1728
|
static ɵfac: i0.ɵɵFactoryDeclaration<Sidebar, never>;
|
|
1530
1729
|
static ɵcmp: i0.ɵɵComponentDeclaration<Sidebar, "app-sidebar", never, {
|
|
1531
1730
|
"open": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tinya-code-gas-admin-ui-calendar-view-CquWGzw7.mjs","names":[],"sources":["../../../projects/gas-admin-ui/src/lib/views/calendar-view/calendar-model.ts","../../../projects/gas-admin-ui/src/lib/views/calendar-view/calendar-view.ts"],"sourcesContent":["import type { CalendarViewConfig, FieldSchema } from '../../core/models/schema.model';\nimport type { SourceRow } from '../../core/services/data-source.service';\n\n/**\n * Pure date + event-mapping model for the generic calendar view (R9.8.3).\n *\n * Date model (decided): backend `date` fields are ISO civil dates\n * `YYYY-MM-DD` treated as CALENDAR DAYS — never shifted through the browser\n * timezone. Every parse goes through `Date.UTC` on the literal parts, never\n * `new Date('YYYY-MM-DD')` in local time (that lands on the previous day\n * west of Greenwich).\n */\n\n/** Milliseconds in one civil day — every day-step of the model uses this. */\nexport const DAY_MS = 86_400_000;\n\n/** Visible modes of the calendar. */\nexport type CalendarMode = 'month' | 'week' | 'day' | 'agenda';\n\n/** Inclusive pair of civil days (`YYYY-MM-DD`) that the view paints. */\nexport interface CivilRange {\n desde: string;\n hasta: string;\n}\n\n/** One event painted from a source row. */\nexport interface CalEvent {\n key: string;\n title: string;\n /** True first day (`YYYY-MM-DD`), before any clamp to the visible range. */\n startDay: string;\n /** True last day, inclusive. Equals `startDay` for single-day events. */\n endDay: string;\n color?: string;\n row: SourceRow;\n}\n\n/** A row excluded from the grid because its interval is inconsistent. */\nexport interface CalendarProblem {\n row: SourceRow;\n reason: string;\n}\n\n/** Result of mapping raw rows onto calendar events (R9.8.3). */\nexport interface CalendarMapping {\n events: CalEvent[];\n /** Rows whose `startField` is empty or not a valid civil date. */\n undated: SourceRow[];\n /** Rows whose `endField` makes the interval impossible. */\n invalid: CalendarProblem[];\n}\n\n/** Spanish reasons shown next to problem records (UI copy). */\nexport const REASON_UNDATED = 'Sin fecha de inicio válida';\nexport const REASON_INVALID_END = 'Fecha de fin inválida';\nexport const REASON_END_BEFORE_START = 'El fin es anterior al inicio';\n\nconst MONTHS = [\n 'enero',\n 'febrero',\n 'marzo',\n 'abril',\n 'mayo',\n 'junio',\n 'julio',\n 'agosto',\n 'septiembre',\n 'octubre',\n 'noviembre',\n 'diciembre',\n];\n\nconst MONTHS_SHORT = [\n 'ene',\n 'feb',\n 'mar',\n 'abr',\n 'may',\n 'jun',\n 'jul',\n 'ago',\n 'sep',\n 'oct',\n 'nov',\n 'dic',\n];\n\n/** Weekday names Monday-first (the calendar's week start, decided). */\nconst WEEKDAYS_SHORT = ['lun', 'mar', 'mié', 'jue', 'vie', 'sáb', 'dom'];\nconst WEEKDAYS = ['lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado', 'domingo'];\n\n/** Weekday headings of the Monday-first grid, in display order. */\nexport const WEEKDAY_HEADINGS: readonly string[] = WEEKDAYS_SHORT;\n\nconst DAY_PATTERN = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\n\n/**\n * `YYYY-MM-DD` → UTC milliseconds at midnight of that civil day.\n *\n * Strict: the string must be exactly three zero-padded parts and name a real\n * calendar day (`2026-02-30` is rejected, not rolled into March). Empty,\n * malformed or non-string input → `null` (the caller decides whether that\n * means \"undated\" or \"invalid\").\n */\nexport function parseDay(value: unknown): number | null {\n if (typeof value !== 'string') return null;\n const match = DAY_PATTERN.exec(value.trim());\n if (match === null) return null;\n const year = Number(match[1]);\n const month = Number(match[2]);\n const day = Number(match[3]);\n const ms = Date.UTC(year, month - 1, day);\n const back = new Date(ms);\n if (\n back.getUTCFullYear() !== year ||\n back.getUTCMonth() !== month - 1 ||\n back.getUTCDate() !== day\n ) {\n return null;\n }\n return ms;\n}\n\n/** UTC milliseconds at midnight → `YYYY-MM-DD` (inverse of `parseDay`). */\nexport function formatDay(ms: number): string {\n const date = new Date(ms);\n const month = String(date.getUTCMonth() + 1).padStart(2, '0');\n const day = String(date.getUTCDate()).padStart(2, '0');\n return `${date.getUTCFullYear()}-${month}-${day}`;\n}\n\n/**\n * Today as a civil day, in the USER's local calendar date — the local parts\n * are read off `new Date()` and formatted manually, so no timezone shift can\n * sneak in through a round-trip.\n */\nexport function todayCivil(): string {\n const now = new Date();\n const month = String(now.getMonth() + 1).padStart(2, '0');\n const day = String(now.getDate()).padStart(2, '0');\n return `${now.getFullYear()}-${month}-${day}`;\n}\n\n/** Day-step on civil days (safe: every `ms` is a UTC midnight). */\nexport function addDays(ms: number, days: number): number {\n return ms + days * DAY_MS;\n}\n\n/** 0 = Monday … 6 = Sunday (the calendar's Monday-first convention). */\nexport function dayOfWeekMon0(ms: number): number {\n return (new Date(ms).getUTCDay() + 6) % 7;\n}\n\n/**\n * Move a civil day by whole months, clamping the day-of-month to the target\n * month's length (Jan 31 + 1 month → Feb 28).\n */\nexport function shiftMonths(ms: number, months: number): number {\n const date = new Date(ms);\n const target = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + months, 1));\n const lastDay = new Date(\n Date.UTC(target.getUTCFullYear(), target.getUTCMonth() + 1, 0),\n ).getUTCDate();\n return Date.UTC(\n target.getUTCFullYear(),\n target.getUTCMonth(),\n Math.min(date.getUTCDate(), lastDay),\n );\n}\n\n/** Monday of the 6-week (42-day) grid that shows the cursor's month. */\nfunction monthGridStartMs(cursorMs: number): number {\n const date = new Date(cursorMs);\n const firstOfMonth = Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1);\n return addDays(firstOfMonth, -dayOfWeekMon0(firstOfMonth));\n}\n\n/**\n * The 42 civil days of the month grid (6 Monday-first weeks), so the grid\n * always has the same shape and the de-emphasized edge days are complete.\n */\nexport function monthGridDays(cursorDay: string): string[] {\n const cursor = parseDay(cursorDay);\n if (cursor === null) return [];\n const start = monthGridStartMs(cursor);\n return Array.from({ length: 42 }, (_, index) => formatDay(addDays(start, index)));\n}\n\n/** The 7 civil days of the Monday-first week containing the cursor. */\nexport function weekDays(cursorDay: string): string[] {\n const cursor = parseDay(cursorDay);\n if (cursor === null) return [];\n const start = addDays(cursor, -dayOfWeekMon0(cursor));\n return Array.from({ length: 7 }, (_, index) => formatDay(addDays(start, index)));\n}\n\n/** Every civil day of an inclusive range (empty when the range is invalid). */\nexport function daysInRange(range: CivilRange): string[] {\n const from = parseDay(range.desde);\n const to = parseDay(range.hasta);\n if (from === null || to === null || to < from) return [];\n const days: string[] = [];\n for (let ms = from; ms <= to; ms = addDays(ms, 1)) {\n days.push(formatDay(ms));\n }\n return days;\n}\n\n/**\n * Visible `{desde, hasta}` for a mode + cursor.\n *\n * - `month`: the 6-week grid range (superset of the month) — with the\n * backend-range optimization the fetch already covers the edge weeks.\n * - `week`: the Monday-first week of the cursor.\n * - `day`: the cursor itself.\n * - `agenda`: a fixed 30-day window from the cursor.\n */\nexport function visibleRangeFor(mode: CalendarMode, cursorDay: string): CivilRange {\n const cursor = parseDay(cursorDay);\n if (cursor === null) return { desde: '', hasta: '' };\n switch (mode) {\n case 'month': {\n const start = monthGridStartMs(cursor);\n return { desde: formatDay(start), hasta: formatDay(addDays(start, 41)) };\n }\n case 'week': {\n const start = addDays(cursor, -dayOfWeekMon0(cursor));\n return { desde: formatDay(start), hasta: formatDay(addDays(start, 6)) };\n }\n case 'day':\n return { desde: formatDay(cursor), hasta: formatDay(cursor) };\n case 'agenda':\n return { desde: formatDay(cursor), hasta: formatDay(addDays(cursor, 29)) };\n }\n}\n\n/** Move the cursor one step of the current mode (agenda steps 30 days). */\nexport function shiftCursor(mode: CalendarMode, cursorDay: string, delta: 1 | -1): string {\n const cursor = parseDay(cursorDay) ?? parseDay(todayCivil()) ?? Date.UTC(1970, 0, 1);\n switch (mode) {\n case 'month':\n return formatDay(shiftMonths(cursor, delta));\n case 'week':\n return formatDay(addDays(cursor, 7 * delta));\n case 'day':\n return formatDay(addDays(cursor, delta));\n case 'agenda':\n return formatDay(addDays(cursor, 30 * delta));\n }\n}\n\n/** True when both civil days fall in the same year+month. */\nexport function sameMonth(a: string, b: string): boolean {\n const msA = parseDay(a);\n const msB = parseDay(b);\n if (msA === null || msB === null) return false;\n const dateA = new Date(msA);\n const dateB = new Date(msB);\n return (\n dateA.getUTCFullYear() === dateB.getUTCFullYear() && dateA.getUTCMonth() === dateB.getUTCMonth()\n );\n}\n\n/** Depth-first lookup of a field by key through `group`/`list` nesting. */\nexport function findFieldByKey(\n fields: readonly FieldSchema[],\n key: string,\n): FieldSchema | undefined {\n for (const field of fields) {\n if (field.key === key) return field;\n if (field.type === 'group') {\n const hit = findFieldByKey(field.fields, key);\n if (hit !== undefined) return hit;\n } else if (field.type === 'list') {\n const hit = findFieldByKey(field.itemFields, key);\n if (hit !== undefined) return hit;\n }\n }\n return undefined;\n}\n\n/**\n * Pure row → event mapping (R9.8.3): the single place that decides what is a\n * paintable event, what is undated and what is an impossible interval.\n *\n * - Empty/invalid `startField` → `undated` (surfaced, never hidden).\n * - `endField` of type `time` → same civil day as the start (time-of-day\n * within the start day; it never spans days).\n * - Empty `endField` (date) → single-day event on the start.\n * - `end < start` → `invalid` with a visible reason; not painted at all.\n */\nexport function mapCalendarRows(\n rows: readonly SourceRow[],\n config: CalendarViewConfig,\n options: { keyField: string; endFieldType?: string },\n): CalendarMapping {\n const events: CalEvent[] = [];\n const undated: SourceRow[] = [];\n const invalid: CalendarProblem[] = [];\n\n for (const row of rows) {\n const startMs = parseDay(row[config.startField]);\n if (startMs === null) {\n undated.push(row);\n continue;\n }\n let endMs = startMs;\n if (config.endField !== undefined && options.endFieldType !== 'time') {\n const rawEnd = row[config.endField];\n const empty = rawEnd === null || rawEnd === undefined || rawEnd === '';\n if (!empty) {\n const parsedEnd = parseDay(rawEnd);\n if (parsedEnd === null) {\n invalid.push({ row, reason: REASON_INVALID_END });\n continue;\n }\n if (parsedEnd < startMs) {\n invalid.push({ row, reason: REASON_END_BEFORE_START });\n continue;\n }\n endMs = parsedEnd;\n }\n }\n const key = String(row[options.keyField] ?? '');\n const title = String(row[config.titleField] ?? '').trim() || key;\n const rawColor = config.colorField !== undefined ? row[config.colorField] : undefined;\n const color = typeof rawColor === 'string' && rawColor !== '' ? rawColor : undefined;\n events.push({ key, title, startDay: formatDay(startMs), endDay: formatDay(endMs), color, row });\n }\n\n return { events, undated, invalid };\n}\n\n/**\n * Bucket events per civil day inside the visible range.\n *\n * A multi-day event appears under EVERY day it touches; the painted span is\n * clamped to the range (the event keeps its true `startDay`/`endDay` — only\n * the buckets are limited), which also keeps long intervals cheap.\n */\nexport function eventsByDay(\n events: readonly CalEvent[],\n range: CivilRange,\n): Map<string, CalEvent[]> {\n const byDay = new Map<string, CalEvent[]>();\n const from = parseDay(range.desde);\n const to = parseDay(range.hasta);\n if (from === null || to === null || to < from) return byDay;\n for (const event of events) {\n const start = parseDay(event.startDay);\n const end = parseDay(event.endDay);\n if (start === null || end === null) continue;\n const paintFrom = Math.max(start, from);\n const paintTo = Math.min(end, to);\n for (let ms = paintFrom; ms <= paintTo; ms = addDays(ms, 1)) {\n const day = formatDay(ms);\n const bucket = byDay.get(day);\n if (bucket === undefined) byDay.set(day, [event]);\n else bucket.push(event);\n }\n }\n return byDay;\n}\n\n/** \"12 de octubre de 2026\" — civil parts, UTC-based (no TZ shift). */\nexport function dayLabel(day: string): string {\n const ms = parseDay(day);\n if (ms === null) return day;\n const date = new Date(ms);\n return `${date.getUTCDate()} de ${MONTHS[date.getUTCMonth()]} de ${date.getUTCFullYear()}`;\n}\n\n/** Short weekday of a civil day, Monday-first (\"lunes\" → \"lun\"). */\nexport function weekdayShort(day: string): string {\n const ms = parseDay(day);\n if (ms === null) return '';\n return WEEKDAYS_SHORT[dayOfWeekMon0(ms)];\n}\n\n/** Full weekday of a civil day (\"lunes\"). */\nexport function weekdayFull(day: string): string {\n const ms = parseDay(day);\n if (ms === null) return '';\n return WEEKDAYS[dayOfWeekMon0(ms)];\n}\n\n/** \"lunes, 12 de octubre de 2026\" — agenda/day heading. */\nexport function agendaDayLabel(day: string): string {\n const weekday = weekdayFull(day);\n return weekday !== '' ? `${weekday}, ${dayLabel(day)}` : dayLabel(day);\n}\n\n/**\n * Header label for the visible range, built from civil parts with a fixed\n * Spanish vocabulary (deterministic regardless of the runtime locale).\n */\nexport function rangeLabelFor(mode: CalendarMode, cursorDay: string): string {\n const cursor = parseDay(cursorDay);\n if (cursor === null) return '';\n const date = new Date(cursor);\n if (mode === 'month') {\n return `${MONTHS[date.getUTCMonth()]} de ${date.getUTCFullYear()}`;\n }\n const range = visibleRangeFor(mode, cursorDay);\n const desde = parseDay(range.desde);\n const hasta = parseDay(range.hasta);\n if (desde === null || hasta === null) return '';\n const startDate = new Date(desde);\n const endDate = new Date(hasta);\n const sameYear = startDate.getUTCFullYear() === endDate.getUTCFullYear();\n const left = `${startDate.getUTCDate()} ${MONTHS_SHORT[startDate.getUTCMonth()]}${\n sameYear ? '' : ` ${startDate.getUTCFullYear()}`\n }`;\n return `${left} – ${endDate.getUTCDate()} ${MONTHS_SHORT[endDate.getUTCMonth()]} ${endDate.getUTCFullYear()}`;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n signal,\n} from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute } from '@angular/router';\nimport { LucideChevronLeft, LucideChevronRight } from '@lucide/angular';\n\nimport type {\n CalendarViewConfig,\n ResourceSchema,\n UiViewCalendar,\n SelectionBinding,\n} from '../../core/models/schema.model';\nimport { ErrorMapperService } from '../../core/services/error-mapper.service';\nimport { DataSourceService, type SourceRow } from '../../core/services/data-source.service';\nimport type { SelectionEmitter } from '../composer/view-context';\nimport { getSchema } from '../../core/registry/schema-catalog';\nimport { Button } from '../../shared/components/button/button';\nimport { EmptyState } from '../../shared/components/empty-state/empty-state';\nimport { Skeleton } from '../../shared/components/skeleton/skeleton';\nimport {\n agendaDayLabel,\n type CalendarMapping,\n type CalendarMode,\n type CalEvent,\n type CivilRange,\n daysInRange,\n eventsByDay,\n findFieldByKey,\n mapCalendarRows,\n monthGridDays,\n rangeLabelFor,\n REASON_END_BEFORE_START,\n REASON_UNDATED,\n sameMonth,\n shiftCursor,\n todayCivil,\n visibleRangeFor,\n weekDays,\n WEEKDAY_HEADINGS,\n weekdayShort,\n} from './calendar-model';\n\n/**\n * Narrowing helper: `UiViewBase` keeps `type: string` open, so comparing\n * `view.type === 'calendar'` alone does not remove the base member from the\n * union. Requiring `config` in the value is what actually proves the view is\n * a `UiViewCalendar` at runtime.\n */\nfunction calendarConfigOf(view: unknown): UiViewCalendar['config'] | undefined {\n if (!view || typeof view !== 'object') return undefined;\n const candidate = view as { type?: unknown; config?: unknown };\n return candidate.type === 'calendar' && candidate.config !== undefined\n ? (candidate.config as UiViewCalendar['config'])\n : undefined;\n}\n\ntype Status = 'loading' | 'ready' | 'error';\n\n/** Mode switcher, in display order (Spanish UI copy). */\nconst MODE_OPTIONS: readonly { mode: CalendarMode; label: string }[] = [\n { mode: 'month', label: 'Mes' },\n { mode: 'week', label: 'Semana' },\n { mode: 'day', label: 'Día' },\n { mode: 'agenda', label: 'Agenda' },\n];\n\n/** Stable empty bucket — avoids allocating a new array per day per cycle. */\nconst NO_EVENTS: readonly CalEvent[] = [];\n\n/**\n * Generic calendar view (R9.8.3): month / week / day / agenda over the rows\n * of the declared `CalendarViewConfig.source` (or the resource's own\n * listing), positioned client-side onto civil days.\n *\n * Data flow: ONE fetcher (`DataSourceService.rows`) per visible range. When\n * the schema declares `source.view` the visible `desde`/`hasta` travel as\n * `ctx` so the backend view can filter the range; without a view nothing\n * filters, the full listing is cached (30 s TTL) and reused while the user\n * navigates — both paths share this component, only the `ctx` differs.\n *\n * Read-only by design: no drag, no click-to-edit. Color never carries\n * meaning alone — every event pairs its color dot with the title text — and\n * the agenda mode is the no-grid fallback for small screens.\n */\n@Component({\n selector: 'app-calendar-view',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [Button, EmptyState, LucideChevronLeft, LucideChevronRight, Skeleton],\n template: `\n @if (config(); as cfg) {\n <section class=\"space-y-4\" aria-label=\"Calendario\" [attr.aria-busy]=\"status() === 'loading'\">\n <header class=\"flex flex-wrap items-center justify-between gap-3\">\n <h2 class=\"font-display text-xl font-semibold\">{{ rangeLabel() }}</h2>\n <div class=\"flex items-center gap-1\">\n <button\n app-button\n variant=\"outline\"\n size=\"icon\"\n type=\"button\"\n aria-label=\"Período anterior\"\n title=\"Período anterior\"\n (click)=\"previous()\"\n >\n <svg lucideChevronLeft size=\"16\" aria-hidden=\"true\" />\n </button>\n <button app-button variant=\"outline\" size=\"sm\" type=\"button\" (click)=\"today()\">\n Hoy\n </button>\n <button\n app-button\n variant=\"outline\"\n size=\"icon\"\n type=\"button\"\n aria-label=\"Período siguiente\"\n title=\"Período siguiente\"\n (click)=\"next()\"\n >\n <svg lucideChevronRight size=\"16\" aria-hidden=\"true\" />\n </button>\n </div>\n <div class=\"flex items-center gap-1\" role=\"group\" aria-label=\"Vista del calendario\">\n @for (option of modeOptions; track option.mode) {\n <button\n app-button\n variant=\"ghost\"\n size=\"sm\"\n type=\"button\"\n [attr.aria-pressed]=\"mode() === option.mode\"\n (click)=\"setMode(option.mode)\"\n >\n {{ option.label }}\n </button>\n }\n </div>\n </header>\n\n @switch (status()) {\n @case ('loading') {\n <app-skeleton [lines]=\"8\" [height]=\"32\" />\n }\n @case ('error') {\n <app-empty-state title=\"No se pudo cargar el calendario\" [message]=\"errorMessage()\">\n <button app-button variant=\"outline\" type=\"button\" (click)=\"retry()\">\n Reintentar\n </button>\n </app-empty-state>\n }\n @case ('ready') {\n @if (mapping().events.length === 0) {\n <app-empty-state\n title=\"Sin eventos\"\n message=\"No hay eventos con fecha válida en este período.\"\n />\n } @else {\n @switch (mode()) {\n @case ('month') {\n <div class=\"overflow-x-auto rounded-xl border border-neutral/20 bg-surface\">\n <div class=\"grid min-w-[640px] grid-cols-7\">\n @for (heading of weekdayHeadings; track heading) {\n <div\n class=\"border-b border-neutral/15 px-2 py-1.5 text-xs font-medium uppercase text-neutral\"\n >\n {{ heading }}\n </div>\n }\n @for (day of monthGrid(); track day) {\n <div\n class=\"min-h-24 border-b border-r border-neutral/10 p-1.5\"\n [attr.data-day]=\"day\"\n [class.opacity-40]=\"!isInCursorMonth(day)\"\n >\n <span class=\"text-xs font-medium\">{{ dayNumber(day) }}</span>\n <ul class=\"mt-1 space-y-0.5\">\n @for (event of eventsFor(day); track event.key) {\n <li\n class=\"flex items-center gap-1 text-xs\"\n [class.cursor-pointer]=\"seleccionable()\"\n [class.ring-2]=\"esSeleccionada(event)\"\n [attr.data-event-key]=\"event.key\"\n [attr.data-selectable]=\"seleccionable() ? 'true' : null\"\n (click)=\"seleccionar(event)\"\n >\n <span\n class=\"size-2 shrink-0 rounded-full bg-neutral/30\"\n [style.background-color]=\"event.color ?? null\"\n aria-hidden=\"true\"\n ></span>\n <span class=\"truncate\">{{ event.title }}</span>\n </li>\n }\n </ul>\n </div>\n }\n </div>\n </div>\n }\n @case ('week') {\n <div class=\"overflow-x-auto rounded-xl border border-neutral/20 bg-surface\">\n <div class=\"grid min-w-[560px] grid-cols-7\">\n @for (day of weekColumnDays(); track day) {\n <div class=\"min-h-32 border-r border-neutral/10 p-2\" [attr.data-day]=\"day\">\n <span class=\"text-xs font-medium uppercase text-neutral\">\n {{ weekdayShort(day) }} {{ dayNumber(day) }}\n </span>\n <ul class=\"mt-2 space-y-1\">\n @for (event of eventsFor(day); track event.key) {\n <li\n class=\"flex items-center gap-1.5 text-sm\"\n [class.cursor-pointer]=\"seleccionable()\"\n [class.ring-2]=\"esSeleccionada(event)\"\n [attr.data-event-key]=\"event.key\"\n [attr.data-selectable]=\"seleccionable() ? 'true' : null\"\n (click)=\"seleccionar(event)\"\n >\n <span\n class=\"size-2 shrink-0 rounded-full bg-neutral/30\"\n [style.background-color]=\"event.color ?? null\"\n aria-hidden=\"true\"\n ></span>\n <span class=\"truncate\">{{ event.title }}</span>\n </li>\n }\n </ul>\n </div>\n }\n </div>\n </div>\n }\n @case ('day') {\n <div\n class=\"rounded-xl border border-neutral/20 bg-surface p-4\"\n [attr.data-day]=\"cursor()\"\n >\n <h3 class=\"font-display text-base font-semibold\">\n {{ dayHeading(cursor()) }}\n </h3>\n @if (eventsFor(cursor()).length === 0) {\n <p class=\"mt-2 text-sm text-neutral\">Sin eventos este día.</p>\n } @else {\n <ul class=\"mt-3 space-y-2\">\n @for (event of eventsFor(cursor()); track event.key) {\n <li\n class=\"flex items-center gap-1 text-xs\"\n [class.cursor-pointer]=\"seleccionable()\"\n [class.ring-2]=\"esSeleccionada(event)\"\n [attr.data-event-key]=\"event.key\"\n [attr.data-selectable]=\"seleccionable() ? 'true' : null\"\n (click)=\"seleccionar(event)\"\n >\n <span\n class=\"size-2.5 shrink-0 rounded-full bg-neutral/30\"\n [style.background-color]=\"event.color ?? null\"\n aria-hidden=\"true\"\n ></span>\n <span>{{ event.title }}</span>\n </li>\n }\n </ul>\n }\n </div>\n }\n @case ('agenda') {\n <ol class=\"space-y-4\">\n @for (day of agendaDays(); track day) {\n <li class=\"rounded-xl border border-neutral/20 bg-surface p-4\">\n <h3 class=\"text-sm font-semibold\">{{ dayHeading(day) }}</h3>\n <ul class=\"mt-2 space-y-1\">\n @for (event of eventsFor(day); track event.key) {\n <li\n class=\"flex items-center gap-2 text-sm\"\n [class.cursor-pointer]=\"seleccionable()\"\n [class.ring-2]=\"esSeleccionada(event)\"\n [attr.data-event-key]=\"event.key\"\n [attr.data-selectable]=\"seleccionable() ? 'true' : null\"\n (click)=\"seleccionar(event)\"\n >\n <span\n class=\"size-2 shrink-0 rounded-full bg-neutral/30\"\n [style.background-color]=\"event.color ?? null\"\n aria-hidden=\"true\"\n ></span>\n <span>{{ event.title }}</span>\n </li>\n }\n </ul>\n </li>\n }\n </ol>\n }\n }\n }\n\n <!-- Problem records are VISIBLE, never silently dropped: a row\n without a valid start or with an impossible interval cannot\n be painted, but the operator must see why. -->\n @if (hasProblemRecords()) {\n <section\n class=\"rounded-xl border border-neutral/30 p-4\"\n aria-label=\"Registros sin fecha válida\"\n >\n <h3 class=\"font-display text-sm font-semibold\">Registros sin fecha válida</h3>\n <p class=\"mt-1 text-help text-neutral\">\n Estos registros no se pueden pintar en el calendario:\n </p>\n <ul class=\"mt-2 space-y-1 text-sm\">\n @for (row of mapping().undated; track $index) {\n <li>{{ recordLabel(row) }} — {{ reasonUndated }}</li>\n }\n @for (item of mapping().invalid; track $index) {\n <li>{{ recordLabel(item.row) }} — {{ item.reason }}</li>\n }\n </ul>\n </section>\n }\n }\n }\n </section>\n } @else {\n <app-empty-state\n title=\"Configuración inválida\"\n message=\"Esta vista no declara una configuración de calendario válida.\"\n />\n }\n `,\n})\nexport class CalendarView {\n private readonly route = inject(ActivatedRoute);\n // The shell mounts views via `loadComponent` (no input bindings), so the\n // schema is resolved from route data exactly like FormView does.\n private readonly routeData = toSignal(this.route.data, { requireSync: true });\n private readonly dataSource = inject(DataSourceService);\n private readonly errorMapper = inject(ErrorMapperService);\n\n /**\n * Resource schema for this view. The shell mounts views via\n * `loadComponent` (no input bindings), so the schema is resolved from\n * route data: either an explicit `schema` object, or a `resourceId` looked\n * up in the registry (same route shape FormView uses).\n */\n readonly schema = computed<ResourceSchema | undefined>(() => {\n const data = this.routeData();\n const explicit = data['schema'];\n if (explicit !== undefined) return explicit as ResourceSchema;\n const resourceId = data['resourceId'];\n return typeof resourceId === 'string' ? getSchema(resourceId) : undefined;\n });\n\n /**\n * Config resolved from `schema.uiViews[<route uiView>]`; `undefined` when\n * the route does not name a calendar view with a usable config — the\n * template then renders the invalid-config empty state instead of a grid.\n */\n readonly config = computed<CalendarViewConfig | undefined>(() => {\n const schema = this.schema();\n const viewName = this.routeData()['uiView'];\n if (schema === undefined || typeof viewName !== 'string') return undefined;\n const cfg = calendarConfigOf(schema.uiViews?.[viewName]);\n if (cfg === undefined) return undefined;\n const usable =\n typeof cfg.startField === 'string' &&\n cfg.startField !== '' &&\n typeof cfg.titleField === 'string' &&\n cfg.titleField !== '';\n return usable ? cfg : undefined;\n });\n\n /** Explicit user choice; `undefined` ⇒ the config's `defaultView`. */\n private readonly explicitMode = signal<CalendarMode | undefined>(undefined);\n\n readonly mode = computed<CalendarMode>(\n () => this.explicitMode() ?? this.config()?.defaultView ?? 'month',\n );\n\n /** Anchor civil day of the visible range; init = today (civil). */\n readonly cursor = signal<string>(todayCivil());\n\n /** Visible `{desde, hasta}` derived from cursor + mode. */\n readonly visibleRange = computed<CivilRange | null>(() =>\n this.config() === undefined ? null : visibleRangeFor(this.mode(), this.cursor()),\n );\n\n readonly rangeLabel = computed(() =>\n this.config() === undefined ? '' : rangeLabelFor(this.mode(), this.cursor()),\n );\n\n readonly status = signal<Status>('loading');\n readonly rows = signal<SourceRow[]>([]);\n /** Clave seleccionada localmente cuando el binding declara `mode:'inline'`. */\n readonly seleccionada = signal<string | null>(null);\n readonly errorMessage = signal('');\n\n readonly modeOptions = MODE_OPTIONS;\n readonly weekdayHeadings = WEEKDAY_HEADINGS;\n readonly reasonUndated = REASON_UNDATED;\n\n /** Guards against a slow response overwriting a newer range's rows. */\n private loadEpoch = 0;\n\n constructor() {\n effect(() => {\n const cfg = this.config();\n const range = this.visibleRange();\n if (cfg === undefined || range === null) return;\n void this.load(cfg, range);\n });\n }\n\n /** Rows mapped to events + visible problem records (pure model). */\n readonly mapping = computed<CalendarMapping>(() => {\n const cfg = this.config();\n const schema = this.schema();\n if (cfg === undefined || schema === undefined) return { events: [], undated: [], invalid: [] };\n const endFieldType =\n cfg.endField !== undefined ? findFieldByKey(schema.fields, cfg.endField)?.type : undefined;\n return mapCalendarRows(this.rows(), cfg, {\n keyField: schema.keyField,\n endFieldType,\n });\n });\n\n /** Events bucketed per civil day, clamped to the visible range. */\n readonly eventsByDay = computed(() => {\n const range = this.visibleRange();\n if (range === null) return new Map<string, CalEvent[]>();\n return eventsByDay(this.mapping().events, range);\n });\n\n readonly monthGrid = computed(() => monthGridDays(this.cursor()));\n readonly weekColumnDays = computed(() => weekDays(this.cursor()));\n\n /** Agenda headings: the days of the range that actually have events. */\n readonly agendaDays = computed(() => {\n const range = this.visibleRange();\n if (range === null) return [] as string[];\n return daysInRange(range).filter((day) => this.eventsByDay().has(day));\n });\n\n readonly hasProblemRecords = computed(\n () => this.mapping().undated.length > 0 || this.mapping().invalid.length > 0,\n );\n\n previous(): void {\n this.cursor.set(shiftCursor(this.mode(), this.cursor(), -1));\n }\n\n next(): void {\n this.cursor.set(shiftCursor(this.mode(), this.cursor(), 1));\n }\n\n /** Reset the cursor to today (civil). */\n today(): void {\n this.cursor.set(todayCivil());\n }\n\n setMode(mode: CalendarMode): void {\n this.explicitMode.set(mode);\n }\n\n retry(): void {\n const cfg = this.config();\n const range = this.visibleRange();\n if (cfg !== undefined && range !== null) void this.load(cfg, range);\n }\n\n /** Binding `select` declarado por la vista (R9.9.4 · decision table). */\n private binding(): SelectionBinding | undefined {\n return this.routeData()['select'] as SelectionBinding | undefined;\n }\n\n /**\n * Clic de evento. Sin declaración ⇒ inerte (el calendario no navegaba);\n * con declaración ⇒ sólo el contrato declarado corre: `route` emite al\n * dispatcher, `inline` selecciona en local, `none` es no-op explícito.\n */\n seleccionar(event: CalEvent): void {\n const binding = this.binding();\n if (binding === undefined) return;\n if (binding.mode === 'inline') {\n this.seleccionada.set(event.key);\n return;\n }\n if (binding.mode === 'none') return;\n const schema = this.schema();\n const emit = this.routeData()['emit'] as SelectionEmitter | undefined;\n emit?.({\n resource: schema?.id ?? String(this.routeData()['resourceId'] ?? ''),\n key: event.key,\n action: binding.on,\n });\n }\n\n /** El DOM declara clicable sólo si hay contrato que responder. */\n seleccionable(): boolean {\n const binding = this.binding();\n return binding !== undefined && binding.mode !== 'none';\n }\n\n esSeleccionada(event: CalEvent): boolean {\n return this.seleccionable() && this.seleccionada() === event.key;\n }\n\n eventsFor(day: string): readonly CalEvent[] {\n return this.eventsByDay().get(day) ?? NO_EVENTS;\n }\n\n dayNumber(day: string): number {\n return Number(day.slice(8, 10));\n }\n\n isInCursorMonth(day: string): boolean {\n return sameMonth(day, this.cursor());\n }\n\n /** Weekday + number (\"lun 12\") for week columns. */\n weekdayShort(day: string): string {\n return weekdayShort(day);\n }\n\n /** Full heading (\"lunes, 12 de octubre de 2026\") for day/agenda. */\n dayHeading(day: string): string {\n return agendaDayLabel(day);\n }\n\n recordLabel(row: SourceRow): string {\n const schema = this.schema();\n if (schema === undefined) return '';\n const title = String(row[schema.titleField] ?? '').trim();\n return title !== '' ? title : String(row[schema.keyField] ?? '');\n }\n\n private async load(cfg: CalendarViewConfig, range: CivilRange): Promise<void> {\n const schema = this.schema();\n if (schema === undefined) return;\n const epoch = ++this.loadEpoch;\n this.status.set('loading');\n // Optimization branch (decided): range ctx ONLY when the schema declares\n // a backend view — that's the signal that a `where` may filter on\n // `param: 'desde'`/`'hasta'`. Without a view the params would be ignored\n // (and the full listing is cached while the user navigates).\n const ctx =\n cfg.source?.view !== undefined && cfg.source.view !== ''\n ? { desde: range.desde, hasta: range.hasta }\n : undefined;\n const source = cfg.source ?? { resource: schema.id };\n try {\n const rows = await this.dataSource.rows(source, ctx);\n if (epoch !== this.loadEpoch) return;\n this.rows.set(rows);\n this.errorMessage.set('');\n this.status.set('ready');\n } catch (error) {\n if (epoch !== this.loadEpoch) return;\n this.errorMessage.set(\n this.errorMapper.map(error).general ?? 'No se pudo cargar el calendario.',\n );\n this.status.set('error');\n }\n }\n}\n"],"mappings":";;;;;;;;;;;AAcA,MAAa,SAAS;AAuCtB,MAAa,iBAAiB;AAC9B,MAAa,qBAAqB;AAClC,MAAa,0BAA0B;AAEvC,MAAM,SAAS;CACb;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AAED,M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