tnx-shared 5.3.252 → 5.3.254

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.
@@ -10279,6 +10279,11 @@
10279
10279
  var api = this.serviceUri + "/LatexToBase64";
10280
10280
  return this._httpClient.post(api, { laTex: laTex, font: font }).toPromise();
10281
10281
  };
10282
+ TemplateInstanceService.prototype.laTexToImage = function (laTex, font) {
10283
+ if (font === void 0) { font = 54; }
10284
+ var api = this.serviceUri + "/LatexToImage";
10285
+ return this._httpClient.post(api, { laTex: laTex, font: font }, { responseType: 'blob' }).toPromise();
10286
+ };
10282
10287
  TemplateInstanceService.prototype._export = function (model) {
10283
10288
  return __awaiter(this, void 0, void 0, function () {
10284
10289
  var url;
@@ -18437,6 +18442,7 @@
18437
18442
  _this.setValidateForm = true;
18438
18443
  _this.haveEntityMetadataAPI = true;
18439
18444
  _this.isBaseModel = true;
18445
+ _this.autoGenerateId = true;
18440
18446
  _this.__isFormView = false;
18441
18447
  var moduleConfigService = _injector.get(ModuleConfigService);
18442
18448
  _this.environment = moduleConfigService.getConfig().environment;
@@ -19059,8 +19065,10 @@
19059
19065
  DataFormBase.prototype.onAfterSave = function (response) {
19060
19066
  };
19061
19067
  DataFormBase.prototype._onAfterSave = function () {
19062
- if (!this.isCloseForm) {
19063
- this.model.data.id = this._commonService.guid();
19068
+ var _a;
19069
+ var _b;
19070
+ if (!this.isCloseForm && this.autoGenerateId) {
19071
+ (_a = (_b = this.model.data).id) !== null && _a !== void 0 ? _a : (_b.id = this._commonService.guid());
19064
19072
  }
19065
19073
  };
19066
19074
  DataFormBase.prototype.onAfterGetDetail = function (data) {
@@ -54168,28 +54176,37 @@
54168
54176
  var arr, sources_1, sources_1_1, item;
54169
54177
  var e_2, _b;
54170
54178
  return __generator(this, function (_c) {
54171
- if (sources != null && sources.length > 0) {
54172
- arr = [];
54173
- try {
54174
- for (sources_1 = __values(sources), sources_1_1 = sources_1.next(); !sources_1_1.done; sources_1_1 = sources_1.next()) {
54175
- item = sources_1_1.value;
54176
- item = this.reStructureItemObject(item);
54177
- arr.push(item);
54178
- }
54179
- }
54180
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
54181
- finally {
54179
+ switch (_c.label) {
54180
+ case 0:
54181
+ if (!(sources != null && sources.length > 0)) return [3 /*break*/, 3];
54182
+ arr = [];
54182
54183
  try {
54183
- if (sources_1_1 && !sources_1_1.done && (_b = sources_1.return)) _b.call(sources_1);
54184
+ for (sources_1 = __values(sources), sources_1_1 = sources_1.next(); !sources_1_1.done; sources_1_1 = sources_1.next()) {
54185
+ item = sources_1_1.value;
54186
+ item = this.reStructureItemObject(item);
54187
+ arr.push(item);
54188
+ }
54184
54189
  }
54185
- finally { if (e_2) throw e_2.error; }
54186
- }
54187
- this.dataSource = arr;
54188
- }
54189
- else {
54190
- this.dataSource = [];
54190
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
54191
+ finally {
54192
+ try {
54193
+ if (sources_1_1 && !sources_1_1.done && (_b = sources_1.return)) _b.call(sources_1);
54194
+ }
54195
+ finally { if (e_2) throw e_2.error; }
54196
+ }
54197
+ if (!this.controlPicker.modifyDataSelected) return [3 /*break*/, 2];
54198
+ return [4 /*yield*/, this.controlPicker.modifyDataSelected(arr)];
54199
+ case 1:
54200
+ _c.sent();
54201
+ _c.label = 2;
54202
+ case 2:
54203
+ this.dataSource = arr;
54204
+ return [3 /*break*/, 4];
54205
+ case 3:
54206
+ this.dataSource = [];
54207
+ _c.label = 4;
54208
+ case 4: return [2 /*return*/];
54191
54209
  }
54192
- return [2 /*return*/];
54193
54210
  });
54194
54211
  });
54195
54212
  };