valtech-components 4.0.21 → 4.0.23
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-input/select-input.component.mjs +3 -3
- package/esm2022/lib/components/organisms/create-org-modal/create-org-modal.component.mjs +14 -9
- package/esm2022/lib/components/organisms/edit-org-modal/edit-org-modal.component.mjs +14 -9
- package/esm2022/lib/components/organisms/invite-member-modal/invite-member-modal.component.mjs +22 -10
- package/esm2022/lib/components/organisms/member-detail-modal/member-detail-modal.component.mjs +17 -15
- package/esm2022/lib/components/organisms/member-import-modal/member-import-modal.component.mjs +15 -3
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +22 -31
- package/esm2022/lib/components/organisms/transfer-ownership-modal/transfer-ownership-modal.component.mjs +16 -6
- package/esm2022/lib/services/org/types.mjs +62 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +183 -87
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +2 -2
- package/lib/components/molecules/cta-card/cta-card.component.d.ts +1 -1
- package/lib/components/molecules/features-list/features-list.component.d.ts +1 -1
- package/lib/components/molecules/metric-card/metric-card.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +5 -5
- package/lib/components/organisms/auth-cta/auth-cta.component.d.ts +1 -1
- package/lib/components/organisms/invite-member-modal/invite-member-modal.component.d.ts +3 -2
- package/lib/components/organisms/landing-steps/landing-steps.component.d.ts +1 -1
- package/lib/components/organisms/member-import-modal/member-import-modal.component.d.ts +1 -1
- package/lib/components/organisms/organization-view/organization-view.component.d.ts +1 -0
- package/lib/services/org/types.d.ts +15 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -39,11 +39,11 @@ export declare class RightsFooterComponent {
|
|
|
39
39
|
/**
|
|
40
40
|
* Computed helper for align prop in template.
|
|
41
41
|
*/
|
|
42
|
-
propsAlign: import("@angular/core").Signal<"
|
|
42
|
+
propsAlign: import("@angular/core").Signal<"right" | "center" | "left">;
|
|
43
43
|
/**
|
|
44
44
|
* Computed helper for color prop in template.
|
|
45
45
|
*/
|
|
46
|
-
propsColor: import("@angular/core").Signal<"
|
|
46
|
+
propsColor: import("@angular/core").Signal<"primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium" | "dark">;
|
|
47
47
|
/**
|
|
48
48
|
* Computed helper for withMargin prop in template.
|
|
49
49
|
*/
|
|
@@ -35,7 +35,7 @@ export declare class CtaCardComponent {
|
|
|
35
35
|
/** Emitted with the token of the clicked action button */
|
|
36
36
|
onAction: EventEmitter<string>;
|
|
37
37
|
/** Merged configuration with defaults */
|
|
38
|
-
config: import("@angular/core").Signal<CtaCardMetadata & Required<Pick<CtaCardMetadata, "
|
|
38
|
+
config: import("@angular/core").Signal<CtaCardMetadata & Required<Pick<CtaCardMetadata, "padding" | "borderRadius" | "bordered" | "shadowed" | "align">>>;
|
|
39
39
|
getBackground(): string;
|
|
40
40
|
getColor(): string | null;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CtaCardComponent, never>;
|
|
@@ -42,7 +42,7 @@ export declare class FeaturesListComponent {
|
|
|
42
42
|
iconSize: number;
|
|
43
43
|
mode: "horizontal" | "vertical";
|
|
44
44
|
gap: "small" | "medium" | "large";
|
|
45
|
-
alignment: "
|
|
45
|
+
alignment: "start" | "center";
|
|
46
46
|
imageShape: "circle" | "square";
|
|
47
47
|
maxVisible: number;
|
|
48
48
|
showMoreLabel?: string;
|
|
@@ -28,7 +28,7 @@ export declare class MetricCardComponent {
|
|
|
28
28
|
/** Emitted with the token of the clicked action */
|
|
29
29
|
onAction: EventEmitter<string>;
|
|
30
30
|
/** Merged configuration with defaults */
|
|
31
|
-
config: import("@angular/core").Signal<MetricCardMetadata & Required<Pick<MetricCardMetadata, "
|
|
31
|
+
config: import("@angular/core").Signal<MetricCardMetadata & Required<Pick<MetricCardMetadata, "padding" | "borderRadius" | "bordered" | "shadowed">>>;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MetricCardComponent, never>;
|
|
33
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<MetricCardComponent, "val-metric-card", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
34
34
|
}
|
|
@@ -57,7 +57,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
57
57
|
linkConfig?: import("valtech-components").LinkProcessorConfig;
|
|
58
58
|
allowPartialBold?: boolean;
|
|
59
59
|
authorColor?: import("@ionic/core").Color;
|
|
60
|
-
alignment?: "
|
|
60
|
+
alignment?: "right" | "center" | "left";
|
|
61
61
|
showQuoteMark?: boolean;
|
|
62
62
|
};
|
|
63
63
|
getHighlightTextProps(element: ArticleElement): {
|
|
@@ -76,7 +76,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
76
76
|
getHighlightColor(element: ArticleElement): string;
|
|
77
77
|
getButtonProps(element: ArticleElement): {
|
|
78
78
|
actionType?: import("valtech-components").ActionType;
|
|
79
|
-
expand?: "
|
|
79
|
+
expand?: "block" | "full";
|
|
80
80
|
link?: string;
|
|
81
81
|
href?: string;
|
|
82
82
|
routerLink?: string | any[];
|
|
@@ -91,9 +91,9 @@ export declare class ArticleComponent implements OnInit {
|
|
|
91
91
|
contentInterpolation?: Record<string, string | number>;
|
|
92
92
|
icon?: import("valtech-components").IconMetada;
|
|
93
93
|
shape?: "round";
|
|
94
|
-
size?: "
|
|
95
|
-
fill?: "
|
|
96
|
-
type: "
|
|
94
|
+
size?: "small" | "default" | "large";
|
|
95
|
+
fill?: "outline" | "clear" | "solid" | "default";
|
|
96
|
+
type: "button" | "submit" | "reset";
|
|
97
97
|
token?: string;
|
|
98
98
|
ref?: any;
|
|
99
99
|
handler?: (value: any) => any;
|
|
@@ -35,7 +35,7 @@ export declare class AuthCtaComponent {
|
|
|
35
35
|
onRegister: EventEmitter<void>;
|
|
36
36
|
constructor();
|
|
37
37
|
/** Merged configuration with defaults */
|
|
38
|
-
config: import("@angular/core").Signal<AuthCtaMetadata & Required<Pick<AuthCtaMetadata, "
|
|
38
|
+
config: import("@angular/core").Signal<AuthCtaMetadata & Required<Pick<AuthCtaMetadata, "padding" | "borderRadius" | "align">>>;
|
|
39
39
|
loginLabel: import("@angular/core").Signal<string>;
|
|
40
40
|
registerLabel: import("@angular/core").Signal<string>;
|
|
41
41
|
resolvedBg: import("@angular/core").Signal<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ButtonMetadata, InputMetadata } from '../../types';
|
|
4
4
|
import { OrgRole } from '../../../services/org/types';
|
|
@@ -24,7 +24,7 @@ interface PublicUserProfile {
|
|
|
24
24
|
* Auto-registra sus defaults i18n (es/en) si el consumer no proveyó el namespace
|
|
25
25
|
* `InviteModal`.
|
|
26
26
|
*/
|
|
27
|
-
export declare class InviteMemberModalComponent implements OnDestroy {
|
|
27
|
+
export declare class InviteMemberModalComponent implements OnInit, OnDestroy {
|
|
28
28
|
private orgService;
|
|
29
29
|
private auth;
|
|
30
30
|
private toast;
|
|
@@ -65,6 +65,7 @@ export declare class InviteMemberModalComponent implements OnDestroy {
|
|
|
65
65
|
isSelected(userId: string): boolean;
|
|
66
66
|
toggleUser(user: PublicUserProfile): void;
|
|
67
67
|
onSendSelected(): Promise<void>;
|
|
68
|
+
ngOnInit(): void;
|
|
68
69
|
ngOnDestroy(): void;
|
|
69
70
|
dismiss(): void;
|
|
70
71
|
t(key: string): string;
|
|
@@ -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 | 2 | 4>;
|
|
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>;
|
|
@@ -28,7 +28,7 @@ export declare class MemberImportModalComponent implements OnInit {
|
|
|
28
28
|
/** Namespace i18n. */
|
|
29
29
|
i18nNamespace: string;
|
|
30
30
|
csv: string;
|
|
31
|
-
readonly importMode: import("@angular/core").WritableSignal<"
|
|
31
|
+
readonly importMode: import("@angular/core").WritableSignal<"file" | "paste">;
|
|
32
32
|
readonly onConflictControl: FormControl<string>;
|
|
33
33
|
readonly sendActivationControl: FormControl<boolean>;
|
|
34
34
|
readonly conflictSelectProps: import("@angular/core").Signal<Partial<InputMetadata>>;
|
|
@@ -103,6 +103,7 @@ export declare class OrganizationViewComponent {
|
|
|
103
103
|
private enrichWithProfiles;
|
|
104
104
|
loadRoles(): void;
|
|
105
105
|
roleLabel(roleIdOrName: string): string;
|
|
106
|
+
private mergeRoleDisplayNames;
|
|
106
107
|
onViewMember(member: MemberDetail): void;
|
|
107
108
|
protected tt(key: string): string;
|
|
108
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationViewComponent, never>;
|
|
@@ -58,6 +58,8 @@ export interface ListOrgMembersResponse {
|
|
|
58
58
|
members: OrgMember[];
|
|
59
59
|
nextToken?: string;
|
|
60
60
|
count: number;
|
|
61
|
+
/** Backend SSOT para labels de roles en la respuesta (ADR-024 Phase 2). */
|
|
62
|
+
roleDisplayNames?: Record<string, Record<string, string>>;
|
|
61
63
|
}
|
|
62
64
|
export interface PendingInvitation {
|
|
63
65
|
orgId: string;
|
|
@@ -95,6 +97,19 @@ export interface OrgRole {
|
|
|
95
97
|
* Fallback: displayName en otro idioma → role.name (snake_case).
|
|
96
98
|
*/
|
|
97
99
|
export declare function resolveRoleLabel(role: OrgRole, lang: string): string;
|
|
100
|
+
/**
|
|
101
|
+
* Resuelve el label de un rol a partir de una lista de roles disponibles.
|
|
102
|
+
* Busca por id o name → usa resolveRoleLabel → fallback: humaniza el name.
|
|
103
|
+
*
|
|
104
|
+
* Función canónica de resolución. Reemplaza los keyMaps manuales en org-view y
|
|
105
|
+
* member-detail-modal. Cubre roles del sistema Y roles custom de app.
|
|
106
|
+
*/
|
|
107
|
+
export declare function resolveRoleLabelFromList(roleIdOrName: string, roles: OrgRole[], lang: string): string;
|
|
108
|
+
/**
|
|
109
|
+
* Roles del sistema con displayName (es/en). Espejo de SystemRoleLabels (backend Go).
|
|
110
|
+
* Backend es autoritativo — esto es un seed para renders previos a la carga de la API.
|
|
111
|
+
*/
|
|
112
|
+
export declare const SYSTEM_ROLE_DEFAULTS: OrgRole[];
|
|
98
113
|
export interface ListOrgRolesResponse {
|
|
99
114
|
operationId: string;
|
|
100
115
|
roles: OrgRole[];
|
package/lib/version.d.ts
CHANGED