@annalib/anna-core 19.0.8 → 19.0.9
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/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +16 -10
- package/fesm2015/annalib-anna-core.mjs +15 -9
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +15 -9
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2709,16 +2709,22 @@ class AnnaColumnTimeFilterComponent {
|
|
|
2709
2709
|
return this.isFilterChanged;
|
|
2710
2710
|
}
|
|
2711
2711
|
disableTimeFilterApplyButton() {
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || (!isSortChanged && !isFilterChanged);
|
|
2716
|
-
}
|
|
2717
|
-
else if (this.showFilterComponent) {
|
|
2718
|
-
this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || !this.checkIfTimeTooltipIsFiltered();
|
|
2712
|
+
//isSortAndFilterPresent is true only for dp restrictions component
|
|
2713
|
+
if (this.isSortAndFilterPresent) {
|
|
2714
|
+
this.disableTimeFilterApplyBtn = !this.checkIfTimeTooltipIsFiltered();
|
|
2719
2715
|
}
|
|
2720
|
-
else
|
|
2721
|
-
this.
|
|
2716
|
+
else {
|
|
2717
|
+
if (this.showFilterComponent && this.showSortComponent) {
|
|
2718
|
+
let isFilterChanged = this.checkIfTimeTooltipIsFiltered();
|
|
2719
|
+
let isSortChanged = this.checkIfSortingChanged();
|
|
2720
|
+
this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || (!isSortChanged && !isFilterChanged);
|
|
2721
|
+
}
|
|
2722
|
+
else if (this.showFilterComponent) {
|
|
2723
|
+
this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || !this.checkIfTimeTooltipIsFiltered();
|
|
2724
|
+
}
|
|
2725
|
+
else if (this.showSortComponent) {
|
|
2726
|
+
this.disableTimeFilterApplyBtn = !this.checkIfSortingChanged();
|
|
2727
|
+
}
|
|
2722
2728
|
}
|
|
2723
2729
|
}
|
|
2724
2730
|
checkIfSortingChanged() {
|