valtech-components 4.0.251 → 4.0.252
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/chat-composer/chat-composer.component.mjs +4 -2
- package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +15 -5
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +18 -6
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +8 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -54,6 +54,14 @@ export declare class ToolbarComponent implements OnInit {
|
|
|
54
54
|
* Devuelve las acciones de la izquierda.
|
|
55
55
|
*/
|
|
56
56
|
leftActions(): ToolbarAction[];
|
|
57
|
+
/**
|
|
58
|
+
* trackBy por `token` para el *ngFor de acciones. Sin esto, como rightActions()/
|
|
59
|
+
* leftActions() devuelven un array NUEVO en cada change detection, Angular diffea
|
|
60
|
+
* por identidad y DESTRUYE/RECREA los nodos (val-user-avatar / val-image) cuando
|
|
61
|
+
* cambia la referencia → el <img> se recrea y reaparece el fallback ("parpadeo").
|
|
62
|
+
* Con key estable, Angular reusa el elemento existente → sin recarga ni flicker.
|
|
63
|
+
*/
|
|
64
|
+
trackByToken(_index: number, action: ToolbarAction): string;
|
|
57
65
|
/**
|
|
58
66
|
* Language selector props — memoized to avoid new object reference on every CD cycle.
|
|
59
67
|
*/
|
package/lib/version.d.ts
CHANGED