@messaia/cdk 21.0.0-rc.23 → 21.0.0-rc.24
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/fesm2022/messaia-cdk.mjs
CHANGED
|
@@ -20365,6 +20365,15 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
20365
20365
|
ctr.updateValueAndValidity();
|
|
20366
20366
|
});
|
|
20367
20367
|
}
|
|
20368
|
+
/**
|
|
20369
|
+
* Manually triggers the formInitialized event.
|
|
20370
|
+
* Useful when a parent component needs to access the form after asynchronous data has loaded.
|
|
20371
|
+
*/
|
|
20372
|
+
triggerFormInitialized() {
|
|
20373
|
+
if (this.form) {
|
|
20374
|
+
this.formInitialized?.emit(this.form);
|
|
20375
|
+
}
|
|
20376
|
+
}
|
|
20368
20377
|
/**
|
|
20369
20378
|
* Invalidates controls recursively.
|
|
20370
20379
|
* This method marks all controls in the group as dirty and touched if they are invalid.
|
|
@@ -20587,7 +20596,7 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
20587
20596
|
*/
|
|
20588
20597
|
onAfterFormBuild() {
|
|
20589
20598
|
/* Emit form initialized event */
|
|
20590
|
-
this.
|
|
20599
|
+
this.triggerFormInitialized();
|
|
20591
20600
|
/* Disable the form if the 'disabled' property is set */
|
|
20592
20601
|
if (this.form && this.disabled) {
|
|
20593
20602
|
Object.keys(this.form.controls).forEach(key => {
|