valtech-components 2.0.899 → 2.0.901

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<"medium" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "dark">;
46
+ propsColor: import("@angular/core").Signal<"success" | "light" | "dark" | "primary" | "secondary" | "tertiary" | "warning" | "danger" | "medium">;
47
47
  /**
48
48
  * Computed helper for withMargin prop in template.
49
49
  */
@@ -27,20 +27,21 @@ export declare class ContentReactionComponent implements OnInit, OnChanges {
27
27
  state: import("@angular/core").WritableSignal<ContentReactionState>;
28
28
  readonly defaultEmojis: [string, string, string];
29
29
  readonly defaultLabels: [string, string, string];
30
- readonly reactionValues: ReactionValue[];
31
30
  resolvedProps: import("@angular/core").Signal<{
32
31
  entityRef: import("../../../services/feedback/types").EntityRef;
33
32
  question: string;
34
33
  showComment: boolean;
34
+ commentOnValues: ReactionValue[];
35
35
  commentPlaceholder: string;
36
36
  maxCommentLength: number;
37
- emojis: [string, string, string];
38
- emojiLabels: [string, string, string];
37
+ emojis: [string, string, string] | [string, string];
38
+ emojiLabels: [string, string, string] | [string, string];
39
39
  showThankYou: boolean;
40
40
  thankYouMessage: string;
41
41
  disabled: boolean;
42
42
  readonly: boolean;
43
43
  }>;
44
+ readonly activeReactionValues: import("@angular/core").Signal<ReactionValue[]>;
44
45
  showCommentField: import("@angular/core").Signal<boolean>;
45
46
  canSubmit: import("@angular/core").Signal<boolean>;
46
47
  ngOnInit(): void;
@@ -13,10 +13,16 @@ export interface ContentReactionMetadata {
13
13
  commentPlaceholder?: string;
14
14
  /** Máximo de caracteres del comentario (default: 500) */
15
15
  maxCommentLength?: number;
16
- /** Emojis personalizados [negative, neutral, positive] */
17
- emojis?: [string, string, string];
16
+ /** Emojis personalizados [negative, neutral, positive] | [negative, positive] */
17
+ emojis?: [string, string, string] | [string, string];
18
18
  /** Labels para emojis (accesibilidad) */
19
- emojiLabels?: [string, string, string];
19
+ emojiLabels?: [string, string, string] | [string, string];
20
+ /**
21
+ * Valores de reacción para los que mostrar el campo de comentario.
22
+ * Si se omite, se usa `showComment` como antes (default: todos).
23
+ * Ejemplo: `['negative']` muestra el comment solo cuando el usuario elige negativo.
24
+ */
25
+ commentOnValues?: ReactionValue[];
20
26
  /** Mostrar toast de agradecimiento (default: true) */
21
27
  showThankYou?: boolean;
22
28
  /** Mensaje de agradecimiento personalizado */
@@ -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";
@@ -90,9 +90,9 @@ export declare class ArticleComponent implements OnInit {
90
90
  contentInterpolation?: Record<string, string | number>;
91
91
  icon?: import("valtech-components").IconMetada;
92
92
  shape?: "round";
93
- size?: "small" | "large" | "default";
94
- fill?: "default" | "clear" | "outline" | "solid";
95
- type: "button" | "submit" | "reset";
93
+ size?: "default" | "small" | "large";
94
+ fill?: "default" | "outline" | "solid" | "clear";
95
+ type: "submit" | "button" | "reset";
96
96
  token?: string;
97
97
  ref?: any;
98
98
  handler?: (value: any) => any;
@@ -72,10 +72,10 @@ export declare class ToolbarComponent implements OnInit {
72
72
  };
73
73
  showFlags?: boolean;
74
74
  color: import("@ionic/core").Color;
75
- size?: "small" | "large" | "default";
76
- fill?: "default" | "clear" | "outline" | "solid";
75
+ size?: "default" | "small" | "large";
76
+ fill?: "default" | "outline" | "solid" | "clear";
77
77
  shape?: "round";
78
- expand?: "full" | "block";
78
+ expand?: "block" | "full";
79
79
  disabled?: boolean;
80
80
  customLanguageNames?: Record<string, string>;
81
81
  forceReload?: boolean;
@@ -49,7 +49,7 @@ export declare class AuthService implements OnDestroy {
49
49
  private confirmationService;
50
50
  private refreshTimerId;
51
51
  private syncSubscription;
52
- constructor(config: ValtechAuthConfig, http: HttpClient, router: Router, stateService: AuthStateService, tokenService: TokenService, storageService: AuthStorageService, syncService: AuthSyncService, firebaseService: FirebaseService, oauthService: OAuthService, messagingService: MessagingService | null, i18nService: I18nService | null, confirmationService: ConfirmationDialogService);
52
+ constructor(config: ValtechAuthConfig | null, http: HttpClient, router: Router, stateService: AuthStateService, tokenService: TokenService, storageService: AuthStorageService, syncService: AuthSyncService, firebaseService: FirebaseService, oauthService: OAuthService, messagingService: MessagingService | null, i18nService: I18nService | null, confirmationService: ConfirmationDialogService);
53
53
  /** Estado completo de autenticación */
54
54
  readonly state: import("@angular/core").Signal<import("./types").AuthState>;
55
55
  /** Usuario está autenticado */
@@ -459,6 +459,6 @@ export declare class AuthService implements OnDestroy {
459
459
  * Detecta información de la plataforma del dispositivo.
460
460
  */
461
461
  private detectPlatformInfo;
462
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
462
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, [{ optional: true; }, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
463
463
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
464
464
  }
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.899";
5
+ export declare const VERSION = "2.0.901";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.899",
3
+ "version": "2.0.901",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"