valtech-components 4.0.957 → 4.0.959

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.
@@ -1,5 +1,6 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { ValGroup } from '../../../services/groups/types';
1
+ import { OnChanges, OnDestroy, OnInit, EventEmitter, SimpleChanges } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { InputType } from '../../types';
3
4
  import * as i0 from "@angular/core";
4
5
  /**
5
6
  * val-group-picker — elegir el grupo dueño de un recurso (ADR-083).
@@ -9,10 +10,14 @@ import * as i0 from "@angular/core";
9
10
  * no como un `<select>` armado a mano en cada app — "una línea, una etiqueta
10
11
  * i18n" (ver ADR-083 §"Qué se construye una sola vez").
11
12
  *
13
+ * Renderiza vía `val-select-input` (el selector estándar de `val-form`) en vez
14
+ * de un `ion-select` propio — mismo look/comportamiento que cualquier otro
15
+ * campo SELECT del factory, sin reimplementar popover/i18n de cancel-ok.
16
+ *
12
17
  * Sin texto hardcodeado: los labels llegan por `@Input` (lib i18n-agnostic).
13
18
  * Cada app pone su palabra ("Equipo", "Sucursal", "Refugio").
14
19
  */
15
- export declare class GroupPickerComponent implements OnInit {
20
+ export declare class GroupPickerComponent implements OnInit, OnChanges, OnDestroy {
16
21
  label: string;
17
22
  placeholder: string;
18
23
  noGroupLabel: string;
@@ -20,9 +25,16 @@ export declare class GroupPickerComponent implements OnInit {
20
25
  disabled: boolean;
21
26
  valueChange: EventEmitter<string>;
22
27
  private readonly groupsSvc;
23
- groups: ValGroup[];
28
+ private groups;
29
+ private valueSub?;
30
+ readonly inputType = InputType.SELECT;
31
+ readonly enabledState: "ENABLED";
32
+ readonly disabledState: "DISABLED";
33
+ readonly selectOptions: import("@angular/core").Signal<import("../../types").InputOption[]>;
34
+ readonly control: FormControl<string>;
24
35
  ngOnInit(): void;
25
- onChange(v: string): void;
36
+ ngOnChanges(changes: SimpleChanges): void;
37
+ ngOnDestroy(): void;
26
38
  static ɵfac: i0.ɵɵFactoryDeclaration<GroupPickerComponent, never>;
27
39
  static ɵcmp: i0.ɵɵComponentDeclaration<GroupPickerComponent, "val-group-picker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "noGroupLabel": { "alias": "noGroupLabel"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
28
40
  }
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.957";
5
+ export declare const VERSION = "4.0.959";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.957",
3
+ "version": "4.0.959",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"