@wavemaker/app-ng-runtime 11.5.0-rc.5394 → 11.5.0-rc.5396
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/build-task/bundles/index.umd.js +3 -2
- app-ng-runtime/build-task/esm2020/data/form/form.build.mjs +4 -3
- app-ng-runtime/build-task/fesm2015/index.mjs +3 -2
- app-ng-runtime/build-task/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/build-task/fesm2020/index.mjs +3 -2
- app-ng-runtime/build-task/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +11 -19
- app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +11 -6
- app-ng-runtime/components/base/esm2020/widgets/common/partial-param/partial-param.directive.mjs +2 -16
- app-ng-runtime/components/base/fesm2015/index.mjs +11 -20
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +11 -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 +0 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/form/esm2020/form.component.mjs +2 -2
- app-ng-runtime/components/data/form/fesm2015/index.mjs +1 -1
- app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +4 -0
- app-ng-runtime/components/input/default/esm2020/base-form-custom.component.mjs +5 -1
- app-ng-runtime/components/input/default/fesm2015/index.mjs +4 -0
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +4 -0
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +7 -4
- app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +8 -5
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +7 -4
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +7 -4
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +16 -9
- app-ng-runtime/core/esm2020/utils/utils.mjs +17 -10
- app-ng-runtime/core/fesm2015/index.mjs +16 -9
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +16 -9
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -1328,7 +1328,7 @@ class BaseComponent {
|
|
|
1328
1328
|
getAttributes() {
|
|
1329
1329
|
let _tNodeAttrs = this.inj._tNode.attrs, actualAttrs = Array.from(this.nativeElement.attributes).map(attr => attr.name);
|
|
1330
1330
|
if (_tNodeAttrs === null) {
|
|
1331
|
-
return actualAttrs;
|
|
1331
|
+
return actualAttrs.sort();
|
|
1332
1332
|
}
|
|
1333
1333
|
_.forEach(_tNodeAttrs, (attr, i) => {
|
|
1334
1334
|
if (typeof attr === 'number') {
|
|
@@ -1342,15 +1342,20 @@ class BaseComponent {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
1344
|
});
|
|
1345
|
-
|
|
1345
|
+
/*
|
|
1346
|
+
Sorting attributes as properties like placeholder is not working when it is bound.
|
|
1347
|
+
placeholder and placeholder.bind two properties are coming in Array.
|
|
1348
|
+
When array is not sorted, initially placeholder.bind value is set then placeholder default value is updated.
|
|
1349
|
+
If array is sorted, placeholder.bind value will be set finally.
|
|
1350
|
+
This is caused because of the way we are storing attribute names in watcher registry map
|
|
1351
|
+
*/
|
|
1352
|
+
return actualAttrs.sort();
|
|
1346
1353
|
}
|
|
1347
1354
|
/**
|
|
1348
1355
|
* Process the attributes
|
|
1349
1356
|
*/
|
|
1350
1357
|
processAttrs() {
|
|
1351
|
-
|
|
1352
|
-
let i = 0;
|
|
1353
|
-
_.map(attrs, (attrName) => {
|
|
1358
|
+
_.map(this.getAttributes(), (attrName) => {
|
|
1354
1359
|
let attrValue = this.nativeElement.attributes[attrName].value;
|
|
1355
1360
|
this.$attrs.set(attrName, attrValue);
|
|
1356
1361
|
this.processAttr(attrName, attrValue);
|
|
@@ -1876,14 +1881,10 @@ class PartialParamHandlerDirective {
|
|
|
1876
1881
|
}
|
|
1877
1882
|
registerParams(name, value, bindExpr, type) {
|
|
1878
1883
|
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
|
-
}
|
|
1883
1884
|
if (!value && bindExpr) {
|
|
1884
1885
|
this.widgetRef.registerDestroyListener(
|
|
1885
1886
|
//[Todo-CSP]: expr fn should be generated be default
|
|
1886
|
-
$watch(bindExpr,
|
|
1887
|
+
$watch(bindExpr, this.widgetRef.getViewParent(), _.get(this.widgetRef, 'context'), nv => {
|
|
1887
1888
|
this.widgetRef.partialParams[name] = nv;
|
|
1888
1889
|
// notify the partial container of the param changes
|
|
1889
1890
|
this.widgetRef.params$.next();
|
|
@@ -1893,16 +1894,6 @@ class PartialParamHandlerDirective {
|
|
|
1893
1894
|
this.widgetRef.params$.next();
|
|
1894
1895
|
}
|
|
1895
1896
|
}
|
|
1896
|
-
getViewParent(viewParent) {
|
|
1897
|
-
let parent = viewParent.viewParent;
|
|
1898
|
-
if (!parent) {
|
|
1899
|
-
return viewParent;
|
|
1900
|
-
}
|
|
1901
|
-
if (parent.hasOwnProperty("isDynamicComponent") || parent.hasOwnProperty("isPageComponent")) {
|
|
1902
|
-
return parent;
|
|
1903
|
-
}
|
|
1904
|
-
return this.getViewParent(parent);
|
|
1905
|
-
}
|
|
1906
1897
|
}
|
|
1907
1898
|
PartialParamHandlerDirective.ɵfac = function PartialParamHandlerDirective_Factory(t) { return new (t || PartialParamHandlerDirective)(i0.ɵɵdirectiveInject(WidgetRef, 2)); };
|
|
1908
1899
|
PartialParamHandlerDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PartialParamHandlerDirective, selectors: [["", "partialContainer", ""]] });
|