valtech-components 2.0.928 → 2.0.930

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" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "danger" | "light" | "dark">;
46
+ propsColor: import("@angular/core").Signal<"primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium" | "dark">;
47
47
  /**
48
48
  * Computed helper for withMargin prop in template.
49
49
  */
@@ -11,7 +11,7 @@ export declare class TextComponent {
11
11
  */
12
12
  displayContent: import("@angular/core").Signal<string>;
13
13
  propsColor: import("@angular/core").Signal<import("@ionic/core").Color>;
14
- propsSize: import("@angular/core").Signal<"small" | "medium" | "large" | "xlarge">;
14
+ propsSize: import("@angular/core").Signal<"medium" | "small" | "large" | "xlarge">;
15
15
  propsBold: import("@angular/core").Signal<boolean>;
16
16
  propsProcessLinks: import("@angular/core").Signal<boolean>;
17
17
  propsAllowPartialBold: import("@angular/core").Signal<boolean>;
@@ -38,7 +38,7 @@ export declare class UserAvatarComponent {
38
38
  readonly imageUrl: import("@angular/core").Signal<string>;
39
39
  /** Iniciales — 1-2 chars derivados de name (preferred) o email prefix. */
40
40
  readonly initials: import("@angular/core").Signal<string>;
41
- readonly sizeClass: import("@angular/core").Signal<"small" | "medium" | "large" | "xlarge" | "xsmall">;
41
+ readonly sizeClass: import("@angular/core").Signal<"medium" | "small" | "large" | "xlarge" | "xsmall">;
42
42
  readonly shapeClass: import("@angular/core").Signal<"circle" | "square">;
43
43
  /** Background — explicito o derivado deterministicamente del user. */
44
44
  readonly bgColor: import("@angular/core").Signal<string>;
@@ -48,7 +48,7 @@ export declare class FeaturesListComponent {
48
48
  iconColor: string;
49
49
  iconSize: number;
50
50
  mode: "horizontal" | "vertical";
51
- gap: "small" | "medium" | "large";
51
+ gap: "medium" | "small" | "large";
52
52
  alignment: "center" | "start";
53
53
  }>;
54
54
  /** Resolved icon color (handles Ionic colors and CSS colors) */
@@ -45,7 +45,7 @@ export declare class ArticleComponent implements OnInit {
45
45
  getVideoElement(element: ArticleElement): ArticleVideoElement;
46
46
  getCustomElement(element: ArticleElement): ArticleCustomElement;
47
47
  getQuoteTextProps(element: ArticleElement): {
48
- size: "small" | "medium" | "large" | "xlarge";
48
+ size: "medium" | "small" | "large" | "xlarge";
49
49
  color: import("@ionic/core").Color;
50
50
  content?: string;
51
51
  bold: boolean;
@@ -61,7 +61,7 @@ export declare class ArticleComponent implements OnInit {
61
61
  showQuoteMark?: boolean;
62
62
  };
63
63
  getHighlightTextProps(element: ArticleElement): {
64
- size: "small" | "medium" | "large" | "xlarge";
64
+ size: "medium" | "small" | "large" | "xlarge";
65
65
  color: import("@ionic/core").Color;
66
66
  content?: string;
67
67
  bold: boolean;
@@ -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";
93
+ size?: "small" | "default" | "large";
94
94
  fill?: "default" | "clear" | "outline" | "solid";
95
- type: "reset" | "submit" | "button";
95
+ type: "button" | "submit" | "reset";
96
96
  token?: string;
97
97
  ref?: any;
98
98
  handler?: (value: any) => any;
@@ -20,6 +20,8 @@ export declare class ToolbarComponent implements OnInit {
20
20
  * Metadatos de la barra de herramientas.
21
21
  */
22
22
  props: ToolbarMetadata;
23
+ private _lspInput;
24
+ private _lspCache;
23
25
  /**
24
26
  * Evento emitido al hacer click en una acción o botón de la barra.
25
27
  */
@@ -51,31 +53,9 @@ export declare class ToolbarComponent implements OnInit {
51
53
  */
52
54
  leftActions(): ToolbarAction[];
53
55
  /**
54
- * Language selector props with 'icon' mode as default for toolbar display.
56
+ * Language selector props memoized to avoid new object reference on every CD cycle.
55
57
  */
56
- get languageSelectorProps(): {
57
- mode: import("valtech-components").LanguageSelectorMode;
58
- icon?: string;
59
- currentLanguage?: string;
60
- availableLanguages?: string[];
61
- showLabel?: boolean;
62
- label?: string;
63
- labelConfig?: {
64
- className?: string;
65
- key: string;
66
- fallback?: string;
67
- interpolation?: Record<string, any>;
68
- };
69
- showFlags?: boolean;
70
- color: import("@ionic/core").Color;
71
- size?: "default" | "small" | "large";
72
- fill?: "default" | "clear" | "outline" | "solid";
73
- shape?: "round";
74
- expand?: "full" | "block";
75
- disabled?: boolean;
76
- customLanguageNames?: Record<string, string>;
77
- forceReload?: boolean;
78
- };
58
+ get languageSelectorProps(): any;
79
59
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
80
60
  static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "val-toolbar", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, ["[toolbar-bottom]"], true, never>;
81
61
  }
@@ -47,43 +47,18 @@ export declare class PageContentComponent {
47
47
  * Emits when a header action is clicked.
48
48
  */
49
49
  onHeaderClick: EventEmitter<string>;
50
+ private _hpInputs;
51
+ private _hpCache;
50
52
  /**
51
53
  * Default header configuration (cached to avoid infinite change detection).
52
54
  */
53
55
  private readonly defaultHeader;
54
56
  /**
55
57
  * Gets header props, using cached default if not provided.
56
- * Injects languageSelector into toolbar when provided at page level.
58
+ * Memoized to return a stable object reference when inputs haven't changed,
59
+ * preventing cascading change detection cycles in child components.
57
60
  */
58
- get headerProps(): import("valtech-components").HeaderMetadata | {
59
- bordered: boolean;
60
- translucent: boolean;
61
- toolbar: {
62
- withBack: boolean;
63
- withActions: boolean;
64
- textColor: "dark";
65
- withMenu: boolean;
66
- title: string;
67
- languageSelector: undefined;
68
- actions: {
69
- token: string;
70
- description: string;
71
- position: "left";
72
- type: "IMAGE";
73
- image: {
74
- width: number;
75
- src: string;
76
- alt: string;
77
- mode: "box";
78
- shaded: boolean;
79
- bordered: boolean;
80
- size: "small";
81
- limited: boolean;
82
- flex: boolean;
83
- };
84
- }[];
85
- };
86
- };
61
+ get headerProps(): any;
87
62
  /**
88
63
  * Gets the background color based on theme.
89
64
  */
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.928";
5
+ export declare const VERSION = "2.0.930";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.928",
3
+ "version": "2.0.930",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"