@wavemaker/app-ng-runtime 11.5.0-next.24744 → 11.5.0-next.24745
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 +1 -12
- app-ng-runtime/components/base/esm2020/widgets/common/partial-param/partial-param.directive.mjs +2 -13
- app-ng-runtime/components/base/fesm2015/index.mjs +1 -12
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +1 -12
- 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 +0 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js +6 -8
- app-ng-runtime/components/data/list/esm2020/list-item.directive.mjs +9 -11
- app-ng-runtime/components/data/list/fesm2015/index.mjs +8 -10
- 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 +2 -3
- app-ng-runtime/core/bundles/index.umd.js +39 -11
- app-ng-runtime/core/esm2020/utils/utils.mjs +40 -12
- app-ng-runtime/core/fesm2015/index.mjs +39 -11
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +39 -11
- 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
|
@@ -6,7 +6,6 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class ListItemDirective implements OnInit, AfterViewInit {
|
|
7
7
|
private inj;
|
|
8
8
|
private app;
|
|
9
|
-
_viewParent: ListComponent;
|
|
10
9
|
item: any;
|
|
11
10
|
context: any;
|
|
12
11
|
destroy: Subject<any>;
|
|
@@ -26,13 +25,13 @@ export declare class ListItemDirective implements OnInit, AfterViewInit {
|
|
|
26
25
|
get $last(): any;
|
|
27
26
|
get currentItemWidgets(): {};
|
|
28
27
|
set wmListItem(val: any);
|
|
29
|
-
constructor(inj: Injector, elRef: ElementRef, app: App
|
|
28
|
+
constructor(inj: Injector, elRef: ElementRef, app: App);
|
|
30
29
|
private registerWatch;
|
|
31
30
|
private itemClassWatcher;
|
|
32
31
|
private disableItemWatcher;
|
|
33
32
|
private setUpCUDHandlers;
|
|
34
33
|
ngOnInit(): void;
|
|
35
34
|
ngAfterViewInit(): void;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ListItemDirective,
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListItemDirective, never>;
|
|
37
36
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ListItemDirective, "[wmListItem]", ["listItemRef"], { "wmListItem": "wmListItem"; }, {}, never, never, false, never>;
|
|
38
37
|
}
|
|
@@ -3787,30 +3787,58 @@
|
|
|
3787
3787
|
}
|
|
3788
3788
|
};
|
|
3789
3789
|
const findParent = (lView, viewParentApp) => {
|
|
3790
|
-
|
|
3791
|
-
|
|
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;
|
|
3792
3814
|
};
|
|
3793
|
-
const findViewParent = (lView) => {
|
|
3815
|
+
const findViewParent = (lView, parentObj) => {
|
|
3794
3816
|
if (lView[3] === null) {
|
|
3795
|
-
|
|
3817
|
+
parentObj['root'] = lView[8];
|
|
3818
|
+
return parentObj;
|
|
3796
3819
|
}
|
|
3797
3820
|
let parentlView = lView[3];
|
|
3798
|
-
if (typeof lView[1] === "boolean") {
|
|
3799
|
-
return findViewParent(parentlView);
|
|
3821
|
+
if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
|
|
3822
|
+
return findViewParent(parentlView, parentObj);
|
|
3800
3823
|
}
|
|
3801
3824
|
let componentType = lView[1]["type"];
|
|
3802
3825
|
if (componentType === 0 || componentType === 1) {
|
|
3803
3826
|
let p = lView[8];
|
|
3804
3827
|
// ts-ignore
|
|
3805
|
-
if (p.hasOwnProperty("
|
|
3806
|
-
|
|
3828
|
+
if (p.hasOwnProperty("isDynamicComponent") || p.hasOwnProperty("isPageComponent")) {
|
|
3829
|
+
parentObj['root'] = p;
|
|
3830
|
+
return parentObj;
|
|
3807
3831
|
}
|
|
3808
3832
|
else {
|
|
3809
|
-
|
|
3833
|
+
if (_.isEmpty(parentObj['parent'])) {
|
|
3834
|
+
parentObj['parent'] = p;
|
|
3835
|
+
// console.log(".......parentObj........", parentObj)
|
|
3836
|
+
}
|
|
3837
|
+
return findViewParent(parentlView, parentObj);
|
|
3810
3838
|
}
|
|
3811
3839
|
}
|
|
3812
|
-
else {
|
|
3813
|
-
return findViewParent(parentlView);
|
|
3840
|
+
else { // when componentType == 2, then fetch parent again
|
|
3841
|
+
return findViewParent(parentlView, parentObj);
|
|
3814
3842
|
}
|
|
3815
3843
|
};
|
|
3816
3844
|
|