valtech-components 2.0.668 → 2.0.669

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.
@@ -39,11 +39,11 @@ export declare class RightsFooterComponent {
39
39
  /**
40
40
  * Computed helper for align prop in template.
41
41
  */
42
- propsAlign: import("@angular/core").Signal<"left" | "right" | "center">;
42
+ propsAlign: import("@angular/core").Signal<"left" | "center" | "right">;
43
43
  /**
44
44
  * Computed helper for color prop in template.
45
45
  */
46
- propsColor: import("@angular/core").Signal<"success" | "dark" | "primary" | "secondary" | "tertiary" | "warning" | "danger" | "light" | "medium">;
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
  */
@@ -57,7 +57,7 @@ export declare class ArticleComponent implements OnInit {
57
57
  linkConfig?: import("valtech-components").LinkProcessorConfig;
58
58
  allowPartialBold?: boolean;
59
59
  authorColor?: import("@ionic/core").Color;
60
- alignment?: "left" | "right" | "center";
60
+ alignment?: "left" | "center" | "right";
61
61
  showQuoteMark?: boolean;
62
62
  };
63
63
  getHighlightTextProps(element: ArticleElement): {
@@ -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" | "large" | "default";
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;
@@ -72,7 +72,7 @@ export declare class ToolbarComponent implements OnInit {
72
72
  };
73
73
  showFlags?: boolean;
74
74
  color: import("@ionic/core").Color;
75
- size?: "default" | "small" | "large";
75
+ size?: "small" | "large" | "default";
76
76
  fill?: "default" | "clear" | "outline" | "solid";
77
77
  shape?: "round";
78
78
  expand?: "full" | "block";
@@ -57,6 +57,16 @@ export declare class PageContentComponent {
57
57
  */
58
58
  get headerProps(): import("valtech-components").HeaderMetadata | {
59
59
  toolbar: {
60
+ languageSelector: import("valtech-components").LanguageSelectorMetadata;
61
+ withBack: boolean;
62
+ withMenu?: boolean;
63
+ backText?: string;
64
+ withActions: boolean;
65
+ color?: import("@ionic/core").Color;
66
+ textColor?: import("@ionic/core").Color;
67
+ title: string;
68
+ actions: import("valtech-components").ToolbarAction[];
69
+ } | {
60
70
  languageSelector: import("valtech-components").LanguageSelectorMetadata;
61
71
  withBack: boolean;
62
72
  withActions: boolean;
@@ -80,16 +90,6 @@ export declare class PageContentComponent {
80
90
  flex: boolean;
81
91
  };
82
92
  }[];
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
93
  };
94
94
  translucent?: boolean;
95
95
  bordered?: boolean;
@@ -38,6 +38,11 @@ export interface EmulatorConfig {
38
38
  port: number;
39
39
  };
40
40
  }
41
+ /**
42
+ * Configuración por defecto de emuladores.
43
+ * Puertos estándar usados en todos los proyectos frontend.
44
+ */
45
+ export declare const DEFAULT_EMULATOR_CONFIG: EmulatorConfig;
41
46
  /**
42
47
  * Identificador de aplicación para namespacing automático en Firestore y Storage.
43
48
  * Permite aislar datos de diferentes apps dentro del mismo proyecto Firebase.
@@ -0,0 +1,2 @@
1
+ export * from './meta.service';
2
+ export * from './types';
@@ -0,0 +1,23 @@
1
+ import { PageMetadata, MetaConfig } from './types';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MetaService {
4
+ private meta;
5
+ private titleService;
6
+ private baseUrl;
7
+ private defaultImage;
8
+ private siteName;
9
+ /**
10
+ * Configurar el servicio con valores de la app
11
+ */
12
+ configure(config: MetaConfig): void;
13
+ /**
14
+ * Actualizar meta tags de la página
15
+ */
16
+ updatePageMeta(metadata: PageMetadata, path?: string): void;
17
+ /**
18
+ * Resetear a valores por defecto
19
+ */
20
+ resetToDefault(metadata: PageMetadata): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<MetaService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<MetaService>;
23
+ }
@@ -0,0 +1,12 @@
1
+ export interface PageMetadata {
2
+ title: string;
3
+ description: string;
4
+ keywords?: string;
5
+ ogImage?: string;
6
+ type?: 'website' | 'article';
7
+ }
8
+ export interface MetaConfig {
9
+ baseUrl: string;
10
+ siteName: string;
11
+ defaultImage?: string;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.668",
3
+ "version": "2.0.669",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
package/public-api.d.ts CHANGED
@@ -242,6 +242,7 @@ export * from './lib/services/qr-generator/qr-generator.service';
242
242
  export * from './lib/services/qr-generator/types';
243
243
  export * from './lib/services/modal/modal.service';
244
244
  export * from './lib/services/modal/types';
245
+ export * from './lib/services/meta';
245
246
  export * from './lib/services/firebase';
246
247
  export * from './lib/services/auth';
247
248
  export * from './lib/services/i18n';