ngx-print 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/esm2020/lib/ngx-print.directive.mjs +187 -0
- package/esm2020/lib/ngx-print.module.mjs +17 -0
- package/esm2020/ngx-print.mjs +5 -0
- package/esm2020/public_api.mjs +6 -0
- package/fesm2015/{ngx-print.js → ngx-print.mjs} +66 -87
- package/fesm2015/ngx-print.mjs.map +1 -0
- package/fesm2020/ngx-print.mjs +212 -0
- package/fesm2020/ngx-print.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/lib/ngx-print.directive.d.ts +13 -3
- package/lib/ngx-print.directive.d.ts.map +1 -0
- package/lib/ngx-print.module.d.ts +6 -0
- package/lib/ngx-print.module.d.ts.map +1 -0
- package/ngx-print.d.ts.map +1 -0
- package/package.json +21 -44
- package/public_api.d.ts +1 -0
- package/public_api.d.ts.map +1 -0
- package/bundles/ngx-print.umd.js +0 -349
- package/bundles/ngx-print.umd.js.map +0 -1
- package/bundles/ngx-print.umd.min.js +0 -2
- package/bundles/ngx-print.umd.min.js.map +0 -1
- package/esm2015/lib/ngx-print.directive.js +0 -247
- package/esm2015/lib/ngx-print.module.js +0 -16
- package/esm2015/ngx-print.js +0 -9
- package/esm2015/public_api.js +0 -10
- package/esm5/lib/ngx-print.directive.js +0 -321
- package/esm5/lib/ngx-print.module.js +0 -20
- package/esm5/ngx-print.js +0 -9
- package/esm5/public_api.js +0 -10
- package/fesm2015/ngx-print.js.map +0 -1
- package/fesm5/ngx-print.js +0 -309
- package/fesm5/ngx-print.js.map +0 -1
- package/ngx-print.d.ts +0 -4
- package/ngx-print.metadata.json +0 -1
package/bundles/ngx-print.umd.js
DELETED
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('ngx-print', ['exports', '@angular/core'], factory) :
|
|
4
|
-
(factory((global['ngx-print'] = {}),global.ng.core));
|
|
5
|
-
}(this, (function (exports,core) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
function __values(o) {
|
|
22
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
23
|
-
if (m)
|
|
24
|
-
return m.call(o);
|
|
25
|
-
if (o && typeof o.length === "number")
|
|
26
|
-
return {
|
|
27
|
-
next: function () {
|
|
28
|
-
if (o && i >= o.length)
|
|
29
|
-
o = void 0;
|
|
30
|
-
return { value: o && o[i++], done: !o };
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @fileoverview added by tsickle
|
|
38
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
39
|
-
*/
|
|
40
|
-
var NgxPrintDirective = /** @class */ (function () {
|
|
41
|
-
function NgxPrintDirective() {
|
|
42
|
-
this._printStyle = [];
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* \@memberof NgxPrintDirective
|
|
47
|
-
*/
|
|
48
|
-
this.useExistingCss = false;
|
|
49
|
-
/**
|
|
50
|
-
* A delay in milliseconds to force the print dialog to wait before opened. Default: 0
|
|
51
|
-
*
|
|
52
|
-
* \@memberof NgxPrintDirective
|
|
53
|
-
*/
|
|
54
|
-
this.printDelay = 0;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* @return html for the given tag
|
|
59
|
-
*
|
|
60
|
-
* \@memberof NgxPrintDirective
|
|
61
|
-
*/
|
|
62
|
-
this._styleSheetFile = '';
|
|
63
|
-
}
|
|
64
|
-
Object.defineProperty(NgxPrintDirective.prototype, "printStyle", {
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* @memberof NgxPrintDirective
|
|
69
|
-
*/
|
|
70
|
-
set: /**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* \@memberof NgxPrintDirective
|
|
74
|
-
* @param {?} values
|
|
75
|
-
* @return {?}
|
|
76
|
-
*/ function (values) {
|
|
77
|
-
for (var key in values) {
|
|
78
|
-
if (values.hasOwnProperty(key)) {
|
|
79
|
-
this._printStyle.push((key + JSON.stringify(values[key])).replace(/['"]+/g, ''));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
this.returnStyleValues();
|
|
83
|
-
},
|
|
84
|
-
enumerable: true,
|
|
85
|
-
configurable: true
|
|
86
|
-
});
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* @returns the string that create the stylesheet which will be injected
|
|
91
|
-
* later within <style></style> tag.
|
|
92
|
-
*
|
|
93
|
-
* -join/replace to transform an array objects to css-styled string
|
|
94
|
-
*
|
|
95
|
-
* @memberof NgxPrintDirective
|
|
96
|
-
*/
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* \@memberof NgxPrintDirective
|
|
101
|
-
* @return {?} the string that create the stylesheet which will be injected
|
|
102
|
-
* later within <style></style> tag.
|
|
103
|
-
*
|
|
104
|
-
* -join/replace to transform an array objects to css-styled string
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
NgxPrintDirective.prototype.returnStyleValues = /**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* \@memberof NgxPrintDirective
|
|
111
|
-
* @return {?} the string that create the stylesheet which will be injected
|
|
112
|
-
* later within <style></style> tag.
|
|
113
|
-
*
|
|
114
|
-
* -join/replace to transform an array objects to css-styled string
|
|
115
|
-
*
|
|
116
|
-
*/
|
|
117
|
-
function () {
|
|
118
|
-
return "<style> " + this._printStyle.join(' ').replace(/,/g, ';') + " </style>";
|
|
119
|
-
};
|
|
120
|
-
Object.defineProperty(NgxPrintDirective.prototype, "styleSheetFile", {
|
|
121
|
-
/**
|
|
122
|
-
* @memberof NgxPrintDirective
|
|
123
|
-
* @param cssList
|
|
124
|
-
*/
|
|
125
|
-
set: /**
|
|
126
|
-
* \@memberof NgxPrintDirective
|
|
127
|
-
* @param {?} cssList
|
|
128
|
-
* @return {?}
|
|
129
|
-
*/ function (cssList) {
|
|
130
|
-
var e_1, _a;
|
|
131
|
-
/** @type {?} */
|
|
132
|
-
var linkTagFn = ( /**
|
|
133
|
-
* @param {?} cssFileName
|
|
134
|
-
* @return {?}
|
|
135
|
-
*/function (cssFileName) {
|
|
136
|
-
return "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + cssFileName + "\">";
|
|
137
|
-
});
|
|
138
|
-
if (cssList.indexOf(',') !== -1) {
|
|
139
|
-
/** @type {?} */
|
|
140
|
-
var valueArr = cssList.split(',');
|
|
141
|
-
try {
|
|
142
|
-
for (var valueArr_1 = __values(valueArr), valueArr_1_1 = valueArr_1.next(); !valueArr_1_1.done; valueArr_1_1 = valueArr_1.next()) {
|
|
143
|
-
var val = valueArr_1_1.value;
|
|
144
|
-
this._styleSheetFile = this._styleSheetFile + linkTagFn(val);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
catch (e_1_1) {
|
|
148
|
-
e_1 = { error: e_1_1 };
|
|
149
|
-
}
|
|
150
|
-
finally {
|
|
151
|
-
try {
|
|
152
|
-
if (valueArr_1_1 && !valueArr_1_1.done && (_a = valueArr_1.return))
|
|
153
|
-
_a.call(valueArr_1);
|
|
154
|
-
}
|
|
155
|
-
finally {
|
|
156
|
-
if (e_1)
|
|
157
|
-
throw e_1.error;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
this._styleSheetFile = linkTagFn(cssList);
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
enumerable: true,
|
|
166
|
-
configurable: true
|
|
167
|
-
});
|
|
168
|
-
/**
|
|
169
|
-
* @returns string which contains the link tags containing the css which will
|
|
170
|
-
* be injected later within <head></head> tag.
|
|
171
|
-
*
|
|
172
|
-
*/
|
|
173
|
-
/**
|
|
174
|
-
* @private
|
|
175
|
-
* @return {?} string which contains the link tags containing the css which will
|
|
176
|
-
* be injected later within <head></head> tag.
|
|
177
|
-
*
|
|
178
|
-
*/
|
|
179
|
-
NgxPrintDirective.prototype.returnStyleSheetLinkTags = /**
|
|
180
|
-
* @private
|
|
181
|
-
* @return {?} string which contains the link tags containing the css which will
|
|
182
|
-
* be injected later within <head></head> tag.
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
185
|
-
function () {
|
|
186
|
-
return this._styleSheetFile;
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* @private
|
|
190
|
-
* @param {?} tag
|
|
191
|
-
* @return {?}
|
|
192
|
-
*/
|
|
193
|
-
NgxPrintDirective.prototype.getElementTag = /**
|
|
194
|
-
* @private
|
|
195
|
-
* @param {?} tag
|
|
196
|
-
* @return {?}
|
|
197
|
-
*/
|
|
198
|
-
function (tag) {
|
|
199
|
-
/** @type {?} */
|
|
200
|
-
var html = [];
|
|
201
|
-
/** @type {?} */
|
|
202
|
-
var elements = document.getElementsByTagName(tag);
|
|
203
|
-
for (var index = 0; index < elements.length; index++) {
|
|
204
|
-
html.push(elements[index].outerHTML);
|
|
205
|
-
}
|
|
206
|
-
return html.join('\r\n');
|
|
207
|
-
};
|
|
208
|
-
/**
|
|
209
|
-
*
|
|
210
|
-
* @param data the html element collection to save defaults to
|
|
211
|
-
*
|
|
212
|
-
*/
|
|
213
|
-
/**
|
|
214
|
-
*
|
|
215
|
-
* @private
|
|
216
|
-
* @param {?} data the html element collection to save defaults to
|
|
217
|
-
*
|
|
218
|
-
* @return {?}
|
|
219
|
-
*/
|
|
220
|
-
NgxPrintDirective.prototype.getFormData = /**
|
|
221
|
-
*
|
|
222
|
-
* @private
|
|
223
|
-
* @param {?} data the html element collection to save defaults to
|
|
224
|
-
*
|
|
225
|
-
* @return {?}
|
|
226
|
-
*/
|
|
227
|
-
function (data) {
|
|
228
|
-
for (var i = 0; i < data.length; i++) {
|
|
229
|
-
data[i].defaultValue = data[i].value;
|
|
230
|
-
if (data[i].checked) {
|
|
231
|
-
data[i].defaultChecked = true;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
/**
|
|
236
|
-
* @returns html section to be printed along with some associated inputs
|
|
237
|
-
*
|
|
238
|
-
*/
|
|
239
|
-
/**
|
|
240
|
-
* @private
|
|
241
|
-
* @return {?} html section to be printed along with some associated inputs
|
|
242
|
-
*
|
|
243
|
-
*/
|
|
244
|
-
NgxPrintDirective.prototype.getHtmlContents = /**
|
|
245
|
-
* @private
|
|
246
|
-
* @return {?} html section to be printed along with some associated inputs
|
|
247
|
-
*
|
|
248
|
-
*/
|
|
249
|
-
function () {
|
|
250
|
-
/** @type {?} */
|
|
251
|
-
var printContents = document.getElementById(this.printSectionId);
|
|
252
|
-
/** @type {?} */
|
|
253
|
-
var innards = printContents.getElementsByTagName('input');
|
|
254
|
-
this.getFormData(innards);
|
|
255
|
-
/** @type {?} */
|
|
256
|
-
var txt = printContents.getElementsByTagName('textarea');
|
|
257
|
-
this.getFormData(txt);
|
|
258
|
-
return printContents.innerHTML;
|
|
259
|
-
};
|
|
260
|
-
/**
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
* @memberof NgxPrintDirective
|
|
264
|
-
*/
|
|
265
|
-
/**
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
* \@memberof NgxPrintDirective
|
|
269
|
-
* @return {?}
|
|
270
|
-
*/
|
|
271
|
-
NgxPrintDirective.prototype.print = /**
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
* \@memberof NgxPrintDirective
|
|
275
|
-
* @return {?}
|
|
276
|
-
*/
|
|
277
|
-
function () {
|
|
278
|
-
/** @type {?} */
|
|
279
|
-
var printContents;
|
|
280
|
-
/** @type {?} */
|
|
281
|
-
var popupWin;
|
|
282
|
-
/** @type {?} */
|
|
283
|
-
var styles = '';
|
|
284
|
-
/** @type {?} */
|
|
285
|
-
var links = '';
|
|
286
|
-
/** @type {?} */
|
|
287
|
-
var baseTag = this.getElementTag('base');
|
|
288
|
-
if (this.useExistingCss) {
|
|
289
|
-
styles = this.getElementTag('style');
|
|
290
|
-
links = this.getElementTag('link');
|
|
291
|
-
}
|
|
292
|
-
printContents = this.getHtmlContents();
|
|
293
|
-
popupWin = window.open("", "_blank", "top=0,left=0,height=auto,width=auto");
|
|
294
|
-
popupWin.document.open();
|
|
295
|
-
popupWin.document.write("\n <html>\n <head>\n <title>" + (this.printTitle ? this.printTitle : "") + "</title>\n " + baseTag + "\n " + this.returnStyleValues() + "\n " + this.returnStyleSheetLinkTags() + "\n " + styles + "\n " + links + "\n </head>\n <body>\n " + printContents + "\n <script defer>\n function triggerPrint(event) {\n window.removeEventListener('load', triggerPrint, false);\n setTimeout(function() {\n closeWindow(window.print());\n }, " + this.printDelay + ");\n }\n function closeWindow(){\n window.close();\n }\n window.addEventListener('load', triggerPrint, false);\n </script>\n </body>\n </html>");
|
|
296
|
-
popupWin.document.close();
|
|
297
|
-
};
|
|
298
|
-
NgxPrintDirective.decorators = [
|
|
299
|
-
{ type: core.Directive, args: [{
|
|
300
|
-
selector: "button[ngxPrint]"
|
|
301
|
-
},] }
|
|
302
|
-
];
|
|
303
|
-
NgxPrintDirective.propDecorators = {
|
|
304
|
-
printSectionId: [{ type: core.Input }],
|
|
305
|
-
printTitle: [{ type: core.Input }],
|
|
306
|
-
useExistingCss: [{ type: core.Input }],
|
|
307
|
-
printDelay: [{ type: core.Input }],
|
|
308
|
-
printStyle: [{ type: core.Input }],
|
|
309
|
-
styleSheetFile: [{ type: core.Input }],
|
|
310
|
-
print: [{ type: core.HostListener, args: ['click',] }]
|
|
311
|
-
};
|
|
312
|
-
return NgxPrintDirective;
|
|
313
|
-
}());
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* @fileoverview added by tsickle
|
|
317
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
318
|
-
*/
|
|
319
|
-
var NgxPrintModule = /** @class */ (function () {
|
|
320
|
-
function NgxPrintModule() {
|
|
321
|
-
}
|
|
322
|
-
NgxPrintModule.decorators = [
|
|
323
|
-
{ type: core.NgModule, args: [{
|
|
324
|
-
declarations: [NgxPrintDirective],
|
|
325
|
-
imports: [],
|
|
326
|
-
exports: [NgxPrintDirective]
|
|
327
|
-
},] }
|
|
328
|
-
];
|
|
329
|
-
return NgxPrintModule;
|
|
330
|
-
}());
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* @fileoverview added by tsickle
|
|
334
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
335
|
-
*/
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* @fileoverview added by tsickle
|
|
339
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
340
|
-
*/
|
|
341
|
-
|
|
342
|
-
exports.NgxPrintDirective = NgxPrintDirective;
|
|
343
|
-
exports.NgxPrintModule = NgxPrintModule;
|
|
344
|
-
|
|
345
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
346
|
-
|
|
347
|
-
})));
|
|
348
|
-
|
|
349
|
-
//# sourceMappingURL=ngx-print.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-print.umd.js.map","sources":["node_modules/tslib/tslib.es6.js","ng://ngx-print/lib/ngx-print.directive.ts","ng://ngx-print/lib/ngx-print.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Directive, HostListener, Input } from '@angular/core';\r\n@Directive({\r\n selector: \"button[ngxPrint]\"\r\n})\r\nexport class NgxPrintDirective {\r\n\r\n public _printStyle = [];\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input() printSectionId: string;\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input() printTitle: string;\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input() useExistingCss = false;\r\n\r\n /**\r\n * A delay in milliseconds to force the print dialog to wait before opened. Default: 0\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input() printDelay: number = 0;\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input()\r\n set printStyle(values: { [key: string]: { [key: string]: string } }) {\r\n for (let key in values) {\r\n if (values.hasOwnProperty(key)) {\r\n this._printStyle.push((key + JSON.stringify(values[key])).replace(/['\"]+/g, ''));\r\n }\r\n }\r\n this.returnStyleValues();\r\n }\r\n\r\n/**\r\n *\r\n *\r\n * @returns the string that create the stylesheet which will be injected\r\n * later within <style></style> tag.\r\n *\r\n * -join/replace to transform an array objects to css-styled string\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\npublic returnStyleValues() {\r\n return `<style> ${this._printStyle.join(' ').replace(/,/g,';')} </style>`;\r\n }\r\n\r\n /**\r\n *\r\n *\r\n * @returns html for the given tag\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n private _styleSheetFile = '';\r\n\r\n /**\r\n * @memberof NgxPrintDirective\r\n * @param cssList\r\n */\r\n @Input()\r\n set styleSheetFile(cssList: string) {\r\n let linkTagFn = function(cssFileName) {\r\n return `<link rel=\"stylesheet\" type=\"text/css\" href=\"${cssFileName}\">`;\r\n }\r\n if (cssList.indexOf(',') !== -1) {\r\n const valueArr = cssList.split(',');\r\n for (let val of valueArr) {\r\n this._styleSheetFile = this._styleSheetFile + linkTagFn(val);\r\n }\r\n } else {\r\n this._styleSheetFile = linkTagFn(cssList);\r\n }\r\n }\r\n\r\n /**\r\n * @returns string which contains the link tags containing the css which will\r\n * be injected later within <head></head> tag.\r\n *\r\n */\r\n private returnStyleSheetLinkTags() {\r\n return this._styleSheetFile;\r\n }\r\n private getElementTag(tag: keyof HTMLElementTagNameMap): string {\r\n const html: string[] = [];\r\n const elements = document.getElementsByTagName(tag);\r\n for (let index = 0; index < elements.length; index++) {\r\n html.push(elements[index].outerHTML);\r\n }\r\n return html.join('\\r\\n');\r\n }\r\n\r\n /**\r\n * \r\n * @param data the html element collection to save defaults to\r\n * \r\n */\r\n private getFormData(data: any) {\r\n for (var i = 0; i < data.length; i++) {\r\n data[i].defaultValue = data[i].value;\r\n if(data[i].checked) {\r\n data[i].defaultChecked = true;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * @returns html section to be printed along with some associated inputs\r\n * \r\n */\r\n private getHtmlContents() {\r\n let printContents = document.getElementById(this.printSectionId);\r\n let innards = printContents.getElementsByTagName('input');\r\n this.getFormData(innards);\r\n\r\n let txt = printContents.getElementsByTagName('textarea');\r\n this.getFormData(txt);\r\n \r\n return printContents.innerHTML;\r\n }\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @HostListener('click')\r\n public print(): void {\r\n let printContents, popupWin, styles = '', links = '';\r\n const baseTag = this.getElementTag('base');\r\n\r\n if(this.useExistingCss) {\r\n styles = this.getElementTag('style');\r\n links = this.getElementTag('link');\r\n }\r\n\r\n printContents = this.getHtmlContents();\r\n popupWin = window.open(\"\", \"_blank\", \"top=0,left=0,height=auto,width=auto\");\r\n popupWin.document.open();\r\n popupWin.document.write(`\r\n <html>\r\n <head>\r\n <title>${this.printTitle ? this.printTitle : \"\"}</title>\r\n ${baseTag}\r\n ${this.returnStyleValues()}\r\n ${this.returnStyleSheetLinkTags()}\r\n ${styles}\r\n ${links}\r\n </head>\r\n <body>\r\n ${printContents}\r\n <script defer>\r\n function triggerPrint(event) {\r\n window.removeEventListener('load', triggerPrint, false);\r\n setTimeout(function() {\r\n closeWindow(window.print());\r\n }, ${this.printDelay});\r\n }\r\n function closeWindow(){\r\n window.close();\r\n }\r\n window.addEventListener('load', triggerPrint, false);\r\n </script>\r\n </body>\r\n </html>`);\r\n popupWin.document.close();\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { NgxPrintDirective } from './ngx-print.directive';\r\n\r\n@NgModule({\r\n declarations: [NgxPrintDirective],\r\n imports: [\r\n ],\r\n exports: [NgxPrintDirective]\r\n})\r\nexport class NgxPrintModule { }\r\n"],"names":["tslib_1.__values","Directive","Input","HostListener","NgModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;AAcA,aAoGgB,QAAQ,CAAC,CAAC;QACtB,IAAI,CAAC,GAAG,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;QAC9E,IAAI,CAAC;YAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,MAAM,KAAK,QAAQ;YAAE,OAAO;gBAC1C,IAAI,EAAE;oBACF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aAC3B;;oBAvLFC,cAAS,SAAC;wBACT,QAAQ,EAAE,kBAAkB;qBAC7B;;;qCAUEC,UAAK;iCAOLA,UAAK;qCAOLA,UAAK;iCAOLA,UAAK;iCAOLA,UAAK;qCAqCLA,UAAK;4BAkELC,iBAAY,SAAC,OAAO;;QAyCvB,wBAAC;KAxLD;;;;;;ACDA;QAGA;SAM+B;;oBAN9BC,aAAQ,SAAC;wBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;wBACjC,OAAO,EAAE,EACR;wBACD,OAAO,EAAE,CAAC,iBAAiB,CAAC;qBAC7B;;QAC6B,qBAAC;KAN/B;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("ngx-print",["exports","@angular/core"],t):t(e["ngx-print"]={},e.ng.core)}(this,function(e,t){"use strict";var n=(Object.defineProperty(r.prototype,"printStyle",{set:function(e){for(var t in e)e.hasOwnProperty(t)&&this._printStyle.push((t+JSON.stringify(e[t])).replace(/['"]+/g,""));this.returnStyleValues()},enumerable:!0,configurable:!0}),r.prototype.returnStyleValues=function(){return"<style> "+this._printStyle.join(" ").replace(/,/g,";")+" </style>"},Object.defineProperty(r.prototype,"styleSheetFile",{set:function(e){var t,n,r=function(e){return'<link rel="stylesheet" type="text/css" href="'+e+'">'};if(-1!==e.indexOf(",")){var i=e.split(",");try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),l=o.next();!l.done;l=o.next()){var s=l.value;this._styleSheetFile=this._styleSheetFile+r(s)}}catch(a){t={error:a}}finally{try{l&&!l.done&&(n=o["return"])&&n.call(o)}finally{if(t)throw t.error}}}else this._styleSheetFile=r(e)},enumerable:!0,configurable:!0}),r.prototype.returnStyleSheetLinkTags=function(){return this._styleSheetFile},r.prototype.getElementTag=function(e){for(var t=[],n=document.getElementsByTagName(e),r=0;r<n.length;r++)t.push(n[r].outerHTML);return t.join("\r\n")},r.prototype.getFormData=function(e){for(var t=0;t<e.length;t++)e[t].defaultValue=e[t].value,e[t].checked&&(e[t].defaultChecked=!0)},r.prototype.getHtmlContents=function(){var e=document.getElementById(this.printSectionId),t=e.getElementsByTagName("input");this.getFormData(t);t=e.getElementsByTagName("textarea");return this.getFormData(t),e.innerHTML},r.prototype.print=function(){var e,t,n="",r="",i=this.getElementTag("base");this.useExistingCss&&(n=this.getElementTag("style"),r=this.getElementTag("link")),e=this.getHtmlContents(),(t=window.open("","_blank","top=0,left=0,height=auto,width=auto")).document.open(),t.document.write("\n <html>\n <head>\n <title>"+(this.printTitle||"")+"</title>\n "+i+"\n "+this.returnStyleValues()+"\n "+this.returnStyleSheetLinkTags()+"\n "+n+"\n "+r+"\n </head>\n <body>\n "+e+"\n <script defer>\n function triggerPrint(event) {\n window.removeEventListener('load', triggerPrint, false);\n setTimeout(function() {\n closeWindow(window.print());\n }, "+this.printDelay+");\n }\n function closeWindow(){\n window.close();\n }\n window.addEventListener('load', triggerPrint, false);\n <\/script>\n </body>\n </html>"),t.document.close()},r.decorators=[{type:t.Directive,args:[{selector:"button[ngxPrint]"}]}],r.propDecorators={printSectionId:[{type:t.Input}],printTitle:[{type:t.Input}],useExistingCss:[{type:t.Input}],printDelay:[{type:t.Input}],printStyle:[{type:t.Input}],styleSheetFile:[{type:t.Input}],print:[{type:t.HostListener,args:["click"]}]},r);function r(){this._printStyle=[],this.useExistingCss=!1,this.printDelay=0,this._styleSheetFile=""}i.decorators=[{type:t.NgModule,args:[{declarations:[n],imports:[],exports:[n]}]}],t=i;function i(){}e.NgxPrintDirective=n,e.NgxPrintModule=t,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
|
-
//# sourceMappingURL=ngx-print.umd.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["ng://ngx-print/lib/ngx-print.directive.ts","node_modules/tslib/tslib.es6.js","ng://ngx-print/lib/ngx-print.module.ts"],"sourcesContent":["import { Directive, HostListener, Input } from '@angular/core';\r\n@Directive({\r\n selector: \"button[ngxPrint]\"\r\n})\r\nexport class NgxPrintDirective {\r\n\r\n public _printStyle = [];\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input() printSectionId: string;\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input() printTitle: string;\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input() useExistingCss = false;\r\n\r\n /**\r\n * A delay in milliseconds to force the print dialog to wait before opened. Default: 0\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input() printDelay: number = 0;\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @Input()\r\n set printStyle(values: { [key: string]: { [key: string]: string } }) {\r\n for (let key in values) {\r\n if (values.hasOwnProperty(key)) {\r\n this._printStyle.push((key + JSON.stringify(values[key])).replace(/['\"]+/g, ''));\r\n }\r\n }\r\n this.returnStyleValues();\r\n }\r\n\r\n/**\r\n *\r\n *\r\n * @returns the string that create the stylesheet which will be injected\r\n * later within <style></style> tag.\r\n *\r\n * -join/replace to transform an array objects to css-styled string\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\npublic returnStyleValues() {\r\n return `<style> ${this._printStyle.join(' ').replace(/,/g,';')} </style>`;\r\n }\r\n\r\n /**\r\n *\r\n *\r\n * @returns html for the given tag\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n private _styleSheetFile = '';\r\n\r\n /**\r\n * @memberof NgxPrintDirective\r\n * @param cssList\r\n */\r\n @Input()\r\n set styleSheetFile(cssList: string) {\r\n let linkTagFn = function(cssFileName) {\r\n return `<link rel=\"stylesheet\" type=\"text/css\" href=\"${cssFileName}\">`;\r\n }\r\n if (cssList.indexOf(',') !== -1) {\r\n const valueArr = cssList.split(',');\r\n for (let val of valueArr) {\r\n this._styleSheetFile = this._styleSheetFile + linkTagFn(val);\r\n }\r\n } else {\r\n this._styleSheetFile = linkTagFn(cssList);\r\n }\r\n }\r\n\r\n /**\r\n * @returns string which contains the link tags containing the css which will\r\n * be injected later within <head></head> tag.\r\n *\r\n */\r\n private returnStyleSheetLinkTags() {\r\n return this._styleSheetFile;\r\n }\r\n private getElementTag(tag: keyof HTMLElementTagNameMap): string {\r\n const html: string[] = [];\r\n const elements = document.getElementsByTagName(tag);\r\n for (let index = 0; index < elements.length; index++) {\r\n html.push(elements[index].outerHTML);\r\n }\r\n return html.join('\\r\\n');\r\n }\r\n\r\n /**\r\n * \r\n * @param data the html element collection to save defaults to\r\n * \r\n */\r\n private getFormData(data: any) {\r\n for (var i = 0; i < data.length; i++) {\r\n data[i].defaultValue = data[i].value;\r\n if(data[i].checked) {\r\n data[i].defaultChecked = true;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * @returns html section to be printed along with some associated inputs\r\n * \r\n */\r\n private getHtmlContents() {\r\n let printContents = document.getElementById(this.printSectionId);\r\n let innards = printContents.getElementsByTagName('input');\r\n this.getFormData(innards);\r\n\r\n let txt = printContents.getElementsByTagName('textarea');\r\n this.getFormData(txt);\r\n \r\n return printContents.innerHTML;\r\n }\r\n\r\n /**\r\n *\r\n *\r\n * @memberof NgxPrintDirective\r\n */\r\n @HostListener('click')\r\n public print(): void {\r\n let printContents, popupWin, styles = '', links = '';\r\n const baseTag = this.getElementTag('base');\r\n\r\n if(this.useExistingCss) {\r\n styles = this.getElementTag('style');\r\n links = this.getElementTag('link');\r\n }\r\n\r\n printContents = this.getHtmlContents();\r\n popupWin = window.open(\"\", \"_blank\", \"top=0,left=0,height=auto,width=auto\");\r\n popupWin.document.open();\r\n popupWin.document.write(`\r\n <html>\r\n <head>\r\n <title>${this.printTitle ? this.printTitle : \"\"}</title>\r\n ${baseTag}\r\n ${this.returnStyleValues()}\r\n ${this.returnStyleSheetLinkTags()}\r\n ${styles}\r\n ${links}\r\n </head>\r\n <body>\r\n ${printContents}\r\n <script defer>\r\n function triggerPrint(event) {\r\n window.removeEventListener('load', triggerPrint, false);\r\n setTimeout(function() {\r\n closeWindow(window.print());\r\n }, ${this.printDelay});\r\n }\r\n function closeWindow(){\r\n window.close();\r\n }\r\n window.addEventListener('load', triggerPrint, false);\r\n </script>\r\n </body>\r\n </html>`);\r\n popupWin.document.close();\r\n }\r\n}\r\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { NgxPrintDirective } from './ngx-print.directive';\r\n\r\n@NgModule({\r\n declarations: [NgxPrintDirective],\r\n imports: [\r\n ],\r\n exports: [NgxPrintDirective]\r\n})\r\nexport class NgxPrintModule { }\r\n"],"names":["Object","defineProperty","NgxPrintDirective","prototype","values","key","hasOwnProperty","this","_printStyle","push","JSON","stringify","replace","returnStyleValues","join","cssList","linkTagFn","cssFileName","indexOf","valueArr","split","valueArr_1","o","s","Symbol","iterator","m","i","call","length","next","value","done","TypeError","tslib_1.__values","valueArr_1_1","val","_styleSheetFile","returnStyleSheetLinkTags","getElementTag","tag","html","elements","document","getElementsByTagName","index","outerHTML","getFormData","data","defaultValue","checked","defaultChecked","getHtmlContents","printContents","getElementById","printSectionId","innards","txt","innerHTML","print","popupWin","styles","links","baseTag","useExistingCss","window","open","write","printTitle","printDelay","close","Directive","args","selector","Input","HostListener","NgModule","declarations","imports","exports","NgxPrintModule"],"mappings":"uQAyCEA,OAAAC,eACIC,EAAAC,UAAA,aAAU,C,IADd,SACeC,GACb,IAAK,IAAIC,KAAOD,EACVA,EAAOE,eAAeD,IAC1BE,KAAKC,YAAYC,MAAMJ,EAAMK,KAAKC,UAAUP,EAAOC,KAAOO,QAAQ,SAAU,KAG9EL,KAAKM,qB,gCAaFX,EAAAC,UAAAU,kBAAP,WACE,MAAO,WAAWN,KAAKC,YAAYM,KAAK,KAAKF,QAAQ,KAAK,KAAI,aAgB9DZ,OAAAC,eACIC,EAAAC,UAAA,iBAAc,C,IADlB,SACmBY,G,QACbC,EAAS,SAAYC,GACvB,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