@wavemaker/app-ng-runtime 11.5.0-next.24737 → 11.5.0-next.24739
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 +24 -20
- app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +13 -20
- app-ng-runtime/components/base/esm2020/widgets/common/partial-param/partial-param.directive.mjs +13 -2
- app-ng-runtime/components/base/fesm2015/index.mjs +24 -20
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +24 -20
- 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/input/epoch/bundles/index.umd.js +6 -11
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +2 -3
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +6 -11
- app-ng-runtime/components/input/epoch/esm2020/date-time/date-time.component.mjs +2 -2
- app-ng-runtime/components/input/epoch/esm2020/time/time.component.mjs +2 -2
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +6 -11
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +6 -11
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +12 -9
- app-ng-runtime/components/navigation/menu/esm2020/menu-dropdown-item/menu-dropdown-item.component.mjs +6 -5
- app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +6 -5
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +6 -5
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +12 -9
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +12 -9
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +4 -3
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +4 -3
- app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +4 -3
- app-ng-runtime/package.json +1 -1
|
@@ -952,34 +952,27 @@ class BaseComponent {
|
|
|
952
952
|
this.isMuted = false;
|
|
953
953
|
this.findParentlView = (lView) => {
|
|
954
954
|
//console.log("---*************--widgetType--*************---", this.widgetType);
|
|
955
|
+
if (lView[3] === null) {
|
|
956
|
+
return lView[8] ? lView[8] : this.viewParentApp;
|
|
957
|
+
}
|
|
955
958
|
let parentlView = lView[3];
|
|
956
959
|
if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
|
|
957
960
|
return this.findParentlView(parentlView);
|
|
958
961
|
}
|
|
959
962
|
let componentType = lView[1]["type"];
|
|
960
|
-
if (
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
if (p.constructor.name === 'DialogComponent') {
|
|
965
|
-
return this.findParentlView(parentlView);
|
|
966
|
-
}
|
|
967
|
-
else {
|
|
968
|
-
return p;
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
else { // when componentType == 2, then fetch parent again
|
|
963
|
+
if (componentType === 0 || componentType === 1) {
|
|
964
|
+
let p = lView[8];
|
|
965
|
+
// ts-ignore
|
|
966
|
+
if (p.constructor.name === 'DialogComponent') {
|
|
972
967
|
return this.findParentlView(parentlView);
|
|
973
968
|
}
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
if (componentType === 0 || componentType === 1) {
|
|
977
|
-
return lView[8];
|
|
978
|
-
}
|
|
979
|
-
else { // when componentType == 2, then fetch parent again
|
|
980
|
-
return this.findParentlView(parentlView);
|
|
969
|
+
else {
|
|
970
|
+
return p;
|
|
981
971
|
}
|
|
982
972
|
}
|
|
973
|
+
else { // when componentType == 2, then fetch parent again
|
|
974
|
+
return this.findParentlView(parentlView);
|
|
975
|
+
}
|
|
983
976
|
};
|
|
984
977
|
const elementRef = inj.get(ElementRef);
|
|
985
978
|
this.nativeElement = elementRef.nativeElement;
|
|
@@ -1920,10 +1913,14 @@ class PartialParamHandlerDirective {
|
|
|
1920
1913
|
}
|
|
1921
1914
|
registerParams(name, value, bindExpr, type) {
|
|
1922
1915
|
this.widgetRef.partialParams[name] = value;
|
|
1916
|
+
let viewParent = this.widgetRef.getViewParent();
|
|
1917
|
+
if (this.widgetRef.inj._tNode.parent === null) {
|
|
1918
|
+
viewParent = this.getViewParent(viewParent);
|
|
1919
|
+
}
|
|
1923
1920
|
if (!value && bindExpr) {
|
|
1924
1921
|
this.widgetRef.registerDestroyListener(
|
|
1925
1922
|
//[Todo-CSP]: expr fn should be generated be default
|
|
1926
|
-
$watch(bindExpr,
|
|
1923
|
+
$watch(bindExpr, viewParent, _.get(this.widgetRef, 'context'), nv => {
|
|
1927
1924
|
this.widgetRef.partialParams[name] = nv;
|
|
1928
1925
|
// notify the partial container of the param changes
|
|
1929
1926
|
this.widgetRef.params$.next();
|
|
@@ -1933,6 +1930,13 @@ class PartialParamHandlerDirective {
|
|
|
1933
1930
|
this.widgetRef.params$.next();
|
|
1934
1931
|
}
|
|
1935
1932
|
}
|
|
1933
|
+
getViewParent(viewParent) {
|
|
1934
|
+
let parent = viewParent.viewParent;
|
|
1935
|
+
if (parent.constructor.name === "DynamicComponent") {
|
|
1936
|
+
return parent;
|
|
1937
|
+
}
|
|
1938
|
+
return this.getViewParent(parent);
|
|
1939
|
+
}
|
|
1936
1940
|
}
|
|
1937
1941
|
PartialParamHandlerDirective.ɵfac = function PartialParamHandlerDirective_Factory(t) { return new (t || PartialParamHandlerDirective)(i0.ɵɵdirectiveInject(WidgetRef, 2)); };
|
|
1938
1942
|
PartialParamHandlerDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PartialParamHandlerDirective, selectors: [["", "partialContainer", ""]] });
|