@apipass/modals 0.2.5 → 0.2.7-alpha.0
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 +223 -13
- 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/lib/modal-header/modal-header.component.js +104 -0
- package/esm2015/modals.module.js +18 -8
- package/esm2015/public-api.js +4 -2
- package/fesm2015/apipass-modals.js +196 -16
- 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/lib/modal-header/modal-header.component.d.ts +17 -0
- package/modals.module.d.ts +12 -10
- package/package.json +1 -1
- package/public-api.d.ts +3 -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,208 @@
|
|
|
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
|
+
|
|
219
|
+
function ModalHeaderComponent_div_2_icon_1_Template(rf, ctx) {
|
|
220
|
+
if (rf & 1) {
|
|
221
|
+
var _r4_1 = i0.ɵɵgetCurrentView();
|
|
222
|
+
i0.ɵɵelementStart(0, "icon", 6);
|
|
223
|
+
i0.ɵɵlistener("onClick", function ModalHeaderComponent_div_2_icon_1_Template_icon_onClick_0_listener() { i0.ɵɵrestoreView(_r4_1); var ctx_r3 = i0.ɵɵnextContext(2); return ctx_r3.changeExpand(); });
|
|
224
|
+
i0.ɵɵelementEnd();
|
|
225
|
+
}
|
|
226
|
+
if (rf & 2) {
|
|
227
|
+
var ctx_r1 = i0.ɵɵnextContext(2);
|
|
228
|
+
i0.ɵɵproperty("size", 13)("name", !ctx_r1.expanded ? "fa fa-expand-arrows-alt" : "fa fa-compress")("title", ctx_r1.titleExpand);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
function ModalHeaderComponent_div_2_icon_2_Template(rf, ctx) {
|
|
232
|
+
if (rf & 1) {
|
|
233
|
+
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
234
|
+
i0.ɵɵelementStart(0, "icon", 7);
|
|
235
|
+
i0.ɵɵlistener("onClick", function ModalHeaderComponent_div_2_icon_2_Template_icon_onClick_0_listener() { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(2); return ctx_r5.closeClick.next(); });
|
|
236
|
+
i0.ɵɵelementEnd();
|
|
237
|
+
}
|
|
238
|
+
if (rf & 2) {
|
|
239
|
+
var ctx_r2 = i0.ɵɵnextContext(2);
|
|
240
|
+
i0.ɵɵproperty("title", ctx_r2.titleClose);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function ModalHeaderComponent_div_2_Template(rf, ctx) {
|
|
244
|
+
if (rf & 1) {
|
|
245
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
246
|
+
i0.ɵɵtemplate(1, ModalHeaderComponent_div_2_icon_1_Template, 1, 3, "icon", 4);
|
|
247
|
+
i0.ɵɵtemplate(2, ModalHeaderComponent_div_2_icon_2_Template, 1, 1, "icon", 5);
|
|
248
|
+
i0.ɵɵelementEnd();
|
|
249
|
+
}
|
|
250
|
+
if (rf & 2) {
|
|
251
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
252
|
+
i0.ɵɵadvance(1);
|
|
253
|
+
i0.ɵɵproperty("ngIf", ctx_r0.showExpandIcon);
|
|
254
|
+
i0.ɵɵadvance(1);
|
|
255
|
+
i0.ɵɵproperty("ngIf", ctx_r0.showCloseIcon);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
var ModalHeaderComponent = /** @class */ (function () {
|
|
259
|
+
function ModalHeaderComponent() {
|
|
260
|
+
this.expanded = false;
|
|
261
|
+
this.showExpandIcon = false;
|
|
262
|
+
this.showCloseIcon = false;
|
|
263
|
+
this.titleClose = 'Close';
|
|
264
|
+
this.titleExpand = 'Expand';
|
|
265
|
+
this.closeClick = new i0.EventEmitter();
|
|
266
|
+
this.expandClick = new i0.EventEmitter();
|
|
267
|
+
}
|
|
268
|
+
ModalHeaderComponent.prototype.changeExpand = function () {
|
|
269
|
+
var _a, _b;
|
|
270
|
+
this.expanded = !this.expanded;
|
|
271
|
+
this.expandClick.next(this.expanded);
|
|
272
|
+
if (this.expanded) {
|
|
273
|
+
(_a = this.dialogRef) === null || _a === void 0 ? void 0 : _a.addPanelClass('mod-expanded');
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
(_b = this.dialogRef) === null || _b === void 0 ? void 0 : _b.removePanelClass('mod-expanded');
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
return ModalHeaderComponent;
|
|
280
|
+
}());
|
|
281
|
+
ModalHeaderComponent.ɵfac = function ModalHeaderComponent_Factory(t) { return new (t || ModalHeaderComponent)(); };
|
|
282
|
+
ModalHeaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ModalHeaderComponent, selectors: [["modal-header-component"]], inputs: { title: "title", expanded: "expanded", showExpandIcon: "showExpandIcon", showCloseIcon: "showCloseIcon", titleClose: "titleClose", titleExpand: "titleExpand", dialogRef: "dialogRef" }, outputs: { closeClick: "closeClick", expandClick: "expandClick" }, decls: 3, vars: 2, consts: [[1, "modal-title"], ["mat-dialog-title", "", 3, "innerHTML"], ["class", "modal-title-actions", 4, "ngIf"], [1, "modal-title-actions"], ["type", "primary clickable", 3, "size", "name", "title", "onClick", 4, "ngIf"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick", 4, "ngIf"], ["type", "primary clickable", 3, "size", "name", "title", "onClick"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick"]], template: function ModalHeaderComponent_Template(rf, ctx) {
|
|
283
|
+
if (rf & 1) {
|
|
284
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
285
|
+
i0.ɵɵelement(1, "h3", 1);
|
|
286
|
+
i0.ɵɵtemplate(2, ModalHeaderComponent_div_2_Template, 3, 2, "div", 2);
|
|
287
|
+
i0.ɵɵelementEnd();
|
|
288
|
+
}
|
|
289
|
+
if (rf & 2) {
|
|
290
|
+
i0.ɵɵadvance(1);
|
|
291
|
+
i0.ɵɵproperty("innerHTML", ctx.title, i0.ɵɵsanitizeHtml);
|
|
292
|
+
i0.ɵɵadvance(1);
|
|
293
|
+
i0.ɵɵproperty("ngIf", ctx.showExpandIcon || ctx.showCloseIcon);
|
|
294
|
+
}
|
|
295
|
+
}, directives: [i1.MatDialogTitle, i2.NgIf, 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%] > .modal-title-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;position:absolute;right:-5px;top:-5px}.modal-title[_ngcontent-%COMP%] > .modal-title-actions[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:block}.modal-title[_ngcontent-%COMP%] > .modal-title-actions[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}"] });
|
|
296
|
+
/*@__PURE__*/ (function () {
|
|
297
|
+
i0.ɵsetClassMetadata(ModalHeaderComponent, [{
|
|
298
|
+
type: i0.Component,
|
|
299
|
+
args: [{
|
|
300
|
+
selector: 'modal-header-component',
|
|
301
|
+
template: "\n <div class=\"modal-title\">\n <h3 [innerHTML]='title' mat-dialog-title></h3>\n <div *ngIf=\"showExpandIcon || showCloseIcon\" class=\"modal-title-actions\">\n <icon *ngIf=\"showExpandIcon\" type=\"primary clickable\" [size]=\"13\" [name]=\"!expanded ? 'fa fa-expand-arrows-alt' : 'fa fa-compress'\" [title]=\"titleExpand\" (onClick)=\"changeExpand()\"></icon>\n <icon *ngIf=\"showCloseIcon\" type=\"tertiary clickable\" name=\"fas fa-times\" [title]=\"titleClose\" (onClick)=\"closeClick.next()\"></icon>\n </div>\n </div>\n ",
|
|
302
|
+
styleUrls: ['modal-header.scss']
|
|
303
|
+
}]
|
|
304
|
+
}], null, { title: [{
|
|
305
|
+
type: i0.Input
|
|
306
|
+
}], expanded: [{
|
|
307
|
+
type: i0.Input
|
|
308
|
+
}], showExpandIcon: [{
|
|
309
|
+
type: i0.Input
|
|
310
|
+
}], showCloseIcon: [{
|
|
311
|
+
type: i0.Input
|
|
312
|
+
}], titleClose: [{
|
|
313
|
+
type: i0.Input
|
|
314
|
+
}], titleExpand: [{
|
|
315
|
+
type: i0.Input
|
|
316
|
+
}], dialogRef: [{
|
|
317
|
+
type: i0.Input
|
|
318
|
+
}], closeClick: [{
|
|
319
|
+
type: i0.Output
|
|
320
|
+
}], expandClick: [{
|
|
321
|
+
type: i0.Output
|
|
322
|
+
}] });
|
|
323
|
+
})();
|
|
324
|
+
|
|
126
325
|
var ModalsModule = /** @class */ (function () {
|
|
127
326
|
function ModalsModule() {
|
|
128
327
|
}
|
|
@@ -137,17 +336,21 @@
|
|
|
137
336
|
input.MatInputModule,
|
|
138
337
|
i5.InputsModule,
|
|
139
338
|
i3.ButtonsModule,
|
|
140
|
-
i4.IconsModule
|
|
339
|
+
i4.IconsModule
|
|
141
340
|
]] });
|
|
142
341
|
(function () {
|
|
143
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent
|
|
342
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent,
|
|
343
|
+
ConfirmModalDataComponent,
|
|
344
|
+
ModalHeaderComponent], imports: [i2.CommonModule,
|
|
144
345
|
i1.MatDialogModule,
|
|
145
346
|
formField.MatFormFieldModule,
|
|
146
347
|
i6.FormsModule,
|
|
147
348
|
input.MatInputModule,
|
|
148
349
|
i5.InputsModule,
|
|
149
350
|
i3.ButtonsModule,
|
|
150
|
-
i4.IconsModule], exports: [ConfirmRemoveModalDataComponent
|
|
351
|
+
i4.IconsModule], exports: [ConfirmRemoveModalDataComponent,
|
|
352
|
+
ConfirmModalDataComponent,
|
|
353
|
+
ModalHeaderComponent] });
|
|
151
354
|
})();
|
|
152
355
|
/*@__PURE__*/ (function () {
|
|
153
356
|
i0.ɵsetClassMetadata(ModalsModule, [{
|
|
@@ -161,13 +364,17 @@
|
|
|
161
364
|
input.MatInputModule,
|
|
162
365
|
i5.InputsModule,
|
|
163
366
|
i3.ButtonsModule,
|
|
164
|
-
i4.IconsModule
|
|
367
|
+
i4.IconsModule
|
|
165
368
|
],
|
|
166
369
|
declarations: [
|
|
167
|
-
ConfirmRemoveModalDataComponent
|
|
370
|
+
ConfirmRemoveModalDataComponent,
|
|
371
|
+
ConfirmModalDataComponent,
|
|
372
|
+
ModalHeaderComponent
|
|
168
373
|
],
|
|
169
374
|
exports: [
|
|
170
|
-
ConfirmRemoveModalDataComponent
|
|
375
|
+
ConfirmRemoveModalDataComponent,
|
|
376
|
+
ConfirmModalDataComponent,
|
|
377
|
+
ModalHeaderComponent
|
|
171
378
|
],
|
|
172
379
|
providers: []
|
|
173
380
|
}]
|
|
@@ -186,8 +393,11 @@
|
|
|
186
393
|
}
|
|
187
394
|
});
|
|
188
395
|
});
|
|
396
|
+
exports.ConfirmDialogData = ConfirmDialogData;
|
|
397
|
+
exports.ConfirmModalDataComponent = ConfirmModalDataComponent;
|
|
189
398
|
exports.ConfirmRemoveDialogData = ConfirmRemoveDialogData;
|
|
190
399
|
exports.ConfirmRemoveModalDataComponent = ConfirmRemoveModalDataComponent;
|
|
400
|
+
exports.ModalHeaderComponent = ModalHeaderComponent;
|
|
191
401
|
exports.ModalsModule = ModalsModule;
|
|
192
402
|
|
|
193
403
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -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>\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","MAT_DIALOG_DATA","i0.ɵɵtemplate","Component","Inject","CommonModule","MatDialogModule","MatFormFieldModule","FormsModule","MatInputModule","InputsModule","ButtonsModule","IconsModule","NgModule"],"mappings":";;;;;;;;YACEA,6BACE;YAAAC,YACF;YAAAC,iBAAK;;;;YADHC,eACF;YADEC,kDACF;;;;;;YACAJ,+BAAyI;YAAhCK,sMAAwB;YAACH,iBAAO;;;;YAA1DI,8CAAyB;;;;;YAIxGC,wBAAuD;;;;YAA/BD,kEAA0B;;;;;;YAClDN,sCAAqH;YAA3CK,gPAA6B;YAACH,iBAAa;;;;YAA1EI,mDAA8B,mCAAA;;;;QCN3E;SAWC;sCAAA;KAAA,IAAA;;QASC,yCACS,SAAwD,EAC/B,IAA6B;YADtD,cAAS,GAAT,SAAS,CAA+C;YAC/B,SAAI,GAAJ,IAAI,CAAyB;SAE9D;QAED,oDAAU,GAAV;YACE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;SACxB;QAED,sDAAY,GAAZ;;YACE,IAAI,QAAC,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,IAAI,OAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,aAAK,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,EAAE;gBAC3F,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACjC;SACF;QAED,2DAAiB,GAAjB;;YACE,IAAI,QAAC,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,EAAE;gBACjC,OAAO,KAAK,CAAC;aACd;YACD,OAAO,OAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,aAAK,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,CAAC;SAC/D;;;kHAvBU,+BAA+B,8DAIhCE,kBAAe;wEAJd,+BAA+B;;gBDrB5CR,8BACE;gBAAAS,8EACE;gBAEFA,kFAAkI;gBACpIP,iBAAM;gBAENF,8BACE;gBAAAS,4EAAmD;gBACnDA,8FAAwG;gBAC1GP,iBAAM;gBAENF,8BACE;gBAAAA,2CAAyJ;gBAA9CK,0HAAW,kBAAc,IAAC;gBAACH,iBAAmB;gBAC3JA,iBAAM;;;gBAbAC,eAAkB;gBAAlBG,qCAAkB;gBAGhBH,eAA0B;gBAA1BG,6CAA0B;gBAI7BH,eAAoB;gBAApBG,uCAAoB;gBACXH,eAA8B;gBAA9BG,iDAA8B;gBAIxBH,eAAmC;gBAAnCG,qDAAmC,8BAAA,+BAAA;;;;6BCQ1C,+BAA+B;sBAL3CI,YAAS;uBAAC;wBACT,QAAQ,EAAE,2BAA2B;wBACrC,WAAW,EAAE,qCAAqC;wBAClD,SAAS,EAAE,CAAC,qCAAqC,CAAC;qBACnD;;uDAKyC,uBAAuB;kCAA5DC,SAAM;mCAACH,kBAAe;;;;;;QCK3B;;;;oDAAa,YAAY;2GAAZ,YAAY,mBAFZ,EAAE,YAhBJ;gBACPI,eAAY;gBACZC,kBAAe;gBACfC,4BAAkB;gBAClBC,cAAW;gBACXC,oBAAc;gBACdC,eAAY;gBACZC,gBAAa;gBACbC,cAAW;aACZ;;iFASU,YAAY,mBAPrB,+BAA+B,aAV/BP,eAAY;gBACZC,kBAAe;gBACfC,4BAAkB;gBAClBC,cAAW;gBACXC,oBAAc;gBACdC,eAAY;gBACZC,gBAAa;gBACbC,cAAW,aAMX,+BAA+B;;;6BAItB,YAAY;sBAnBxBC,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;yBAChC;wBACD,OAAO,EAAE;4BACP,+BAA+B;yBAChC;wBACD,SAAS,EAAE,EAAE;qBACd;;;;IC7BD;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
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/lib/modal-header/modal-header.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 {Component, EventEmitter, Input, Output} from '@angular/core';\nimport {MatDialogRef} from '@angular/material/dialog';\n\n@Component({\n selector: 'modal-header-component',\n template: `\n <div class=\"modal-title\">\n <h3 [innerHTML]='title' mat-dialog-title></h3>\n <div *ngIf=\"showExpandIcon || showCloseIcon\" class=\"modal-title-actions\">\n <icon *ngIf=\"showExpandIcon\" type=\"primary clickable\" [size]=\"13\" [name]=\"!expanded ? 'fa fa-expand-arrows-alt' : 'fa fa-compress'\" [title]=\"titleExpand\" (onClick)=\"changeExpand()\"></icon>\n <icon *ngIf=\"showCloseIcon\" type=\"tertiary clickable\" name=\"fas fa-times\" [title]=\"titleClose\" (onClick)=\"closeClick.next()\"></icon>\n </div>\n </div>\n ` ,\n styleUrls: ['modal-header.scss']\n})\nexport class ModalHeaderComponent {\n\n @Input() title: string | undefined;\n @Input() expanded = false;\n @Input() showExpandIcon = false;\n @Input() showCloseIcon = false;\n\n @Input() titleClose = 'Close';\n @Input() titleExpand = 'Expand';\n @Input() dialogRef: MatDialogRef<ModalHeaderComponent> | undefined;\n\n @Output() closeClick: EventEmitter<any> = new EventEmitter();\n @Output() expandClick: EventEmitter<boolean> = new EventEmitter();\n\n public changeExpand(): void {\n this.expanded = !this.expanded;\n this.expandClick.next(this.expanded);\n if (this.expanded) {\n this.dialogRef?.addPanelClass('mod-expanded');\n } else {\n this.dialogRef?.removePanelClass('mod-expanded');\n }\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 {ModalHeaderComponent} from './lib/modal-header/modal-header.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 ModalHeaderComponent\n ],\n exports: [\n ConfirmRemoveModalDataComponent,\n ConfirmModalDataComponent,\n ModalHeaderComponent\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","EventEmitter","Input","Output","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;YAACC,iBAAa;;;;YAA1EH,mDAA8B,mCAAA;;;;QCJ3E;SAWC;sCAAA;KAAA,IAAA;;QASC,yCACS,SAAwD,EAC/B,IAA6B;YADtD,cAAS,GAAT,SAAS,CAA+C;YAC/B,SAAI,GAAJ,IAAI,CAAyB;SAE9D;QAED,oDAAU,GAAV;YACE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;SACxB;QAED,sDAAY,GAAZ;;YACE,IAAI,QAAC,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,IAAI,OAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,aAAK,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,EAAE;gBAC3F,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACjC;SACF;QAED,2DAAiB,GAAjB;;YACE,IAAI,QAAC,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAA,EAAE;gBACjC,OAAO,KAAK,CAAC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Ae;gBACfC,4BAAkB;gBAClBC,cAAW;gBACXC,oBAAc;gBACdC,eAAY;gBACZC,gBAAa;gBACbC,cAAW,aAQX,+BAA+B;gBAC/B,yBAAyB;gBACzB,oBAAoB;;;6BAIX,YAAY;sBAvBxBC,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;4BACzB,oBAAoB;yBACrB;wBACD,OAAO,EAAE;4BACP,+BAA+B;4BAC/B,yBAAyB;4BACzB,oBAAoB;yBACrB;wBACD,SAAS,EAAE,EAAE;qBACd;;;;ICnCD;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(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"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).apipass=e.apipass||{},e.apipass.modals={}),e.ng.material.dialog,e.ng.core,e.ng.common,e.i3,e.i4,e.i5,e.ng.forms,e.ng.material.formField,e.ng.material.input)}(this,(function(e,t,n,o,a,i,l,r,d,c){"use strict";function m(e,t){if(1&e&&(n.ɵɵelementStart(0,"h3",8),n.ɵɵtext(1),n.ɵɵelementEnd()),2&e){var o=n.ɵɵnextContext();n.ɵɵadvance(1),n.ɵɵtextInterpolate1(" ",o.data.title," ")}}function s(e,t){if(1&e){var o=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"icon",9),n.ɵɵlistener("onClick",(function(){return n.ɵɵrestoreView(o),n.ɵɵnextContext().closeClick()})),n.ɵɵelementEnd()}if(2&e){var a=n.ɵɵnextContext();n.ɵɵproperty("title",a.data.closeLabel)}}function u(e,t){if(1&e&&n.ɵɵelement(0,"p",10),2&e){var o=n.ɵɵnextContext();n.ɵɵproperty("innerHTML",o.data.content,n.ɵɵsanitizeHtml)}}function p(e,t){if(1&e){var o=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"input-text",11),n.ɵɵlistener("ngModelChange",(function(e){return n.ɵɵrestoreView(o),n.ɵɵnextContext().data.removeText=e})),n.ɵɵelementEnd()}if(2&e){var a=n.ɵɵnextContext();n.ɵɵproperty("label",a.data.removeTextLabel)("ngModel",a.data.removeText)}}var f=function(){},g=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.closeClick=function(){this.dialogRef.close()},e.prototype.confirmClick=function(){var e,t,n;(null===(e=this.data)||void 0===e?void 0:e.removeTextConfirm)&&(null===(t=this.data)||void 0===t?void 0:t.removeText)!==(null===(n=this.data)||void 0===n?void 0:n.removeTextConfirm)||this.dialogRef.close(this.data)},e.prototype.isConfirmDisabled=function(){var e,t,n;return!!(null===(e=this.data)||void 0===e?void 0:e.removeTextConfirm)&&(null===(t=this.data)||void 0===t?void 0:t.removeText)!==(null===(n=this.data)||void 0===n?void 0:n.removeTextConfirm)},e}();g.ɵfac=function(e){return new(e||g)(n.ɵɵdirectiveInject(t.MatDialogRef),n.ɵɵdirectiveInject(t.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","",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(e,t){1&e&&(n.ɵɵelementStart(0,"div",0),n.ɵɵtemplate(1,m,2,1,"h3",1),n.ɵɵtemplate(2,s,1,1,"icon",2),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"div",3),n.ɵɵtemplate(4,u,1,1,"p",4),n.ɵɵtemplate(5,p,1,2,"input-text",5),n.ɵɵelementEnd(),n.ɵɵelementStart(6,"div",6),n.ɵɵelementStart(7,"secondary-button",7),n.ɵɵlistener("onClick",(function(){return t.confirmClick()})),n.ɵɵelementEnd(),n.ɵɵelementEnd()),2&e&&(n.ɵɵadvance(1),n.ɵɵproperty("ngIf",t.data.title),n.ɵɵadvance(1),n.ɵɵproperty("ngIf",t.data.showCloseIcon),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",t.data.content),n.ɵɵadvance(1),n.ɵɵproperty("ngIf",t.data.removeTextConfirm),n.ɵɵadvance(2),n.ɵɵproperty("btnDisabled",t.isConfirmDisabled())("icon",t.data.confirmIcon)("label",t.data.confirmText))},directives:[o.NgIf,t.MatDialogContent,t.MatDialogActions,a.SecondaryButtonComponent,t.MatDialogTitle,i.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 M=function(){};M.ɵmod=n.ɵɵdefineNgModule({type:M}),M.ɵinj=n.ɵɵdefineInjector({factory:function(e){return new(e||M)},providers:[],imports:[[o.CommonModule,t.MatDialogModule,d.MatFormFieldModule,r.FormsModule,c.MatInputModule,l.InputsModule,a.ButtonsModule,i.IconsModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&n.ɵɵsetNgModuleScope(M,{declarations:[g],imports:[o.CommonModule,t.MatDialogModule,d.MatFormFieldModule,r.FormsModule,c.MatInputModule,l.InputsModule,a.ButtonsModule,i.IconsModule],exports:[g]}),Object.keys(t).forEach((function(n){"default"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})),e.ConfirmRemoveDialogData=f,e.ConfirmRemoveModalDataComponent=g,e.ModalsModule=M,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
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 s(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 m(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 x(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 M(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,s,1,1,"h3",1),n.ɵɵtemplate(2,m,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 v=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}();function h(t,e){if(1&t){var o=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"icon",6),n.ɵɵlistener("onClick",(function(){return n.ɵɵrestoreView(o),n.ɵɵnextContext(2).changeExpand()})),n.ɵɵelementEnd()}if(2&t){var i=n.ɵɵnextContext(2);n.ɵɵproperty("size",13)("name",i.expanded?"fa fa-compress":"fa fa-expand-arrows-alt")("title",i.titleExpand)}}function I(t,e){if(1&t){var o=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"icon",7),n.ɵɵlistener("onClick",(function(){return n.ɵɵrestoreView(o),n.ɵɵnextContext(2).closeClick.next()})),n.ɵɵelementEnd()}if(2&t){var i=n.ɵɵnextContext(2);n.ɵɵproperty("title",i.titleClose)}}function b(t,e){if(1&t&&(n.ɵɵelementStart(0,"div",3),n.ɵɵtemplate(1,h,1,3,"icon",4),n.ɵɵtemplate(2,I,1,1,"icon",5),n.ɵɵelementEnd()),2&t){var o=n.ɵɵnextContext();n.ɵɵadvance(1),n.ɵɵproperty("ngIf",o.showExpandIcon),n.ɵɵadvance(1),n.ɵɵproperty("ngIf",o.showCloseIcon)}}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,x,1,1,"icon",2),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"div",3),n.ɵɵtemplate(4,M,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 k=function(){function t(){this.expanded=!1,this.showExpandIcon=!1,this.showCloseIcon=!1,this.titleClose="Close",this.titleExpand="Expand",this.closeClick=new n.EventEmitter,this.expandClick=new n.EventEmitter}return t.prototype.changeExpand=function(){var t,e;this.expanded=!this.expanded,this.expandClick.next(this.expanded),this.expanded?null===(t=this.dialogRef)||void 0===t||t.addPanelClass("mod-expanded"):null===(e=this.dialogRef)||void 0===e||e.removePanelClass("mod-expanded")},t}();k.ɵfac=function(t){return new(t||k)},k.ɵcmp=n.ɵɵdefineComponent({type:k,selectors:[["modal-header-component"]],inputs:{title:"title",expanded:"expanded",showExpandIcon:"showExpandIcon",showCloseIcon:"showCloseIcon",titleClose:"titleClose",titleExpand:"titleExpand",dialogRef:"dialogRef"},outputs:{closeClick:"closeClick",expandClick:"expandClick"},decls:3,vars:2,consts:[[1,"modal-title"],["mat-dialog-title","",3,"innerHTML"],["class","modal-title-actions",4,"ngIf"],[1,"modal-title-actions"],["type","primary clickable",3,"size","name","title","onClick",4,"ngIf"],["type","tertiary clickable","name","fas fa-times",3,"title","onClick",4,"ngIf"],["type","primary clickable",3,"size","name","title","onClick"],["type","tertiary clickable","name","fas fa-times",3,"title","onClick"]],template:function(t,e){1&t&&(n.ɵɵelementStart(0,"div",0),n.ɵɵelement(1,"h3",1),n.ɵɵtemplate(2,b,3,2,"div",2),n.ɵɵelementEnd()),2&t&&(n.ɵɵadvance(1),n.ɵɵproperty("innerHTML",e.title,n.ɵɵsanitizeHtml),n.ɵɵadvance(1),n.ɵɵproperty("ngIf",e.showExpandIcon||e.showCloseIcon))},directives:[e.MatDialogTitle,o.NgIf,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%] > .modal-title-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;position:absolute;right:-5px;top:-5px}.modal-title[_ngcontent-%COMP%] > .modal-title-actions[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:block}.modal-title[_ngcontent-%COMP%] > .modal-title-actions[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}"]});var w=function(){};w.ɵmod=n.ɵɵdefineNgModule({type:w}),w.ɵinj=n.ɵɵdefineInjector({factory:function(t){return new(t||w)},providers:[],imports:[[o.CommonModule,e.MatDialogModule,c.MatFormFieldModule,r.FormsModule,d.MatInputModule,l.InputsModule,i.ButtonsModule,a.IconsModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&n.ɵɵsetNgModuleScope(w,{declarations:[g,y,k],imports:[o.CommonModule,e.MatDialogModule,c.MatFormFieldModule,r.FormsModule,d.MatInputModule,l.InputsModule,i.ButtonsModule,a.IconsModule],exports:[g,y,k]}),Object.keys(e).forEach((function(n){"default"!==n&&Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})})),t.ConfirmDialogData=v,t.ConfirmModalDataComponent=y,t.ConfirmRemoveDialogData=u,t.ConfirmRemoveModalDataComponent=g,t.ModalHeaderComponent=k,t.ModalsModule=w,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,GAAAC,EAAAA,mBAAAA,IAAAA,EAAAA,KAAAA,MAAAA,yDAEFJ,EAAAA,eAAAA,EAAAA,OAAAA,GAAyGK,EAAAA,WAAAA,WAAAA,WAAAA,OAAAA,EAAAA,cAAAA,GAAAA,EAAAA,gBAAAA,gBAAyBH,EAAAA,+CAAnDI,EAAAA,WAAAA,QAAAA,EAAAA,KAAAA,qCAI/EC,EAAAA,UAAAA,EAAAA,IAAAA,iCAAwBD,EAAAA,WAAAA,YAAAA,EAAAA,KAAAA,QAAAA,EAAAA,oEACxBN,EAAAA,eAAAA,EAAAA,aAAAA,IAA0EK,EAAAA,WAAAA,iBAAAA,SAAAA,GAAAA,OAAAA,EAAAA,cAAAA,GAAAA,EAAAA,gBAAAA,KAAAA,WAAAA,KAA8BH,EAAAA,+CAA7DI,EAAAA,WAAAA,QAAAA,EAAAA,KAAAA,gBAAAA,CAA8B,UAAAE,EAAAC,KAAAC,mBCN3E,0BAoBE,SAAAC,EACSC,EACyBH,GADzBI,KAAAD,UAAAA,EACyBC,KAAAJ,KAAAA,SAIlCE,EAAAG,UAAAC,WAAA,WACEF,KAAKD,UAAUI,SAGjBL,EAAAG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A,eAAAA,EAAAA,MAAAA,GACEmC,EAAAA,WAAAA,EAAAA,EAAAA,EAAAA,EAAAA,IAAAA,GACAA,EAAAA,WAAAA,EAAAA,EAAAA,EAAAA,EAAAA,aAAAA,GACFjC,EAAAA,eAEAF,EAAAA,eAAAA,EAAAA,MAAAA,GACEA,EAAAA,eAAAA,EAAAA,mBAAAA,GAA2GK,EAAAA,WAAAA,WAAAA,WAAAA,OAAW6B,EAAAjB,kBAAgBf,EAAAA,eACxIA,EAAAA,sBAbMC,EAAAA,UAAAA,GAAAG,EAAAA,WAAAA,OAAAA,EAAAA,KAAAA,OAGEH,EAAAA,UAAAA,GAAAG,EAAAA,WAAAA,OAAAA,EAAAA,KAAAA,eAIHH,EAAAA,UAAAA,GAAAG,EAAAA,WAAAA,OAAAA,EAAAA,KAAAA,SACSH,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/lib/modal-header/modal-header.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","ctx_r1","expanded","titleExpand","next","cancelText","ModalHeaderComponent","showExpandIcon","showCloseIcon","titleClose","EventEmitter","expandClick","changeExpand","addPanelClass","removePanelClass","inputs","title","outputs","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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uBAAA,CAAA,OAAA,oBAAA,EAAA,OAAA,OAAA,QAAA,UAAA,EAAA,QAAA,CAAA,OAAA,qBAAA,OAAA,eAAA,EAAA,QAAA,UAAA,EAAA,QAAA,CAAA,OAAA,oBAAA,EAAA,OAAA,OAAA,QAAA,WAAA,CAAA,OAAA,qBAAA,OAAA,eAAA,EAAA,QAAA,YAAAC,SAAA,SAAAC,EAAAC,SAV7B7B,EAAAA,eAAAA,EAAAA,MAAAA,GACEF,EAAAA,UAAAA,EAAAA,KAAAA,GACAgC,EAAAA,WAAAA,EAAAA,EAAAA,EAAAA,EAAAA,MAAAA,GAIF5B,EAAAA,sBALM6B,EAAAA,UAAAA,GAAAhC,EAAAA,WAAAA,YAAAA,EAAAA,MAAAA,EAAAA,gBACCgC,EAAAA,UAAAA,GAAAhC,EAAAA,WAAAA,OAAAA,EAAAA,gBAAAA,EAAAA,guBC4BX,6CAAaqD,iEAAAA,IAAYC,UAFZ,GAAEC,QAAA,CApBJ,CACPC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,mBACAC,EAAAA,YACAC,EAAAA,eACAC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,iFAcSV,EAAY,CAAAW,aAAA,CAXrBzD,EACA4B,EACAM,GAAoBc,QAAA,CAZpBC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,mBACAC,EAAAA,YACAC,EAAAA,eACAC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,aAAWE,QAAA,CAQX1D,EACA4B,EACAM","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 {Component, EventEmitter, Input, Output} from '@angular/core';\nimport {MatDialogRef} from '@angular/material/dialog';\n\n@Component({\n selector: 'modal-header-component',\n template: `\n <div class=\"modal-title\">\n <h3 [innerHTML]='title' mat-dialog-title></h3>\n <div *ngIf=\"showExpandIcon || showCloseIcon\" class=\"modal-title-actions\">\n <icon *ngIf=\"showExpandIcon\" type=\"primary clickable\" [size]=\"13\" [name]=\"!expanded ? 'fa fa-expand-arrows-alt' : 'fa fa-compress'\" [title]=\"titleExpand\" (onClick)=\"changeExpand()\"></icon>\n <icon *ngIf=\"showCloseIcon\" type=\"tertiary clickable\" name=\"fas fa-times\" [title]=\"titleClose\" (onClick)=\"closeClick.next()\"></icon>\n </div>\n </div>\n ` ,\n styleUrls: ['modal-header.scss']\n})\nexport class ModalHeaderComponent {\n\n @Input() title: string | undefined;\n @Input() expanded = false;\n @Input() showExpandIcon = false;\n @Input() showCloseIcon = false;\n\n @Input() titleClose = 'Close';\n @Input() titleExpand = 'Expand';\n @Input() dialogRef: MatDialogRef<ModalHeaderComponent> | undefined;\n\n @Output() closeClick: EventEmitter<any> = new EventEmitter();\n @Output() expandClick: EventEmitter<boolean> = new EventEmitter();\n\n public changeExpand(): void {\n this.expanded = !this.expanded;\n this.expandClick.next(this.expanded);\n if (this.expanded) {\n this.dialogRef?.addPanelClass('mod-expanded');\n } else {\n this.dialogRef?.removePanelClass('mod-expanded');\n }\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 {ModalHeaderComponent} from './lib/modal-header/modal-header.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 ModalHeaderComponent\n ],\n exports: [\n ConfirmRemoveModalDataComponent,\n ConfirmModalDataComponent,\n ModalHeaderComponent\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb2RhbHMvc3JjL2xpYi9jb25maXJtLW1vZGFsL2NvbmZpcm0tbW9kYWwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9kYWxzL3NyYy9saWIvY29uZmlybS1tb2RhbC9jb25maXJtLW1vZGFsLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ2hELE9BQU8sRUFBQyxlQUFlLEVBQUUsWUFBWSxFQUFDLE1BQU0sMEJBQTBCLENBQUM7Ozs7Ozs7SUNBckUsd0JBQXNFOzs7SUFBL0MsZ0VBQXdCOzs7O0lBQy9DLCtCQUF5STtJQUFoQyxnTUFBd0I7SUFBQyxpQkFBTzs7O0lBQTFELDhDQUF5Qjs7O0lBSXhHLHVCQUF1RDs7O0lBQS9CLGtFQUEwQjs7QURIcEQsTUFBTSxPQUFPLGlCQUFpQjtDQVU3QjtBQU9ELE1BQU0sT0FBTyx5QkFBeUI7SUFFcEMsWUFDUyxTQUFrRCxFQUN6QixJQUF1QjtRQURoRCxjQUFTLEdBQVQsU0FBUyxDQUF5QztRQUN6QixTQUFJLEdBQUosSUFBSSxDQUFtQjtJQUV6RCxDQUFDO0lBRUQsVUFBVTtRQUNSLElBQUksQ0FBQyxTQUFTLENBQU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YWxvZy10aXRsZT48L2gzPlxuICA8aWNvbiAqbmdJZj1cImRhdGEuc2hvd0Nsb3NlSWNvblwiIHR5cGU9XCJ0ZXJ0aWFyeSBjbGlja2FibGVcIiBuYW1lPVwiZmFzIGZhLXRpbWVzXCIgW3RpdGxlXT1cImRhdGEuY2xvc2VMYWJlbFwiIChvbkNsaWNrKT1cImNsb3NlQ2xpY2soKVwiPjwvaWNvbj5cbjwvZGl2PlxuXG48ZGl2IGNsYXNzPVwibW9kYWwtY29udGVudFwiIG1hdC1kaWFsb2ctY29udGVudD5cbiAgPHAgKm5nSWY9XCJkYXRhLmNvbnRlbnRcIiBbaW5uZXJIVE1MXT1cImRhdGEuY29udGVudFwiPjwvcD5cbjwvZGl2PlxuXG48ZGl2IGNsYXNzPVwibW9kYWwtYWN0aW9uc1wiIG1hdC1kaWFsb2ctYWN0aW9ucz5cbiAgPHRlcnRpYXJ5LWJ1dHRvbiBbaWNvbl09XCJkYXRhLmNhbmNlbEljb25cIiBbbGFiZWxdPVwiZGF0YS5jYW5jZWxUZXh0XCIgKG9uQ2xpY2spPVwiY2xvc2VDbGljaygpXCI+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1yZW1vdmUtbW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9kYWxzL3NyYy9saWIvY29uZmlybS1yZW1vdmUtbW9kYWwvY29uZmlybS1yZW1vdmUtbW9kYWwuY29tcG9uZW50L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mlybVwiIFtsYWJlbF09XCJkYXRhLnJlbW92ZVRleHRMYWJlbFwiIFsobmdNb2RlbCldPVwiZGF0YS5yZW1vdmVUZXh0XCI+PC9pbnB1dC10ZXh0PlxuPC9kaXY+XG5cbjxkaXYgY2xhc3M9XCJtb2RhbC1hY3Rpb25zXCIgbWF0LWRpYWxvZy1hY3Rpb25zPlxuICA8c2Vjb25kYXJ5LWJ1dHRvbiBbYnRuRGlzYWJsZWRdPVwiaXNDb25maXJtRGlzYWJsZWQoKVwiIFtpY29uXT1cImRhdGEuY29uZmlybUljb25cIiBbbGFiZWxdPVwiZGF0YS5jb25maXJtVGV4dFwiIChvbkNsaWNrKT1cImNvbmZpcm1DbGljaygpXCI+PC9zZWNvbmRhcnktYnV0dG9uPlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/material/dialog";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@apipass/icons";
|
|
6
|
+
function ModalHeaderComponent_div_2_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
8
|
+
i0.ɵɵelementStart(0, "icon", 6);
|
|
9
|
+
i0.ɵɵlistener("onClick", function ModalHeaderComponent_div_2_icon_1_Template_icon_onClick_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(2); return ctx_r3.changeExpand(); });
|
|
10
|
+
i0.ɵɵelementEnd();
|
|
11
|
+
} if (rf & 2) {
|
|
12
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
13
|
+
i0.ɵɵproperty("size", 13)("name", !ctx_r1.expanded ? "fa fa-expand-arrows-alt" : "fa fa-compress")("title", ctx_r1.titleExpand);
|
|
14
|
+
} }
|
|
15
|
+
function ModalHeaderComponent_div_2_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
17
|
+
i0.ɵɵelementStart(0, "icon", 7);
|
|
18
|
+
i0.ɵɵlistener("onClick", function ModalHeaderComponent_div_2_icon_2_Template_icon_onClick_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(2); return ctx_r5.closeClick.next(); });
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
} if (rf & 2) {
|
|
21
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
22
|
+
i0.ɵɵproperty("title", ctx_r2.titleClose);
|
|
23
|
+
} }
|
|
24
|
+
function ModalHeaderComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
26
|
+
i0.ɵɵtemplate(1, ModalHeaderComponent_div_2_icon_1_Template, 1, 3, "icon", 4);
|
|
27
|
+
i0.ɵɵtemplate(2, ModalHeaderComponent_div_2_icon_2_Template, 1, 1, "icon", 5);
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
} if (rf & 2) {
|
|
30
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
31
|
+
i0.ɵɵadvance(1);
|
|
32
|
+
i0.ɵɵproperty("ngIf", ctx_r0.showExpandIcon);
|
|
33
|
+
i0.ɵɵadvance(1);
|
|
34
|
+
i0.ɵɵproperty("ngIf", ctx_r0.showCloseIcon);
|
|
35
|
+
} }
|
|
36
|
+
export class ModalHeaderComponent {
|
|
37
|
+
constructor() {
|
|
38
|
+
this.expanded = false;
|
|
39
|
+
this.showExpandIcon = false;
|
|
40
|
+
this.showCloseIcon = false;
|
|
41
|
+
this.titleClose = 'Close';
|
|
42
|
+
this.titleExpand = 'Expand';
|
|
43
|
+
this.closeClick = new EventEmitter();
|
|
44
|
+
this.expandClick = new EventEmitter();
|
|
45
|
+
}
|
|
46
|
+
changeExpand() {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
this.expanded = !this.expanded;
|
|
49
|
+
this.expandClick.next(this.expanded);
|
|
50
|
+
if (this.expanded) {
|
|
51
|
+
(_a = this.dialogRef) === null || _a === void 0 ? void 0 : _a.addPanelClass('mod-expanded');
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
(_b = this.dialogRef) === null || _b === void 0 ? void 0 : _b.removePanelClass('mod-expanded');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
ModalHeaderComponent.ɵfac = function ModalHeaderComponent_Factory(t) { return new (t || ModalHeaderComponent)(); };
|
|
59
|
+
ModalHeaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ModalHeaderComponent, selectors: [["modal-header-component"]], inputs: { title: "title", expanded: "expanded", showExpandIcon: "showExpandIcon", showCloseIcon: "showCloseIcon", titleClose: "titleClose", titleExpand: "titleExpand", dialogRef: "dialogRef" }, outputs: { closeClick: "closeClick", expandClick: "expandClick" }, decls: 3, vars: 2, consts: [[1, "modal-title"], ["mat-dialog-title", "", 3, "innerHTML"], ["class", "modal-title-actions", 4, "ngIf"], [1, "modal-title-actions"], ["type", "primary clickable", 3, "size", "name", "title", "onClick", 4, "ngIf"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick", 4, "ngIf"], ["type", "primary clickable", 3, "size", "name", "title", "onClick"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick"]], template: function ModalHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
61
|
+
i0.ɵɵelement(1, "h3", 1);
|
|
62
|
+
i0.ɵɵtemplate(2, ModalHeaderComponent_div_2_Template, 3, 2, "div", 2);
|
|
63
|
+
i0.ɵɵelementEnd();
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
i0.ɵɵadvance(1);
|
|
66
|
+
i0.ɵɵproperty("innerHTML", ctx.title, i0.ɵɵsanitizeHtml);
|
|
67
|
+
i0.ɵɵadvance(1);
|
|
68
|
+
i0.ɵɵproperty("ngIf", ctx.showExpandIcon || ctx.showCloseIcon);
|
|
69
|
+
} }, directives: [i1.MatDialogTitle, i2.NgIf, i3.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%] > .modal-title-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;position:absolute;right:-5px;top:-5px}.modal-title[_ngcontent-%COMP%] > .modal-title-actions[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:block}.modal-title[_ngcontent-%COMP%] > .modal-title-actions[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}"] });
|
|
70
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ModalHeaderComponent, [{
|
|
71
|
+
type: Component,
|
|
72
|
+
args: [{
|
|
73
|
+
selector: 'modal-header-component',
|
|
74
|
+
template: `
|
|
75
|
+
<div class="modal-title">
|
|
76
|
+
<h3 [innerHTML]='title' mat-dialog-title></h3>
|
|
77
|
+
<div *ngIf="showExpandIcon || showCloseIcon" class="modal-title-actions">
|
|
78
|
+
<icon *ngIf="showExpandIcon" type="primary clickable" [size]="13" [name]="!expanded ? 'fa fa-expand-arrows-alt' : 'fa fa-compress'" [title]="titleExpand" (onClick)="changeExpand()"></icon>
|
|
79
|
+
<icon *ngIf="showCloseIcon" type="tertiary clickable" name="fas fa-times" [title]="titleClose" (onClick)="closeClick.next()"></icon>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
`,
|
|
83
|
+
styleUrls: ['modal-header.scss']
|
|
84
|
+
}]
|
|
85
|
+
}], null, { title: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], expanded: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], showExpandIcon: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], showCloseIcon: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], titleClose: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], titleExpand: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], dialogRef: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], closeClick: [{
|
|
100
|
+
type: Output
|
|
101
|
+
}], expandClick: [{
|
|
102
|
+
type: Output
|
|
103
|
+
}] }); })();
|
|
104
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaGVhZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vZGFscy9zcmMvbGliL21vZGFsLWhlYWRlci9tb2RhbC1oZWFkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7Ozs7SUFTN0QsK0JBQTRMO0lBQWxDLG9NQUEwQjtJQUFDLGlCQUFPOzs7SUFBdEkseUJBQVcseUVBQUEsNkJBQUE7Ozs7SUFDakUsK0JBQW9JO0lBQXJDLDJLQUFXLHdCQUFpQixJQUFDO0lBQUMsaUJBQU87OztJQUExRCx5Q0FBb0I7OztJQUZoRyw4QkFDRTtJQUFBLDZFQUFxTDtJQUNyTCw2RUFBNkg7SUFDL0gsaUJBQU07OztJQUZFLGVBQXNCO0lBQXRCLDRDQUFzQjtJQUN0QixlQUFxQjtJQUFyQiwyQ0FBcUI7O0FBTW5DLE1BQU0sT0FBTyxvQkFBb0I7SUFiakM7UUFnQlcsYUFBUSxHQUFHLEtBQUssQ0FBQztRQUNqQixtQkFBYyxHQUFHLEtBQUssQ0FBQztR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zLmRpYWxvZ1JlZj8ucmVtb3ZlUGFuZWxDbGFzcygnbW9kLWV4cGFuZGVkJyk7XG4gICAgfVxuICB9XG5cbn1cbiJdfQ==
|
package/esm2015/modals.module.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
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';
|
|
5
|
+
import { ModalHeaderComponent } from './lib/modal-header/modal-header.component';
|
|
4
6
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
5
7
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
8
|
import { FormsModule } from '@angular/forms';
|
|
@@ -20,16 +22,20 @@ ModalsModule.ɵinj = i0.ɵɵdefineInjector({ factory: function ModalsModule_Fact
|
|
|
20
22
|
MatInputModule,
|
|
21
23
|
InputsModule,
|
|
22
24
|
ButtonsModule,
|
|
23
|
-
IconsModule
|
|
25
|
+
IconsModule
|
|
24
26
|
]] });
|
|
25
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent
|
|
27
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent,
|
|
28
|
+
ConfirmModalDataComponent,
|
|
29
|
+
ModalHeaderComponent], imports: [CommonModule,
|
|
26
30
|
MatDialogModule,
|
|
27
31
|
MatFormFieldModule,
|
|
28
32
|
FormsModule,
|
|
29
33
|
MatInputModule,
|
|
30
34
|
InputsModule,
|
|
31
35
|
ButtonsModule,
|
|
32
|
-
IconsModule], exports: [ConfirmRemoveModalDataComponent
|
|
36
|
+
IconsModule], exports: [ConfirmRemoveModalDataComponent,
|
|
37
|
+
ConfirmModalDataComponent,
|
|
38
|
+
ModalHeaderComponent] }); })();
|
|
33
39
|
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ModalsModule, [{
|
|
34
40
|
type: NgModule,
|
|
35
41
|
args: [{
|
|
@@ -41,15 +47,19 @@ ModalsModule.ɵinj = i0.ɵɵdefineInjector({ factory: function ModalsModule_Fact
|
|
|
41
47
|
MatInputModule,
|
|
42
48
|
InputsModule,
|
|
43
49
|
ButtonsModule,
|
|
44
|
-
IconsModule
|
|
50
|
+
IconsModule
|
|
45
51
|
],
|
|
46
52
|
declarations: [
|
|
47
|
-
ConfirmRemoveModalDataComponent
|
|
53
|
+
ConfirmRemoveModalDataComponent,
|
|
54
|
+
ConfirmModalDataComponent,
|
|
55
|
+
ModalHeaderComponent
|
|
48
56
|
],
|
|
49
57
|
exports: [
|
|
50
|
-
ConfirmRemoveModalDataComponent
|
|
58
|
+
ConfirmRemoveModalDataComponent,
|
|
59
|
+
ConfirmModalDataComponent,
|
|
60
|
+
ModalHeaderComponent
|
|
51
61
|
],
|
|
52
62
|
providers: []
|
|
53
63
|
}]
|
|
54
64
|
}], null, null); })();
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWxzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL21vZGFscy9zcmMvbW9kYWxzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsK0JBQStCLEVBQUMsTU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1wb3J0IHtNYXRJbnB1dE1vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvbWF0ZXJpYWwvaW5wdXQnO1xuaW1wb3J0IHtCdXR0b25zTW9kdWxlfSBmcm9tICdAYXBpcGFzcy9idXR0b25zJztcbmltcG9ydCB7SWNvbnNNb2R1bGV9IGZyb20gJ0BhcGlwYXNzL2ljb25zJztcbmltcG9ydCB7SW5wdXRzTW9kdWxlfSBmcm9tICdAYXBpcGFzcy9pbnB1dHMnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIE1hdERpYWxvZ01vZHVsZSxcbiAgICBNYXRGb3JtRmllbGRNb2R1bGUsXG4gICAgRm9ybXNNb2R1bGUsXG4gICAgTWF0SW5wdXRNb2R1bGUsXG4gICAgSW5wdXRzTW9kdWxlLFxuICAgIEJ1dHRvbnNNb2R1bGUsXG4gICAgSWNvbnNNb2R1bGVcbiAgXSxcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgQ29uZmlybVJlbW92ZU1vZGFsRGF0YUNvbXBvbmVudCxcbiAgICBDb25maXJtTW9kYWxEYXRhQ29tcG9uZW50LFxuICAgIE1vZGFsSGVhZGVyQ29tcG9uZW50XG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBDb25maXJtUmVtb3ZlTW9kYWxEYXRhQ29tcG9uZW50LFxuICAgIENvbmZpcm1Nb2RhbERhdGFDb21wb25lbnQsXG4gICAgTW9kYWxIZWFkZXJDb21wb25lbnRcbiAgXSxcbiAgcHJvdmlkZXJzOiBbXVxufSlcbmV4cG9ydCBjbGFzcyBNb2RhbHNNb2R1bGUgeyB9XG4iXX0=
|
package/esm2015/public-api.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
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
|
+
export * from './lib/modal-header/modal-header.component';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL21vZGFscy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYywyREFBMkQsQ0FBQztBQUMxRSxjQUFjLDZDQUE2QyxDQUFDO0FBQzVELGNBQWMsMkNBQTJDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9kaWFsb2cnO1xuZXhwb3J0ICogZnJvbSAnLi9tb2RhbHMubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbmZpcm0tcmVtb3ZlLW1vZGFsL2NvbmZpcm0tcmVtb3ZlLW1vZGFsLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb25maXJtLW1vZGFsL2NvbmZpcm0tbW9kYWwuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGFsLWhlYWRlci9tb2RhbC1oZWFkZXIuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -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, EventEmitter, Input, Output, ɵɵ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,181 @@ 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
|
+
|
|
181
|
+
function ModalHeaderComponent_div_2_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
182
|
+
const _r4 = ɵɵgetCurrentView();
|
|
183
|
+
ɵɵelementStart(0, "icon", 6);
|
|
184
|
+
ɵɵlistener("onClick", function ModalHeaderComponent_div_2_icon_1_Template_icon_onClick_0_listener() { ɵɵrestoreView(_r4); const ctx_r3 = ɵɵnextContext(2); return ctx_r3.changeExpand(); });
|
|
185
|
+
ɵɵelementEnd();
|
|
186
|
+
} if (rf & 2) {
|
|
187
|
+
const ctx_r1 = ɵɵnextContext(2);
|
|
188
|
+
ɵɵproperty("size", 13)("name", !ctx_r1.expanded ? "fa fa-expand-arrows-alt" : "fa fa-compress")("title", ctx_r1.titleExpand);
|
|
189
|
+
} }
|
|
190
|
+
function ModalHeaderComponent_div_2_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
191
|
+
const _r6 = ɵɵgetCurrentView();
|
|
192
|
+
ɵɵelementStart(0, "icon", 7);
|
|
193
|
+
ɵɵlistener("onClick", function ModalHeaderComponent_div_2_icon_2_Template_icon_onClick_0_listener() { ɵɵrestoreView(_r6); const ctx_r5 = ɵɵnextContext(2); return ctx_r5.closeClick.next(); });
|
|
194
|
+
ɵɵelementEnd();
|
|
195
|
+
} if (rf & 2) {
|
|
196
|
+
const ctx_r2 = ɵɵnextContext(2);
|
|
197
|
+
ɵɵproperty("title", ctx_r2.titleClose);
|
|
198
|
+
} }
|
|
199
|
+
function ModalHeaderComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
200
|
+
ɵɵelementStart(0, "div", 3);
|
|
201
|
+
ɵɵtemplate(1, ModalHeaderComponent_div_2_icon_1_Template, 1, 3, "icon", 4);
|
|
202
|
+
ɵɵtemplate(2, ModalHeaderComponent_div_2_icon_2_Template, 1, 1, "icon", 5);
|
|
203
|
+
ɵɵelementEnd();
|
|
204
|
+
} if (rf & 2) {
|
|
205
|
+
const ctx_r0 = ɵɵnextContext();
|
|
206
|
+
ɵɵadvance(1);
|
|
207
|
+
ɵɵproperty("ngIf", ctx_r0.showExpandIcon);
|
|
208
|
+
ɵɵadvance(1);
|
|
209
|
+
ɵɵproperty("ngIf", ctx_r0.showCloseIcon);
|
|
210
|
+
} }
|
|
211
|
+
class ModalHeaderComponent {
|
|
212
|
+
constructor() {
|
|
213
|
+
this.expanded = false;
|
|
214
|
+
this.showExpandIcon = false;
|
|
215
|
+
this.showCloseIcon = false;
|
|
216
|
+
this.titleClose = 'Close';
|
|
217
|
+
this.titleExpand = 'Expand';
|
|
218
|
+
this.closeClick = new EventEmitter();
|
|
219
|
+
this.expandClick = new EventEmitter();
|
|
220
|
+
}
|
|
221
|
+
changeExpand() {
|
|
222
|
+
var _a, _b;
|
|
223
|
+
this.expanded = !this.expanded;
|
|
224
|
+
this.expandClick.next(this.expanded);
|
|
225
|
+
if (this.expanded) {
|
|
226
|
+
(_a = this.dialogRef) === null || _a === void 0 ? void 0 : _a.addPanelClass('mod-expanded');
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
(_b = this.dialogRef) === null || _b === void 0 ? void 0 : _b.removePanelClass('mod-expanded');
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
ModalHeaderComponent.ɵfac = function ModalHeaderComponent_Factory(t) { return new (t || ModalHeaderComponent)(); };
|
|
234
|
+
ModalHeaderComponent.ɵcmp = ɵɵdefineComponent({ type: ModalHeaderComponent, selectors: [["modal-header-component"]], inputs: { title: "title", expanded: "expanded", showExpandIcon: "showExpandIcon", showCloseIcon: "showCloseIcon", titleClose: "titleClose", titleExpand: "titleExpand", dialogRef: "dialogRef" }, outputs: { closeClick: "closeClick", expandClick: "expandClick" }, decls: 3, vars: 2, consts: [[1, "modal-title"], ["mat-dialog-title", "", 3, "innerHTML"], ["class", "modal-title-actions", 4, "ngIf"], [1, "modal-title-actions"], ["type", "primary clickable", 3, "size", "name", "title", "onClick", 4, "ngIf"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick", 4, "ngIf"], ["type", "primary clickable", 3, "size", "name", "title", "onClick"], ["type", "tertiary clickable", "name", "fas fa-times", 3, "title", "onClick"]], template: function ModalHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
235
|
+
ɵɵelementStart(0, "div", 0);
|
|
236
|
+
ɵɵelement(1, "h3", 1);
|
|
237
|
+
ɵɵtemplate(2, ModalHeaderComponent_div_2_Template, 3, 2, "div", 2);
|
|
238
|
+
ɵɵelementEnd();
|
|
239
|
+
} if (rf & 2) {
|
|
240
|
+
ɵɵadvance(1);
|
|
241
|
+
ɵɵproperty("innerHTML", ctx.title, ɵɵsanitizeHtml);
|
|
242
|
+
ɵɵadvance(1);
|
|
243
|
+
ɵɵproperty("ngIf", ctx.showExpandIcon || ctx.showCloseIcon);
|
|
244
|
+
} }, directives: [MatDialogTitle, NgIf, 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%] > .modal-title-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;position:absolute;right:-5px;top:-5px}.modal-title[_ngcontent-%COMP%] > .modal-title-actions[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:block}.modal-title[_ngcontent-%COMP%] > .modal-title-actions[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}"] });
|
|
245
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(ModalHeaderComponent, [{
|
|
246
|
+
type: Component,
|
|
247
|
+
args: [{
|
|
248
|
+
selector: 'modal-header-component',
|
|
249
|
+
template: `
|
|
250
|
+
<div class="modal-title">
|
|
251
|
+
<h3 [innerHTML]='title' mat-dialog-title></h3>
|
|
252
|
+
<div *ngIf="showExpandIcon || showCloseIcon" class="modal-title-actions">
|
|
253
|
+
<icon *ngIf="showExpandIcon" type="primary clickable" [size]="13" [name]="!expanded ? 'fa fa-expand-arrows-alt' : 'fa fa-compress'" [title]="titleExpand" (onClick)="changeExpand()"></icon>
|
|
254
|
+
<icon *ngIf="showCloseIcon" type="tertiary clickable" name="fas fa-times" [title]="titleClose" (onClick)="closeClick.next()"></icon>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
`,
|
|
258
|
+
styleUrls: ['modal-header.scss']
|
|
259
|
+
}]
|
|
260
|
+
}], null, { title: [{
|
|
261
|
+
type: Input
|
|
262
|
+
}], expanded: [{
|
|
263
|
+
type: Input
|
|
264
|
+
}], showExpandIcon: [{
|
|
265
|
+
type: Input
|
|
266
|
+
}], showCloseIcon: [{
|
|
267
|
+
type: Input
|
|
268
|
+
}], titleClose: [{
|
|
269
|
+
type: Input
|
|
270
|
+
}], titleExpand: [{
|
|
271
|
+
type: Input
|
|
272
|
+
}], dialogRef: [{
|
|
273
|
+
type: Input
|
|
274
|
+
}], closeClick: [{
|
|
275
|
+
type: Output
|
|
276
|
+
}], expandClick: [{
|
|
277
|
+
type: Output
|
|
278
|
+
}] }); })();
|
|
279
|
+
|
|
108
280
|
class ModalsModule {
|
|
109
281
|
}
|
|
110
282
|
ModalsModule.ɵmod = ɵɵdefineNgModule({ type: ModalsModule });
|
|
@@ -116,16 +288,20 @@ ModalsModule.ɵinj = ɵɵdefineInjector({ factory: function ModalsModule_Factory
|
|
|
116
288
|
MatInputModule,
|
|
117
289
|
InputsModule,
|
|
118
290
|
ButtonsModule,
|
|
119
|
-
IconsModule
|
|
291
|
+
IconsModule
|
|
120
292
|
]] });
|
|
121
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent
|
|
293
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent,
|
|
294
|
+
ConfirmModalDataComponent,
|
|
295
|
+
ModalHeaderComponent], imports: [CommonModule,
|
|
122
296
|
MatDialogModule,
|
|
123
297
|
MatFormFieldModule,
|
|
124
298
|
FormsModule,
|
|
125
299
|
MatInputModule,
|
|
126
300
|
InputsModule,
|
|
127
301
|
ButtonsModule,
|
|
128
|
-
IconsModule], exports: [ConfirmRemoveModalDataComponent
|
|
302
|
+
IconsModule], exports: [ConfirmRemoveModalDataComponent,
|
|
303
|
+
ConfirmModalDataComponent,
|
|
304
|
+
ModalHeaderComponent] }); })();
|
|
129
305
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ModalsModule, [{
|
|
130
306
|
type: NgModule,
|
|
131
307
|
args: [{
|
|
@@ -137,13 +313,17 @@ ModalsModule.ɵinj = ɵɵdefineInjector({ factory: function ModalsModule_Factory
|
|
|
137
313
|
MatInputModule,
|
|
138
314
|
InputsModule,
|
|
139
315
|
ButtonsModule,
|
|
140
|
-
IconsModule
|
|
316
|
+
IconsModule
|
|
141
317
|
],
|
|
142
318
|
declarations: [
|
|
143
|
-
ConfirmRemoveModalDataComponent
|
|
319
|
+
ConfirmRemoveModalDataComponent,
|
|
320
|
+
ConfirmModalDataComponent,
|
|
321
|
+
ModalHeaderComponent
|
|
144
322
|
],
|
|
145
323
|
exports: [
|
|
146
|
-
ConfirmRemoveModalDataComponent
|
|
324
|
+
ConfirmRemoveModalDataComponent,
|
|
325
|
+
ConfirmModalDataComponent,
|
|
326
|
+
ModalHeaderComponent
|
|
147
327
|
],
|
|
148
328
|
providers: []
|
|
149
329
|
}]
|
|
@@ -153,5 +333,5 @@ ModalsModule.ɵinj = ɵɵdefineInjector({ factory: function ModalsModule_Factory
|
|
|
153
333
|
* Generated bundle index. Do not edit.
|
|
154
334
|
*/
|
|
155
335
|
|
|
156
|
-
export { ConfirmRemoveDialogData, ConfirmRemoveModalDataComponent, ModalsModule };
|
|
336
|
+
export { ConfirmDialogData, ConfirmModalDataComponent, ConfirmRemoveDialogData, ConfirmRemoveModalDataComponent, ModalHeaderComponent, ModalsModule };
|
|
157
337
|
//# 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>\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.ɵ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AkB;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
|
+
{"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/lib/modal-header/modal-header.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 {Component, EventEmitter, Input, Output} from '@angular/core';\nimport {MatDialogRef} from '@angular/material/dialog';\n\n@Component({\n selector: 'modal-header-component',\n template: `\n <div class=\"modal-title\">\n <h3 [innerHTML]='title' mat-dialog-title></h3>\n <div *ngIf=\"showExpandIcon || showCloseIcon\" class=\"modal-title-actions\">\n <icon *ngIf=\"showExpandIcon\" type=\"primary clickable\" [size]=\"13\" [name]=\"!expanded ? 'fa fa-expand-arrows-alt' : 'fa fa-compress'\" [title]=\"titleExpand\" (onClick)=\"changeExpand()\"></icon>\n <icon *ngIf=\"showCloseIcon\" type=\"tertiary clickable\" name=\"fas fa-times\" [title]=\"titleClose\" (onClick)=\"closeClick.next()\"></icon>\n </div>\n </div>\n ` ,\n styleUrls: ['modal-header.scss']\n})\nexport class ModalHeaderComponent {\n\n @Input() title: string | undefined;\n @Input() expanded = false;\n @Input() showExpandIcon = false;\n @Input() showCloseIcon = false;\n\n @Input() titleClose = 'Close';\n @Input() titleExpand = 'Expand';\n @Input() dialogRef: MatDialogRef<ModalHeaderComponent> | undefined;\n\n @Output() closeClick: EventEmitter<any> = new EventEmitter();\n @Output() expandClick: EventEmitter<boolean> = new EventEmitter();\n\n public changeExpand(): void {\n this.expanded = !this.expanded;\n this.expandClick.next(this.expanded);\n if (this.expanded) {\n this.dialogRef?.addPanelClass('mod-expanded');\n } else {\n this.dialogRef?.removePanelClass('mod-expanded');\n }\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 {ModalHeaderComponent} from './lib/modal-header/modal-header.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 ModalHeaderComponent\n ],\n exports: [\n ConfirmRemoveModalDataComponent,\n ConfirmModalDataComponent,\n ModalHeaderComponent\n ],\n providers: []\n})\nexport class ModalsModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0.ɵ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
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
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ModalHeaderComponent {
|
|
5
|
+
title: string | undefined;
|
|
6
|
+
expanded: boolean;
|
|
7
|
+
showExpandIcon: boolean;
|
|
8
|
+
showCloseIcon: boolean;
|
|
9
|
+
titleClose: string;
|
|
10
|
+
titleExpand: string;
|
|
11
|
+
dialogRef: MatDialogRef<ModalHeaderComponent> | undefined;
|
|
12
|
+
closeClick: EventEmitter<any>;
|
|
13
|
+
expandClick: EventEmitter<boolean>;
|
|
14
|
+
changeExpand(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDef<ModalHeaderComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<ModalHeaderComponent, "modal-header-component", never, { "title": "title"; "expanded": "expanded"; "showExpandIcon": "showExpandIcon"; "showCloseIcon": "showCloseIcon"; "titleClose": "titleClose"; "titleExpand": "titleExpand"; "dialogRef": "dialogRef"; }, { "closeClick": "closeClick"; "expandClick": "expandClick"; }, never, never>;
|
|
17
|
+
}
|
package/modals.module.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
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 "
|
|
5
|
-
import * as i4 from "@angular/
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "@angular/material/
|
|
8
|
-
import * as i7 from "@
|
|
9
|
-
import * as i8 from "@
|
|
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 "./lib/modal-header/modal-header.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/material/dialog";
|
|
7
|
+
import * as i6 from "@angular/material/form-field";
|
|
8
|
+
import * as i7 from "@angular/forms";
|
|
9
|
+
import * as i8 from "@angular/material/input";
|
|
10
|
+
import * as i9 from "@apipass/inputs";
|
|
11
|
+
import * as i10 from "@apipass/buttons";
|
|
12
|
+
import * as i11 from "@apipass/icons";
|
|
11
13
|
export declare class ModalsModule {
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<ModalsModule, [typeof i1.ConfirmRemoveModalDataComponent], [typeof
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<ModalsModule, [typeof i1.ConfirmRemoveModalDataComponent, typeof i2.ConfirmModalDataComponent, typeof i3.ModalHeaderComponent], [typeof i4.CommonModule, typeof i5.MatDialogModule, typeof i6.MatFormFieldModule, typeof i7.FormsModule, typeof i8.MatInputModule, typeof i9.InputsModule, typeof i10.ButtonsModule, typeof i11.IconsModule], [typeof i1.ConfirmRemoveModalDataComponent, typeof i2.ConfirmModalDataComponent, typeof i3.ModalHeaderComponent]>;
|
|
13
15
|
static ɵinj: i0.ɵɵInjectorDef<ModalsModule>;
|
|
14
16
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
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';
|
|
5
|
+
export * from './lib/modal-header/modal-header.component';
|