valtech-components 2.0.662 → 2.0.664

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.
@@ -2,6 +2,7 @@ import { EventEmitter } from '@angular/core';
2
2
  import { ThemeService } from '../../../services/theme.service';
3
3
  import { NavigationService } from '../../../services/navigation.service';
4
4
  import { PageContentMetadata } from './types';
5
+ import { HeaderMetadata } from '../../organisms/header/types';
5
6
  import * as i0 from "@angular/core";
6
7
  /**
7
8
  * val-page-content
@@ -51,49 +52,18 @@ export declare class PageContentComponent {
51
52
  * Default header configuration (cached to avoid infinite change detection).
52
53
  */
53
54
  private readonly defaultHeader;
55
+ /**
56
+ * Cache for computed header props to avoid infinite change detection.
57
+ */
58
+ private _cachedHeaderProps;
59
+ private _lastPropsHeader;
60
+ private _lastPropsLanguageSelector;
54
61
  /**
55
62
  * Gets header props, using cached default if not provided.
56
63
  * Injects languageSelector into toolbar when provided at page level.
64
+ * Uses caching to prevent infinite change detection loops.
57
65
  */
58
- get headerProps(): import("valtech-components").HeaderMetadata | {
59
- toolbar: {
60
- languageSelector: import("valtech-components").LanguageSelectorMetadata;
61
- withBack: boolean;
62
- withActions: boolean;
63
- textColor: "dark";
64
- withMenu: boolean;
65
- title: string;
66
- actions: {
67
- token: string;
68
- description: string;
69
- position: "left";
70
- type: "IMAGE";
71
- image: {
72
- width: number;
73
- src: string;
74
- alt: string;
75
- mode: "box";
76
- shaded: boolean;
77
- bordered: boolean;
78
- size: "small";
79
- limited: boolean;
80
- flex: boolean;
81
- };
82
- }[];
83
- } | {
84
- languageSelector: import("valtech-components").LanguageSelectorMetadata;
85
- withBack: boolean;
86
- withMenu?: boolean;
87
- backText?: string;
88
- withActions: boolean;
89
- color?: import("@ionic/core").Color;
90
- textColor?: import("@ionic/core").Color;
91
- title: string;
92
- actions: import("valtech-components").ToolbarAction[];
93
- };
94
- translucent?: boolean;
95
- bordered?: boolean;
96
- };
66
+ get headerProps(): HeaderMetadata;
97
67
  /**
98
68
  * Gets the background color based on theme.
99
69
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.662",
3
+ "version": "2.0.664",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"