valtech-components 4.0.177 → 4.0.179
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/update-banner/update-banner.component.mjs +18 -6
- package/esm2022/lib/components/organisms/html-viewer-modal/html-viewer-modal.component.mjs +3 -3
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +20 -28
- package/esm2022/lib/components/organisms/organization-view/organization-view.i18n.mjs +5 -3
- package/esm2022/lib/services/auth/auth.service.mjs +28 -4
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +70 -41
- 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/metric-card/metric-card.component.d.ts +1 -1
- package/lib/components/molecules/update-banner/update-banner.component.d.ts +7 -0
- package/lib/components/organisms/account-view/account-view.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/landing-steps/landing-steps.component.d.ts +1 -1
- package/lib/components/organisms/organization-view/organization-view.component.d.ts +3 -2
- package/lib/services/auth/auth.service.d.ts +1 -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<"left" | "center" | "right">;
|
|
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<"success" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "danger" | "light" | "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, "borderRadius" | "bordered" | "shadowed" | "align" | "padding">>>;
|
|
39
39
|
getBackground(): string;
|
|
40
40
|
getColor(): string | null;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CtaCardComponent, never>;
|
|
@@ -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, "borderRadius" | "bordered" | "shadowed" | "padding">>>;
|
|
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
|
}
|
|
@@ -35,6 +35,13 @@ export declare class UpdateBannerComponent {
|
|
|
35
35
|
updateAction: string;
|
|
36
36
|
dismissAction: string;
|
|
37
37
|
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Feedback visual mientras se aplica el update. El botón pasa a estado
|
|
40
|
+
* WORKING (spinner) y se bloquean nuevos taps. `applyUpdate()` siempre
|
|
41
|
+
* recarga la página al terminar (try/finally), así que NO reseteamos este
|
|
42
|
+
* flag: queda en true hasta que el reload reemplaza la app.
|
|
43
|
+
*/
|
|
44
|
+
readonly applying: import("@angular/core").WritableSignal<boolean>;
|
|
38
45
|
/** Aplica la actualización (activa el SW si existe + recarga). */
|
|
39
46
|
onUpdate(): void;
|
|
40
47
|
/** Descarta el banner opcional. No-op en modo obligatorio. */
|
|
@@ -35,7 +35,7 @@ export declare class AccountViewComponent {
|
|
|
35
35
|
* mergea con los defaults — `@Input` gana sobre route data.
|
|
36
36
|
*/
|
|
37
37
|
config?: AccountViewConfig;
|
|
38
|
-
readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<AccountViewConfig, "
|
|
38
|
+
readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<AccountViewConfig, "onOrgSwitched" | "onOrgCreated" | "onLoggedOut" | "onAccountDeleted">> & Pick<AccountViewConfig, "onOrgSwitched" | "onOrgCreated" | "onLoggedOut" | "onAccountDeleted">>;
|
|
39
39
|
/** Namespace i18n resuelto (capturado para llamadas no-reactivas). */
|
|
40
40
|
private get ns();
|
|
41
41
|
readonly orgs: import("@angular/core").WritableSignal<Organization[]>;
|
|
@@ -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?: "left" | "center" | "right";
|
|
61
61
|
showQuoteMark?: boolean;
|
|
62
62
|
};
|
|
63
63
|
getHighlightTextProps(element: ArticleElement): {
|
|
@@ -78,7 +78,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
78
78
|
actionType?: import("valtech-components").ActionType; /**
|
|
79
79
|
* Obtiene los estilos de padding para el contenedor article
|
|
80
80
|
*/
|
|
81
|
-
expand?: "
|
|
81
|
+
expand?: "full" | "block";
|
|
82
82
|
link?: string;
|
|
83
83
|
href?: string;
|
|
84
84
|
routerLink?: string | any[];
|
|
@@ -93,9 +93,9 @@ export declare class ArticleComponent implements OnInit {
|
|
|
93
93
|
contentInterpolation?: Record<string, string | number>;
|
|
94
94
|
icon?: import("valtech-components").IconMetada;
|
|
95
95
|
shape?: "round";
|
|
96
|
-
size?: "
|
|
97
|
-
fill?: "
|
|
98
|
-
type: "
|
|
96
|
+
size?: "default" | "small" | "large";
|
|
97
|
+
fill?: "default" | "clear" | "outline" | "solid";
|
|
98
|
+
type: "reset" | "submit" | "button";
|
|
99
99
|
token?: string;
|
|
100
100
|
ref?: any;
|
|
101
101
|
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, "borderRadius" | "align" | "padding">>>;
|
|
39
39
|
loginLabel: import("@angular/core").Signal<string>;
|
|
40
40
|
registerLabel: import("@angular/core").Signal<string>;
|
|
41
41
|
topLogoProps: import("@angular/core").Signal<{
|
|
@@ -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<2 | 3 | 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>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EmptyStateMetadata } from '../../molecules/empty-state/types';
|
|
2
2
|
import { ButtonMetadata } from '../../types';
|
|
3
|
+
import { SectionHeaderMetadata } from '../../molecules/section-header/types';
|
|
3
4
|
import { ButtonGroupMetadata } from '../../molecules/button-group/types';
|
|
4
5
|
import { AuthService } from '../../../services/auth/auth.service';
|
|
5
6
|
import { OrgRole, Organization } from '../../../services/org/types';
|
|
@@ -51,7 +52,7 @@ export declare class OrganizationViewComponent {
|
|
|
51
52
|
* `resolvedConfig` mergea con los defaults — `@Input` gana sobre route data.
|
|
52
53
|
*/
|
|
53
54
|
config?: OrganizationViewConfig;
|
|
54
|
-
readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<OrganizationViewConfig, "onOrgEdited" | "onMemberInvited" | "onOwnershipTransferred" | "onLeftOrg" | "onOrgDeleted"
|
|
55
|
+
readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<OrganizationViewConfig, "onOrgCreated" | "onOrgEdited" | "onMemberInvited" | "onOwnershipTransferred" | "onLeftOrg" | "onOrgDeleted">> & Pick<OrganizationViewConfig, "onOrgCreated" | "onOrgEdited" | "onMemberInvited" | "onOwnershipTransferred" | "onLeftOrg" | "onOrgDeleted">>;
|
|
55
56
|
/** Namespace i18n resuelto (capturado para llamadas no-reactivas). */
|
|
56
57
|
private get ns();
|
|
57
58
|
readonly org: import("@angular/core").WritableSignal<Organization>;
|
|
@@ -82,7 +83,7 @@ export declare class OrganizationViewComponent {
|
|
|
82
83
|
readonly pageTitle: import("@angular/core").Signal<string>;
|
|
83
84
|
readonly pageDescription: import("@angular/core").Signal<string>;
|
|
84
85
|
readonly planLabel: import("@angular/core").Signal<string>;
|
|
85
|
-
readonly
|
|
86
|
+
readonly switchOrgSectionProps: import("@angular/core").Signal<SectionHeaderMetadata>;
|
|
86
87
|
readonly editButtonProps: import("@angular/core").Signal<Partial<ButtonMetadata>>;
|
|
87
88
|
readonly leaveButtonProps: import("@angular/core").Signal<Partial<ButtonMetadata>>;
|
|
88
89
|
readonly transferableMembers: import("@angular/core").Signal<MemberDetail[]>;
|
|
@@ -52,6 +52,7 @@ export declare class AuthService implements OnDestroy {
|
|
|
52
52
|
private refreshTimerId;
|
|
53
53
|
private syncSubscription;
|
|
54
54
|
private firestoreRBACUnsubscribe;
|
|
55
|
+
private inFlightRefresh$;
|
|
55
56
|
constructor(config: ValtechAuthConfig | null, http: HttpClient, router: Router, stateService: AuthStateService, tokenService: TokenService, storageService: AuthStorageService, syncService: AuthSyncService, firebaseService: FirebaseService, oauthService: OAuthService, messagingService: MessagingService | null, i18nService: I18nService | null, confirmationService: ConfirmationDialogService, firestoreInstance: Firestore | null);
|
|
56
57
|
/** Estado completo de autenticación */
|
|
57
58
|
readonly state: import("@angular/core").Signal<import("./types").AuthState>;
|
package/lib/version.d.ts
CHANGED