@nettyapps/ntybase 21.1.7 → 21.1.9

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.
@@ -644,13 +644,14 @@ class CommonService {
644
644
  */
645
645
  normalizeTurkish(text) {
646
646
  return text
647
- .toLocaleLowerCase('tr-TR')
647
+ .replace(/I/g, 'i')
648
648
  .replace(/[ıİ]/g, 'i')
649
649
  .replace(/[ğĞ]/g, 'g')
650
650
  .replace(/[üÜ]/g, 'u')
651
651
  .replace(/[şŞ]/g, 's')
652
652
  .replace(/[öÖ]/g, 'o')
653
- .replace(/[çÇ]/g, 'c');
653
+ .replace(/[çÇ]/g, 'c')
654
+ .toLocaleLowerCase('tr-TR');
654
655
  }
655
656
  /**
656
657
  * Gets the clean URL path without fragments or query params
@@ -704,7 +705,6 @@ class CommonService {
704
705
  * @returns merged string
705
706
  */
706
707
  mergeColumns(columns, seperator = ' ') {
707
- console.log('mergeColumns', columns);
708
708
  let result = '';
709
709
  columns.forEach((column) => {
710
710
  if (!(column == undefined || column == null)) {
@@ -1328,15 +1328,19 @@ class NettyAgGridBase extends NettyAppsBase {
1328
1328
  backClicked() {
1329
1329
  this.commonService.goBack();
1330
1330
  }
1331
- /** Set data into the grid */
1332
- setData(data, initialize = false) {
1331
+ /**
1332
+ * Set data into the grid
1333
+ * @param data Array of records to set
1334
+ * @param hideWarning hide the warning message if no records found
1335
+ */
1336
+ setData(data, hideWarning = false) {
1333
1337
  this.recordList.set(data);
1334
1338
  if (this.columnDefs() == null || this.columnDefs().length == 0) {
1335
1339
  this.initAgGrid();
1336
1340
  }
1337
1341
  if (this.searchValue() && this.gridApi) {
1338
1342
  this.gridApi.setGridOption('quickFilterText', this.searchValue());
1339
- if (!initialize) {
1343
+ if (!hideWarning) {
1340
1344
  if (this.recordList() == undefined || this.recordList().length == 0) {
1341
1345
  if (!this._isEmbedded()) {
1342
1346
  this.alertService.showWarning('@recordNotFoundSearch');
@@ -1582,7 +1586,7 @@ class NettyAgGridBase extends NettyAppsBase {
1582
1586
  });
1583
1587
  this.gridApi.setGridOption('rowSelection', { mode: 'singleRow', checkboxes: false });
1584
1588
  }
1585
- if (!this.readOnly()) {
1589
+ if (this.readOnly()) {
1586
1590
  this.columnDefs().unshift({
1587
1591
  headerName: this.translateService.instant('@select'), sortable: false, resizable: false,
1588
1592
  filter: false, minWidth: 80, maxWidth: 80, suppressSizeToFit: true,
@@ -2000,7 +2004,7 @@ class NettyAgGridListBase extends NettyAgGridBase {
2000
2004
  }
2001
2005
  //this.loadData();
2002
2006
  }
2003
- else {
2007
+ else if (!this._isPopupValid()) {
2004
2008
  // Clear right side nav if parameterGUID is not provided
2005
2009
  this.commonService.clearOutlet();
2006
2010
  }