UNPKG

@asoftwareworld/form-builder

Version:

ASW Form Builder helps you with rapid development and designed web forms which includes several controls. The key feature of Form Builder is to make your content attractive and effective. We can customize our control at run time and preview the same befor

79 lines (73 loc) 5.29 kB
import * as i0 from '@angular/core'; import { Component, Inject, NgModule } from '@angular/core'; import * as i1 from '@angular/material/dialog'; import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog'; import { CommonModule } from '@angular/common'; /** * @license * Copyright ASW (A Software World) All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file */ class AswConfirmDialog { dialogRef; data; constructor(dialogRef, data) { this.dialogRef = dialogRef; this.data = data; } onNoClick() { this.dialogRef.close(); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AswConfirmDialog, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: AswConfirmDialog, selector: "asw-confirm-dialog", ngImport: i0, template: "<h1 mat-dialog-title id=\"confirmDialogTitle\">Warning!</h1>\r\n<mat-dialog-content class=\"mat-typography\">\r\n <p id=\"confirmDialogContent\">{{data.message}} </p>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n <button mat-raised-button\r\n id=\"no\"\r\n type=\"button\"\r\n class=\"btn btn-primary mr-2 mb-1 me-2\"\r\n (click)=\"onNoClick()\">\r\n No\r\n </button>\r\n <button mat-raised-button type=\"button\"\r\n id=\"yes\"\r\n class=\"btn btn-danger mb-1\"\r\n [mat-dialog-close]=\"data.name\"\r\n cdkFocusInitial>\r\n Yes\r\n </button>\r\n</mat-dialog-actions>", dependencies: [{ kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AswConfirmDialog, decorators: [{ type: Component, args: [{ selector: 'asw-confirm-dialog', template: "<h1 mat-dialog-title id=\"confirmDialogTitle\">Warning!</h1>\r\n<mat-dialog-content class=\"mat-typography\">\r\n <p id=\"confirmDialogContent\">{{data.message}} </p>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n <button mat-raised-button\r\n id=\"no\"\r\n type=\"button\"\r\n class=\"btn btn-primary mr-2 mb-1 me-2\"\r\n (click)=\"onNoClick()\">\r\n No\r\n </button>\r\n <button mat-raised-button type=\"button\"\r\n id=\"yes\"\r\n class=\"btn btn-danger mb-1\"\r\n [mat-dialog-close]=\"data.name\"\r\n cdkFocusInitial>\r\n Yes\r\n </button>\r\n</mat-dialog-actions>" }] }], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA] }] }] }); /** * @license * Copyright ASW (A Software World) All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file */ class AswConfirmDialogModule { static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AswConfirmDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: AswConfirmDialogModule, declarations: [AswConfirmDialog], imports: [CommonModule, MatDialogModule], exports: [AswConfirmDialog] }); static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AswConfirmDialogModule, imports: [CommonModule, MatDialogModule] }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AswConfirmDialogModule, decorators: [{ type: NgModule, args: [{ imports: [ CommonModule, MatDialogModule, ], declarations: [ AswConfirmDialog ], exports: [ AswConfirmDialog ] }] }] }); /** * @license * Copyright ASW (A Software World) All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file */ /** * Generated bundle index. Do not edit. */ export { AswConfirmDialog, AswConfirmDialogModule }; //# sourceMappingURL=asoftwareworld-form-builder-form-control-confirm-dialog.mjs.map