@nettyapps/ntybase 21.0.35-beta.6 → 21.0.35-beta.8
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Injectable, inject, NgModule, signal, input, output, computed, effect, ViewChild, model, Input, InjectionToken, Optional, Inject } from '@angular/core';
|
|
2
|
+
import { Component, Injectable, inject, NgModule, signal, input, output, computed, linkedSignal, effect, ViewChild, model, Input, InjectionToken, Optional, Inject } from '@angular/core';
|
|
3
3
|
import * as i1$3 from '@angular/common/http';
|
|
4
4
|
import { HttpErrorResponse, HttpResponse, HTTP_INTERCEPTORS, HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
5
|
import { of, throwError, Subject, lastValueFrom, map, catchError as catchError$1, finalize, take as take$1, takeUntil } from 'rxjs';
|
|
@@ -1762,15 +1762,16 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1762
1762
|
// Filter section
|
|
1763
1763
|
hasFilter = input(false, ...(ngDevMode ? [{ debugName: "hasFilter" }] : [])); // Does the component have a filter
|
|
1764
1764
|
isFilterValid = signal(true, ...(ngDevMode ? [{ debugName: "isFilterValid" }] : [])); // Can the filter be used
|
|
1765
|
-
isFilterExpanded =
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1765
|
+
isFilterExpanded = linkedSignal({ ...(ngDevMode ? { debugName: "isFilterExpanded" } : {}), source: () => ({
|
|
1766
|
+
embedded: this.isEmbedded(),
|
|
1767
|
+
hasFilter: this.hasFilter(),
|
|
1768
|
+
valid: this.isFilterValid(),
|
|
1769
|
+
}),
|
|
1770
|
+
computation: (s) => {
|
|
1771
|
+
if (s.embedded || !s.hasFilter)
|
|
1772
|
+
return false;
|
|
1773
|
+
return s.valid;
|
|
1774
|
+
} });
|
|
1774
1775
|
// Open component management
|
|
1775
1776
|
openEditComponentInPopup = signal(false, ...(ngDevMode ? [{ debugName: "openEditComponentInPopup" }] : []));
|
|
1776
1777
|
// Services
|
|
@@ -1784,6 +1785,7 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1784
1785
|
queryParameterType = toSignal(this.routerActive.queryParamMap.pipe(map((params) => params.get('type')), map((value) => this.parseOrReturnValue(value))), {
|
|
1785
1786
|
initialValue: null, // set initial value to null
|
|
1786
1787
|
});
|
|
1788
|
+
openInPopup = signal(false, ...(ngDevMode ? [{ debugName: "openInPopup" }] : [])); // true: Open add / edit component in popup
|
|
1787
1789
|
// ---------------------------------------------------
|
|
1788
1790
|
// --- RECORD LIST ---
|
|
1789
1791
|
// ---------------------------------------------------
|