@apipass/modals 0.2.5-alpha.0 → 0.2.5-alpha.3
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.
- package/bundles/apipass-modals.umd.js +110 -11
- package/bundles/apipass-modals.umd.js.map +1 -1
- package/bundles/apipass-modals.umd.min.js +1 -1
- package/bundles/apipass-modals.umd.min.js.map +1 -1
- package/esm2015/lib/confirm-modal/confirm-modal.component.js +83 -0
- package/esm2015/lib/{confirm-remove-modal.component.js → confirm-remove-modal/confirm-remove-modal.component.js} +5 -8
- package/esm2015/modals.module.js +11 -6
- package/esm2015/public-api.js +3 -2
- package/fesm2015/apipass-modals.js +91 -14
- package/fesm2015/apipass-modals.js.map +1 -1
- package/lib/confirm-modal/confirm-modal.component.d.ts +22 -0
- package/lib/{confirm-remove-modal.component.d.ts → confirm-remove-modal/confirm-remove-modal.component.d.ts} +0 -0
- package/modals.module.d.ts +11 -10
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
|
@@ -6,14 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
function ConfirmRemoveModalDataComponent_h3_1_Template(rf, ctx) {
|
|
8
8
|
if (rf & 1) {
|
|
9
|
-
i0.ɵɵ
|
|
10
|
-
i0.ɵɵtext(1);
|
|
11
|
-
i0.ɵɵelementEnd();
|
|
9
|
+
i0.ɵɵelement(0, "h3", 8);
|
|
12
10
|
}
|
|
13
11
|
if (rf & 2) {
|
|
14
12
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
-
i0.ɵɵ
|
|
16
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.data.title, " ");
|
|
13
|
+
i0.ɵɵproperty("innerHTML", ctx_r0.data.title, i0.ɵɵsanitizeHtml);
|
|
17
14
|
}
|
|
18
15
|
}
|
|
19
16
|
function ConfirmRemoveModalDataComponent_icon_2_Template(rf, ctx) {
|
|
@@ -78,10 +75,10 @@
|
|
|
78
75
|
return ConfirmRemoveModalDataComponent;
|
|
79
76
|
}());
|
|
80
77
|
ConfirmRemoveModalDataComponent.ɵfac = function ConfirmRemoveModalDataComponent_Factory(t) { return new (t || ConfirmRemoveModalDataComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(i1.MAT_DIALOG_DATA)); };
|
|
81
|
-
ConfirmRemoveModalDataComponent.ɵcmp = i0.ɵɵ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) {
|
|
78
|
+
ConfirmRemoveModalDataComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ConfirmRemoveModalDataComponent, selectors: [["confirm-remove-modal-data"]], decls: 8, vars: 7, consts: [[1, "modal-title"], ["mat-dialog-title", "", 3, "innerHTML", 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", "", 3, "innerHTML"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick"], [3, "innerHTML"], [3, "label", "ngModel", "ngModelChange"]], template: function ConfirmRemoveModalDataComponent_Template(rf, ctx) {
|
|
82
79
|
if (rf & 1) {
|
|
83
80
|
i0.ɵɵelementStart(0, "div", 0);
|
|
84
|
-
i0.ɵɵtemplate(1, ConfirmRemoveModalDataComponent_h3_1_Template,
|
|
81
|
+
i0.ɵɵtemplate(1, ConfirmRemoveModalDataComponent_h3_1_Template, 1, 1, "h3", 1);
|
|
85
82
|
i0.ɵɵtemplate(2, ConfirmRemoveModalDataComponent_icon_2_Template, 1, 1, "icon", 2);
|
|
86
83
|
i0.ɵɵelementEnd();
|
|
87
84
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -123,6 +120,102 @@
|
|
|
123
120
|
}, null);
|
|
124
121
|
})();
|
|
125
122
|
|
|
123
|
+
function ConfirmModalDataComponent_h3_1_Template(rf, ctx) {
|
|
124
|
+
if (rf & 1) {
|
|
125
|
+
i0.ɵɵelement(0, "h3", 7);
|
|
126
|
+
}
|
|
127
|
+
if (rf & 2) {
|
|
128
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
129
|
+
i0.ɵɵproperty("innerHTML", ctx_r0.data.title, i0.ɵɵsanitizeHtml);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function ConfirmModalDataComponent_icon_2_Template(rf, ctx) {
|
|
133
|
+
if (rf & 1) {
|
|
134
|
+
var _r4_1 = i0.ɵɵgetCurrentView();
|
|
135
|
+
i0.ɵɵelementStart(0, "icon", 8);
|
|
136
|
+
i0.ɵɵlistener("onClick", function ConfirmModalDataComponent_icon_2_Template_icon_onClick_0_listener() { i0.ɵɵrestoreView(_r4_1); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.closeClick(); });
|
|
137
|
+
i0.ɵɵelementEnd();
|
|
138
|
+
}
|
|
139
|
+
if (rf & 2) {
|
|
140
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
141
|
+
i0.ɵɵproperty("title", ctx_r1.data.closeLabel);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function ConfirmModalDataComponent_p_4_Template(rf, ctx) {
|
|
145
|
+
if (rf & 1) {
|
|
146
|
+
i0.ɵɵelement(0, "p", 9);
|
|
147
|
+
}
|
|
148
|
+
if (rf & 2) {
|
|
149
|
+
var ctx_r2 = i0.ɵɵnextContext();
|
|
150
|
+
i0.ɵɵproperty("innerHTML", ctx_r2.data.content, i0.ɵɵsanitizeHtml);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
var ConfirmDialogData = /** @class */ (function () {
|
|
154
|
+
function ConfirmDialogData() {
|
|
155
|
+
}
|
|
156
|
+
return ConfirmDialogData;
|
|
157
|
+
}());
|
|
158
|
+
var ConfirmModalDataComponent = /** @class */ (function () {
|
|
159
|
+
function ConfirmModalDataComponent(dialogRef, data) {
|
|
160
|
+
this.dialogRef = dialogRef;
|
|
161
|
+
this.data = data;
|
|
162
|
+
}
|
|
163
|
+
ConfirmModalDataComponent.prototype.closeClick = function () {
|
|
164
|
+
this.dialogRef.close(false);
|
|
165
|
+
};
|
|
166
|
+
ConfirmModalDataComponent.prototype.confirmClick = function () {
|
|
167
|
+
this.dialogRef.close(true);
|
|
168
|
+
};
|
|
169
|
+
return ConfirmModalDataComponent;
|
|
170
|
+
}());
|
|
171
|
+
ConfirmModalDataComponent.ɵfac = function ConfirmModalDataComponent_Factory(t) { return new (t || ConfirmModalDataComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(i1.MAT_DIALOG_DATA)); };
|
|
172
|
+
ConfirmModalDataComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ConfirmModalDataComponent, selectors: [["confirm-modal-data"]], decls: 8, vars: 7, consts: [[1, "modal-title"], ["mat-dialog-title", "", 3, "innerHTML", 4, "ngIf"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick", 4, "ngIf"], ["mat-dialog-content", "", 1, "modal-content"], [3, "innerHTML", 4, "ngIf"], ["mat-dialog-actions", "", 1, "modal-actions"], [3, "icon", "label", "onClick"], ["mat-dialog-title", "", 3, "innerHTML"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick"], [3, "innerHTML"]], template: function ConfirmModalDataComponent_Template(rf, ctx) {
|
|
173
|
+
if (rf & 1) {
|
|
174
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
175
|
+
i0.ɵɵtemplate(1, ConfirmModalDataComponent_h3_1_Template, 1, 1, "h3", 1);
|
|
176
|
+
i0.ɵɵtemplate(2, ConfirmModalDataComponent_icon_2_Template, 1, 1, "icon", 2);
|
|
177
|
+
i0.ɵɵelementEnd();
|
|
178
|
+
i0.ɵɵelementStart(3, "div", 3);
|
|
179
|
+
i0.ɵɵtemplate(4, ConfirmModalDataComponent_p_4_Template, 1, 1, "p", 4);
|
|
180
|
+
i0.ɵɵelementEnd();
|
|
181
|
+
i0.ɵɵelementStart(5, "div", 5);
|
|
182
|
+
i0.ɵɵelementStart(6, "tertiary-button", 6);
|
|
183
|
+
i0.ɵɵlistener("onClick", function ConfirmModalDataComponent_Template_tertiary_button_onClick_6_listener() { return ctx.closeClick(); });
|
|
184
|
+
i0.ɵɵelementEnd();
|
|
185
|
+
i0.ɵɵelementStart(7, "primary-button", 6);
|
|
186
|
+
i0.ɵɵlistener("onClick", function ConfirmModalDataComponent_Template_primary_button_onClick_7_listener() { return ctx.confirmClick(); });
|
|
187
|
+
i0.ɵɵelementEnd();
|
|
188
|
+
i0.ɵɵelementEnd();
|
|
189
|
+
}
|
|
190
|
+
if (rf & 2) {
|
|
191
|
+
i0.ɵɵadvance(1);
|
|
192
|
+
i0.ɵɵproperty("ngIf", ctx.data.title);
|
|
193
|
+
i0.ɵɵadvance(1);
|
|
194
|
+
i0.ɵɵproperty("ngIf", ctx.data.showCloseIcon);
|
|
195
|
+
i0.ɵɵadvance(2);
|
|
196
|
+
i0.ɵɵproperty("ngIf", ctx.data.content);
|
|
197
|
+
i0.ɵɵadvance(2);
|
|
198
|
+
i0.ɵɵproperty("icon", ctx.data.cancelIcon)("label", ctx.data.cancelText);
|
|
199
|
+
i0.ɵɵadvance(1);
|
|
200
|
+
i0.ɵɵproperty("icon", ctx.data.confirmIcon)("label", ctx.data.confirmText);
|
|
201
|
+
}
|
|
202
|
+
}, directives: [i2.NgIf, i1.MatDialogContent, i1.MatDialogActions, i3.TertiaryButtonComponent, i3.PrimaryButtonComponent, i1.MatDialogTitle, i4.IconComponent], 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;box-shadow:none!important;margin:20px 0!important;text-align:center!important}.modal-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0!important}.modal-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;width:100%}.modal-actions[_ngcontent-%COMP%] primary-button[_ngcontent-%COMP%]{margin-left:5px}"] });
|
|
203
|
+
/*@__PURE__*/ (function () {
|
|
204
|
+
i0.ɵsetClassMetadata(ConfirmModalDataComponent, [{
|
|
205
|
+
type: i0.Component,
|
|
206
|
+
args: [{
|
|
207
|
+
selector: 'confirm-modal-data',
|
|
208
|
+
templateUrl: 'confirm-modal.component.html',
|
|
209
|
+
styleUrls: ['confirm-modal.component.scss']
|
|
210
|
+
}]
|
|
211
|
+
}], function () {
|
|
212
|
+
return [{ type: i1.MatDialogRef }, { type: ConfirmDialogData, decorators: [{
|
|
213
|
+
type: i0.Inject,
|
|
214
|
+
args: [i1.MAT_DIALOG_DATA]
|
|
215
|
+
}] }];
|
|
216
|
+
}, null);
|
|
217
|
+
})();
|
|
218
|
+
|
|
126
219
|
var ModalsModule = /** @class */ (function () {
|
|
127
220
|
function ModalsModule() {
|
|
128
221
|
}
|
|
@@ -140,14 +233,16 @@
|
|
|
140
233
|
i4.IconsModule,
|
|
141
234
|
]] });
|
|
142
235
|
(function () {
|
|
143
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent
|
|
236
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent,
|
|
237
|
+
ConfirmModalDataComponent], imports: [i2.CommonModule,
|
|
144
238
|
i1.MatDialogModule,
|
|
145
239
|
formField.MatFormFieldModule,
|
|
146
240
|
i6.FormsModule,
|
|
147
241
|
input.MatInputModule,
|
|
148
242
|
i5.InputsModule,
|
|
149
243
|
i3.ButtonsModule,
|
|
150
|
-
i4.IconsModule], exports: [ConfirmRemoveModalDataComponent
|
|
244
|
+
i4.IconsModule], exports: [ConfirmRemoveModalDataComponent,
|
|
245
|
+
ConfirmModalDataComponent] });
|
|
151
246
|
})();
|
|
152
247
|
/*@__PURE__*/ (function () {
|
|
153
248
|
i0.ɵsetClassMetadata(ModalsModule, [{
|
|
@@ -164,10 +259,12 @@
|
|
|
164
259
|
i4.IconsModule,
|
|
165
260
|
],
|
|
166
261
|
declarations: [
|
|
167
|
-
ConfirmRemoveModalDataComponent
|
|
262
|
+
ConfirmRemoveModalDataComponent,
|
|
263
|
+
ConfirmModalDataComponent
|
|
168
264
|
],
|
|
169
265
|
exports: [
|
|
170
|
-
ConfirmRemoveModalDataComponent
|
|
266
|
+
ConfirmRemoveModalDataComponent,
|
|
267
|
+
ConfirmModalDataComponent
|
|
171
268
|
],
|
|
172
269
|
providers: []
|
|
173
270
|
}]
|
|
@@ -186,6 +283,8 @@
|
|
|
186
283
|
}
|
|
187
284
|
});
|
|
188
285
|
});
|
|
286
|
+
exports.ConfirmDialogData = ConfirmDialogData;
|
|
287
|
+
exports.ConfirmModalDataComponent = ConfirmModalDataComponent;
|
|
189
288
|
exports.ConfirmRemoveDialogData = ConfirmRemoveDialogData;
|
|
190
289
|
exports.ConfirmRemoveModalDataComponent = ConfirmRemoveModalDataComponent;
|
|
191
290
|
exports.ModalsModule = ModalsModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apipass-modals.umd.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
|
|
1
|
+
{"version":3,"file":"apipass-modals.umd.js","sources":["../../../projects/modals/src/lib/confirm-remove-modal/confirm-remove-modal.component.html","../../../projects/modals/src/lib/confirm-remove-modal/confirm-remove-modal.component.ts","../../../projects/modals/src/lib/confirm-modal/confirm-modal.component.html","../../../projects/modals/src/lib/confirm-modal/confirm-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\" [innerHTML]=\"data.title\" mat-dialog-title></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","<div class=\"modal-title\">\n <h3 *ngIf=\"data.title\" [innerHTML]=\"data.title\" mat-dialog-title></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</div>\n\n<div class=\"modal-actions\" mat-dialog-actions>\n <tertiary-button [icon]=\"data.cancelIcon\" [label]=\"data.cancelText\" (onClick)=\"closeClick()\"></tertiary-button>\n <primary-button [icon]=\"data.confirmIcon\" [label]=\"data.confirmText\" (onClick)=\"confirmClick()\"></primary-button>\n</div>\n","import {Component, Inject} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\n\nexport class ConfirmDialogData {\n title?: string;\n content?: string;\n confirmIcon?: string;\n confirmText?: string;\n cancelIcon?: string;\n cancelText?: string;\n showCloseIcon?: boolean;\n closeLabel?: string;\n item?: any;\n}\n\n@Component({\n selector: 'confirm-modal-data',\n templateUrl: 'confirm-modal.component.html',\n styleUrls: ['confirm-modal.component.scss']\n})\nexport class ConfirmModalDataComponent {\n\n constructor(\n public dialogRef: MatDialogRef<ConfirmModalDataComponent>,\n @Inject(MAT_DIALOG_DATA) public data: ConfirmDialogData\n ) {\n }\n\n closeClick(): void {\n this.dialogRef.close(false);\n }\n\n confirmClick(): void {\n this.dialogRef.close(true);\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ConfirmRemoveModalDataComponent} from './lib/confirm-remove-modal/confirm-remove-modal.component';\nimport {ConfirmModalDataComponent} from './lib/confirm-modal/confirm-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 ConfirmModalDataComponent\n ],\n exports: [\n ConfirmRemoveModalDataComponent,\n ConfirmModalDataComponent\n ],\n providers: []\n})\nexport class ModalsModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0.ɵɵelement","i0.ɵɵproperty","i0.ɵɵelementStart","i0.ɵɵlistener","i0.ɵɵelementEnd","MAT_DIALOG_DATA","i0.ɵɵtemplate","i0.ɵɵadvance","Component","Inject","CommonModule","MatDialogModule","MatFormFieldModule","FormsModule","MatInputModule","InputsModule","ButtonsModule","IconsModule","NgModule"],"mappings":";;;;;;;;YACEA,wBAAsE;;;;YAA/CC,gEAAwB;;;;;;YAC/CC,+BAAyI;YAAhCC,sMAAwB;YAACC,iBAAO;;;;YAA1DH,8CAAyB;;;;;YAIxGD,wBAAuD;;;;YAA/BC,kEAA0B;;;;;;YAClDC,sCAAqH;YAA3CC,gPAA6B;YAAC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C,SAAS,EAAE,CAAC,8BAA8B,CAAC;qBAC5C;;uDAKyC,iBAAiB;kCAAtDC,SAAM;mCAACJ,kBAAe;;;;;;QCS3B;;;;oDAAa,YAAY;2GAAZ,YAAY,mBAFZ,EAAE,YAlBJ;gBACPK,eAAY;gBACZC,kBAAe;gBACfC,4BAAkB;gBAClBC,cAAW;gBACXC,oBAAc;gBACdC,eAAY;gBACZC,gBAAa;gBACbC,cAAW;aACZ;;iFAWU,YAAY,mBATrB,+BAA+B;gBAC/B,yBAAyB,aAXzBP,eAAY;gBACZC,kBAAe;gBACfC,4BAAkB;gBAClBC,cAAW;gBACXC,oBAAc;gBACdC,eAAY;gBACZC,gBAAa;gBACbC,cAAW,aAOX,+BAA+B;gBAC/B,yBAAyB;;;6BAIhB,YAAY;sBArBxBC,WAAQ;uBAAC;wBACR,OAAO,EAAE;4BACPR,eAAY;4BACZC,kBAAe;4BACfC,4BAAkB;4BAClBC,cAAW;4BACXC,oBAAc;4BACdC,eAAY;4BACZC,gBAAa;4BACbC,cAAW;yBACZ;wBACD,YAAY,EAAE;4BACZ,+BAA+B;4BAC/B,yBAAyB;yBAC1B;wBACD,OAAO,EAAE;4BACP,+BAA+B;4BAC/B,yBAAyB;yBAC1B;wBACD,SAAS,EAAE,EAAE;qBACd;;;;IChCD;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/material/dialog"),require("@angular/core"),require("@angular/common"),require("@apipass/buttons"),require("@apipass/icons"),require("@apipass/inputs"),require("@angular/forms"),require("@angular/material/form-field"),require("@angular/material/input")):"function"==typeof define&&define.amd?define("@apipass/modals",["exports","@angular/material/dialog","@angular/core","@angular/common","@apipass/buttons","@apipass/icons","@apipass/inputs","@angular/forms","@angular/material/form-field","@angular/material/input"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).apipass=t.apipass||{},t.apipass.modals={}),t.ng.material.dialog,t.ng.core,t.ng.common,t.i3,t.i4,t.i5,t.ng.forms,t.ng.material.formField,t.ng.material.input)}(this,(function(t,e,n,o,i,a,l,r,c,d){"use strict";function m(t,e){if(1&t&&n.ɵɵelement(0,"h3",8),2&t){var o=n.ɵɵnextContext();n.ɵɵproperty("innerHTML",o.data.title,n.ɵɵsanitizeHtml)}}function s(t,e){if(1&t){var o=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"icon",9),n.ɵɵlistener("onClick",(function(){return n.ɵɵrestoreView(o),n.ɵɵnextContext().closeClick()})),n.ɵɵelementEnd()}if(2&t){var i=n.ɵɵnextContext();n.ɵɵproperty("title",i.data.closeLabel)}}function p(t,e){if(1&t&&n.ɵɵelement(0,"p",10),2&t){var o=n.ɵɵnextContext();n.ɵɵproperty("innerHTML",o.data.content,n.ɵɵsanitizeHtml)}}function f(t,e){if(1&t){var o=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"input-text",11),n.ɵɵlistener("ngModelChange",(function(t){return n.ɵɵrestoreView(o),n.ɵɵnextContext().data.removeText=t})),n.ɵɵelementEnd()}if(2&t){var i=n.ɵɵnextContext();n.ɵɵproperty("label",i.data.removeTextLabel)("ngModel",i.data.removeText)}}var u=function(){},g=function(){function t(t,e){this.dialogRef=t,this.data=e}return t.prototype.closeClick=function(){this.dialogRef.close()},t.prototype.confirmClick=function(){var t,e,n;(null===(t=this.data)||void 0===t?void 0:t.removeTextConfirm)&&(null===(e=this.data)||void 0===e?void 0:e.removeText)!==(null===(n=this.data)||void 0===n?void 0:n.removeTextConfirm)||this.dialogRef.close(this.data)},t.prototype.isConfirmDisabled=function(){var t,e,n;return!!(null===(t=this.data)||void 0===t?void 0:t.removeTextConfirm)&&(null===(e=this.data)||void 0===e?void 0:e.removeText)!==(null===(n=this.data)||void 0===n?void 0:n.removeTextConfirm)},t}();function C(t,e){if(1&t&&n.ɵɵelement(0,"h3",7),2&t){var o=n.ɵɵnextContext();n.ɵɵproperty("innerHTML",o.data.title,n.ɵɵsanitizeHtml)}}function M(t,e){if(1&t){var o=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"icon",8),n.ɵɵlistener("onClick",(function(){return n.ɵɵrestoreView(o),n.ɵɵnextContext().closeClick()})),n.ɵɵelementEnd()}if(2&t){var i=n.ɵɵnextContext();n.ɵɵproperty("title",i.data.closeLabel)}}function v(t,e){if(1&t&&n.ɵɵelement(0,"p",9),2&t){var o=n.ɵɵnextContext();n.ɵɵproperty("innerHTML",o.data.content,n.ɵɵsanitizeHtml)}}g.ɵfac=function(t){return new(t||g)(n.ɵɵdirectiveInject(e.MatDialogRef),n.ɵɵdirectiveInject(e.MAT_DIALOG_DATA))},g.ɵcmp=n.ɵɵdefineComponent({type:g,selectors:[["confirm-remove-modal-data"]],decls:8,vars:7,consts:[[1,"modal-title"],["mat-dialog-title","",3,"innerHTML",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","",3,"innerHTML"],["type","tertiary clickable","name","fas fa-times",3,"title","onClick"],[3,"innerHTML"],[3,"label","ngModel","ngModelChange"]],template:function(t,e){1&t&&(n.ɵɵelementStart(0,"div",0),n.ɵɵtemplate(1,m,1,1,"h3",1),n.ɵɵtemplate(2,s,1,1,"icon",2),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"div",3),n.ɵɵtemplate(4,p,1,1,"p",4),n.ɵɵtemplate(5,f,1,2,"input-text",5),n.ɵɵelementEnd(),n.ɵɵelementStart(6,"div",6),n.ɵɵelementStart(7,"secondary-button",7),n.ɵɵlistener("onClick",(function(){return e.confirmClick()})),n.ɵɵelementEnd(),n.ɵɵelementEnd()),2&t&&(n.ɵɵadvance(1),n.ɵɵproperty("ngIf",e.data.title),n.ɵɵadvance(1),n.ɵɵproperty("ngIf",e.data.showCloseIcon),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",e.data.content),n.ɵɵadvance(1),n.ɵɵproperty("ngIf",e.data.removeTextConfirm),n.ɵɵadvance(2),n.ɵɵproperty("btnDisabled",e.isConfirmDisabled())("icon",e.data.confirmIcon)("label",e.data.confirmText))},directives:[o.NgIf,e.MatDialogContent,e.MatDialogActions,i.SecondaryButtonComponent,e.MatDialogTitle,a.IconComponent,l.InputTextComponent,r.NgControlStatus,r.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;box-shadow: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%}"]});var x=function(){},y=function(){function t(t,e){this.dialogRef=t,this.data=e}return t.prototype.closeClick=function(){this.dialogRef.close(!1)},t.prototype.confirmClick=function(){this.dialogRef.close(!0)},t}();y.ɵfac=function(t){return new(t||y)(n.ɵɵdirectiveInject(e.MatDialogRef),n.ɵɵdirectiveInject(e.MAT_DIALOG_DATA))},y.ɵcmp=n.ɵɵdefineComponent({type:y,selectors:[["confirm-modal-data"]],decls:8,vars:7,consts:[[1,"modal-title"],["mat-dialog-title","",3,"innerHTML",4,"ngIf"],["type","tertiary clickable","name","fas fa-times",3,"title","onClick",4,"ngIf"],["mat-dialog-content","",1,"modal-content"],[3,"innerHTML",4,"ngIf"],["mat-dialog-actions","",1,"modal-actions"],[3,"icon","label","onClick"],["mat-dialog-title","",3,"innerHTML"],["type","tertiary clickable","name","fas fa-times",3,"title","onClick"],[3,"innerHTML"]],template:function(t,e){1&t&&(n.ɵɵelementStart(0,"div",0),n.ɵɵtemplate(1,C,1,1,"h3",1),n.ɵɵtemplate(2,M,1,1,"icon",2),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"div",3),n.ɵɵtemplate(4,v,1,1,"p",4),n.ɵɵelementEnd(),n.ɵɵelementStart(5,"div",5),n.ɵɵelementStart(6,"tertiary-button",6),n.ɵɵlistener("onClick",(function(){return e.closeClick()})),n.ɵɵelementEnd(),n.ɵɵelementStart(7,"primary-button",6),n.ɵɵlistener("onClick",(function(){return e.confirmClick()})),n.ɵɵelementEnd(),n.ɵɵelementEnd()),2&t&&(n.ɵɵadvance(1),n.ɵɵproperty("ngIf",e.data.title),n.ɵɵadvance(1),n.ɵɵproperty("ngIf",e.data.showCloseIcon),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",e.data.content),n.ɵɵadvance(2),n.ɵɵproperty("icon",e.data.cancelIcon)("label",e.data.cancelText),n.ɵɵadvance(1),n.ɵɵproperty("icon",e.data.confirmIcon)("label",e.data.confirmText))},directives:[o.NgIf,e.MatDialogContent,e.MatDialogActions,i.TertiaryButtonComponent,i.PrimaryButtonComponent,e.MatDialogTitle,a.IconComponent],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;box-shadow:none!important;margin:20px 0!important;text-align:center!important}.modal-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0!important}.modal-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;width:100%}.modal-actions[_ngcontent-%COMP%] primary-button[_ngcontent-%COMP%]{margin-left:5px}"]});var h=function(){};h.ɵmod=n.ɵɵdefineNgModule({type:h}),h.ɵinj=n.ɵɵdefineInjector({factory:function(t){return new(t||h)},providers:[],imports:[[o.CommonModule,e.MatDialogModule,c.MatFormFieldModule,r.FormsModule,d.MatInputModule,l.InputsModule,i.ButtonsModule,a.IconsModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&n.ɵɵsetNgModuleScope(h,{declarations:[g,y],imports:[o.CommonModule,e.MatDialogModule,c.MatFormFieldModule,r.FormsModule,d.MatInputModule,l.InputsModule,i.ButtonsModule,a.IconsModule],exports:[g,y]}),Object.keys(e).forEach((function(n){"default"!==n&&Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})})),t.ConfirmDialogData=x,t.ConfirmModalDataComponent=y,t.ConfirmRemoveDialogData=u,t.ConfirmRemoveModalDataComponent=g,t.ModalsModule=h,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=apipass-modals.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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"],"names":["i0.ɵɵelementStart","i0.ɵɵtext","i0.ɵɵelementEnd","i0.ɵɵadvance","i0.ɵɵtextInterpolate1","i0.ɵɵlistener","i0.ɵɵproperty","i0.ɵɵelement","ctx_r3","data","removeText","ConfirmRemoveModalDataComponent","dialogRef","this","prototype","closeClick","close","confirmClick","_a","removeTextConfirm","_b","_c","isConfirmDisabled","i0","ɵɵdirectiveInject","i1","MatDialogRef","MAT_DIALOG_DATA","selectors","decls","vars","consts","template","rf","ctx","i0.ɵɵtemplate","confirmIcon","confirmText","ModalsModule","providers","imports","CommonModule","MatDialogModule","MatFormFieldModule","FormsModule","MatInputModule","InputsModule","ButtonsModule","IconsModule","declarations","exports"],"mappings":"y4BACEA,EAAAA,eAAAA,EAAAA,KAAAA,GACEC,EAAAA,OAAAA,GACFC,EAAAA,6CADEC,EAAAA,UAAAA,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EAAAA,UAAAA,GAAAG,EAAAA,WAAAA,OAAAA,EAAAA,KAAAA,mBAIMH,EAAAA,UAAAA,GAAAG,EAAAA,WAAAA,cAAAA,EAAAA,oBAAAA,CAAmC,OAAA4B,EAAAzB,KAAA2B,YAAnC9B,CAAmC,QAAA4B,EAAAzB,KAAA4B,s0BEiBvD,6CAAaC,iEAAAA,IAAYC,UAFZ,GAAEC,QAAA,CAhBJ,CACPC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,mBACAC,EAAAA,YACAC,EAAAA,eACAC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,iFAUSV,EAAY,CAAAW,aAAA,CAPrBtC,GAA+B6B,QAAA,CAV/BC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,mBACAC,EAAAA,YACAC,EAAAA,eACAC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,aAAWE,QAAA,CAMXvC","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"]}
|
|
1
|
+
{"version":3,"sources":["../../../projects/modals/src/lib/confirm-remove-modal/confirm-remove-modal.component.html","../../../projects/modals/src/lib/confirm-remove-modal/confirm-remove-modal.component.ts","../../../projects/modals/src/lib/confirm-modal/confirm-modal.component.html","../../../projects/modals/src/lib/confirm-modal/confirm-modal.component.ts","../../../projects/modals/src/modals.module.ts"],"names":["i0.ɵɵelement","i0.ɵɵproperty","i0.ɵɵelementStart","i0.ɵɵlistener","i0.ɵɵelementEnd","ctx_r3","data","removeText","ConfirmRemoveModalDataComponent","dialogRef","this","prototype","closeClick","close","confirmClick","_a","removeTextConfirm","_b","_c","isConfirmDisabled","i0","ɵɵdirectiveInject","i1","MatDialogRef","MAT_DIALOG_DATA","selectors","decls","vars","consts","template","rf","ctx","i0.ɵɵtemplate","i0.ɵɵadvance","confirmIcon","confirmText","ConfirmModalDataComponent","cancelText","ModalsModule","providers","imports","CommonModule","MatDialogModule","MatFormFieldModule","FormsModule","MatInputModule","InputsModule","ButtonsModule","IconsModule","declarations","exports"],"mappings":"w4BACEA,EAAAA,UAAAA,EAAAA,KAAAA,gCAAuBC,EAAAA,WAAAA,YAAAA,EAAAA,KAAAA,MAAAA,EAAAA,oEACvBC,EAAAA,eAAAA,EAAAA,OAAAA,GAAyGC,EAAAA,WAAAA,WAAAA,WAAAA,OAAAA,EAAAA,cAAAA,GAAAA,EAAAA,gBAAAA,gBAAyBC,EAAAA,+CAAnDH,EAAAA,WAAAA,QAAAA,EAAAA,KAAAA,qCAI/ED,EAAAA,UAAAA,EAAAA,IAAAA,iCAAwBC,EAAAA,WAAAA,YAAAA,EAAAA,KAAAA,QAAAA,EAAAA,oEACxBC,EAAAA,eAAAA,EAAAA,aAAAA,IAA0EC,EAAAA,WAAAA,iBAAAA,SAAAA,GAAAA,OAAAA,EAAAA,cAAAA,GAAAA,EAAAA,gBAAAA,KAAAA,WAAAA,KAA8BC,EAAAA,+CAA7DH,EAAAA,WAAAA,QAAAA,EAAAA,KAAAA,gBAAAA,CAA8B,UAAAI,EAAAC,KAAAC,mBCJ3E,0BAoBE,SAAAC,EACSC,EACyBH,GADzBI,KAAAD,UAAAA,EACyBC,KAAAJ,KAAAA,SAIlCE,EAAAG,UAAAC,WAAA,WACEF,KAAKD,UAAUI,SAGjBL,EAAAG,UAAAG,aAAA,sBACgB,QAAVC,EAACL,KAAKJ,YAAI,IAAAS,OAAA,EAAAA,EA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AAA,UAAAA,GAAAhC,EAAAA,WAAAA,OAAAA,EAAAA,KAAAA,SAIcgC,EAAAA,UAAAA,GAAAhC,EAAAA,WAAAA,OAAAA,EAAAA,KAAAA,WAAAA,CAAwB,QAAA8B,EAAAzB,KAAA+B,YACzBJ,EAAAA,UAAAA,GAAAhC,EAAAA,WAAAA,OAAAA,EAAAA,KAAAA,YAAAA,CAAyB,QAAA8B,EAAAzB,KAAA6B,m4BEsB3C,6CAAaG,iEAAAA,IAAYC,UAFZ,GAAEC,QAAA,CAlBJ,CACPC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,mBACAC,EAAAA,YACAC,EAAAA,eACAC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,iFAYSV,EAAY,CAAAW,aAAA,CATrBzC,EACA4B,GAAyBI,QAAA,CAXzBC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,mBACAC,EAAAA,YACAC,EAAAA,eACAC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,aAAWE,QAAA,CAOX1C,EACA4B","sourcesContent":["<div class=\"modal-title\">\n <h3 *ngIf=\"data.title\" [innerHTML]=\"data.title\" mat-dialog-title></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","<div class=\"modal-title\">\n <h3 *ngIf=\"data.title\" [innerHTML]=\"data.title\" mat-dialog-title></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</div>\n\n<div class=\"modal-actions\" mat-dialog-actions>\n <tertiary-button [icon]=\"data.cancelIcon\" [label]=\"data.cancelText\" (onClick)=\"closeClick()\"></tertiary-button>\n <primary-button [icon]=\"data.confirmIcon\" [label]=\"data.confirmText\" (onClick)=\"confirmClick()\"></primary-button>\n</div>\n","import {Component, Inject} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\n\nexport class ConfirmDialogData {\n title?: string;\n content?: string;\n confirmIcon?: string;\n confirmText?: string;\n cancelIcon?: string;\n cancelText?: string;\n showCloseIcon?: boolean;\n closeLabel?: string;\n item?: any;\n}\n\n@Component({\n selector: 'confirm-modal-data',\n templateUrl: 'confirm-modal.component.html',\n styleUrls: ['confirm-modal.component.scss']\n})\nexport class ConfirmModalDataComponent {\n\n constructor(\n public dialogRef: MatDialogRef<ConfirmModalDataComponent>,\n @Inject(MAT_DIALOG_DATA) public data: ConfirmDialogData\n ) {\n }\n\n closeClick(): void {\n this.dialogRef.close(false);\n }\n\n confirmClick(): void {\n this.dialogRef.close(true);\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ConfirmRemoveModalDataComponent} from './lib/confirm-remove-modal/confirm-remove-modal.component';\nimport {ConfirmModalDataComponent} from './lib/confirm-modal/confirm-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 ConfirmModalDataComponent\n ],\n exports: [\n ConfirmRemoveModalDataComponent,\n ConfirmModalDataComponent\n ],\n providers: []\n})\nexport class ModalsModule { }\n"]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Component, Inject } from '@angular/core';
|
|
2
|
+
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/dialog";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@apipass/buttons";
|
|
7
|
+
import * as i4 from "@apipass/icons";
|
|
8
|
+
function ConfirmModalDataComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
i0.ɵɵelement(0, "h3", 7);
|
|
10
|
+
} if (rf & 2) {
|
|
11
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
12
|
+
i0.ɵɵproperty("innerHTML", ctx_r0.data.title, i0.ɵɵsanitizeHtml);
|
|
13
|
+
} }
|
|
14
|
+
function ConfirmModalDataComponent_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
16
|
+
i0.ɵɵelementStart(0, "icon", 8);
|
|
17
|
+
i0.ɵɵlistener("onClick", function ConfirmModalDataComponent_icon_2_Template_icon_onClick_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.closeClick(); });
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
} if (rf & 2) {
|
|
20
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
21
|
+
i0.ɵɵproperty("title", ctx_r1.data.closeLabel);
|
|
22
|
+
} }
|
|
23
|
+
function ConfirmModalDataComponent_p_4_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
i0.ɵɵelement(0, "p", 9);
|
|
25
|
+
} if (rf & 2) {
|
|
26
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
27
|
+
i0.ɵɵproperty("innerHTML", ctx_r2.data.content, i0.ɵɵsanitizeHtml);
|
|
28
|
+
} }
|
|
29
|
+
export class ConfirmDialogData {
|
|
30
|
+
}
|
|
31
|
+
export class ConfirmModalDataComponent {
|
|
32
|
+
constructor(dialogRef, data) {
|
|
33
|
+
this.dialogRef = dialogRef;
|
|
34
|
+
this.data = data;
|
|
35
|
+
}
|
|
36
|
+
closeClick() {
|
|
37
|
+
this.dialogRef.close(false);
|
|
38
|
+
}
|
|
39
|
+
confirmClick() {
|
|
40
|
+
this.dialogRef.close(true);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
ConfirmModalDataComponent.ɵfac = function ConfirmModalDataComponent_Factory(t) { return new (t || ConfirmModalDataComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
44
|
+
ConfirmModalDataComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ConfirmModalDataComponent, selectors: [["confirm-modal-data"]], decls: 8, vars: 7, consts: [[1, "modal-title"], ["mat-dialog-title", "", 3, "innerHTML", 4, "ngIf"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick", 4, "ngIf"], ["mat-dialog-content", "", 1, "modal-content"], [3, "innerHTML", 4, "ngIf"], ["mat-dialog-actions", "", 1, "modal-actions"], [3, "icon", "label", "onClick"], ["mat-dialog-title", "", 3, "innerHTML"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick"], [3, "innerHTML"]], template: function ConfirmModalDataComponent_Template(rf, ctx) { if (rf & 1) {
|
|
45
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
46
|
+
i0.ɵɵtemplate(1, ConfirmModalDataComponent_h3_1_Template, 1, 1, "h3", 1);
|
|
47
|
+
i0.ɵɵtemplate(2, ConfirmModalDataComponent_icon_2_Template, 1, 1, "icon", 2);
|
|
48
|
+
i0.ɵɵelementEnd();
|
|
49
|
+
i0.ɵɵelementStart(3, "div", 3);
|
|
50
|
+
i0.ɵɵtemplate(4, ConfirmModalDataComponent_p_4_Template, 1, 1, "p", 4);
|
|
51
|
+
i0.ɵɵelementEnd();
|
|
52
|
+
i0.ɵɵelementStart(5, "div", 5);
|
|
53
|
+
i0.ɵɵelementStart(6, "tertiary-button", 6);
|
|
54
|
+
i0.ɵɵlistener("onClick", function ConfirmModalDataComponent_Template_tertiary_button_onClick_6_listener() { return ctx.closeClick(); });
|
|
55
|
+
i0.ɵɵelementEnd();
|
|
56
|
+
i0.ɵɵelementStart(7, "primary-button", 6);
|
|
57
|
+
i0.ɵɵlistener("onClick", function ConfirmModalDataComponent_Template_primary_button_onClick_7_listener() { return ctx.confirmClick(); });
|
|
58
|
+
i0.ɵɵelementEnd();
|
|
59
|
+
i0.ɵɵelementEnd();
|
|
60
|
+
} if (rf & 2) {
|
|
61
|
+
i0.ɵɵadvance(1);
|
|
62
|
+
i0.ɵɵproperty("ngIf", ctx.data.title);
|
|
63
|
+
i0.ɵɵadvance(1);
|
|
64
|
+
i0.ɵɵproperty("ngIf", ctx.data.showCloseIcon);
|
|
65
|
+
i0.ɵɵadvance(2);
|
|
66
|
+
i0.ɵɵproperty("ngIf", ctx.data.content);
|
|
67
|
+
i0.ɵɵadvance(2);
|
|
68
|
+
i0.ɵɵproperty("icon", ctx.data.cancelIcon)("label", ctx.data.cancelText);
|
|
69
|
+
i0.ɵɵadvance(1);
|
|
70
|
+
i0.ɵɵproperty("icon", ctx.data.confirmIcon)("label", ctx.data.confirmText);
|
|
71
|
+
} }, directives: [i2.NgIf, i1.MatDialogContent, i1.MatDialogActions, i3.TertiaryButtonComponent, i3.PrimaryButtonComponent, i1.MatDialogTitle, i4.IconComponent], 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;box-shadow:none!important;margin:20px 0!important;text-align:center!important}.modal-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0!important}.modal-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;width:100%}.modal-actions[_ngcontent-%COMP%] primary-button[_ngcontent-%COMP%]{margin-left:5px}"] });
|
|
72
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ConfirmModalDataComponent, [{
|
|
73
|
+
type: Component,
|
|
74
|
+
args: [{
|
|
75
|
+
selector: 'confirm-modal-data',
|
|
76
|
+
templateUrl: 'confirm-modal.component.html',
|
|
77
|
+
styleUrls: ['confirm-modal.component.scss']
|
|
78
|
+
}]
|
|
79
|
+
}], function () { return [{ type: i1.MatDialogRef }, { type: ConfirmDialogData, decorators: [{
|
|
80
|
+
type: Inject,
|
|
81
|
+
args: [MAT_DIALOG_DATA]
|
|
82
|
+
}] }]; }, null); })();
|
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb2RhbHMvc3JjL2xpYi9jb25maXJtLW1vZGFsL2NvbmZpcm0tbW9kYWwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9kYWxzL3NyYy9saWIvY29uZmlybS1tb2RhbC9jb25maXJtLW1vZGFsLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ2hELE9BQU8sRUFBQyxlQUFlLEVBQUUsWUFBWSxFQUFDLE1BQU0sMEJBQTBCLENBQUM7Ozs7Ozs7SUNBckUsd0JBQXNFOzs7SUFBL0MsZ0VBQXdCOzs7O0lBQy9DLCtCQUF5STtJQUFoQyxnTUFBd0I7SUFBQyxpQkFBTzs7O0lBQTFELDhDQUF5Qjs7O0lBSXhHLHVCQUF1RDs7O0lBQS9CLGtFQUEwQjs7QURIcEQsTUFBTSxPQUFPLGlCQUFpQjtDQVU3QjtBQU9ELE1BQU0sT0FBTyx5QkFBeUI7SUFFcEMsWUFDUyxTQUFrRCxFQUN6QixJQUF1QjtRQURoRCxjQUFTLEdBQVQsU0FBUyxDQUF5QztRQUN6QixTQUFJLEdBQUosSUFBSSxDQUFtQjtJQUV6RCxDQUFDO0lBRUQsVUFBVTtRQUNSLElBQUksQ0FBQyxTQUFTLENBQUMsS0F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y10aXRsZT48L2gzPlxuICA8aWNvbiAqbmdJZj1cImRhdGEuc2hvd0Nsb3NlSWNvblwiIHR5cGU9XCJ0ZXJ0aWFyeSBjbGlja2FibGVcIiBuYW1lPVwiZmFzIGZhLXRpbWVzXCIgW3RpdGxlXT1cImRhdGEuY2xvc2VMYWJlbFwiIChvbkNsaWNrKT1cImNsb3NlQ2xpY2soKVwiPjwvaWNvbj5cbjwvZGl2PlxuXG48ZGl2IGNsYXNzPVwibW9kYWwtY29udGVudFwiIG1hdC1kaWFsb2ctY29udGVudD5cbiAgPHAgKm5nSWY9XCJkYXRhLmNvbnRlbnRcIiBbaW5uZXJIVE1MXT1cImRhdGEuY29udGVudFwiPjwvcD5cbjwvZGl2PlxuXG48ZGl2IGNsYXNzPVwibW9kYWwtYWN0aW9uc1wiIG1hdC1kaWFsb2ctYWN0aW9ucz5cbiAgPHRlcnRpYXJ5LWJ1dHRvbiBbaWNvbl09XCJkYXRhLmNhbmNlbEljb25cIiBbbGFiZWxdPVwiZGF0YS5jYW5jZWxUZXh0XCIgKG9uQ2xpY2spPVwiY2xvc2VDbGljaygpXCI+PC90ZXJ0aWFyeS1idXR0b24+XG4gIDxwcmltYXJ5LWJ1dHRvbiBbaWNvbl09XCJkYXRhLmNvbmZpcm1JY29uXCIgW2xhYmVsXT1cImRhdGEuY29uZmlybVRleHRcIiAob25DbGljayk9XCJjb25maXJtQ2xpY2soKVwiPjwvcHJpbWFyeS1idXR0b24+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -8,13 +8,10 @@ import * as i4 from "@apipass/icons";
|
|
|
8
8
|
import * as i5 from "@apipass/inputs";
|
|
9
9
|
import * as i6 from "@angular/forms";
|
|
10
10
|
function ConfirmRemoveModalDataComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
-
i0.ɵɵ
|
|
12
|
-
i0.ɵɵtext(1);
|
|
13
|
-
i0.ɵɵelementEnd();
|
|
11
|
+
i0.ɵɵelement(0, "h3", 8);
|
|
14
12
|
} if (rf & 2) {
|
|
15
13
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
|
-
i0.ɵɵ
|
|
17
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.data.title, " ");
|
|
14
|
+
i0.ɵɵproperty("innerHTML", ctx_r0.data.title, i0.ɵɵsanitizeHtml);
|
|
18
15
|
} }
|
|
19
16
|
function ConfirmRemoveModalDataComponent_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
20
17
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -65,9 +62,9 @@ export class ConfirmRemoveModalDataComponent {
|
|
|
65
62
|
}
|
|
66
63
|
}
|
|
67
64
|
ConfirmRemoveModalDataComponent.ɵfac = function ConfirmRemoveModalDataComponent_Factory(t) { return new (t || ConfirmRemoveModalDataComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
68
|
-
ConfirmRemoveModalDataComponent.ɵcmp = i0.ɵɵ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) {
|
|
65
|
+
ConfirmRemoveModalDataComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ConfirmRemoveModalDataComponent, selectors: [["confirm-remove-modal-data"]], decls: 8, vars: 7, consts: [[1, "modal-title"], ["mat-dialog-title", "", 3, "innerHTML", 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", "", 3, "innerHTML"], ["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) {
|
|
69
66
|
i0.ɵɵelementStart(0, "div", 0);
|
|
70
|
-
i0.ɵɵtemplate(1, ConfirmRemoveModalDataComponent_h3_1_Template,
|
|
67
|
+
i0.ɵɵtemplate(1, ConfirmRemoveModalDataComponent_h3_1_Template, 1, 1, "h3", 1);
|
|
71
68
|
i0.ɵɵtemplate(2, ConfirmRemoveModalDataComponent_icon_2_Template, 1, 1, "icon", 2);
|
|
72
69
|
i0.ɵɵelementEnd();
|
|
73
70
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -102,4 +99,4 @@ ConfirmRemoveModalDataComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ConfirmRe
|
|
|
102
99
|
type: Inject,
|
|
103
100
|
args: [MAT_DIALOG_DATA]
|
|
104
101
|
}] }]; }, null); })();
|
|
105
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1yZW1vdmUtbW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9kYWxzL3NyYy9saWIvY29uZmlybS1yZW1vdmUtbW9kYWwvY29uZmlybS1yZW1vdmUtbW9kYWwuY29tcG9uZW50LnRzIi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iIFtsYWJlbF09XCJkYXRhLnJlbW92ZVRleHRMYWJlbFwiIFsobmdNb2RlbCldPVwiZGF0YS5yZW1vdmVUZXh0XCI+PC9pbnB1dC10ZXh0PlxuPC9kaXY+XG5cbjxkaXYgY2xhc3M9XCJtb2RhbC1hY3Rpb25zXCIgbWF0LWRpYWxvZy1hY3Rpb25zPlxuICA8c2Vjb25kYXJ5LWJ1dHRvbiBbYnRuRGlzYWJsZWRdPVwiaXNDb25maXJtRGlzYWJsZWQoKVwiIFtpY29uXT1cImRhdGEuY29uZmlybUljb25cIiBbbGFiZWxdPVwiZGF0YS5jb25maXJtVGV4dFwiIChvbkNsaWNrKT1cImNvbmZpcm1DbGljaygpXCI+PC9zZWNvbmRhcnktYnV0dG9uPlxuPC9kaXY+XG4iXX0=
|
package/esm2015/modals.module.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { ConfirmRemoveModalDataComponent } from './lib/confirm-remove-modal.component';
|
|
3
|
+
import { ConfirmRemoveModalDataComponent } from './lib/confirm-remove-modal/confirm-remove-modal.component';
|
|
4
|
+
import { ConfirmModalDataComponent } from './lib/confirm-modal/confirm-modal.component';
|
|
4
5
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
5
6
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
7
|
import { FormsModule } from '@angular/forms';
|
|
@@ -22,14 +23,16 @@ ModalsModule.ɵinj = i0.ɵɵdefineInjector({ factory: function ModalsModule_Fact
|
|
|
22
23
|
ButtonsModule,
|
|
23
24
|
IconsModule,
|
|
24
25
|
]] });
|
|
25
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent
|
|
26
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent,
|
|
27
|
+
ConfirmModalDataComponent], imports: [CommonModule,
|
|
26
28
|
MatDialogModule,
|
|
27
29
|
MatFormFieldModule,
|
|
28
30
|
FormsModule,
|
|
29
31
|
MatInputModule,
|
|
30
32
|
InputsModule,
|
|
31
33
|
ButtonsModule,
|
|
32
|
-
IconsModule], exports: [ConfirmRemoveModalDataComponent
|
|
34
|
+
IconsModule], exports: [ConfirmRemoveModalDataComponent,
|
|
35
|
+
ConfirmModalDataComponent] }); })();
|
|
33
36
|
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ModalsModule, [{
|
|
34
37
|
type: NgModule,
|
|
35
38
|
args: [{
|
|
@@ -44,12 +47,14 @@ ModalsModule.ɵinj = i0.ɵɵdefineInjector({ factory: function ModalsModule_Fact
|
|
|
44
47
|
IconsModule,
|
|
45
48
|
],
|
|
46
49
|
declarations: [
|
|
47
|
-
ConfirmRemoveModalDataComponent
|
|
50
|
+
ConfirmRemoveModalDataComponent,
|
|
51
|
+
ConfirmModalDataComponent
|
|
48
52
|
],
|
|
49
53
|
exports: [
|
|
50
|
-
ConfirmRemoveModalDataComponent
|
|
54
|
+
ConfirmRemoveModalDataComponent,
|
|
55
|
+
ConfirmModalDataComponent
|
|
51
56
|
],
|
|
52
57
|
providers: []
|
|
53
58
|
}]
|
|
54
59
|
}], null, null); })();
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWxzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL21vZGFscy9zcmMvbW9kYWxzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLE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cm9tICdAYXBpcGFzcy9pY29ucyc7XG5pbXBvcnQge0lucHV0c01vZHVsZX0gZnJvbSAnQGFwaXBhc3MvaW5wdXRzJztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBNYXREaWFsb2dNb2R1bGUsXG4gICAgTWF0Rm9ybUZpZWxkTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuICAgIE1hdElucHV0TW9kdWxlLFxuICAgIElucHV0c01vZHVsZSxcbiAgICBCdXR0b25zTW9kdWxlLFxuICAgIEljb25zTW9kdWxlLFxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBDb25maXJtUmVtb3ZlTW9kYWxEYXRhQ29tcG9uZW50LFxuICAgIENvbmZpcm1Nb2RhbERhdGFDb21wb25lbnRcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIENvbmZpcm1SZW1vdmVNb2RhbERhdGFDb21wb25lbnQsXG4gICAgQ29uZmlybU1vZGFsRGF0YUNvbXBvbmVudFxuICBdLFxuICBwcm92aWRlcnM6IFtdXG59KVxuZXhwb3J0IGNsYXNzIE1vZGFsc01vZHVsZSB7IH1cbiJdfQ==
|
package/esm2015/public-api.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from '@angular/material/dialog';
|
|
2
2
|
export * from './modals.module';
|
|
3
|
-
export * from './lib/confirm-remove-modal.component';
|
|
4
|
-
|
|
3
|
+
export * from './lib/confirm-remove-modal/confirm-remove-modal.component';
|
|
4
|
+
export * from './lib/confirm-modal/confirm-modal.component';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL21vZGFscy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYywyREFBMkQsQ0FBQztBQUMxRSxjQUFjLDZDQUE2QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnQGFuZ3VsYXIvbWF0ZXJpYWwvZGlhbG9nJztcbmV4cG9ydCAqIGZyb20gJy4vbW9kYWxzLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb25maXJtLXJlbW92ZS1tb2RhbC9jb25maXJtLXJlbW92ZS1tb2RhbC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29uZmlybS1tb2RhbC9jb25maXJtLW1vZGFsLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogContent, MatDialogActions, MatDialogTitle, MatDialogModule } from '@angular/material/dialog';
|
|
2
2
|
export * from '@angular/material/dialog';
|
|
3
|
-
import {
|
|
3
|
+
import { ɵɵelement, ɵɵnextContext, ɵɵproperty, ɵɵsanitizeHtml, ɵɵgetCurrentView, ɵɵelementStart, ɵɵlistener, ɵɵrestoreView, ɵɵelementEnd, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵtemplate, ɵɵadvance, ɵsetClassMetadata, Component, Inject, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
|
|
4
4
|
import { NgIf, CommonModule } from '@angular/common';
|
|
5
|
-
import { SecondaryButtonComponent, ButtonsModule } from '@apipass/buttons';
|
|
5
|
+
import { SecondaryButtonComponent, TertiaryButtonComponent, PrimaryButtonComponent, ButtonsModule } from '@apipass/buttons';
|
|
6
6
|
import { IconComponent, IconsModule } from '@apipass/icons';
|
|
7
7
|
import { InputTextComponent, InputsModule } from '@apipass/inputs';
|
|
8
8
|
import { NgControlStatus, NgModel, FormsModule } from '@angular/forms';
|
|
@@ -10,13 +10,10 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
10
10
|
import { MatInputModule } from '@angular/material/input';
|
|
11
11
|
|
|
12
12
|
function ConfirmRemoveModalDataComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
-
|
|
14
|
-
ɵɵtext(1);
|
|
15
|
-
ɵɵelementEnd();
|
|
13
|
+
ɵɵelement(0, "h3", 8);
|
|
16
14
|
} if (rf & 2) {
|
|
17
15
|
const ctx_r0 = ɵɵnextContext();
|
|
18
|
-
|
|
19
|
-
ɵɵtextInterpolate1(" ", ctx_r0.data.title, " ");
|
|
16
|
+
ɵɵproperty("innerHTML", ctx_r0.data.title, ɵɵsanitizeHtml);
|
|
20
17
|
} }
|
|
21
18
|
function ConfirmRemoveModalDataComponent_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
22
19
|
const _r5 = ɵɵgetCurrentView();
|
|
@@ -67,9 +64,9 @@ class ConfirmRemoveModalDataComponent {
|
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
66
|
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) {
|
|
67
|
+
ConfirmRemoveModalDataComponent.ɵcmp = ɵɵdefineComponent({ type: ConfirmRemoveModalDataComponent, selectors: [["confirm-remove-modal-data"]], decls: 8, vars: 7, consts: [[1, "modal-title"], ["mat-dialog-title", "", 3, "innerHTML", 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", "", 3, "innerHTML"], ["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
68
|
ɵɵelementStart(0, "div", 0);
|
|
72
|
-
ɵɵtemplate(1, ConfirmRemoveModalDataComponent_h3_1_Template,
|
|
69
|
+
ɵɵtemplate(1, ConfirmRemoveModalDataComponent_h3_1_Template, 1, 1, "h3", 1);
|
|
73
70
|
ɵɵtemplate(2, ConfirmRemoveModalDataComponent_icon_2_Template, 1, 1, "icon", 2);
|
|
74
71
|
ɵɵelementEnd();
|
|
75
72
|
ɵɵelementStart(3, "div", 3);
|
|
@@ -105,6 +102,82 @@ ConfirmRemoveModalDataComponent.ɵcmp = ɵɵdefineComponent({ type: ConfirmRemov
|
|
|
105
102
|
args: [MAT_DIALOG_DATA]
|
|
106
103
|
}] }]; }, null); })();
|
|
107
104
|
|
|
105
|
+
function ConfirmModalDataComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
106
|
+
ɵɵelement(0, "h3", 7);
|
|
107
|
+
} if (rf & 2) {
|
|
108
|
+
const ctx_r0 = ɵɵnextContext();
|
|
109
|
+
ɵɵproperty("innerHTML", ctx_r0.data.title, ɵɵsanitizeHtml);
|
|
110
|
+
} }
|
|
111
|
+
function ConfirmModalDataComponent_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
112
|
+
const _r4 = ɵɵgetCurrentView();
|
|
113
|
+
ɵɵelementStart(0, "icon", 8);
|
|
114
|
+
ɵɵlistener("onClick", function ConfirmModalDataComponent_icon_2_Template_icon_onClick_0_listener() { ɵɵrestoreView(_r4); const ctx_r3 = ɵɵnextContext(); return ctx_r3.closeClick(); });
|
|
115
|
+
ɵɵelementEnd();
|
|
116
|
+
} if (rf & 2) {
|
|
117
|
+
const ctx_r1 = ɵɵnextContext();
|
|
118
|
+
ɵɵproperty("title", ctx_r1.data.closeLabel);
|
|
119
|
+
} }
|
|
120
|
+
function ConfirmModalDataComponent_p_4_Template(rf, ctx) { if (rf & 1) {
|
|
121
|
+
ɵɵelement(0, "p", 9);
|
|
122
|
+
} if (rf & 2) {
|
|
123
|
+
const ctx_r2 = ɵɵnextContext();
|
|
124
|
+
ɵɵproperty("innerHTML", ctx_r2.data.content, ɵɵsanitizeHtml);
|
|
125
|
+
} }
|
|
126
|
+
class ConfirmDialogData {
|
|
127
|
+
}
|
|
128
|
+
class ConfirmModalDataComponent {
|
|
129
|
+
constructor(dialogRef, data) {
|
|
130
|
+
this.dialogRef = dialogRef;
|
|
131
|
+
this.data = data;
|
|
132
|
+
}
|
|
133
|
+
closeClick() {
|
|
134
|
+
this.dialogRef.close(false);
|
|
135
|
+
}
|
|
136
|
+
confirmClick() {
|
|
137
|
+
this.dialogRef.close(true);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
ConfirmModalDataComponent.ɵfac = function ConfirmModalDataComponent_Factory(t) { return new (t || ConfirmModalDataComponent)(ɵɵdirectiveInject(MatDialogRef), ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
141
|
+
ConfirmModalDataComponent.ɵcmp = ɵɵdefineComponent({ type: ConfirmModalDataComponent, selectors: [["confirm-modal-data"]], decls: 8, vars: 7, consts: [[1, "modal-title"], ["mat-dialog-title", "", 3, "innerHTML", 4, "ngIf"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick", 4, "ngIf"], ["mat-dialog-content", "", 1, "modal-content"], [3, "innerHTML", 4, "ngIf"], ["mat-dialog-actions", "", 1, "modal-actions"], [3, "icon", "label", "onClick"], ["mat-dialog-title", "", 3, "innerHTML"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick"], [3, "innerHTML"]], template: function ConfirmModalDataComponent_Template(rf, ctx) { if (rf & 1) {
|
|
142
|
+
ɵɵelementStart(0, "div", 0);
|
|
143
|
+
ɵɵtemplate(1, ConfirmModalDataComponent_h3_1_Template, 1, 1, "h3", 1);
|
|
144
|
+
ɵɵtemplate(2, ConfirmModalDataComponent_icon_2_Template, 1, 1, "icon", 2);
|
|
145
|
+
ɵɵelementEnd();
|
|
146
|
+
ɵɵelementStart(3, "div", 3);
|
|
147
|
+
ɵɵtemplate(4, ConfirmModalDataComponent_p_4_Template, 1, 1, "p", 4);
|
|
148
|
+
ɵɵelementEnd();
|
|
149
|
+
ɵɵelementStart(5, "div", 5);
|
|
150
|
+
ɵɵelementStart(6, "tertiary-button", 6);
|
|
151
|
+
ɵɵlistener("onClick", function ConfirmModalDataComponent_Template_tertiary_button_onClick_6_listener() { return ctx.closeClick(); });
|
|
152
|
+
ɵɵelementEnd();
|
|
153
|
+
ɵɵelementStart(7, "primary-button", 6);
|
|
154
|
+
ɵɵlistener("onClick", function ConfirmModalDataComponent_Template_primary_button_onClick_7_listener() { return ctx.confirmClick(); });
|
|
155
|
+
ɵɵelementEnd();
|
|
156
|
+
ɵɵelementEnd();
|
|
157
|
+
} if (rf & 2) {
|
|
158
|
+
ɵɵadvance(1);
|
|
159
|
+
ɵɵproperty("ngIf", ctx.data.title);
|
|
160
|
+
ɵɵadvance(1);
|
|
161
|
+
ɵɵproperty("ngIf", ctx.data.showCloseIcon);
|
|
162
|
+
ɵɵadvance(2);
|
|
163
|
+
ɵɵproperty("ngIf", ctx.data.content);
|
|
164
|
+
ɵɵadvance(2);
|
|
165
|
+
ɵɵproperty("icon", ctx.data.cancelIcon)("label", ctx.data.cancelText);
|
|
166
|
+
ɵɵadvance(1);
|
|
167
|
+
ɵɵproperty("icon", ctx.data.confirmIcon)("label", ctx.data.confirmText);
|
|
168
|
+
} }, directives: [NgIf, MatDialogContent, MatDialogActions, TertiaryButtonComponent, PrimaryButtonComponent, MatDialogTitle, IconComponent], 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;box-shadow:none!important;margin:20px 0!important;text-align:center!important}.modal-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0!important}.modal-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;width:100%}.modal-actions[_ngcontent-%COMP%] primary-button[_ngcontent-%COMP%]{margin-left:5px}"] });
|
|
169
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(ConfirmModalDataComponent, [{
|
|
170
|
+
type: Component,
|
|
171
|
+
args: [{
|
|
172
|
+
selector: 'confirm-modal-data',
|
|
173
|
+
templateUrl: 'confirm-modal.component.html',
|
|
174
|
+
styleUrls: ['confirm-modal.component.scss']
|
|
175
|
+
}]
|
|
176
|
+
}], function () { return [{ type: MatDialogRef }, { type: ConfirmDialogData, decorators: [{
|
|
177
|
+
type: Inject,
|
|
178
|
+
args: [MAT_DIALOG_DATA]
|
|
179
|
+
}] }]; }, null); })();
|
|
180
|
+
|
|
108
181
|
class ModalsModule {
|
|
109
182
|
}
|
|
110
183
|
ModalsModule.ɵmod = ɵɵdefineNgModule({ type: ModalsModule });
|
|
@@ -118,14 +191,16 @@ ModalsModule.ɵinj = ɵɵdefineInjector({ factory: function ModalsModule_Factory
|
|
|
118
191
|
ButtonsModule,
|
|
119
192
|
IconsModule,
|
|
120
193
|
]] });
|
|
121
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent
|
|
194
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent,
|
|
195
|
+
ConfirmModalDataComponent], imports: [CommonModule,
|
|
122
196
|
MatDialogModule,
|
|
123
197
|
MatFormFieldModule,
|
|
124
198
|
FormsModule,
|
|
125
199
|
MatInputModule,
|
|
126
200
|
InputsModule,
|
|
127
201
|
ButtonsModule,
|
|
128
|
-
IconsModule], exports: [ConfirmRemoveModalDataComponent
|
|
202
|
+
IconsModule], exports: [ConfirmRemoveModalDataComponent,
|
|
203
|
+
ConfirmModalDataComponent] }); })();
|
|
129
204
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ModalsModule, [{
|
|
130
205
|
type: NgModule,
|
|
131
206
|
args: [{
|
|
@@ -140,10 +215,12 @@ ModalsModule.ɵinj = ɵɵdefineInjector({ factory: function ModalsModule_Factory
|
|
|
140
215
|
IconsModule,
|
|
141
216
|
],
|
|
142
217
|
declarations: [
|
|
143
|
-
ConfirmRemoveModalDataComponent
|
|
218
|
+
ConfirmRemoveModalDataComponent,
|
|
219
|
+
ConfirmModalDataComponent
|
|
144
220
|
],
|
|
145
221
|
exports: [
|
|
146
|
-
ConfirmRemoveModalDataComponent
|
|
222
|
+
ConfirmRemoveModalDataComponent,
|
|
223
|
+
ConfirmModalDataComponent
|
|
147
224
|
],
|
|
148
225
|
providers: []
|
|
149
226
|
}]
|
|
@@ -153,5 +230,5 @@ ModalsModule.ɵinj = ɵɵdefineInjector({ factory: function ModalsModule_Factory
|
|
|
153
230
|
* Generated bundle index. Do not edit.
|
|
154
231
|
*/
|
|
155
232
|
|
|
156
|
-
export { ConfirmRemoveDialogData, ConfirmRemoveModalDataComponent, ModalsModule };
|
|
233
|
+
export { ConfirmDialogData, ConfirmModalDataComponent, ConfirmRemoveDialogData, ConfirmRemoveModalDataComponent, ModalsModule };
|
|
157
234
|
//# sourceMappingURL=apipass-modals.js.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
1
|
+
{"version":3,"file":"apipass-modals.js","sources":["../../../projects/modals/src/lib/confirm-remove-modal/confirm-remove-modal.component.html","../../../projects/modals/src/lib/confirm-remove-modal/confirm-remove-modal.component.ts","../../../projects/modals/src/lib/confirm-modal/confirm-modal.component.html","../../../projects/modals/src/lib/confirm-modal/confirm-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\" [innerHTML]=\"data.title\" mat-dialog-title></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","<div class=\"modal-title\">\n <h3 *ngIf=\"data.title\" [innerHTML]=\"data.title\" mat-dialog-title></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</div>\n\n<div class=\"modal-actions\" mat-dialog-actions>\n <tertiary-button [icon]=\"data.cancelIcon\" [label]=\"data.cancelText\" (onClick)=\"closeClick()\"></tertiary-button>\n <primary-button [icon]=\"data.confirmIcon\" [label]=\"data.confirmText\" (onClick)=\"confirmClick()\"></primary-button>\n</div>\n","import {Component, Inject} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\n\nexport class ConfirmDialogData {\n title?: string;\n content?: string;\n confirmIcon?: string;\n confirmText?: string;\n cancelIcon?: string;\n cancelText?: string;\n showCloseIcon?: boolean;\n closeLabel?: string;\n item?: any;\n}\n\n@Component({\n selector: 'confirm-modal-data',\n templateUrl: 'confirm-modal.component.html',\n styleUrls: ['confirm-modal.component.scss']\n})\nexport class ConfirmModalDataComponent {\n\n constructor(\n public dialogRef: MatDialogRef<ConfirmModalDataComponent>,\n @Inject(MAT_DIALOG_DATA) public data: ConfirmDialogData\n ) {\n }\n\n closeClick(): void {\n this.dialogRef.close(false);\n }\n\n confirmClick(): void {\n this.dialogRef.close(true);\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ConfirmRemoveModalDataComponent} from './lib/confirm-remove-modal/confirm-remove-modal.component';\nimport {ConfirmModalDataComponent} from './lib/confirm-modal/confirm-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 ConfirmModalDataComponent\n ],\n exports: [\n ConfirmRemoveModalDataComponent,\n ConfirmModalDataComponent\n ],\n providers: []\n})\nexport class ModalsModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0.ɵɵelement","i0.ɵɵproperty","i0.ɵɵelementStart","i0.ɵɵlistener","i0.ɵɵelementEnd","i0.ɵɵtemplate","i0.ɵɵadvance"],"mappings":";;;;;;;;;;;;IACEA,qBAAsE;;;IAA/CC,0DAAwB;;;;IAC/CC,4BAAyI;IAAhCC,6LAAwB;IAACC,cAAO;;;IAA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AAtD,MAAM;uBAAC,eAAe;;;MCSd,YAAY;;6CAAZ,YAAY;oGAAZ,YAAY,mBAFZ,EAAE,YAlBJ;YACP,YAAY;YACZ,eAAe;YACf,kBAAkB;YAClB,WAAW;YACX,cAAc;YACd,YAAY;YACZ,aAAa;YACb,WAAW;SACZ;qFAWU,YAAY,mBATrB,+BAA+B;QAC/B,yBAAyB,aAXzB,YAAY;QACZ,eAAe;QACf,kBAAkB;QAClB,WAAW;QACX,cAAc;QACd,YAAY;QACZ,aAAa;QACb,WAAW,aAOX,+BAA+B;QAC/B,yBAAyB;+CAIhB,YAAY;cArBxB,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;oBAC/B,yBAAyB;iBAC1B;gBACD,OAAO,EAAE;oBACP,+BAA+B;oBAC/B,yBAAyB;iBAC1B;gBACD,SAAS,EAAE,EAAE;aACd;;;AChCD;;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ConfirmDialogData {
|
|
4
|
+
title?: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
confirmIcon?: string;
|
|
7
|
+
confirmText?: string;
|
|
8
|
+
cancelIcon?: string;
|
|
9
|
+
cancelText?: string;
|
|
10
|
+
showCloseIcon?: boolean;
|
|
11
|
+
closeLabel?: string;
|
|
12
|
+
item?: any;
|
|
13
|
+
}
|
|
14
|
+
export declare class ConfirmModalDataComponent {
|
|
15
|
+
dialogRef: MatDialogRef<ConfirmModalDataComponent>;
|
|
16
|
+
data: ConfirmDialogData;
|
|
17
|
+
constructor(dialogRef: MatDialogRef<ConfirmModalDataComponent>, data: ConfirmDialogData);
|
|
18
|
+
closeClick(): void;
|
|
19
|
+
confirmClick(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDef<ConfirmModalDataComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<ConfirmModalDataComponent, "confirm-modal-data", never, {}, {}, never, never>;
|
|
22
|
+
}
|
|
File without changes
|
package/modals.module.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./lib/confirm-remove-modal.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@angular/
|
|
5
|
-
import * as i4 from "@angular/material/
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "@angular/
|
|
8
|
-
import * as i7 from "@
|
|
9
|
-
import * as i8 from "@apipass/
|
|
10
|
-
import * as i9 from "@apipass/
|
|
2
|
+
import * as i1 from "./lib/confirm-remove-modal/confirm-remove-modal.component";
|
|
3
|
+
import * as i2 from "./lib/confirm-modal/confirm-modal.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/material/dialog";
|
|
6
|
+
import * as i5 from "@angular/material/form-field";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "@angular/material/input";
|
|
9
|
+
import * as i8 from "@apipass/inputs";
|
|
10
|
+
import * as i9 from "@apipass/buttons";
|
|
11
|
+
import * as i10 from "@apipass/icons";
|
|
11
12
|
export declare class ModalsModule {
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<ModalsModule, [typeof i1.ConfirmRemoveModalDataComponent], [typeof
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<ModalsModule, [typeof i1.ConfirmRemoveModalDataComponent, typeof i2.ConfirmModalDataComponent], [typeof i3.CommonModule, typeof i4.MatDialogModule, typeof i5.MatFormFieldModule, typeof i6.FormsModule, typeof i7.MatInputModule, typeof i8.InputsModule, typeof i9.ButtonsModule, typeof i10.IconsModule], [typeof i1.ConfirmRemoveModalDataComponent, typeof i2.ConfirmModalDataComponent]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDef<ModalsModule>;
|
|
14
15
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * from '@angular/material/dialog';
|
|
2
2
|
export * from './modals.module';
|
|
3
|
-
export * from './lib/confirm-remove-modal.component';
|
|
3
|
+
export * from './lib/confirm-remove-modal/confirm-remove-modal.component';
|
|
4
|
+
export * from './lib/confirm-modal/confirm-modal.component';
|