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