tnx-shared 5.3.231 → 5.3.233
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 +31 -25
- 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/html-preview/html-preview.component.d.ts.map +1 -1
- package/esm2015/classes/base/list-component-base.js +2 -2
- package/esm2015/components/html-preview/html-preview.component.js +31 -23
- package/fesm2015/tnx-shared.js +32 -24
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -25250,7 +25250,6 @@
|
|
|
25250
25250
|
ListComponentBase.prototype.viewHistoryWorkflow = function (crudListSetting, rowData) {
|
|
25251
25251
|
return __awaiter(this, void 0, void 0, function () {
|
|
25252
25252
|
var workflowSetting, compRef;
|
|
25253
|
-
var _this = this;
|
|
25254
25253
|
return __generator(this, function (_g) {
|
|
25255
25254
|
switch (_g.label) {
|
|
25256
25255
|
case 0: return [4 /*yield*/, this.getItemWorkflowSetting(crudListSetting, rowData)];
|
|
@@ -25270,7 +25269,6 @@
|
|
|
25270
25269
|
compRef.instance.tableName = this.workflowHistoryModel.data.tableName;
|
|
25271
25270
|
compRef.instance.item = rowData;
|
|
25272
25271
|
compRef.instance.workflowSetting = workflowSetting;
|
|
25273
|
-
compRef.instance.onCancel.subscribe(function (event) { return _this.workflowHistoryModel.showEditForm = false; });
|
|
25274
25272
|
return [2 /*return*/];
|
|
25275
25273
|
}
|
|
25276
25274
|
});
|
|
@@ -54330,6 +54328,7 @@
|
|
|
54330
54328
|
this.content = '';
|
|
54331
54329
|
this.id = '';
|
|
54332
54330
|
this.id = this._commonService.guid();
|
|
54331
|
+
this.loadMathConfig();
|
|
54333
54332
|
}
|
|
54334
54333
|
// ngOnChanges(changes: SimpleChanges) {
|
|
54335
54334
|
// if (changes['content']) {
|
|
@@ -54362,28 +54361,36 @@
|
|
|
54362
54361
|
var $this = _this;
|
|
54363
54362
|
var autoScrollBottom = !!((_a = $this.control) === null || _a === void 0 ? void 0 : _a.autoScrollBottom);
|
|
54364
54363
|
var output = $this.mathContent.nativeElement;
|
|
54365
|
-
|
|
54366
|
-
|
|
54367
|
-
|
|
54368
|
-
$this.mathJaxObject.
|
|
54369
|
-
|
|
54370
|
-
|
|
54371
|
-
|
|
54372
|
-
|
|
54373
|
-
|
|
54374
|
-
|
|
54375
|
-
|
|
54376
|
-
|
|
54377
|
-
|
|
54378
|
-
|
|
54379
|
-
|
|
54380
|
-
|
|
54381
|
-
|
|
54382
|
-
|
|
54383
|
-
|
|
54384
|
-
|
|
54385
|
-
|
|
54386
|
-
|
|
54364
|
+
var content = ((_b = $this.content) === null || _b === void 0 ? void 0 : _b.trim()) || '';
|
|
54365
|
+
content = content.replace(/\n/g, '<br>');
|
|
54366
|
+
output.innerHTML = content;
|
|
54367
|
+
if ($this.mathJaxObject.texReset) {
|
|
54368
|
+
$this.mathJaxObject.texReset();
|
|
54369
|
+
}
|
|
54370
|
+
if ($this.mathJaxObject.typesetClear) {
|
|
54371
|
+
$this.mathJaxObject.typesetClear();
|
|
54372
|
+
}
|
|
54373
|
+
if ($this.mathJaxObject.typesetPromise) {
|
|
54374
|
+
$this.mathJaxObject.typesetPromise([output]).catch(function (err) {
|
|
54375
|
+
output.innerHTML = '';
|
|
54376
|
+
output.appendChild(document.createTextNode(err.message));
|
|
54377
|
+
console.error(err);
|
|
54378
|
+
}).then(function () {
|
|
54379
|
+
var _a, _b, _c;
|
|
54380
|
+
// Do something after typeset
|
|
54381
|
+
if (autoScrollBottom) {
|
|
54382
|
+
var box = document.querySelector("#math-preview-box-" + $this.id);
|
|
54383
|
+
var elem = box.getElementsByClassName('ps--active-y')[0];
|
|
54384
|
+
if (elem) {
|
|
54385
|
+
elem.scrollTop = elem.scrollHeight;
|
|
54386
|
+
}
|
|
54387
|
+
}
|
|
54388
|
+
var value = (_c = (_b = (_a = document.getElementById("mathPreview-" + $this.id)) === null || _a === void 0 ? void 0 : _a.innerHTML) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : '';
|
|
54389
|
+
$this.onChange(value);
|
|
54390
|
+
$this.onChanged.emit(value);
|
|
54391
|
+
});
|
|
54392
|
+
}
|
|
54393
|
+
return $this.mathJaxObject.startup.defaultPageReady ? $this.mathJaxObject.startup.defaultPageReady() : $this.mathJaxObject.startup.defaultPageReady;
|
|
54387
54394
|
});
|
|
54388
54395
|
};
|
|
54389
54396
|
HtmlPreviewComponent.prototype.loadMathConfig = function () {
|
|
@@ -54439,7 +54446,6 @@
|
|
|
54439
54446
|
document.head.appendChild(script);
|
|
54440
54447
|
};
|
|
54441
54448
|
HtmlPreviewComponent.prototype.ngOnInit = function () {
|
|
54442
|
-
this.loadMathConfig();
|
|
54443
54449
|
};
|
|
54444
54450
|
return HtmlPreviewComponent;
|
|
54445
54451
|
}());
|