tnx-shared 5.3.240 → 5.3.242

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.
@@ -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
  }
@@ -45740,6 +45741,9 @@
45740
45741
  if (this._selectedValue != null) {
45741
45742
  if (this.control.multiple) {
45742
45743
  this._value = this._selectedValue.map(function (item) { return item[_this.control.valueField]; });
45744
+ if (this._value.length == 0) {
45745
+ this.itemCanDeletes = [];
45746
+ }
45743
45747
  }
45744
45748
  else {
45745
45749
  this._value = this._selectedValue[this.control.valueField];
@@ -45747,6 +45751,7 @@
45747
45751
  }
45748
45752
  else {
45749
45753
  this._value = null;
45754
+ this.itemCanDeletes = [];
45750
45755
  }
45751
45756
  };
45752
45757
  EntityPickerSelectedComponent.prototype.modifyGridInfo = function (gridInfo) {
@@ -54386,7 +54391,9 @@
54386
54391
  var autoScrollBottom = !!((_a = $this.control) === null || _a === void 0 ? void 0 : _a.autoScrollBottom);
54387
54392
  var output = $this.mathContent.nativeElement;
54388
54393
  var content = ((_b = $this.content) === null || _b === void 0 ? void 0 : _b.trim()) || '';
54389
- content = content.replace(/\n/g, '<br>');
54394
+ if (!$this.control.isHtml) {
54395
+ content = content.replace(/\n/g, '<br>');
54396
+ }
54390
54397
  output.innerHTML = content;
54391
54398
  if ($this.mathJaxObject.texReset) {
54392
54399
  $this.mathJaxObject.texReset();