valtech-components 2.0.758 → 2.0.759
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/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +1 -1
- 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/molecules/features-list/features-list.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +3 -3
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/services/firebase/firebase-messaging-sw.js +17 -22
|
@@ -43,7 +43,7 @@ export declare class RightsFooterComponent {
|
|
|
43
43
|
/**
|
|
44
44
|
* Computed helper for color prop in template.
|
|
45
45
|
*/
|
|
46
|
-
propsColor: import("@angular/core").Signal<"primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "
|
|
46
|
+
propsColor: import("@angular/core").Signal<"medium" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "dark">;
|
|
47
47
|
/**
|
|
48
48
|
* Computed helper for withMargin prop in template.
|
|
49
49
|
*/
|
|
@@ -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<"small" | "medium" | "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>;
|
|
@@ -48,7 +48,7 @@ export declare class FeaturesListComponent {
|
|
|
48
48
|
iconColor: string;
|
|
49
49
|
iconSize: number;
|
|
50
50
|
mode: "horizontal" | "vertical";
|
|
51
|
-
gap: "
|
|
51
|
+
gap: "small" | "medium" | "large";
|
|
52
52
|
alignment: "center" | "start";
|
|
53
53
|
}>;
|
|
54
54
|
/** Resolved icon color (handles Ionic colors and CSS colors) */
|
|
@@ -45,7 +45,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
45
45
|
getVideoElement(element: ArticleElement): ArticleVideoElement;
|
|
46
46
|
getCustomElement(element: ArticleElement): ArticleCustomElement;
|
|
47
47
|
getQuoteTextProps(element: ArticleElement): {
|
|
48
|
-
size: "
|
|
48
|
+
size: "small" | "medium" | "large" | "xlarge";
|
|
49
49
|
color: import("@ionic/core").Color;
|
|
50
50
|
content?: string;
|
|
51
51
|
bold: boolean;
|
|
@@ -61,7 +61,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
61
61
|
showQuoteMark?: boolean;
|
|
62
62
|
};
|
|
63
63
|
getHighlightTextProps(element: ArticleElement): {
|
|
64
|
-
size: "
|
|
64
|
+
size: "small" | "medium" | "large" | "xlarge";
|
|
65
65
|
color: import("@ionic/core").Color;
|
|
66
66
|
content?: string;
|
|
67
67
|
bold: boolean;
|
|
@@ -90,7 +90,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
90
90
|
contentInterpolation?: Record<string, string | number>;
|
|
91
91
|
icon?: import("valtech-components").IconMetada;
|
|
92
92
|
shape?: "round";
|
|
93
|
-
size?: "small" | "
|
|
93
|
+
size?: "small" | "large" | "default";
|
|
94
94
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
95
95
|
type: "button" | "submit" | "reset";
|
|
96
96
|
token?: string;
|
|
@@ -72,7 +72,7 @@ export declare class ToolbarComponent implements OnInit {
|
|
|
72
72
|
};
|
|
73
73
|
showFlags?: boolean;
|
|
74
74
|
color: import("@ionic/core").Color;
|
|
75
|
-
size?: "small" | "
|
|
75
|
+
size?: "small" | "large" | "default";
|
|
76
76
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
77
77
|
shape?: "round";
|
|
78
78
|
expand?: "full" | "block";
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -96,33 +96,28 @@ if (!self.FIREBASE_CONFIG) {
|
|
|
96
96
|
event.waitUntil(
|
|
97
97
|
clients
|
|
98
98
|
.matchAll({ type: 'window', includeUncontrolled: true })
|
|
99
|
-
.then((clientList) => {
|
|
100
|
-
//
|
|
101
|
-
|
|
99
|
+
.then(async (clientList) => {
|
|
100
|
+
// Estrategia: el SW NO navega. Solo da foco al client y emite postMessage.
|
|
101
|
+
// La app (MessagingService → NotificationActionService.openFromFCM) hace
|
|
102
|
+
// routing via Angular Router → SPA navigation + handoff cross-app + switch-org.
|
|
103
|
+
// `client.navigate()` haría full reload y compite con Router → ambos pierden.
|
|
104
|
+
//
|
|
105
|
+
// Solo abrimos nueva ventana (con URL completa) cuando NO hay client abierto;
|
|
106
|
+
// ese caso es el único donde el SW SÍ define la URL inicial.
|
|
107
|
+
if (clientList.length > 0) {
|
|
108
|
+
const client = clientList[0];
|
|
109
|
+
// postMessage al primer client — el wire de la app (APP_INITIALIZER de
|
|
110
|
+
// provideValtechAuth) recibe y dispatcha NotificationActionService.
|
|
102
111
|
client.postMessage(notificationPayload);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Navegar si hay route o url
|
|
106
|
-
if (targetUrl !== '/') {
|
|
107
|
-
for (const client of clientList) {
|
|
108
|
-
if ('navigate' in client) {
|
|
109
|
-
return client.navigate(targetUrl).then((c) => c?.focus());
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
// Si no hay cliente abierto, abrir nueva ventana
|
|
113
|
-
if (clients.openWindow) {
|
|
114
|
-
return clients.openWindow(targetUrl);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Solo hacer focus si no hay navegación
|
|
119
|
-
for (const client of clientList) {
|
|
120
112
|
if ('focus' in client) {
|
|
121
|
-
|
|
113
|
+
await client.focus();
|
|
122
114
|
}
|
|
115
|
+
return;
|
|
123
116
|
}
|
|
117
|
+
|
|
118
|
+
// Sin clients abiertos: openWindow con la URL final ya resuelta.
|
|
124
119
|
if (clients.openWindow) {
|
|
125
|
-
return clients.openWindow(
|
|
120
|
+
return clients.openWindow(targetUrl);
|
|
126
121
|
}
|
|
127
122
|
})
|
|
128
123
|
);
|