@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
|
@@ -6,6 +6,7 @@ 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;
|
|
9
10
|
item: any;
|
|
10
11
|
context: any;
|
|
11
12
|
destroy: Subject<any>;
|
|
@@ -25,13 +26,13 @@ export declare class ListItemDirective implements OnInit, AfterViewInit {
|
|
|
25
26
|
get $last(): any;
|
|
26
27
|
get currentItemWidgets(): {};
|
|
27
28
|
set wmListItem(val: any);
|
|
28
|
-
constructor(inj: Injector, elRef: ElementRef, app: App);
|
|
29
|
+
constructor(inj: Injector, elRef: ElementRef, app: App, _viewParent: ListComponent);
|
|
29
30
|
private registerWatch;
|
|
30
31
|
private itemClassWatcher;
|
|
31
32
|
private disableItemWatcher;
|
|
32
33
|
private setUpCUDHandlers;
|
|
33
34
|
ngOnInit(): void;
|
|
34
35
|
ngAfterViewInit(): void;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ListItemDirective,
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListItemDirective, [null, null, null, { optional: true; }]>;
|
|
36
37
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ListItemDirective, "[wmListItem]", ["listItemRef"], { "wmListItem": "wmListItem"; }, {}, never, never, false, never>;
|
|
37
38
|
}
|
|
@@ -3788,58 +3788,30 @@
|
|
|
3788
3788
|
}
|
|
3789
3789
|
};
|
|
3790
3790
|
const findParent = (lView, viewParentApp) => {
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
let parentObj = findViewParent(lView, { 'parent': {}, 'root': {} });
|
|
3794
|
-
// console.log("---*************--parentObj--*************---", parentObj);
|
|
3795
|
-
let finalParent = {};
|
|
3796
|
-
if (parentObj['parent'] === null || parentObj['root'] === null) {
|
|
3797
|
-
parentObj['root'] = viewParentApp;
|
|
3798
|
-
parentObj['parent'] = {};
|
|
3799
|
-
}
|
|
3800
|
-
let mergFunc = function (objValue, srcValue, key) {
|
|
3801
|
-
const protectedKeys = ['viewParent'];
|
|
3802
|
-
if (protectedKeys.includes(key)) {
|
|
3803
|
-
return objValue;
|
|
3804
|
-
}
|
|
3805
|
-
return srcValue;
|
|
3806
|
-
};
|
|
3807
|
-
if (_.isEmpty(parentObj['parent'])) {
|
|
3808
|
-
finalParent = _.mergeWith(parentObj.root, parentObj.parent, mergFunc);
|
|
3809
|
-
}
|
|
3810
|
-
else {
|
|
3811
|
-
finalParent = _.mergeWith(parentObj.parent, parentObj.root, mergFunc);
|
|
3812
|
-
}
|
|
3813
|
-
// console.log("---*************--finalParent--*************---", finalParent);
|
|
3814
|
-
return finalParent;
|
|
3791
|
+
let parent = findViewParent(lView);
|
|
3792
|
+
return parent ? parent : viewParentApp;
|
|
3815
3793
|
};
|
|
3816
|
-
const findViewParent = (lView
|
|
3794
|
+
const findViewParent = (lView) => {
|
|
3817
3795
|
if (lView[3] === null) {
|
|
3818
|
-
|
|
3819
|
-
return parentObj;
|
|
3796
|
+
return lView[8];
|
|
3820
3797
|
}
|
|
3821
3798
|
let parentlView = lView[3];
|
|
3822
|
-
if (typeof lView[1] === "boolean") {
|
|
3823
|
-
return findViewParent(parentlView
|
|
3799
|
+
if (typeof lView[1] === "boolean") {
|
|
3800
|
+
return findViewParent(parentlView);
|
|
3824
3801
|
}
|
|
3825
3802
|
let componentType = lView[1]["type"];
|
|
3826
3803
|
if (componentType === 0 || componentType === 1) {
|
|
3827
3804
|
let p = lView[8];
|
|
3828
3805
|
// ts-ignore
|
|
3829
|
-
if (p.hasOwnProperty("
|
|
3830
|
-
|
|
3831
|
-
return parentObj;
|
|
3806
|
+
if (p.hasOwnProperty("isDialogComponent")) {
|
|
3807
|
+
return findViewParent(parentlView);
|
|
3832
3808
|
}
|
|
3833
3809
|
else {
|
|
3834
|
-
|
|
3835
|
-
parentObj['parent'] = p;
|
|
3836
|
-
// console.log(".......parentObj........", parentObj)
|
|
3837
|
-
}
|
|
3838
|
-
return findViewParent(parentlView, parentObj);
|
|
3810
|
+
return p;
|
|
3839
3811
|
}
|
|
3840
3812
|
}
|
|
3841
|
-
else {
|
|
3842
|
-
return findViewParent(parentlView
|
|
3813
|
+
else {
|
|
3814
|
+
return findViewParent(parentlView);
|
|
3843
3815
|
}
|
|
3844
3816
|
};
|
|
3845
3817
|
|