@aemforms/af-core 0.22.140 → 0.22.142
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 +5 -4
- package/lib/Container.js +3 -0
- package/lib/rules/FunctionRuntime.js +2 -4
- package/package.json +2 -2
package/esm/afb-runtime.js
CHANGED
|
@@ -2476,6 +2476,9 @@ class Container extends Scriptable {
|
|
|
2476
2476
|
this.notifyDependents(propertyChange('items', null, item.getState()));
|
|
2477
2477
|
});
|
|
2478
2478
|
}
|
|
2479
|
+
else if (typeof this._data === 'undefined') {
|
|
2480
|
+
console.warn(`Data node is null, hence importData did not work for panel "${this.name}". Check if parent has a dataRef set to null.`);
|
|
2481
|
+
}
|
|
2479
2482
|
}
|
|
2480
2483
|
syncDataAndFormModel(contextualDataModel) {
|
|
2481
2484
|
const result = {
|
|
@@ -3049,9 +3052,7 @@ class FunctionRuntimeImpl {
|
|
|
3049
3052
|
setProperty: (target, payload) => {
|
|
3050
3053
|
const field = interpreter.globals.form.getElement(target.$id);
|
|
3051
3054
|
Object.entries(payload).forEach(([key, value]) => {
|
|
3052
|
-
|
|
3053
|
-
field[key] = value;
|
|
3054
|
-
}
|
|
3055
|
+
field[key] = value;
|
|
3055
3056
|
});
|
|
3056
3057
|
},
|
|
3057
3058
|
reset: (target) => {
|
|
@@ -3291,7 +3292,7 @@ class FunctionRuntimeImpl {
|
|
|
3291
3292
|
const variableName = toString(args[0]);
|
|
3292
3293
|
let variableValue = args[1];
|
|
3293
3294
|
const normalFieldOrPanel = args[2] || interpreter.globals.form;
|
|
3294
|
-
if (variableValue && typeof variableValue === 'object' &&
|
|
3295
|
+
if (variableValue && typeof variableValue === 'object' && variableValue.$qualifiedName) {
|
|
3295
3296
|
const variableValueElement = interpreter.globals.form.getElement(variableValue.$id);
|
|
3296
3297
|
variableValue = variableValueElement._jsonModel.value;
|
|
3297
3298
|
}
|
package/lib/Container.js
CHANGED
|
@@ -380,6 +380,9 @@ class Container extends Scriptable_1.default {
|
|
|
380
380
|
this.notifyDependents((0, Events_1.propertyChange)('items', null, item.getState()));
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
+
else if (typeof this._data === 'undefined') {
|
|
384
|
+
console.warn(`Data node is null, hence importData did not work for panel "${this.name}". Check if parent has a dataRef set to null.`);
|
|
385
|
+
}
|
|
383
386
|
}
|
|
384
387
|
syncDataAndFormModel(contextualDataModel) {
|
|
385
388
|
const result = {
|
|
@@ -250,9 +250,7 @@ class FunctionRuntimeImpl {
|
|
|
250
250
|
setProperty: (target, payload) => {
|
|
251
251
|
const field = interpreter.globals.form.getElement(target.$id);
|
|
252
252
|
Object.entries(payload).forEach(([key, value]) => {
|
|
253
|
-
|
|
254
|
-
field[key] = value;
|
|
255
|
-
}
|
|
253
|
+
field[key] = value;
|
|
256
254
|
});
|
|
257
255
|
},
|
|
258
256
|
reset: (target) => {
|
|
@@ -494,7 +492,7 @@ class FunctionRuntimeImpl {
|
|
|
494
492
|
const variableName = toString(args[0]);
|
|
495
493
|
let variableValue = args[1];
|
|
496
494
|
const normalFieldOrPanel = args[2] || interpreter.globals.form;
|
|
497
|
-
if (variableValue && typeof variableValue === 'object' &&
|
|
495
|
+
if (variableValue && typeof variableValue === 'object' && variableValue.$qualifiedName) {
|
|
498
496
|
const variableValueElement = interpreter.globals.form.getElement(variableValue.$id);
|
|
499
497
|
variableValue = variableValueElement._jsonModel.value;
|
|
500
498
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aemforms/af-core",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.142",
|
|
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.142"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/preset-env": "^7.20.2",
|