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.
@@ -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
  };