@nettyapps/ntybase 21.0.35-beta.4 → 21.0.35-beta.6

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.
@@ -1282,6 +1282,9 @@ class NettyAgGridBase extends NettyAppsBase {
1282
1282
  commonService = inject(CommonService);
1283
1283
  sysFunctionProxy = inject(SysfunctionProxy);
1284
1284
  environment = inject(EnvironmentProxy);
1285
+ // Button action management variables
1286
+ menuValid = signal(true, ...(ngDevMode ? [{ debugName: "menuValid" }] : [])); // true: Filter editbox is not visible so the menus are visible
1287
+ refreshButtonValid = signal(false, ...(ngDevMode ? [{ debugName: "refreshButtonValid" }] : [])); // true: Refresh button is enabled
1285
1288
  // Authentication
1286
1289
  authenticationList = [];
1287
1290
  // User access writes
@@ -1305,6 +1308,24 @@ class NettyAgGridBase extends NettyAppsBase {
1305
1308
  // *** METHODS ***
1306
1309
  // ***************************************************************
1307
1310
  popupClose() { this.selectedElement.emit(null); }
1311
+ onFilterTextBoxVisibilityChange(isOpen) {
1312
+ this.menuValid.set(!isOpen);
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
+ }
1308
1329
  /** Set data into the grid */
1309
1330
  setData(data) {
1310
1331
  this.recordList.set(data);
@@ -1750,9 +1771,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
1750
1771
  }
1751
1772
  return this.isFilterValid();
1752
1773
  }, ...(ngDevMode ? [{ debugName: "isFilterExpanded" }] : []));
1753
- // Button action management variables
1754
- menuValid = signal(true, ...(ngDevMode ? [{ debugName: "menuValid" }] : [])); // true: Filter editbox is not visible so the menus are visible
1755
- refreshButtonValid = signal(false, ...(ngDevMode ? [{ debugName: "refreshButtonValid" }] : [])); // true: Refresh button is enabled
1756
1774
  // Open component management
1757
1775
  openEditComponentInPopup = signal(false, ...(ngDevMode ? [{ debugName: "openEditComponentInPopup" }] : []));
1758
1776
  // Services
@@ -1798,12 +1816,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
1798
1816
  }
1799
1817
  return null;
1800
1818
  }
1801
- /**
1802
- * Handle back button click
1803
- */
1804
- backClicked() {
1805
- this.commonService.goBack();
1806
- }
1807
1819
  gotoURL(routePrefix, rightSidenav = [], parameters, type, dialogComponent = null, isNewTab = false, isPopup = this.isEmbedded()) {
1808
1820
  const baseHref = this.environment.getBaseHref().endsWith('/')
1809
1821
  ? this.environment.getBaseHref().slice(0, -1) // Sondaki / işaretini kaldır
@@ -1964,9 +1976,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
1964
1976
  }
1965
1977
  return true;
1966
1978
  }
1967
- onFilterTextBoxVisibilityChange(isOpen) {
1968
- this.menuValid.set(!isOpen);
1969
- }
1970
1979
  // *********************************************************
1971
1980
  // *** Data Management Functions ***
1972
1981
  // *********************************************************
@@ -1996,15 +2005,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
1996
2005
  this.deleteRows(selectedRows);
1997
2006
  }
1998
2007
  }
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
2008
  deleteRows(rows) {
2009
2009
  this.nettyAppsProxy.deleteList(rows).subscribe({
2010
2010
  next: () => {