ps-toolkit-ui 1.4.94 → 1.4.97

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.
@@ -1179,6 +1179,32 @@
1179
1179
  }
1180
1180
  return (parseInt(bgColor.replace('#', ''), 16) > 0xffffff / 2) ? '#000' : '#fff';
1181
1181
  };
1182
+ HelperClass.queryStringToJSON = function (qs) {
1183
+ if (qs === void 0) { qs = null; }
1184
+ qs = qs || location.search.slice(1);
1185
+ if (qs === '') {
1186
+ return {};
1187
+ }
1188
+ var pairs = qs.split('&');
1189
+ var result = {};
1190
+ pairs.forEach(function (p) {
1191
+ var pair = p.split('=');
1192
+ var key = pair[0].replace('%5B%5D', '');
1193
+ var value = decodeURIComponent(pair[1] || '');
1194
+ if (result[key]) {
1195
+ if (Object.prototype.toString.call(result[key]) === '[object Array]') {
1196
+ result[key].push(value);
1197
+ }
1198
+ else {
1199
+ result[key] = [result[key], value];
1200
+ }
1201
+ }
1202
+ else {
1203
+ result[key] = value;
1204
+ }
1205
+ });
1206
+ return JSON.parse(JSON.stringify(result));
1207
+ };
1182
1208
  return HelperClass;
1183
1209
  }());
1184
1210
 
@@ -2047,7 +2073,7 @@
2047
2073
  }
2048
2074
  ModalComponent.prototype.ngOnInit = function () {
2049
2075
  var _this = this;
2050
- this.close = new InputClass(this.modal.environment, this.modal.l, null, 'fa-duotone fa-times', exports.InputType.Icon, 'w-u h-30 red close-modal');
2076
+ this.close = new InputClass(this.modal.environment, this.modal.l, null, 'fas fa-times', exports.InputType.Icon, 'w-u h-30 red close-modal');
2051
2077
  this.close.onClick = function () {
2052
2078
  _this.modal.hide();
2053
2079
  };
@@ -2711,7 +2737,6 @@
2711
2737
  var _loop_3 = function (r) {
2712
2738
  if (r.table) {
2713
2739
  var options = JSON.parse(JSON.stringify(_this.row.Options));
2714
- console.log(options);
2715
2740
  var p = new PermissionClass();
2716
2741
  p.RelatedId = _this.row.Data.Id;
2717
2742
  p.Area = _this.table.permissions.Area;
@@ -2816,7 +2841,7 @@
2816
2841
  return HelperClass.getDate(cv);
2817
2842
  }
2818
2843
  else if (col.type === exports.TableCollType.DateTime) {
2819
- return HelperClass.getDateTime(cv);
2844
+ return '<span class="ltr">' + HelperClass.getDateTime(cv) + '</span>';
2820
2845
  }
2821
2846
  else if (col.type === exports.TableCollType.Time) {
2822
2847
  return HelperClass.getTime(cv);
@@ -2828,7 +2853,7 @@
2828
2853
  return '<a target="_blank" class="ltr" href="' + cv + '">' + cv + '</a>';
2829
2854
  }
2830
2855
  else if (col.type === exports.TableCollType.Image) {
2831
- return '<img class="h-100" alt="" src="' + this.service.environment.url + cv + '"/>';
2856
+ return '<img style="height: ' + this.table.height + 'px" alt="" src="' + this.service.environment.url + cv + '"/>';
2832
2857
  }
2833
2858
  else if (col.type === exports.TableCollType.FileSize) {
2834
2859
  return HelperClass.getFileSize(cv);
@@ -4950,7 +4975,6 @@
4950
4975
  var _this = this;
4951
4976
  this.inp.load();
4952
4977
  this.inp.setValue = function (v) {
4953
- console.log(v, 'v');
4954
4978
  _this.inp.value = v !== null ? v.toString() : null;
4955
4979
  if (_this.inp.value == null && _this.inp.options.length > 0) {
4956
4980
  _this.inp.value = _this.inp.options.find(function (x) { return true; }).value;
@@ -4968,7 +4992,6 @@
4968
4992
  };
4969
4993
  this.inp.clear = function () {
4970
4994
  _this.inp.error = null;
4971
- console.log(_this.inp.default, 'this.inp.default');
4972
4995
  _this.inp.setValue(_this.inp.default, false);
4973
4996
  };
4974
4997
  this.inp.data = function () {