valtech-components 4.0.954 → 4.0.956
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/select-search/select-search-picker-modal.component.mjs +145 -0
- package/esm2022/lib/components/molecules/select-search/select-search.component.mjs +41 -156
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/valtech-components.mjs +271 -249
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +1 -1
- package/lib/components/atoms/text/text.component.d.ts +1 -1
- package/lib/components/atoms/user-avatar/user-avatar.component.d.ts +1 -1
- package/lib/components/molecules/features-list/features-list.component.d.ts +1 -1
- package/lib/components/molecules/phone-display/phone-display.component.d.ts +1 -1
- package/lib/components/molecules/select-search/select-search-picker-modal.component.d.ts +44 -0
- package/lib/components/molecules/select-search/select-search.component.d.ts +9 -20
- package/lib/components/organisms/article/article.component.d.ts +3 -3
- package/lib/components/organisms/landing-steps/landing-steps.component.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -57,7 +57,7 @@ export declare class RightsFooterComponent {
|
|
|
57
57
|
/**
|
|
58
58
|
* Computed helper for color prop in template.
|
|
59
59
|
*/
|
|
60
|
-
propsColor: import("@angular/core").Signal<"
|
|
60
|
+
propsColor: import("@angular/core").Signal<"primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium" | "dark">;
|
|
61
61
|
/**
|
|
62
62
|
* Computed helper for withMargin prop in template.
|
|
63
63
|
*/
|
|
@@ -11,7 +11,7 @@ export declare class TextComponent {
|
|
|
11
11
|
*/
|
|
12
12
|
displayContent: import("@angular/core").Signal<string>;
|
|
13
13
|
propsColor: import("@angular/core").Signal<import("@ionic/core").Color>;
|
|
14
|
-
propsSize: import("@angular/core").Signal<"
|
|
14
|
+
propsSize: import("@angular/core").Signal<"medium" | "small" | "large" | "xlarge">;
|
|
15
15
|
propsBold: import("@angular/core").Signal<boolean>;
|
|
16
16
|
propsProcessLinks: import("@angular/core").Signal<boolean>;
|
|
17
17
|
propsAllowPartialBold: import("@angular/core").Signal<boolean>;
|
|
@@ -38,7 +38,7 @@ export declare class UserAvatarComponent {
|
|
|
38
38
|
readonly imageUrl: import("@angular/core").Signal<string>;
|
|
39
39
|
/** Iniciales — 1-2 chars derivados de name (preferred) o email prefix. */
|
|
40
40
|
readonly initials: import("@angular/core").Signal<string>;
|
|
41
|
-
readonly sizeClass: import("@angular/core").Signal<"
|
|
41
|
+
readonly sizeClass: import("@angular/core").Signal<"medium" | "small" | "large" | "xlarge" | "xsmall">;
|
|
42
42
|
readonly shapeClass: import("@angular/core").Signal<"circle" | "square">;
|
|
43
43
|
/** Background — explicito o derivado deterministicamente del user. */
|
|
44
44
|
readonly bgColor: import("@angular/core").Signal<string>;
|
|
@@ -41,7 +41,7 @@ export declare class FeaturesListComponent {
|
|
|
41
41
|
iconColor: string;
|
|
42
42
|
iconSize: number;
|
|
43
43
|
mode: "horizontal" | "vertical";
|
|
44
|
-
gap: "
|
|
44
|
+
gap: "medium" | "small" | "large";
|
|
45
45
|
alignment: "center" | "start";
|
|
46
46
|
imageShape: "circle" | "square";
|
|
47
47
|
maxVisible: number;
|
|
@@ -6,7 +6,7 @@ export declare class PhoneDisplayComponent {
|
|
|
6
6
|
props: PhoneDisplayMetadata;
|
|
7
7
|
onClick: EventEmitter<string>;
|
|
8
8
|
protected rawPhone: import("@angular/core").Signal<string>;
|
|
9
|
-
protected mode: import("@angular/core").Signal<"
|
|
9
|
+
protected mode: import("@angular/core").Signal<"button" | "link" | "text">;
|
|
10
10
|
protected formatted: import("@angular/core").Signal<string>;
|
|
11
11
|
protected href: import("@angular/core").Signal<string>;
|
|
12
12
|
protected ariaLabel: import("@angular/core").Signal<string>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { I18nService } from '../../../services/i18n';
|
|
3
|
+
import { ButtonMetadata } from '../../types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface SelectSearchPickerProps {
|
|
6
|
+
title: string;
|
|
7
|
+
options: Record<string, unknown>[];
|
|
8
|
+
valueProperty: string;
|
|
9
|
+
labelProperty: string;
|
|
10
|
+
multiple: boolean;
|
|
11
|
+
/** Valores ya seleccionados (siempre array — un solo elemento si no es `multiple`). */
|
|
12
|
+
selectedValues: unknown[];
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Picker de `val-select-search` / `val-multi-select-search` — full-screen en
|
|
17
|
+
* mobile, card flotante en desktop (`ModalService.openAdaptive`, Regla #5).
|
|
18
|
+
* Reemplaza el `ion-modal` con breakpoints que ambos componentes tenían
|
|
19
|
+
* embebido: mismo bottom-sheet en cualquier tamaño de pantalla, sin el
|
|
20
|
+
* tratamiento "card centrada" que el resto de los modales del factory ya usa.
|
|
21
|
+
*
|
|
22
|
+
* Selección simple: cierra al tocar un ítem (`dismiss({values:[v]}, 'selected')`).
|
|
23
|
+
* Selección múltiple: acumula localmente, footer con "Aplicar" (Regla #5,
|
|
24
|
+
* val-modal-layout con `actions`).
|
|
25
|
+
*/
|
|
26
|
+
export declare class SelectSearchPickerModalComponent implements OnInit {
|
|
27
|
+
_modalRef?: {
|
|
28
|
+
dismiss: (data?: unknown, role?: string) => void;
|
|
29
|
+
};
|
|
30
|
+
readonly i18n: I18nService;
|
|
31
|
+
/** Inyectado por `ModalService.openAdaptive({ componentProps })`. */
|
|
32
|
+
props: SelectSearchPickerProps;
|
|
33
|
+
readonly query: import("@angular/core").WritableSignal<string>;
|
|
34
|
+
readonly selected: import("@angular/core").WritableSignal<unknown[]>;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
readonly filteredItems: import("@angular/core").Signal<Record<string, unknown>[]>;
|
|
37
|
+
readonly footerActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
38
|
+
isSelected(item: Record<string, unknown>): boolean;
|
|
39
|
+
toggle(item: Record<string, unknown>): void;
|
|
40
|
+
apply(): void;
|
|
41
|
+
cancel(): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectSearchPickerModalComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectSearchPickerModalComponent, "val-select-search-picker-modal", never, {}, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { IonModal } from '@ionic/angular';
|
|
3
2
|
import { IconService } from '../../../services/icons.service';
|
|
4
3
|
import { InputMetadata, InputOption } from '../../types';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class SelectSearchComponent implements OnChanges, OnDestroy {
|
|
7
|
-
modal: IonModal;
|
|
8
6
|
label: string;
|
|
9
7
|
labelProperty: string;
|
|
10
8
|
valueProperty: string;
|
|
@@ -24,6 +22,7 @@ export declare class SelectSearchComponent implements OnChanges, OnDestroy {
|
|
|
24
22
|
icon: IconService;
|
|
25
23
|
private changeDetector;
|
|
26
24
|
private i18n;
|
|
25
|
+
private modals;
|
|
27
26
|
/**
|
|
28
27
|
* Label visible sobre el selector (estilo val-form). Solo se muestra si viene
|
|
29
28
|
* explícito por `props.label` o el input `label`; sin él, no se renderiza nada.
|
|
@@ -55,26 +54,16 @@ export declare class SelectSearchComponent implements OnChanges, OnDestroy {
|
|
|
55
54
|
private initializeItems;
|
|
56
55
|
private syncControlValueWithSelectedItems;
|
|
57
56
|
private applyDefaultValue;
|
|
58
|
-
onFilter(event: any): void;
|
|
59
|
-
onFocus(): void;
|
|
60
|
-
onBlur(): void;
|
|
61
|
-
openModal(): void;
|
|
62
|
-
preventDefaultBehavior(event: MouseEvent): void;
|
|
63
|
-
/**
|
|
64
|
-
* Reset state only - called by didDismiss event
|
|
65
|
-
* Separated from closeModal to avoid double dismissal and scroll issues
|
|
66
|
-
*/
|
|
67
|
-
resetState(): void;
|
|
68
57
|
/**
|
|
69
|
-
*
|
|
58
|
+
* Abre el picker vía `ModalService.openAdaptive` (Regla #5: full-screen en
|
|
59
|
+
* mobile, card flotante en desktop) en vez del `ion-modal` con breakpoints
|
|
60
|
+
* que este componente tenía embebido antes — mismo bottom-sheet en
|
|
61
|
+
* cualquier tamaño de pantalla, sin el tratamiento de card centrada que ya
|
|
62
|
+
* usa el resto de los modales del factory. El filtrado, la selección y el
|
|
63
|
+
* footer "Aplicar" (modo `multiple`) viven en `SelectSearchPickerModalComponent`.
|
|
70
64
|
*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* @deprecated Use closeModal() instead. Kept for backwards compatibility.
|
|
74
|
-
*/
|
|
75
|
-
cancelModal(): void;
|
|
76
|
-
selectItem(item: any): void;
|
|
77
|
-
isItemSelected(item: any): boolean;
|
|
65
|
+
openPicker(): Promise<void>;
|
|
66
|
+
preventDefaultBehavior(event: MouseEvent): void;
|
|
78
67
|
updateDisplayValue(): void;
|
|
79
68
|
applyChanges(): void;
|
|
80
69
|
reset(): void;
|
|
@@ -57,7 +57,7 @@ export declare class ArticleComponent implements OnInit, AfterViewInit {
|
|
|
57
57
|
getVideoElement(element: ArticleElement): ArticleVideoElement;
|
|
58
58
|
getCustomElement(element: ArticleElement): ArticleCustomElement;
|
|
59
59
|
getQuoteTextProps(element: ArticleElement): {
|
|
60
|
-
size: "
|
|
60
|
+
size: "medium" | "small" | "large" | "xlarge";
|
|
61
61
|
color: import("@ionic/core").Color;
|
|
62
62
|
content?: string;
|
|
63
63
|
bold: boolean;
|
|
@@ -73,7 +73,7 @@ export declare class ArticleComponent implements OnInit, AfterViewInit {
|
|
|
73
73
|
showQuoteMark?: boolean;
|
|
74
74
|
};
|
|
75
75
|
getHighlightTextProps(element: ArticleElement): {
|
|
76
|
-
size: "
|
|
76
|
+
size: "medium" | "small" | "large" | "xlarge";
|
|
77
77
|
color: import("@ionic/core").Color;
|
|
78
78
|
content?: string;
|
|
79
79
|
bold: boolean;
|
|
@@ -105,7 +105,7 @@ export declare class ArticleComponent implements OnInit, AfterViewInit {
|
|
|
105
105
|
shape?: "round";
|
|
106
106
|
size?: "small" | "default" | "large";
|
|
107
107
|
fill?: "default" | "clear" | "outline" | "solid" | "tint";
|
|
108
|
-
type: "
|
|
108
|
+
type: "button" | "submit" | "reset";
|
|
109
109
|
token?: string;
|
|
110
110
|
ref?: any;
|
|
111
111
|
handler?: (value: any) => any;
|
|
@@ -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<
|
|
7
|
+
readonly cols: import("@angular/core").Signal<3 | 4 | 2>;
|
|
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>;
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ export * from './lib/components/molecules/range-input/types';
|
|
|
121
121
|
export * from './lib/components/molecules/searchbar/searchbar.component';
|
|
122
122
|
export * from './lib/components/molecules/select-input/select-input.component';
|
|
123
123
|
export * from './lib/components/molecules/select-search/select-search.component';
|
|
124
|
+
export * from './lib/components/molecules/select-search/select-search-picker-modal.component';
|
|
124
125
|
export * from './lib/components/molecules/segment-control/segment-control.component';
|
|
125
126
|
export * from './lib/components/molecules/segment-control/types';
|
|
126
127
|
export * from './lib/components/molecules/text-input/text-input.component';
|