@messaia/cdk 22.0.1-rc.2 → 22.0.1-rc.3
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
|
@@ -19398,18 +19398,10 @@ class VdDynamicTableConfigDialogComponent extends BaseComponent {
|
|
|
19398
19398
|
}
|
|
19399
19399
|
/* Filter columns that are configurable from the provided dynamic table configuration */
|
|
19400
19400
|
const activeColumnSets = genericList?.dynamicTable?.columnSets || [];
|
|
19401
|
-
/* Filter
|
|
19401
|
+
/* Filter columns that are configurable from the provided dynamic table configuration */
|
|
19402
19402
|
this.columns = genericList?.dynamicTable?.columns
|
|
19403
19403
|
?.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
|
-
});
|
|
19404
|
+
?.filter((x) => !activeColumnSets?.length || x.columnSets?.some(cs => activeColumnSets.includes(cs)));
|
|
19413
19405
|
}
|
|
19414
19406
|
/**
|
|
19415
19407
|
* Saves the current column configuration and closes the dialog.
|