@annalib/anna-core 24.0.44 → 24.0.45
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.
|
@@ -4739,7 +4739,19 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4739
4739
|
if (latestFilters.length > 0 &&
|
|
4740
4740
|
item.disableTooltipIcon &&
|
|
4741
4741
|
latestFilters[latestFilters.length - 1] === key) {
|
|
4742
|
-
|
|
4742
|
+
if (key === "period") {
|
|
4743
|
+
const uniqStartDate = uniq(this.clonedTableData.map((u) => u.startDate));
|
|
4744
|
+
const uniqEndDate = uniq(this.clonedTableData.map((u) => u.endDate));
|
|
4745
|
+
item.disableTooltipIcon = !(uniqStartDate.length > 1 || uniqEndDate.length > 1);
|
|
4746
|
+
}
|
|
4747
|
+
else {
|
|
4748
|
+
values = this.clonedTableData.map((u) => u[key]);
|
|
4749
|
+
if ((item.filter === "CHECKBOX" && uniq(values).filter((n) => n != null).length > 1) ||
|
|
4750
|
+
(item.filter !== "CHECKBOX" &&
|
|
4751
|
+
uniq(values).filter((n) => n != null && n !== "-").length > 1)) {
|
|
4752
|
+
item.disableTooltipIcon = false;
|
|
4753
|
+
}
|
|
4754
|
+
}
|
|
4743
4755
|
}
|
|
4744
4756
|
if (item.disableTooltipIcon) {
|
|
4745
4757
|
if (key === "period") {
|