@nettyapps/ntybase 21.1.10 → 21.1.12

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.
@@ -2008,15 +2008,13 @@ class NettyAgGridListBase extends NettyAgGridBase {
2008
2008
  }
2009
2009
  if (this.hasValidValue(this.parameterGUID())) {
2010
2010
  this.setFilter();
2011
- if (this._isEmbedded()) {
2012
- this.loadData();
2013
- }
2014
- //this.loadData();
2011
+ this.loadData();
2015
2012
  }
2016
2013
  else if (!this._isPopupValid()) {
2017
2014
  // Clear right side nav if parameterGUID is not provided
2018
2015
  this.commonService.clearOutlet();
2019
2016
  }
2017
+ console.log("effect.", this.parameterGUID());
2020
2018
  });
2021
2019
  effect(() => {
2022
2020
  const update = this.commonService.updates();
@@ -2050,6 +2048,27 @@ class NettyAgGridListBase extends NettyAgGridBase {
2050
2048
  });
2051
2049
  }
2052
2050
  });
2051
+ effect(() => {
2052
+ const isEmbedded = this._isEmbedded();
2053
+ const currentPref = this.preferenceType();
2054
+ const currentSearch = this.searchValueName();
2055
+ if (isEmbedded) {
2056
+ if (currentPref && !currentPref.endsWith('_isEmbedded')) {
2057
+ this.preferenceType.set(`${currentPref}_isEmbedded`);
2058
+ }
2059
+ if (currentSearch && !currentSearch.endsWith('_isEmbedded')) {
2060
+ this.searchValueName.set(`${currentSearch}_isEmbedded`);
2061
+ }
2062
+ }
2063
+ else {
2064
+ if (currentPref?.endsWith('_isEmbedded')) {
2065
+ this.preferenceType.set(currentPref.replace('_isEmbedded', ''));
2066
+ }
2067
+ if (currentSearch?.endsWith('_isEmbedded')) {
2068
+ this.searchValueName.set(currentSearch.replace('_isEmbedded', ''));
2069
+ }
2070
+ }
2071
+ });
2053
2072
  }
2054
2073
  /**
2055
2074
  * Validates if the given value is equal to null,undefined or ''