Skip to content

Commit

Permalink
Merge pull request #12 from ngxsmart/development
Browse files Browse the repository at this point in the history
chore(confirm-dialog): exports confirm-dialog component in index.ts
  • Loading branch information
pavankjadda authored Apr 5, 2022
2 parents 0d3ccc5 + 129f697 commit ed417f6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion libs/ngxsmart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngxsmart/ngxsmart",
"version": "13.1.0",
"version": "13.1.1",
"repository": {
"type": "git",
"url": "https://github.com/ngxsmart/ngxsmart.git"
Expand Down
5 changes: 5 additions & 0 deletions libs/ngxsmart/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export * from './lib/autocomplete.module';
export * from './lib/autocomplete/autocomplete.component';
export * from './lib/object-autocomplete/object-autocomplete.component';
export * from './lib/string-autocomplete/string-autocomplete.component';

// Export directives
export * from './lib/print.module';
export * from './lib/print/ngx-print.directive';

Expand All @@ -17,3 +19,6 @@ export * from './lib/buttons/save-primary-button/save-primary-button.component';
export * from './lib/buttons/search-button/search-button.component';
export * from './lib/buttons/success-button/success-button.component';
export * from './lib/buttons/view-button/view-button.component';

// Export dialogs
export * from './lib/confirm-dialog/confirm-dialog.component';
13 changes: 0 additions & 13 deletions libs/ngxsmart/src/lib/confirm-dialog/confirm-dialog.component.html

This file was deleted.

Empty file.
18 changes: 16 additions & 2 deletions libs/ngxsmart/src/lib/confirm-dialog/confirm-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,22 @@ import { MatDividerModule } from '@angular/material/divider';

@Component({
selector: 'app-confirm-dialog',
templateUrl: './confirm-dialog.component.html',
styleUrls: ['./confirm-dialog.component.scss'],
template: `
<div class="mat-dialog-title" style="text-align: center">
<h4>{{ title }}</h4>
</div>
<mat-divider></mat-divider>
<div mat-dialog-content style="margin: 20px">
<p>{{ message }}</p>
</div>
<div align="end" class="modal-footer" mat-dialog-actions>
<button (click)="onDismiss()" mat-raised-button>No</button>
<button (click)="onConfirm()" color="primary" mat-raised-button>Yes</button>
</div>
`,
styles:[]
})
export class ConfirmDialogComponent implements OnInit {
title: string;
Expand Down

0 comments on commit ed417f6

Please sign in to comment.