@apipass/modals 0.1.6 → 0.1.9-alpha.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.
@@ -1,146 +1,157 @@
1
- import { EventEmitter, Component, Input, Output, Inject, NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { MatDialog, MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
1
+ import { MatDialogRef, MAT_DIALOG_DATA, MatDialogContent, MatDialogActions, MatDialogTitle, MatDialogModule } from '@angular/material/dialog';
2
+ export * from '@angular/material/dialog';
3
+ import { ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵnextContext, ɵɵadvance, ɵɵtextInterpolate1, ɵɵgetCurrentView, ɵɵlistener, ɵɵrestoreView, ɵɵproperty, ɵɵelement, ɵɵsanitizeHtml, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵtemplate, ɵsetClassMetadata, Component, Inject, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
4
+ import { NgIf, CommonModule } from '@angular/common';
5
+ import { SecondaryButtonComponent, ButtonsModule } from '@apipass/buttons';
6
+ import { IconComponent, IconsModule } from '@apipass/icons';
7
+ import { InputTextComponent, InputsModule } from '@apipass/inputs';
8
+ import { NgControlStatus, NgModel, FormsModule } from '@angular/forms';
4
9
  import { MatFormFieldModule } from '@angular/material/form-field';
5
- import { FormsModule } from '@angular/forms';
6
10
  import { MatInputModule } from '@angular/material/input';
7
- import { ButtonsModule } from '@apipass/buttons';
8
- import { IconsModule } from '@apipass/icons';
9
- import { InputsModule } from '@apipass/inputs';
10
11
 
11
- class DialogConfig {
12
- }
13
- class ConfirmRemoveModalComponent {
14
- constructor(dialog) {
15
- this.dialog = dialog;
16
- this.title = '';
17
- this.content = '';
18
- this.confirmIcon = '';
19
- this.confirmText = 'Remove';
20
- this.removeTextLabel = '';
21
- this.removeTextConfirm = '';
22
- this.showCloseIcon = true;
23
- this.closeLabel = 'Close';
24
- this.dialogConfig = new DialogConfig();
25
- this.openModal = new EventEmitter();
26
- this.confirmModal = new EventEmitter();
27
- this.closeModal = new EventEmitter();
28
- }
29
- ngOnInit() {
30
- this.openModal.subscribe((item) => {
31
- this.dialogConfig.data = {
32
- title: this.title,
33
- content: this.content,
34
- confirmIcon: this.confirmIcon,
35
- confirmText: this.confirmText,
36
- removeText: '',
37
- removeTextLabel: this.removeTextLabel,
38
- removeTextConfirm: this.removeTextConfirm,
39
- showCloseIcon: this.showCloseIcon,
40
- closeLabel: this.closeLabel,
41
- item
42
- };
43
- const dialogRef = this.dialog.open(ConfirmRemoveModalDataComponent, this.dialogConfig);
44
- dialogRef.afterClosed().subscribe((result) => {
45
- if (!result) {
46
- this.closeModal.next(item);
47
- }
48
- if (!this.removeTextConfirm || (result === null || result === void 0 ? void 0 : result.removeText) === this.removeTextConfirm) {
49
- this.confirmModal.next(item);
50
- }
51
- });
52
- });
53
- }
54
- }
55
- ConfirmRemoveModalComponent.decorators = [
56
- { type: Component, args: [{
57
- selector: 'confirm-remove-modal',
58
- template: ``
59
- },] }
60
- ];
61
- ConfirmRemoveModalComponent.ctorParameters = () => [
62
- { type: MatDialog }
63
- ];
64
- ConfirmRemoveModalComponent.propDecorators = {
65
- title: [{ type: Input }],
66
- content: [{ type: Input }],
67
- confirmIcon: [{ type: Input }],
68
- confirmText: [{ type: Input }],
69
- removeTextLabel: [{ type: Input }],
70
- removeTextConfirm: [{ type: Input }],
71
- showCloseIcon: [{ type: Input }],
72
- closeLabel: [{ type: Input }],
73
- dialogConfig: [{ type: Input }],
74
- openModal: [{ type: Input }],
75
- confirmModal: [{ type: Output }],
76
- closeModal: [{ type: Output }]
77
- };
78
- class ConfirmRemoveModalDataComponent {
79
- constructor(dialogRef, data) {
80
- this.dialogRef = dialogRef;
81
- this.data = data;
82
- }
83
- closeClick() {
84
- this.dialogRef.close();
85
- }
86
- confirmClick() {
87
- var _a, _b, _c;
88
- if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.removeTextConfirm) || ((_b = this.data) === null || _b === void 0 ? void 0 : _b.removeText) === ((_c = this.data) === null || _c === void 0 ? void 0 : _c.removeTextConfirm)) {
89
- this.dialogRef.close(this.data);
90
- }
91
- }
92
- isConfirmDisabled() {
93
- var _a, _b, _c;
94
- if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.removeTextConfirm)) {
95
- return false;
96
- }
97
- return ((_b = this.data) === null || _b === void 0 ? void 0 : _b.removeText) !== ((_c = this.data) === null || _c === void 0 ? void 0 : _c.removeTextConfirm);
98
- }
99
- }
100
- ConfirmRemoveModalDataComponent.decorators = [
101
- { type: Component, args: [{
102
- selector: 'confirm-remove-modal-data',
103
- template: "<div class=\"modal-title\">\r\n <h3 *ngIf=\"data.title\" mat-dialog-title>\r\n {{data.title}}\r\n </h3>\r\n <icon *ngIf=\"data.showCloseIcon\" type=\"tertiary clickable\" name=\"fas fa-times\" [title]=\"data.closeLabel\" (onClick)=\"closeClick()\"></icon>\r\n</div>\r\n\r\n<div class=\"modal-content\" mat-dialog-content>\r\n <p *ngIf=\"data.content\" [innerHTML]=\"data.content\"></p>\r\n <input-text *ngIf=\"data.removeTextConfirm\" [label]=\"data.removeTextLabel\" [(ngModel)]=\"data.removeText\"></input-text>\r\n</div>\r\n\r\n<div class=\"modal-actions\" mat-dialog-actions>\r\n <secondary-button [btnDisabled]=\"isConfirmDisabled()\" [icon]=\"data.confirmIcon\" [label]=\"data.confirmText\" (onClick)=\"confirmClick()\"></secondary-button>\r\n</div>\r\n",
104
- styles: [".modal-title{align-items:flex-start;display:flex;justify-content:center;position:relative;width:100%}.modal-title h3{font-weight:700;margin:0;text-align:center;width:100%}.modal-title icon{position:absolute;right:-5px;top:-5px}.modal-content{border:none!important;margin:20px 0!important;text-align:center!important;width:100%!important}.modal-content input-text{width:80%}.modal-actions{align-items:center;display:flex;justify-content:center;width:100%}"]
105
- },] }
106
- ];
107
- ConfirmRemoveModalDataComponent.ctorParameters = () => [
108
- { type: MatDialogRef },
109
- { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
110
- ];
12
+ function ConfirmRemoveModalDataComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
13
+ ɵɵelementStart(0, "h3", 8);
14
+ ɵɵtext(1);
15
+ ɵɵelementEnd();
16
+ } if (rf & 2) {
17
+ const ctx_r0 = ɵɵnextContext();
18
+ ɵɵadvance(1);
19
+ ɵɵtextInterpolate1(" ", ctx_r0.data.title, " ");
20
+ } }
21
+ function ConfirmRemoveModalDataComponent_icon_2_Template(rf, ctx) { if (rf & 1) {
22
+ const _r5 = ɵɵgetCurrentView();
23
+ ɵɵelementStart(0, "icon", 9);
24
+ ɵɵlistener("onClick", function ConfirmRemoveModalDataComponent_icon_2_Template_icon_onClick_0_listener() { ɵɵrestoreView(_r5); const ctx_r4 = ɵɵnextContext(); return ctx_r4.closeClick(); });
25
+ ɵɵelementEnd();
26
+ } if (rf & 2) {
27
+ const ctx_r1 = ɵɵnextContext();
28
+ ɵɵproperty("title", ctx_r1.data.closeLabel);
29
+ } }
30
+ function ConfirmRemoveModalDataComponent_p_4_Template(rf, ctx) { if (rf & 1) {
31
+ ɵɵelement(0, "p", 10);
32
+ } if (rf & 2) {
33
+ const ctx_r2 = ɵɵnextContext();
34
+ ɵɵproperty("innerHTML", ctx_r2.data.content, ɵɵsanitizeHtml);
35
+ } }
36
+ function ConfirmRemoveModalDataComponent_input_text_5_Template(rf, ctx) { if (rf & 1) {
37
+ const _r7 = ɵɵgetCurrentView();
38
+ ɵɵelementStart(0, "input-text", 11);
39
+ ɵɵlistener("ngModelChange", function ConfirmRemoveModalDataComponent_input_text_5_Template_input_text_ngModelChange_0_listener($event) { ɵɵrestoreView(_r7); const ctx_r6 = ɵɵnextContext(); return ctx_r6.data.removeText = $event; });
40
+ ɵɵelementEnd();
41
+ } if (rf & 2) {
42
+ const ctx_r3 = ɵɵnextContext();
43
+ ɵɵproperty("label", ctx_r3.data.removeTextLabel)("ngModel", ctx_r3.data.removeText);
44
+ } }
45
+ class ConfirmRemoveDialogData {
46
+ }
47
+ class ConfirmRemoveModalDataComponent {
48
+ constructor(dialogRef, data) {
49
+ this.dialogRef = dialogRef;
50
+ this.data = data;
51
+ }
52
+ closeClick() {
53
+ this.dialogRef.close();
54
+ }
55
+ confirmClick() {
56
+ var _a, _b, _c;
57
+ if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.removeTextConfirm) || ((_b = this.data) === null || _b === void 0 ? void 0 : _b.removeText) === ((_c = this.data) === null || _c === void 0 ? void 0 : _c.removeTextConfirm)) {
58
+ this.dialogRef.close(this.data);
59
+ }
60
+ }
61
+ isConfirmDisabled() {
62
+ var _a, _b, _c;
63
+ if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.removeTextConfirm)) {
64
+ return false;
65
+ }
66
+ return ((_b = this.data) === null || _b === void 0 ? void 0 : _b.removeText) !== ((_c = this.data) === null || _c === void 0 ? void 0 : _c.removeTextConfirm);
67
+ }
68
+ }
69
+ ConfirmRemoveModalDataComponent.ɵfac = function ConfirmRemoveModalDataComponent_Factory(t) { return new (t || ConfirmRemoveModalDataComponent)(ɵɵdirectiveInject(MatDialogRef), ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
70
+ ConfirmRemoveModalDataComponent.ɵcmp = ɵɵdefineComponent({ type: ConfirmRemoveModalDataComponent, selectors: [["confirm-remove-modal-data"]], decls: 8, vars: 7, consts: [[1, "modal-title"], ["mat-dialog-title", "", 4, "ngIf"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick", 4, "ngIf"], ["mat-dialog-content", "", 1, "modal-content"], [3, "innerHTML", 4, "ngIf"], [3, "label", "ngModel", "ngModelChange", 4, "ngIf"], ["mat-dialog-actions", "", 1, "modal-actions"], [3, "btnDisabled", "icon", "label", "onClick"], ["mat-dialog-title", ""], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick"], [3, "innerHTML"], [3, "label", "ngModel", "ngModelChange"]], template: function ConfirmRemoveModalDataComponent_Template(rf, ctx) { if (rf & 1) {
71
+ ɵɵelementStart(0, "div", 0);
72
+ ɵɵtemplate(1, ConfirmRemoveModalDataComponent_h3_1_Template, 2, 1, "h3", 1);
73
+ ɵɵtemplate(2, ConfirmRemoveModalDataComponent_icon_2_Template, 1, 1, "icon", 2);
74
+ ɵɵelementEnd();
75
+ ɵɵelementStart(3, "div", 3);
76
+ ɵɵtemplate(4, ConfirmRemoveModalDataComponent_p_4_Template, 1, 1, "p", 4);
77
+ ɵɵtemplate(5, ConfirmRemoveModalDataComponent_input_text_5_Template, 1, 2, "input-text", 5);
78
+ ɵɵelementEnd();
79
+ ɵɵelementStart(6, "div", 6);
80
+ ɵɵelementStart(7, "secondary-button", 7);
81
+ ɵɵlistener("onClick", function ConfirmRemoveModalDataComponent_Template_secondary_button_onClick_7_listener() { return ctx.confirmClick(); });
82
+ ɵɵelementEnd();
83
+ ɵɵelementEnd();
84
+ } if (rf & 2) {
85
+ ɵɵadvance(1);
86
+ ɵɵproperty("ngIf", ctx.data.title);
87
+ ɵɵadvance(1);
88
+ ɵɵproperty("ngIf", ctx.data.showCloseIcon);
89
+ ɵɵadvance(2);
90
+ ɵɵproperty("ngIf", ctx.data.content);
91
+ ɵɵadvance(1);
92
+ ɵɵproperty("ngIf", ctx.data.removeTextConfirm);
93
+ ɵɵadvance(2);
94
+ ɵɵproperty("btnDisabled", ctx.isConfirmDisabled())("icon", ctx.data.confirmIcon)("label", ctx.data.confirmText);
95
+ } }, directives: [NgIf, MatDialogContent, MatDialogActions, SecondaryButtonComponent, MatDialogTitle, IconComponent, InputTextComponent, NgControlStatus, NgModel], styles: [".modal-title[_ngcontent-%COMP%]{align-items:flex-start;display:flex;justify-content:center;position:relative;width:100%}.modal-title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;margin:0;text-align:center;width:100%}.modal-title[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{position:absolute;right:-5px;top:-5px}.modal-content[_ngcontent-%COMP%]{border:none!important;margin:20px 0!important;text-align:center!important}.modal-content[_ngcontent-%COMP%] input-text[_ngcontent-%COMP%]{width:80%}.modal-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;width:100%}"] });
96
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(ConfirmRemoveModalDataComponent, [{
97
+ type: Component,
98
+ args: [{
99
+ selector: 'confirm-remove-modal-data',
100
+ templateUrl: 'confirm-remove-modal.component.html',
101
+ styleUrls: ['confirm-remove-modal.component.scss']
102
+ }]
103
+ }], function () { return [{ type: MatDialogRef }, { type: ConfirmRemoveDialogData, decorators: [{
104
+ type: Inject,
105
+ args: [MAT_DIALOG_DATA]
106
+ }] }]; }, null); })();
111
107
 
112
- class ModalsModule {
113
- }
114
- ModalsModule.decorators = [
115
- { type: NgModule, args: [{
116
- imports: [
117
- CommonModule,
118
- MatDialogModule,
119
- MatFormFieldModule,
120
- FormsModule,
121
- MatInputModule,
122
- InputsModule,
123
- ButtonsModule,
124
- IconsModule,
125
- ],
126
- declarations: [
127
- ConfirmRemoveModalComponent,
128
- ConfirmRemoveModalDataComponent
129
- ],
130
- exports: [
131
- ConfirmRemoveModalComponent,
132
- ConfirmRemoveModalDataComponent
133
- ],
134
- entryComponents: [
135
- ConfirmRemoveModalDataComponent
136
- ],
137
- providers: []
138
- },] }
139
- ];
108
+ class ModalsModule {
109
+ }
110
+ ModalsModule.ɵmod = ɵɵdefineNgModule({ type: ModalsModule });
111
+ ModalsModule.ɵinj = ɵɵdefineInjector({ factory: function ModalsModule_Factory(t) { return new (t || ModalsModule)(); }, providers: [], imports: [[
112
+ CommonModule,
113
+ MatDialogModule,
114
+ MatFormFieldModule,
115
+ FormsModule,
116
+ MatInputModule,
117
+ InputsModule,
118
+ ButtonsModule,
119
+ IconsModule,
120
+ ]] });
121
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent], imports: [CommonModule,
122
+ MatDialogModule,
123
+ MatFormFieldModule,
124
+ FormsModule,
125
+ MatInputModule,
126
+ InputsModule,
127
+ ButtonsModule,
128
+ IconsModule], exports: [ConfirmRemoveModalDataComponent] }); })();
129
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(ModalsModule, [{
130
+ type: NgModule,
131
+ args: [{
132
+ imports: [
133
+ CommonModule,
134
+ MatDialogModule,
135
+ MatFormFieldModule,
136
+ FormsModule,
137
+ MatInputModule,
138
+ InputsModule,
139
+ ButtonsModule,
140
+ IconsModule,
141
+ ],
142
+ declarations: [
143
+ ConfirmRemoveModalDataComponent
144
+ ],
145
+ exports: [
146
+ ConfirmRemoveModalDataComponent
147
+ ],
148
+ providers: []
149
+ }]
150
+ }], null, null); })();
140
151
 
141
- /**
142
- * Generated bundle index. Do not edit.
152
+ /**
153
+ * Generated bundle index. Do not edit.
143
154
  */
144
155
 
145
- export { ConfirmRemoveModalComponent, ConfirmRemoveModalDataComponent, DialogConfig, ModalsModule };
156
+ export { ConfirmRemoveDialogData, ConfirmRemoveModalDataComponent, ModalsModule };
146
157
  //# sourceMappingURL=apipass-modals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"apipass-modals.js","sources":["../../../projects/modals/src/lib/confirm-remove-modal.component.ts","../../../projects/modals/src/modals.module.ts","../../../projects/modals/src/apipass-modals.ts"],"sourcesContent":["import {Component, EventEmitter, Inject, Input, OnInit, Output} from '@angular/core';\r\nimport {MAT_DIALOG_DATA, MatDialog, MatDialogRef} from '@angular/material/dialog';\r\nimport {Direction} from '@angular/cdk/bidi';\r\n\r\nexport declare type DialogRole = 'dialog' | 'alertdialog';\r\n\r\nexport interface DialogPosition {\r\n top?: string;\r\n bottom?: string;\r\n left?: string;\r\n right?: string;\r\n}\r\n\r\nexport class DialogConfig {\r\n id?: string;\r\n role?: DialogRole;\r\n panelClass?: string | string[];\r\n hasBackdrop?: boolean;\r\n backdropClass?: string;\r\n disableClose?: boolean;\r\n\r\n width?: string;\r\n height?: string;\r\n minWidth?: number | string;\r\n minHeight?: number | string;\r\n maxWidth?: number | string;\r\n maxHeight?: number | string;\r\n\r\n data?: any;\r\n position?: DialogPosition;\r\n direction?: Direction;\r\n ariaDescribedBy?: string | null;\r\n ariaLabelledBy?: string | null;\r\n ariaLabel?: string | null;\r\n autoFocus?: boolean;\r\n restoreFocus?: boolean;\r\n closeOnNavigation?: boolean;\r\n}\r\n\r\nexport interface DialogData {\r\n title: string;\r\n content: string;\r\n confirmIcon: string;\r\n confirmText: string;\r\n removeText: string;\r\n removeTextLabel: string;\r\n removeTextConfirm: string;\r\n showCloseIcon: boolean;\r\n closeLabel: string;\r\n}\r\n\r\n@Component({\r\n selector: 'confirm-remove-modal',\r\n template: ``\r\n})\r\nexport class ConfirmRemoveModalComponent implements OnInit {\r\n\r\n @Input() public title = '';\r\n @Input() public content = '';\r\n @Input() public confirmIcon = '';\r\n @Input() public confirmText = 'Remove';\r\n @Input() public removeTextLabel = '';\r\n @Input() public removeTextConfirm = '';\r\n @Input() public showCloseIcon = true;\r\n @Input() public closeLabel = 'Close';\r\n\r\n @Input() public dialogConfig: DialogConfig = new DialogConfig();\r\n\r\n @Input() public openModal: EventEmitter<any> = new EventEmitter();\r\n @Output() public confirmModal: EventEmitter<any> = new EventEmitter();\r\n @Output() public closeModal: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor(public dialog: MatDialog) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.openModal.subscribe((item: any) => {\r\n this.dialogConfig.data = {\r\n title: this.title,\r\n content: this.content,\r\n confirmIcon: this.confirmIcon,\r\n confirmText: this.confirmText,\r\n removeText: '',\r\n removeTextLabel: this.removeTextLabel,\r\n removeTextConfirm: this.removeTextConfirm,\r\n showCloseIcon: this.showCloseIcon,\r\n closeLabel: this.closeLabel,\r\n item\r\n };\r\n const dialogRef = this.dialog.open(ConfirmRemoveModalDataComponent, this.dialogConfig);\r\n dialogRef.afterClosed().subscribe((result: DialogData) => {\r\n if (!result) {\r\n this.closeModal.next(item);\r\n }\r\n if (!this.removeTextConfirm || result?.removeText === this.removeTextConfirm) {\r\n this.confirmModal.next(item);\r\n }\r\n });\r\n });\r\n }\r\n\r\n}\r\n\r\n@Component({\r\n selector: 'confirm-remove-modal-data',\r\n templateUrl: 'confirm-remove-modal.component.html',\r\n styleUrls: ['confirm-remove-modal.component.scss']\r\n})\r\nexport class ConfirmRemoveModalDataComponent {\r\n\r\n constructor(\r\n public dialogRef: MatDialogRef<ConfirmRemoveModalDataComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: DialogData,\r\n ) {\r\n }\r\n\r\n closeClick(): void {\r\n this.dialogRef.close();\r\n }\r\n\r\n confirmClick(): void {\r\n if (!this.data?.removeTextConfirm || this.data?.removeText === this.data?.removeTextConfirm) {\r\n this.dialogRef.close(this.data);\r\n }\r\n }\r\n\r\n isConfirmDisabled(): boolean {\r\n if (!this.data?.removeTextConfirm) {\r\n return false;\r\n }\r\n return this.data?.removeText !== this.data?.removeTextConfirm;\r\n }\r\n\r\n}\r\n","import {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {ConfirmRemoveModalComponent, ConfirmRemoveModalDataComponent} from './lib/confirm-remove-modal.component';\r\nimport {MatDialogModule} from '@angular/material/dialog';\r\nimport {MatFormFieldModule} from '@angular/material/form-field';\r\nimport {FormsModule} from '@angular/forms';\r\nimport {MatInputModule} from '@angular/material/input';\r\nimport {ButtonsModule} from '@apipass/buttons';\r\nimport {IconsModule} from '@apipass/icons';\r\nimport {InputsModule} from '@apipass/inputs';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatDialogModule,\r\n MatFormFieldModule,\r\n FormsModule,\r\n MatInputModule,\r\n InputsModule,\r\n ButtonsModule,\r\n IconsModule,\r\n ],\r\n declarations: [\r\n ConfirmRemoveModalComponent,\r\n ConfirmRemoveModalDataComponent\r\n ],\r\n exports: [\r\n ConfirmRemoveModalComponent,\r\n ConfirmRemoveModalDataComponent\r\n ],\r\n entryComponents: [\r\n ConfirmRemoveModalDataComponent\r\n ],\r\n providers: []\r\n})\r\nexport class ModalsModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"apipass-modals.js","sources":["../../../projects/modals/src/lib/confirm-remove-modal.component.html","../../../projects/modals/src/lib/confirm-remove-modal.component.ts","../../../projects/modals/src/modals.module.ts","../../../projects/modals/src/apipass-modals.ts"],"sourcesContent":["<div class=\"modal-title\">\n <h3 *ngIf=\"data.title\" mat-dialog-title>\n {{data.title}}\n </h3>\n <icon *ngIf=\"data.showCloseIcon\" type=\"tertiary clickable\" name=\"fas fa-times\" [title]=\"data.closeLabel\" (onClick)=\"closeClick()\"></icon>\n</div>\n\n<div class=\"modal-content\" mat-dialog-content>\n <p *ngIf=\"data.content\" [innerHTML]=\"data.content\"></p>\n <input-text *ngIf=\"data.removeTextConfirm\" [label]=\"data.removeTextLabel\" [(ngModel)]=\"data.removeText\"></input-text>\n</div>\n\n<div class=\"modal-actions\" mat-dialog-actions>\n <secondary-button [btnDisabled]=\"isConfirmDisabled()\" [icon]=\"data.confirmIcon\" [label]=\"data.confirmText\" (onClick)=\"confirmClick()\"></secondary-button>\n</div>\n","import {Component, Inject} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\n\nexport class ConfirmRemoveDialogData {\n title?: string;\n content?: string;\n confirmIcon?: string;\n confirmText?: string;\n removeText?: string;\n removeTextLabel?: string;\n removeTextConfirm?: string;\n showCloseIcon?: boolean;\n closeLabel?: string;\n item?: any;\n}\n\n@Component({\n selector: 'confirm-remove-modal-data',\n templateUrl: 'confirm-remove-modal.component.html',\n styleUrls: ['confirm-remove-modal.component.scss']\n})\nexport class ConfirmRemoveModalDataComponent {\n\n constructor(\n public dialogRef: MatDialogRef<ConfirmRemoveModalDataComponent>,\n @Inject(MAT_DIALOG_DATA) public data: ConfirmRemoveDialogData,\n ) {\n }\n\n closeClick(): void {\n this.dialogRef.close();\n }\n\n confirmClick(): void {\n if (!this.data?.removeTextConfirm || this.data?.removeText === this.data?.removeTextConfirm) {\n this.dialogRef.close(this.data);\n }\n }\n\n isConfirmDisabled(): boolean {\n if (!this.data?.removeTextConfirm) {\n return false;\n }\n return this.data?.removeText !== this.data?.removeTextConfirm;\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ConfirmRemoveModalDataComponent} from './lib/confirm-remove-modal.component';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {FormsModule} from '@angular/forms';\nimport {MatInputModule} from '@angular/material/input';\nimport {ButtonsModule} from '@apipass/buttons';\nimport {IconsModule} from '@apipass/icons';\nimport {InputsModule} from '@apipass/inputs';\n\n@NgModule({\n imports: [\n CommonModule,\n MatDialogModule,\n MatFormFieldModule,\n FormsModule,\n MatInputModule,\n InputsModule,\n ButtonsModule,\n IconsModule,\n ],\n declarations: [\n ConfirmRemoveModalDataComponent\n ],\n exports: [\n ConfirmRemoveModalDataComponent\n ],\n providers: []\n})\nexport class ModalsModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0.ɵɵelementStart","i0.ɵɵtext","i0.ɵɵelementEnd","i0.ɵɵadvance","i0.ɵɵtextInterpolate1","i0.ɵɵlistener","i0.ɵɵproperty","i0.ɵɵelement","i0.ɵɵtemplate"],"mappings":";;;;;;;;;;;;IACEA,0BACE;IAAAC,SACF;IAAAC,cAAK;;;IADHC,YACF;IADEC,+CACF;;;;IACAJ,4BAAyI;IAAhCK,6LAAwB;IAACH,cAAO;;;IAA1DI,2CAAyB;;;IAIxGC,qBAAuD;;;IAA/BD,4DAA0B;;;;IAClDN,mCAAqH;IAA3CK,uOAA6B;IAACH,cAAa;;;IAA1EI,gDAA8B,mCAAA;;MCN9D,uBAAuB;CAWnC;MAOY,+BAA+B;IAE1C,YACS,SAAwD,EAC/B,IAA6B;QADtD,cAAS,GAAT,SAAS,CAA+C;QAC/B,SAAI,GAAJ,IAAI,CAAyB;KAE9D;IAED,UAAU;QACR,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;KACxB;IAED,YAAY;;QACV,IAAI,QAAC,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,IAAI,OAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,aAAK,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,EAAE;YAC3F,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACjC;KACF;IAED,iBAAiB;;QACf,IAAI,QAAC,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,EAAE;YACjC,OAAO,KAAK,CAAC;SACd;QACD,OAAO,OAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,aAAK,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,CAAC;KAC/D;;8GAvBU,+BAA+B,qDAIhC,eAAe;iEAJd,+BAA+B;QDrB5CN,2BACE;QAAAQ,2EACE;QAEFA,+EAAkI;QACpIN,cAAM;QAENF,2BACE;QAAAQ,yEAAmD;QACnDA,2FAAwG;QAC1GN,cAAM;QAENF,2BACE;QAAAA,wCAAyJ;QAA9CK,uHAAW,kBAAc,IAAC;QAACH,cAAmB;QAC3JA,cAAM;;QAbAC,YAAkB;QAAlBG,kCAAkB;QAGhBH,YAA0B;QAA1BG,0CAA0B;QAI7BH,YAAoB;QAApBG,oCAAoB;QACXH,YAA8B;QAA9BG,8CAA8B;QAIxBH,YAAmC;QAAnCG,kDAAmC,8BAAA,+BAAA;;+CCQ1C,+BAA+B;cAL3C,SAAS;eAAC;gBACT,QAAQ,EAAE,2BAA2B;gBACrC,WAAW,EAAE,qCAAqC;gBAClD,SAAS,EAAE,CAAC,qCAAqC,CAAC;aACnD;8DAKyC,uBAAuB;sBAA5D,MAAM;uBAAC,eAAe;;;MCKd,YAAY;;6CAAZ,YAAY;oGAAZ,YAAY,mBAFZ,EAAE,YAhBJ;YACP,YAAY;YACZ,eAAe;YACf,kBAAkB;YAClB,WAAW;YACX,cAAc;YACd,YAAY;YACZ,aAAa;YACb,WAAW;SACZ;qFASU,YAAY,mBAPrB,+BAA+B,aAV/B,YAAY;QACZ,eAAe;QACf,kBAAkB;QAClB,WAAW;QACX,cAAc;QACd,YAAY;QACZ,aAAa;QACb,WAAW,aAMX,+BAA+B;+CAItB,YAAY;cAnBxB,QAAQ;eAAC;gBACR,OAAO,EAAE;oBACP,YAAY;oBACZ,eAAe;oBACf,kBAAkB;oBAClB,WAAW;oBACX,cAAc;oBACd,YAAY;oBACZ,aAAa;oBACb,WAAW;iBACZ;gBACD,YAAY,EAAE;oBACZ,+BAA+B;iBAChC;gBACD,OAAO,EAAE;oBACP,+BAA+B;iBAChC;gBACD,SAAS,EAAE,EAAE;aACd;;;AC7BD;;;;;;"}
@@ -1,69 +1,24 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { MatDialog, MatDialogRef } from '@angular/material/dialog';
3
- import { Direction } from '@angular/cdk/bidi';
4
- export declare type DialogRole = 'dialog' | 'alertdialog';
5
- export interface DialogPosition {
6
- top?: string;
7
- bottom?: string;
8
- left?: string;
9
- right?: string;
10
- }
11
- export declare class DialogConfig {
12
- id?: string;
13
- role?: DialogRole;
14
- panelClass?: string | string[];
15
- hasBackdrop?: boolean;
16
- backdropClass?: string;
17
- disableClose?: boolean;
18
- width?: string;
19
- height?: string;
20
- minWidth?: number | string;
21
- minHeight?: number | string;
22
- maxWidth?: number | string;
23
- maxHeight?: number | string;
24
- data?: any;
25
- position?: DialogPosition;
26
- direction?: Direction;
27
- ariaDescribedBy?: string | null;
28
- ariaLabelledBy?: string | null;
29
- ariaLabel?: string | null;
30
- autoFocus?: boolean;
31
- restoreFocus?: boolean;
32
- closeOnNavigation?: boolean;
33
- }
34
- export interface DialogData {
35
- title: string;
36
- content: string;
37
- confirmIcon: string;
38
- confirmText: string;
39
- removeText: string;
40
- removeTextLabel: string;
41
- removeTextConfirm: string;
42
- showCloseIcon: boolean;
43
- closeLabel: string;
44
- }
45
- export declare class ConfirmRemoveModalComponent implements OnInit {
46
- dialog: MatDialog;
47
- title: string;
48
- content: string;
49
- confirmIcon: string;
50
- confirmText: string;
51
- removeTextLabel: string;
52
- removeTextConfirm: string;
53
- showCloseIcon: boolean;
54
- closeLabel: string;
55
- dialogConfig: DialogConfig;
56
- openModal: EventEmitter<any>;
57
- confirmModal: EventEmitter<any>;
58
- closeModal: EventEmitter<any>;
59
- constructor(dialog: MatDialog);
60
- ngOnInit(): void;
61
- }
62
- export declare class ConfirmRemoveModalDataComponent {
63
- dialogRef: MatDialogRef<ConfirmRemoveModalDataComponent>;
64
- data: DialogData;
65
- constructor(dialogRef: MatDialogRef<ConfirmRemoveModalDataComponent>, data: DialogData);
66
- closeClick(): void;
67
- confirmClick(): void;
68
- isConfirmDisabled(): boolean;
69
- }
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ConfirmRemoveDialogData {
4
+ title?: string;
5
+ content?: string;
6
+ confirmIcon?: string;
7
+ confirmText?: string;
8
+ removeText?: string;
9
+ removeTextLabel?: string;
10
+ removeTextConfirm?: string;
11
+ showCloseIcon?: boolean;
12
+ closeLabel?: string;
13
+ item?: any;
14
+ }
15
+ export declare class ConfirmRemoveModalDataComponent {
16
+ dialogRef: MatDialogRef<ConfirmRemoveModalDataComponent>;
17
+ data: ConfirmRemoveDialogData;
18
+ constructor(dialogRef: MatDialogRef<ConfirmRemoveModalDataComponent>, data: ConfirmRemoveDialogData);
19
+ closeClick(): void;
20
+ confirmClick(): void;
21
+ isConfirmDisabled(): boolean;
22
+ static ɵfac: i0.ɵɵFactoryDef<ConfirmRemoveModalDataComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<ConfirmRemoveModalDataComponent, "confirm-remove-modal-data", never, {}, {}, never, never>;
24
+ }
@@ -1,2 +1,14 @@
1
- export declare class ModalsModule {
2
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./lib/confirm-remove-modal.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/dialog";
5
+ import * as i4 from "@angular/material/form-field";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "@angular/material/input";
8
+ import * as i7 from "@apipass/inputs";
9
+ import * as i8 from "@apipass/buttons";
10
+ import * as i9 from "@apipass/icons";
11
+ export declare class ModalsModule {
12
+ static ɵmod: i0.ɵɵNgModuleDefWithMeta<ModalsModule, [typeof i1.ConfirmRemoveModalDataComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.MatFormFieldModule, typeof i5.FormsModule, typeof i6.MatInputModule, typeof i7.InputsModule, typeof i8.ButtonsModule, typeof i9.IconsModule], [typeof i1.ConfirmRemoveModalDataComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDef<ModalsModule>;
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apipass/modals",
3
- "version": "0.1.6",
3
+ "version": "0.1.9-alpha.1",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^10.0.11",
6
6
  "@angular/cdk": "^10.1.3",
@@ -10,9 +10,9 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@angular/material": "^10.1.3",
13
- "@apipass/buttons": "^0.1.1",
14
- "@apipass/icons": "^0.1.1",
15
- "@apipass/inputs": "^0.1.1",
13
+ "@apipass/buttons": "^0.1.4",
14
+ "@apipass/icons": "^0.1.4",
15
+ "@apipass/inputs": "^0.1.4",
16
16
  "tslib": "2.0.0"
17
17
  },
18
18
  "main": "bundles/apipass-modals.umd.js",
@@ -21,6 +21,8 @@
21
21
  "esm2015": "esm2015/apipass-modals.js",
22
22
  "fesm2015": "fesm2015/apipass-modals.js",
23
23
  "typings": "apipass-modals.d.ts",
24
- "metadata": "apipass-modals.metadata.json",
25
- "sideEffects": false
24
+ "sideEffects": false,
25
+ "scripts": {
26
+ "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\\n')\" && exit 1"
27
+ }
26
28
  }
package/public-api.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export * from './modals.module';
2
- export * from './lib/confirm-remove-modal.component';
1
+ export * from '@angular/material/dialog';
2
+ export * from './modals.module';
3
+ export * from './lib/confirm-remove-modal.component';
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"ModalsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material/dialog","name":"MatDialogModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/material/form-field","name":"MatFormFieldModule","line":15,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":16,"character":4},{"__symbolic":"reference","module":"@angular/material/input","name":"MatInputModule","line":17,"character":4},{"__symbolic":"reference","module":"@apipass/inputs","name":"InputsModule","line":18,"character":4},{"__symbolic":"reference","module":"@apipass/buttons","name":"ButtonsModule","line":19,"character":4},{"__symbolic":"reference","module":"@apipass/icons","name":"IconsModule","line":20,"character":4}],"declarations":[{"__symbolic":"reference","name":"ConfirmRemoveModalComponent"},{"__symbolic":"reference","name":"ConfirmRemoveModalDataComponent"}],"exports":[{"__symbolic":"reference","name":"ConfirmRemoveModalComponent"},{"__symbolic":"reference","name":"ConfirmRemoveModalDataComponent"}],"entryComponents":[{"__symbolic":"reference","name":"ConfirmRemoveModalDataComponent"}],"providers":[]}]}],"members":{}},"DialogRole":{"__symbolic":"interface"},"DialogPosition":{"__symbolic":"interface"},"DialogConfig":{"__symbolic":"class","members":{}},"DialogData":{"__symbolic":"interface"},"ConfirmRemoveModalComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":51,"character":1},"arguments":[{"selector":"confirm-remove-modal","template":""}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"confirmIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":59,"character":3}}]}],"confirmText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"removeTextLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":3}}]}],"removeTextConfirm":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"showCloseIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":63,"character":3}}]}],"closeLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":3}}]}],"dialogConfig":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":66,"character":3}}]}],"openModal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":68,"character":3}}]}],"confirmModal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":69,"character":3}}]}],"closeModal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":70,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/material/dialog","name":"MatDialog","line":72,"character":29}]}],"ngOnInit":[{"__symbolic":"method"}]}},"ConfirmRemoveModalDataComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":103,"character":1},"arguments":[{"selector":"confirm-remove-modal-data","template":"<div class=\"modal-title\">\r\n <h3 *ngIf=\"data.title\" mat-dialog-title>\r\n {{data.title}}\r\n </h3>\r\n <icon *ngIf=\"data.showCloseIcon\" type=\"tertiary clickable\" name=\"fas fa-times\" [title]=\"data.closeLabel\" (onClick)=\"closeClick()\"></icon>\r\n</div>\r\n\r\n<div class=\"modal-content\" mat-dialog-content>\r\n <p *ngIf=\"data.content\" [innerHTML]=\"data.content\"></p>\r\n <input-text *ngIf=\"data.removeTextConfirm\" [label]=\"data.removeTextLabel\" [(ngModel)]=\"data.removeText\"></input-text>\r\n</div>\r\n\r\n<div class=\"modal-actions\" mat-dialog-actions>\r\n <secondary-button [btnDisabled]=\"isConfirmDisabled()\" [icon]=\"data.confirmIcon\" [label]=\"data.confirmText\" (onClick)=\"confirmClick()\"></secondary-button>\r\n</div>\r\n","styles":[".modal-title{align-items:flex-start;display:flex;justify-content:center;position:relative;width:100%}.modal-title h3{font-weight:700;margin:0;text-align:center;width:100%}.modal-title icon{position:absolute;right:-5px;top:-5px}.modal-content{border:none!important;margin:20px 0!important;text-align:center!important;width:100%!important}.modal-content input-text{width:80%}.modal-actions{align-items:center;display:flex;justify-content:center;width:100%}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":112,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/material/dialog","name":"MAT_DIALOG_DATA","line":112,"character":12}]}]],"parameters":[{"__symbolic":"reference","name":"MatDialogRef","module":"@angular/material/dialog","arguments":[{"__symbolic":"reference","name":"ConfirmRemoveModalDataComponent"}]},{"__symbolic":"reference","name":"any"}]}],"closeClick":[{"__symbolic":"method"}],"confirmClick":[{"__symbolic":"method"}],"isConfirmDisabled":[{"__symbolic":"method"}]}}},"origins":{"ModalsModule":"./modals.module","DialogRole":"./lib/confirm-remove-modal.component","DialogPosition":"./lib/confirm-remove-modal.component","DialogConfig":"./lib/confirm-remove-modal.component","DialogData":"./lib/confirm-remove-modal.component","ConfirmRemoveModalComponent":"./lib/confirm-remove-modal.component","ConfirmRemoveModalDataComponent":"./lib/confirm-remove-modal.component"},"importAs":"@apipass/modals"}