@wavemaker/app-ng-runtime 11.5.0-next.26225 → 11.5.0-next.26227

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.
@@ -1876,14 +1876,10 @@ class PartialParamHandlerDirective {
1876
1876
  }
1877
1877
  registerParams(name, value, bindExpr, type) {
1878
1878
  this.widgetRef.partialParams[name] = value;
1879
- let viewParent = this.widgetRef.getViewParent();
1880
- if (this.widgetRef.inj._tNode.parent === null) {
1881
- viewParent = this.getViewParent(viewParent);
1882
- }
1883
1879
  if (!value && bindExpr) {
1884
1880
  this.widgetRef.registerDestroyListener(
1885
1881
  //[Todo-CSP]: expr fn should be generated be default
1886
- $watch(bindExpr, viewParent, _.get(this.widgetRef, 'context'), nv => {
1882
+ $watch(bindExpr, this.widgetRef.getViewParent(), _.get(this.widgetRef, 'context'), nv => {
1887
1883
  this.widgetRef.partialParams[name] = nv;
1888
1884
  // notify the partial container of the param changes
1889
1885
  this.widgetRef.params$.next();
@@ -1893,16 +1889,6 @@ class PartialParamHandlerDirective {
1893
1889
  this.widgetRef.params$.next();
1894
1890
  }
1895
1891
  }
1896
- getViewParent(viewParent) {
1897
- let parent = viewParent.viewParent;
1898
- if (!parent) {
1899
- return viewParent;
1900
- }
1901
- if (parent.hasOwnProperty("isDynamicComponent") || parent.hasOwnProperty("isPageComponent")) {
1902
- return parent;
1903
- }
1904
- return this.getViewParent(parent);
1905
- }
1906
1892
  }
1907
1893
  PartialParamHandlerDirective.ɵfac = function PartialParamHandlerDirective_Factory(t) { return new (t || PartialParamHandlerDirective)(i0.ɵɵdirectiveInject(WidgetRef, 2)); };
1908
1894
  PartialParamHandlerDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PartialParamHandlerDirective, selectors: [["", "partialContainer", ""]] });