ps-toolkit-ui 1.21.83 → 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 +7 -14
- 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 +5 -10
- 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 +1 -2
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('lodash'), require('jalali-moment'), require('@angular/router'), require('rxjs'), require('jquery-ui-dist/jquery-ui'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'lodash', 'jalali-moment', '@angular/router', 'rxjs', 'jquery-ui-dist/jquery-ui', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ps-toolkit-ui'] = {}, global.ng.core, global._, global.moment, global.ng.router, global.rxjs, null, global.
|
|
5
|
-
}(this, (function (exports, core, _, moment, router, rxjs, jqueryUi,
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('lodash'), require('jalali-moment'), require('@angular/router'), require('rxjs'), require('jquery-ui-dist/jquery-ui'), require('@angular/forms'), require('@angular/common'), require('@angular/platform-browser'), require('ckeditor4-angular'), require('file-saver'), require('xlsx'), require('highcharts'), require('highcharts/modules/exporting'), require('highcharts/modules/export-data')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'lodash', 'jalali-moment', '@angular/router', 'rxjs', 'jquery-ui-dist/jquery-ui', '@angular/forms', '@angular/common', '@angular/platform-browser', 'ckeditor4-angular', 'file-saver', 'xlsx', 'highcharts', 'highcharts/modules/exporting', 'highcharts/modules/export-data'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ps-toolkit-ui'] = {}, global.ng.core, global._, global.moment, global.ng.router, global.rxjs, null, global.ng.forms, global.ng.common, global.ng.platformBrowser, global.ckeditor4Angular, global.FileSaver, global.XLSX, global.Highcharts, global.HighchartsExporting, global.HighchartsExportData));
|
|
5
|
+
}(this, (function (exports, core, _, moment, router, rxjs, jqueryUi, forms, common, platformBrowser, ckeditor4Angular, FileSaver, XLSX, Highcharts, HighchartsExporting, HighchartsExportData) { 'use strict';
|
|
8
6
|
|
|
9
7
|
function _interopNamespace(e) {
|
|
10
8
|
if (e && e.__esModule) { return e; } else {
|
|
@@ -28,7 +26,6 @@
|
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
31
|
-
var JSONFormatter__default = /*#__PURE__*/_interopDefaultLegacy(JSONFormatter);
|
|
32
29
|
var Highcharts__namespace = /*#__PURE__*/_interopNamespace(Highcharts);
|
|
33
30
|
var HighchartsExporting__namespace = /*#__PURE__*/_interopNamespace(HighchartsExporting);
|
|
34
31
|
var HighchartsExportData__namespace = /*#__PURE__*/_interopNamespace(HighchartsExportData);
|
|
@@ -5258,10 +5255,7 @@
|
|
|
5258
5255
|
FormPreComponent.prototype.ngOnInit = function () {
|
|
5259
5256
|
var _this = this;
|
|
5260
5257
|
this.inp.setValue = function (v) {
|
|
5261
|
-
|
|
5262
|
-
theme: 'dark'
|
|
5263
|
-
});
|
|
5264
|
-
_this.jsonContainer.nativeElement.appendChild(formatter.render());
|
|
5258
|
+
_this.inp.value = typeof v === 'string' ? JSON.parse(v) : v;
|
|
5265
5259
|
};
|
|
5266
5260
|
this.inp.isValid = function () {
|
|
5267
5261
|
return true;
|
|
@@ -5274,13 +5268,12 @@
|
|
|
5274
5268
|
FormPreComponent.decorators = [
|
|
5275
5269
|
{ type: core.Component, args: [{
|
|
5276
5270
|
selector: 'lib-form-pre',
|
|
5277
|
-
template: "<
|
|
5278
|
-
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}"]
|
|
5279
5273
|
},] }
|
|
5280
5274
|
];
|
|
5281
5275
|
FormPreComponent.ctorParameters = function () { return []; };
|
|
5282
5276
|
FormPreComponent.propDecorators = {
|
|
5283
|
-
jsonContainer: [{ type: core.ViewChild, args: ['jsonContainer', { static: true },] }],
|
|
5284
5277
|
inp: [{ type: core.Input }]
|
|
5285
5278
|
};
|
|
5286
5279
|
|