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.
- package/esm2022/lib/components/molecules/group-picker/group-picker.component.mjs +57 -42
- package/esm2022/lib/components/molecules/metadata-list/metadata-list.component.mjs +17 -25
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +69 -64
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/group-picker/group-picker.component.d.ts +17 -5
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
|
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
|
-
|
|
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