@aemforms/af-core 0.22.156 → 0.22.157
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 +8 -8
- package/lib/Container.js +8 -8
- package/package.json +2 -2
package/esm/afb-runtime.js
CHANGED
|
@@ -2530,18 +2530,11 @@ class Container extends Scriptable {
|
|
|
2530
2530
|
return;
|
|
2531
2531
|
}
|
|
2532
2532
|
this._data = dataGroup;
|
|
2533
|
-
|
|
2533
|
+
this.syncDataAndFormModel(dataGroup);
|
|
2534
2534
|
const newLength = this.items.length;
|
|
2535
|
-
result.added.forEach((item) => {
|
|
2536
|
-
this.notifyDependents(propertyChange('items', item.getState(), null));
|
|
2537
|
-
item.dispatch(new Initialize());
|
|
2538
|
-
});
|
|
2539
2535
|
for (let i = 0; i < newLength; i += 1) {
|
|
2540
2536
|
this._children[i].dispatch(new ExecuteRule());
|
|
2541
2537
|
}
|
|
2542
|
-
result.removed.forEach((item) => {
|
|
2543
|
-
this.notifyDependents(propertyChange('items', null, item.getState()));
|
|
2544
|
-
});
|
|
2545
2538
|
}
|
|
2546
2539
|
else if (typeof this._data === 'undefined') {
|
|
2547
2540
|
console.warn(`Data node is null, hence importData did not work for panel "${this.name}". Check if parent has a dataRef set to null.`);
|
|
@@ -2571,6 +2564,13 @@ class Container extends Scriptable {
|
|
|
2571
2564
|
result.removed.push(this._children.pop());
|
|
2572
2565
|
}
|
|
2573
2566
|
}
|
|
2567
|
+
result.added.forEach((item) => {
|
|
2568
|
+
this.notifyDependents(propertyChange('items', item.getState(), null));
|
|
2569
|
+
item.dispatch(new Initialize());
|
|
2570
|
+
});
|
|
2571
|
+
result.removed.forEach((item) => {
|
|
2572
|
+
this.notifyDependents(propertyChange('items', null, item.getState()));
|
|
2573
|
+
});
|
|
2574
2574
|
}
|
|
2575
2575
|
this._children.forEach(x => {
|
|
2576
2576
|
let dataModel = x.bindToDataModel(contextualDataModel);
|
package/lib/Container.js
CHANGED
|
@@ -367,18 +367,11 @@ class Container extends Scriptable_1.default {
|
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
369
369
|
this._data = dataGroup;
|
|
370
|
-
|
|
370
|
+
this.syncDataAndFormModel(dataGroup);
|
|
371
371
|
const newLength = this.items.length;
|
|
372
|
-
result.added.forEach((item) => {
|
|
373
|
-
this.notifyDependents((0, Events_1.propertyChange)('items', item.getState(), null));
|
|
374
|
-
item.dispatch(new Events_1.Initialize());
|
|
375
|
-
});
|
|
376
372
|
for (let i = 0; i < newLength; i += 1) {
|
|
377
373
|
this._children[i].dispatch(new Events_1.ExecuteRule());
|
|
378
374
|
}
|
|
379
|
-
result.removed.forEach((item) => {
|
|
380
|
-
this.notifyDependents((0, Events_1.propertyChange)('items', null, item.getState()));
|
|
381
|
-
});
|
|
382
375
|
}
|
|
383
376
|
else if (typeof this._data === 'undefined') {
|
|
384
377
|
console.warn(`Data node is null, hence importData did not work for panel "${this.name}". Check if parent has a dataRef set to null.`);
|
|
@@ -408,6 +401,13 @@ class Container extends Scriptable_1.default {
|
|
|
408
401
|
result.removed.push(this._children.pop());
|
|
409
402
|
}
|
|
410
403
|
}
|
|
404
|
+
result.added.forEach((item) => {
|
|
405
|
+
this.notifyDependents((0, Events_1.propertyChange)('items', item.getState(), null));
|
|
406
|
+
item.dispatch(new Events_1.Initialize());
|
|
407
|
+
});
|
|
408
|
+
result.removed.forEach((item) => {
|
|
409
|
+
this.notifyDependents((0, Events_1.propertyChange)('items', null, item.getState()));
|
|
410
|
+
});
|
|
411
411
|
}
|
|
412
412
|
this._children.forEach(x => {
|
|
413
413
|
let dataModel = x.bindToDataModel(contextualDataModel);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aemforms/af-core",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.157",
|
|
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.157"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/preset-env": "^7.20.2",
|