valtech-components 4.0.142 → 4.0.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/molecules/empty-state/empty-state.component.mjs +23 -27
- package/esm2022/lib/components/molecules/empty-state/factory.mjs +2 -1
- package/esm2022/lib/components/molecules/empty-state/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +22 -25
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/empty-state/empty-state.component.d.ts +2 -0
- package/lib/components/molecules/empty-state/factory.d.ts +8 -0
- package/lib/components/molecules/empty-state/types.d.ts +7 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -30,6 +30,8 @@ export declare class EmptyStateComponent {
|
|
|
30
30
|
protected variantClass: import("@angular/core").Signal<EmptyStateVariant>;
|
|
31
31
|
/** Icono final — custom si se pasó, default de la variante si no. */
|
|
32
32
|
protected iconName: import("@angular/core").Signal<string>;
|
|
33
|
+
/** Emoji opcional — si está, se renderiza en lugar del icono Ionicons. */
|
|
34
|
+
protected emoji: import("@angular/core").Signal<string>;
|
|
33
35
|
/** Tamaño en px. Default 64. */
|
|
34
36
|
protected iconSize: import("@angular/core").Signal<number>;
|
|
35
37
|
/**
|
|
@@ -28,6 +28,14 @@ export interface CreateErrorStateOpts {
|
|
|
28
28
|
onRetry?: () => void | Promise<void>;
|
|
29
29
|
/** `true` mientras el retry está corriendo — el botón pasa a WORKING. */
|
|
30
30
|
retrying?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Emoji a mostrar en lugar del icono (ej. `'🥹'`). Un solo string aplica a
|
|
33
|
+
* ambas variantes; el objeto elige según `isNetwork` (offline vs error).
|
|
34
|
+
*/
|
|
35
|
+
emoji?: string | {
|
|
36
|
+
offline: string;
|
|
37
|
+
error: string;
|
|
38
|
+
};
|
|
31
39
|
}
|
|
32
40
|
/**
|
|
33
41
|
* Convierte un error capturado en `EmptyStateMetadata` listo para
|
|
@@ -51,6 +51,13 @@ export interface EmptyStateMetadata {
|
|
|
51
51
|
* en el componente consumidor (Ionic standalone no auto-registra).
|
|
52
52
|
*/
|
|
53
53
|
icon?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Emoji a mostrar en lugar del icono Ionicons (ej. `'🥹'`). Si se especifica,
|
|
56
|
+
* tiene prioridad sobre `icon`/el default de la variante — se renderiza como
|
|
57
|
+
* texto (no requiere registrar nada en Ionic). Útil para dar un tono más
|
|
58
|
+
* humano a un estado de error/vacío.
|
|
59
|
+
*/
|
|
60
|
+
emoji?: string;
|
|
54
61
|
/** Tamaño del icono en píxeles. Default `64`. */
|
|
55
62
|
iconSize?: number;
|
|
56
63
|
/** Acción CTA opcional. Si se omite, no se muestra botón. */
|
package/lib/version.d.ts
CHANGED