valtech-components 2.0.686 → 2.0.688

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.
@@ -43,7 +43,7 @@ export declare class RightsFooterComponent {
43
43
  /**
44
44
  * Computed helper for color prop in template.
45
45
  */
46
- propsColor: import("@angular/core").Signal<"success" | "warning" | "medium" | "primary" | "secondary" | "tertiary" | "danger" | "light" | "dark">;
46
+ propsColor: import("@angular/core").Signal<"medium" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "dark">;
47
47
  /**
48
48
  * Computed helper for withMargin prop in template.
49
49
  */
@@ -90,9 +90,9 @@ export declare class ArticleComponent implements OnInit {
90
90
  contentInterpolation?: Record<string, string | number>;
91
91
  icon?: import("valtech-components").IconMetada;
92
92
  shape?: "round";
93
- size?: "default" | "small" | "large";
94
- fill?: "clear" | "default" | "outline" | "solid";
95
- type: "submit" | "button" | "reset";
93
+ size?: "small" | "large" | "default";
94
+ fill?: "default" | "clear" | "outline" | "solid";
95
+ type: "button" | "submit" | "reset";
96
96
  token?: string;
97
97
  ref?: any;
98
98
  handler?: (value: any) => any;
@@ -72,8 +72,8 @@ export declare class ToolbarComponent implements OnInit {
72
72
  };
73
73
  showFlags?: boolean;
74
74
  color: import("@ionic/core").Color;
75
- size?: "default" | "small" | "large";
76
- fill?: "clear" | "default" | "outline" | "solid";
75
+ size?: "small" | "large" | "default";
76
+ fill?: "default" | "clear" | "outline" | "solid";
77
77
  shape?: "round";
78
78
  expand?: "full" | "block";
79
79
  disabled?: boolean;
@@ -103,6 +103,11 @@ export declare class TypedCollection<T extends FirestoreDocument> {
103
103
  * Nota: Esto carga todos los documentos, usar con cuidado en colecciones grandes.
104
104
  */
105
105
  count(options?: QueryOptions): Promise<number>;
106
+ /**
107
+ * Obtiene todos los documentos (one-time fetch sin listener).
108
+ * A diferencia de watchAll(), no mantiene subscripciones activas.
109
+ */
110
+ getAllOnce(options?: QueryOptions): Promise<T[]>;
106
111
  /**
107
112
  * Verifica si un documento existe.
108
113
  */
@@ -82,6 +82,11 @@ export declare class NotificationsService {
82
82
  * Real-time: se actualiza automáticamente cuando cambian los datos.
83
83
  */
84
84
  getAll(): Observable<NotificationDocument[]>;
85
+ /**
86
+ * Obtiene todas las notificaciones (one-time fetch sin listener).
87
+ * Útil para cargas iniciales sin necesidad de updates en tiempo real.
88
+ */
89
+ getAllOnce(): Promise<NotificationDocument[]>;
85
90
  /**
86
91
  * Obtiene solo notificaciones no leídas.
87
92
  */
@@ -36,8 +36,10 @@ export declare class StorageService {
36
36
  constructor(storage: Storage);
37
37
  /**
38
38
  * Prefija el path de storage con el appId si está configurado.
39
- * Si no hay appId, retorna el path sin modificar (backward compatible).
39
+ * Si no hay appId o skipPrefix es true, retorna el path sin modificar.
40
40
  *
41
+ * @param path - Ruta original
42
+ * @param skipPrefix - Si es true, no aplica el prefix (útil para paths compartidos como avatares)
41
43
  * @internal
42
44
  */
43
45
  private prefixStoragePath;
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "2.0.684";
5
+ export declare const VERSION = "2.0.688";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.686",
3
+ "version": "2.0.688",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"