@wavemaker/app-ng-runtime 11.5.0-next.24745 → 11.5.0-next.24747

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.
Files changed (37) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +23 -9
  2. app-ng-runtime/components/base/esm2020/widgets/common/base/base-field-validations.mjs +12 -9
  3. app-ng-runtime/components/base/esm2020/widgets/common/partial-param/partial-param.directive.mjs +13 -2
  4. app-ng-runtime/components/base/fesm2015/index.mjs +23 -9
  5. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  6. app-ng-runtime/components/base/fesm2020/index.mjs +23 -9
  7. app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
  8. app-ng-runtime/components/base/widgets/common/base/base-field-validations.d.ts +1 -0
  9. app-ng-runtime/components/base/widgets/common/partial-param/partial-param.directive.d.ts +1 -0
  10. app-ng-runtime/components/data/list/bundles/index.umd.js +8 -6
  11. app-ng-runtime/components/data/list/esm2020/list-item.directive.mjs +11 -9
  12. app-ng-runtime/components/data/list/fesm2015/index.mjs +10 -8
  13. app-ng-runtime/components/data/list/fesm2015/index.mjs.map +1 -1
  14. app-ng-runtime/components/data/list/fesm2020/index.mjs +8 -8
  15. app-ng-runtime/components/data/list/fesm2020/index.mjs.map +1 -1
  16. app-ng-runtime/components/data/list/list-item.directive.d.ts +3 -2
  17. app-ng-runtime/components/input/default/bundles/index.umd.js +1 -1
  18. app-ng-runtime/components/input/default/esm2020/base-form-custom.component.mjs +2 -2
  19. app-ng-runtime/components/input/default/fesm2015/index.mjs +1 -1
  20. app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
  21. app-ng-runtime/components/input/default/fesm2020/index.mjs +1 -1
  22. app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
  23. app-ng-runtime/core/bundles/index.umd.js +12 -40
  24. app-ng-runtime/core/esm2020/utils/utils.mjs +12 -40
  25. app-ng-runtime/core/esm2020/utils/watcher.mjs +2 -2
  26. app-ng-runtime/core/fesm2015/index.mjs +12 -40
  27. app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
  28. app-ng-runtime/core/fesm2020/index.mjs +12 -40
  29. app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
  30. app-ng-runtime/core/utils/utils.d.ts +2 -2
  31. app-ng-runtime/package.json +1 -1
  32. app-ng-runtime/variables/bundles/index.umd.js +2 -1
  33. app-ng-runtime/variables/esm2020/service/variables.service.mjs +3 -2
  34. app-ng-runtime/variables/fesm2015/index.mjs +2 -1
  35. app-ng-runtime/variables/fesm2015/index.mjs.map +1 -1
  36. app-ng-runtime/variables/fesm2020/index.mjs +2 -1
  37. app-ng-runtime/variables/fesm2020/index.mjs.map +1 -1
@@ -2188,7 +2188,7 @@
2188
2188
  };
2189
2189
  const $watch = (expr, $scope, $locals, listener, identifier = watchIdGenerator.nextUid(), doNotClone = false, config = {}, isMuted) => {
2190
2190
  if (expr.indexOf('[$i]') !== -1) {
2191
- let watchInfo = getUpdatedWatcInfo(expr, config && config.arrayType, listener);
2191
+ let watchInfo = getUpdatedWatcInfo(expr, config && (config.arrayType || config.isList), listener);
2192
2192
  expr = watchInfo.expr;
2193
2193
  listener = watchInfo.listener;
2194
2194
  }
@@ -3787,58 +3787,30 @@
3787
3787
  }
3788
3788
  };
3789
3789
  const findParent = (lView, viewParentApp) => {
3790
- // console.log("---*************--lView--*************---", lView);
3791
- // console.log("---*************--viewParentApp--*************---", viewParentApp);
3792
- let parentObj = findViewParent(lView, { 'parent': {}, 'root': {} });
3793
- // console.log("---*************--parentObj--*************---", parentObj);
3794
- let finalParent = {};
3795
- if (parentObj['parent'] === null || parentObj['root'] === null) {
3796
- parentObj['root'] = viewParentApp;
3797
- parentObj['parent'] = {};
3798
- }
3799
- let mergFunc = function (objValue, srcValue, key) {
3800
- const protectedKeys = ['viewParent'];
3801
- if (protectedKeys.includes(key)) {
3802
- return objValue;
3803
- }
3804
- return srcValue;
3805
- };
3806
- if (_.isEmpty(parentObj['parent'])) {
3807
- finalParent = _.mergeWith(parentObj.root, parentObj.parent, mergFunc);
3808
- }
3809
- else {
3810
- finalParent = _.mergeWith(parentObj.parent, parentObj.root, mergFunc);
3811
- }
3812
- // console.log("---*************--finalParent--*************---", finalParent);
3813
- return finalParent;
3790
+ let parent = findViewParent(lView);
3791
+ return parent ? parent : viewParentApp;
3814
3792
  };
3815
- const findViewParent = (lView, parentObj) => {
3793
+ const findViewParent = (lView) => {
3816
3794
  if (lView[3] === null) {
3817
- parentObj['root'] = lView[8];
3818
- return parentObj;
3795
+ return lView[8];
3819
3796
  }
3820
3797
  let parentlView = lView[3];
3821
- if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
3822
- return findViewParent(parentlView, parentObj);
3798
+ if (typeof lView[1] === "boolean") {
3799
+ return findViewParent(parentlView);
3823
3800
  }
3824
3801
  let componentType = lView[1]["type"];
3825
3802
  if (componentType === 0 || componentType === 1) {
3826
3803
  let p = lView[8];
3827
3804
  // ts-ignore
3828
- if (p.hasOwnProperty("isDynamicComponent") || p.hasOwnProperty("isPageComponent")) {
3829
- parentObj['root'] = p;
3830
- return parentObj;
3805
+ if (p.hasOwnProperty("isDialogComponent")) {
3806
+ return findViewParent(parentlView);
3831
3807
  }
3832
3808
  else {
3833
- if (_.isEmpty(parentObj['parent'])) {
3834
- parentObj['parent'] = p;
3835
- // console.log(".......parentObj........", parentObj)
3836
- }
3837
- return findViewParent(parentlView, parentObj);
3809
+ return p;
3838
3810
  }
3839
3811
  }
3840
- else { // when componentType == 2, then fetch parent again
3841
- return findViewParent(parentlView, parentObj);
3812
+ else {
3813
+ return findViewParent(parentlView);
3842
3814
  }
3843
3815
  };
3844
3816