@messaia/cdk 13.0.0-rc03 → 13.0.0
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/esm2020/lib/base/components/generic-form-base.component.mjs +10 -7
- package/esm2020/lib/base/components/generic-form.component.mjs +6 -1
- package/esm2020/lib/base/components/generic-reactive-form.component.mjs +1 -1
- package/fesm2015/messaia-cdk.mjs +14 -6
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +14 -6
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/base/components/generic-form-base.component.d.ts +8 -4
- package/lib/base/components/generic-form.component.d.ts +9 -0
- package/lib/base/components/generic-reactive-form.component.d.ts +5 -0
- package/package.json +1 -1
package/fesm2020/messaia-cdk.mjs
CHANGED
|
@@ -2406,11 +2406,6 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
2406
2406
|
this.panelId = null;
|
|
2407
2407
|
this.listRoute = this.addSaveAndCloseRoute;
|
|
2408
2408
|
}
|
|
2409
|
-
/**
|
|
2410
|
-
* Gets form value
|
|
2411
|
-
*/
|
|
2412
|
-
get formValue() { return this.item; }
|
|
2413
|
-
;
|
|
2414
2409
|
/**
|
|
2415
2410
|
* Called after the constructor, initializing input properties,
|
|
2416
2411
|
* and the first call to ngOnChanges.
|
|
@@ -2572,6 +2567,10 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
2572
2567
|
}
|
|
2573
2568
|
});
|
|
2574
2569
|
}
|
|
2570
|
+
/**
|
|
2571
|
+
* Builds a new form
|
|
2572
|
+
*/
|
|
2573
|
+
buildForm() { }
|
|
2575
2574
|
/**
|
|
2576
2575
|
* Validates the form
|
|
2577
2576
|
* @param form
|
|
@@ -2710,13 +2709,17 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
2710
2709
|
}
|
|
2711
2710
|
/**
|
|
2712
2711
|
* Creates the entity
|
|
2712
|
+
* @param httpOptions
|
|
2713
|
+
* @returns
|
|
2713
2714
|
*/
|
|
2714
2715
|
create(httpOptions) {
|
|
2715
2716
|
this.onBeforeCreate();
|
|
2716
2717
|
return this.service.create(this.formValue, null, Object.assign(httpOptions || {}, { headers: this.toHttpHeaders({ 'Show-Message': 'yes' }) }), false);
|
|
2717
2718
|
}
|
|
2718
2719
|
/**
|
|
2719
|
-
*
|
|
2720
|
+
* Updates the entity
|
|
2721
|
+
* @param httpOptions
|
|
2722
|
+
* @returns
|
|
2720
2723
|
*/
|
|
2721
2724
|
update(httpOptions) {
|
|
2722
2725
|
this.onBeforeUpdate();
|
|
@@ -2867,6 +2870,11 @@ class GenericFormComponent extends GenericFormBaseComponent {
|
|
|
2867
2870
|
this.changeDetectorRef = changeDetectorRef;
|
|
2868
2871
|
this.listRoute = this.addSaveAndCloseRoute;
|
|
2869
2872
|
}
|
|
2873
|
+
/**
|
|
2874
|
+
* Gets form value
|
|
2875
|
+
*/
|
|
2876
|
+
get formValue() { return this.item; }
|
|
2877
|
+
;
|
|
2870
2878
|
}
|
|
2871
2879
|
/** @nocollapse */ /** @nocollapse */ GenericFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: GenericFormComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
2872
2880
|
/** @nocollapse */ /** @nocollapse */ GenericFormComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.3", type: GenericFormComponent, usesInheritance: true, ngImport: i0 });
|