valtech-components 4.0.992 → 4.0.994

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.
@@ -53,11 +53,11 @@ export declare class RightsFooterComponent {
53
53
  /**
54
54
  * Computed helper for align prop in template.
55
55
  */
56
- propsAlign: import("@angular/core").Signal<"right" | "center" | "left">;
56
+ propsAlign: import("@angular/core").Signal<"left" | "center" | "right">;
57
57
  /**
58
58
  * Computed helper for color prop in template.
59
59
  */
60
- propsColor: import("@angular/core").Signal<"light" | "dark" | "medium" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger">;
60
+ propsColor: import("@angular/core").Signal<"success" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "danger" | "light" | "dark">;
61
61
  /**
62
62
  * Computed helper for withMargin prop in template.
63
63
  */
@@ -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, "padding" | "borderRadius" | "bordered" | "shadowed" | "align">>>;
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>;
@@ -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: "start" | "center";
45
+ alignment: "center" | "start";
46
46
  imageShape: "circle" | "square";
47
47
  maxVisible: number;
48
48
  showMoreLabel?: string;
@@ -26,7 +26,7 @@ export declare class LoadMoreComponent {
26
26
  readonly color: import("@angular/core").Signal<string>;
27
27
  readonly fill: import("@angular/core").Signal<string>;
28
28
  readonly shape: import("@angular/core").Signal<string>;
29
- readonly size: import("@angular/core").Signal<"small" | "large" | "default">;
29
+ readonly size: import("@angular/core").Signal<"small" | "default" | "large">;
30
30
  readonly threshold: import("@angular/core").Signal<string>;
31
31
  readonly label: import("@angular/core").Signal<string>;
32
32
  private readonly _pendingComplete;
@@ -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, "padding" | "borderRadius" | "bordered" | "shadowed">>>;
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
  }
@@ -6,7 +6,7 @@ export declare class OperationReferenceComponent {
6
6
  protected label: import("@angular/core").Signal<string>;
7
7
  protected copiedLabel: import("@angular/core").Signal<string>;
8
8
  protected copyAriaLabel: import("@angular/core").Signal<string>;
9
- protected align: import("@angular/core").Signal<"start" | "end" | "center">;
9
+ protected align: import("@angular/core").Signal<"center" | "start" | "end">;
10
10
  protected copyValue(): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<OperationReferenceComponent, never>;
12
12
  static ɵcmp: i0.ɵɵComponentDeclaration<OperationReferenceComponent, "val-operation-reference", never, { "props": { "alias": "props"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -34,7 +34,7 @@ export declare class AccountViewComponent {
34
34
  * mergea con los defaults — `@Input` gana sobre route data.
35
35
  */
36
36
  config?: AccountViewConfig;
37
- readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<AccountViewConfig, "onOrgCreated" | "onOrgSwitched" | "onLoggedOut" | "onAccountDeleted">> & Pick<AccountViewConfig, "onOrgCreated" | "onOrgSwitched" | "onLoggedOut" | "onAccountDeleted">>;
37
+ readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<AccountViewConfig, "onOrgSwitched" | "onOrgCreated" | "onLoggedOut" | "onAccountDeleted">> & Pick<AccountViewConfig, "onOrgSwitched" | "onOrgCreated" | "onLoggedOut" | "onAccountDeleted">>;
38
38
  /** Namespace i18n resuelto (capturado para llamadas no-reactivas). */
39
39
  private get ns();
40
40
  readonly createOrgOpen: import("@angular/core").WritableSignal<boolean>;
@@ -69,7 +69,7 @@ export declare class ArticleComponent implements OnInit, AfterViewInit {
69
69
  linkConfig?: import("valtech-components").LinkProcessorConfig;
70
70
  allowPartialBold?: boolean;
71
71
  authorColor?: import("@ionic/core").Color;
72
- alignment?: "right" | "center" | "left";
72
+ alignment?: "left" | "center" | "right";
73
73
  showQuoteMark?: boolean;
74
74
  };
75
75
  getHighlightTextProps(element: ArticleElement): {
@@ -88,7 +88,7 @@ export declare class ArticleComponent implements OnInit, AfterViewInit {
88
88
  getHighlightColor(element: ArticleElement): string;
89
89
  getButtonProps(element: ArticleElement): {
90
90
  actionType?: import("valtech-components").ActionType;
91
- expand?: "block" | "full";
91
+ expand?: "full" | "block";
92
92
  link?: string;
93
93
  href?: string;
94
94
  routerLink?: string | any[];
@@ -103,9 +103,9 @@ export declare class ArticleComponent implements OnInit, AfterViewInit {
103
103
  contentInterpolation?: Record<string, string | number>;
104
104
  icon?: import("valtech-components").IconMetada;
105
105
  shape?: "round";
106
- size?: "small" | "large" | "default";
107
- fill?: "solid" | "clear" | "outline" | "default" | "tint";
108
- type: "submit" | "button" | "reset";
106
+ size?: "small" | "default" | "large";
107
+ fill?: "default" | "clear" | "outline" | "solid" | "tint";
108
+ type: "reset" | "submit" | "button";
109
109
  token?: string;
110
110
  ariaLabel?: string;
111
111
  ref?: 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, "padding" | "borderRadius" | "align">>>;
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<{
@@ -90,7 +90,7 @@ export declare class NotificationPreferencesViewComponent implements OnInit, OnD
90
90
  readonly busyLabel: import("@angular/core").Signal<string>;
91
91
  readonly contextMessage: import("@angular/core").Signal<string>;
92
92
  readonly alertVariant: import("@angular/core").Signal<"warning" | "danger" | "info">;
93
- readonly alertIcon: import("@angular/core").Signal<"close-circle-outline" | "alert-circle-outline">;
93
+ readonly alertIcon: import("@angular/core").Signal<"alert-circle-outline" | "close-circle-outline">;
94
94
  readonly toggleProps: import("@angular/core").Signal<ToggleInputMetadata>;
95
95
  readonly retryButtonProps: import("@angular/core").Signal<Partial<ButtonMetadata>>;
96
96
  readonly tokenPreview: import("@angular/core").Signal<string>;
@@ -53,7 +53,7 @@ export declare class OrganizationViewComponent {
53
53
  * `resolvedConfig` mergea con los defaults — `@Input` gana sobre route data.
54
54
  */
55
55
  config?: OrganizationViewConfig;
56
- readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<OrganizationViewConfig, "onOrgEdited" | "onMemberInvited" | "onOwnershipTransferred" | "onLeftOrg" | "onOrgDeleted" | "onOrgCreated">> & Pick<OrganizationViewConfig, "onOrgEdited" | "onMemberInvited" | "onOwnershipTransferred" | "onLeftOrg" | "onOrgDeleted" | "onOrgCreated">>;
56
+ readonly resolvedConfig: import("@angular/core").Signal<Required<Omit<OrganizationViewConfig, "onOrgCreated" | "onOrgEdited" | "onMemberInvited" | "onOwnershipTransferred" | "onLeftOrg" | "onOrgDeleted">> & Pick<OrganizationViewConfig, "onOrgCreated" | "onOrgEdited" | "onMemberInvited" | "onOwnershipTransferred" | "onLeftOrg" | "onOrgDeleted">>;
57
57
  /** Namespace i18n resuelto (capturado para llamadas no-reactivas). */
58
58
  private get ns();
59
59
  readonly org: import("@angular/core").WritableSignal<Organization>;
@@ -91,6 +91,14 @@ export declare class OrgSwitchService {
91
91
  private readonly _switching;
92
92
  private readonly _orgChanged;
93
93
  private readonly _orgDataUpdated;
94
+ /**
95
+ * Navegador a "home" registrado por el shell de la app (opcional — ver
96
+ * `registerHomeNavigator`). Si existe, `switchTo` lo AWAIT-ea antes de
97
+ * emitir `orgChanged$`, así el shell termina de navegar (y destruye la
98
+ * vista de detalle vieja) antes de que cualquier página con
99
+ * `connectPageRefresh` reaccione al cambio de org.
100
+ */
101
+ private homeNavigator;
94
102
  /**
95
103
  * `true` while a switch is in flight. UI should disable interactions
96
104
  * with org-scoped data and show a loading indicator.
@@ -111,6 +119,26 @@ export declare class OrgSwitchService {
111
119
  readonly orgDataUpdated$: Observable<Organization>;
112
120
  /** Notify subscribers that the active org's data was updated. */
113
121
  notifyOrgDataUpdated(org: Organization): void;
122
+ /**
123
+ * Registra la función que lleva a "home" tras un cambio de org (FE-7,
124
+ * `TODO.md`). Llamar UNA vez en el constructor del shell raíz de la app
125
+ * (ej. `AppLayoutPage`), reemplazando cualquier `orgChanged$.subscribe(() =>
126
+ * router.navigateByUrl(...))` manual que la app tuviera antes — ese patrón
127
+ * es exactamente el bug: `navigateByUrl` sin `await` deja que otro
128
+ * subscriber del mismo evento (`connectPageRefresh` de una página de
129
+ * detalle) dispare su refetch ANTES de que la navegación reemplace el
130
+ * componente, y por un instante se ve el estado vacío de la org anterior.
131
+ *
132
+ * @example
133
+ * ```ts
134
+ * constructor() {
135
+ * this.orgSwitch.registerHomeNavigator(() =>
136
+ * this.router.navigateByUrl('/app/home', { replaceUrl: true }).then(() => {})
137
+ * );
138
+ * }
139
+ * ```
140
+ */
141
+ registerHomeNavigator(fn: () => Promise<void>): void;
114
142
  constructor(auth: AuthService);
115
143
  /**
116
144
  * Switch the user's active organization.
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.992";
5
+ export declare const VERSION = "4.0.994";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.992",
3
+ "version": "4.0.994",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"