@litigiovirtual/ius-design-components 2.10.0 → 2.11.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litigiovirtual/ius-design-components",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=22.0.0 <23.0.0",
6
6
  "@angular/common": ">=22.0.0 <23.0.0",
@@ -4799,6 +4799,10 @@ interface SegmentedOption {
4799
4799
  * ←/→/↑/↓/Home/End (mueve foco y selección) y roving `tabindex`. Implementa
4800
4800
  * `ControlValueAccessor` (`string`) y además soporta `[(value)]` directo.
4801
4801
  *
4802
+ * Con `label` o `helpText` es un campo de formulario: etiqueta (con el punto de
4803
+ * `required`) sobre el grupo y ayuda debajo, con las clases `ius-tf__*` de los
4804
+ * demás campos. Sin ellos el host sigue siendo el grupo, como siempre.
4805
+ *
4802
4806
  * Fuente de verdad: `components/inputs/SegmentedControl/SegmentedControl.jsx` + `.d.ts`.
4803
4807
  */
4804
4808
  declare class SegmentedControlComponent implements ControlValueAccessor {
@@ -4816,6 +4820,14 @@ declare class SegmentedControlComponent implements ControlValueAccessor {
4816
4820
  ariaLabel?: string;
4817
4821
  /** `name` de los radios. */
4818
4822
  name?: string;
4823
+ /** Etiqueta de campo visible sobre el control (formularios). Sin ella, el control va sin etiqueta. */
4824
+ label?: string;
4825
+ /** Texto de ayuda bajo el control. */
4826
+ helpText?: string;
4827
+ /** Marca el campo como obligatorio (punto rojo junto al `label`). */
4828
+ required: boolean;
4829
+ /** `id` base del campo (enlaza label ↔ grupo); si se omite se genera. */
4830
+ id?: string;
4819
4831
  private readonly valueState;
4820
4832
  /** Valor seleccionado (controlado / CVA). */
4821
4833
  set value(v: string | undefined);
@@ -4827,6 +4839,16 @@ declare class SegmentedControlComponent implements ControlValueAccessor {
4827
4839
  /** Cambio de selección (original `onChange`). Habilita `[(value)]`. */
4828
4840
  readonly valueChange: EventEmitter<string>;
4829
4841
  protected readonly selected: _angular_core.Signal<string | undefined>;
4842
+ /**
4843
+ * `id` de respaldo. No puede derivarse en un inicializador de campo: esos corren antes de que Angular asigne los
4844
+ * `@Input`, y el `id` del consumidor se perdería (mismo patrón que Select).
4845
+ */
4846
+ private readonly fallbackId;
4847
+ protected get baseId(): string;
4848
+ protected get labelId(): string;
4849
+ protected get helpId(): string;
4850
+ /** Campo de formulario: el host envuelve etiqueta, grupo y ayuda; el `radiogroup` pasa al grupo interno. */
4851
+ protected get isField(): boolean;
4830
4852
  private readonly optRefs;
4831
4853
  private onChange;
4832
4854
  private onTouched;
@@ -4843,9 +4865,10 @@ declare class SegmentedControlComponent implements ControlValueAccessor {
4843
4865
  protected onOptionClick(o: SegmentedOption): void;
4844
4866
  protected onKeyDown(event: KeyboardEvent, index: number): void;
4845
4867
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlComponent, never>;
4846
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlComponent, "ius-segmented-control", never, { "options": { "alias": "options"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
4868
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlComponent, "ius-segmented-control", never, { "options": { "alias": "options"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "required": { "alias": "required"; "required": false; }; "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
4847
4869
  static ngAcceptInputType_fullWidth: unknown;
4848
4870
  static ngAcceptInputType_iconOnly: unknown;
4871
+ static ngAcceptInputType_required: unknown;
4849
4872
  static ngAcceptInputType_disabled: unknown;
4850
4873
  }
4851
4874