valtech-components 4.0.26 → 4.0.28
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/content-reaction/content-reaction.component.mjs +4 -7
- package/esm2022/lib/components/organisms/account-view/account-view.component.mjs +34 -30
- package/esm2022/lib/components/organisms/api-key-create-modal/api-key-create-modal.component.mjs +7 -7
- package/esm2022/lib/components/organisms/api-keys-modal/api-keys-modal.component.mjs +13 -13
- package/esm2022/lib/components/organisms/avatar-upload/avatar-upload.component.mjs +3 -3
- package/esm2022/lib/components/organisms/change-password-modal/change-password-modal.component.mjs +3 -3
- package/esm2022/lib/components/organisms/create-org-modal/create-org-modal.component.mjs +91 -65
- package/esm2022/lib/components/organisms/delete-account-modal/delete-account-modal.component.mjs +106 -84
- package/esm2022/lib/components/organisms/login-attempt-modal/login-attempt-modal.component.mjs +6 -3
- package/esm2022/lib/components/organisms/member-import-modal/member-import-modal.component.mjs +9 -9
- package/esm2022/lib/components/organisms/mfa-modal/mfa-modal.component.mjs +3 -3
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +16 -3
- package/esm2022/lib/components/organisms/permissions-view/permissions-modal.component.mjs +70 -0
- package/esm2022/lib/components/organisms/permissions-view/permissions-view.component.mjs +16 -5
- package/esm2022/lib/components/organisms/session-list-modal/session-list-modal.component.mjs +4 -3
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/valtech-components.mjs +1942 -1799
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/account-view/account-view.component.d.ts +3 -0
- package/lib/components/organisms/create-org-modal/create-org-modal.component.d.ts +8 -8
- package/lib/components/organisms/delete-account-modal/delete-account-modal.component.d.ts +7 -8
- package/lib/components/organisms/organization-view/organization-view.component.d.ts +1 -0
- package/lib/components/organisms/permissions-view/permissions-modal.component.d.ts +13 -0
- package/lib/components/organisms/permissions-view/permissions-view.component.d.ts +9 -2
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -42,6 +42,8 @@ export declare class AccountViewComponent {
|
|
|
42
42
|
readonly orgsLoading: import("@angular/core").WritableSignal<boolean>;
|
|
43
43
|
private readonly orgsError;
|
|
44
44
|
readonly orgsErrorState: import("@angular/core").Signal<EmptyStateMetadata>;
|
|
45
|
+
readonly createOrgOpen: import("@angular/core").WritableSignal<boolean>;
|
|
46
|
+
readonly deleteAccountOpen: import("@angular/core").WritableSignal<boolean>;
|
|
45
47
|
readonly pendingInvites: import("@angular/core").WritableSignal<PendingInvitation[]>;
|
|
46
48
|
readonly pendingInvitesLoading: import("@angular/core").WritableSignal<boolean>;
|
|
47
49
|
readonly inviteAccepting: import("@angular/core").WritableSignal<string>;
|
|
@@ -76,6 +78,7 @@ export declare class AccountViewComponent {
|
|
|
76
78
|
onDeleteAccount(): void;
|
|
77
79
|
onManageOrg(): void;
|
|
78
80
|
onNewOrg(): void;
|
|
81
|
+
onOrgCreated(newOrg: Organization): void;
|
|
79
82
|
onMoreInfo(): void;
|
|
80
83
|
onLogout(): void;
|
|
81
84
|
private loadPendingInvites;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WritableSignal } from '@angular/core';
|
|
1
|
+
import { EventEmitter, WritableSignal } from '@angular/core';
|
|
2
2
|
import { FormMetadata, FormSubmit } from '../../types';
|
|
3
3
|
import { Organization } from '../../../services/org/types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -25,21 +25,21 @@ export declare class CreateOrgModalComponent {
|
|
|
25
25
|
private orgSwitch;
|
|
26
26
|
private toast;
|
|
27
27
|
private errors;
|
|
28
|
-
/** Inyectado por `ModalService.open` — referencia para cerrar desde dentro. */
|
|
29
|
-
_modalRef?: {
|
|
30
|
-
dismiss: (data?: unknown, role?: string) => void;
|
|
31
|
-
};
|
|
32
|
-
/** Callback tras crear la org (pasado por `componentProps`). */
|
|
33
|
-
onSuccess?: (newOrg: Organization) => void;
|
|
34
28
|
/** Namespace i18n con que la vista resuelve sus textos. */
|
|
35
29
|
i18nNamespace: string;
|
|
30
|
+
private _isOpen;
|
|
31
|
+
set isOpen(value: boolean);
|
|
32
|
+
get isOpen(): boolean;
|
|
33
|
+
dismissed: EventEmitter<void>;
|
|
34
|
+
created: EventEmitter<Organization>;
|
|
36
35
|
private readonly _busy;
|
|
37
36
|
readonly formMeta: WritableSignal<FormMetadata>;
|
|
38
37
|
constructor();
|
|
39
38
|
onSubmit(event: FormSubmit): Promise<void>;
|
|
40
39
|
dismiss(): void;
|
|
40
|
+
close(): void;
|
|
41
41
|
private buildFormMeta;
|
|
42
42
|
t(key: string): string;
|
|
43
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateOrgModalComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CreateOrgModalComponent, "val-create-org-modal", never, { "
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CreateOrgModalComponent, "val-create-org-modal", never, { "i18nNamespace": { "alias": "i18nNamespace"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "dismissed": "dismissed"; "created": "created"; }, never, never, true, never>;
|
|
45
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { ComponentState, FormMetadata, FormSubmit } from '../../types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -19,22 +19,21 @@ import * as i0 from "@angular/core";
|
|
|
19
19
|
* Auto-registra sus defaults i18n (es/en) en el constructor si el consumer no
|
|
20
20
|
* proveyó el namespace `Settings.DeleteAccount`.
|
|
21
21
|
*/
|
|
22
|
-
export declare class DeleteAccountModalComponent
|
|
22
|
+
export declare class DeleteAccountModalComponent {
|
|
23
23
|
private auth;
|
|
24
24
|
private errors;
|
|
25
25
|
private i18n;
|
|
26
26
|
private toast;
|
|
27
|
-
/** Inyectado por `ModalService.open` — referencia para cerrar desde dentro. */
|
|
28
|
-
_modalRef?: {
|
|
29
|
-
dismiss: (data?: unknown, role?: string) => void;
|
|
30
|
-
};
|
|
31
27
|
/** Namespace i18n con que la vista resuelve sus textos. */
|
|
32
28
|
i18nNamespace: string;
|
|
29
|
+
private _isOpen;
|
|
30
|
+
set isOpen(value: boolean);
|
|
31
|
+
get isOpen(): boolean;
|
|
32
|
+
dismissed: EventEmitter<void>;
|
|
33
33
|
readonly hasPassword: import("@angular/core").WritableSignal<boolean>;
|
|
34
34
|
readonly codeSent: import("@angular/core").WritableSignal<boolean>;
|
|
35
35
|
readonly formState: import("@angular/core").WritableSignal<ComponentState>;
|
|
36
36
|
constructor();
|
|
37
|
-
ngOnInit(): void;
|
|
38
37
|
t: (key: string) => string;
|
|
39
38
|
private submitBtn;
|
|
40
39
|
readonly passwordFormProps: import("@angular/core").Signal<FormMetadata>;
|
|
@@ -46,5 +45,5 @@ export declare class DeleteAccountModalComponent implements OnInit {
|
|
|
46
45
|
onResendCode(): Promise<void>;
|
|
47
46
|
onCodeSubmit(event: FormSubmit): Promise<void>;
|
|
48
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteAccountModalComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteAccountModalComponent, "val-delete-account-modal", never, { "
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteAccountModalComponent, "val-delete-account-modal", never, { "i18nNamespace": { "alias": "i18nNamespace"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "dismissed": "dismissed"; }, never, never, true, never>;
|
|
50
49
|
}
|
|
@@ -56,6 +56,7 @@ export declare class OrganizationViewComponent {
|
|
|
56
56
|
readonly org: import("@angular/core").WritableSignal<Organization>;
|
|
57
57
|
readonly loading: import("@angular/core").WritableSignal<boolean>;
|
|
58
58
|
readonly leaving: import("@angular/core").WritableSignal<boolean>;
|
|
59
|
+
readonly permissionsOpen: import("@angular/core").WritableSignal<boolean>;
|
|
59
60
|
private readonly orgLoadError;
|
|
60
61
|
readonly orgErrorState: import("@angular/core").Signal<EmptyStateMetadata>;
|
|
61
62
|
readonly members: import("@angular/core").WritableSignal<MemberDetail[]>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PermissionsViewConfig } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PermissionsModalComponent {
|
|
5
|
+
private i18n;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
config?: PermissionsViewConfig;
|
|
8
|
+
dismissed: EventEmitter<void>;
|
|
9
|
+
close(): void;
|
|
10
|
+
t(key: string): string;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsModalComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PermissionsModalComponent, "val-permissions-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "dismissed": "dismissed"; }, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { ButtonMetadata } from '../../types';
|
|
2
3
|
import { PermissionsViewConfig } from './types';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
@@ -35,7 +36,7 @@ interface RoleView {
|
|
|
35
36
|
* sus defaults i18n (es/en) si el consumer no proveyó el namespace (default
|
|
36
37
|
* `Settings.Permissions`).
|
|
37
38
|
*/
|
|
38
|
-
export declare class PermissionsViewComponent {
|
|
39
|
+
export declare class PermissionsViewComponent implements OnInit {
|
|
39
40
|
private i18n;
|
|
40
41
|
private orgService;
|
|
41
42
|
private catalog;
|
|
@@ -48,6 +49,11 @@ export declare class PermissionsViewComponent {
|
|
|
48
49
|
* `resolvedConfig` mergea con los defaults — `@Input` gana sobre route data.
|
|
49
50
|
*/
|
|
50
51
|
config?: PermissionsViewConfig;
|
|
52
|
+
/**
|
|
53
|
+
* Cuando `true`, la vista está embebida en un modal — suprime el back-header
|
|
54
|
+
* (lo gestiona el modal padre). Default `false` (uso como ruta).
|
|
55
|
+
*/
|
|
56
|
+
isModal: boolean;
|
|
51
57
|
readonly resolvedConfig: import("@angular/core").Signal<Required<PermissionsViewConfig>>;
|
|
52
58
|
/** Namespace i18n resuelto (capturado para llamadas no-reactivas). */
|
|
53
59
|
private get ns();
|
|
@@ -59,12 +65,13 @@ export declare class PermissionsViewComponent {
|
|
|
59
65
|
readonly activeOrgId: import("@angular/core").Signal<string>;
|
|
60
66
|
readonly retryButtonProps: import("@angular/core").Signal<Partial<ButtonMetadata>>;
|
|
61
67
|
constructor();
|
|
68
|
+
ngOnInit(): void;
|
|
62
69
|
load(): void;
|
|
63
70
|
private buildRoleView;
|
|
64
71
|
protected tt(key: string): string;
|
|
65
72
|
appLabel(appId: string): string;
|
|
66
73
|
roleLabel(name: string): string;
|
|
67
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsViewComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PermissionsViewComponent, "val-permissions-view", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PermissionsViewComponent, "val-permissions-view", never, { "config": { "alias": "config"; "required": false; }; "isModal": { "alias": "isModal"; "required": false; }; }, {}, never, never, true, never>;
|
|
69
76
|
}
|
|
70
77
|
export {};
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -290,6 +290,7 @@ export * from './lib/components/organisms/notifications-view/notifications.route
|
|
|
290
290
|
export * from './lib/components/organisms/notification-preferences-view/notification-preferences-view.component';
|
|
291
291
|
export * from './lib/components/organisms/notification-preferences-view/types';
|
|
292
292
|
export * from './lib/components/organisms/notification-preferences-view/notification-preferences.routes';
|
|
293
|
+
export * from './lib/components/organisms/permissions-view/permissions-modal.component';
|
|
293
294
|
export * from './lib/components/organisms/permissions-view/permissions-view.component';
|
|
294
295
|
export * from './lib/components/organisms/permissions-view/types';
|
|
295
296
|
export * from './lib/components/organisms/permissions-view/permissions.routes';
|