tnx-shared 5.3.268 → 5.3.270
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/tnx-shared.umd.js +16 -3
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/components/tn-tinymce/tn-tinymce.component.d.ts.map +1 -1
- package/esm2015/components/tn-tinymce/tn-tinymce.component.js +4 -4
- package/esm2015/services/templateinstance.service.js +13 -1
- package/fesm2015/tnx-shared.js +15 -3
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/templateinstance.service.d.ts +1 -0
- package/services/templateinstance.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -10261,6 +10261,19 @@
|
|
|
10261
10261
|
}
|
|
10262
10262
|
});
|
|
10263
10263
|
};
|
|
10264
|
+
TemplateInstanceService.prototype.fillTemplateByCodeAndPreviewPdf = function (templateCode, data) {
|
|
10265
|
+
var _this = this;
|
|
10266
|
+
var url = this.serviceUri + "/fillWordByTemplateCode/" + templateCode + "?isPrint=true";
|
|
10267
|
+
return this._httpClient
|
|
10268
|
+
.post(url, data)
|
|
10269
|
+
.toPromise().then(function (res) {
|
|
10270
|
+
if (res.data) {
|
|
10271
|
+
var file = _this.b64toBlob(res.data, 'application/pdf');
|
|
10272
|
+
var fileURL = URL.createObjectURL(file);
|
|
10273
|
+
window.open(fileURL);
|
|
10274
|
+
}
|
|
10275
|
+
});
|
|
10276
|
+
};
|
|
10264
10277
|
/**
|
|
10265
10278
|
* Word
|
|
10266
10279
|
* @param templateCode
|
|
@@ -53182,6 +53195,9 @@
|
|
|
53182
53195
|
config.toolbar = false;
|
|
53183
53196
|
config.mobile.toolbar = false;
|
|
53184
53197
|
}
|
|
53198
|
+
if (this.control.isFullPage && !config.plugins.some(function (x) { return x.includes('fullpage'); })) {
|
|
53199
|
+
config.plugins[0] += ' fullpage';
|
|
53200
|
+
}
|
|
53185
53201
|
setTimeout(function () {
|
|
53186
53202
|
tinymce.init(config);
|
|
53187
53203
|
});
|
|
@@ -53395,9 +53411,6 @@
|
|
|
53395
53411
|
// config.toolbar = 'formatselect | bold italic Strikethrough forecolor backcolor| alignleft aligncenter alignright alignjustify | bullist numlist';
|
|
53396
53412
|
config.toolbar = 'bold italic Strikethrough forecolor backcolor | bullist numlist | fullscreen';
|
|
53397
53413
|
}
|
|
53398
|
-
if ($this.control.isFullPage && !config.some(function (x) { return x == 'fullpage'; })) {
|
|
53399
|
-
config.plugins.push(' fullpage');
|
|
53400
|
-
}
|
|
53401
53414
|
config.paste_data_images = true;
|
|
53402
53415
|
return config;
|
|
53403
53416
|
};
|