valtech-components 2.0.787 → 2.0.794

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" | "danger" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "light" | "dark">;
46
+ propsColor: import("@angular/core").Signal<"medium" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "dark">;
47
47
  /**
48
48
  * Computed helper for withMargin prop in template.
49
49
  */
@@ -33,6 +33,9 @@ export declare class SearchSelectorComponent implements OnInit, OnChanges {
33
33
  breakpoints: number[];
34
34
  initialBreakpoint: number;
35
35
  };
36
+ customPopoverOptions: {
37
+ cssClass: string;
38
+ };
36
39
  cancelText: string;
37
40
  okText: string;
38
41
  ngOnInit(): void;
@@ -43,6 +46,12 @@ export declare class SearchSelectorComponent implements OnInit, OnChanges {
43
46
  */
44
47
  private resolveProps;
45
48
  private setupComponent;
49
+ /**
50
+ * Busca un key en `_global` primero, luego en `Common`, finalmente cae al
51
+ * default hardcoded. Útil para textos cross-cutting (cancel/ok/close/etc.)
52
+ * sin obligar a cada app a duplicarlos en cada namespace.
53
+ */
54
+ private resolveI18n;
46
55
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchSelectorComponent, never>;
47
56
  static ɵcmp: i0.ɵɵComponentDeclaration<SearchSelectorComponent, "val-select-input", never, { "preset": { "alias": "preset"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
48
57
  }
@@ -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<"Username disponible" | "Username ya está en uso" | "">;
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;
@@ -1,5 +1,6 @@
1
1
  import { DoCheck, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
+ import { TextareaInputMetadata } from '../../molecules/textarea-input/types';
3
4
  import { UsernameInputMetadata } from '../../molecules/username-input/types';
4
5
  import { ButtonMetadata, FormMetadata, FormSubmit, InputMetadata, InputType } from '../../types';
5
6
  import * as i0 from "@angular/core";
@@ -19,6 +20,7 @@ export declare class FormComponent implements OnInit, OnChanges, DoCheck {
19
20
  private actionsCache;
20
21
  private fieldPropMemo;
21
22
  private usernamePropMemo;
23
+ private textareaPropMemo;
22
24
  private previousState;
23
25
  constructor(fb: FormBuilder, elementRef: ElementRef);
24
26
  ngOnInit(): void;
@@ -44,6 +46,11 @@ export declare class FormComponent implements OnInit, OnChanges, DoCheck {
44
46
  * custom usando type=TEXT si necesita otra fuente de truth.
45
47
  */
46
48
  getUsernameProp(field: InputMetadata): UsernameInputMetadata;
49
+ /**
50
+ * Adapter — convierte un `InputMetadata` (con type=TEXTAREA) a `TextareaInputMetadata`.
51
+ * Defaults sensatos: autoGrow + counter habilitado, 4-12 rows.
52
+ */
53
+ getTextareaProp(field: InputMetadata): TextareaInputMetadata;
47
54
  get isAtEndOfForm(): boolean;
48
55
  get Form(): FormGroup;
49
56
  get FormState(): {
@@ -142,6 +142,8 @@ export type InputMetadata = {
142
142
  cancelText?: string;
143
143
  /** Custom OK button text for select modal */
144
144
  okText?: string;
145
+ /** Interface del ion-select (default: 'popover'). 'modal' para listas largas. */
146
+ selectInterface?: 'popover' | 'modal' | 'action-sheet' | 'alert';
145
147
  /** Position of label for checkbox ('start' | 'end') */
146
148
  labelPlacement?: 'start' | 'end';
147
149
  /** Number of digits in PIN (default: 5, only for PIN_CODE type) */
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.787";
5
+ export declare const VERSION = "2.0.794";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.787",
3
+ "version": "2.0.794",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
@@ -127,6 +127,8 @@ ion-select {
127
127
 
128
128
  &.select-expanded {
129
129
  border: pxToRem(2) solid var(--ion-color-primary) !important;
130
+ // Pill rounded para coherencia con val-text-input + val-phone-input.
131
+ border-radius: pxToRem($border-radius-large) !important;
130
132
  }
131
133
  }
132
134