valtech-components 2.0.785 → 2.0.787
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/action-header/action-header.component.mjs +37 -8
- package/esm2022/lib/components/molecules/action-header/types.mjs +1 -1
- package/esm2022/lib/components/molecules/phone-input/phone-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/username-input/username-input.component.mjs +3 -3
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +39 -11
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +1 -1
- package/lib/components/molecules/action-header/action-header.component.d.ts +20 -0
- package/lib/components/molecules/action-header/types.d.ts +22 -1
- package/lib/components/molecules/username-input/username-input.component.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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<"
|
|
46
|
+
propsColor: import("@angular/core").Signal<"success" | "danger" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "light" | "dark">;
|
|
47
47
|
/**
|
|
48
48
|
* Computed helper for withMargin prop in template.
|
|
49
49
|
*/
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import { ActionHeaderMetadata } from './types';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* `val-action-header` — heading with a right-aligned action button.
|
|
5
|
+
*
|
|
6
|
+
* By default renders the heading via `val-display` (hero size). Set
|
|
7
|
+
* `headingKind: 'title'` to render via `val-title` (section size) so it
|
|
8
|
+
* matches `val-title` section labels elsewhere on the same screen.
|
|
9
|
+
*
|
|
10
|
+
* @example Section heading (matches `val-title size='medium'` on the page):
|
|
11
|
+
* <val-action-header [props]="{
|
|
12
|
+
* headingKind: 'title',
|
|
13
|
+
* title: { size: 'medium', color: 'dark', bold: true, content: 'Active sessions' },
|
|
14
|
+
* action: { text: 'Sign out all', color: 'dark', fill: 'outline', size: 'small', ... },
|
|
15
|
+
* }"></val-action-header>
|
|
16
|
+
*
|
|
17
|
+
* @example Page hero (default):
|
|
18
|
+
* <val-action-header [props]="{
|
|
19
|
+
* title: { size: 'large', color: 'dark', content: 'Settings' },
|
|
20
|
+
* action: { ... },
|
|
21
|
+
* }"></val-action-header>
|
|
22
|
+
*/
|
|
3
23
|
export declare class ActionHeaderComponent {
|
|
4
24
|
props: ActionHeaderMetadata;
|
|
5
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionHeaderComponent, never>;
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import { DisplayMetadata } from '../../atoms/display/types';
|
|
2
|
+
import { TitleMetadata } from '../../atoms/title/types';
|
|
2
3
|
import { ButtonMetadata } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* Determines how the heading is rendered.
|
|
6
|
+
*
|
|
7
|
+
* - `'display'` (default) — uses `val-display`. Very large (40px medium, 48px large).
|
|
8
|
+
* Ideal for page-level hero headers.
|
|
9
|
+
* - `'title'` — uses `val-title`. Smaller (18px medium, 24px large). Ideal for
|
|
10
|
+
* section-level headings inside a page, so they match other `val-title`
|
|
11
|
+
* section labels on the same screen.
|
|
12
|
+
*/
|
|
13
|
+
export type ActionHeaderHeadingKind = 'display' | 'title';
|
|
14
|
+
/**
|
|
15
|
+
* Configuration for `val-action-header` — a section title with a right-aligned
|
|
16
|
+
* action button. Use `headingKind: 'title'` when this lives inside a page that
|
|
17
|
+
* already has `val-title` section labels (so sizes stay coherent).
|
|
18
|
+
*/
|
|
3
19
|
export type ActionHeaderMetadata = {
|
|
4
|
-
|
|
20
|
+
/** Heading props. Use `DisplayMetadata` shape when `headingKind === 'display'`,
|
|
21
|
+
* `TitleMetadata` shape when `headingKind === 'title'`. Both accept
|
|
22
|
+
* `size`, `color`, `content`. */
|
|
23
|
+
title: DisplayMetadata | TitleMetadata;
|
|
5
24
|
action: ButtonMetadata;
|
|
25
|
+
/** Default `'display'` for back-compat. */
|
|
26
|
+
headingKind?: ActionHeaderHeadingKind;
|
|
6
27
|
};
|
|
@@ -36,7 +36,7 @@ export declare class UsernameInputComponent implements OnInit, OnDestroy {
|
|
|
36
36
|
hasError: import("@angular/core").Signal<boolean>;
|
|
37
37
|
showStatusMessage: import("@angular/core").Signal<boolean>;
|
|
38
38
|
statusColor: import("@angular/core").Signal<"success" | "danger">;
|
|
39
|
-
statusMessage: import("@angular/core").Signal<"
|
|
39
|
+
statusMessage: import("@angular/core").Signal<"Username disponible" | "Username ya está en uso" | "">;
|
|
40
40
|
errorMessage: import("@angular/core").Signal<string>;
|
|
41
41
|
ngOnInit(): void;
|
|
42
42
|
ngOnDestroy(): void;
|
package/lib/version.d.ts
CHANGED