@solercia/ui 0.6.0 → 0.6.1
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/CHANGELOG.md +66 -0
- package/fesm2022/solercia-ui-theme-studio.mjs +1872 -808
- package/fesm2022/solercia-ui-theme-studio.mjs.map +1 -1
- package/fesm2022/solercia-ui.mjs +284 -10
- package/fesm2022/solercia-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/solercia-ui-theme-studio.d.ts +185 -52
- package/types/solercia-ui.d.ts +89 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solercia/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Design system Solercia (componentes sol-*, theming agnóstico por puertos, contrato i18n y schematics ng add/ng generate) para proyectos Angular del ecosistema Solercia.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Solercia Solutions SAS",
|
|
@@ -38,9 +38,11 @@ interface ThemeStudioStore {
|
|
|
38
38
|
load(): Observable<ThemeFile | null>;
|
|
39
39
|
/**
|
|
40
40
|
* Persiste el tema. `sourceVersionId` es la versión restaurada en la que se basó el cambio
|
|
41
|
-
* (o `null`). Puede devolver la versión creada
|
|
41
|
+
* (o `null`). Puede devolver la versión creada o el tema TAL COMO QUEDÓ PERSISTIDO: con un
|
|
42
|
+
* `ThemeFile` la pantalla lo empuja con `ThemeService.setTenantTheme` (sin volver a pedirlo);
|
|
43
|
+
* sin él, llama a `ThemeService.refresh()`.
|
|
42
44
|
*/
|
|
43
|
-
apply(theme: ThemeFile, sourceVersionId?: ThemeVersion['id'] | null): Observable<ThemeVersion | void>;
|
|
45
|
+
apply(theme: ThemeFile, sourceVersionId?: ThemeVersion['id'] | null): Observable<ThemeVersion | ThemeFile | void>;
|
|
44
46
|
/** Historial paginado; `before` es el cursor `next` de la página anterior. */
|
|
45
47
|
listVersions?(before?: ThemeVersionPage['next']): Observable<ThemeVersionPage>;
|
|
46
48
|
/** Tema completo de una versión del historial. */
|
|
@@ -48,6 +50,13 @@ interface ThemeStudioStore {
|
|
|
48
50
|
/** Sube una imagen (logo o favicon) y devuelve la URL publicada. */
|
|
49
51
|
uploadLogo?(file: File): Observable<string>;
|
|
50
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Mensaje legible de un error del store, si lo trae. Reconoce la forma de `HttpErrorResponse`
|
|
55
|
+
* (`error.message` o `error.errors[0].message` del cuerpo de la respuesta) y un objeto plano
|
|
56
|
+
* `{ message }` marcado como mensaje para la persona usuaria (`userMessage`). Nunca devuelve el
|
|
57
|
+
* texto técnico de un `Error` cualquiera (por ejemplo, "Http failure response for …").
|
|
58
|
+
*/
|
|
59
|
+
declare function extractStoreErrorMessage(error: unknown): string | null;
|
|
51
60
|
/** Token del puerto de persistencia. Sin proveedor, `<sol-theme-studio>` muestra su estado de error. */
|
|
52
61
|
declare const THEME_STUDIO_STORE: InjectionToken<ThemeStudioStore>;
|
|
53
62
|
|
|
@@ -190,15 +199,57 @@ declare const DEFAULT_TABLE_VARIANT: SolTableVariant;
|
|
|
190
199
|
declare const DEFAULT_STUDIO_FORM: ThemeStudioForm;
|
|
191
200
|
/** Copia profunda del formulario (los bloques por modo son objetos planos). */
|
|
192
201
|
declare function cloneStudioForm(form: ThemeStudioForm): ThemeStudioForm;
|
|
202
|
+
/** Presentación del indicador de carga: como está hoy, centrado sin cortina o con cortina y blur. */
|
|
203
|
+
type StudioLoaderPresentation = 'current' | 'centered' | 'backdrop';
|
|
204
|
+
declare const STUDIO_LOADER_PRESENTATIONS: ReadonlyArray<StudioLoaderPresentation>;
|
|
205
|
+
/** Animación del indicador de carga (giro, latido, sacudida o ninguna). */
|
|
206
|
+
type StudioLoaderAnimation = 'spin' | 'pulse' | 'shake' | 'none';
|
|
207
|
+
declare const STUDIO_LOADER_ANIMATIONS: ReadonlyArray<StudioLoaderAnimation>;
|
|
208
|
+
/**
|
|
209
|
+
* Configuración del indicador de carga que el host guarda en `meta.loader`. `image` es la URL
|
|
210
|
+
* de una imagen subida por archivo; vacía, el host pinta un anillo con el color del tema.
|
|
211
|
+
*/
|
|
212
|
+
interface ThemeLoaderConfig {
|
|
213
|
+
image: string;
|
|
214
|
+
presentation: StudioLoaderPresentation;
|
|
215
|
+
animation: StudioLoaderAnimation;
|
|
216
|
+
}
|
|
217
|
+
declare const DEFAULT_LOADER_CONFIG: ThemeLoaderConfig;
|
|
193
218
|
|
|
194
219
|
/** Aviso que la pantalla emite por `notify`; la aplicación decide cómo mostrarlo (toast, alerta…). */
|
|
195
220
|
interface SolThemeStudioNotice {
|
|
196
|
-
kind: 'success' | 'error' | 'info';
|
|
221
|
+
kind: 'success' | 'error' | 'info' | 'warning';
|
|
197
222
|
/** Clave completa (`sol.themeStudio.*`) por si el host prefiere traducirla con su motor. */
|
|
198
223
|
messageKey: string;
|
|
199
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* Texto ya resuelto en el idioma activo (con el respaldo de la librería). Cuando el store
|
|
226
|
+
* devolvió un mensaje propio (por ejemplo, el del backend), es ese mensaje.
|
|
227
|
+
*/
|
|
200
228
|
message: string;
|
|
201
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Secciones y comportamientos opcionales de `<sol-theme-studio>`. Los valores por defecto
|
|
232
|
+
* reproducen la pantalla de 0.6.0; un host activa lo que necesita.
|
|
233
|
+
*/
|
|
234
|
+
interface SolThemeStudioFeatures {
|
|
235
|
+
/** Campo «Nombre del tema» (`meta.name`) en la sección Marca. Por defecto `true`. */
|
|
236
|
+
themeName?: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* Sección «Loader / spinner» (`meta.loader`: imagen, presentación y animación) y su muestra en
|
|
239
|
+
* la vista previa. Por defecto `false`.
|
|
240
|
+
*/
|
|
241
|
+
loader?: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* Clave de `meta` donde el host lee y escribe además la variante de tabla (p. ej.
|
|
244
|
+
* `'tableStyle'`). Al hidratar gana sobre `component.table.variant`. Por defecto, ninguna.
|
|
245
|
+
*/
|
|
246
|
+
tableVariantMetaKey?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Al aplicar, fija `meta.defaultMode` como preferencia EXPLÍCITA de este navegador
|
|
249
|
+
* (`ThemeService.setDarkMode`), para que nadie quede pegado en un modo viejo. Por defecto `false`.
|
|
250
|
+
*/
|
|
251
|
+
persistDefaultModeOnApply?: boolean;
|
|
252
|
+
}
|
|
202
253
|
/** Opción de un control segmentado: valor del contrato + clave de su texto. */
|
|
203
254
|
interface SegmentOption {
|
|
204
255
|
value: string | number;
|
|
@@ -213,24 +264,31 @@ interface SegmentGroup<K extends string> {
|
|
|
213
264
|
labelKey: string;
|
|
214
265
|
options: ReadonlyArray<SegmentOption>;
|
|
215
266
|
}
|
|
216
|
-
|
|
267
|
+
/** Imagen que se sube por archivo. */
|
|
268
|
+
type ImageTarget = 'logo' | 'logoDark' | 'favicon' | 'loaderImage';
|
|
217
269
|
type LoadState = 'loading' | 'ready' | 'error' | 'no-store';
|
|
270
|
+
/** Texto de estado: una clave traducible o un texto ya resuelto (p. ej. el mensaje del backend). */
|
|
218
271
|
type StatusMessage = {
|
|
219
272
|
key: string;
|
|
220
273
|
params?: Record<string, unknown>;
|
|
221
|
-
} |
|
|
274
|
+
} | {
|
|
275
|
+
text: string;
|
|
276
|
+
};
|
|
222
277
|
/**
|
|
223
|
-
* `<sol-theme-studio>`: editor visual completo del tema del tenant
|
|
278
|
+
* `<sol-theme-studio>`: editor visual completo del tema del tenant (portado del Theme Studio de
|
|
279
|
+
* PANDORA con el mismo marcado, estilos, textos y comportamiento).
|
|
224
280
|
*
|
|
225
281
|
* - Persistencia por el puerto `THEME_STUDIO_STORE` (la app implementa el adaptador). Los
|
|
226
282
|
* métodos opcionales del store apagan su sección: sin historial o sin carga de imágenes.
|
|
227
|
-
* - Edición: controles COMPARTIDOS (marca,
|
|
228
|
-
* POR MODO (color, roles, sombra, textura, barra
|
|
229
|
-
*
|
|
230
|
-
* -
|
|
231
|
-
*
|
|
232
|
-
* -
|
|
233
|
-
*
|
|
283
|
+
* - Edición: controles COMPARTIDOS (marca, pie, inicio de sesión, modo por defecto, tablas,
|
|
284
|
+
* tipografía, forma, densidad, movimiento) y POR MODO (color, roles, sombra, textura, barra
|
|
285
|
+
* lateral, encabezado) en pestañas claro/oscuro. Secciones opcionales por `features`.
|
|
286
|
+
* - Vista previa aislada al lado de los controles en escritorio (divisor arrastrable, 60/40 por
|
|
287
|
+
* defecto) y en un panel lateral con botón flotante bajo 1024 px.
|
|
288
|
+
* - Aplicar (con confirmación) llama a `store.apply(...)`; con el tema persistido lo empuja con
|
|
289
|
+
* `ThemeService.setTenantTheme`, sin él llama a `ThemeService.refresh()`. Emite `applied`.
|
|
290
|
+
* - Historial paginado, previsualización y restauración de versiones (`sourceVersionId`).
|
|
291
|
+
* - Importar/exportar JSON con validación previa. Textos por `SOL_I18N` (`sol.themeStudio.*`).
|
|
234
292
|
*/
|
|
235
293
|
declare class SolThemeStudioComponent implements OnInit, OnDestroy {
|
|
236
294
|
private readonly store;
|
|
@@ -243,30 +301,53 @@ declare class SolThemeStudioComponent implements OnInit, OnDestroy {
|
|
|
243
301
|
readonly baseTheme: _angular_core.InputSignal<ThemeFile | undefined>;
|
|
244
302
|
/** Campos opacos del host que viajan intactos a `meta` (y se aceptan al importar JSON). */
|
|
245
303
|
readonly metaExtras: _angular_core.InputSignal<Readonly<Record<string, unknown>> | undefined>;
|
|
304
|
+
/**
|
|
305
|
+
* Forma de campos opacos de `meta` que el host PRESERVA sin escribirlos (p. ej. el
|
|
306
|
+
* comportamiento del menú lateral): solo amplía lo que el importador de JSON acepta.
|
|
307
|
+
*/
|
|
308
|
+
readonly metaExtrasSchema: _angular_core.InputSignal<Readonly<Record<string, unknown>> | undefined>;
|
|
309
|
+
/** Secciones y comportamientos opcionales (ver `SolThemeStudioFeatures`). */
|
|
310
|
+
readonly features: _angular_core.InputSignal<SolThemeStudioFeatures>;
|
|
311
|
+
/** Placeholder del texto del pie de página (p. ej. el formato por defecto del pie del host). */
|
|
312
|
+
readonly footerPlaceholder: _angular_core.InputSignal<string | undefined>;
|
|
313
|
+
/** Nombre del archivo de «Exportar JSON». Por defecto, `<tenant>-theme.json`. */
|
|
314
|
+
readonly exportFileName: _angular_core.InputSignal<string | undefined>;
|
|
315
|
+
/** Zona horaria IANA de las fechas del historial (p. ej. `America/Bogota`). Por defecto, la del navegador. */
|
|
316
|
+
readonly versionTimeZone: _angular_core.InputSignal<string | undefined>;
|
|
317
|
+
/** Texto que sigue a cada fecha del historial (p. ej. `(Bogotá)`). */
|
|
318
|
+
readonly versionTimeZoneLabel: _angular_core.InputSignal<string | undefined>;
|
|
246
319
|
/** Tema persistido con éxito por `store.apply(...)`. */
|
|
247
320
|
readonly applied: _angular_core.OutputEmitterRef<ThemeFile>;
|
|
248
321
|
/** Avisos para que la aplicación los muestre a su manera. */
|
|
249
322
|
readonly notify: _angular_core.OutputEmitterRef<SolThemeStudioNotice>;
|
|
250
|
-
/** El store permite subir imágenes (logo
|
|
323
|
+
/** El store permite subir imágenes (logo, favicon, imagen del indicador de carga). */
|
|
251
324
|
protected readonly canUpload: boolean;
|
|
252
325
|
/** El store expone historial completo (listar + leer una versión). */
|
|
253
326
|
protected readonly canBrowseHistory: boolean;
|
|
327
|
+
protected readonly feature: _angular_core.Signal<Required<Omit<SolThemeStudioFeatures, "tableVariantMetaKey">> & {
|
|
328
|
+
tableVariantMetaKey?: string;
|
|
329
|
+
}>;
|
|
254
330
|
protected readonly loadState: _angular_core.WritableSignal<LoadState>;
|
|
255
331
|
private readonly savedTheme;
|
|
256
332
|
protected readonly hasSavedTheme: _angular_core.Signal<boolean>;
|
|
257
333
|
protected readonly form: _angular_core.WritableSignal<ThemeStudioForm>;
|
|
334
|
+
/** Modo activo: define QUÉ bloque por modo se edita Y el modo de la vista previa. */
|
|
258
335
|
protected readonly activeMode: _angular_core.WritableSignal<ThemeMode>;
|
|
259
336
|
protected readonly modeForm: _angular_core.Signal<ThemeStudioModeForm>;
|
|
260
337
|
protected readonly brandForm: _angular_core.WritableSignal<ThemeLogo>;
|
|
261
338
|
protected readonly themeName: _angular_core.WritableSignal<string>;
|
|
262
339
|
protected readonly tagline: _angular_core.WritableSignal<string>;
|
|
263
340
|
protected readonly favicon: _angular_core.WritableSignal<string>;
|
|
264
|
-
protected readonly
|
|
265
|
-
|
|
266
|
-
protected readonly
|
|
341
|
+
protected readonly loaderForm: _angular_core.WritableSignal<ThemeLoaderConfig>;
|
|
342
|
+
/** Logo que se está subiendo (deshabilita ambos botones de logo mientras dura). */
|
|
343
|
+
protected readonly uploadingLogo: _angular_core.WritableSignal<"logo" | "logoDark" | null>;
|
|
344
|
+
protected readonly uploadingFavicon: _angular_core.WritableSignal<boolean>;
|
|
345
|
+
protected readonly uploadingLoaderImage: _angular_core.WritableSignal<boolean>;
|
|
346
|
+
protected readonly logoAccept = "image/png,image/jpeg,image/svg+xml,image/webp";
|
|
347
|
+
protected readonly faviconAccept = "image/png,image/svg+xml,image/x-icon,image/vnd.microsoft.icon,image/webp";
|
|
267
348
|
protected readonly historyOpen: _angular_core.WritableSignal<boolean>;
|
|
268
349
|
protected readonly historyLoading: _angular_core.WritableSignal<boolean>;
|
|
269
|
-
protected readonly historyError: _angular_core.WritableSignal<
|
|
350
|
+
protected readonly historyError: _angular_core.WritableSignal<StatusMessage | null>;
|
|
270
351
|
protected readonly versions: _angular_core.WritableSignal<ThemeVersion[]>;
|
|
271
352
|
protected readonly nextCursor: _angular_core.WritableSignal<string | number | null>;
|
|
272
353
|
protected readonly versionLoading: _angular_core.WritableSignal<boolean>;
|
|
@@ -274,21 +355,27 @@ declare class SolThemeStudioComponent implements OnInit, OnDestroy {
|
|
|
274
355
|
protected readonly importing: _angular_core.WritableSignal<boolean>;
|
|
275
356
|
protected readonly applying: _angular_core.WritableSignal<boolean>;
|
|
276
357
|
protected readonly showApplyConfirm: _angular_core.WritableSignal<boolean>;
|
|
277
|
-
|
|
278
|
-
protected readonly
|
|
358
|
+
/** Bajo 1024px la vista previa vive en el panel lateral que abre el botón flotante. */
|
|
359
|
+
protected readonly previewOpenMobile: _angular_core.WritableSignal<boolean>;
|
|
360
|
+
protected readonly status: _angular_core.WritableSignal<StatusMessage | null>;
|
|
279
361
|
protected readonly busy: _angular_core.Signal<boolean>;
|
|
280
362
|
private readonly importedTheme;
|
|
281
363
|
private importedGenerated;
|
|
282
364
|
private readonly gridContainer;
|
|
283
|
-
private readonly themeJsonInput;
|
|
284
|
-
private readonly imageFileInput;
|
|
285
365
|
protected readonly studioSplit: _angular_core.WritableSignal<number>;
|
|
286
366
|
protected readonly resizing: _angular_core.WritableSignal<boolean>;
|
|
287
367
|
protected readonly splitMin = 30;
|
|
288
368
|
protected readonly splitMax = 75;
|
|
289
369
|
/** Base del builder: importado/versión en borrador → tema guardado → base del host → empaquetado. */
|
|
290
370
|
private readonly workingBase;
|
|
291
|
-
/**
|
|
371
|
+
/** Indicador de carga para la vista previa (solo con la sección activa). */
|
|
372
|
+
protected readonly previewLoader: _angular_core.Signal<ThemeLoaderConfig | undefined>;
|
|
373
|
+
/**
|
|
374
|
+
* TEMA EN EDICIÓN: el formulario construido sobre la base, con la marca, el nombre, el pie, el
|
|
375
|
+
* favicon y las secciones opcionales (indicador de carga, variante de tabla en `meta`)
|
|
376
|
+
* compuestos en `meta`. Un tema importado o una versión en borrador conserva sus tokens no
|
|
377
|
+
* editados (`mergeThemeEditorChanges`).
|
|
378
|
+
*/
|
|
292
379
|
protected readonly effectiveTheme: _angular_core.Signal<ThemeFile>;
|
|
293
380
|
protected readonly textureUsesColor: _angular_core.Signal<boolean>;
|
|
294
381
|
protected readonly modes: ReadonlyArray<ThemeMode>;
|
|
@@ -302,23 +389,22 @@ declare class SolThemeStudioComponent implements OnInit, OnDestroy {
|
|
|
302
389
|
protected readonly brandWidthMax = 200;
|
|
303
390
|
protected readonly shadowColorSuggestions: readonly string[];
|
|
304
391
|
protected readonly textureColorSuggestions: readonly string[];
|
|
305
|
-
protected readonly logoSlots: ReadonlyArray<{
|
|
306
|
-
target: ImageTarget;
|
|
307
|
-
labelKey: string;
|
|
308
|
-
altKey: string;
|
|
309
|
-
}>;
|
|
310
392
|
protected readonly fontRoles: ReadonlyArray<{
|
|
311
393
|
key: 'displayFont' | 'bodyFont';
|
|
312
394
|
labelKey: string;
|
|
395
|
+
testId: string;
|
|
313
396
|
quick: ReadonlyArray<string>;
|
|
314
397
|
catalog: ReadonlyArray<string>;
|
|
315
398
|
}>;
|
|
316
|
-
protected readonly
|
|
399
|
+
protected readonly authLayoutOptions: ReadonlyArray<SegmentOption>;
|
|
400
|
+
protected readonly defaultModeOptions: ReadonlyArray<SegmentOption>;
|
|
401
|
+
protected readonly tableVariantOptions: ReadonlyArray<SegmentOption>;
|
|
402
|
+
protected readonly loaderPresentationOptions: ReadonlyArray<SegmentOption>;
|
|
403
|
+
protected readonly loaderAnimationOptions: ReadonlyArray<SegmentOption>;
|
|
317
404
|
protected readonly typographyGroups: ReadonlyArray<SegmentGroup<SharedSegmentKey>>;
|
|
318
|
-
protected readonly
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}>;
|
|
405
|
+
protected readonly shapeGroups: ReadonlyArray<SegmentGroup<SharedSegmentKey>>;
|
|
406
|
+
protected readonly sharedStructureGroups: ReadonlyArray<SegmentGroup<SharedSegmentKey>>;
|
|
407
|
+
protected readonly motionGroups: ReadonlyArray<SegmentGroup<SharedSegmentKey>>;
|
|
322
408
|
protected readonly shadowStyleOptions: ReadonlyArray<SegmentOption>;
|
|
323
409
|
protected readonly shadowSizeOptions: ReadonlyArray<SegmentOption>;
|
|
324
410
|
protected readonly shadowDirections: {
|
|
@@ -345,59 +431,80 @@ declare class SolThemeStudioComponent implements OnInit, OnDestroy {
|
|
|
345
431
|
ngOnDestroy(): void;
|
|
346
432
|
/** Pide el tema guardado al store (también es la acción de "Reintentar"). */
|
|
347
433
|
load(): void;
|
|
348
|
-
/** Vuelca un ThemeFile en el formulario, la marca, el nombre, el pie y
|
|
434
|
+
/** Vuelca un ThemeFile en el formulario, la marca, el nombre, el pie, el favicon y los opcionales. */
|
|
349
435
|
private hydrateFrom;
|
|
436
|
+
/** Escape cierra el panel lateral, salvo que la confirmación esté abierta encima (ese Escape es suyo). */
|
|
437
|
+
protected closePreviewPanel(): void;
|
|
350
438
|
protected setField<K extends keyof ThemeStudioForm>(key: K, value: ThemeStudioForm[K]): void;
|
|
351
439
|
protected setChoice(key: SharedSegmentKey, value: string | number): void;
|
|
352
440
|
protected setModeColor(key: StudioModeColorKey, value: string): void;
|
|
353
441
|
protected setModeChoice(key: ModeSegmentKey, value: string | number): void;
|
|
354
442
|
protected setBrandField<K extends keyof ThemeLogo>(key: K, value: ThemeLogo[K]): void;
|
|
443
|
+
protected setLoaderChoice(key: 'presentation' | 'animation', value: string | number): void;
|
|
355
444
|
protected onModeHexChange(key: StudioModeColorKey, event: Event): void;
|
|
356
445
|
protected toggleMode(): void;
|
|
357
446
|
protected inputValue(event: Event): string;
|
|
358
447
|
protected numberValue(event: Event): number;
|
|
359
448
|
protected fontStackFor(family: string): string;
|
|
360
|
-
/** URL SANITIZADA de una imagen
|
|
449
|
+
/** URL SANITIZADA de una imagen (para la miniatura); `null` sin imagen segura. */
|
|
361
450
|
protected imageUrl(target: ImageTarget): string | null;
|
|
362
|
-
protected
|
|
363
|
-
protected onImageSelected(event: Event): void;
|
|
451
|
+
protected onImageSelected(target: ImageTarget, event: Event): void;
|
|
364
452
|
/** Valida y sube una imagen con `store.uploadLogo`; la URL devuelta queda en el campo destino. */
|
|
365
453
|
uploadImage(target: ImageTarget, file: File | undefined): void;
|
|
454
|
+
private setUploading;
|
|
366
455
|
protected removeImage(target: ImageTarget): void;
|
|
367
456
|
private setImage;
|
|
368
457
|
protected requestApply(): void;
|
|
369
|
-
/**
|
|
458
|
+
/**
|
|
459
|
+
* Persiste el tema en edición con `store.apply(...)`. Con el tema persistido lo empuja con
|
|
460
|
+
* `ThemeService.setTenantTheme` (sin volver a pedirlo); sin él, `ThemeService.refresh()`.
|
|
461
|
+
*/
|
|
370
462
|
confirmApply(): void;
|
|
371
463
|
protected toggleHistory(): void;
|
|
372
464
|
/** Primera página (o la siguiente con `more`). */
|
|
373
465
|
loadHistory(more?: boolean): void;
|
|
466
|
+
/** Fecha del historial en el idioma activo, con la zona horaria configurada. */
|
|
374
467
|
protected versionDate(value: string): string;
|
|
375
468
|
/** Carga una versión del historial en el borrador (no la guarda: hay que confirmar Aplicar). */
|
|
376
469
|
previewVersion(id: ThemeVersion['id']): void;
|
|
377
|
-
protected openJsonPicker(): void;
|
|
378
470
|
protected importJson(event: Event): Promise<void>;
|
|
379
471
|
/** Valida un archivo JSON y, si es válido, lo carga en el borrador (no lo guarda). */
|
|
380
472
|
importFile(file: File | undefined): Promise<void>;
|
|
381
|
-
private
|
|
473
|
+
private parseOptions;
|
|
474
|
+
/** Texto de un error del importador; la ruta solo se muestra cuando señala el campo a corregir. */
|
|
475
|
+
private importError;
|
|
476
|
+
/** Mensaje del store (p. ej. el del backend) o, sin él, el texto por defecto. */
|
|
477
|
+
private storeError;
|
|
382
478
|
/** Borrador desde un tema externo: hidrata los controles y conserva sus tokens no editados. */
|
|
383
479
|
private loadDraft;
|
|
384
480
|
protected exportJson(): void;
|
|
385
481
|
protected copyJson(): void;
|
|
386
|
-
|
|
482
|
+
/**
|
|
483
|
+
* Inicia el arrastre del divisor. Captura el puntero sobre el propio divisor, así los
|
|
484
|
+
* `pointermove`/`pointerup` llegan aunque el cursor se salga; el reparto se calcula contra el
|
|
485
|
+
* rectángulo del grid medido al empezar.
|
|
486
|
+
*/
|
|
387
487
|
protected startResize(event: PointerEvent): void;
|
|
488
|
+
/** Teclado sobre el divisor: flechas mueven de a 2 puntos; Inicio/Fin van a los topes. */
|
|
388
489
|
protected onDividerKeydown(event: KeyboardEvent): void;
|
|
490
|
+
/** Doble clic sobre el divisor: vuelve al reparto por defecto. */
|
|
389
491
|
protected resetSplit(): void;
|
|
390
492
|
private persistSplit;
|
|
493
|
+
/** Resuelve un texto de estado (clave traducible o texto ya resuelto). */
|
|
494
|
+
protected text(message: StatusMessage): string;
|
|
495
|
+
/** Texto de la línea de estado del JSON (vacía sin estado). */
|
|
496
|
+
protected statusText(): string;
|
|
391
497
|
private emitNotice;
|
|
392
498
|
/** Carga el catálogo curado de fuentes con la URL sanitizada por construcción (`buildGoogleFontsUrl`). */
|
|
393
499
|
private injectStudioFonts;
|
|
394
500
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SolThemeStudioComponent, never>;
|
|
395
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolThemeStudioComponent, "sol-theme-studio", never, { "baseTheme": { "alias": "baseTheme"; "required": false; "isSignal": true; }; "metaExtras": { "alias": "metaExtras"; "required": false; "isSignal": true; }; }, { "applied": "applied"; "notify": "notify"; }, never, never, true, never>;
|
|
501
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolThemeStudioComponent, "sol-theme-studio", never, { "baseTheme": { "alias": "baseTheme"; "required": false; "isSignal": true; }; "metaExtras": { "alias": "metaExtras"; "required": false; "isSignal": true; }; "metaExtrasSchema": { "alias": "metaExtrasSchema"; "required": false; "isSignal": true; }; "features": { "alias": "features"; "required": false; "isSignal": true; }; "footerPlaceholder": { "alias": "footerPlaceholder"; "required": false; "isSignal": true; }; "exportFileName": { "alias": "exportFileName"; "required": false; "isSignal": true; }; "versionTimeZone": { "alias": "versionTimeZone"; "required": false; "isSignal": true; }; "versionTimeZoneLabel": { "alias": "versionTimeZoneLabel"; "required": false; "isSignal": true; }; }, { "applied": "applied"; "notify": "notify"; }, never, never, true, never>;
|
|
396
502
|
}
|
|
397
503
|
|
|
398
504
|
/**
|
|
399
505
|
* Vista previa aislada del tema EN EDICIÓN: un mini panel (barra lateral, indicadores, campo,
|
|
400
|
-
* botones, chips, texto
|
|
506
|
+
* botones, botones por rol, chips, texto, tabla y, si el host activa la sección, el indicador de
|
|
507
|
+
* carga) pintado con las variables del tema que se está editando.
|
|
401
508
|
*
|
|
402
509
|
* `resolveCssVars(theme, mode)` produce el mapa `--sol-*` y un effect lo aplica sobre el HOST del
|
|
403
510
|
* componente: las custom properties heredan hacia abajo, así que solo el mock queda tematizado y
|
|
@@ -416,15 +523,22 @@ declare class SolThemeStudioPreviewComponent {
|
|
|
416
523
|
readonly tagline: _angular_core.InputSignal<string>;
|
|
417
524
|
/** Variante de tabla de la muestra. */
|
|
418
525
|
readonly tableVariant: _angular_core.InputSignal<SolTableVariant | null>;
|
|
419
|
-
/**
|
|
526
|
+
/** Indicador de carga en edición; sin él no se muestra su muestra. */
|
|
527
|
+
readonly loader: _angular_core.InputSignal<ThemeLoaderConfig | undefined>;
|
|
528
|
+
/**
|
|
529
|
+
* URL del logo del modo de la vista previa, SANITIZADA. En modo oscuro usa `urlDark` cuando
|
|
530
|
+
* existe; sin URL segura se muestra el texto de respaldo.
|
|
531
|
+
*/
|
|
420
532
|
protected readonly logoUrl: _angular_core.Signal<string | null>;
|
|
533
|
+
/** Ancho del logo (control «Ancho del logo»), como techo del ancho derivado. */
|
|
534
|
+
protected readonly logoWidth: _angular_core.Signal<string>;
|
|
421
535
|
protected readonly sampleRows: {
|
|
422
536
|
name: string;
|
|
423
537
|
stateKey: string;
|
|
424
538
|
}[];
|
|
425
539
|
constructor();
|
|
426
540
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SolThemeStudioPreviewComponent, never>;
|
|
427
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolThemeStudioPreviewComponent, "sol-theme-studio-preview", never, { "theme": { "alias": "theme"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "tagline": { "alias": "tagline"; "required": false; "isSignal": true; }; "tableVariant": { "alias": "tableVariant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
541
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolThemeStudioPreviewComponent, "sol-theme-studio-preview", never, { "theme": { "alias": "theme"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "tagline": { "alias": "tagline"; "required": false; "isSignal": true; }; "tableVariant": { "alias": "tableVariant"; "required": false; "isSignal": true; }; "loader": { "alias": "loader"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
428
542
|
}
|
|
429
543
|
|
|
430
544
|
/** Árbol de textos de la pantalla (claves bajo `sol.themeStudio`). */
|
|
@@ -432,8 +546,10 @@ type ThemeStudioDictionary = {
|
|
|
432
546
|
readonly [key: string]: string | ThemeStudioDictionary;
|
|
433
547
|
};
|
|
434
548
|
/**
|
|
435
|
-
* Textos por defecto en español colombiano
|
|
436
|
-
*
|
|
549
|
+
* Textos por defecto en español colombiano. Son los del Theme Studio de PANDORA, del que se portó
|
|
550
|
+
* la pantalla; solo tres se dejan genéricos porque nombran un producto o su plataforma legada
|
|
551
|
+
* (`preview.footerFallback`, `table.hint` y `loader.hint`): el host que quiera el texto propio lo
|
|
552
|
+
* define en su motor de traducción bajo `sol.themeStudio.*`, que siempre gana sobre este respaldo.
|
|
437
553
|
*/
|
|
438
554
|
declare const SOL_THEME_STUDIO_I18N_ES_CO: ThemeStudioDictionary;
|
|
439
555
|
/** Default English texts (same tree as `SOL_THEME_STUDIO_I18N_ES_CO`). */
|
|
@@ -509,11 +625,18 @@ declare const MAX_THEME_JSON_BYTES: number;
|
|
|
509
625
|
* - `not-renderable`: el tema no resuelve todas sus variables en ambos modos.
|
|
510
626
|
*/
|
|
511
627
|
type ThemeImportErrorCode = 'too-large' | 'invalid-json' | 'invalid-structure' | 'unsupported-key' | 'unsafe-key' | 'unsafe-value' | 'invalid-value' | 'not-renderable';
|
|
512
|
-
/**
|
|
628
|
+
/**
|
|
629
|
+
* Error tipado del importador: `code` para traducir, `path` para diagnóstico.
|
|
630
|
+
*
|
|
631
|
+
* `pathVisible` indica que la ruta señala el campo exacto que hay que corregir (clave no
|
|
632
|
+
* admitida, clave prohibida, color de marca o contraste inválido) y por eso la pantalla la
|
|
633
|
+
* muestra a la persona usuaria; en los demás casos la ruta queda solo para diagnóstico.
|
|
634
|
+
*/
|
|
513
635
|
declare class ThemeImportError extends Error {
|
|
514
636
|
readonly code: ThemeImportErrorCode;
|
|
515
637
|
readonly path?: string | undefined;
|
|
516
|
-
|
|
638
|
+
readonly pathVisible: boolean;
|
|
639
|
+
constructor(code: ThemeImportErrorCode, path?: string | undefined, pathVisible?: boolean);
|
|
517
640
|
}
|
|
518
641
|
/** Opciones de `parseThemeJson`. */
|
|
519
642
|
interface ParseThemeJsonOptions {
|
|
@@ -523,6 +646,16 @@ interface ParseThemeJsonOptions {
|
|
|
523
646
|
* tipo y la misma estructura que el valor de referencia.
|
|
524
647
|
*/
|
|
525
648
|
metaExtras?: Readonly<Record<string, unknown>>;
|
|
649
|
+
/**
|
|
650
|
+
* Forma de referencia de campos opacos de `meta` que el host PRESERVA pero no escribe (por
|
|
651
|
+
* ejemplo, comportamiento del menú lateral). Se aceptan al importar con el mismo tipo y la
|
|
652
|
+
* misma estructura que el valor de referencia.
|
|
653
|
+
*/
|
|
654
|
+
metaExtrasSchema?: Readonly<Record<string, unknown>>;
|
|
655
|
+
/** Acepta y valida `meta.loader` (sección opcional del indicador de carga). */
|
|
656
|
+
loader?: boolean;
|
|
657
|
+
/** Clave de `meta` donde el host refleja la variante de tabla (se valida contra las variantes). */
|
|
658
|
+
tableVariantMetaKey?: string;
|
|
526
659
|
}
|
|
527
660
|
/**
|
|
528
661
|
* Valida y devuelve el `ThemeFile` de un archivo JSON ANTES de cualquier fusión, vista previa,
|
|
@@ -542,5 +675,5 @@ declare function parseThemeJson(text: string, current: ThemeFile, options?: Pars
|
|
|
542
675
|
*/
|
|
543
676
|
declare function mergeThemeEditorChanges<T>(original: T, before: T, after: T): T;
|
|
544
677
|
|
|
545
|
-
export { BASE_SIZE_MAX, BASE_SIZE_MIN, DEFAULT_DARK_MODE_FORM, DEFAULT_LIGHT_MODE_FORM, DEFAULT_STUDIO_FORM, DEFAULT_TABLE_VARIANT, HEX_COLOR_PATTERN, LINE_HEIGHT_MAX, LINE_HEIGHT_MIN, MAX_THEME_JSON_BYTES, RADIUS_MAX, RADIUS_MIN, SERIF_DISPLAY_FONTS, SOL_THEME_STUDIO_I18N_EN, SOL_THEME_STUDIO_I18N_ES_CO, STUDIO_BODY_FONTS, STUDIO_BODY_FONTS_QUICK, STUDIO_COLOR_SUGGESTIONS_DARK, STUDIO_COLOR_SUGGESTIONS_LIGHT, STUDIO_DISPLAY_FONTS, STUDIO_DISPLAY_FONTS_QUICK, STUDIO_SHADOW_COLOR_SUGGESTIONS, STUDIO_SHADOW_DIRECTIONS, STUDIO_TEXTURE_COLOR_SUGGESTIONS, STUDIO_TEXT_COLOR_SUGGESTIONS_DARK, STUDIO_TEXT_COLOR_SUGGESTIONS_LIGHT, SolThemeStudioComponent, SolThemeStudioPreviewComponent, THEME_STUDIO_I18N_PREFIX, THEME_STUDIO_STORE, ThemeImportError, buildThemeFile, cloneStudioForm, deepMerge, mapThemeFileToForm, mergeThemeEditorChanges, parseThemeJson };
|
|
546
|
-
export type { DeepPartial, ParseThemeJsonOptions, SolThemeStudioNotice, StudioAuthLayout, StudioBorderWidth, StudioButtonShape, StudioColorFieldKey, StudioDensity, StudioDisplayTransform, StudioDisplayWeight, StudioHeaderStyle, StudioInputStyle, StudioModeColorKey, StudioMotionDuration, StudioMotionIntensity, StudioOverlayBlur, StudioRevealStyle, StudioShadowDirection, StudioShadowSize, StudioShadowStyle, StudioSidebarStyle, StudioTexture, ThemeImportErrorCode, ThemeStudioDictionary, ThemeStudioForm, ThemeStudioModeForm, ThemeStudioStore, ThemeVersion, ThemeVersionPage };
|
|
678
|
+
export { BASE_SIZE_MAX, BASE_SIZE_MIN, DEFAULT_DARK_MODE_FORM, DEFAULT_LIGHT_MODE_FORM, DEFAULT_LOADER_CONFIG, DEFAULT_STUDIO_FORM, DEFAULT_TABLE_VARIANT, HEX_COLOR_PATTERN, LINE_HEIGHT_MAX, LINE_HEIGHT_MIN, MAX_THEME_JSON_BYTES, RADIUS_MAX, RADIUS_MIN, SERIF_DISPLAY_FONTS, SOL_THEME_STUDIO_I18N_EN, SOL_THEME_STUDIO_I18N_ES_CO, STUDIO_BODY_FONTS, STUDIO_BODY_FONTS_QUICK, STUDIO_COLOR_SUGGESTIONS_DARK, STUDIO_COLOR_SUGGESTIONS_LIGHT, STUDIO_DISPLAY_FONTS, STUDIO_DISPLAY_FONTS_QUICK, STUDIO_LOADER_ANIMATIONS, STUDIO_LOADER_PRESENTATIONS, STUDIO_SHADOW_COLOR_SUGGESTIONS, STUDIO_SHADOW_DIRECTIONS, STUDIO_TEXTURE_COLOR_SUGGESTIONS, STUDIO_TEXT_COLOR_SUGGESTIONS_DARK, STUDIO_TEXT_COLOR_SUGGESTIONS_LIGHT, SolThemeStudioComponent, SolThemeStudioPreviewComponent, THEME_STUDIO_I18N_PREFIX, THEME_STUDIO_STORE, ThemeImportError, buildThemeFile, cloneStudioForm, deepMerge, extractStoreErrorMessage, mapThemeFileToForm, mergeThemeEditorChanges, parseThemeJson };
|
|
679
|
+
export type { DeepPartial, ParseThemeJsonOptions, SolThemeStudioFeatures, SolThemeStudioNotice, StudioAuthLayout, StudioBorderWidth, StudioButtonShape, StudioColorFieldKey, StudioDensity, StudioDisplayTransform, StudioDisplayWeight, StudioHeaderStyle, StudioInputStyle, StudioLoaderAnimation, StudioLoaderPresentation, StudioModeColorKey, StudioMotionDuration, StudioMotionIntensity, StudioOverlayBlur, StudioRevealStyle, StudioShadowDirection, StudioShadowSize, StudioShadowStyle, StudioSidebarStyle, StudioTexture, ThemeImportErrorCode, ThemeLoaderConfig, ThemeStudioDictionary, ThemeStudioForm, ThemeStudioModeForm, ThemeStudioStore, ThemeVersion, ThemeVersionPage };
|
package/types/solercia-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef, TemplateRef, AfterViewChecked, InjectionToken, AfterViewInit, Signal, EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { ElementRef, TemplateRef, AfterViewChecked, InjectionToken, AfterViewInit, Signal, OnInit, EnvironmentProviders } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { SafeHtml } from '@angular/platform-browser';
|
|
5
5
|
import { ChartConfiguration } from 'chart.js';
|
|
@@ -4996,6 +4996,87 @@ declare class SolScopeSwitcherComponent<TData = unknown> {
|
|
|
4996
4996
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolScopeSwitcherComponent<any>, "sol-scope-switcher", never, { "scopes": { "alias": "scopes"; "required": false; "isSignal": true; }; "activeScopeId": { "alias": "activeScopeId"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; "isSignal": true; }; "triggerAriaLabel": { "alias": "triggerAriaLabel"; "required": false; "isSignal": true; }; "panelAriaLabel": { "alias": "panelAriaLabel"; "required": false; "isSignal": true; }; }, { "scopeSelected": "scopeSelected"; "openChange": "openChange"; }, never, never, true, never>;
|
|
4997
4997
|
}
|
|
4998
4998
|
|
|
4999
|
+
/** Variante visual: define el ícono y el color del botón de confirmación. */
|
|
5000
|
+
type SolConfirmDialogVariant = 'danger' | 'warning' | 'info';
|
|
5001
|
+
/**
|
|
5002
|
+
* `<sol-confirm-dialog>`: diálogo de confirmación con ícono por variante, título, mensaje y dos
|
|
5003
|
+
* acciones (confirmar a la izquierda, cancelar a la derecha). Escape y clic en el fondo cancelan.
|
|
5004
|
+
*
|
|
5005
|
+
* El componente no guarda estado: el host decide cuándo abrirlo (`open`) y qué hacer con
|
|
5006
|
+
* `confirm` y `cancel`.
|
|
5007
|
+
*/
|
|
5008
|
+
declare class SolConfirmDialogComponent {
|
|
5009
|
+
/** Abre o cierra el diálogo. */
|
|
5010
|
+
readonly open: _angular_core.InputSignal<boolean>;
|
|
5011
|
+
/** Título del diálogo. */
|
|
5012
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
5013
|
+
/** Mensaje bajo el título (opcional). */
|
|
5014
|
+
readonly message: _angular_core.InputSignal<string>;
|
|
5015
|
+
/** Texto del botón de confirmación. */
|
|
5016
|
+
readonly confirmLabel: _angular_core.InputSignal<string>;
|
|
5017
|
+
/** Texto del botón de cancelación. */
|
|
5018
|
+
readonly cancelLabel: _angular_core.InputSignal<string>;
|
|
5019
|
+
/** Variante visual: ícono y color del botón de confirmación. */
|
|
5020
|
+
readonly variant: _angular_core.InputSignal<SolConfirmDialogVariant>;
|
|
5021
|
+
/** La persona confirmó la acción. */
|
|
5022
|
+
readonly confirm: _angular_core.OutputEmitterRef<void>;
|
|
5023
|
+
/** La persona canceló (botón, Escape o clic en el fondo). */
|
|
5024
|
+
readonly cancel: _angular_core.OutputEmitterRef<void>;
|
|
5025
|
+
protected readonly iconClasses: _angular_core.Signal<string>;
|
|
5026
|
+
protected readonly confirmBtnClasses: _angular_core.Signal<string>;
|
|
5027
|
+
protected readonly iconName: _angular_core.Signal<string>;
|
|
5028
|
+
protected onEscapeKey(): void;
|
|
5029
|
+
protected onBackdropClick(): void;
|
|
5030
|
+
protected onConfirm(): void;
|
|
5031
|
+
protected onCancel(): void;
|
|
5032
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SolConfirmDialogComponent, never>;
|
|
5033
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolConfirmDialogComponent, "sol-confirm-dialog", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "confirm": "confirm"; "cancel": "cancel"; }, never, never, true, never>;
|
|
5034
|
+
}
|
|
5035
|
+
|
|
5036
|
+
/**
|
|
5037
|
+
* `[solReveal]`: animación de entrada al hacer scroll, dirigida por el tema.
|
|
5038
|
+
*
|
|
5039
|
+
* Un `IntersectionObserver` (umbral bajo, una sola vez por elemento) agrega la clase global
|
|
5040
|
+
* `.sol-reveal-in`, que dispara el keyframe elegido por el tema vía `--sol-reveal-name`
|
|
5041
|
+
* (`solRevealRise | solRevealFade | solRevealPop | solRevealSlide | solRevealZoom`) con la
|
|
5042
|
+
* duración y el easing de `--sol-dur-slow` y `--sol-ease-entrance`.
|
|
5043
|
+
*
|
|
5044
|
+
* - Stagger: `solRevealIndex` viaja como `--sol-reveal-index` y retrasa la entrada ~60 ms por
|
|
5045
|
+
* índice (sale de los tokens, así que escala con la intensidad del tema).
|
|
5046
|
+
* - Replay: cada cambio de `solRevealReplay` (búsqueda, filtro) alterna el keyframe base y su
|
|
5047
|
+
* duplicado "B" para reiniciar la animación sin clonar nodos.
|
|
5048
|
+
* - SSR o jsdom: sin `IntersectionObserver` el elemento queda visible y sin animación.
|
|
5049
|
+
* - Las clases y los keyframes globales se inyectan una sola vez por documento (con el nonce de
|
|
5050
|
+
* `CSP_NONCE` si el host lo provee), así el efecto no depende del `styles.css` del host.
|
|
5051
|
+
*
|
|
5052
|
+
* ```html
|
|
5053
|
+
* <section solReveal [solRevealIndex]="$index" [solRevealReplay]="filtro()">…</section>
|
|
5054
|
+
* ```
|
|
5055
|
+
*/
|
|
5056
|
+
declare class SolRevealDirective implements OnInit {
|
|
5057
|
+
private readonly host;
|
|
5058
|
+
private readonly destroyRef;
|
|
5059
|
+
private readonly document;
|
|
5060
|
+
private readonly nonce;
|
|
5061
|
+
/** Índice del stagger: retrasa la entrada índice × ~60 ms (vía tokens). */
|
|
5062
|
+
readonly solRevealIndex: _angular_core.InputSignal<number>;
|
|
5063
|
+
/** Valor arbitrario: cada cambio re-dispara la animación (replay al filtrar). */
|
|
5064
|
+
readonly solRevealReplay: _angular_core.InputSignal<unknown>;
|
|
5065
|
+
private observer;
|
|
5066
|
+
private revealed;
|
|
5067
|
+
private altKeyframe;
|
|
5068
|
+
constructor();
|
|
5069
|
+
ngOnInit(): void;
|
|
5070
|
+
private ensureGlobalStyles;
|
|
5071
|
+
/** Primera entrada al viewport: una sola vez por elemento. */
|
|
5072
|
+
private reveal;
|
|
5073
|
+
/** Alterna el keyframe base y su duplicado "B" para reiniciar la animación. */
|
|
5074
|
+
private replay;
|
|
5075
|
+
private disconnect;
|
|
5076
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SolRevealDirective, never>;
|
|
5077
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SolRevealDirective, "[solReveal]", never, { "solRevealIndex": { "alias": "solRevealIndex"; "required": false; "isSignal": true; }; "solRevealReplay": { "alias": "solRevealReplay"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5078
|
+
}
|
|
5079
|
+
|
|
4999
5080
|
/** Contexto que recibe un default v2 calculado: modo activo + resolutor de rutas del contrato. */
|
|
5000
5081
|
interface EmitDefaultContext {
|
|
5001
5082
|
mode: ThemeMode;
|
|
@@ -5125,11 +5206,9 @@ declare class ThemeService {
|
|
|
5125
5206
|
* tema: uno inválido cae al default. Útil para hosts que ya tienen el tema en
|
|
5126
5207
|
* memoria (SSR, caché) o que no quieren implementar un ThemeSource.
|
|
5127
5208
|
*
|
|
5128
|
-
* MODO POR DEFECTO (BD): si el tema traído trae `meta.defaultMode
|
|
5129
|
-
*
|
|
5130
|
-
* (
|
|
5131
|
-
* persistirlo en `localStorage` — para que BD siga gobernando mientras el
|
|
5132
|
-
* usuario no elija por su cuenta.
|
|
5209
|
+
* MODO POR DEFECTO (BD): si el tema traído trae `meta.defaultMode`, ese modo
|
|
5210
|
+
* se aplica AHORA y se sincroniza en `localStorage`, aunque el navegador ya
|
|
5211
|
+
* tenga una elección guardada (ver `applyEntityDefaultMode`).
|
|
5133
5212
|
*/
|
|
5134
5213
|
setTenantTheme(theme: ThemeFile | null): void;
|
|
5135
5214
|
/**
|
|
@@ -5150,8 +5229,8 @@ declare class ThemeService {
|
|
|
5150
5229
|
/**
|
|
5151
5230
|
* Fija el modo oscuro/claro y lo PERSISTE como elección EXPLÍCITA del
|
|
5152
5231
|
* usuario (toggle sol/luna, o "Aplicar tema" del Theme Studio). A partir de
|
|
5153
|
-
* este punto `hasExplicitModePreference()` es `true
|
|
5154
|
-
*
|
|
5232
|
+
* este punto `hasExplicitModePreference()` es `true`; la siguiente carga del
|
|
5233
|
+
* tema vuelve a imponer `meta.defaultMode` de BD.
|
|
5155
5234
|
*/
|
|
5156
5235
|
setDarkMode(dark: boolean): void;
|
|
5157
5236
|
toggleMode(): void;
|
|
@@ -5284,5 +5363,5 @@ declare function createIdentitySolI18n(): SolI18n;
|
|
|
5284
5363
|
*/
|
|
5285
5364
|
declare const SOL_I18N: InjectionToken<SolI18n>;
|
|
5286
5365
|
|
|
5287
|
-
export { DEFAULT_SCORE_THRESHOLDS, EMIT_TABLE, KANBAN_ADD_ACTION, KanbanReorderService, NEUTRAL_CALENDAR_COLOR, SOL_BUNDLED_DEFAULT_THEME, SOL_CALENDAR_COLOR, SOL_CHART_ENGINE, SOL_DEFAULT_THEME, SOL_I18N, SOL_TABLE_VARIANTS, SOL_TENANT_RESOLVER, SOL_TREE_MAX_DEPTH, SolAvatarComponent, SolBadgeComponent, SolButtonComponent, SolCalendarComponent, SolCalendarGridComponent, SolCalendarHeaderComponent, SolCardComponent, SolChartComponent, SolCheckboxComponent, SolChipComponent, SolChipGroupComponent, SolDataTableComponent, SolDatePickerComponent, SolDayPickerComponent, SolDrawerComponent, SolEmptyStateComponent, SolFileUploadComponent, SolFlowCanvasComponent, SolFormFieldComponent, SolIconButtonComponent, SolIconComponent, SolInputComponent, SolKanbanBoardComponent, SolKanbanCardComponent, SolKanbanColumnComponent, SolKanbanDragSourceComponent, SolMessageStatusComponent, SolModalComponent, SolNotificationPanelComponent, SolNumberInputComponent, SolPageHeaderComponent, SolPaginationComponent, SolProgressBarComponent, SolRatingInputComponent, SolRichEditorComponent, SolScopeSwitcherComponent, SolScoreBadgeComponent, SolSearchInputComponent, SolSelectComponent, SolSkeletonComponent, SolSpinnerComponent, SolStarRatingComponent, SolStepperComponent, SolTabsComponent, SolTextareaComponent, SolTimelineComponent, SolToggleComponent, SolTooltipComponent, SolTreeComponent, SolTreeNodeDefDirective, SolTrendComponent, SolViewToggleComponent, SolVirtualScrollComponent, SolWizardComponent, SolWizardStepDirective, TCPDF_ALLOWED_STYLE_PROPERTIES, TCPDF_ALLOWED_TAGS, THEME_SOURCE, ThemeService, buildDayColumns, buildGoogleFontsUrl, collectUndatedNodes, computeAutoLayoutPositions, computeEventHeight, computeEventTop, computeGlobalRange, computeInitials, computeMonthAxisTicks, computeNowTop, createIdentitySolI18n, dayKey, defaultStatusToken, defaultTrendFormat, getWeekStart, hashToPaletteIndex, isRenderableTheme, isSafeBackgroundImage, isSafeCssColor, normalizeRating, parseEventDate, positionRows, provideTheme, resolveCssVars, resolveScoreTone, resolveTrendDirection, sanitizeAssetUrl, sanitizeHtmlToTcpdf, serializeElementToTcpdfHtml };
|
|
5288
|
-
export type { CalendarDayColumn, DataTableColumn, DayPickerItem, KanbanCardTemplateContext, KanbanColumn, KanbanColumnAction, KanbanDragSourceItemContext, KanbanItem, KanbanItemMoved, LinkableTask, MentionUser, PositionedTimelineRow, SolAvatarSize, SolButtonSize, SolButtonVariant, SolCalendarColorStrategy, SolCalendarEvent, SolCalendarEventTemplateContext, SolCalendarLegendItem, SolCalendarView, SolChartData, SolChartEngineFactory, SolChartEngineHandle, SolChartOptions, SolChartSeries, SolChartType, SolCheckboxColor, SolCheckboxShape, SolCheckboxSize, SolChipOption, SolChipRole, SolChipSize, SolDataTableRow, SolDatePickerSize, SolDrawerSide, SolDrawerSize, SolDrawerVariant, SolFlowCanvasConnectionCreatedEvent, SolFlowCanvasConnectionRemovedEvent, SolFlowCanvasEdge, SolFlowCanvasEdgeKind, SolFlowCanvasNode, SolFlowCanvasNodeBadge, SolFlowCanvasNodeMovedEvent, SolFlowCanvasNodeSelectedEvent, SolFlowCanvasNodeTemplateContext, SolFlowCanvasNodeVisualState, SolFlowCanvasPosition, SolI18n, SolIconButtonSize, SolIconButtonVariant, SolIconName, SolIconSize, SolIconVariant, SolMessageStatus, SolNotificationItem, SolNotificationPanelState, SolNotificationTone, SolProgressMode, SolProgressSize, SolProgressVariant, SolRatingInputSize, SolRichImageUploader, SolScope, SolScopeSwitcherStatus, SolScoreThreshold, SolSelectOption, SolSkeletonVariant, SolStarRatingSize, SolStepperNavigation, SolStepperOrientation, SolStepperStep, SolStepperStepState, SolTabItem, SolTableVariant, SolTenantResolver, SolTimelineAxisTick, SolTimelineRange, SolTimelineStatusResolver, SolTone, SolTreeNode, SolTreeNodeTemplateContext, SolTreeToggleEvent, SolTrendDirection, SolViewToggleOption, SolVirtualScrollItemContext, SolWizardCanAdvance, SolWizardStep, StateColorSet, ThemeAlerts, ThemeComponent, ThemeFile, ThemeFont, ThemeLogo, ThemeMeta, ThemeMode, ThemeModeConfig, ThemePrimitives, ThemeSemantic, ThemeSource, ThemeTableComponent, TimelineLegendItem, TimelineNode, TokenRef };
|
|
5366
|
+
export { DEFAULT_SCORE_THRESHOLDS, EMIT_TABLE, KANBAN_ADD_ACTION, KanbanReorderService, NEUTRAL_CALENDAR_COLOR, SOL_BUNDLED_DEFAULT_THEME, SOL_CALENDAR_COLOR, SOL_CHART_ENGINE, SOL_DEFAULT_THEME, SOL_I18N, SOL_TABLE_VARIANTS, SOL_TENANT_RESOLVER, SOL_TREE_MAX_DEPTH, SolAvatarComponent, SolBadgeComponent, SolButtonComponent, SolCalendarComponent, SolCalendarGridComponent, SolCalendarHeaderComponent, SolCardComponent, SolChartComponent, SolCheckboxComponent, SolChipComponent, SolChipGroupComponent, SolConfirmDialogComponent, SolDataTableComponent, SolDatePickerComponent, SolDayPickerComponent, SolDrawerComponent, SolEmptyStateComponent, SolFileUploadComponent, SolFlowCanvasComponent, SolFormFieldComponent, SolIconButtonComponent, SolIconComponent, SolInputComponent, SolKanbanBoardComponent, SolKanbanCardComponent, SolKanbanColumnComponent, SolKanbanDragSourceComponent, SolMessageStatusComponent, SolModalComponent, SolNotificationPanelComponent, SolNumberInputComponent, SolPageHeaderComponent, SolPaginationComponent, SolProgressBarComponent, SolRatingInputComponent, SolRevealDirective, SolRichEditorComponent, SolScopeSwitcherComponent, SolScoreBadgeComponent, SolSearchInputComponent, SolSelectComponent, SolSkeletonComponent, SolSpinnerComponent, SolStarRatingComponent, SolStepperComponent, SolTabsComponent, SolTextareaComponent, SolTimelineComponent, SolToggleComponent, SolTooltipComponent, SolTreeComponent, SolTreeNodeDefDirective, SolTrendComponent, SolViewToggleComponent, SolVirtualScrollComponent, SolWizardComponent, SolWizardStepDirective, TCPDF_ALLOWED_STYLE_PROPERTIES, TCPDF_ALLOWED_TAGS, THEME_SOURCE, ThemeService, buildDayColumns, buildGoogleFontsUrl, collectUndatedNodes, computeAutoLayoutPositions, computeEventHeight, computeEventTop, computeGlobalRange, computeInitials, computeMonthAxisTicks, computeNowTop, createIdentitySolI18n, dayKey, defaultStatusToken, defaultTrendFormat, getWeekStart, hashToPaletteIndex, isRenderableTheme, isSafeBackgroundImage, isSafeCssColor, normalizeRating, parseEventDate, positionRows, provideTheme, resolveCssVars, resolveScoreTone, resolveTrendDirection, sanitizeAssetUrl, sanitizeHtmlToTcpdf, serializeElementToTcpdfHtml };
|
|
5367
|
+
export type { CalendarDayColumn, DataTableColumn, DayPickerItem, KanbanCardTemplateContext, KanbanColumn, KanbanColumnAction, KanbanDragSourceItemContext, KanbanItem, KanbanItemMoved, LinkableTask, MentionUser, PositionedTimelineRow, SolAvatarSize, SolButtonSize, SolButtonVariant, SolCalendarColorStrategy, SolCalendarEvent, SolCalendarEventTemplateContext, SolCalendarLegendItem, SolCalendarView, SolChartData, SolChartEngineFactory, SolChartEngineHandle, SolChartOptions, SolChartSeries, SolChartType, SolCheckboxColor, SolCheckboxShape, SolCheckboxSize, SolChipOption, SolChipRole, SolChipSize, SolConfirmDialogVariant, SolDataTableRow, SolDatePickerSize, SolDrawerSide, SolDrawerSize, SolDrawerVariant, SolFlowCanvasConnectionCreatedEvent, SolFlowCanvasConnectionRemovedEvent, SolFlowCanvasEdge, SolFlowCanvasEdgeKind, SolFlowCanvasNode, SolFlowCanvasNodeBadge, SolFlowCanvasNodeMovedEvent, SolFlowCanvasNodeSelectedEvent, SolFlowCanvasNodeTemplateContext, SolFlowCanvasNodeVisualState, SolFlowCanvasPosition, SolI18n, SolIconButtonSize, SolIconButtonVariant, SolIconName, SolIconSize, SolIconVariant, SolMessageStatus, SolNotificationItem, SolNotificationPanelState, SolNotificationTone, SolProgressMode, SolProgressSize, SolProgressVariant, SolRatingInputSize, SolRichImageUploader, SolScope, SolScopeSwitcherStatus, SolScoreThreshold, SolSelectOption, SolSkeletonVariant, SolStarRatingSize, SolStepperNavigation, SolStepperOrientation, SolStepperStep, SolStepperStepState, SolTabItem, SolTableVariant, SolTenantResolver, SolTimelineAxisTick, SolTimelineRange, SolTimelineStatusResolver, SolTone, SolTreeNode, SolTreeNodeTemplateContext, SolTreeToggleEvent, SolTrendDirection, SolViewToggleOption, SolVirtualScrollItemContext, SolWizardCanAdvance, SolWizardStep, StateColorSet, ThemeAlerts, ThemeComponent, ThemeFile, ThemeFont, ThemeLogo, ThemeMeta, ThemeMode, ThemeModeConfig, ThemePrimitives, ThemeSemantic, ThemeSource, ThemeTableComponent, TimelineLegendItem, TimelineNode, TokenRef };
|