@nettyapps/ntybase 21.0.35-beta.5 → 21.0.35-beta.7
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.
|
@@ -1311,6 +1311,21 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1311
1311
|
onFilterTextBoxVisibilityChange(isOpen) {
|
|
1312
1312
|
this.menuValid.set(!isOpen);
|
|
1313
1313
|
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Handle back button click
|
|
1316
|
+
*/
|
|
1317
|
+
backClicked() {
|
|
1318
|
+
this.commonService.goBack();
|
|
1319
|
+
}
|
|
1320
|
+
async refreshData() {
|
|
1321
|
+
try {
|
|
1322
|
+
this.loadData();
|
|
1323
|
+
await this.alertService.showAlert('@dataRefreshedSuccessfully');
|
|
1324
|
+
}
|
|
1325
|
+
catch (err) {
|
|
1326
|
+
this.alertService.showError(err);
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1314
1329
|
/** Set data into the grid */
|
|
1315
1330
|
setData(data) {
|
|
1316
1331
|
this.recordList.set(data);
|
|
@@ -1769,6 +1784,7 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1769
1784
|
queryParameterType = toSignal(this.routerActive.queryParamMap.pipe(map((params) => params.get('type')), map((value) => this.parseOrReturnValue(value))), {
|
|
1770
1785
|
initialValue: null, // set initial value to null
|
|
1771
1786
|
});
|
|
1787
|
+
openInPopup = signal(false, ...(ngDevMode ? [{ debugName: "openInPopup" }] : [])); // true: Open add / edit component in popup
|
|
1772
1788
|
// ---------------------------------------------------
|
|
1773
1789
|
// --- RECORD LIST ---
|
|
1774
1790
|
// ---------------------------------------------------
|
|
@@ -1801,12 +1817,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1801
1817
|
}
|
|
1802
1818
|
return null;
|
|
1803
1819
|
}
|
|
1804
|
-
/**
|
|
1805
|
-
* Handle back button click
|
|
1806
|
-
*/
|
|
1807
|
-
backClicked() {
|
|
1808
|
-
this.commonService.goBack();
|
|
1809
|
-
}
|
|
1810
1820
|
gotoURL(routePrefix, rightSidenav = [], parameters, type, dialogComponent = null, isNewTab = false, isPopup = this.isEmbedded()) {
|
|
1811
1821
|
const baseHref = this.environment.getBaseHref().endsWith('/')
|
|
1812
1822
|
? this.environment.getBaseHref().slice(0, -1) // Sondaki / işaretini kaldır
|
|
@@ -1996,15 +2006,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1996
2006
|
this.deleteRows(selectedRows);
|
|
1997
2007
|
}
|
|
1998
2008
|
}
|
|
1999
|
-
async refreshData() {
|
|
2000
|
-
try {
|
|
2001
|
-
this.loadData();
|
|
2002
|
-
await this.alertService.showAlert('@dataRefreshedSuccessfully');
|
|
2003
|
-
}
|
|
2004
|
-
catch (err) {
|
|
2005
|
-
this.alertService.showError(err);
|
|
2006
|
-
}
|
|
2007
|
-
}
|
|
2008
2009
|
deleteRows(rows) {
|
|
2009
2010
|
this.nettyAppsProxy.deleteList(rows).subscribe({
|
|
2010
2011
|
next: () => {
|