@wavemaker/app-ng-runtime 11.5.0-next.141091 → 11.5.0-next.141097
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.
- app-ng-runtime/components/base/bundles/index.umd.js +12 -1
- app-ng-runtime/components/base/esm2020/widgets/common/partial-param/partial-param.directive.mjs +13 -2
- app-ng-runtime/components/base/fesm2015/index.mjs +12 -1
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +12 -1
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/widgets/common/partial-param/partial-param.directive.d.ts +1 -0
- app-ng-runtime/components/data/list/bundles/index.umd.js +8 -6
- app-ng-runtime/components/data/list/esm2020/list-item.directive.mjs +11 -9
- app-ng-runtime/components/data/list/fesm2015/index.mjs +10 -8
- app-ng-runtime/components/data/list/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/fesm2020/index.mjs +8 -8
- app-ng-runtime/components/data/list/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/list-item.directive.d.ts +3 -2
- app-ng-runtime/core/bundles/index.umd.js +11 -39
- app-ng-runtime/core/esm2020/utils/utils.mjs +12 -40
- app-ng-runtime/core/fesm2015/index.mjs +11 -39
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +11 -39
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/utils/utils.d.ts +2 -2
- app-ng-runtime/package.json +1 -1
|
@@ -3782,58 +3782,30 @@ const setListClass = (scope) => {
|
|
|
3782
3782
|
}
|
|
3783
3783
|
};
|
|
3784
3784
|
const findParent = (lView, viewParentApp) => {
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
let parentObj = findViewParent(lView, { 'parent': {}, 'root': {} });
|
|
3788
|
-
// console.log("---*************--parentObj--*************---", parentObj);
|
|
3789
|
-
let finalParent = {};
|
|
3790
|
-
if (parentObj['parent'] === null || parentObj['root'] === null) {
|
|
3791
|
-
parentObj['root'] = viewParentApp;
|
|
3792
|
-
parentObj['parent'] = {};
|
|
3793
|
-
}
|
|
3794
|
-
let mergFunc = function (objValue, srcValue, key) {
|
|
3795
|
-
const protectedKeys = ['viewParent'];
|
|
3796
|
-
if (protectedKeys.includes(key)) {
|
|
3797
|
-
return objValue;
|
|
3798
|
-
}
|
|
3799
|
-
return srcValue;
|
|
3800
|
-
};
|
|
3801
|
-
if (_.isEmpty(parentObj['parent'])) {
|
|
3802
|
-
finalParent = _.mergeWith(parentObj.root, parentObj.parent, mergFunc);
|
|
3803
|
-
}
|
|
3804
|
-
else {
|
|
3805
|
-
finalParent = _.mergeWith(parentObj.parent, parentObj.root, mergFunc);
|
|
3806
|
-
}
|
|
3807
|
-
// console.log("---*************--finalParent--*************---", finalParent);
|
|
3808
|
-
return finalParent;
|
|
3785
|
+
let parent = findViewParent(lView);
|
|
3786
|
+
return parent ? parent : viewParentApp;
|
|
3809
3787
|
};
|
|
3810
|
-
const findViewParent = (lView
|
|
3788
|
+
const findViewParent = (lView) => {
|
|
3811
3789
|
if (lView[3] === null) {
|
|
3812
|
-
|
|
3813
|
-
return parentObj;
|
|
3790
|
+
return lView[8];
|
|
3814
3791
|
}
|
|
3815
3792
|
let parentlView = lView[3];
|
|
3816
|
-
if (typeof lView[1] === "boolean") {
|
|
3817
|
-
return findViewParent(parentlView
|
|
3793
|
+
if (typeof lView[1] === "boolean") {
|
|
3794
|
+
return findViewParent(parentlView);
|
|
3818
3795
|
}
|
|
3819
3796
|
let componentType = lView[1]["type"];
|
|
3820
3797
|
if (componentType === 0 || componentType === 1) {
|
|
3821
3798
|
let p = lView[8];
|
|
3822
3799
|
// ts-ignore
|
|
3823
|
-
if (p.hasOwnProperty("
|
|
3824
|
-
|
|
3825
|
-
return parentObj;
|
|
3800
|
+
if (p.hasOwnProperty("isDialogComponent")) {
|
|
3801
|
+
return findViewParent(parentlView);
|
|
3826
3802
|
}
|
|
3827
3803
|
else {
|
|
3828
|
-
|
|
3829
|
-
parentObj['parent'] = p;
|
|
3830
|
-
// console.log(".......parentObj........", parentObj)
|
|
3831
|
-
}
|
|
3832
|
-
return findViewParent(parentlView, parentObj);
|
|
3804
|
+
return p;
|
|
3833
3805
|
}
|
|
3834
3806
|
}
|
|
3835
|
-
else {
|
|
3836
|
-
return findViewParent(parentlView
|
|
3807
|
+
else {
|
|
3808
|
+
return findViewParent(parentlView);
|
|
3837
3809
|
}
|
|
3838
3810
|
};
|
|
3839
3811
|
|