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