valtech-components 2.0.972 → 2.0.974

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.
@@ -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<"success" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "danger" | "light" | "dark">;
46
+ propsColor: import("@angular/core").Signal<"dark" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium">;
47
47
  /**
48
48
  * Computed helper for withMargin prop in template.
49
49
  */
@@ -11,7 +11,7 @@ export declare class TextComponent {
11
11
  */
12
12
  displayContent: import("@angular/core").Signal<string>;
13
13
  propsColor: import("@angular/core").Signal<import("@ionic/core").Color>;
14
- propsSize: import("@angular/core").Signal<"small" | "medium" | "large" | "xlarge">;
14
+ propsSize: import("@angular/core").Signal<"medium" | "small" | "large" | "xlarge">;
15
15
  propsBold: import("@angular/core").Signal<boolean>;
16
16
  propsProcessLinks: import("@angular/core").Signal<boolean>;
17
17
  propsAllowPartialBold: import("@angular/core").Signal<boolean>;
@@ -38,7 +38,7 @@ export declare class UserAvatarComponent {
38
38
  readonly imageUrl: import("@angular/core").Signal<string>;
39
39
  /** Iniciales — 1-2 chars derivados de name (preferred) o email prefix. */
40
40
  readonly initials: import("@angular/core").Signal<string>;
41
- readonly sizeClass: import("@angular/core").Signal<"small" | "medium" | "large" | "xlarge" | "xsmall">;
41
+ readonly sizeClass: import("@angular/core").Signal<"medium" | "small" | "large" | "xlarge" | "xsmall">;
42
42
  readonly shapeClass: import("@angular/core").Signal<"circle" | "square">;
43
43
  /** Background — explicito o derivado deterministicamente del user. */
44
44
  readonly bgColor: import("@angular/core").Signal<string>;
@@ -41,7 +41,7 @@ export declare class FeaturesListComponent {
41
41
  iconColor: string;
42
42
  iconSize: number;
43
43
  mode: "horizontal" | "vertical";
44
- gap: "small" | "medium" | "large";
44
+ gap: "medium" | "small" | "large";
45
45
  alignment: "center" | "start";
46
46
  imageShape: "circle" | "square";
47
47
  maxVisible: number;
@@ -45,7 +45,7 @@ export declare class ArticleComponent implements OnInit {
45
45
  getVideoElement(element: ArticleElement): ArticleVideoElement;
46
46
  getCustomElement(element: ArticleElement): ArticleCustomElement;
47
47
  getQuoteTextProps(element: ArticleElement): {
48
- size: "small" | "medium" | "large" | "xlarge";
48
+ size: "medium" | "small" | "large" | "xlarge";
49
49
  color: import("@ionic/core").Color;
50
50
  content?: string;
51
51
  bold: boolean;
@@ -61,7 +61,7 @@ export declare class ArticleComponent implements OnInit {
61
61
  showQuoteMark?: boolean;
62
62
  };
63
63
  getHighlightTextProps(element: ArticleElement): {
64
- size: "small" | "medium" | "large" | "xlarge";
64
+ size: "medium" | "small" | "large" | "xlarge";
65
65
  color: import("@ionic/core").Color;
66
66
  content?: string;
67
67
  bold: boolean;
@@ -76,7 +76,7 @@ export declare class ArticleComponent implements OnInit {
76
76
  getHighlightColor(element: ArticleElement): string;
77
77
  getButtonProps(element: ArticleElement): {
78
78
  actionType?: import("valtech-components").ActionType;
79
- expand?: "full" | "block";
79
+ expand?: "block" | "full";
80
80
  link?: string;
81
81
  href?: string;
82
82
  target?: "_blank" | "_self" | "_parent" | "_top";
@@ -94,8 +94,8 @@ export declare class ArticleComponent implements OnInit {
94
94
  * @type {ArticleMetadata}
95
95
  */
96
96
  size?: "default" | "small" | "large";
97
- fill?: "default" | "clear" | "outline" | "solid";
98
- type: "reset" | "submit" | "button";
97
+ fill?: "default" | "solid" | "clear" | "outline";
98
+ type: "button" | "submit" | "reset";
99
99
  token?: string;
100
100
  ref?: any;
101
101
  handler?: (value: any) => any;
@@ -4,7 +4,7 @@ export declare class LandingStepsComponent {
4
4
  private readonly props_;
5
5
  set props(v: LandingStepsMetadata);
6
6
  readonly p: import("@angular/core").Signal<LandingStepsMetadata>;
7
- readonly cols: import("@angular/core").Signal<2 | 3 | 4>;
7
+ readonly cols: import("@angular/core").Signal<3 | 2 | 4>;
8
8
  readonly accentColor: import("@angular/core").Signal<string>;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<LandingStepsComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<LandingStepsComponent, "val-landing-steps", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
@@ -1,4 +1,6 @@
1
1
  import { AvatarUploadError, AvatarUploadMetadata, AvatarUploadResult } from '../avatar-upload/types';
2
+ import { ShareProfileModalMetadata } from '../share-profile-modal/types';
3
+ import { CtaCardMetadata } from '../../molecules/cta-card/types';
2
4
  import { EmptyStateMetadata } from '../../molecules/empty-state/types';
3
5
  import { FormMetadata, FormSubmit } from '../../types';
4
6
  import { GetProfileResponse } from '../../../services/auth/types';
@@ -45,7 +47,7 @@ export declare class ProfileViewComponent {
45
47
  */
46
48
  config?: ProfileViewConfig;
47
49
  /** Config mergeada con defaults. @Input gana sobre route data. */
48
- readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<ProfileViewConfig, "onSaved" | "onAvatarUploaded">> & Pick<ProfileViewConfig, "onSaved" | "onAvatarUploaded">>;
50
+ readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<ProfileViewConfig, "onSaved" | "onAvatarUploaded" | "profileBaseUrl">> & Pick<ProfileViewConfig, "onSaved" | "onAvatarUploaded" | "profileBaseUrl">>;
49
51
  /** Namespace i18n resuelto (capturado una vez para llamadas no-reactivas). */
50
52
  private get ns();
51
53
  /**
@@ -58,6 +60,9 @@ export declare class ProfileViewComponent {
58
60
  readonly loading: import("@angular/core").WritableSignal<boolean>;
59
61
  readonly saving: import("@angular/core").WritableSignal<boolean>;
60
62
  readonly loadError: import("@angular/core").WritableSignal<unknown>;
63
+ readonly shareOpen: import("@angular/core").WritableSignal<boolean>;
64
+ readonly shareCta: import("@angular/core").Signal<CtaCardMetadata>;
65
+ readonly shareModal: import("@angular/core").Signal<ShareProfileModalMetadata>;
61
66
  private readonly _userId;
62
67
  readonly errorState: import("@angular/core").Signal<EmptyStateMetadata>;
63
68
  readonly avatarProps: import("@angular/core").Signal<AvatarUploadMetadata>;
@@ -25,6 +25,18 @@ export interface ProfileViewConfig {
25
25
  * Default `'Settings.Profile'`.
26
26
  */
27
27
  i18nNamespace?: string;
28
+ /**
29
+ * Muestra la CTA de compartir perfil (QR modal). Requiere que el user tenga
30
+ * handle configurado — si no, la sección no aparece aunque esté en `true`.
31
+ * Default `true`.
32
+ */
33
+ showShareCta?: boolean;
34
+ /**
35
+ * URL base de la app para construir el enlace del perfil público.
36
+ * El enlace final es `${profileBaseUrl}/u/${handle}`.
37
+ * Ej: `'https://app.myvaltech.com'`.
38
+ */
39
+ profileBaseUrl?: string;
28
40
  /** Callback tras un guardado de perfil exitoso. */
29
41
  onSaved?: (profile: GetProfileResponse) => void;
30
42
  /** Callback tras subir/actualizar el avatar exitosamente. */
@@ -37,7 +37,7 @@ export declare class ShareProfileModalComponent {
37
37
  readonly qr: import("@angular/core").Signal<QrResult>;
38
38
  private readonly _qrError;
39
39
  readonly qrError: import("@angular/core").Signal<boolean>;
40
- config: import("@angular/core").Signal<ShareProfileModalMetadata & Required<Pick<ShareProfileModalMetadata, "borderRadius" | "platforms" | "qrTheme" | "qrSize">>>;
40
+ config: import("@angular/core").Signal<ShareProfileModalMetadata & Required<Pick<ShareProfileModalMetadata, "platforms" | "qrTheme" | "qrSize" | "borderRadius">>>;
41
41
  displayName: import("@angular/core").Signal<string>;
42
42
  caption: import("@angular/core").Signal<string>;
43
43
  constructor();
@@ -20,6 +20,8 @@ export interface ShareProfileModalMetadata {
20
20
  avatarUrl?: string;
21
21
  /** Email — used for the avatar initials/color when no avatarUrl */
22
22
  email?: string;
23
+ /** Handle shown as @handle below the name */
24
+ handle?: string;
23
25
  /** Modal title (val-display). Default: `name` */
24
26
  title?: string;
25
27
  /** Caption under the QR. Default: i18n `ShareProfileModal.caption` */
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "2.0.972";
5
+ export declare const VERSION = "2.0.974";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.972",
3
+ "version": "2.0.974",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"