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.
- package/bundles/ps-toolkit-ui.umd.js +3 -8
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/form/pre/form.pre.component.js +4 -9
- package/fesm2015/ps-toolkit-ui.js +3 -8
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/form/pre/form.pre.component.d.ts +0 -1
- package/package.json +2 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -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.
|
|
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'\"
|
|
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:
|
|
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 []; };
|