@nettyapps/ntybase 21.0.15 → 21.0.16
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.
|
@@ -1198,6 +1198,9 @@ class NettyAgGridBase {
|
|
|
1198
1198
|
onElementSelect = output();
|
|
1199
1199
|
// AG Grid Filter
|
|
1200
1200
|
customFilters = signal(this.getStoredFilterMode(), ...(ngDevMode ? [{ debugName: "customFilters" }] : []));
|
|
1201
|
+
// Filter section
|
|
1202
|
+
isFilterValid = signal(true, ...(ngDevMode ? [{ debugName: "isFilterValid" }] : []));
|
|
1203
|
+
isFilterExpanded = signal(true, ...(ngDevMode ? [{ debugName: "isFilterExpanded" }] : []));
|
|
1201
1204
|
// Authentication
|
|
1202
1205
|
authenticationList = [];
|
|
1203
1206
|
// User access writes
|
|
@@ -1635,6 +1638,23 @@ class NettyAgGridBase {
|
|
|
1635
1638
|
effect(() => {
|
|
1636
1639
|
this.onElementSelect.emit(this.selectedRows());
|
|
1637
1640
|
});
|
|
1641
|
+
// Manage filter expanded state
|
|
1642
|
+
effect(() => {
|
|
1643
|
+
if (this.isEmbedded()) {
|
|
1644
|
+
this.isFilterExpanded.set(false);
|
|
1645
|
+
}
|
|
1646
|
+
else {
|
|
1647
|
+
this.isFilterExpanded.set(this.isFilterValid());
|
|
1648
|
+
}
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
onReverseIsFilterValid() {
|
|
1652
|
+
if (this.isEmbedded()) {
|
|
1653
|
+
this.isFilterExpanded.set(false);
|
|
1654
|
+
}
|
|
1655
|
+
else {
|
|
1656
|
+
this.isFilterValid.update(a => !a);
|
|
1657
|
+
}
|
|
1638
1658
|
}
|
|
1639
1659
|
/**
|
|
1640
1660
|
* Validates if the given value is equal to null,undefined or ''
|