@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
|
@@ -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
|
}
|
|
@@ -3787,58 +3787,30 @@
|
|
|
3787
3787
|
}
|
|
3788
3788
|
};
|
|
3789
3789
|
const findParent = (lView, viewParentApp) => {
|
|
3790
|
-
|
|
3791
|
-
|
|
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;
|
|
3790
|
+
let parent = findViewParent(lView);
|
|
3791
|
+
return parent ? parent : viewParentApp;
|
|
3814
3792
|
};
|
|
3815
|
-
const findViewParent = (lView
|
|
3793
|
+
const findViewParent = (lView) => {
|
|
3816
3794
|
if (lView[3] === null) {
|
|
3817
|
-
|
|
3818
|
-
return parentObj;
|
|
3795
|
+
return lView[8];
|
|
3819
3796
|
}
|
|
3820
3797
|
let parentlView = lView[3];
|
|
3821
|
-
if (typeof lView[1] === "boolean") {
|
|
3822
|
-
return findViewParent(parentlView
|
|
3798
|
+
if (typeof lView[1] === "boolean") {
|
|
3799
|
+
return findViewParent(parentlView);
|
|
3823
3800
|
}
|
|
3824
3801
|
let componentType = lView[1]["type"];
|
|
3825
3802
|
if (componentType === 0 || componentType === 1) {
|
|
3826
3803
|
let p = lView[8];
|
|
3827
3804
|
// ts-ignore
|
|
3828
|
-
if (p.hasOwnProperty("
|
|
3829
|
-
|
|
3830
|
-
return parentObj;
|
|
3805
|
+
if (p.hasOwnProperty("isDialogComponent")) {
|
|
3806
|
+
return findViewParent(parentlView);
|
|
3831
3807
|
}
|
|
3832
3808
|
else {
|
|
3833
|
-
|
|
3834
|
-
parentObj['parent'] = p;
|
|
3835
|
-
// console.log(".......parentObj........", parentObj)
|
|
3836
|
-
}
|
|
3837
|
-
return findViewParent(parentlView, parentObj);
|
|
3809
|
+
return p;
|
|
3838
3810
|
}
|
|
3839
3811
|
}
|
|
3840
|
-
else {
|
|
3841
|
-
return findViewParent(parentlView
|
|
3812
|
+
else {
|
|
3813
|
+
return findViewParent(parentlView);
|
|
3842
3814
|
}
|
|
3843
3815
|
};
|
|
3844
3816
|
|