@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
|
@@ -1876,10 +1876,14 @@ class PartialParamHandlerDirective {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
registerParams(name, value, bindExpr, type) {
|
|
1878
1878
|
this.widgetRef.partialParams[name] = value;
|
|
1879
|
+
let viewParent = this.widgetRef.getViewParent();
|
|
1880
|
+
if (this.widgetRef.inj._tNode.parent === null) {
|
|
1881
|
+
viewParent = this.getViewParent(viewParent);
|
|
1882
|
+
}
|
|
1879
1883
|
if (!value && bindExpr) {
|
|
1880
1884
|
this.widgetRef.registerDestroyListener(
|
|
1881
1885
|
//[Todo-CSP]: expr fn should be generated be default
|
|
1882
|
-
$watch(bindExpr,
|
|
1886
|
+
$watch(bindExpr, viewParent, _.get(this.widgetRef, 'context'), nv => {
|
|
1883
1887
|
this.widgetRef.partialParams[name] = nv;
|
|
1884
1888
|
// notify the partial container of the param changes
|
|
1885
1889
|
this.widgetRef.params$.next();
|
|
@@ -1889,6 +1893,13 @@ class PartialParamHandlerDirective {
|
|
|
1889
1893
|
this.widgetRef.params$.next();
|
|
1890
1894
|
}
|
|
1891
1895
|
}
|
|
1896
|
+
getViewParent(viewParent) {
|
|
1897
|
+
let parent = viewParent.viewParent;
|
|
1898
|
+
if (parent.hasOwnProperty("isDynamicComponent") || parent.hasOwnProperty("isPageComponent")) {
|
|
1899
|
+
return parent;
|
|
1900
|
+
}
|
|
1901
|
+
return this.getViewParent(parent);
|
|
1902
|
+
}
|
|
1892
1903
|
}
|
|
1893
1904
|
PartialParamHandlerDirective.ɵfac = function PartialParamHandlerDirective_Factory(t) { return new (t || PartialParamHandlerDirective)(i0.ɵɵdirectiveInject(WidgetRef, 2)); };
|
|
1894
1905
|
PartialParamHandlerDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PartialParamHandlerDirective, selectors: [["", "partialContainer", ""]] });
|