@messaia/cdk 21.0.0-rc.12 → 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
|
@@ -14291,8 +14291,19 @@ class GenericService {
|
|
|
14291
14291
|
* @param handleError Handle errors
|
|
14292
14292
|
*/
|
|
14293
14293
|
patch(id, body, path, httpOptions, handleError = true) {
|
|
14294
|
-
|
|
14295
|
-
|
|
14294
|
+
/* Ensure correct content-type for patch */
|
|
14295
|
+
const headers = new HttpHeaders({
|
|
14296
|
+
'Content-Type': 'application/json-patch+json'
|
|
14297
|
+
});
|
|
14298
|
+
/* Merge headers */
|
|
14299
|
+
const options = {
|
|
14300
|
+
...httpOptions,
|
|
14301
|
+
headers: httpOptions?.headers
|
|
14302
|
+
? httpOptions.headers.append('Content-Type', 'application/json-patch+json')
|
|
14303
|
+
: headers
|
|
14304
|
+
};
|
|
14305
|
+
/* Create request */
|
|
14306
|
+
let request = this.http.patch(`${this.endpoint}${path ? path : ''}/${id}`, body, options);
|
|
14296
14307
|
/* Handle error */
|
|
14297
14308
|
if (handleError) {
|
|
14298
14309
|
request = request.pipe(catchError(this.handleError('patch')));
|
|
@@ -19869,6 +19880,11 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
19869
19880
|
* Disabled flag.
|
|
19870
19881
|
*/
|
|
19871
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();
|
|
19872
19888
|
/**
|
|
19873
19889
|
* The current date.
|
|
19874
19890
|
*/
|
|
@@ -20557,6 +20573,9 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
20557
20573
|
* such as disabling form controls if the form is set to be disabled.
|
|
20558
20574
|
*/
|
|
20559
20575
|
onAfterFormBuild() {
|
|
20576
|
+
/* Emit form initialized event */
|
|
20577
|
+
this.formInitialized?.emit(this.form);
|
|
20578
|
+
/* Disable the form if the 'disabled' property is set */
|
|
20560
20579
|
if (this.form && this.disabled) {
|
|
20561
20580
|
Object.keys(this.form.controls).forEach(key => {
|
|
20562
20581
|
let control = this.form.controls[key];
|
|
@@ -20662,7 +20681,7 @@ class GenericFormBaseComponent extends BaseComponent {
|
|
|
20662
20681
|
}
|
|
20663
20682
|
}
|
|
20664
20683
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GenericFormBaseComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
20665
|
-
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 });
|
|
20666
20685
|
}
|
|
20667
20686
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GenericFormBaseComponent, decorators: [{
|
|
20668
20687
|
type: Directive
|
|
@@ -20684,6 +20703,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
20684
20703
|
type: Input
|
|
20685
20704
|
}], disabled: [{
|
|
20686
20705
|
type: Input
|
|
20706
|
+
}], formInitialized: [{
|
|
20707
|
+
type: Output
|
|
20687
20708
|
}], matStepper: [{
|
|
20688
20709
|
type: ViewChild,
|
|
20689
20710
|
args: [MatStepper]
|