valtech-components 4.0.1022 → 4.0.1024
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/date-input/date-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/hint/hint.component.mjs +3 -3
- package/esm2022/lib/components/molecules/media-overlay-card/media-overlay-card.component.mjs +145 -0
- package/esm2022/lib/components/molecules/media-overlay-card/types.mjs +15 -0
- package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/select-input/select-input.component.mjs +20 -5
- package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +3 -3
- package/esm2022/lib/components/organisms/change-email-modal/change-email-modal.component.mjs +6 -8
- package/esm2022/lib/components/organisms/change-password-modal/change-password-modal.component.mjs +5 -4
- package/esm2022/lib/components/organisms/delete-account-modal/delete-account-modal.component.mjs +9 -28
- package/esm2022/lib/components/organisms/form/form.component.mjs +21 -9
- package/esm2022/lib/components/organisms/login-attempt-modal/login-attempt-modal.component.mjs +42 -59
- package/esm2022/lib/components/organisms/mfa-modal/mfa-modal.component.mjs +6 -8
- package/esm2022/lib/components/organisms/profile-modal/profile-modal.component.mjs +9 -27
- package/esm2022/lib/components/organisms/session-list-modal/session-list-modal.component.mjs +9 -34
- package/esm2022/lib/components/types.mjs +1 -1
- package/esm2022/lib/services/i18n/default-content.mjs +11 -1
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components.mjs +285 -177
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/media-overlay-card/media-overlay-card.component.d.ts +15 -0
- package/lib/components/molecules/media-overlay-card/types.d.ts +55 -0
- package/lib/components/molecules/select-input/select-input.component.d.ts +1 -0
- package/lib/components/organisms/login-attempt-modal/login-attempt-modal.component.d.ts +6 -3
- package/lib/components/organisms/profile-modal/profile-modal.component.d.ts +1 -1
- package/lib/components/types.d.ts +4 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MediaOverlayCardMetadata } from './types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* val-media-overlay-card
|
|
5
|
+
*
|
|
6
|
+
* Presentational card with a large image and a solid body that overlaps it.
|
|
7
|
+
* Pass already-resolved strings from the host app to keep i18n ownership
|
|
8
|
+
* outside the library.
|
|
9
|
+
*/
|
|
10
|
+
export declare class MediaOverlayCardComponent {
|
|
11
|
+
readonly props: import("@angular/core").InputSignal<Partial<MediaOverlayCardMetadata>>;
|
|
12
|
+
readonly config: import("@angular/core").Signal<MediaOverlayCardMetadata & Required<Pick<MediaOverlayCardMetadata, "bordered" | "imageAspectRatio" | "bodyWidth" | "overlap" | "frameRadius" | "imageRadius" | "bodyRadius" | "bodyAlign" | "shadowed">>>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaOverlayCardComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MediaOverlayCardComponent, "val-media-overlay-card", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text chip shown in val-media-overlay-card.
|
|
3
|
+
*/
|
|
4
|
+
export interface MediaOverlayCardChip {
|
|
5
|
+
/** Stable identifier for tracking and analytics */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Visible chip label */
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Metadata for val-media-overlay-card.
|
|
12
|
+
*
|
|
13
|
+
* Presentational card for landing pages and onboarding previews. It combines a
|
|
14
|
+
* wide media area with a solid body surface that overlaps the image.
|
|
15
|
+
*/
|
|
16
|
+
export interface MediaOverlayCardMetadata {
|
|
17
|
+
/** Image URL */
|
|
18
|
+
image?: string;
|
|
19
|
+
/** Alternative text for the image. Empty string means decorative. */
|
|
20
|
+
imageAlt?: string;
|
|
21
|
+
/** Aspect ratio for the image area. Default: '16 / 9'. */
|
|
22
|
+
imageAspectRatio?: string;
|
|
23
|
+
/** Header label shown in the overlapping body */
|
|
24
|
+
headerLabel?: string;
|
|
25
|
+
/** Status label shown opposite the header */
|
|
26
|
+
statusLabel?: string;
|
|
27
|
+
/** Compact chips below the header */
|
|
28
|
+
chips?: MediaOverlayCardChip[];
|
|
29
|
+
/** Main title in the highlighted body block */
|
|
30
|
+
title: string;
|
|
31
|
+
/** Supporting text in the highlighted body block */
|
|
32
|
+
description?: string;
|
|
33
|
+
/** Chips shown at the bottom of the body */
|
|
34
|
+
tags?: MediaOverlayCardChip[];
|
|
35
|
+
/** Body width. Default: 'min(100%, 430px)'. */
|
|
36
|
+
bodyWidth?: string;
|
|
37
|
+
/** Overlap amount between image and body. Default: '-5.75rem'. */
|
|
38
|
+
overlap?: string;
|
|
39
|
+
/** Outer frame radius. Default: 'var(--val-radius-xl, 36px)'. */
|
|
40
|
+
frameRadius?: string;
|
|
41
|
+
/** Image radius. Default: 'var(--val-radius-lg, 28px)'. */
|
|
42
|
+
imageRadius?: string;
|
|
43
|
+
/** Body radius. Default: 'var(--val-radius-lg, 28px)'. */
|
|
44
|
+
bodyRadius?: string;
|
|
45
|
+
/** Body horizontal alignment. Default: 'end'. */
|
|
46
|
+
bodyAlign?: 'start' | 'center' | 'end';
|
|
47
|
+
/** Show frame border. Default: true. */
|
|
48
|
+
bordered?: boolean;
|
|
49
|
+
/** Show frame shadow. Default: true. */
|
|
50
|
+
shadowed?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Default values for MediaOverlayCardMetadata.
|
|
54
|
+
*/
|
|
55
|
+
export declare const MEDIA_OVERLAY_CARD_DEFAULTS: Required<Pick<MediaOverlayCardMetadata, 'imageAspectRatio' | 'bodyWidth' | 'overlap' | 'frameRadius' | 'imageRadius' | 'bodyRadius' | 'bodyAlign' | 'bordered' | 'shadowed'>>;
|
|
@@ -46,6 +46,7 @@ export declare class SearchSelectorComponent implements OnInit, OnChanges {
|
|
|
46
46
|
*/
|
|
47
47
|
private resolveProps;
|
|
48
48
|
private setupComponent;
|
|
49
|
+
iconMask(src: string): string;
|
|
49
50
|
/**
|
|
50
51
|
* Busca un key en `_global` primero, luego en `Common`, finalmente cae al
|
|
51
52
|
* default hardcoded. Útil para textos cross-cutting (cancel/ok/close/etc.)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ModalLayoutActionEvent } from '../../molecules/modal-layout/types';
|
|
1
2
|
import { ButtonMetadata } from '../../types';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
@@ -50,9 +51,11 @@ export declare class LoginAttemptModalComponent {
|
|
|
50
51
|
/** "No fui yo" — ejecuta el bloqueo y pasa a estado done. */
|
|
51
52
|
confirmBlock(): Promise<void>;
|
|
52
53
|
close(): void;
|
|
53
|
-
|
|
54
|
-
get
|
|
55
|
-
get
|
|
54
|
+
handleAction(event: ModalLayoutActionEvent): void;
|
|
55
|
+
get actions(): ButtonMetadata[];
|
|
56
|
+
get mineBtn(): ButtonMetadata;
|
|
57
|
+
get blockBtn(): ButtonMetadata;
|
|
58
|
+
get closeBtn(): ButtonMetadata;
|
|
56
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoginAttemptModalComponent, never>;
|
|
57
60
|
static ɵcmp: i0.ɵɵComponentDeclaration<LoginAttemptModalComponent, "val-login-attempt-modal", never, { "title": { "alias": "title"; "required": false; }; "body": { "alias": "body"; "required": false; }; "deviceLabel": { "alias": "deviceLabel"; "required": false; }; "metaLabel": { "alias": "metaLabel"; "required": false; }; "doneLabel": { "alias": "doneLabel"; "required": false; }; "mineLabel": { "alias": "mineLabel"; "required": false; }; "blockLabel": { "alias": "blockLabel"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "onBlock": { "alias": "onBlock"; "required": false; }; "_modalRef": { "alias": "_modalRef"; "required": false; }; }, {}, never, never, true, never>;
|
|
58
61
|
}
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* perfil desde el avatar del header. Se abre vía `ModalService.open({ component })`
|
|
6
6
|
* (recibe `_modalRef` por componentProps) o lo despacha `HeaderActionsService`.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* Usa `val-modal-layout` como shell estándar de modales.
|
|
9
9
|
*/
|
|
10
10
|
export declare class ProfileModalComponent {
|
|
11
11
|
private readonly i18n;
|
|
@@ -86,7 +86,10 @@ export type InputOption = {
|
|
|
86
86
|
name: string;
|
|
87
87
|
/** Optional icon shown next to the option label */
|
|
88
88
|
icon?: {
|
|
89
|
-
name
|
|
89
|
+
/** Ionicon name. */
|
|
90
|
+
name?: string;
|
|
91
|
+
/** Image/SVG asset URL. Takes precedence over name when present. */
|
|
92
|
+
src?: string;
|
|
90
93
|
color?: string;
|
|
91
94
|
};
|
|
92
95
|
/** Whether the option is selected by default */
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -201,6 +201,8 @@ export * from './lib/components/molecules/refresher/refresher.component';
|
|
|
201
201
|
export * from './lib/components/molecules/refresher/types';
|
|
202
202
|
export * from './lib/components/molecules/update-banner/update-banner.component';
|
|
203
203
|
export * from './lib/components/molecules/update-banner/types';
|
|
204
|
+
export * from './lib/components/molecules/media-overlay-card/media-overlay-card.component';
|
|
205
|
+
export * from './lib/components/molecules/media-overlay-card/types';
|
|
204
206
|
export * from './lib/components/molecules/action-card/action-card.component';
|
|
205
207
|
export * from './lib/components/molecules/action-card/types';
|
|
206
208
|
export * from './lib/components/molecules/media-object/media-object.component';
|