valtech-components 2.0.432 → 2.0.434
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/organisms/article/article.component.mjs +41 -11
- package/esm2022/lib/components/organisms/article/types.mjs +1 -13
- package/fesm2022/valtech-components.mjs +40 -22
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/article/article.component.d.ts +7 -1
- package/lib/components/organisms/article/types.d.ts +5 -1
- package/package.json +1 -1
|
@@ -13,6 +13,12 @@ export declare class ArticleComponent implements OnInit {
|
|
|
13
13
|
props: ArticleMetadata;
|
|
14
14
|
constructor();
|
|
15
15
|
ngOnInit(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Obtiene los estilos de padding para el contenedor article
|
|
18
|
+
*/
|
|
19
|
+
getContainerStyles(): {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
16
22
|
/**
|
|
17
23
|
* Función de trackBy para optimizar el rendering de elementos
|
|
18
24
|
*/
|
|
@@ -23,7 +29,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
23
29
|
private getDefaultSpacingForType;
|
|
24
30
|
/**
|
|
25
31
|
* Obtiene las clases CSS para el espaciado del elemento.
|
|
26
|
-
* Prioridad: element.spacing >
|
|
32
|
+
* Prioridad: element.spacing > elementSpacing > espaciado nativo por tipo
|
|
27
33
|
*/
|
|
28
34
|
getElementSpacingClass(element: ArticleElement): string;
|
|
29
35
|
getTitleElement(element: ArticleElement): ArticleTitleElement;
|
|
@@ -262,7 +262,11 @@ export type ArticleElement = ArticleTitleElement | ArticleSubtitleElement | Arti
|
|
|
262
262
|
export interface ArticleMetadata {
|
|
263
263
|
/** Elementos del artículo */
|
|
264
264
|
elements: ArticleElement[];
|
|
265
|
-
/**
|
|
265
|
+
/** Padding interno del contenedor article */
|
|
266
|
+
containerSpacing?: ArticleSpacing;
|
|
267
|
+
/** Override global de spacing para elementos (prioridad sobre spacing por tipo) */
|
|
268
|
+
elementSpacing?: ArticleSpacing;
|
|
269
|
+
/** @deprecated Usar elementSpacing en su lugar */
|
|
266
270
|
defaultSpacing?: ArticleSpacing;
|
|
267
271
|
/** Ancho máximo del artículo */
|
|
268
272
|
maxWidth?: string;
|