valtech-components 2.0.741 → 2.0.742
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/molecules/notes-box/notes-box.component.mjs +21 -3
- package/esm2022/lib/components/molecules/notes-box/types.mjs +1 -1
- package/esm2022/lib/components/organisms/article/article.component.mjs +5 -2
- package/esm2022/lib/components/organisms/article/types.mjs +2 -2
- package/esm2022/lib/services/markdown-article/markdown-article-parser.mjs +3 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +28 -5
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/notes-box/types.d.ts +6 -2
- package/lib/components/organisms/article/types.d.ts +6 -2
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,11 +4,13 @@ import { Color } from '@ionic/core';
|
|
|
4
4
|
*
|
|
5
5
|
* @property color - The background color of the box.
|
|
6
6
|
* @property textColor - The color of the text.
|
|
7
|
-
* @property prefix - Optional prefix text (bold).
|
|
8
|
-
* @property text - The main text content.
|
|
7
|
+
* @property prefix - Optional prefix text (bold). Pass `''` (empty string) to suppress the prefix entirely.
|
|
8
|
+
* @property text - The main text content. May contain `<strong>` / `<b>` tags when `allowPartialBold` is enabled.
|
|
9
9
|
* @property size - The size of the text and box ('small' | 'medium' | 'large' | 'xlarge').
|
|
10
10
|
* @property rounded - Whether the box has rounded corners.
|
|
11
11
|
* @property padding - Custom padding for the box (optional).
|
|
12
|
+
* @property allowPartialBold - Render inline `<strong>`/`<b>` tags in `text` as bold via innerHTML. Default `false`.
|
|
13
|
+
* @property processLinks - Auto-process URLs and `[text](url)` markdown links in `text`. Default `false`.
|
|
12
14
|
*/
|
|
13
15
|
export interface NotesBoxMetadata {
|
|
14
16
|
color: Color;
|
|
@@ -18,4 +20,6 @@ export interface NotesBoxMetadata {
|
|
|
18
20
|
size: 'small' | 'medium' | 'large' | 'xlarge';
|
|
19
21
|
rounded: boolean;
|
|
20
22
|
padding?: string;
|
|
23
|
+
allowPartialBold?: boolean;
|
|
24
|
+
processLinks?: boolean;
|
|
21
25
|
}
|
|
@@ -105,9 +105,9 @@ export interface ArticleCodeElement extends BaseArticleElement {
|
|
|
105
105
|
export interface ArticleNoteElement extends BaseArticleElement {
|
|
106
106
|
type: 'note';
|
|
107
107
|
props: {
|
|
108
|
-
/** Texto principal de la nota */
|
|
108
|
+
/** Texto principal de la nota. Puede contener `<strong>`/`<b>` si `allowPartialBold` está activo. */
|
|
109
109
|
text: string;
|
|
110
|
-
/** Prefijo en negrita (ej: "Nota:") */
|
|
110
|
+
/** Prefijo en negrita (ej: "Nota:"). Pasa `''` (string vacío) para suprimir el prefijo. */
|
|
111
111
|
prefix?: string;
|
|
112
112
|
/** Color de fondo */
|
|
113
113
|
color?: Color;
|
|
@@ -119,6 +119,10 @@ export interface ArticleNoteElement extends BaseArticleElement {
|
|
|
119
119
|
rounded?: boolean;
|
|
120
120
|
/** Padding personalizado */
|
|
121
121
|
padding?: string;
|
|
122
|
+
/** Renderiza `<strong>`/`<b>` inline en `text` via innerHTML. Default `false`. */
|
|
123
|
+
allowPartialBold?: boolean;
|
|
124
|
+
/** Procesa URLs y `[text](url)` en `text`. Default `false`. */
|
|
125
|
+
processLinks?: boolean;
|
|
122
126
|
};
|
|
123
127
|
}
|
|
124
128
|
/**
|
package/lib/version.d.ts
CHANGED