@wavemaker/app-ng-runtime 11.5.0-next.26221 → 11.5.0-next.26222
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
|
@@ -3779,58 +3779,30 @@ const setListClass = (scope) => {
|
|
|
3779
3779
|
}
|
|
3780
3780
|
};
|
|
3781
3781
|
const findParent = (lView, viewParentApp) => {
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
let parentObj = findViewParent(lView, { 'parent': {}, 'root': {} });
|
|
3785
|
-
// console.log("---*************--parentObj--*************---", parentObj);
|
|
3786
|
-
let finalParent = {};
|
|
3787
|
-
if (parentObj['parent'] === null || parentObj['root'] === null) {
|
|
3788
|
-
parentObj['root'] = viewParentApp;
|
|
3789
|
-
parentObj['parent'] = {};
|
|
3790
|
-
}
|
|
3791
|
-
let mergFunc = function (objValue, srcValue, key) {
|
|
3792
|
-
const protectedKeys = ['viewParent'];
|
|
3793
|
-
if (protectedKeys.includes(key)) {
|
|
3794
|
-
return objValue;
|
|
3795
|
-
}
|
|
3796
|
-
return srcValue;
|
|
3797
|
-
};
|
|
3798
|
-
if (_.isEmpty(parentObj['parent'])) {
|
|
3799
|
-
finalParent = _.mergeWith(parentObj.root, parentObj.parent, mergFunc);
|
|
3800
|
-
}
|
|
3801
|
-
else {
|
|
3802
|
-
finalParent = _.mergeWith(parentObj.parent, parentObj.root, mergFunc);
|
|
3803
|
-
}
|
|
3804
|
-
// console.log("---*************--finalParent--*************---", finalParent);
|
|
3805
|
-
return finalParent;
|
|
3782
|
+
let parent = findViewParent(lView);
|
|
3783
|
+
return parent ? parent : viewParentApp;
|
|
3806
3784
|
};
|
|
3807
|
-
const findViewParent = (lView
|
|
3785
|
+
const findViewParent = (lView) => {
|
|
3808
3786
|
if (lView[3] === null) {
|
|
3809
|
-
|
|
3810
|
-
return parentObj;
|
|
3787
|
+
return lView[8];
|
|
3811
3788
|
}
|
|
3812
3789
|
let parentlView = lView[3];
|
|
3813
|
-
if (typeof lView[1] === "boolean") {
|
|
3814
|
-
return findViewParent(parentlView
|
|
3790
|
+
if (typeof lView[1] === "boolean") {
|
|
3791
|
+
return findViewParent(parentlView);
|
|
3815
3792
|
}
|
|
3816
3793
|
let componentType = lView[1]["type"];
|
|
3817
3794
|
if (componentType === 0 || componentType === 1) {
|
|
3818
3795
|
let p = lView[8];
|
|
3819
3796
|
// ts-ignore
|
|
3820
|
-
if (p.hasOwnProperty("
|
|
3821
|
-
|
|
3822
|
-
return parentObj;
|
|
3797
|
+
if (p.hasOwnProperty("isDialogComponent")) {
|
|
3798
|
+
return findViewParent(parentlView);
|
|
3823
3799
|
}
|
|
3824
3800
|
else {
|
|
3825
|
-
|
|
3826
|
-
parentObj['parent'] = p;
|
|
3827
|
-
// console.log(".......parentObj........", parentObj)
|
|
3828
|
-
}
|
|
3829
|
-
return findViewParent(parentlView, parentObj);
|
|
3801
|
+
return p;
|
|
3830
3802
|
}
|
|
3831
3803
|
}
|
|
3832
|
-
else {
|
|
3833
|
-
return findViewParent(parentlView
|
|
3804
|
+
else {
|
|
3805
|
+
return findViewParent(parentlView);
|
|
3834
3806
|
}
|
|
3835
3807
|
};
|
|
3836
3808
|
|