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.
- package/esm2022/lib/services/firebase/types.mjs +10 -2
- package/esm2022/lib/services/meta/index.mjs +3 -0
- package/esm2022/lib/services/meta/meta.service.mjs +63 -0
- package/esm2022/lib/services/meta/types.mjs +2 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/valtech-components.mjs +71 -1
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +2 -2
- package/lib/components/organisms/article/article.component.d.ts +3 -3
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +1 -1
- package/lib/components/templates/page-content/page-content.component.d.ts +10 -10
- package/lib/services/firebase/types.d.ts +5 -0
- package/lib/services/meta/index.d.ts +2 -0
- package/lib/services/meta/meta.service.d.ts +23 -0
- package/lib/services/meta/types.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -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" | "
|
|
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<"
|
|
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" | "
|
|
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?: "
|
|
93
|
+
size?: "small" | "large" | "default";
|
|
94
94
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
95
|
-
type: "
|
|
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?: "
|
|
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,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
|
+
}
|
package/package.json
CHANGED
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';
|