@aemforms/af-core 0.22.140 → 0.22.141
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 +4 -1
- package/lib/Container.js +3 -0
- package/lib/rules/FunctionRuntime.js +1 -1
- 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 = {
|
|
@@ -3291,7 +3294,7 @@ class FunctionRuntimeImpl {
|
|
|
3291
3294
|
const variableName = toString(args[0]);
|
|
3292
3295
|
let variableValue = args[1];
|
|
3293
3296
|
const normalFieldOrPanel = args[2] || interpreter.globals.form;
|
|
3294
|
-
if (variableValue && typeof variableValue === 'object' &&
|
|
3297
|
+
if (variableValue && typeof variableValue === 'object' && variableValue.$qualifiedName) {
|
|
3295
3298
|
const variableValueElement = interpreter.globals.form.getElement(variableValue.$id);
|
|
3296
3299
|
variableValue = variableValueElement._jsonModel.value;
|
|
3297
3300
|
}
|
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 = {
|
|
@@ -494,7 +494,7 @@ class FunctionRuntimeImpl {
|
|
|
494
494
|
const variableName = toString(args[0]);
|
|
495
495
|
let variableValue = args[1];
|
|
496
496
|
const normalFieldOrPanel = args[2] || interpreter.globals.form;
|
|
497
|
-
if (variableValue && typeof variableValue === 'object' &&
|
|
497
|
+
if (variableValue && typeof variableValue === 'object' && variableValue.$qualifiedName) {
|
|
498
498
|
const variableValueElement = interpreter.globals.form.getElement(variableValue.$id);
|
|
499
499
|
variableValue = variableValueElement._jsonModel.value;
|
|
500
500
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aemforms/af-core",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.141",
|
|
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.141"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/preset-env": "^7.20.2",
|