@apipass/modals 0.2.16 → 1.0.7

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.
Files changed (28) hide show
  1. package/{esm2015/apipass-modals.js → esm2020/apipass-modals.mjs} +4 -4
  2. package/esm2020/lib/confirm-modal/confirm-modal.component.mjs +31 -0
  3. package/esm2020/lib/confirm-remove-modal/confirm-remove-modal.component.mjs +41 -0
  4. package/esm2020/lib/modal-header/modal-header.component.mjs +67 -0
  5. package/esm2020/modals.module.mjs +63 -0
  6. package/esm2020/public-api.mjs +6 -0
  7. package/fesm2015/apipass-modals.mjs +199 -0
  8. package/fesm2015/apipass-modals.mjs.map +1 -0
  9. package/fesm2020/apipass-modals.mjs +192 -0
  10. package/fesm2020/apipass-modals.mjs.map +1 -0
  11. package/{apipass-modals.d.ts → index.d.ts} +5 -5
  12. package/lib/confirm-modal/confirm-modal.component.d.ts +22 -22
  13. package/lib/confirm-remove-modal/confirm-remove-modal.component.d.ts +24 -24
  14. package/lib/modal-header/modal-header.component.d.ts +17 -17
  15. package/modals.module.d.ts +17 -16
  16. package/package.json +32 -22
  17. package/public-api.d.ts +5 -5
  18. package/bundles/apipass-modals.umd.js +0 -406
  19. package/bundles/apipass-modals.umd.js.map +0 -1
  20. package/bundles/apipass-modals.umd.min.js +0 -2
  21. package/bundles/apipass-modals.umd.min.js.map +0 -1
  22. package/esm2015/lib/confirm-modal/confirm-modal.component.js +0 -83
  23. package/esm2015/lib/confirm-remove-modal/confirm-remove-modal.component.js +0 -102
  24. package/esm2015/lib/modal-header/modal-header.component.js +0 -104
  25. package/esm2015/modals.module.js +0 -65
  26. package/esm2015/public-api.js +0 -6
  27. package/fesm2015/apipass-modals.js +0 -337
  28. package/fesm2015/apipass-modals.js.map +0 -1
@@ -1,406 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(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')) :
3
- typeof define === 'function' && 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'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.apipass = global.apipass || {}, global.apipass.modals = {}), global.ng.material.dialog, global.ng.core, global.ng.common, global.i3, global.i4, global.i5, global.ng.forms, global.ng.material.formField, global.ng.material.input));
5
- }(this, (function (exports, i1, i0, i2, i3, i4, i5, i6, formField, input) { 'use strict';
6
-
7
- function ConfirmRemoveModalDataComponent_h3_1_Template(rf, ctx) {
8
- if (rf & 1) {
9
- i0.ɵɵelement(0, "h3", 8);
10
- }
11
- if (rf & 2) {
12
- var ctx_r0 = i0.ɵɵnextContext();
13
- i0.ɵɵproperty("innerHTML", ctx_r0.data.title, i0.ɵɵsanitizeHtml);
14
- }
15
- }
16
- function ConfirmRemoveModalDataComponent_icon_2_Template(rf, ctx) {
17
- if (rf & 1) {
18
- var _r5_1 = i0.ɵɵgetCurrentView();
19
- i0.ɵɵelementStart(0, "icon", 9);
20
- i0.ɵɵlistener("onClick", function ConfirmRemoveModalDataComponent_icon_2_Template_icon_onClick_0_listener() { i0.ɵɵrestoreView(_r5_1); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.closeClick(); });
21
- i0.ɵɵelementEnd();
22
- }
23
- if (rf & 2) {
24
- var ctx_r1 = i0.ɵɵnextContext();
25
- i0.ɵɵproperty("title", ctx_r1.data.closeLabel);
26
- }
27
- }
28
- function ConfirmRemoveModalDataComponent_p_4_Template(rf, ctx) {
29
- if (rf & 1) {
30
- i0.ɵɵelement(0, "p", 10);
31
- }
32
- if (rf & 2) {
33
- var ctx_r2 = i0.ɵɵnextContext();
34
- i0.ɵɵproperty("innerHTML", ctx_r2.data.content, i0.ɵɵsanitizeHtml);
35
- }
36
- }
37
- function ConfirmRemoveModalDataComponent_input_text_5_Template(rf, ctx) {
38
- if (rf & 1) {
39
- var _r7_1 = i0.ɵɵgetCurrentView();
40
- i0.ɵɵelementStart(0, "input-text", 11);
41
- i0.ɵɵlistener("ngModelChange", function ConfirmRemoveModalDataComponent_input_text_5_Template_input_text_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r7_1); var ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.data.removeText = $event; });
42
- i0.ɵɵelementEnd();
43
- }
44
- if (rf & 2) {
45
- var ctx_r3 = i0.ɵɵnextContext();
46
- i0.ɵɵproperty("label", ctx_r3.data.removeTextLabel)("ngModel", ctx_r3.data.removeText);
47
- }
48
- }
49
- var ConfirmRemoveDialogData = /** @class */ (function () {
50
- function ConfirmRemoveDialogData() {
51
- }
52
- return ConfirmRemoveDialogData;
53
- }());
54
- var ConfirmRemoveModalDataComponent = /** @class */ (function () {
55
- function ConfirmRemoveModalDataComponent(dialogRef, data) {
56
- this.dialogRef = dialogRef;
57
- this.data = data;
58
- }
59
- ConfirmRemoveModalDataComponent.prototype.closeClick = function () {
60
- this.dialogRef.close();
61
- };
62
- ConfirmRemoveModalDataComponent.prototype.confirmClick = function () {
63
- var _a, _b, _c;
64
- if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.removeTextConfirm) || ((_b = this.data) === null || _b === void 0 ? void 0 : _b.removeText) === ((_c = this.data) === null || _c === void 0 ? void 0 : _c.removeTextConfirm)) {
65
- this.dialogRef.close(this.data);
66
- }
67
- };
68
- ConfirmRemoveModalDataComponent.prototype.isConfirmDisabled = function () {
69
- var _a, _b, _c;
70
- if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.removeTextConfirm)) {
71
- return false;
72
- }
73
- return ((_b = this.data) === null || _b === void 0 ? void 0 : _b.removeText) !== ((_c = this.data) === null || _c === void 0 ? void 0 : _c.removeTextConfirm);
74
- };
75
- return ConfirmRemoveModalDataComponent;
76
- }());
77
- ConfirmRemoveModalDataComponent.ɵfac = function ConfirmRemoveModalDataComponent_Factory(t) { return new (t || ConfirmRemoveModalDataComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(i1.MAT_DIALOG_DATA)); };
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) {
79
- if (rf & 1) {
80
- i0.ɵɵelementStart(0, "div", 0);
81
- i0.ɵɵtemplate(1, ConfirmRemoveModalDataComponent_h3_1_Template, 1, 1, "h3", 1);
82
- i0.ɵɵtemplate(2, ConfirmRemoveModalDataComponent_icon_2_Template, 1, 1, "icon", 2);
83
- i0.ɵɵelementEnd();
84
- i0.ɵɵelementStart(3, "div", 3);
85
- i0.ɵɵtemplate(4, ConfirmRemoveModalDataComponent_p_4_Template, 1, 1, "p", 4);
86
- i0.ɵɵtemplate(5, ConfirmRemoveModalDataComponent_input_text_5_Template, 1, 2, "input-text", 5);
87
- i0.ɵɵelementEnd();
88
- i0.ɵɵelementStart(6, "div", 6);
89
- i0.ɵɵelementStart(7, "secondary-button", 7);
90
- i0.ɵɵlistener("onClick", function ConfirmRemoveModalDataComponent_Template_secondary_button_onClick_7_listener() { return ctx.confirmClick(); });
91
- i0.ɵɵelementEnd();
92
- i0.ɵɵelementEnd();
93
- }
94
- if (rf & 2) {
95
- i0.ɵɵadvance(1);
96
- i0.ɵɵproperty("ngIf", ctx.data.title);
97
- i0.ɵɵadvance(1);
98
- i0.ɵɵproperty("ngIf", ctx.data.showCloseIcon);
99
- i0.ɵɵadvance(2);
100
- i0.ɵɵproperty("ngIf", ctx.data.content);
101
- i0.ɵɵadvance(1);
102
- i0.ɵɵproperty("ngIf", ctx.data.removeTextConfirm);
103
- i0.ɵɵadvance(2);
104
- i0.ɵɵproperty("btnDisabled", ctx.isConfirmDisabled())("icon", ctx.data.confirmIcon)("label", ctx.data.confirmText);
105
- }
106
- }, directives: [i2.NgIf, i1.MatDialogContent, i1.MatDialogActions, i3.SecondaryButtonComponent, i1.MatDialogTitle, i4.IconComponent, i5.InputTextComponent, i6.NgControlStatus, i6.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%}"] });
107
- /*@__PURE__*/ (function () {
108
- i0.ɵsetClassMetadata(ConfirmRemoveModalDataComponent, [{
109
- type: i0.Component,
110
- args: [{
111
- selector: 'confirm-remove-modal-data',
112
- templateUrl: 'confirm-remove-modal.component.html',
113
- styleUrls: ['confirm-remove-modal.component.scss']
114
- }]
115
- }], function () {
116
- return [{ type: i1.MatDialogRef }, { type: ConfirmRemoveDialogData, decorators: [{
117
- type: i0.Inject,
118
- args: [i1.MAT_DIALOG_DATA]
119
- }] }];
120
- }, null);
121
- })();
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
-
325
- var ModalsModule = /** @class */ (function () {
326
- function ModalsModule() {
327
- }
328
- return ModalsModule;
329
- }());
330
- ModalsModule.ɵmod = i0.ɵɵdefineNgModule({ type: ModalsModule });
331
- ModalsModule.ɵinj = i0.ɵɵdefineInjector({ factory: function ModalsModule_Factory(t) { return new (t || ModalsModule)(); }, providers: [], imports: [[
332
- i2.CommonModule,
333
- i1.MatDialogModule,
334
- formField.MatFormFieldModule,
335
- i6.FormsModule,
336
- input.MatInputModule,
337
- i5.InputsModule,
338
- i3.ButtonsModule,
339
- i4.IconsModule
340
- ]] });
341
- (function () {
342
- (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ModalsModule, { declarations: [ConfirmRemoveModalDataComponent,
343
- ConfirmModalDataComponent,
344
- ModalHeaderComponent], imports: [i2.CommonModule,
345
- i1.MatDialogModule,
346
- formField.MatFormFieldModule,
347
- i6.FormsModule,
348
- input.MatInputModule,
349
- i5.InputsModule,
350
- i3.ButtonsModule,
351
- i4.IconsModule], exports: [ConfirmRemoveModalDataComponent,
352
- ConfirmModalDataComponent,
353
- ModalHeaderComponent] });
354
- })();
355
- /*@__PURE__*/ (function () {
356
- i0.ɵsetClassMetadata(ModalsModule, [{
357
- type: i0.NgModule,
358
- args: [{
359
- imports: [
360
- i2.CommonModule,
361
- i1.MatDialogModule,
362
- formField.MatFormFieldModule,
363
- i6.FormsModule,
364
- input.MatInputModule,
365
- i5.InputsModule,
366
- i3.ButtonsModule,
367
- i4.IconsModule
368
- ],
369
- declarations: [
370
- ConfirmRemoveModalDataComponent,
371
- ConfirmModalDataComponent,
372
- ModalHeaderComponent
373
- ],
374
- exports: [
375
- ConfirmRemoveModalDataComponent,
376
- ConfirmModalDataComponent,
377
- ModalHeaderComponent
378
- ],
379
- providers: []
380
- }]
381
- }], null, null);
382
- })();
383
-
384
- /**
385
- * Generated bundle index. Do not edit.
386
- */
387
-
388
- Object.keys(i1).forEach(function (k) {
389
- if (k !== 'default') Object.defineProperty(exports, k, {
390
- enumerable: true,
391
- get: function () {
392
- return i1[k];
393
- }
394
- });
395
- });
396
- exports.ConfirmDialogData = ConfirmDialogData;
397
- exports.ConfirmModalDataComponent = ConfirmModalDataComponent;
398
- exports.ConfirmRemoveDialogData = ConfirmRemoveDialogData;
399
- exports.ConfirmRemoveModalDataComponent = ConfirmRemoveModalDataComponent;
400
- exports.ModalHeaderComponent = ModalHeaderComponent;
401
- exports.ModalsModule = ModalsModule;
402
-
403
- Object.defineProperty(exports, '__esModule', { value: true });
404
-
405
- })));
406
- //# sourceMappingURL=apipass-modals.umd.js.map
@@ -1 +0,0 @@
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;;;;Y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AAwB;wBAClC,QAAQ,EAAE,sjBAQT;wBACD,SAAS,EAAE,CAAC,mBAAmB,CAAC;qBACjC;wBAGU,KAAK;0BAAbG,QAAK;oBACG,QAAQ;0BAAhBA,QAAK;oBACG,cAAc;0BAAtBA,QAAK;oBACG,aAAa;0BAArBA,QAAK;oBAEG,UAAU;0BAAlBA,QAAK;oBACG,WAAW;0BAAnBA,QAAK;oBACG,SAAS;0BAAjBA,QAAK;oBAEI,UAAU;0BAAnBC,SAAM;oBACG,WAAW;0BAApBA,SAAM;;;;;QCQT;;;;oDAAa,YAAY;2GAAZ,YAAY,mBAFZ,EAAE,YApBJ;gBACPC,eAAY;gBACZC,kBAAe;gBACfC,4BAAkB;gBAClBC,cAAW;gBACXC,oBAAc;gBACdC,eAAY;gBACZC,gBAAa;gBACbC,cAAW;aACZ;;iFAaU,YAAY,mBAXrB,+BAA+B;gBAC/B,yBAAyB;gBACzB,oBAAoB,aAZpBP,eAAY;gBACZC,kBAAe;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 +0,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
- //# sourceMappingURL=apipass-modals.umd.min.js.map
@@ -1 +0,0 @@
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","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3>\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"]}
@@ -1,83 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb2RhbHMvc3JjL2xpYi9jb25maXJtLW1vZGFsL2NvbmZpcm0tbW9kYWwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9k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