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

85 lines (79 loc) 5.63 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 * as i2 from '@angular/cdk/clipboard'; import { ClipboardModule } from '@angular/cdk/clipboard'; import * as i3 from '@angular/common'; 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 AswJsonPreviewDialog { 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: AswJsonPreviewDialog, 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: AswJsonPreviewDialog, selector: "asw-json-preview-dialog", ngImport: i0, template: "<mat-dialog-content class=\"mat-typography\">\r\n <pre id=\"jsonPreviewContent\">{{data | json}}</pre>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n <button mat-raised-button\r\n id=\"closeDialog\"\r\n type=\"button\"\r\n class=\"btn btn-primary mr-2 mb-1 me-2\"\r\n (click)=\"onNoClick()\">\r\n Close\r\n </button>\r\n <button mat-raised-button \r\n id=\"copyData\"\r\n type=\"button\"\r\n class=\"btn btn-info mb-1\"\r\n [cdkCopyToClipboard]=\"data | json\"\r\n cdkFocusInitial>\r\n <!-- <i class=\"asw-material-icon material-icons\">content_copy</i> -->\r\n Copy Data\r\n </button>\r\n</mat-dialog-actions>", dependencies: [{ 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]" }, { kind: "directive", type: i2.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: i3.JsonPipe, name: "json" }] }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AswJsonPreviewDialog, decorators: [{ type: Component, args: [{ selector: 'asw-json-preview-dialog', template: "<mat-dialog-content class=\"mat-typography\">\r\n <pre id=\"jsonPreviewContent\">{{data | json}}</pre>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n <button mat-raised-button\r\n id=\"closeDialog\"\r\n type=\"button\"\r\n class=\"btn btn-primary mr-2 mb-1 me-2\"\r\n (click)=\"onNoClick()\">\r\n Close\r\n </button>\r\n <button mat-raised-button \r\n id=\"copyData\"\r\n type=\"button\"\r\n class=\"btn btn-info mb-1\"\r\n [cdkCopyToClipboard]=\"data | json\"\r\n cdkFocusInitial>\r\n <!-- <i class=\"asw-material-icon material-icons\">content_copy</i> -->\r\n Copy Data\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 AswJsonPreviewDialogModule { static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AswJsonPreviewDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: AswJsonPreviewDialogModule, declarations: [AswJsonPreviewDialog], imports: [CommonModule, MatDialogModule, ClipboardModule], exports: [AswJsonPreviewDialog] }); static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AswJsonPreviewDialogModule, imports: [CommonModule, MatDialogModule, ClipboardModule] }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AswJsonPreviewDialogModule, decorators: [{ type: NgModule, args: [{ imports: [ CommonModule, MatDialogModule, ClipboardModule ], declarations: [ AswJsonPreviewDialog ], exports: [ AswJsonPreviewDialog ] }] }] }); /** * @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 { AswJsonPreviewDialog, AswJsonPreviewDialogModule }; //# sourceMappingURL=asoftwareworld-form-builder-form-control-json-preview-dialog.mjs.map