@messaia/cdk 21.0.0-rc.13 → 21.0.0-rc.14
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
|
@@ -19880,6 +19880,11 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
19880
19880
|
* Disabled flag.
|
|
19881
19881
|
*/
|
|
19882
19882
|
disabled = false;
|
|
19883
|
+
/**
|
|
19884
|
+
* Emitted when the form has been fully initialized
|
|
19885
|
+
* and is ready to be accessed or modified.
|
|
19886
|
+
*/
|
|
19887
|
+
formInitialized = new EventEmitter();
|
|
19883
19888
|
/**
|
|
19884
19889
|
* The current date.
|
|
19885
19890
|
*/
|
|
@@ -20568,6 +20573,9 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
20568
20573
|
* such as disabling form controls if the form is set to be disabled.
|
|
20569
20574
|
*/
|
|
20570
20575
|
onAfterFormBuild() {
|
|
20576
|
+
/* Emit form initialized event */
|
|
20577
|
+
this.formInitialized?.emit(this.form);
|
|
20578
|
+
/* Disable the form if the 'disabled' property is set */
|
|
20571
20579
|
if (this.form && this.disabled) {
|
|
20572
20580
|
Object.keys(this.form.controls).forEach(key => {
|
|
20573
20581
|
let control = this.form.controls[key];
|
|
@@ -20673,7 +20681,7 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
20673
20681
|
}
|
|
20674
20682
|
}
|
|
20675
20683
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GenericFormBaseComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
20676
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: GenericFormBaseComponent, isStandalone: true, inputs: { id: "id", _item: "_item", item: "item", includes: "includes", updateIncludes: "updateIncludes", projection: "projection", query: "query", readonly: "readonly", disabled: "disabled", form: "form", fieldSets: "fieldSets" }, host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" } }, viewQueries: [{ propertyName: "matStepper", first: true, predicate: MatStepper, descendants: true }, { propertyName: "input", predicate: ["focus"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
20684
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: GenericFormBaseComponent, isStandalone: true, inputs: { id: "id", _item: "_item", item: "item", includes: "includes", updateIncludes: "updateIncludes", projection: "projection", query: "query", readonly: "readonly", disabled: "disabled", form: "form", fieldSets: "fieldSets" }, outputs: { formInitialized: "formInitialized" }, host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" } }, viewQueries: [{ propertyName: "matStepper", first: true, predicate: MatStepper, descendants: true }, { propertyName: "input", predicate: ["focus"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
20677
20685
|
}
|
|
20678
20686
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GenericFormBaseComponent, decorators: [{
|
|
20679
20687
|
type: Directive
|
|
@@ -20695,6 +20703,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
20695
20703
|
type: Input
|
|
20696
20704
|
}], disabled: [{
|
|
20697
20705
|
type: Input
|
|
20706
|
+
}], formInitialized: [{
|
|
20707
|
+
type: Output
|
|
20698
20708
|
}], matStepper: [{
|
|
20699
20709
|
type: ViewChild,
|
|
20700
20710
|
args: [MatStepper]
|