@rxap/material-form-system 13.0.0-next.2 → 13.0.1

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.
@@ -93,10 +93,10 @@ export class FormControlsComponent {
93
93
  }
94
94
  }
95
95
  FormControlsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlsComponent, deps: [{ token: FormDirective }, { token: ChangeDetectorRef }, { token: MatSnackBar }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
96
- FormControlsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormControlsComponent, selector: "rxap-form-controls", inputs: { allowResubmit: "allowResubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { close: "close", submitted: "submitted" }, host: { classAttribute: "mfd-form-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.reset\"\n mat-stroked-button>\n Reset\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.cancel\"\n mat-stroked-button>\n Cancel\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit\">Submit</span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit-and-close\">\n Submit and Close\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
96
+ FormControlsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormControlsComponent, selector: "rxap-form-controls", inputs: { allowResubmit: "allowResubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { close: "close", submitted: "submitted" }, host: { classAttribute: "mfd-form-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
97
97
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlsComponent, decorators: [{
98
98
  type: Component,
99
- args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-form-controls' }, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.reset\"\n mat-stroked-button>\n Reset\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.cancel\"\n mat-stroked-button>\n Cancel\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit\">Submit</span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit-and-close\">\n Submit and Close\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
99
+ args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-form-controls' }, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
100
100
  }], ctorParameters: function () { return [{ type: i6.FormDirective, decorators: [{
101
101
  type: Inject,
102
102
  args: [FormDirective]
@@ -120,4 +120,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
120
120
  }], submitted: [{
121
121
  type: Output
122
122
  }] } });
123
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1jb250cm9scy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21hdGVyaWFsL2Zvcm0tc3lzdGVtL3NyYy9saWIvZm9ybS1jb250cm9scy9mb3JtLWNvbnRyb2xzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvbWF0ZXJpYWwvZm9ybS1zeXN0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Jlc2V0KClcIlxuICAgICAgICAgICAgW2Rpc2FibGVkXT1cInN1Ym1pdHRpbmckIHwgYXN5bmNcIlxuICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICBmeEZsZXg9XCJub2dyb3dcIlxuICAgICAgICAgICAgbWF0LXN0cm9rZWQtYnV0dG9uPlxuICAgICAgPG5nLWNvbnRhaW5lciBpMThuPlJlc2V0PC9uZy1jb250YWluZXI+XG4gICAgPC9idXR0b24+XG4gICAgPGJ1dHRvbiAoY2xpY2spPVwiY2FuY2VsKClcIlxuICAgICAgICAgICAgW2Rpc2FibGVkXT1cInN1Ym1pdHRpbmckIHwgYXN5bmNcIlxuICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICBjb2xvcj1cIndhcm5cIiBmeEZsZXg9XCJub2dyb3dcIlxuICAgICAgICAgICAgbWF0LXN0cm9rZWQtYnV0dG9uPlxuICAgICAgPG5nLWNvbnRhaW5lciBpMThuPkNhbmNlbDwvbmctY29udGFpbmVyPlxuICAgIDwvYnV0dG9uPlxuICAgIDxidXR0b24gKGNsaWNrKT1cInN1Ym1pdCghYWxsb3dSZXN1Ym1pdClcIlxuICAgICAgICAgICAgW2Rpc2FibGVkXT1cInN1Ym1pdHRpbmckIHwgYXN5bmNcIlxuICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICBjb2xvcj1cInByaW1hcnlcIlxuICAgICAgICAgICAgZnhGbGV4PVwibm9ncm93XCJcbiAgICAgICAgICAgIFtuZ0NsYXNzXT1cInsgaW52YWxpZDogaW52YWxpZCB9XCJcbiAgICAgICAgICAgIG1hdC1yYWlzZWQtYnV0dG9uPlxuICAgICAgPHNwYW4gZnhMYXlvdXQ9XCJyb3dcIiBmeExheW91dEdhcD1cIjRweFwiIGZ4TGF5b3V0QWxpZ249XCJzdGFydCBjZW50ZXJcIj5cbiAgICAgICAgPHNwYW4gZnhGbGV4PVwibm9ncm93XCI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lhbWV0ZXJdPVwiMTVcIiBjb2xvcj1cImFjY2VudFwiPjwvbWF0LXNwaW5uZXI+XG4gICAgICA8L3NwYW4+XG4gICAgPC9idXR0b24+XG4gICAgPGJ1dHRvbiAqbmdJZj1cImlzRGV2TW9kZVwiIHR5cGU9XCJidXR0b25cIiBtYXQtYnV0dG9uIGZ4RmxleD1cIm5vZ3Jvd1wiIChjbGljayk9XCJsb2dDdXJyZW50Rm9ybVN0YXRlKClcIj5DdXJyZW50IEZvcm0gU3RhdGU8L2J1dHRvbj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
@@ -615,10 +615,10 @@ class FormControlsComponent {
615
615
  }
616
616
  }
617
617
  FormControlsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlsComponent, deps: [{ token: FormDirective }, { token: ChangeDetectorRef }, { token: MatSnackBar }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
618
- FormControlsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormControlsComponent, selector: "rxap-form-controls", inputs: { allowResubmit: "allowResubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { close: "close", submitted: "submitted" }, host: { classAttribute: "mfd-form-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.reset\"\n mat-stroked-button>\n Reset\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.cancel\"\n mat-stroked-button>\n Cancel\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit\">Submit</span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit-and-close\">\n Submit and Close\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], components: [{ type: i1$2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
618
+ FormControlsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormControlsComponent, selector: "rxap-form-controls", inputs: { allowResubmit: "allowResubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { close: "close", submitted: "submitted" }, host: { classAttribute: "mfd-form-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], components: [{ type: i1$2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
619
619
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlsComponent, decorators: [{
620
620
  type: Component,
621
- args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-form-controls' }, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.reset\"\n mat-stroked-button>\n Reset\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.cancel\"\n mat-stroked-button>\n Cancel\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit\">Submit</span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit-and-close\">\n Submit and Close\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
621
+ args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-form-controls' }, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
622
622
  }], ctorParameters: function () {
623
623
  return [{ type: i6.FormDirective, decorators: [{
624
624
  type: Inject,
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-material-form-system.mjs","sources":["../../../../../libs/material/form-system/src/lib/control-error.directive.ts","../../../../../libs/material/form-system/src/lib/control-errors.directive.ts","../../../../../libs/material/form-system/src/lib/input-clear-button.directive.ts","../../../../../libs/material/form-system/src/lib/required.directive.ts","../../../../../libs/material/form-system/src/lib/form-field-hide-show.directive.ts","../../../../../libs/material/form-system/src/lib/material-form-system.module.ts","../../../../../libs/material/form-system/src/lib/compare-with.directive.ts","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.ts","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.html","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.module.ts","../../../../../libs/material/form-system/src/lib/chip-input-adapter.directive.ts","../../../../../libs/material/form-system/src/lib/chip-list-iterator.directive.ts","../../../../../libs/material/form-system/src/rxap-material-form-system.ts"],"sourcesContent":["import {\n Directive,\n Inject,\n Input,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n NgModule,\n ChangeDetectorRef,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport { controlErrorChanges$ } from '@rxap/forms';\nimport { Subscription } from 'rxjs';\nimport {\n ValidationErrors,\n AbstractControl\n} from '@angular/forms';\nimport { tap } from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\n\nexport interface ControlErrorDirectiveContext {\n $implicit: any;\n control: AbstractControl;\n}\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[rxapControlError]',\n})\nexport class ControlErrorDirective implements AfterContentInit, OnDestroy {\n static ngTemplateContextGuard<T>(\n dir: ControlErrorDirective,\n ctx: any\n ): ctx is ControlErrorDirectiveContext {\n return true;\n }\n\n @Input('rxapControlErrorKey')\n @Required\n public key!: string;\n\n private _subscription?: Subscription;\n\n private _control?: AbstractControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(TemplateRef)\n protected readonly template: TemplateRef<ControlErrorDirectiveContext>,\n @Inject(ViewContainerRef)\n protected readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n this._control = control;\n this._subscription = controlErrorChanges$<ValidationErrors>(control)\n .pipe(tap((errors: ValidationErrors | null) => this.render(errors)))\n .subscribe();\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n protected render(errors: ValidationErrors | null) {\n this.viewContainerRef.clear();\n if (errors && errors.hasOwnProperty(this.key)) {\n const error = errors[this.key];\n if (!this._control) {\n throw new Error('The control is not defined!');\n }\n this.viewContainerRef.createEmbeddedView(this.template, {\n $implicit: error,\n control: this._control,\n });\n }\n this.cdr.detectChanges();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n\n@NgModule({\n declarations: [ControlErrorDirective],\n exports: [ControlErrorDirective],\n})\nexport class ControlErrorDirectiveModule {}\n","import {\n Directive,\n Inject,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n NgModule,\n ChangeDetectorRef,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport { controlErrorChanges$ } from '@rxap/forms';\nimport { Subscription } from 'rxjs';\nimport {\n ValidationErrors,\n AbstractControl\n} from '@angular/forms';\nimport { tap } from 'rxjs/operators';\n\nexport interface ControlErrorsDirectiveContext {\n $implicit: ValidationErrors;\n control: AbstractControl;\n}\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[rxapControlErrors]',\n})\nexport class ControlErrorsDirective implements AfterContentInit, OnDestroy {\n static ngTemplateContextGuard<T>(\n dir: ControlErrorsDirective,\n ctx: any\n ): ctx is ControlErrorsDirectiveContext {\n return true;\n }\n\n private _subscription?: Subscription;\n\n private _control?: AbstractControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(TemplateRef)\n protected readonly template: TemplateRef<ControlErrorsDirectiveContext>,\n @Inject(ViewContainerRef)\n protected readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n this._control = control;\n this._subscription = controlErrorChanges$<ValidationErrors>(control)\n .pipe(tap((errors: ValidationErrors | null) => this.render(errors)))\n .subscribe();\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n protected render(errors: ValidationErrors | null) {\n this.viewContainerRef.clear();\n if (errors) {\n if (!this._control) {\n throw new Error('The control is not defined!');\n }\n this.viewContainerRef.createEmbeddedView(this.template, {\n $implicit: errors,\n control: this._control,\n });\n }\n this.cdr.detectChanges();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n\n@NgModule({\n declarations: [ControlErrorsDirective],\n exports: [ControlErrorsDirective],\n})\nexport class ControlErrorsDirectiveModule {}\n","import {\n NgModule,\n Directive,\n Inject,\n HostListener,\n HostBinding\n} from '@angular/core';\nimport {\n MatFormField,\n MAT_FORM_FIELD\n} from '@angular/material/form-field';\n\n@Directive({\n selector: '[rxapInputClearButton]'\n})\nexport class InputClearButtonDirective {\n\n @HostBinding('attr.type')\n public type = 'button';\n\n @HostBinding('attr.tabindex')\n public tabIndex = '-1';\n\n public get control() {\n return this.formField._control;\n }\n\n @HostBinding('disabled')\n public get isDisabled() {\n return this.control.disabled;\n }\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private formField: MatFormField\n ) {}\n\n @HostListener('click')\n public onClick() {\n if (this.control.ngControl) {\n this.control.ngControl.reset();\n } else {\n this.control.value = null;\n }\n }\n\n\n}\n\n@NgModule({\n declarations: [ InputClearButtonDirective ],\n exports: [ InputClearButtonDirective ]\n})\nexport class InputClearButtonDirectiveModule {}\n","import {\n Directive,\n Inject,\n NgModule,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\n\n@Directive({\n selector: '[formControlName][rxapRequired]'\n})\nexport class RequiredDirective implements AfterContentInit {\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n const hasRequiredValidator = Reflect.get(control, 'hasRequiredValidator');\n if (hasRequiredValidator) {\n (this.formField._control as any).required = true;\n }\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n}\n\n@NgModule({\n exports: [ RequiredDirective ],\n declarations: [ RequiredDirective ]\n})\nexport class RequiredDirectiveModule {}\n","import {\n AfterContentInit,\n Directive,\n ElementRef,\n Inject,\n NgModule,\n OnDestroy,\n OnInit,\n Renderer2\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport {\n of,\n Subscription\n} from 'rxjs';\nimport {\n FormDefinition,\n RxapFormControl\n} from '@rxap/forms';\nimport {\n ControlHideShowFunction,\n ControlHideShowOptions,\n ExtractFormDefinitionMixin,\n RXAP_FORM_SYSTEM_HIDE_METADATA,\n RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS,\n RXAP_FORM_SYSTEM_SHOW_METADATA\n} from '@rxap/form-system';\nimport { Mixin } from '@rxap/mixin';\nimport {\n catchError,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { getMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport class ExtractHideShowMixin {\n\n public controlId!: string;\n public control?: RxapFormControl;\n public formDefinition!: FormDefinition;\n\n public extractOptions(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowOptions {\n const map = getMetadata<Map<string, ControlHideShowOptions>>(RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return {};\n }\n\n return map.get(controlId)!;\n\n }\n\n public extractHideFunction(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_HIDE_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return null;\n }\n\n return map.get(controlId)!;\n\n }\n\n public extractShowFunction(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_SHOW_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return null;\n }\n\n return map.get(controlId)!;\n\n }\n\n}\n\nexport interface FormFieldHideShowDirective extends ExtractHideShowMixin, ExtractFormDefinitionMixin, OnInit, OnDestroy {\n}\n\n// TODO : create mixin for hide and show logic (this class and ControlHideShowDirective in @rxap/form-system)\n\n@Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin)\n@Directive({\n selector: 'mat-form-field[rxapHideShow]'\n})\nexport class FormFieldHideShowDirective implements AfterContentInit, OnDestroy {\n\n private subscription = new Subscription();\n public controlId!: string;\n public formDefinition!: FormDefinition;\n public control!: RxapFormControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(Renderer2)\n private readonly renderer: Renderer2,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef\n ) {\n }\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (!control) {\n throw new Error('The form field has not a control associated!');\n }\n if (!(control instanceof RxapFormControl)) {\n throw new Error('The associated control is not a RxapFormControl');\n }\n this.control = control;\n this.formDefinition = this.extractFormDefinition(control);\n const hideFunction = this.extractHideFunction(this.formDefinition);\n const showFunction = this.extractShowFunction(this.formDefinition);\n const options = this.extractOptions(this.formDefinition);\n let changeTrigger = this.formDefinition.rxapFormGroup.valueChanges;\n\n if (options.rootChange) {\n changeTrigger = this.formDefinition.rxapFormGroup.root.valueChanges;\n }\n\n changeTrigger = changeTrigger.pipe(startWith(null));\n if (showFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the showFunction throws an error\n const show = showFunction.call(this.formDefinition, control);\n\n switch (show) {\n\n case true:\n this.show();\n break;\n\n case false:\n this.hide();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n })\n ).subscribe()\n );\n }\n\n if (hideFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the hideFunction throws an error\n const hide = hideFunction.call(this.formDefinition, control);\n\n switch (hide) {\n\n case true:\n this.hide();\n break;\n\n case false:\n this.show();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n })\n ).subscribe()\n );\n }\n }\n\n public ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n private hide() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');\n }\n\n private show() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'block');\n }\n\n private reset() {\n this.renderer.removeStyle(this.elementRef.nativeElement, 'display');\n }\n\n}\n\n@NgModule({\n declarations: [ FormFieldHideShowDirective ],\n exports: [ FormFieldHideShowDirective ]\n})\nexport class FormFieldHideShowDirectiveModule {\n}\n","import { NgModule } from '@angular/core';\nimport { ControlErrorDirectiveModule } from './control-error.directive';\nimport { ControlErrorsDirectiveModule } from './control-errors.directive';\nimport { InputClearButtonDirectiveModule } from './input-clear-button.directive';\nimport { RequiredDirectiveModule } from './required.directive';\nimport { FormFieldHideShowDirectiveModule } from './form-field-hide-show.directive';\n\n@NgModule({\n exports: [\n ControlErrorDirectiveModule,\n ControlErrorsDirectiveModule,\n InputClearButtonDirectiveModule,\n RequiredDirectiveModule,\n FormFieldHideShowDirectiveModule\n ]\n})\nexport class MaterialFormSystemModule {}\n","import {\n Directive,\n NgModule,\n Input,\n OnInit,\n isDevMode,\n Inject\n} from '@angular/core';\nimport { MatSelect } from '@angular/material/select';\nimport {\n getFromObject,\n equals\n} from '@rxap/utilities';\n\n@Directive({\n selector: 'mat-select[rxapCompareWith]',\n})\nexport class CompareWithDirective implements OnInit {\n @Input('rxapCompareWith')\n public objectPath!: string;\n\n constructor(\n @Inject(MatSelect)\n private readonly matSelect: MatSelect\n ) {}\n\n public ngOnInit() {\n this.matSelect.compareWith = this.compareWith.bind(this);\n }\n\n private compareWith(o1: any, o2: any): boolean {\n if (this.objectPath) {\n if (typeof o1 !== 'object' || typeof o2 !== 'object') {\n if (isDevMode()) {\n console.warn(\n 'At least one of the select options value is not an object'\n );\n }\n return false;\n }\n if (o1 === null || o1 === undefined || o2 === null || o2 === undefined) {\n if (isDevMode()) {\n console.warn(\n 'At least one of the select options value is undefined or null'\n );\n }\n return false;\n }\n const o1Value = getFromObject(o1, this.objectPath);\n const o2Value = getFromObject(o2, this.objectPath);\n if (o1Value === undefined || o2Value === undefined) {\n return false;\n }\n return o1Value === o2Value;\n } else {\n return equals(o1, o2);\n }\n }\n}\n\n@NgModule({\n declarations: [CompareWithDirective],\n exports: [CompareWithDirective],\n})\nexport class CompareWithDirectiveModule {}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Output,\n ChangeDetectorRef,\n isDevMode,\n Optional,\n} from '@angular/core';\nimport { FormDirective } from '@rxap/forms';\nimport { Observable, Subscription } from 'rxjs';\nimport { coerceBoolean, clone } from '@rxap/utilities';\nimport { take, tap } from 'rxjs/operators';\nimport { Router } from '@angular/router';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport '@angular/localize/init';\n\n@Component({\n selector: 'rxap-form-controls',\n templateUrl: './form-controls.component.html',\n styleUrls: ['./form-controls.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-form-controls' },\n})\nexport class FormControlsComponent<FormData> implements OnInit {\n @Input()\n public set allowResubmit(value: boolean | '') {\n this._allowResubmit = coerceBoolean(value);\n }\n\n public get allowResubmit(): boolean | '' {\n return this._allowResubmit;\n }\n\n public _allowResubmit: boolean = false;\n\n public submitting$!: Observable<boolean>;\n\n public invalid: boolean = false;\n\n @Input()\n public navigateAfterSubmit?: string[];\n\n @Output()\n public close = new EventEmitter<FormData | FormData[] | void>();\n\n @Output()\n public submitted = new EventEmitter<FormData>();\n\n public isDevMode = isDevMode();\n\n /**\n * Collection of successful submitted values\n * @private\n */\n private _submitted: FormData[] = [];\n\n constructor(\n @Inject(FormDirective)\n private readonly formDirective: FormDirective,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(Router)\n private readonly router: Router | null\n ) {}\n\n public ngOnInit() {\n this.submitting$ = this.formDirective.submitting$;\n this.close\n .pipe(\n take(1),\n tap(() => {\n if (this.navigateAfterSubmit) {\n if (this.router) {\n return this.router.navigate(this.navigateAfterSubmit);\n } else {\n console.warn(\n 'The Router is not available. Ensure that tha RouterModule is imported'\n );\n }\n }\n return Promise.resolve();\n })\n )\n .subscribe();\n }\n\n public reset() {\n this.invalid = false;\n this.formDirective.reset();\n }\n\n public cancel() {\n this.close.emit();\n }\n\n public submit(closeAfterSubmit?: boolean) {\n this.formDirective.form.markAllAsDirty();\n this.formDirective.form.markAllAsTouched();\n this.formDirective.cdr.markForCheck();\n let submitSubscription: Subscription;\n\n const invalidSubmitSubscription: Subscription =\n this.formDirective.invalidSubmit\n .pipe(\n take(1),\n tap(() => submitSubscription?.unsubscribe()),\n tap(() => (this.invalid = true)),\n tap(() => this.cdr.detectChanges()),\n tap(() =>\n this.snackBar.open(\n $localize`:@@rxap-material.form-system.form-controls.form-is-invalid:Form is not valid`,\n 'ok',\n { duration: 5000 }\n )\n )\n )\n .subscribe();\n\n submitSubscription = this.formDirective.rxapSubmit\n .pipe(\n take(1),\n tap((value) => {\n const clonedValue = clone(value);\n this._submitted.push(clonedValue);\n this.submitted.emit(clonedValue);\n\n if (closeAfterSubmit) {\n this.close.emit(\n this._submitted.length > 1 ? this._submitted : this._submitted[0]\n );\n } else {\n if (\n typeof this.formDirective.formDefinition.rxapReuse === 'function'\n ) {\n this.formDirective.formDefinition.rxapReuse();\n }\n }\n\n invalidSubmitSubscription.unsubscribe();\n this.invalid = false;\n this.cdr.detectChanges();\n })\n )\n .subscribe();\n\n this.formDirective.onSubmit(new Event('submit'));\n }\n\n public logCurrentFormState() {\n console.log(clone(this.formDirective.form.value));\n }\n}\n","<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.reset\"\n mat-stroked-button>\n Reset\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.cancel\"\n mat-stroked-button>\n Cancel\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit\">Submit</span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit-and-close\">\n Submit and Close\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormControlsComponent } from './form-controls.component';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { CommonModule } from '@angular/common';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { RouterModule } from '@angular/router';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n\n@NgModule({\n declarations: [ FormControlsComponent ],\n imports: [\n MatProgressSpinnerModule,\n FlexLayoutModule,\n MatButtonModule,\n CommonModule,\n RxapFormsModule,\n MatSnackBarModule,\n ],\n exports: [ FormControlsComponent ]\n})\nexport class FormControlsComponentModule {}\n","import {\n COMMA,\n ENTER\n} from '@angular/cdk/keycodes';\nimport {\n Directive,\n NgModule,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MatChipInput } from '@angular/material/chips';\nimport { unique } from '@rxap/utilities';\nimport { Subscription } from 'rxjs';\nimport {\n filter,\n tap\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[matChipInputFor][rxapChipInputAdapter]'\n})\nexport class ChipInputAdapterDirective implements OnDestroy, OnInit {\n private _subscription?: Subscription;\n\n constructor(\n private readonly matChipInput: MatChipInput,\n private readonly ngControl: NgControl\n ) {\n this.matChipInput.separatorKeyCodes = [ ENTER, COMMA ] as const;\n this.matChipInput.addOnBlur = true;\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription = this.matChipInput.chipEnd\n .pipe(\n filter((add) => !!add.value?.trim()),\n tap((add) => {\n const value = this.ngControl.value ?? [];\n this.ngControl.control?.setValue(\n [ ...value, add.value ].filter(unique())\n );\n this.matChipInput.clear();\n })\n )\n .subscribe();\n }\n}\n\n@NgModule({\n exports: [ ChipInputAdapterDirective ],\n declarations: [ ChipInputAdapterDirective ]\n})\nexport class ChipInputAdapterDirectiveModule {\n}\n","import {\n Directive,\n EmbeddedViewRef,\n IterableChangeRecord,\n IterableChanges,\n IterableDiffer,\n IterableDiffers,\n NgModule,\n OnDestroy,\n OnInit,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MatChipEvent } from '@angular/material/chips/chip';\nimport { log } from '@rxap/utilities/rxjs';\nimport { Subscription } from 'rxjs';\nimport {\n filter,\n startWith,\n tap\n} from 'rxjs/operators';\n\nfunction getTypeName(type: any): string {\n return type['name'] || typeof type;\n}\n\nexport interface ChipListTemplateContext {\n $implicit: string;\n onRemoved: (event: MatChipEvent) => void;\n}\n\nclass RecordViewTuple {\n constructor(\n public record: any,\n public view: EmbeddedViewRef<ChipListTemplateContext>\n ) {\n }\n}\n\n@Directive({\n selector: '[rxapChipListIterator]'\n})\nexport class ChipListIteratorDirective implements OnInit, OnDestroy {\n private _subscription?: Subscription;\n\n private _dirty = true;\n private _differ: IterableDiffer<string> | null = null;\n\n constructor(\n private readonly template: TemplateRef<ChipListTemplateContext>,\n private readonly viewContainerRef: ViewContainerRef,\n private readonly ngControl: NgControl,\n private readonly differs: IterableDiffers\n ) {\n }\n\n public ngOnInit() {\n this._subscription = this.ngControl.valueChanges\n ?.pipe(\n startWith(this.ngControl.value),\n log('test'),\n filter((value) => Array.isArray(value)),\n tap((items) => {\n this._dirty = false;\n // React on ngForOf changes only once all inputs have been initialized\n const value = items;\n if (!this._differ && value) {\n try {\n this._differ = this.differs.find(value).create((_, item) => item);\n } catch {\n throw new Error(\n `Cannot find a differ supporting object '${value}' of type '${getTypeName(\n value\n )}'. NgFor only supports binding to Iterables such as Arrays.`\n );\n }\n }\n if (this._differ) {\n const changes = this._differ.diff(items);\n if (changes) {\n this.applyChanges(changes);\n }\n }\n })\n )\n .subscribe();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n protected applyChanges(changes: IterableChanges<string>) {\n const insertTuples: RecordViewTuple[] = [];\n changes.forEachOperation(\n (\n item: IterableChangeRecord<any>,\n adjustedPreviousIndex: number | null,\n currentIndex: number | null\n ) => {\n if (item.previousIndex == null) {\n // NgForOf is never \"null\" or \"undefined\" here because the differ detected\n // that a new item needs to be inserted from the iterable. This implies that\n // there is an iterable value for \"_ngForOf\".\n const view = this.viewContainerRef.createEmbeddedView(\n this.template,\n { $implicit: item.item, onRemoved: this.onRemoved.bind(this) },\n currentIndex === null ? undefined : currentIndex\n );\n const tuple = new RecordViewTuple(item, view);\n insertTuples.push(tuple);\n } else if (currentIndex == null) {\n this.viewContainerRef.remove(\n adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex\n );\n } else if (adjustedPreviousIndex !== null) {\n const view = this.viewContainerRef.get(adjustedPreviousIndex)!;\n this.viewContainerRef.move(view, currentIndex);\n const tuple = new RecordViewTuple(\n item,\n <EmbeddedViewRef<ChipListTemplateContext>>view\n );\n insertTuples.push(tuple);\n }\n }\n );\n\n for (let i = 0; i < insertTuples.length; i++) {\n this.perViewChange(insertTuples[i].view, insertTuples[i].record);\n }\n\n changes.forEachIdentityChange((record: any) => {\n const viewRef = <EmbeddedViewRef<ChipListTemplateContext>>(\n this.viewContainerRef.get(record.currentIndex)\n );\n viewRef.context.$implicit = record.item;\n });\n }\n\n private onRemoved($event: MatChipEvent) {\n this.ngControl.control?.setValue(\n (this.ngControl.value ?? []).filter(\n (item: any) => item !== $event.chip.value\n )\n );\n }\n\n private perViewChange(\n view: EmbeddedViewRef<ChipListTemplateContext>,\n record: IterableChangeRecord<any>\n ) {\n view.context.$implicit = record.item;\n }\n}\n\n@NgModule({\n exports: [ ChipListIteratorDirective ],\n declarations: [ ChipListIteratorDirective ]\n})\nexport class ChipListIteratorDirectiveModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiCa,qBAAqB;IAgBhC,YAEmB,SAAuB,EAErB,QAAmD,EAEnD,gBAAkC,EAElC,GAAsB;QANxB,cAAS,GAAT,SAAS,CAAc;QAErB,aAAQ,GAAR,QAAQ,CAA2C;QAEnD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,QAAG,GAAH,GAAG,CAAmB;KACvC;IAxBJ,OAAO,sBAAsB,CAC3B,GAA0B,EAC1B,GAAQ;QAER,OAAO,IAAI,CAAC;KACb;IAqBM,kBAAkB;;QACvB,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,0CAAE,OAAO,CAAC;QAC3D,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YACxB,IAAI,CAAC,aAAa,GAAG,oBAAoB,CAAmB,OAAO,CAAC;iBACjE,IAAI,CAAC,GAAG,CAAC,CAAC,MAA+B,KAAK,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;iBACnE,SAAS,EAAE,CAAC;SAChB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;SACjE;KACF;IAES,MAAM,CAAC,MAA+B;QAC9C,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;QAC9B,IAAI,MAAM,IAAI,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YAC7C,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC/B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAClB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;aA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,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;KACtC;;sHA9GU,yBAAyB;0GAAzB,yBAAyB;2FAAzB,yBAAyB;kBAHrC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;MAsHY,+BAA+B;;4HAA/B,+BAA+B;6HAA/B,+BAA+B,iBArH/B,yBAAyB,aAAzB,yBAAyB;6HAqHzB,+BAA+B;2FAA/B,+BAA+B;kBAJ3C,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAE,yBAAyB,CAAE;oBACtC,YAAY,EAAE,CAAE,yBAAyB,CAAE;iBAC5C;;;AC/JD;;;;;;"}
1
+ {"version":3,"file":"rxap-material-form-system.mjs","sources":["../../../../../libs/material/form-system/src/lib/control-error.directive.ts","../../../../../libs/material/form-system/src/lib/control-errors.directive.ts","../../../../../libs/material/form-system/src/lib/input-clear-button.directive.ts","../../../../../libs/material/form-system/src/lib/required.directive.ts","../../../../../libs/material/form-system/src/lib/form-field-hide-show.directive.ts","../../../../../libs/material/form-system/src/lib/material-form-system.module.ts","../../../../../libs/material/form-system/src/lib/compare-with.directive.ts","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.ts","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.html","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.module.ts","../../../../../libs/material/form-system/src/lib/chip-input-adapter.directive.ts","../../../../../libs/material/form-system/src/lib/chip-list-iterator.directive.ts","../../../../../libs/material/form-system/src/rxap-material-form-system.ts"],"sourcesContent":["import {\n Directive,\n Inject,\n Input,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n NgModule,\n ChangeDetectorRef,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport { controlErrorChanges$ } from '@rxap/forms';\nimport { Subscription } from 'rxjs';\nimport {\n ValidationErrors,\n AbstractControl\n} from '@angular/forms';\nimport { tap } from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\n\nexport interface ControlErrorDirectiveContext {\n $implicit: any;\n control: AbstractControl;\n}\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[rxapControlError]',\n})\nexport class ControlErrorDirective implements AfterContentInit, OnDestroy {\n static ngTemplateContextGuard<T>(\n dir: ControlErrorDirective,\n ctx: any\n ): ctx is ControlErrorDirectiveContext {\n return true;\n }\n\n @Input('rxapControlErrorKey')\n @Required\n public key!: string;\n\n private _subscription?: Subscription;\n\n private _control?: AbstractControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(TemplateRef)\n protected readonly template: TemplateRef<ControlErrorDirectiveContext>,\n @Inject(ViewContainerRef)\n protected readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n this._control = control;\n this._subscription = controlErrorChanges$<ValidationErrors>(control)\n .pipe(tap((errors: ValidationErrors | null) => this.render(errors)))\n .subscribe();\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n protected render(errors: ValidationErrors | null) {\n this.viewContainerRef.clear();\n if (errors && errors.hasOwnProperty(this.key)) {\n const error = errors[this.key];\n if (!this._control) {\n throw new Error('The control is not defined!');\n }\n this.viewContainerRef.createEmbeddedView(this.template, {\n $implicit: error,\n control: this._control,\n });\n }\n this.cdr.detectChanges();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n\n@NgModule({\n declarations: [ControlErrorDirective],\n exports: [ControlErrorDirective],\n})\nexport class ControlErrorDirectiveModule {}\n","import {\n Directive,\n Inject,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n NgModule,\n ChangeDetectorRef,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport { controlErrorChanges$ } from '@rxap/forms';\nimport { Subscription } from 'rxjs';\nimport {\n ValidationErrors,\n AbstractControl\n} from '@angular/forms';\nimport { tap } from 'rxjs/operators';\n\nexport interface ControlErrorsDirectiveContext {\n $implicit: ValidationErrors;\n control: AbstractControl;\n}\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[rxapControlErrors]',\n})\nexport class ControlErrorsDirective implements AfterContentInit, OnDestroy {\n static ngTemplateContextGuard<T>(\n dir: ControlErrorsDirective,\n ctx: any\n ): ctx is ControlErrorsDirectiveContext {\n return true;\n }\n\n private _subscription?: Subscription;\n\n private _control?: AbstractControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(TemplateRef)\n protected readonly template: TemplateRef<ControlErrorsDirectiveContext>,\n @Inject(ViewContainerRef)\n protected readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n this._control = control;\n this._subscription = controlErrorChanges$<ValidationErrors>(control)\n .pipe(tap((errors: ValidationErrors | null) => this.render(errors)))\n .subscribe();\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n protected render(errors: ValidationErrors | null) {\n this.viewContainerRef.clear();\n if (errors) {\n if (!this._control) {\n throw new Error('The control is not defined!');\n }\n this.viewContainerRef.createEmbeddedView(this.template, {\n $implicit: errors,\n control: this._control,\n });\n }\n this.cdr.detectChanges();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n\n@NgModule({\n declarations: [ControlErrorsDirective],\n exports: [ControlErrorsDirective],\n})\nexport class ControlErrorsDirectiveModule {}\n","import {\n NgModule,\n Directive,\n Inject,\n HostListener,\n HostBinding\n} from '@angular/core';\nimport {\n MatFormField,\n MAT_FORM_FIELD\n} from '@angular/material/form-field';\n\n@Directive({\n selector: '[rxapInputClearButton]'\n})\nexport class InputClearButtonDirective {\n\n @HostBinding('attr.type')\n public type = 'button';\n\n @HostBinding('attr.tabindex')\n public tabIndex = '-1';\n\n public get control() {\n return this.formField._control;\n }\n\n @HostBinding('disabled')\n public get isDisabled() {\n return this.control.disabled;\n }\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private formField: MatFormField\n ) {}\n\n @HostListener('click')\n public onClick() {\n if (this.control.ngControl) {\n this.control.ngControl.reset();\n } else {\n this.control.value = null;\n }\n }\n\n\n}\n\n@NgModule({\n declarations: [ InputClearButtonDirective ],\n exports: [ InputClearButtonDirective ]\n})\nexport class InputClearButtonDirectiveModule {}\n","import {\n Directive,\n Inject,\n NgModule,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\n\n@Directive({\n selector: '[formControlName][rxapRequired]'\n})\nexport class RequiredDirective implements AfterContentInit {\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n const hasRequiredValidator = Reflect.get(control, 'hasRequiredValidator');\n if (hasRequiredValidator) {\n (this.formField._control as any).required = true;\n }\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n}\n\n@NgModule({\n exports: [ RequiredDirective ],\n declarations: [ RequiredDirective ]\n})\nexport class RequiredDirectiveModule {}\n","import {\n AfterContentInit,\n Directive,\n ElementRef,\n Inject,\n NgModule,\n OnDestroy,\n OnInit,\n Renderer2\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport {\n of,\n Subscription\n} from 'rxjs';\nimport {\n FormDefinition,\n RxapFormControl\n} from '@rxap/forms';\nimport {\n ControlHideShowFunction,\n ControlHideShowOptions,\n ExtractFormDefinitionMixin,\n RXAP_FORM_SYSTEM_HIDE_METADATA,\n RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS,\n RXAP_FORM_SYSTEM_SHOW_METADATA\n} from '@rxap/form-system';\nimport { Mixin } from '@rxap/mixin';\nimport {\n catchError,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { getMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport class ExtractHideShowMixin {\n\n public controlId!: string;\n public control?: RxapFormControl;\n public formDefinition!: FormDefinition;\n\n public extractOptions(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowOptions {\n const map = getMetadata<Map<string, ControlHideShowOptions>>(RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return {};\n }\n\n return map.get(controlId)!;\n\n }\n\n public extractHideFunction(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_HIDE_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return null;\n }\n\n return map.get(controlId)!;\n\n }\n\n public extractShowFunction(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_SHOW_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return null;\n }\n\n return map.get(controlId)!;\n\n }\n\n}\n\nexport interface FormFieldHideShowDirective extends ExtractHideShowMixin, ExtractFormDefinitionMixin, OnInit, OnDestroy {\n}\n\n// TODO : create mixin for hide and show logic (this class and ControlHideShowDirective in @rxap/form-system)\n\n@Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin)\n@Directive({\n selector: 'mat-form-field[rxapHideShow]'\n})\nexport class FormFieldHideShowDirective implements AfterContentInit, OnDestroy {\n\n private subscription = new Subscription();\n public controlId!: string;\n public formDefinition!: FormDefinition;\n public control!: RxapFormControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(Renderer2)\n private readonly renderer: Renderer2,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef\n ) {\n }\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (!control) {\n throw new Error('The form field has not a control associated!');\n }\n if (!(control instanceof RxapFormControl)) {\n throw new Error('The associated control is not a RxapFormControl');\n }\n this.control = control;\n this.formDefinition = this.extractFormDefinition(control);\n const hideFunction = this.extractHideFunction(this.formDefinition);\n const showFunction = this.extractShowFunction(this.formDefinition);\n const options = this.extractOptions(this.formDefinition);\n let changeTrigger = this.formDefinition.rxapFormGroup.valueChanges;\n\n if (options.rootChange) {\n changeTrigger = this.formDefinition.rxapFormGroup.root.valueChanges;\n }\n\n changeTrigger = changeTrigger.pipe(startWith(null));\n if (showFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the showFunction throws an error\n const show = showFunction.call(this.formDefinition, control);\n\n switch (show) {\n\n case true:\n this.show();\n break;\n\n case false:\n this.hide();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n })\n ).subscribe()\n );\n }\n\n if (hideFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the hideFunction throws an error\n const hide = hideFunction.call(this.formDefinition, control);\n\n switch (hide) {\n\n case true:\n this.hide();\n break;\n\n case false:\n this.show();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n })\n ).subscribe()\n );\n }\n }\n\n public ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n private hide() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');\n }\n\n private show() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'block');\n }\n\n private reset() {\n this.renderer.removeStyle(this.elementRef.nativeElement, 'display');\n }\n\n}\n\n@NgModule({\n declarations: [ FormFieldHideShowDirective ],\n exports: [ FormFieldHideShowDirective ]\n})\nexport class FormFieldHideShowDirectiveModule {\n}\n","import { NgModule } from '@angular/core';\nimport { ControlErrorDirectiveModule } from './control-error.directive';\nimport { ControlErrorsDirectiveModule } from './control-errors.directive';\nimport { InputClearButtonDirectiveModule } from './input-clear-button.directive';\nimport { RequiredDirectiveModule } from './required.directive';\nimport { FormFieldHideShowDirectiveModule } from './form-field-hide-show.directive';\n\n@NgModule({\n exports: [\n ControlErrorDirectiveModule,\n ControlErrorsDirectiveModule,\n InputClearButtonDirectiveModule,\n RequiredDirectiveModule,\n FormFieldHideShowDirectiveModule\n ]\n})\nexport class MaterialFormSystemModule {}\n","import {\n Directive,\n NgModule,\n Input,\n OnInit,\n isDevMode,\n Inject\n} from '@angular/core';\nimport { MatSelect } from '@angular/material/select';\nimport {\n getFromObject,\n equals\n} from '@rxap/utilities';\n\n@Directive({\n selector: 'mat-select[rxapCompareWith]',\n})\nexport class CompareWithDirective implements OnInit {\n @Input('rxapCompareWith')\n public objectPath!: string;\n\n constructor(\n @Inject(MatSelect)\n private readonly matSelect: MatSelect\n ) {}\n\n public ngOnInit() {\n this.matSelect.compareWith = this.compareWith.bind(this);\n }\n\n private compareWith(o1: any, o2: any): boolean {\n if (this.objectPath) {\n if (typeof o1 !== 'object' || typeof o2 !== 'object') {\n if (isDevMode()) {\n console.warn(\n 'At least one of the select options value is not an object'\n );\n }\n return false;\n }\n if (o1 === null || o1 === undefined || o2 === null || o2 === undefined) {\n if (isDevMode()) {\n console.warn(\n 'At least one of the select options value is undefined or null'\n );\n }\n return false;\n }\n const o1Value = getFromObject(o1, this.objectPath);\n const o2Value = getFromObject(o2, this.objectPath);\n if (o1Value === undefined || o2Value === undefined) {\n return false;\n }\n return o1Value === o2Value;\n } else {\n return equals(o1, o2);\n }\n }\n}\n\n@NgModule({\n declarations: [CompareWithDirective],\n exports: [CompareWithDirective],\n})\nexport class CompareWithDirectiveModule {}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Output,\n ChangeDetectorRef,\n isDevMode,\n Optional,\n} from '@angular/core';\nimport { FormDirective } from '@rxap/forms';\nimport { Observable, Subscription } from 'rxjs';\nimport { coerceBoolean, clone } from '@rxap/utilities';\nimport { take, tap } from 'rxjs/operators';\nimport { Router } from '@angular/router';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport '@angular/localize/init';\n\n@Component({\n selector: 'rxap-form-controls',\n templateUrl: './form-controls.component.html',\n styleUrls: ['./form-controls.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-form-controls' },\n})\nexport class FormControlsComponent<FormData> implements OnInit {\n @Input()\n public set allowResubmit(value: boolean | '') {\n this._allowResubmit = coerceBoolean(value);\n }\n\n public get allowResubmit(): boolean | '' {\n return this._allowResubmit;\n }\n\n public _allowResubmit: boolean = false;\n\n public submitting$!: Observable<boolean>;\n\n public invalid: boolean = false;\n\n @Input()\n public navigateAfterSubmit?: string[];\n\n @Output()\n public close = new EventEmitter<FormData | FormData[] | void>();\n\n @Output()\n public submitted = new EventEmitter<FormData>();\n\n public isDevMode = isDevMode();\n\n /**\n * Collection of successful submitted values\n * @private\n */\n private _submitted: FormData[] = [];\n\n constructor(\n @Inject(FormDirective)\n private readonly formDirective: FormDirective,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(Router)\n private readonly router: Router | null\n ) {}\n\n public ngOnInit() {\n this.submitting$ = this.formDirective.submitting$;\n this.close\n .pipe(\n take(1),\n tap(() => {\n if (this.navigateAfterSubmit) {\n if (this.router) {\n return this.router.navigate(this.navigateAfterSubmit);\n } else {\n console.warn(\n 'The Router is not available. Ensure that tha RouterModule is imported'\n );\n }\n }\n return Promise.resolve();\n })\n )\n .subscribe();\n }\n\n public reset() {\n this.invalid = false;\n this.formDirective.reset();\n }\n\n public cancel() {\n this.close.emit();\n }\n\n public submit(closeAfterSubmit?: boolean) {\n this.formDirective.form.markAllAsDirty();\n this.formDirective.form.markAllAsTouched();\n this.formDirective.cdr.markForCheck();\n let submitSubscription: Subscription;\n\n const invalidSubmitSubscription: Subscription =\n this.formDirective.invalidSubmit\n .pipe(\n take(1),\n tap(() => submitSubscription?.unsubscribe()),\n tap(() => (this.invalid = true)),\n tap(() => this.cdr.detectChanges()),\n tap(() =>\n this.snackBar.open(\n $localize`:@@rxap-material.form-system.form-controls.form-is-invalid:Form is not valid`,\n 'ok',\n { duration: 5000 }\n )\n )\n )\n .subscribe();\n\n submitSubscription = this.formDirective.rxapSubmit\n .pipe(\n take(1),\n tap((value) => {\n const clonedValue = clone(value);\n this._submitted.push(clonedValue);\n this.submitted.emit(clonedValue);\n\n if (closeAfterSubmit) {\n this.close.emit(\n this._submitted.length > 1 ? this._submitted : this._submitted[0]\n );\n } else {\n if (\n typeof this.formDirective.formDefinition.rxapReuse === 'function'\n ) {\n this.formDirective.formDefinition.rxapReuse();\n }\n }\n\n invalidSubmitSubscription.unsubscribe();\n this.invalid = false;\n this.cdr.detectChanges();\n })\n )\n .subscribe();\n\n this.formDirective.onSubmit(new Event('submit'));\n }\n\n public logCurrentFormState() {\n console.log(clone(this.formDirective.form.value));\n }\n}\n","<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormControlsComponent } from './form-controls.component';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { CommonModule } from '@angular/common';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { RouterModule } from '@angular/router';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n\n@NgModule({\n declarations: [ FormControlsComponent ],\n imports: [\n MatProgressSpinnerModule,\n FlexLayoutModule,\n MatButtonModule,\n CommonModule,\n RxapFormsModule,\n MatSnackBarModule,\n ],\n exports: [ FormControlsComponent ]\n})\nexport class FormControlsComponentModule {}\n","import {\n COMMA,\n ENTER\n} from '@angular/cdk/keycodes';\nimport {\n Directive,\n NgModule,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MatChipInput } from '@angular/material/chips';\nimport { unique } from '@rxap/utilities';\nimport { Subscription } from 'rxjs';\nimport {\n filter,\n tap\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[matChipInputFor][rxapChipInputAdapter]'\n})\nexport class ChipInputAdapterDirective implements OnDestroy, OnInit {\n private _subscription?: Subscription;\n\n constructor(\n private readonly matChipInput: MatChipInput,\n private readonly ngControl: NgControl\n ) {\n this.matChipInput.separatorKeyCodes = [ ENTER, COMMA ] as const;\n this.matChipInput.addOnBlur = true;\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription = this.matChipInput.chipEnd\n .pipe(\n filter((add) => !!add.value?.trim()),\n tap((add) => {\n const value = this.ngControl.value ?? [];\n this.ngControl.control?.setValue(\n [ ...value, add.value ].filter(unique())\n );\n this.matChipInput.clear();\n })\n )\n .subscribe();\n }\n}\n\n@NgModule({\n exports: [ ChipInputAdapterDirective ],\n declarations: [ ChipInputAdapterDirective ]\n})\nexport class ChipInputAdapterDirectiveModule {\n}\n","import {\n Directive,\n EmbeddedViewRef,\n IterableChangeRecord,\n IterableChanges,\n IterableDiffer,\n IterableDiffers,\n NgModule,\n OnDestroy,\n OnInit,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MatChipEvent } from '@angular/material/chips/chip';\nimport { log } from '@rxap/utilities/rxjs';\nimport { Subscription } from 'rxjs';\nimport {\n filter,\n startWith,\n tap\n} from 'rxjs/operators';\n\nfunction getTypeName(type: any): string {\n return type['name'] || typeof type;\n}\n\nexport interface ChipListTemplateContext {\n $implicit: string;\n onRemoved: (event: MatChipEvent) => void;\n}\n\nclass RecordViewTuple {\n constructor(\n public record: any,\n public view: EmbeddedViewRef<ChipListTemplateContext>\n ) {\n }\n}\n\n@Directive({\n selector: '[rxapChipListIterator]'\n})\nexport class ChipListIteratorDirective implements OnInit, OnDestroy {\n private _subscription?: Subscription;\n\n private _dirty = true;\n private _differ: IterableDiffer<string> | null = null;\n\n constructor(\n private readonly template: TemplateRef<ChipListTemplateContext>,\n private readonly viewContainerRef: ViewContainerRef,\n private readonly ngControl: NgControl,\n private readonly differs: IterableDiffers\n ) {\n }\n\n public ngOnInit() {\n this._subscription = this.ngControl.valueChanges\n ?.pipe(\n startWith(this.ngControl.value),\n log('test'),\n filter((value) => Array.isArray(value)),\n tap((items) => {\n this._dirty = false;\n // React on ngForOf changes only once all inputs have been initialized\n const value = items;\n if (!this._differ && value) {\n try {\n this._differ = this.differs.find(value).create((_, item) => item);\n } catch {\n throw new Error(\n `Cannot find a differ supporting object '${value}' of type '${getTypeName(\n value\n )}'. NgFor only supports binding to Iterables such as Arrays.`\n );\n }\n }\n if (this._differ) {\n const changes = this._differ.diff(items);\n if (changes) {\n this.applyChanges(changes);\n }\n }\n })\n )\n .subscribe();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n protected applyChanges(changes: IterableChanges<string>) {\n const insertTuples: RecordViewTuple[] = [];\n changes.forEachOperation(\n (\n item: IterableChangeRecord<any>,\n adjustedPreviousIndex: number | null,\n currentIndex: number | null\n ) => {\n if (item.previousIndex == null) {\n // NgForOf is never \"null\" or \"undefined\" here because the differ detected\n // that a new item needs to be inserted from the iterable. This implies that\n // there is an iterable value for \"_ngForOf\".\n const view = this.viewContainerRef.createEmbeddedView(\n this.template,\n { $implicit: item.item, onRemoved: this.onRemoved.bind(this) },\n currentIndex === null ? undefined : currentIndex\n );\n const tuple = new RecordViewTuple(item, view);\n insertTuples.push(tuple);\n } else if (currentIndex == null) {\n this.viewContainerRef.remove(\n adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex\n );\n } else if (adjustedPreviousIndex !== null) {\n const view = this.viewContainerRef.get(adjustedPreviousIndex)!;\n this.viewContainerRef.move(view, currentIndex);\n const tuple = new RecordViewTuple(\n item,\n <EmbeddedViewRef<ChipListTemplateContext>>view\n );\n insertTuples.push(tuple);\n }\n }\n );\n\n for (let i = 0; i < insertTuples.length; i++) {\n this.perViewChange(insertTuples[i].view, insertTuples[i].record);\n }\n\n changes.forEachIdentityChange((record: any) => {\n const viewRef = <EmbeddedViewRef<ChipListTemplateContext>>(\n this.viewContainerRef.get(record.currentIndex)\n );\n viewRef.context.$implicit = record.item;\n });\n }\n\n private onRemoved($event: MatChipEvent) {\n this.ngControl.control?.setValue(\n (this.ngControl.value ?? []).filter(\n (item: any) => item !== $event.chip.value\n )\n );\n }\n\n private perViewChange(\n view: EmbeddedViewRef<ChipListTemplateContext>,\n record: IterableChangeRecord<any>\n ) {\n view.context.$implicit = record.item;\n }\n}\n\n@NgModule({\n exports: [ ChipListIteratorDirective ],\n declarations: [ ChipListIteratorDirective ]\n})\nexport class ChipListIteratorDirectiveModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiCa,qBAAqB;IAgBhC,YAEmB,SAAuB,EAErB,QAAmD,EAEnD,gBAAkC,EAElC,GAAsB;QANxB,cAAS,GAAT,SAAS,CAAc;QAErB,aAAQ,GAAR,QAAQ,CAA2C;QAEnD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,QAAG,GAAH,GAAG,CAAmB;KACvC;IAxBJ,OAAO,sBAAsB,CAC3B,GAA0B,EAC1B,GAAQ;QAER,OAAO,IAAI,CAAC;KACb;IAqBM,kBAAkB;;QACvB,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,0CAAE,OAAO,CAAC;QAC3D,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YACxB,IAAI,CAAC,aAAa,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AC,CAAC;SAClE;QAED,OAAO,CAAC,qBAAqB,CAAC,CAAC,MAAW;YACxC,MAAM,OAAO,IACX,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,CAC/C,CAAC;YACF,OAAO,CAAC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;SACzC,CAAC,CAAC;KACJ;IAEO,SAAS,CAAC,MAAoB;;QACpC,MAAA,IAAI,CAAC,SAAS,CAAC,OAAO,0CAAE,QAAQ,CAC9B,CAAC,MAAA,IAAI,CAAC,SAAS,CAAC,KAAK,mCAAI,EAAE,EAAE,MAAM,CACjC,CAAC,IAAS,KAAK,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,KAAK,CAC1C,CACF,CAAC;KACH;IAEO,aAAa,CACnB,IAA8C,EAC9C,MAAiC;QAEjC,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;KACtC;;sHA9GU,yBAAyB;0GAAzB,yBAAyB;2FAAzB,yBAAyB;kBAHrC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;MAsHY,+BAA+B;;4HAA/B,+BAA+B;6HAA/B,+BAA+B,iBArH/B,yBAAyB,aAAzB,yBAAyB;6HAqHzB,+BAA+B;2FAA/B,+BAA+B;kBAJ3C,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAE,yBAAyB,CAAE;oBACtC,YAAY,EAAE,CAAE,yBAAyB,CAAE;iBAC5C;;;AC/JD;;;;;;"}
@@ -588,10 +588,10 @@ class FormControlsComponent {
588
588
  }
589
589
  }
590
590
  FormControlsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlsComponent, deps: [{ token: FormDirective }, { token: ChangeDetectorRef }, { token: MatSnackBar }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
591
- FormControlsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormControlsComponent, selector: "rxap-form-controls", inputs: { allowResubmit: "allowResubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { close: "close", submitted: "submitted" }, host: { classAttribute: "mfd-form-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.reset\"\n mat-stroked-button>\n Reset\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.cancel\"\n mat-stroked-button>\n Cancel\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit\">Submit</span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit-and-close\">\n Submit and Close\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], components: [{ type: i1$2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
591
+ FormControlsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormControlsComponent, selector: "rxap-form-controls", inputs: { allowResubmit: "allowResubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { close: "close", submitted: "submitted" }, host: { classAttribute: "mfd-form-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], components: [{ type: i1$2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
592
592
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlsComponent, decorators: [{
593
593
  type: Component,
594
- args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-form-controls' }, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.reset\"\n mat-stroked-button>\n Reset\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.cancel\"\n mat-stroked-button>\n Cancel\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit\">Submit</span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit-and-close\">\n Submit and Close\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
594
+ args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-form-controls' }, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
595
595
  }], ctorParameters: function () { return [{ type: i6.FormDirective, decorators: [{
596
596
  type: Inject,
597
597
  args: [FormDirective]
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-material-form-system.mjs","sources":["../../../../../libs/material/form-system/src/lib/control-error.directive.ts","../../../../../libs/material/form-system/src/lib/control-errors.directive.ts","../../../../../libs/material/form-system/src/lib/input-clear-button.directive.ts","../../../../../libs/material/form-system/src/lib/required.directive.ts","../../../../../libs/material/form-system/src/lib/form-field-hide-show.directive.ts","../../../../../libs/material/form-system/src/lib/material-form-system.module.ts","../../../../../libs/material/form-system/src/lib/compare-with.directive.ts","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.ts","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.html","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.module.ts","../../../../../libs/material/form-system/src/lib/chip-input-adapter.directive.ts","../../../../../libs/material/form-system/src/lib/chip-list-iterator.directive.ts","../../../../../libs/material/form-system/src/rxap-material-form-system.ts"],"sourcesContent":["import {\n Directive,\n Inject,\n Input,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n NgModule,\n ChangeDetectorRef,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport { controlErrorChanges$ } from '@rxap/forms';\nimport { Subscription } from 'rxjs';\nimport {\n ValidationErrors,\n AbstractControl\n} from '@angular/forms';\nimport { tap } from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\n\nexport interface ControlErrorDirectiveContext {\n $implicit: any;\n control: AbstractControl;\n}\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[rxapControlError]',\n})\nexport class ControlErrorDirective implements AfterContentInit, OnDestroy {\n static ngTemplateContextGuard<T>(\n dir: ControlErrorDirective,\n ctx: any\n ): ctx is ControlErrorDirectiveContext {\n return true;\n }\n\n @Input('rxapControlErrorKey')\n @Required\n public key!: string;\n\n private _subscription?: Subscription;\n\n private _control?: AbstractControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(TemplateRef)\n protected readonly template: TemplateRef<ControlErrorDirectiveContext>,\n @Inject(ViewContainerRef)\n protected readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n this._control = control;\n this._subscription = controlErrorChanges$<ValidationErrors>(control)\n .pipe(tap((errors: ValidationErrors | null) => this.render(errors)))\n .subscribe();\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n protected render(errors: ValidationErrors | null) {\n this.viewContainerRef.clear();\n if (errors && errors.hasOwnProperty(this.key)) {\n const error = errors[this.key];\n if (!this._control) {\n throw new Error('The control is not defined!');\n }\n this.viewContainerRef.createEmbeddedView(this.template, {\n $implicit: error,\n control: this._control,\n });\n }\n this.cdr.detectChanges();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n\n@NgModule({\n declarations: [ControlErrorDirective],\n exports: [ControlErrorDirective],\n})\nexport class ControlErrorDirectiveModule {}\n","import {\n Directive,\n Inject,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n NgModule,\n ChangeDetectorRef,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport { controlErrorChanges$ } from '@rxap/forms';\nimport { Subscription } from 'rxjs';\nimport {\n ValidationErrors,\n AbstractControl\n} from '@angular/forms';\nimport { tap } from 'rxjs/operators';\n\nexport interface ControlErrorsDirectiveContext {\n $implicit: ValidationErrors;\n control: AbstractControl;\n}\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[rxapControlErrors]',\n})\nexport class ControlErrorsDirective implements AfterContentInit, OnDestroy {\n static ngTemplateContextGuard<T>(\n dir: ControlErrorsDirective,\n ctx: any\n ): ctx is ControlErrorsDirectiveContext {\n return true;\n }\n\n private _subscription?: Subscription;\n\n private _control?: AbstractControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(TemplateRef)\n protected readonly template: TemplateRef<ControlErrorsDirectiveContext>,\n @Inject(ViewContainerRef)\n protected readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n this._control = control;\n this._subscription = controlErrorChanges$<ValidationErrors>(control)\n .pipe(tap((errors: ValidationErrors | null) => this.render(errors)))\n .subscribe();\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n protected render(errors: ValidationErrors | null) {\n this.viewContainerRef.clear();\n if (errors) {\n if (!this._control) {\n throw new Error('The control is not defined!');\n }\n this.viewContainerRef.createEmbeddedView(this.template, {\n $implicit: errors,\n control: this._control,\n });\n }\n this.cdr.detectChanges();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n\n@NgModule({\n declarations: [ControlErrorsDirective],\n exports: [ControlErrorsDirective],\n})\nexport class ControlErrorsDirectiveModule {}\n","import {\n NgModule,\n Directive,\n Inject,\n HostListener,\n HostBinding\n} from '@angular/core';\nimport {\n MatFormField,\n MAT_FORM_FIELD\n} from '@angular/material/form-field';\n\n@Directive({\n selector: '[rxapInputClearButton]'\n})\nexport class InputClearButtonDirective {\n\n @HostBinding('attr.type')\n public type = 'button';\n\n @HostBinding('attr.tabindex')\n public tabIndex = '-1';\n\n public get control() {\n return this.formField._control;\n }\n\n @HostBinding('disabled')\n public get isDisabled() {\n return this.control.disabled;\n }\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private formField: MatFormField\n ) {}\n\n @HostListener('click')\n public onClick() {\n if (this.control.ngControl) {\n this.control.ngControl.reset();\n } else {\n this.control.value = null;\n }\n }\n\n\n}\n\n@NgModule({\n declarations: [ InputClearButtonDirective ],\n exports: [ InputClearButtonDirective ]\n})\nexport class InputClearButtonDirectiveModule {}\n","import {\n Directive,\n Inject,\n NgModule,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\n\n@Directive({\n selector: '[formControlName][rxapRequired]'\n})\nexport class RequiredDirective implements AfterContentInit {\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n const hasRequiredValidator = Reflect.get(control, 'hasRequiredValidator');\n if (hasRequiredValidator) {\n (this.formField._control as any).required = true;\n }\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n}\n\n@NgModule({\n exports: [ RequiredDirective ],\n declarations: [ RequiredDirective ]\n})\nexport class RequiredDirectiveModule {}\n","import {\n AfterContentInit,\n Directive,\n ElementRef,\n Inject,\n NgModule,\n OnDestroy,\n OnInit,\n Renderer2\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport {\n of,\n Subscription\n} from 'rxjs';\nimport {\n FormDefinition,\n RxapFormControl\n} from '@rxap/forms';\nimport {\n ControlHideShowFunction,\n ControlHideShowOptions,\n ExtractFormDefinitionMixin,\n RXAP_FORM_SYSTEM_HIDE_METADATA,\n RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS,\n RXAP_FORM_SYSTEM_SHOW_METADATA\n} from '@rxap/form-system';\nimport { Mixin } from '@rxap/mixin';\nimport {\n catchError,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { getMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport class ExtractHideShowMixin {\n\n public controlId!: string;\n public control?: RxapFormControl;\n public formDefinition!: FormDefinition;\n\n public extractOptions(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowOptions {\n const map = getMetadata<Map<string, ControlHideShowOptions>>(RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return {};\n }\n\n return map.get(controlId)!;\n\n }\n\n public extractHideFunction(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_HIDE_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return null;\n }\n\n return map.get(controlId)!;\n\n }\n\n public extractShowFunction(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_SHOW_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return null;\n }\n\n return map.get(controlId)!;\n\n }\n\n}\n\nexport interface FormFieldHideShowDirective extends ExtractHideShowMixin, ExtractFormDefinitionMixin, OnInit, OnDestroy {\n}\n\n// TODO : create mixin for hide and show logic (this class and ControlHideShowDirective in @rxap/form-system)\n\n@Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin)\n@Directive({\n selector: 'mat-form-field[rxapHideShow]'\n})\nexport class FormFieldHideShowDirective implements AfterContentInit, OnDestroy {\n\n private subscription = new Subscription();\n public controlId!: string;\n public formDefinition!: FormDefinition;\n public control!: RxapFormControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(Renderer2)\n private readonly renderer: Renderer2,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef\n ) {\n }\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (!control) {\n throw new Error('The form field has not a control associated!');\n }\n if (!(control instanceof RxapFormControl)) {\n throw new Error('The associated control is not a RxapFormControl');\n }\n this.control = control;\n this.formDefinition = this.extractFormDefinition(control);\n const hideFunction = this.extractHideFunction(this.formDefinition);\n const showFunction = this.extractShowFunction(this.formDefinition);\n const options = this.extractOptions(this.formDefinition);\n let changeTrigger = this.formDefinition.rxapFormGroup.valueChanges;\n\n if (options.rootChange) {\n changeTrigger = this.formDefinition.rxapFormGroup.root.valueChanges;\n }\n\n changeTrigger = changeTrigger.pipe(startWith(null));\n if (showFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the showFunction throws an error\n const show = showFunction.call(this.formDefinition, control);\n\n switch (show) {\n\n case true:\n this.show();\n break;\n\n case false:\n this.hide();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n })\n ).subscribe()\n );\n }\n\n if (hideFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the hideFunction throws an error\n const hide = hideFunction.call(this.formDefinition, control);\n\n switch (hide) {\n\n case true:\n this.hide();\n break;\n\n case false:\n this.show();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n })\n ).subscribe()\n );\n }\n }\n\n public ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n private hide() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');\n }\n\n private show() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'block');\n }\n\n private reset() {\n this.renderer.removeStyle(this.elementRef.nativeElement, 'display');\n }\n\n}\n\n@NgModule({\n declarations: [ FormFieldHideShowDirective ],\n exports: [ FormFieldHideShowDirective ]\n})\nexport class FormFieldHideShowDirectiveModule {\n}\n","import { NgModule } from '@angular/core';\nimport { ControlErrorDirectiveModule } from './control-error.directive';\nimport { ControlErrorsDirectiveModule } from './control-errors.directive';\nimport { InputClearButtonDirectiveModule } from './input-clear-button.directive';\nimport { RequiredDirectiveModule } from './required.directive';\nimport { FormFieldHideShowDirectiveModule } from './form-field-hide-show.directive';\n\n@NgModule({\n exports: [\n ControlErrorDirectiveModule,\n ControlErrorsDirectiveModule,\n InputClearButtonDirectiveModule,\n RequiredDirectiveModule,\n FormFieldHideShowDirectiveModule\n ]\n})\nexport class MaterialFormSystemModule {}\n","import {\n Directive,\n NgModule,\n Input,\n OnInit,\n isDevMode,\n Inject\n} from '@angular/core';\nimport { MatSelect } from '@angular/material/select';\nimport {\n getFromObject,\n equals\n} from '@rxap/utilities';\n\n@Directive({\n selector: 'mat-select[rxapCompareWith]',\n})\nexport class CompareWithDirective implements OnInit {\n @Input('rxapCompareWith')\n public objectPath!: string;\n\n constructor(\n @Inject(MatSelect)\n private readonly matSelect: MatSelect\n ) {}\n\n public ngOnInit() {\n this.matSelect.compareWith = this.compareWith.bind(this);\n }\n\n private compareWith(o1: any, o2: any): boolean {\n if (this.objectPath) {\n if (typeof o1 !== 'object' || typeof o2 !== 'object') {\n if (isDevMode()) {\n console.warn(\n 'At least one of the select options value is not an object'\n );\n }\n return false;\n }\n if (o1 === null || o1 === undefined || o2 === null || o2 === undefined) {\n if (isDevMode()) {\n console.warn(\n 'At least one of the select options value is undefined or null'\n );\n }\n return false;\n }\n const o1Value = getFromObject(o1, this.objectPath);\n const o2Value = getFromObject(o2, this.objectPath);\n if (o1Value === undefined || o2Value === undefined) {\n return false;\n }\n return o1Value === o2Value;\n } else {\n return equals(o1, o2);\n }\n }\n}\n\n@NgModule({\n declarations: [CompareWithDirective],\n exports: [CompareWithDirective],\n})\nexport class CompareWithDirectiveModule {}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Output,\n ChangeDetectorRef,\n isDevMode,\n Optional,\n} from '@angular/core';\nimport { FormDirective } from '@rxap/forms';\nimport { Observable, Subscription } from 'rxjs';\nimport { coerceBoolean, clone } from '@rxap/utilities';\nimport { take, tap } from 'rxjs/operators';\nimport { Router } from '@angular/router';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport '@angular/localize/init';\n\n@Component({\n selector: 'rxap-form-controls',\n templateUrl: './form-controls.component.html',\n styleUrls: ['./form-controls.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-form-controls' },\n})\nexport class FormControlsComponent<FormData> implements OnInit {\n @Input()\n public set allowResubmit(value: boolean | '') {\n this._allowResubmit = coerceBoolean(value);\n }\n\n public get allowResubmit(): boolean | '' {\n return this._allowResubmit;\n }\n\n public _allowResubmit: boolean = false;\n\n public submitting$!: Observable<boolean>;\n\n public invalid: boolean = false;\n\n @Input()\n public navigateAfterSubmit?: string[];\n\n @Output()\n public close = new EventEmitter<FormData | FormData[] | void>();\n\n @Output()\n public submitted = new EventEmitter<FormData>();\n\n public isDevMode = isDevMode();\n\n /**\n * Collection of successful submitted values\n * @private\n */\n private _submitted: FormData[] = [];\n\n constructor(\n @Inject(FormDirective)\n private readonly formDirective: FormDirective,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(Router)\n private readonly router: Router | null\n ) {}\n\n public ngOnInit() {\n this.submitting$ = this.formDirective.submitting$;\n this.close\n .pipe(\n take(1),\n tap(() => {\n if (this.navigateAfterSubmit) {\n if (this.router) {\n return this.router.navigate(this.navigateAfterSubmit);\n } else {\n console.warn(\n 'The Router is not available. Ensure that tha RouterModule is imported'\n );\n }\n }\n return Promise.resolve();\n })\n )\n .subscribe();\n }\n\n public reset() {\n this.invalid = false;\n this.formDirective.reset();\n }\n\n public cancel() {\n this.close.emit();\n }\n\n public submit(closeAfterSubmit?: boolean) {\n this.formDirective.form.markAllAsDirty();\n this.formDirective.form.markAllAsTouched();\n this.formDirective.cdr.markForCheck();\n let submitSubscription: Subscription;\n\n const invalidSubmitSubscription: Subscription =\n this.formDirective.invalidSubmit\n .pipe(\n take(1),\n tap(() => submitSubscription?.unsubscribe()),\n tap(() => (this.invalid = true)),\n tap(() => this.cdr.detectChanges()),\n tap(() =>\n this.snackBar.open(\n $localize`:@@rxap-material.form-system.form-controls.form-is-invalid:Form is not valid`,\n 'ok',\n { duration: 5000 }\n )\n )\n )\n .subscribe();\n\n submitSubscription = this.formDirective.rxapSubmit\n .pipe(\n take(1),\n tap((value) => {\n const clonedValue = clone(value);\n this._submitted.push(clonedValue);\n this.submitted.emit(clonedValue);\n\n if (closeAfterSubmit) {\n this.close.emit(\n this._submitted.length > 1 ? this._submitted : this._submitted[0]\n );\n } else {\n if (\n typeof this.formDirective.formDefinition.rxapReuse === 'function'\n ) {\n this.formDirective.formDefinition.rxapReuse();\n }\n }\n\n invalidSubmitSubscription.unsubscribe();\n this.invalid = false;\n this.cdr.detectChanges();\n })\n )\n .subscribe();\n\n this.formDirective.onSubmit(new Event('submit'));\n }\n\n public logCurrentFormState() {\n console.log(clone(this.formDirective.form.value));\n }\n}\n","<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.reset\"\n mat-stroked-button>\n Reset\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.cancel\"\n mat-stroked-button>\n Cancel\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit\">Submit</span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\"\n i18n=\"@@rxap-material.form-system.components.form-controls.submit-and-close\">\n Submit and Close\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormControlsComponent } from './form-controls.component';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { CommonModule } from '@angular/common';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { RouterModule } from '@angular/router';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n\n@NgModule({\n declarations: [ FormControlsComponent ],\n imports: [\n MatProgressSpinnerModule,\n FlexLayoutModule,\n MatButtonModule,\n CommonModule,\n RxapFormsModule,\n MatSnackBarModule,\n ],\n exports: [ FormControlsComponent ]\n})\nexport class FormControlsComponentModule {}\n","import {\n COMMA,\n ENTER\n} from '@angular/cdk/keycodes';\nimport {\n Directive,\n NgModule,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MatChipInput } from '@angular/material/chips';\nimport { unique } from '@rxap/utilities';\nimport { Subscription } from 'rxjs';\nimport {\n filter,\n tap\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[matChipInputFor][rxapChipInputAdapter]'\n})\nexport class ChipInputAdapterDirective implements OnDestroy, OnInit {\n private _subscription?: Subscription;\n\n constructor(\n private readonly matChipInput: MatChipInput,\n private readonly ngControl: NgControl\n ) {\n this.matChipInput.separatorKeyCodes = [ ENTER, COMMA ] as const;\n this.matChipInput.addOnBlur = true;\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription = this.matChipInput.chipEnd\n .pipe(\n filter((add) => !!add.value?.trim()),\n tap((add) => {\n const value = this.ngControl.value ?? [];\n this.ngControl.control?.setValue(\n [ ...value, add.value ].filter(unique())\n );\n this.matChipInput.clear();\n })\n )\n .subscribe();\n }\n}\n\n@NgModule({\n exports: [ ChipInputAdapterDirective ],\n declarations: [ ChipInputAdapterDirective ]\n})\nexport class ChipInputAdapterDirectiveModule {\n}\n","import {\n Directive,\n EmbeddedViewRef,\n IterableChangeRecord,\n IterableChanges,\n IterableDiffer,\n IterableDiffers,\n NgModule,\n OnDestroy,\n OnInit,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MatChipEvent } from '@angular/material/chips/chip';\nimport { log } from '@rxap/utilities/rxjs';\nimport { Subscription } from 'rxjs';\nimport {\n filter,\n startWith,\n tap\n} from 'rxjs/operators';\n\nfunction getTypeName(type: any): string {\n return type['name'] || typeof type;\n}\n\nexport interface ChipListTemplateContext {\n $implicit: string;\n onRemoved: (event: MatChipEvent) => void;\n}\n\nclass RecordViewTuple {\n constructor(\n public record: any,\n public view: EmbeddedViewRef<ChipListTemplateContext>\n ) {\n }\n}\n\n@Directive({\n selector: '[rxapChipListIterator]'\n})\nexport class ChipListIteratorDirective implements OnInit, OnDestroy {\n private _subscription?: Subscription;\n\n private _dirty = true;\n private _differ: IterableDiffer<string> | null = null;\n\n constructor(\n private readonly template: TemplateRef<ChipListTemplateContext>,\n private readonly viewContainerRef: ViewContainerRef,\n private readonly ngControl: NgControl,\n private readonly differs: IterableDiffers\n ) {\n }\n\n public ngOnInit() {\n this._subscription = this.ngControl.valueChanges\n ?.pipe(\n startWith(this.ngControl.value),\n log('test'),\n filter((value) => Array.isArray(value)),\n tap((items) => {\n this._dirty = false;\n // React on ngForOf changes only once all inputs have been initialized\n const value = items;\n if (!this._differ && value) {\n try {\n this._differ = this.differs.find(value).create((_, item) => item);\n } catch {\n throw new Error(\n `Cannot find a differ supporting object '${value}' of type '${getTypeName(\n value\n )}'. NgFor only supports binding to Iterables such as Arrays.`\n );\n }\n }\n if (this._differ) {\n const changes = this._differ.diff(items);\n if (changes) {\n this.applyChanges(changes);\n }\n }\n })\n )\n .subscribe();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n protected applyChanges(changes: IterableChanges<string>) {\n const insertTuples: RecordViewTuple[] = [];\n changes.forEachOperation(\n (\n item: IterableChangeRecord<any>,\n adjustedPreviousIndex: number | null,\n currentIndex: number | null\n ) => {\n if (item.previousIndex == null) {\n // NgForOf is never \"null\" or \"undefined\" here because the differ detected\n // that a new item needs to be inserted from the iterable. This implies that\n // there is an iterable value for \"_ngForOf\".\n const view = this.viewContainerRef.createEmbeddedView(\n this.template,\n { $implicit: item.item, onRemoved: this.onRemoved.bind(this) },\n currentIndex === null ? undefined : currentIndex\n );\n const tuple = new RecordViewTuple(item, view);\n insertTuples.push(tuple);\n } else if (currentIndex == null) {\n this.viewContainerRef.remove(\n adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex\n );\n } else if (adjustedPreviousIndex !== null) {\n const view = this.viewContainerRef.get(adjustedPreviousIndex)!;\n this.viewContainerRef.move(view, currentIndex);\n const tuple = new RecordViewTuple(\n item,\n <EmbeddedViewRef<ChipListTemplateContext>>view\n );\n insertTuples.push(tuple);\n }\n }\n );\n\n for (let i = 0; i < insertTuples.length; i++) {\n this.perViewChange(insertTuples[i].view, insertTuples[i].record);\n }\n\n changes.forEachIdentityChange((record: any) => {\n const viewRef = <EmbeddedViewRef<ChipListTemplateContext>>(\n this.viewContainerRef.get(record.currentIndex)\n );\n viewRef.context.$implicit = record.item;\n });\n }\n\n private onRemoved($event: MatChipEvent) {\n this.ngControl.control?.setValue(\n (this.ngControl.value ?? []).filter(\n (item: any) => item !== $event.chip.value\n )\n );\n }\n\n private perViewChange(\n view: EmbeddedViewRef<ChipListTemplateContext>,\n record: IterableChangeRecord<any>\n ) {\n view.context.$implicit = record.item;\n }\n}\n\n@NgModule({\n exports: [ ChipListIteratorDirective ],\n declarations: [ ChipListIteratorDirective ]\n})\nexport class ChipListIteratorDirectiveModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiCa,qBAAqB;IAgBhC,YAEmB,SAAuB,EAErB,QAAmD,EAEnD,gBAAkC,EAElC,GAAsB;QANxB,cAAS,GAAT,SAAS,CAAc;QAErB,aAAQ,GAAR,QAAQ,CAA2C;QAEnD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,QAAG,GAAH,GAAG,CAAmB;KACvC;IAxBJ,OAAO,sBAAsB,CAC3B,GAA0B,EAC1B,GAAQ;QAER,OAAO,IAAI,CAAC;KACb;IAqBM,kBAAkB;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;QAC3D,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,QAAQ,G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C,OAAO,EAAE,QAAQ,CAC9B,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE,EAAE,MAAM,CACjC,CAAC,IAAS,KAAK,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,KAAK,CAC1C,CACF,CAAC;KACH;IAEO,aAAa,CACnB,IAA8C,EAC9C,MAAiC;QAEjC,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;KACtC;;sHA9GU,yBAAyB;0GAAzB,yBAAyB;2FAAzB,yBAAyB;kBAHrC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;MAsHY,+BAA+B;;4HAA/B,+BAA+B;6HAA/B,+BAA+B,iBArH/B,yBAAyB,aAAzB,yBAAyB;6HAqHzB,+BAA+B;2FAA/B,+BAA+B;kBAJ3C,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAE,yBAAyB,CAAE;oBACtC,YAAY,EAAE,CAAE,yBAAyB,CAAE;iBAC5C;;;AC/JD;;;;;;"}
1
+ {"version":3,"file":"rxap-material-form-system.mjs","sources":["../../../../../libs/material/form-system/src/lib/control-error.directive.ts","../../../../../libs/material/form-system/src/lib/control-errors.directive.ts","../../../../../libs/material/form-system/src/lib/input-clear-button.directive.ts","../../../../../libs/material/form-system/src/lib/required.directive.ts","../../../../../libs/material/form-system/src/lib/form-field-hide-show.directive.ts","../../../../../libs/material/form-system/src/lib/material-form-system.module.ts","../../../../../libs/material/form-system/src/lib/compare-with.directive.ts","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.ts","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.html","../../../../../libs/material/form-system/src/lib/form-controls/form-controls.component.module.ts","../../../../../libs/material/form-system/src/lib/chip-input-adapter.directive.ts","../../../../../libs/material/form-system/src/lib/chip-list-iterator.directive.ts","../../../../../libs/material/form-system/src/rxap-material-form-system.ts"],"sourcesContent":["import {\n Directive,\n Inject,\n Input,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n NgModule,\n ChangeDetectorRef,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport { controlErrorChanges$ } from '@rxap/forms';\nimport { Subscription } from 'rxjs';\nimport {\n ValidationErrors,\n AbstractControl\n} from '@angular/forms';\nimport { tap } from 'rxjs/operators';\nimport { Required } from '@rxap/utilities';\n\nexport interface ControlErrorDirectiveContext {\n $implicit: any;\n control: AbstractControl;\n}\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[rxapControlError]',\n})\nexport class ControlErrorDirective implements AfterContentInit, OnDestroy {\n static ngTemplateContextGuard<T>(\n dir: ControlErrorDirective,\n ctx: any\n ): ctx is ControlErrorDirectiveContext {\n return true;\n }\n\n @Input('rxapControlErrorKey')\n @Required\n public key!: string;\n\n private _subscription?: Subscription;\n\n private _control?: AbstractControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(TemplateRef)\n protected readonly template: TemplateRef<ControlErrorDirectiveContext>,\n @Inject(ViewContainerRef)\n protected readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n this._control = control;\n this._subscription = controlErrorChanges$<ValidationErrors>(control)\n .pipe(tap((errors: ValidationErrors | null) => this.render(errors)))\n .subscribe();\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n protected render(errors: ValidationErrors | null) {\n this.viewContainerRef.clear();\n if (errors && errors.hasOwnProperty(this.key)) {\n const error = errors[this.key];\n if (!this._control) {\n throw new Error('The control is not defined!');\n }\n this.viewContainerRef.createEmbeddedView(this.template, {\n $implicit: error,\n control: this._control,\n });\n }\n this.cdr.detectChanges();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n\n@NgModule({\n declarations: [ControlErrorDirective],\n exports: [ControlErrorDirective],\n})\nexport class ControlErrorDirectiveModule {}\n","import {\n Directive,\n Inject,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n NgModule,\n ChangeDetectorRef,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport { controlErrorChanges$ } from '@rxap/forms';\nimport { Subscription } from 'rxjs';\nimport {\n ValidationErrors,\n AbstractControl\n} from '@angular/forms';\nimport { tap } from 'rxjs/operators';\n\nexport interface ControlErrorsDirectiveContext {\n $implicit: ValidationErrors;\n control: AbstractControl;\n}\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[rxapControlErrors]',\n})\nexport class ControlErrorsDirective implements AfterContentInit, OnDestroy {\n static ngTemplateContextGuard<T>(\n dir: ControlErrorsDirective,\n ctx: any\n ): ctx is ControlErrorsDirectiveContext {\n return true;\n }\n\n private _subscription?: Subscription;\n\n private _control?: AbstractControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(TemplateRef)\n protected readonly template: TemplateRef<ControlErrorsDirectiveContext>,\n @Inject(ViewContainerRef)\n protected readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n this._control = control;\n this._subscription = controlErrorChanges$<ValidationErrors>(control)\n .pipe(tap((errors: ValidationErrors | null) => this.render(errors)))\n .subscribe();\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n protected render(errors: ValidationErrors | null) {\n this.viewContainerRef.clear();\n if (errors) {\n if (!this._control) {\n throw new Error('The control is not defined!');\n }\n this.viewContainerRef.createEmbeddedView(this.template, {\n $implicit: errors,\n control: this._control,\n });\n }\n this.cdr.detectChanges();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n}\n\n@NgModule({\n declarations: [ControlErrorsDirective],\n exports: [ControlErrorsDirective],\n})\nexport class ControlErrorsDirectiveModule {}\n","import {\n NgModule,\n Directive,\n Inject,\n HostListener,\n HostBinding\n} from '@angular/core';\nimport {\n MatFormField,\n MAT_FORM_FIELD\n} from '@angular/material/form-field';\n\n@Directive({\n selector: '[rxapInputClearButton]'\n})\nexport class InputClearButtonDirective {\n\n @HostBinding('attr.type')\n public type = 'button';\n\n @HostBinding('attr.tabindex')\n public tabIndex = '-1';\n\n public get control() {\n return this.formField._control;\n }\n\n @HostBinding('disabled')\n public get isDisabled() {\n return this.control.disabled;\n }\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private formField: MatFormField\n ) {}\n\n @HostListener('click')\n public onClick() {\n if (this.control.ngControl) {\n this.control.ngControl.reset();\n } else {\n this.control.value = null;\n }\n }\n\n\n}\n\n@NgModule({\n declarations: [ InputClearButtonDirective ],\n exports: [ InputClearButtonDirective ]\n})\nexport class InputClearButtonDirectiveModule {}\n","import {\n Directive,\n Inject,\n NgModule,\n AfterContentInit\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\n\n@Directive({\n selector: '[formControlName][rxapRequired]'\n})\nexport class RequiredDirective implements AfterContentInit {\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField\n ) {}\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (control) {\n const hasRequiredValidator = Reflect.get(control, 'hasRequiredValidator');\n if (hasRequiredValidator) {\n (this.formField._control as any).required = true;\n }\n } else {\n throw new Error('The form field has not a control associated!');\n }\n }\n\n}\n\n@NgModule({\n exports: [ RequiredDirective ],\n declarations: [ RequiredDirective ]\n})\nexport class RequiredDirectiveModule {}\n","import {\n AfterContentInit,\n Directive,\n ElementRef,\n Inject,\n NgModule,\n OnDestroy,\n OnInit,\n Renderer2\n} from '@angular/core';\nimport {\n MAT_FORM_FIELD,\n MatFormField\n} from '@angular/material/form-field';\nimport {\n of,\n Subscription\n} from 'rxjs';\nimport {\n FormDefinition,\n RxapFormControl\n} from '@rxap/forms';\nimport {\n ControlHideShowFunction,\n ControlHideShowOptions,\n ExtractFormDefinitionMixin,\n RXAP_FORM_SYSTEM_HIDE_METADATA,\n RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS,\n RXAP_FORM_SYSTEM_SHOW_METADATA\n} from '@rxap/form-system';\nimport { Mixin } from '@rxap/mixin';\nimport {\n catchError,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { getMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport class ExtractHideShowMixin {\n\n public controlId!: string;\n public control?: RxapFormControl;\n public formDefinition!: FormDefinition;\n\n public extractOptions(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowOptions {\n const map = getMetadata<Map<string, ControlHideShowOptions>>(RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return {};\n }\n\n return map.get(controlId)!;\n\n }\n\n public extractHideFunction(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_HIDE_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return null;\n }\n\n return map.get(controlId)!;\n\n }\n\n public extractShowFunction(\n formDefinition: FormDefinition = this.formDefinition,\n controlId: string = this.control?.controlId ?? this.controlId\n ): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_SHOW_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(controlId)) {\n return null;\n }\n\n return map.get(controlId)!;\n\n }\n\n}\n\nexport interface FormFieldHideShowDirective extends ExtractHideShowMixin, ExtractFormDefinitionMixin, OnInit, OnDestroy {\n}\n\n// TODO : create mixin for hide and show logic (this class and ControlHideShowDirective in @rxap/form-system)\n\n@Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin)\n@Directive({\n selector: 'mat-form-field[rxapHideShow]'\n})\nexport class FormFieldHideShowDirective implements AfterContentInit, OnDestroy {\n\n private subscription = new Subscription();\n public controlId!: string;\n public formDefinition!: FormDefinition;\n public control!: RxapFormControl;\n\n constructor(\n @Inject(MAT_FORM_FIELD)\n private readonly formField: MatFormField,\n @Inject(Renderer2)\n private readonly renderer: Renderer2,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef\n ) {\n }\n\n public ngAfterContentInit() {\n const control = this.formField._control.ngControl?.control;\n if (!control) {\n throw new Error('The form field has not a control associated!');\n }\n if (!(control instanceof RxapFormControl)) {\n throw new Error('The associated control is not a RxapFormControl');\n }\n this.control = control;\n this.formDefinition = this.extractFormDefinition(control);\n const hideFunction = this.extractHideFunction(this.formDefinition);\n const showFunction = this.extractShowFunction(this.formDefinition);\n const options = this.extractOptions(this.formDefinition);\n let changeTrigger = this.formDefinition.rxapFormGroup.valueChanges;\n\n if (options.rootChange) {\n changeTrigger = this.formDefinition.rxapFormGroup.root.valueChanges;\n }\n\n changeTrigger = changeTrigger.pipe(startWith(null));\n if (showFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the showFunction throws an error\n const show = showFunction.call(this.formDefinition, control);\n\n switch (show) {\n\n case true:\n this.show();\n break;\n\n case false:\n this.hide();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n })\n ).subscribe()\n );\n }\n\n if (hideFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the hideFunction throws an error\n const hide = hideFunction.call(this.formDefinition, control);\n\n switch (hide) {\n\n case true:\n this.hide();\n break;\n\n case false:\n this.show();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n })\n ).subscribe()\n );\n }\n }\n\n public ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n private hide() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');\n }\n\n private show() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'block');\n }\n\n private reset() {\n this.renderer.removeStyle(this.elementRef.nativeElement, 'display');\n }\n\n}\n\n@NgModule({\n declarations: [ FormFieldHideShowDirective ],\n exports: [ FormFieldHideShowDirective ]\n})\nexport class FormFieldHideShowDirectiveModule {\n}\n","import { NgModule } from '@angular/core';\nimport { ControlErrorDirectiveModule } from './control-error.directive';\nimport { ControlErrorsDirectiveModule } from './control-errors.directive';\nimport { InputClearButtonDirectiveModule } from './input-clear-button.directive';\nimport { RequiredDirectiveModule } from './required.directive';\nimport { FormFieldHideShowDirectiveModule } from './form-field-hide-show.directive';\n\n@NgModule({\n exports: [\n ControlErrorDirectiveModule,\n ControlErrorsDirectiveModule,\n InputClearButtonDirectiveModule,\n RequiredDirectiveModule,\n FormFieldHideShowDirectiveModule\n ]\n})\nexport class MaterialFormSystemModule {}\n","import {\n Directive,\n NgModule,\n Input,\n OnInit,\n isDevMode,\n Inject\n} from '@angular/core';\nimport { MatSelect } from '@angular/material/select';\nimport {\n getFromObject,\n equals\n} from '@rxap/utilities';\n\n@Directive({\n selector: 'mat-select[rxapCompareWith]',\n})\nexport class CompareWithDirective implements OnInit {\n @Input('rxapCompareWith')\n public objectPath!: string;\n\n constructor(\n @Inject(MatSelect)\n private readonly matSelect: MatSelect\n ) {}\n\n public ngOnInit() {\n this.matSelect.compareWith = this.compareWith.bind(this);\n }\n\n private compareWith(o1: any, o2: any): boolean {\n if (this.objectPath) {\n if (typeof o1 !== 'object' || typeof o2 !== 'object') {\n if (isDevMode()) {\n console.warn(\n 'At least one of the select options value is not an object'\n );\n }\n return false;\n }\n if (o1 === null || o1 === undefined || o2 === null || o2 === undefined) {\n if (isDevMode()) {\n console.warn(\n 'At least one of the select options value is undefined or null'\n );\n }\n return false;\n }\n const o1Value = getFromObject(o1, this.objectPath);\n const o2Value = getFromObject(o2, this.objectPath);\n if (o1Value === undefined || o2Value === undefined) {\n return false;\n }\n return o1Value === o2Value;\n } else {\n return equals(o1, o2);\n }\n }\n}\n\n@NgModule({\n declarations: [CompareWithDirective],\n exports: [CompareWithDirective],\n})\nexport class CompareWithDirectiveModule {}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Output,\n ChangeDetectorRef,\n isDevMode,\n Optional,\n} from '@angular/core';\nimport { FormDirective } from '@rxap/forms';\nimport { Observable, Subscription } from 'rxjs';\nimport { coerceBoolean, clone } from '@rxap/utilities';\nimport { take, tap } from 'rxjs/operators';\nimport { Router } from '@angular/router';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport '@angular/localize/init';\n\n@Component({\n selector: 'rxap-form-controls',\n templateUrl: './form-controls.component.html',\n styleUrls: ['./form-controls.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-form-controls' },\n})\nexport class FormControlsComponent<FormData> implements OnInit {\n @Input()\n public set allowResubmit(value: boolean | '') {\n this._allowResubmit = coerceBoolean(value);\n }\n\n public get allowResubmit(): boolean | '' {\n return this._allowResubmit;\n }\n\n public _allowResubmit: boolean = false;\n\n public submitting$!: Observable<boolean>;\n\n public invalid: boolean = false;\n\n @Input()\n public navigateAfterSubmit?: string[];\n\n @Output()\n public close = new EventEmitter<FormData | FormData[] | void>();\n\n @Output()\n public submitted = new EventEmitter<FormData>();\n\n public isDevMode = isDevMode();\n\n /**\n * Collection of successful submitted values\n * @private\n */\n private _submitted: FormData[] = [];\n\n constructor(\n @Inject(FormDirective)\n private readonly formDirective: FormDirective,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Optional()\n @Inject(Router)\n private readonly router: Router | null\n ) {}\n\n public ngOnInit() {\n this.submitting$ = this.formDirective.submitting$;\n this.close\n .pipe(\n take(1),\n tap(() => {\n if (this.navigateAfterSubmit) {\n if (this.router) {\n return this.router.navigate(this.navigateAfterSubmit);\n } else {\n console.warn(\n 'The Router is not available. Ensure that tha RouterModule is imported'\n );\n }\n }\n return Promise.resolve();\n })\n )\n .subscribe();\n }\n\n public reset() {\n this.invalid = false;\n this.formDirective.reset();\n }\n\n public cancel() {\n this.close.emit();\n }\n\n public submit(closeAfterSubmit?: boolean) {\n this.formDirective.form.markAllAsDirty();\n this.formDirective.form.markAllAsTouched();\n this.formDirective.cdr.markForCheck();\n let submitSubscription: Subscription;\n\n const invalidSubmitSubscription: Subscription =\n this.formDirective.invalidSubmit\n .pipe(\n take(1),\n tap(() => submitSubscription?.unsubscribe()),\n tap(() => (this.invalid = true)),\n tap(() => this.cdr.detectChanges()),\n tap(() =>\n this.snackBar.open(\n $localize`:@@rxap-material.form-system.form-controls.form-is-invalid:Form is not valid`,\n 'ok',\n { duration: 5000 }\n )\n )\n )\n .subscribe();\n\n submitSubscription = this.formDirective.rxapSubmit\n .pipe(\n take(1),\n tap((value) => {\n const clonedValue = clone(value);\n this._submitted.push(clonedValue);\n this.submitted.emit(clonedValue);\n\n if (closeAfterSubmit) {\n this.close.emit(\n this._submitted.length > 1 ? this._submitted : this._submitted[0]\n );\n } else {\n if (\n typeof this.formDirective.formDefinition.rxapReuse === 'function'\n ) {\n this.formDirective.formDefinition.rxapReuse();\n }\n }\n\n invalidSubmitSubscription.unsubscribe();\n this.invalid = false;\n this.cdr.detectChanges();\n })\n )\n .subscribe();\n\n this.formDirective.onSubmit(new Event('submit'));\n }\n\n public logCurrentFormState() {\n console.log(clone(this.formDirective.form.value));\n }\n}\n","<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormControlsComponent } from './form-controls.component';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { CommonModule } from '@angular/common';\nimport { RxapFormsModule } from '@rxap/forms';\nimport { RouterModule } from '@angular/router';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n\n@NgModule({\n declarations: [ FormControlsComponent ],\n imports: [\n MatProgressSpinnerModule,\n FlexLayoutModule,\n MatButtonModule,\n CommonModule,\n RxapFormsModule,\n MatSnackBarModule,\n ],\n exports: [ FormControlsComponent ]\n})\nexport class FormControlsComponentModule {}\n","import {\n COMMA,\n ENTER\n} from '@angular/cdk/keycodes';\nimport {\n Directive,\n NgModule,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MatChipInput } from '@angular/material/chips';\nimport { unique } from '@rxap/utilities';\nimport { Subscription } from 'rxjs';\nimport {\n filter,\n tap\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[matChipInputFor][rxapChipInputAdapter]'\n})\nexport class ChipInputAdapterDirective implements OnDestroy, OnInit {\n private _subscription?: Subscription;\n\n constructor(\n private readonly matChipInput: MatChipInput,\n private readonly ngControl: NgControl\n ) {\n this.matChipInput.separatorKeyCodes = [ ENTER, COMMA ] as const;\n this.matChipInput.addOnBlur = true;\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription = this.matChipInput.chipEnd\n .pipe(\n filter((add) => !!add.value?.trim()),\n tap((add) => {\n const value = this.ngControl.value ?? [];\n this.ngControl.control?.setValue(\n [ ...value, add.value ].filter(unique())\n );\n this.matChipInput.clear();\n })\n )\n .subscribe();\n }\n}\n\n@NgModule({\n exports: [ ChipInputAdapterDirective ],\n declarations: [ ChipInputAdapterDirective ]\n})\nexport class ChipInputAdapterDirectiveModule {\n}\n","import {\n Directive,\n EmbeddedViewRef,\n IterableChangeRecord,\n IterableChanges,\n IterableDiffer,\n IterableDiffers,\n NgModule,\n OnDestroy,\n OnInit,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MatChipEvent } from '@angular/material/chips/chip';\nimport { log } from '@rxap/utilities/rxjs';\nimport { Subscription } from 'rxjs';\nimport {\n filter,\n startWith,\n tap\n} from 'rxjs/operators';\n\nfunction getTypeName(type: any): string {\n return type['name'] || typeof type;\n}\n\nexport interface ChipListTemplateContext {\n $implicit: string;\n onRemoved: (event: MatChipEvent) => void;\n}\n\nclass RecordViewTuple {\n constructor(\n public record: any,\n public view: EmbeddedViewRef<ChipListTemplateContext>\n ) {\n }\n}\n\n@Directive({\n selector: '[rxapChipListIterator]'\n})\nexport class ChipListIteratorDirective implements OnInit, OnDestroy {\n private _subscription?: Subscription;\n\n private _dirty = true;\n private _differ: IterableDiffer<string> | null = null;\n\n constructor(\n private readonly template: TemplateRef<ChipListTemplateContext>,\n private readonly viewContainerRef: ViewContainerRef,\n private readonly ngControl: NgControl,\n private readonly differs: IterableDiffers\n ) {\n }\n\n public ngOnInit() {\n this._subscription = this.ngControl.valueChanges\n ?.pipe(\n startWith(this.ngControl.value),\n log('test'),\n filter((value) => Array.isArray(value)),\n tap((items) => {\n this._dirty = false;\n // React on ngForOf changes only once all inputs have been initialized\n const value = items;\n if (!this._differ && value) {\n try {\n this._differ = this.differs.find(value).create((_, item) => item);\n } catch {\n throw new Error(\n `Cannot find a differ supporting object '${value}' of type '${getTypeName(\n value\n )}'. NgFor only supports binding to Iterables such as Arrays.`\n );\n }\n }\n if (this._differ) {\n const changes = this._differ.diff(items);\n if (changes) {\n this.applyChanges(changes);\n }\n }\n })\n )\n .subscribe();\n }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n protected applyChanges(changes: IterableChanges<string>) {\n const insertTuples: RecordViewTuple[] = [];\n changes.forEachOperation(\n (\n item: IterableChangeRecord<any>,\n adjustedPreviousIndex: number | null,\n currentIndex: number | null\n ) => {\n if (item.previousIndex == null) {\n // NgForOf is never \"null\" or \"undefined\" here because the differ detected\n // that a new item needs to be inserted from the iterable. This implies that\n // there is an iterable value for \"_ngForOf\".\n const view = this.viewContainerRef.createEmbeddedView(\n this.template,\n { $implicit: item.item, onRemoved: this.onRemoved.bind(this) },\n currentIndex === null ? undefined : currentIndex\n );\n const tuple = new RecordViewTuple(item, view);\n insertTuples.push(tuple);\n } else if (currentIndex == null) {\n this.viewContainerRef.remove(\n adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex\n );\n } else if (adjustedPreviousIndex !== null) {\n const view = this.viewContainerRef.get(adjustedPreviousIndex)!;\n this.viewContainerRef.move(view, currentIndex);\n const tuple = new RecordViewTuple(\n item,\n <EmbeddedViewRef<ChipListTemplateContext>>view\n );\n insertTuples.push(tuple);\n }\n }\n );\n\n for (let i = 0; i < insertTuples.length; i++) {\n this.perViewChange(insertTuples[i].view, insertTuples[i].record);\n }\n\n changes.forEachIdentityChange((record: any) => {\n const viewRef = <EmbeddedViewRef<ChipListTemplateContext>>(\n this.viewContainerRef.get(record.currentIndex)\n );\n viewRef.context.$implicit = record.item;\n });\n }\n\n private onRemoved($event: MatChipEvent) {\n this.ngControl.control?.setValue(\n (this.ngControl.value ?? []).filter(\n (item: any) => item !== $event.chip.value\n )\n );\n }\n\n private perViewChange(\n view: EmbeddedViewRef<ChipListTemplateContext>,\n record: IterableChangeRecord<any>\n ) {\n view.context.$implicit = record.item;\n }\n}\n\n@NgModule({\n exports: [ ChipListIteratorDirective ],\n declarations: [ ChipListIteratorDirective ]\n})\nexport class ChipListIteratorDirectiveModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiCa,qBAAqB;IAgBhC,YAEmB,SAAuB,EAErB,QAAmD,EAEnD,gBAAkC,EAElC,GAAsB;QANxB,cAAS,GAAT,SAAS,CAAc;QAErB,aAAQ,GAAR,QAAQ,CAA2C;QAEnD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,QAAG,GAAH,GAAG,CAAmB;KACvC;IAxBJ,OAAO,sBAAsB,CAC3B,GAA0B,EAC1B,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,CAAC,MAAM,CAAC,YAAY,CAAC,CAC/C,CAAC;YACF,OAAO,CAAC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;SACzC,CAAC,CAAC;KACJ;IAEO,SAAS,CAAC,MAAoB;QACpC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,CAC9B,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE,EAAE,MAAM,CACjC,CAAC,IAAS,KAAK,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,KAAK,CAC1C,CACF,CAAC;KACH;IAEO,aAAa,CACnB,IAA8C,EAC9C,MAAiC;QAEjC,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;KACtC;;sHA9GU,yBAAyB;0GAAzB,yBAAyB;2FAAzB,yBAAyB;kBAHrC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;MAsHY,+BAA+B;;4HAA/B,+BAA+B;6HAA/B,+BAA+B,iBArH/B,yBAAyB,aAAzB,yBAAyB;6HAqHzB,+BAA+B;2FAA/B,+BAA+B;kBAJ3C,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAE,yBAAyB,CAAE;oBACtC,YAAY,EAAE,CAAE,yBAAyB,CAAE;iBAC5C;;;AC/JD;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/material-form-system",
3
- "version": "13.0.0-next.2",
3
+ "version": "13.0.1",
4
4
  "peerDependencies": {
5
5
  "@angular-devkit/schematics": "^13.2.4",
6
6
  "@angular/cdk": "^13.2.3",
@@ -13,14 +13,14 @@
13
13
  "@angular/platform-browser": "^13.2.3",
14
14
  "@angular/platform-browser-dynamic": "^13.2.3",
15
15
  "@angular/router": "^13.2.3",
16
- "@rxap/data-source": "^13.0.0-next.1",
17
- "@rxap/definition": "^13.0.0-next.1",
18
- "@rxap/directives": "^13.0.0-next.3",
19
- "@rxap/form-system": "^13.0.0-next.3",
20
- "@rxap/forms": "^13.0.0-next.2",
21
- "@rxap/mixin": "^13.0.0-next.1",
22
- "@rxap/services": "^13.0.0-next.1",
23
- "@rxap/utilities": "^13.0.0-next.1",
16
+ "@rxap/data-source": "^13.0.0",
17
+ "@rxap/definition": "^13.0.0",
18
+ "@rxap/directives": "^13.0.0",
19
+ "@rxap/form-system": "^13.0.0",
20
+ "@rxap/forms": "^13.0.0",
21
+ "@rxap/mixin": "^13.0.0",
22
+ "@rxap/services": "^13.0.0",
23
+ "@rxap/utilities": "^13.0.0",
24
24
  "reflect-metadata": "^0.1.13",
25
25
  "rxjs": "^6.5.5"
26
26
  },
@@ -61,10 +61,10 @@
61
61
  "save": "dependencies"
62
62
  },
63
63
  "dependencies": {
64
- "@rxap/schematics-utilities": "^13.0.0-next.0",
64
+ "@rxap/schematics-utilities": "^13.0.0-next.1",
65
65
  "tslib": "^2.3.1",
66
66
  "uuid": "8.3.2",
67
- "@rxap/validator": "1.0.0-next.0"
67
+ "@rxap/validator": "1.0.0"
68
68
  },
69
69
  "module": "fesm2015/rxap-material-form-system.mjs",
70
70
  "es2020": "fesm2020/rxap-material-form-system.mjs",