ps-toolkit-ui 1.21.82 → 1.21.84

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.
@@ -5255,7 +5255,7 @@
5255
5255
  FormPreComponent.prototype.ngOnInit = function () {
5256
5256
  var _this = this;
5257
5257
  this.inp.setValue = function (v) {
5258
- _this.inp.value = typeof v === 'string' ? JSON.stringify(v, null, 2) : v;
5258
+ _this.inp.value = typeof v === 'string' ? JSON.parse(v) : v;
5259
5259
  };
5260
5260
  this.inp.isValid = function () {
5261
5261
  return true;
@@ -5263,18 +5263,13 @@
5263
5263
  this.inp.clear = function () {
5264
5264
  };
5265
5265
  };
5266
- FormPreComponent.prototype.onClick = function () {
5267
- if (this.inp.onClick) {
5268
- this.inp.onClick(this.inp);
5269
- }
5270
- };
5271
5266
  return FormPreComponent;
5272
5267
  }());
5273
5268
  FormPreComponent.decorators = [
5274
5269
  { type: core.Component, args: [{
5275
5270
  selector: 'lib-form-pre',
5276
- template: "<pre [id]=\"inp.id + 'PreInput'\" (click)=\"onClick()\" #inputDiv [className]=\"'form-input pre w-100' + ' ' + inp.class\" [innerHTML]=\"inp.l(inp.value)\">\r\n</pre>\r\n",
5277
- styles: [".form-input.pre{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;font-size:12px;line-height:30px;min-height:30px!important;padding:0 15px;position:relative;text-align:center}"]
5271
+ template: "<pre [id]=\"inp.id + 'PreInput'\" #inputDiv [className]=\"'form-input pre w-100' + ' ' + inp.class\">\r\n {{inp.value}}\r\n</pre>\r\n",
5272
+ styles: [".form-input.pre{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;direction:ltr;font-size:12px;line-height:30px;min-height:30px!important;padding:0 15px;position:relative;text-align:left}"]
5278
5273
  },] }
5279
5274
  ];
5280
5275
  FormPreComponent.ctorParameters = function () { return []; };