valtech-components 2.0.812 → 2.0.814
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/textarea-input/textarea-input.component.mjs +3 -3
- package/esm2022/lib/services/modal/modal.service.mjs +14 -6
- package/esm2022/lib/services/page-refresh/page-refresh.service.mjs +29 -2
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +44 -9
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/services/page-refresh/page-refresh.service.d.ts +22 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -62,3 +62,25 @@ export declare class PageRefreshService {
|
|
|
62
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageRefreshService, never>;
|
|
63
63
|
static ɵprov: i0.ɵɵInjectableDeclaration<PageRefreshService>;
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Conecta una página al pull-to-refresh estándar en UNA línea, sin lifecycle
|
|
67
|
+
* hooks manuales: registra el handler y lo desregistra al destruir la página
|
|
68
|
+
* (vía `DestroyRef`).
|
|
69
|
+
*
|
|
70
|
+
* DEBE llamarse en un injection context (constructor o field initializer).
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* export class MiPage {
|
|
75
|
+
* private data = createRefreshableStream(() => this.svc.getX());
|
|
76
|
+
* readonly items = this.data.data;
|
|
77
|
+
*
|
|
78
|
+
* constructor() {
|
|
79
|
+
* connectPageRefresh(() => this.data.reload());
|
|
80
|
+
* }
|
|
81
|
+
* }
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* Reemplaza el patrón `ngOnInit`→`register` / `ngOnDestroy`→`unregister`.
|
|
85
|
+
*/
|
|
86
|
+
export declare function connectPageRefresh(handler: PageRefreshHandler): void;
|
package/lib/version.d.ts
CHANGED