@aemforms/af-core 0.22.166 → 0.22.167
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.
- package/esm/afb-runtime.js +15 -1
- package/lib/BaseNode.js +6 -0
- package/lib/controller/EventQueue.js +10 -1
- package/package.json +2 -2
package/esm/afb-runtime.js
CHANGED
|
@@ -1840,6 +1840,12 @@ class BaseNode {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
if (_data) {
|
|
1842
1842
|
if (!this.isContainer && _parent !== NullDataValue && _data !== NullDataValue) {
|
|
1843
|
+
if (_data.$isDataGroup && _data.$_fields.length > 0) {
|
|
1844
|
+
console.error(`Data binding conflict: non-container field "${this._jsonModel.name || this.id}" ` +
|
|
1845
|
+
`with dataRef "${dataRef}" points to a DataGroup already bound by a container. ` +
|
|
1846
|
+
'This would destroy existing child data. The data of this field will not be exported.');
|
|
1847
|
+
return this._data;
|
|
1848
|
+
}
|
|
1843
1849
|
_data = _data?.$convertToDataValue();
|
|
1844
1850
|
_parent.$addDataNode(_key, _data, true);
|
|
1845
1851
|
}
|
|
@@ -2781,7 +2787,15 @@ class EventNode {
|
|
|
2781
2787
|
return that !== null && that !== undefined && this._node == that._node && this._event.type == that._event.type;
|
|
2782
2788
|
}
|
|
2783
2789
|
toString() {
|
|
2784
|
-
|
|
2790
|
+
const base = this._node.id + '__' + this._event.type;
|
|
2791
|
+
if (this._event.type === 'change' && this._event.payload?.changes) {
|
|
2792
|
+
const sig = this._event.payload.changes
|
|
2793
|
+
.map((c) => c.propertyName)
|
|
2794
|
+
.sort()
|
|
2795
|
+
.join(',');
|
|
2796
|
+
return base + '__' + sig;
|
|
2797
|
+
}
|
|
2798
|
+
return base;
|
|
2785
2799
|
}
|
|
2786
2800
|
valueOf() {
|
|
2787
2801
|
return this.toString();
|
package/lib/BaseNode.js
CHANGED
|
@@ -491,6 +491,12 @@ class BaseNode {
|
|
|
491
491
|
}
|
|
492
492
|
if (_data) {
|
|
493
493
|
if (!this.isContainer && _parent !== EmptyDataValue_1.default && _data !== EmptyDataValue_1.default) {
|
|
494
|
+
if (_data.$isDataGroup && _data.$_fields.length > 0) {
|
|
495
|
+
console.error(`Data binding conflict: non-container field "${this._jsonModel.name || this.id}" ` +
|
|
496
|
+
`with dataRef "${dataRef}" points to a DataGroup already bound by a container. ` +
|
|
497
|
+
'This would destroy existing child data. The data of this field will not be exported.');
|
|
498
|
+
return this._data;
|
|
499
|
+
}
|
|
494
500
|
_data = _data === null || _data === void 0 ? void 0 : _data.$convertToDataValue();
|
|
495
501
|
_parent.$addDataNode(_key, _data, true);
|
|
496
502
|
}
|
|
@@ -16,7 +16,16 @@ class EventNode {
|
|
|
16
16
|
return that !== null && that !== undefined && this._node == that._node && this._event.type == that._event.type;
|
|
17
17
|
}
|
|
18
18
|
toString() {
|
|
19
|
-
|
|
19
|
+
var _a;
|
|
20
|
+
const base = this._node.id + '__' + this._event.type;
|
|
21
|
+
if (this._event.type === 'change' && ((_a = this._event.payload) === null || _a === void 0 ? void 0 : _a.changes)) {
|
|
22
|
+
const sig = this._event.payload.changes
|
|
23
|
+
.map((c) => c.propertyName)
|
|
24
|
+
.sort()
|
|
25
|
+
.join(',');
|
|
26
|
+
return base + '__' + sig;
|
|
27
|
+
}
|
|
28
|
+
return base;
|
|
20
29
|
}
|
|
21
30
|
valueOf() {
|
|
22
31
|
return this.toString();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aemforms/af-core",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.167",
|
|
4
4
|
"description": "Core Module for Forms Runtime",
|
|
5
5
|
"author": "Adobe Systems",
|
|
6
6
|
"license": "Adobe Proprietary",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@adobe/json-formula": "0.1.50",
|
|
40
|
-
"@aemforms/af-formatters": "^0.22.
|
|
40
|
+
"@aemforms/af-formatters": "^0.22.167"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/preset-env": "^7.20.2",
|