@messaia/cdk 22.0.1-rc.3 → 22.0.1-rc.4
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/fesm2022/messaia-cdk.mjs
CHANGED
|
@@ -1383,6 +1383,17 @@ class BaseComponent {
|
|
|
1383
1383
|
this.router.navigateByUrl(urlTree.toString());
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Navigates to the previous page in browser history.
|
|
1388
|
+
*/
|
|
1389
|
+
navigateBack() {
|
|
1390
|
+
/* If history is unavailable or too short, fallback to configured return URL */
|
|
1391
|
+
if (typeof window === 'undefined' || (window.history?.length ?? 0) <= 1) {
|
|
1392
|
+
this.navigateToReturnUrl();
|
|
1393
|
+
return;
|
|
1394
|
+
}
|
|
1395
|
+
this.location.back();
|
|
1396
|
+
}
|
|
1386
1397
|
/**
|
|
1387
1398
|
* Expands the specified expansion panel path (supporting nested IDs) and collapses others.
|
|
1388
1399
|
* @param panelPath - The dot-separated ID path (e.g., 'warehouse.orders.details').
|