@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.
@@ -4,7 +4,6 @@ export declare class PartialParamHandlerDirective {
4
4
  private widgetRef;
5
5
  constructor(widgetRef: any);
6
6
  registerParams(name: string, value: string, bindExpr: string, type: string): void;
7
- getViewParent(viewParent: any): any;
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<PartialParamHandlerDirective, [{ self: true; }]>;
9
8
  static ɵdir: i0.ɵɵDirectiveDeclaration<PartialParamHandlerDirective, "[partialContainer]", never, {}, {}, never, never, false, never>;
10
9
  }
@@ -3791,28 +3791,35 @@
3791
3791
  return parent ? parent : viewParentApp;
3792
3792
  };
3793
3793
  const findViewParent = (lView) => {
3794
- if (lView[3] === null) {
3794
+ return lView[16][8];
3795
+ /*if(lView[3] === null) {
3795
3796
  return lView[8];
3796
3797
  }
3797
3798
  let parentlView = lView[3];
3798
- if (typeof lView[1] === "boolean") {
3799
+ if(typeof lView[1] === "boolean") {
3799
3800
  return findViewParent(parentlView);
3800
3801
  }
3801
3802
  let componentType = lView[1]["type"];
3802
- if (componentType === 0 || componentType === 1) {
3803
+ if(componentType === 0 || componentType === 1) {
3803
3804
  let p = lView[8];
3804
3805
  // ts-ignore
3805
- if (p.hasOwnProperty("isDialogComponent")) {
3806
+ if(p.hasOwnProperty("isDialogComponent") || p.hasOwnProperty("isContainerDirective")) {
3806
3807
  return findViewParent(parentlView);
3807
- }
3808
- else {
3808
+ } else {
3809
3809
  return p;
3810
3810
  }
3811
- }
3812
- else {
3811
+ } else {
3813
3812
  return findViewParent(parentlView);
3814
- }
3813
+ }*/
3815
3814
  };
3815
+ /*export const getParent = (parent: any) => {
3816
+ if(parent.hasOwnProperty("isDynamicComponent") || parent.hasOwnProperty("isPageComponent")) {
3817
+ return parent
3818
+ } else{
3819
+ return parent.viewParent ? getParent(parent.viewParent) : parent;
3820
+ }
3821
+
3822
+ }*/
3816
3823
 
3817
3824
  var Utils = /*#__PURE__*/Object.freeze({
3818
3825
  __proto__: null,