tnx-shared 5.3.239 → 5.3.241
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 +6 -2
- 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/classes/base/data-form-base.d.ts +1 -0
- package/classes/base/data-form-base.d.ts.map +1 -1
- package/classes/form-schema.d.ts +1 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/html-preview/html-preview.component.d.ts.map +1 -1
- package/esm2015/classes/base/data-form-base.js +3 -2
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/html-preview/html-preview.component.js +4 -2
- package/fesm2015/tnx-shared.js +6 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -2250,6 +2250,7 @@
|
|
|
2250
2250
|
_this.height = 250;
|
|
2251
2251
|
_this.useMathJaxMenu = false;
|
|
2252
2252
|
_this.autoScrollBottom = false;
|
|
2253
|
+
_this.isHtml = true;
|
|
2253
2254
|
for (var key in init) {
|
|
2254
2255
|
_this[key] = init[key];
|
|
2255
2256
|
}
|
|
@@ -18427,6 +18428,7 @@
|
|
|
18427
18428
|
_this.saving = false;
|
|
18428
18429
|
_this.getDetailPlusUrl = null;
|
|
18429
18430
|
_this.insertPlusUrl = null;
|
|
18431
|
+
_this.updatePlusUrl = null;
|
|
18430
18432
|
_this.dynamicControl = {};
|
|
18431
18433
|
_this.setValidateForm = true;
|
|
18432
18434
|
_this.haveEntityMetadataAPI = true;
|
|
@@ -19207,7 +19209,7 @@
|
|
|
19207
19209
|
DataFormBase.prototype.handleUpdateError = function () {
|
|
19208
19210
|
};
|
|
19209
19211
|
DataFormBase.prototype.getPromiseActionUpdate = function () {
|
|
19210
|
-
return this.setting.baseService.put(this.model.data.id.toString(), this.model.data);
|
|
19212
|
+
return this.setting.baseService.put(this.model.data.id.toString(), this.model.data, this.updatePlusUrl);
|
|
19211
19213
|
};
|
|
19212
19214
|
DataFormBase.prototype.setDefaultValue = function (model) {
|
|
19213
19215
|
var _a, _b;
|
|
@@ -54385,7 +54387,9 @@
|
|
|
54385
54387
|
var autoScrollBottom = !!((_a = $this.control) === null || _a === void 0 ? void 0 : _a.autoScrollBottom);
|
|
54386
54388
|
var output = $this.mathContent.nativeElement;
|
|
54387
54389
|
var content = ((_b = $this.content) === null || _b === void 0 ? void 0 : _b.trim()) || '';
|
|
54388
|
-
|
|
54390
|
+
if (!$this.control.isHtml) {
|
|
54391
|
+
content = content.replace(/\n/g, '<br>');
|
|
54392
|
+
}
|
|
54389
54393
|
output.innerHTML = content;
|
|
54390
54394
|
if ($this.mathJaxObject.texReset) {
|
|
54391
54395
|
$this.mathJaxObject.texReset();
|