valtech-components 4.0.72 → 4.0.75

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.
Files changed (58) hide show
  1. package/esm2022/lib/components/molecules/chip-group/chip-group.component.mjs +2 -4
  2. package/esm2022/lib/components/molecules/command-display/command-display.component.mjs +2 -4
  3. package/esm2022/lib/components/molecules/comment/comment.component.mjs +2 -4
  4. package/esm2022/lib/components/molecules/content-reaction/content-reaction.component.mjs +2 -4
  5. package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +2 -4
  6. package/esm2022/lib/components/molecules/date-picker/date-picker.component.mjs +2 -4
  7. package/esm2022/lib/components/molecules/features-list/features-list.component.mjs +2 -4
  8. package/esm2022/lib/components/molecules/font-size-selector/font-size-selector.component.mjs +2 -4
  9. package/esm2022/lib/components/molecules/pagination/pagination.component.mjs +2 -4
  10. package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +2 -4
  11. package/esm2022/lib/components/molecules/permission-selector/permission-selector.component.mjs +2 -4
  12. package/esm2022/lib/components/molecules/rating/rating.component.mjs +2 -4
  13. package/esm2022/lib/components/molecules/request-form/request-form.component.mjs +229 -0
  14. package/esm2022/lib/components/molecules/request-form/types.mjs +2 -0
  15. package/esm2022/lib/components/molecules/ticket-card/ticket-card.component.mjs +2 -4
  16. package/esm2022/lib/components/organisms/about-view/about-view.component.mjs +2 -4
  17. package/esm2022/lib/components/organisms/account-view/account-view.component.mjs +2 -4
  18. package/esm2022/lib/components/organisms/api-key-create-modal/api-key-create-modal.component.mjs +3 -7
  19. package/esm2022/lib/components/organisms/api-keys-modal/api-keys-modal.component.mjs +3 -7
  20. package/esm2022/lib/components/organisms/api-keys-view/api-keys-view.component.mjs +2 -4
  21. package/esm2022/lib/components/organisms/auth-cta/auth-cta.component.mjs +2 -4
  22. package/esm2022/lib/components/organisms/create-org-modal/create-org-modal.component.mjs +2 -4
  23. package/esm2022/lib/components/organisms/delete-account-modal/delete-account-modal.component.mjs +2 -4
  24. package/esm2022/lib/components/organisms/edit-org-modal/edit-org-modal.component.mjs +2 -4
  25. package/esm2022/lib/components/organisms/field-list/field-list.component.mjs +2 -4
  26. package/esm2022/lib/components/organisms/invite-member-modal/invite-member-modal.component.mjs +2 -4
  27. package/esm2022/lib/components/organisms/member-detail-modal/member-detail-modal.component.mjs +3 -7
  28. package/esm2022/lib/components/organisms/member-import-modal/member-import-modal.component.mjs +3 -7
  29. package/esm2022/lib/components/organisms/notification-preferences-view/notification-preferences-view.component.mjs +2 -4
  30. package/esm2022/lib/components/organisms/notifications-view/notifications-view.component.mjs +2 -4
  31. package/esm2022/lib/components/organisms/org-info-sheet/org-info-sheet.component.mjs +2 -4
  32. package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +2 -4
  33. package/esm2022/lib/components/organisms/permissions-view/permissions-view.component.mjs +2 -4
  34. package/esm2022/lib/components/organisms/preferences-view/preferences-view.component.mjs +2 -4
  35. package/esm2022/lib/components/organisms/profile-view/profile-view.component.mjs +2 -4
  36. package/esm2022/lib/components/organisms/qr-scanner/qr-scanner.component.mjs +2 -4
  37. package/esm2022/lib/components/organisms/security-view/security-view.component.mjs +2 -4
  38. package/esm2022/lib/components/organisms/settings-hub/settings-hub.component.mjs +3 -7
  39. package/esm2022/lib/components/organisms/share-profile-modal/share-profile-modal.component.mjs +2 -4
  40. package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.component.mjs +2 -4
  41. package/esm2022/lib/components/organisms/transfer-ownership-modal/transfer-ownership-modal.component.mjs +3 -7
  42. package/esm2022/lib/services/i18n/i18n.service.mjs +21 -1
  43. package/esm2022/lib/version.mjs +2 -2
  44. package/esm2022/public-api.mjs +3 -1
  45. package/fesm2022/valtech-components.mjs +376 -232
  46. package/fesm2022/valtech-components.mjs.map +1 -1
  47. package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +2 -2
  48. package/lib/components/molecules/cta-card/cta-card.component.d.ts +1 -1
  49. package/lib/components/molecules/metric-card/metric-card.component.d.ts +1 -1
  50. package/lib/components/molecules/request-form/request-form.component.d.ts +28 -0
  51. package/lib/components/molecules/request-form/types.d.ts +32 -0
  52. package/lib/components/organisms/article/article.component.d.ts +5 -5
  53. package/lib/components/organisms/auth-cta/auth-cta.component.d.ts +1 -1
  54. package/lib/components/organisms/landing-steps/landing-steps.component.d.ts +1 -1
  55. package/lib/services/i18n/i18n.service.d.ts +7 -0
  56. package/lib/version.d.ts +1 -1
  57. package/package.json +1 -1
  58. package/public-api.d.ts +2 -0
@@ -39,11 +39,11 @@ export declare class RightsFooterComponent {
39
39
  /**
40
40
  * Computed helper for align prop in template.
41
41
  */
42
- propsAlign: import("@angular/core").Signal<"right" | "center" | "left">;
42
+ propsAlign: import("@angular/core").Signal<"left" | "center" | "right">;
43
43
  /**
44
44
  * Computed helper for color prop in template.
45
45
  */
46
- propsColor: import("@angular/core").Signal<"primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium" | "dark">;
46
+ propsColor: import("@angular/core").Signal<"success" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "danger" | "light" | "dark">;
47
47
  /**
48
48
  * Computed helper for withMargin prop in template.
49
49
  */
@@ -35,7 +35,7 @@ export declare class CtaCardComponent {
35
35
  /** Emitted with the token of the clicked action button */
36
36
  onAction: EventEmitter<string>;
37
37
  /** Merged configuration with defaults */
38
- config: import("@angular/core").Signal<CtaCardMetadata & Required<Pick<CtaCardMetadata, "padding" | "borderRadius" | "bordered" | "shadowed" | "align">>>;
38
+ config: import("@angular/core").Signal<CtaCardMetadata & Required<Pick<CtaCardMetadata, "borderRadius" | "bordered" | "shadowed" | "align" | "padding">>>;
39
39
  getBackground(): string;
40
40
  getColor(): string | null;
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<CtaCardComponent, never>;
@@ -28,7 +28,7 @@ export declare class MetricCardComponent {
28
28
  /** Emitted with the token of the clicked action */
29
29
  onAction: EventEmitter<string>;
30
30
  /** Merged configuration with defaults */
31
- config: import("@angular/core").Signal<MetricCardMetadata & Required<Pick<MetricCardMetadata, "padding" | "borderRadius" | "bordered" | "shadowed">>>;
31
+ config: import("@angular/core").Signal<MetricCardMetadata & Required<Pick<MetricCardMetadata, "borderRadius" | "bordered" | "shadowed" | "padding">>>;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<MetricCardComponent, never>;
33
33
  static ɵcmp: i0.ɵɵComponentDeclaration<MetricCardComponent, "val-metric-card", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
34
34
  }
@@ -0,0 +1,28 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { I18nService } from '../../../services/i18n';
3
+ import { FormMetadata, FormSubmit } from '../../types';
4
+ import { AttachmentItem } from '../../organisms/attachment-uploader/types';
5
+ import { RequestFormMetadata, RequestSubmitEvent } from './types';
6
+ import * as i0 from "@angular/core";
7
+ export declare class RequestFormComponent implements OnInit {
8
+ props: RequestFormMetadata;
9
+ onSubmit: EventEmitter<RequestSubmitEvent>;
10
+ onCancel: EventEmitter<void>;
11
+ protected i18n: I18nService;
12
+ private requestService;
13
+ private feedbackService;
14
+ formProps: FormMetadata;
15
+ isSubmitting: import("@angular/core").WritableSignal<boolean>;
16
+ isSuccess: import("@angular/core").WritableSignal<boolean>;
17
+ error: import("@angular/core").WritableSignal<string>;
18
+ private currentAttachments;
19
+ constructor();
20
+ ngOnInit(): void;
21
+ private buildFormProps;
22
+ handleFormSubmit(submitted: FormSubmit): Promise<void>;
23
+ onAttachmentsChange(items: AttachmentItem[]): void;
24
+ onCancelClick(): void;
25
+ protected t(key: string): string;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestFormComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<RequestFormComponent, "val-request-form", never, { "props": { "alias": "props"; "required": false; }; }, { "onSubmit": "onSubmit"; "onCancel": "onCancel"; }, never, never, true, never>;
28
+ }
@@ -0,0 +1,32 @@
1
+ import { AppRequest } from '../../../services/requests/types';
2
+ export interface RequestFormMetadata {
3
+ /** Request type identifier (e.g. 'support_ticket', 'feature_request'). Required. */
4
+ type: string;
5
+ /** Label for the title field */
6
+ titleLabel?: string;
7
+ /** Placeholder for the title field */
8
+ titlePlaceholder?: string;
9
+ /** Label for the description field */
10
+ descriptionLabel?: string;
11
+ /** Placeholder for the description field */
12
+ descriptionPlaceholder?: string;
13
+ /** Submit button text */
14
+ submitButtonText?: string;
15
+ /** Cancel button text — if omitted, no cancel button is shown */
16
+ cancelButtonText?: string;
17
+ /** Show attachment uploader (default: true) */
18
+ showAttachments?: boolean;
19
+ /** Custom success message — overrides i18n default */
20
+ successMessage?: string;
21
+ /** Compact mode (less spacing) */
22
+ compact?: boolean;
23
+ /** Additional CSS class for the wrapper */
24
+ cssClass?: string;
25
+ }
26
+ export interface RequestSubmitEvent {
27
+ requestId: string;
28
+ request: AppRequest;
29
+ type: string;
30
+ title: string;
31
+ attachmentUrls?: string[];
32
+ }
@@ -57,7 +57,7 @@ export declare class ArticleComponent implements OnInit {
57
57
  linkConfig?: import("valtech-components").LinkProcessorConfig;
58
58
  allowPartialBold?: boolean;
59
59
  authorColor?: import("@ionic/core").Color;
60
- alignment?: "right" | "center" | "left";
60
+ alignment?: "left" | "center" | "right";
61
61
  showQuoteMark?: boolean;
62
62
  };
63
63
  getHighlightTextProps(element: ArticleElement): {
@@ -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?: "block" | "full";
79
+ expand?: "full" | "block";
80
80
  link?: string;
81
81
  href?: string;
82
82
  routerLink?: string | any[];
@@ -91,9 +91,9 @@ export declare class ArticleComponent implements OnInit {
91
91
  contentInterpolation?: Record<string, string | number>;
92
92
  icon?: import("valtech-components").IconMetada;
93
93
  shape?: "round";
94
- size?: "small" | "default" | "large";
95
- fill?: "solid" | "clear" | "outline" | "default";
96
- type: "button" | "submit" | "reset";
94
+ size?: "default" | "small" | "large";
95
+ fill?: "default" | "clear" | "outline" | "solid";
96
+ type: "reset" | "submit" | "button";
97
97
  token?: string;
98
98
  ref?: any;
99
99
  handler?: (value: any) => any;
@@ -35,7 +35,7 @@ export declare class AuthCtaComponent {
35
35
  onRegister: EventEmitter<void>;
36
36
  constructor();
37
37
  /** Merged configuration with defaults */
38
- config: import("@angular/core").Signal<AuthCtaMetadata & Required<Pick<AuthCtaMetadata, "padding" | "borderRadius" | "align">>>;
38
+ config: import("@angular/core").Signal<AuthCtaMetadata & Required<Pick<AuthCtaMetadata, "borderRadius" | "align" | "padding">>>;
39
39
  loginLabel: import("@angular/core").Signal<string>;
40
40
  registerLabel: import("@angular/core").Signal<string>;
41
41
  topLogoProps: import("@angular/core").Signal<{
@@ -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<3 | 2 | 4>;
7
+ readonly cols: import("@angular/core").Signal<2 | 3 | 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>;
@@ -102,6 +102,13 @@ export declare class I18nService {
102
102
  * });
103
103
  */
104
104
  registerContent(namespace: string, content: LanguagesContent): void;
105
+ /**
106
+ * Registra defaults para un namespace, mezclando solo las keys ausentes por idioma.
107
+ * A diferencia de `registerContent`, no sobreescribe keys que el consumer ya registró.
108
+ * Úsalo en componentes de la lib para que sus defaults funcionen incluso cuando el
109
+ * consumer registró el namespace de forma parcial.
110
+ */
111
+ registerDefaults(namespace: string, defaults: LanguagesContent): void;
105
112
  /**
106
113
  * Registra múltiples namespaces de una vez
107
114
  *
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 = "4.0.72";
5
+ export declare const VERSION = "4.0.75";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.72",
3
+ "version": "4.0.75",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
package/public-api.d.ts CHANGED
@@ -392,6 +392,8 @@ export * from './lib/components/organisms/whatsapp-fab/whatsapp-fab.component';
392
392
  export * from './lib/services/donation';
393
393
  export * from './lib/components/molecules/feedback-form/feedback-form.component';
394
394
  export * from './lib/components/molecules/feedback-form/types';
395
+ export * from './lib/components/molecules/request-form/request-form.component';
396
+ export * from './lib/components/molecules/request-form/types';
395
397
  export * from './lib/components/molecules/content-reaction/content-reaction.component';
396
398
  export * from './lib/components/molecules/content-reaction/types';
397
399
  export * from './lib/services/splash-screen';