@messaia/cdk 22.0.1-rc.2 → 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').
|
|
@@ -19398,18 +19409,10 @@ class VdDynamicTableConfigDialogComponent extends BaseComponent {
|
|
|
19398
19409
|
}
|
|
19399
19410
|
/* Filter columns that are configurable from the provided dynamic table configuration */
|
|
19400
19411
|
const activeColumnSets = genericList?.dynamicTable?.columnSets || [];
|
|
19401
|
-
/* Filter
|
|
19412
|
+
/* Filter columns that are configurable from the provided dynamic table configuration */
|
|
19402
19413
|
this.columns = genericList?.dynamicTable?.columns
|
|
19403
19414
|
?.filter((x) => x.configurable)
|
|
19404
|
-
?.filter((x) =>
|
|
19405
|
-
const columnSets = x.columnSets || [];
|
|
19406
|
-
/* If either side has no set constraints, keep the column visible in config */
|
|
19407
|
-
if (!activeColumnSets.length || !columnSets.length) {
|
|
19408
|
-
return true;
|
|
19409
|
-
}
|
|
19410
|
-
/* Otherwise require at least one matching set */
|
|
19411
|
-
return columnSets.some(cs => activeColumnSets.includes(cs));
|
|
19412
|
-
});
|
|
19415
|
+
?.filter((x) => !activeColumnSets?.length || x.columnSets?.some(cs => activeColumnSets.includes(cs)));
|
|
19413
19416
|
}
|
|
19414
19417
|
/**
|
|
19415
19418
|
* Saves the current column configuration and closes the dialog.
|