ng-tailwind 4.2.18 → 4.2.19
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/fesm2020/ng-tailwind.mjs
CHANGED
|
@@ -3783,7 +3783,7 @@ class NgtDatatableComponent {
|
|
|
3783
3783
|
if (requestedFilters) {
|
|
3784
3784
|
for (const reference in requestedFilters) {
|
|
3785
3785
|
const filter = requestedFilters[reference];
|
|
3786
|
-
if (this.isValidFilter(filter)) {
|
|
3786
|
+
if (this.isValidFilter(filter, reference)) {
|
|
3787
3787
|
if (filter instanceof NgtCustomFilter) {
|
|
3788
3788
|
if (filter.tagLabel) {
|
|
3789
3789
|
this.filtersDescription[reference] = filter.tagLabel;
|
|
@@ -3853,17 +3853,16 @@ class NgtDatatableComponent {
|
|
|
3853
3853
|
canApplyFilters(filters) {
|
|
3854
3854
|
if (!this.searching) {
|
|
3855
3855
|
for (const reference in filters) {
|
|
3856
|
-
if (this.isValidFilter(filters[reference])) {
|
|
3856
|
+
if (this.isValidFilter(filters[reference], reference)) {
|
|
3857
3857
|
return true;
|
|
3858
3858
|
}
|
|
3859
3859
|
}
|
|
3860
3860
|
}
|
|
3861
3861
|
return false;
|
|
3862
3862
|
}
|
|
3863
|
-
isValidFilter(filter) {
|
|
3864
|
-
const
|
|
3865
|
-
const
|
|
3866
|
-
const isApplied = this.hasAppliedFilter(filter);
|
|
3863
|
+
isValidFilter(filter, reference) {
|
|
3864
|
+
const hasValue = !!((filter instanceof NgtCustomFilter && filter.term) || filter);
|
|
3865
|
+
const isApplied = this.hasAppliedFilter(reference);
|
|
3867
3866
|
return isApplied || (!isApplied && hasValue);
|
|
3868
3867
|
}
|
|
3869
3868
|
destroySubscriptions() {
|